[Maxima] floating point test suite
Edwin Woollett
woollett at charter.net
Fri Aug 7 17:04:49 CDT 2009
On Aug. 7, 2009, Barton Willis wrote:
-------------------------------------------------
ssing x86 Clozure CL 1.4, these tests pass:
----mytest1.mac
2/3;
2/3;
2.0/3;
0.6666666666666666;
----------------
Whence 0.6666666666666666?
(%i5) 2.0/3;
(%o5) 0.666666666666667
(%i6) ?print(%);
0.6666666666666666
----------------------------
Thanks for the solution!
-------------------------------------
my new mytest1.mac:
---------------------------
/* mytest1.mac */
2/3;
2/3;
2.0/3;
0.66666666666666663;
-------------------------------
and record of batch, test run:
------------------------------
(%i1) display2d:false$
(%i2) 2.0/3;
(%o2) 0.66666666666667
(%i3) ?print(%);
0.66666666666666663
(%o3) 0.66666666666667
(%i4) batch ("mytest1.mac",test )$
Error log on #<output stream mytest1.ERR>
********************** Problem 1 ***************
Input:
2/3
Result:
2/3
... Which was correct.
********************** Problem 2 ***************
Input:
2.0/3
Result:
0.66666666666667
... Which was correct.
2/2 tests passed.
-------------------------
Thanks again!!
Ted
More information about the Maxima
mailing list