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

Quelle  openmath03.tst   Sprache: unbekannt

 
# openmath, chapter 3

# [ "doc/extend.xml", 23, 38 ]

gap> Display( OMsymRecord.nums1 );          
rec(
  NaN := nan,
  based_integer := fail,
  e := 2.718281828459045,
  gamma := fail,
  i := E(4),
  infinity := infinity,
  pi := 3.141592653589793,
  rational := function ( x )
        return OMgapId( [ OMgap2ARGS( x ), x[1] / x[2] ] )[2];
    end )


# [ "doc/extend.xml", 64, 88 ]

gap> OMPrint( [ [1..10], ZmodnZObj(2,6), (1,2) ] );                
<OMOBJ xmlns="http://www.openmath.org/OpenMath" version="2.0">
 <OMA>
  <OMS cd="list1" name="list"/>
  <OMA>
   <OMS cd="interval1" name="integer_interval"/>
   <OMI>1</OMI>
   <OMI>10</OMI>
  </OMA>
  <OMA>
   <OMS cd="integer2" name="class"/>
   <OMI>2</OMI>
   <OMI>6</OMI>
  </OMA>
  <OMA>
   <OMS cd="permut1" name="permutation"/>
   <OMI>2</OMI>
   <OMI>1</OMI>
  </OMA>
 </OMA>
</OMOBJ>


[ Dauer der Verarbeitung: 0.31 Sekunden  (vorverarbeitet)  ]