how to have maxima simply print out the numerical result of a fraction with a given number of decimals
Subject: how to have maxima simply print out the numerical result of a fraction with a given number of decimals
From: Joshua Stults
Date: Wed, 10 Jun 2009 13:11:39 -0400
Maxima has a fine manual online:
http://maxima.sourceforge.net/documentation.html
Answers to your question (and other neat stuff) can be found in
section 10, 'Floating Point'.
Maxima also has help available from a session, type at the prompt:
?? bfloat;
On Wed, Jun 10, 2009 at 12:47 PM, Julien Martin<balteo at gmail.com> wrote:
> Hello,
>
> I have the following result in maxima:
>
> [f[9,1]=252579733984735426376574481521[47
> digits]378387682413702310286416708245/566475308550061162716947573847[45
> digits]773740127237439923328368742991,f[9,2]=175703475485725356281469515155[43
> digits]820986456392040553920256011725/443841815051368144415065089593[41
> digits]014242242429463091743581318557,
> f[9,3]=150712685609349796599408049191[46
> digits]956333419191027921406085519645/435750237346200894397651979882[44
> digits]674903086710572301794489903307,f[9,4]=304732391019938968564161363846[46
> digits]880727848246409836480595509935/102995510645465665948535922517[45
> digits]595225477679534531514248862362,f[9,5]=
> 449981422940334018594339004234[47
> digits]300033314490575270597140460255/183015099685404375647013831550[46
> digits]345929641844036675368575938894,f[9,6]=332887119279974696608814804907[47
> digits]945260331637923312861819900000/169942592565018348815084272154[46
> digits]321220381712319769985106228973,f[9,7]=
> 676398964707785358322203788719[46
> digits]493490509587282530379457388875/463479797904595496768411651329[45
> digits]178514649557905391814119880629,f[9,8]=397067274285175422784973223068[45
> digits]583985846088043297740534858625/412816014327979794692512401994[44
> digits]428855555831068496436885171554,f[9,9]=
> 388768512311966660292701783529[45
> digits]709818817174808062141732298005/825632028655959589385024803988[44
> digits]857711111662136992873770343108]
>
> I would like for maxima to give me the numerical result i.e. not a fraction
> and furthermore I would like to specify the number of decimal I want.
>
?? fpprec;
?? fpprintprec;
> Any clue welcome.
>
> Julien.
>
>
>
> _______________________________________________
> Maxima mailing list
> Maxima at math.utexas.edu
> http://www.math.utexas.edu/mailman/listinfo/maxima
>
>
Those should get you off in the right direction.
--
Joshua Stults
Website: http://j-stults.blogspot.com