Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/GAP/pkg/semigroups/tst/standard/elements/   (GAP Algebra Version 4.15.1©)  Datei vom 29.7.2025 mit Größe 2 kB image not shown  

Quelle  trans.tst   Sprache: unbekannt

 
Spracherkennung für: .tst vermutete Sprache: Unknown {[0] [0] [0]} [Methode: Schwerpunktbildung, einfache Gewichte, sechs Dimensionen]

#############################################################################
##
#W  standard/elements/trans.tst
#Y  Copyright (C) 2016-2022                              James D. Mitchell
##
##  Licensing information can be found in the README file of this package.
##
#############################################################################
##

#@local f
gap> START_TEST("Semigroups package: standard/elements/trans.tst");
gap> LoadPackage("semigroups", false);;

# Set info levels and user preferences
gap> SEMIGROUPS.StartTest();

# Test CanonicalTransformation
gap> f := Transformation([10846453882]);;
gap> CanonicalTransformation(f);
Transformation( [ 6827455101010 ] )
gap> CanonicalTransformation(CanonicalTransformation(f));
Transformation( [ 6827455101010 ] )
gap> Number(Set(FullTransformationMonoid(5),
>               x -> CanonicalTransformation(x, 5)));
47
gap> CanonicalTransformation(IdentityTransformation);
IdentityTransformation
gap> CanonicalTransformation(IdentityTransformation, 2);
IdentityTransformation
gap> CanonicalTransformation(Transformation([132]), 2);
Error, the second argument (an integer) must be at least the degree of the fir\
st argument (a transformation)

# Test TransformationByImageAndKernel
gap> TransformationByImageAndKernel([1 .. 4],
>                                   [[123], [45], [68], [7]]);
Transformation( [ 11122343 ] )
gap> TransformationByImageAndKernel([1 .. 4], [[12], [45], [68], [7]]);
Error, the union of the second argument (a partition) must be [1 .. 7]
gap> TransformationByImageAndKernel([1 .. 4],
> [[12], [45], [6, -1], [7]]);
Error, the argument must be a list of lists of pos ints
gap> TransformationByImageAndKernel([1 .. 4],
> [[12], [45], "a", [7]]);
Error, no method found! For debugging hints type ?Recovery from NoMethodFound
Error, no 1st choice method found for `TransformationByImageAndKernel' on 2 ar\
guments
gap> TransformationByImageAndKernel([1 .. 4], "a");
Error, no method found! For debugging hints type ?Recovery from NoMethodFound
Error, no 1st choice method found for `TransformationByImageAndKernel' on 2 ar\
guments
gap> TransformationByImageAndKernel([1 .. 4], [[1 .. 4]]);
fail

#
gap> SEMIGROUPS.StopTest();
gap> STOP_TEST("Semigroups package: standard/elements/trans.tst");

[Dauer der Verarbeitung: 0.16 Sekunden, vorverarbeitet 2026-06-17]