[Maxima] floating point test suite
Barton Willis
willisb at unk.edu
Fri Aug 7 16:28:38 CDT 2009
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
Barton
-----maxima-bounces at math.utexas.edu wrote: -----
>To: "maxima mailing list" <maxima at math.utexas.edu>
>From: "Edwin Woollett" <woollett at charter.net>
>Sent by: maxima-bounces at math.utexas.edu
>Date: 08/07/2009 04:04PM
>Subject: [Maxima] floating point test suite
>
>This has probably been discussed all over the place,
>but my google of the mailing list didn't find something
>that satisfied.
>
>The contents of mytest1.mac :
>----------------------------
>/* mytest1.mac */
>
>2/3;
>2/3;
>2.0/3;
>0.66666666666667;
>---------------------
>My batch run in test mode:
>
>-------------------------------------
>(%i1) display2d:false$
>(%i2) 2.0/3;
>(%o2) 0.66666666666667
>(%i3) batch ( "mytest1.mac ", test )$
>********************** Problem 1 ***************
>Input:
>2/3
>Result:
>2/3
>
>... Which was correct.
>
>********************** Problem 2 ***************
>Input:
>2.0/3
>Result:
>0.66666666666667
>
>This differed from the expected result:
>0.66666666666667
>
>1/2 tests passed.
>
>The following 1 problem failed: (2)
>----------------------------------------------
>
>Maxima version: 5.18.1
>Maxima build date: 20:57 4/19/2009
>host type: i686-pc-mingw32
>lisp-implementation-type: GNU Common Lisp (GCL)
>lisp-implementation-version: GCL 2.6.8
>
>Thanks in Advance,
>Ted Woollett
>
>
>_______________________________________________
>Maxima mailing list
>Maxima at math.utexas.edu
>http://www.math.utexas.edu/mailman/listinfo/maxima
More information about the Maxima
mailing list