Quellcodebibliothek Statistik Leitseite products/sources/formale Sprachen/GAP/pkg/modules/tst/   (Algebra von RWTH Aachen Version 4.15.1©)  Datei vom 22.11.2024 mit Größe 827 B image not shown  

Quelle  modules21.tst   Sprache: unbekannt

 
# Modules, single 21
#
# DO NOT EDIT THIS FILE - EDIT EXAMPLES IN THE SOURCE INSTEAD!
#
# This file has been generated by AutoDoc. It contains examples extracted from
# the package documentation. Each example is preceded by a comment which gives
# the name of a GAPDoc XML file and a line range from which the example were
# taken. Note that the XML file in turn may have been generated by AutoDoc
# from some other input.
#
gap> START_TEST("modules21.tst");

# doc/../examples/doc/IsElementOfIntegers.g:2-15
gap> zz := HomalgRingOfIntegers( );
Z
gap> a := HomalgElement( HomalgMap( "[[2]]", 1 * zz, 1 * zz ) );
2
gap> IsElementOfIntegers( a );
true
gap> Z4 := zz / 4;
Z/( 4 )
gap> b := HomalgElement( HomalgMap( "[[-1]]", 1 * Z4, 1 * Z4 ) );
|[ 3 ]|
gap> IsElementOfIntegers( b );
false

#
gap> STOP_TEST("modules21.tst", 1);

[ Dauer der Verarbeitung: 0.14 Sekunden  (vorverarbeitet)  ]