aboutsummaryrefslogtreecommitdiff
path: root/src/algebra/integer.spad.pamphlet
diff options
context:
space:
mode:
authordos-reis <gdr@axiomatics.org>2011-08-10 02:33:46 +0000
committerdos-reis <gdr@axiomatics.org>2011-08-10 02:33:46 +0000
commit0a0661e0c50e9c3e160d54b8e0a5b891d419e2bc (patch)
tree42ef806af61677a355623104e7ef3d35ecbbaedb /src/algebra/integer.spad.pamphlet
parentf1a4ca4eb786bfb440fd537d06a25264b0596369 (diff)
downloadopen-axiom-0a0661e0c50e9c3e160d54b8e0a5b891d419e2bc.tar.gz
* interp/setvart.boot: Remoe OpenMath description.
* interp/setvars.boot (setOutputOpenMath): Remove. (describeOutputOpenMath): Likewise. * algebra/Makefile.in (axiom_algebra_layer_14): Don't include OMSERVER. * algebra/float.spad.pamphlet (Float): Remove OpenMath exports. * algebra/fraction.spad.pamphlet (Fraction): Likewise. * algebra/gaussian.spad.pamphlet (Complex): Likewise. * algebra/integer.spad.pamphlet (Integer): Likewise. * algebra/list.spad.pamphlet (List): Likewise. * algebra/sf.spad.pamphlet (DoubleFloat): Likewise. * algebra/si.spad.pamphlet (SingleInteger): Likewise. * algebra/string.spad.pamphlet (String): Likewise. * algebra/symbol.spad.pamphlet (Symbol): Likewise.
Diffstat (limited to 'src/algebra/integer.spad.pamphlet')
-rw-r--r--src/algebra/integer.spad.pamphlet45
1 files changed, 1 insertions, 44 deletions
diff --git a/src/algebra/integer.spad.pamphlet b/src/algebra/integer.spad.pamphlet
index cc3fbff5..9052e19d 100644
--- a/src/algebra/integer.spad.pamphlet
+++ b/src/algebra/integer.spad.pamphlet
@@ -70,7 +70,7 @@ IntegerSolveLinearPolynomialEquation(): C ==T
++ Description: \spadtype{Integer} provides the domain of arbitrary precision
++ integers.
-Integer: Join(IntegerNumberSystem, ConvertibleTo String, OpenMath) with
+Integer: Join(IntegerNumberSystem, ConvertibleTo String) with
canonical
++ mathematical equality is data structure equality.
canonicalsClosed
@@ -110,49 +110,6 @@ Integer: Join(IntegerNumberSystem, ConvertibleTo String, OpenMath) with
x,y: %
n: NonNegativeInteger
- writeOMInt(dev: OpenMathDevice, x: %): Void ==
- if negative? x then
- OMputApp(dev)
- OMputSymbol(dev, "arith1", "unary__minus")
- OMputInteger(dev, (-x) pretend Integer)
- OMputEndApp(dev)
- else
- OMputInteger(dev, x pretend Integer)
-
- OMwrite(x: %): String ==
- s: String := ""
- sp: String := OM_-STRINGTOSTRINGPTR(s)$Lisp
- dev: OpenMathDevice := OMopenString(sp, OMencodingXML())
- OMputObject(dev)
- writeOMInt(dev, x)
- OMputEndObject(dev)
- OMclose(dev)
- OM_-STRINGPTRTOSTRING(sp)$Lisp
-
- OMwrite(x: %, wholeObj: Boolean): String ==
- s: String := ""
- sp: String := OM_-STRINGTOSTRINGPTR(s)$Lisp
- dev: OpenMathDevice := OMopenString(sp, OMencodingXML())
- if wholeObj then
- OMputObject(dev)
- writeOMInt(dev, x)
- if wholeObj then
- OMputEndObject(dev)
- OMclose(dev)
- OM_-STRINGPTRTOSTRING(sp)$Lisp
-
- OMwrite(dev: OpenMathDevice, x: %): Void ==
- OMputObject(dev)
- writeOMInt(dev, x)
- OMputEndObject(dev)
-
- OMwrite(dev: OpenMathDevice, x: %, wholeObj: Boolean): Void ==
- if wholeObj then
- OMputObject(dev)
- writeOMInt(dev, x)
- if wholeObj then
- OMputEndObject(dev)
-
zero? x == x = %icst0
one? x == x = %icst1
0 == %icst0