By setting numer:true, you are asking Maxima to perform all calculations in
ordinary floating-point. So when you write bfloat(1/11), Maxima first
calculates 1/11 as a floating point number, and *then* converts it to a
bigfloat.
Just turn off numer:true.
(%i1) numer:false$
(%i2) fpprec:500$
(%i3) bfloat(1/11);
(%o3)
9.090909090909090909090909090909090909090909090909090909090909090909090909090909090909090909090909090909090909090909090909090909090909090909090909\
09090909090909090909090909090909090909090909090909090909090909090909090909090909090909090909090909090909090909090909090909090909090909090909090909090909\
09090909090909090909090909090909090909090909090909090909090909090909090909090909090909090909090909090909090909090909090909090909090909090909090909090909\
090909090909090909090909090909090909090909090909091b-2
Compare:
(%i4) bfloat(float(1/11));
(%o4)
9.09090909090909116141432377844466827809810638427734375b-2
On Sat, Sep 17, 2011 at 13:10, Pere Castellv? <pcastellvi at gmail.com> wrote:
> Hi all,
>
> How can I get a lot of correct decimal places of a rational numer? I tried
>
> numer: true$
> fpprec:500$
> bfloat(1/11);
> 9.09090909090909116141432377844466827809810638427734375b-2
>
> which doesn't have 500 figures neither are correct!
>
> Best regards
>
> Pere
>
> PS: I apologize for my english
> _______________________________________________
> Maxima mailing list
> Maxima at math.utexas.edu
> http://www.math.utexas.edu/mailman/listinfo/maxima
>