[Maxima] strange result with keepfloat
Barton Willis
willisb at unk.edu
Tue Nov 24 16:14:15 CST 2009
I think this works for me:
(%i4) linsolve([y+4.1*x = 1,y+3*x = 3],[x,y]), keepfloat;
(%o4) [x = -1.818181818181819,y = 8.454545454545457]
(%i5) build_info();
Maxima version: 5.19post
Maxima build date: 18:54 11/1/2009
Host type: i686-pc-mingw32
Lisp implementation type: Clozure Common Lisp
Lisp implementation version: Version 1.4-dev (WindowsX8632)
Barton
-----maxima-bounces at math.utexas.edu wrote: -----
>To: maxima at math.utexas.edu
>From: Gosse michel <michel.gosse at free.fr>
>Sent by: maxima-bounces at math.utexas.edu
>Date: 11/24/2009 02:12PM
>Subject: [Maxima] strange result with keepfloat
>
>Hello
>
>I can't explain why maxima return this when i add the keepfloat option
>to true :
>
>(%i1) linsolve([y+4.1*x = 1,y+3*x = 3],[x,y]);
>`rat' replaced 4.1 by 41/10 = 4.1
>(%o1) [x=-20/11,y=93/11]
>(%i2) float(%), numer;
>(%o2) [x=-1.818181818181818,y=8.454545454545455]
>
>All is OK
>
>(%i3) keepfloat:true;
>(%o3) true
>(%i4) linsolve([y+4.1*x = 1,y+3*x = 3],[x,y]);
>(%o4) [x=-1,y=9]
>
>The result is false. I have changed fpprec, but no change.
>is this a bug ?
>
>Best regards
>_______________________________________________
>Maxima mailing list
>Maxima at math.utexas.edu
>http://www.math.utexas.edu/mailman/listinfo/maxima
More information about the Maxima
mailing list