[Maxima] Floating point problems

Richard Fateman fateman at eecs.berkeley.edu
Mon Jan 30 09:08:15 CST 2012


On 1/29/2012 6:45 PM, Andrew Davis wrote:
> Is there a standard way to convert between the two forms in memory 
> then? .8 <-> 4/5 , -8.14 <-> -814/100?
rationalize(x) gets the EXACT rational equivalent.

ratdisrep(rat(x))  gets an approximation, depending on ratepsilon.  Read 
the  manual.



More information about the Maxima mailing list