On Feb 13, 2:09 am, Stan Schymanski <schym...@gmail.com> wrote:

> sage: sage: var('a b c')
> (a, b, c)
> sage:  ((a*b - 0.5*a*(b - c))/a).simplify_radical()
> 0

I guess Sage has keepfloat=true somewhere.
That seems to trigger a bug in Maxima.

(%i7) radcan ((a*b - 0.5*a*(b - c))/a), keepfloat=true;
(%o7) 0
(%i8) radcan ((a*b - 0.5*a*(b - c))/a), keepfloat=false;

`rat' replaced -0.5 by -1/2 = -0.5
(%o8) (c+b)/2


If you have time please submit a bug report.
http://sourceforge.net/tracker/?func=add&group_id=4933&atid=104933

Does python have a built-in rational type?
If so maybe that would obviate keepfloat.
Maxima would rather work in exact numbers FWIW.

Robert Dodier

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-devel@googlegroups.com
To unsubscribe from this group, send email to 
sage-devel-unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to