/usr/share/axiom-20170501/input/dfloat.input is in axiom-test 20170501-3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 | )set break resume
)spool dfloat.output
)set message test on
)set message auto off
)clear all
--S 1 of 10
machineFraction(2.71828)
--R
--R
--R 382563899846521
--R (1) ---------------
--R 140737488355328
--R Type: Fraction(Integer)
--E 1
--S 2 of 10
machineFraction(2.71828@DoubleFloat)
--R
--R
--R 382563899846521
--R (2) ---------------
--R 140737488355328
--R Type: Fraction(Integer)
--E 2
--S 3 of 10
machineFraction(2.71828 :: DoubleFloat)
--R
--R
--R 382563899846521
--R (3) ---------------
--R 140737488355328
--R Type: Fraction(Integer)
--E 3
--S 4 of 10
machineFraction(eApprox : DoubleFloat := 2.71828)
--R
--R
--R 382563899846521
--R (4) ---------------
--R 140737488355328
--R Type: Fraction(Integer)
--E 4
--S 5 of 10
avg : List DoubleFloat -> DoubleFloat
--R
--R Type: Void
--E 5
--S 6 of 10
avg l ==
empty? l => 0 :: DoubleFloat
reduce(_+,l) / #l
--R
--R Type: Void
--E 6
--S 7 of 10
avg []
--R
--R Compiling function avg with type List(DoubleFloat) -> DoubleFloat
--R
--R (7) 0.
--R Type: DoubleFloat
--E 7
--S 8 of 10
machineFraction(avg [3.4,9.7,-6.8])
--R
--R
--R 1182194902184755
--R (8) ----------------
--R 562949953421312
--R Type: Fraction(Integer)
--E 8
--S 9 of 10
machineFraction(cos(3.1415926)$DoubleFloat)
--R
--R
--R 9007199254740979
--R (9) - ----------------
--R 9007199254740992
--R Type: Fraction(Integer)
--E 9
--S 10 of 10
machineFraction(cos(3.1415926 :: DoubleFloat))
--R
--R
--R 9007199254740979
--R (10) - ----------------
--R 9007199254740992
--R Type: Fraction(Integer)
--E 10
)spool
)lisp (bye)
|