[Maxima] showing decimals of irrational numbers and irregularfractions

Mario Rodriguez biomates at telefonica.net
Tue Jan 22 14:47:13 CST 2008


George Leeman escribió:
>> When I type something like
>> sqrt(2)
>> or
>> 3/2
>> maxima shows it exactly as I wrote it.  Is there a way I can make it  
>> show the results in decimal form?
>> Regards
>> Justin Harford
>>     
>  
> Justin,
> 	sqrt(2), numer;
> 	3/2, numer;
> should do what you want.
or...


(%i1) numer:true$
(%i2) sqrt(2);
(%o2)                          1.414213562373095
(%i3) 3/2;
(%o3)                                 1.5
(%i4) numer:false$   /* restore default value */
(%i5) sqrt(2);
(%o5)                               sqrt(2)
(%i6) 3/2;
                                       3
(%o6)                              -
                                       2





-- 
Mario Rodriguez Riotorto
www.biomates.net



More information about the Maxima mailing list