[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Axiom-developer] PATCH : float2Sex (was Compiler coercion and DoubleFlo
From: |
Vanuxem Grégory |
Subject: |
[Axiom-developer] PATCH : float2Sex (was Compiler coercion and DoubleFloat) |
Date: |
Thu, 02 Mar 2006 23:05:06 +0100 |
Hi,
Le jeudi 02 mars 2006 à 01:10 -0500, root a écrit :
> Greg,
>
> Can you send me a patch of the change you propose so I can apply it
> and test it?
Attached is the patch (pf2sex.patch) that allows the use
of DoubleFloat by default in the interpreter. Test it.
(1) -> 1.7+7.2
(1) 8.9
Type: Float
(2) -> 1.7-7.2
(2) - 5.5
Type: Float
(3) -> -1.7-7.2
(3) - 8.9
Type: Float
(4) -> )boot $useBFasDefault:=false
(SPADLET |$useBFasDefault| NIL)
Value = NIL
(4) -> 1.7+7.2
(4) 8.9000000000000004
Type: DoubleFloat
(5) -> 1.7-7.2
(5) - 5.5
Type: DoubleFloat
(6) -> -1.7-7.2
(6) - 8.9000000000000004
Type: DoubleFloat
Cheers,
Greg
> Tim
>
PS: For those who use the Doublefloat domain
there is an another (undocumented) patch that adds a
lisp format to the DoubleFloat output routine. Copy
int/algebra/DFLOAT.spad to your working directory,
patch it, compile it and ")lib" it when necessary.
(1) -> )boot $useBFasDefault:=false
(SPADLET |$useBFasDefault| NIL)
Value = NIL
(1) -> a:= matrix [[0.5978,0.2356], [0.4512,0.2355]]
+ 0.5978 0.2356 +
(1) | |
+0.45119999999999999 0.23549999999999999+
Type: Matrix DoubleFloat
(2) -> )lib DFLOAT
DoubleFloat is now explicitly exposed in frame initial
DoubleFloat will be automatically loaded when needed
from /home/greg/Axiom/DFLOAT.NRLIB/code
(2) -> doubleFloatFormat("~,4,,F")
(2) "~G"
Type: String
(3) -> a
+0.5978 0.2356+
(3) | |
+0.4512 0.2355+
Type: Matrix DoubleFloat
pf2sex.patch
Description: Text Data
DFLOAT.patch
Description: Text Data