diff options
author | dos-reis <gdr@axiomatics.org> | 2008-11-23 21:16:19 +0000 |
---|---|---|
committer | dos-reis <gdr@axiomatics.org> | 2008-11-23 21:16:19 +0000 |
commit | f61d3a323d0b382ec67245137f23f18936fdb107 (patch) | |
tree | efaac35d84f0b914f62b1dfaa9f7b0d9be0206cb /src/algebra/float.spad.pamphlet | |
parent | 451422777355655abc12203831db9d067762fb06 (diff) | |
download | open-axiom-f61d3a323d0b382ec67245137f23f18936fdb107.tar.gz |
* algebra/seg.spad.pamphlet (SegmentCategory): Extend
ConvertibleFrom S.
* algebra/newpoint.spad.pamphlet (PointCategory): Extend
ConvertibleFrom List R.
* algebra/misc.spad.pamphlet (SingletonAsOrderedSet): Now
ConvertibleTo Symbol.
* algebra/integer.spad.pamphlet (RomanNumeral): Now
ConvertibleFrom Symbol.
* algebra/float.spad.pamphlet (Float): Now ConvertibleFrom SF.
* algebra/sex.spad.pamphlet (SExpressionCategory): Extend
ConvertibleFrom Str, ConvertibleFrom Sym, ConvertibleFrom Int,
ConvertibleFrom Flt, ConvertibleFrom List %.
Diffstat (limited to 'src/algebra/float.spad.pamphlet')
-rw-r--r-- | src/algebra/float.spad.pamphlet | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/algebra/float.spad.pamphlet b/src/algebra/float.spad.pamphlet index 58606834..9e38598f 100644 --- a/src/algebra/float.spad.pamphlet +++ b/src/algebra/float.spad.pamphlet @@ -120,7 +120,8 @@ N ==> NonNegativeInteger Float(): Join(FloatingPointSystem, DifferentialRing, ConvertibleTo String, OpenMath,_ - CoercibleTo DoubleFloat, TranscendentalFunctionCategory, ConvertibleTo InputForm) with + CoercibleTo DoubleFloat, TranscendentalFunctionCategory, _ + ConvertibleTo InputForm,ConvertibleFrom SF) with _/ : (%, I) -> % ++ x / i computes the division from x by an integer i. _*_*: (%, %) -> % @@ -151,8 +152,6 @@ Float(): ++ log2(x) computes the logarithm for x to base 2. log10: % -> % ++ log10(x) computes the logarithm for x to base 10. - convert: SF -> % - ++ convert(x) converts a \spadtype{DoubleFloat} x to a \spadtype{Float}. outputFloating: () -> Void ++ outputFloating() sets the output mode to floating (scientific) notation, i.e. ++ \spad{mantissa * 10 exponent} is displayed as \spad{0.mantissa E exponent}. |