showing decimals of irrational numbers and irregularfractions
Subject: showing decimals of irrational numbers and irregularfractions
From: Mario Rodriguez
Date: Tue, 22 Jan 2008 21:47:13 +0100
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