sqrt vs ^0.5



rationalize(.1) => 3602879701896397 / 36028797018963968

On Thu, Nov 10, 2011 at 13:26, Pheonix <ph0enix2011-list at yahoo.cn> wrote:

> On Thu, 2011-11-10 at 10:04 -0800, Richard Fateman wrote:
> > >
> > > Hope this helps
> >
> > Actually, 0.1 is not equal to 1/10.
> >
> > 0.1  is a floating point number which is converted to double-float
> > binary, in which internal form it is
> > exactly equal to 3602879701896397/2^55.
> >
> > This is NOT exactly equal to 1/10. They differ by 1/180143985094819840
> > or   1/(5*2^55).
>
> Hi Richard,
>
> In what way do you get the exact internal representation of double-float
> 0.1 inside maxima ?
>
> Dan
>
> _______________________________________________
> Maxima mailing list
> Maxima at math.utexas.edu
> http://www.math.utexas.edu/mailman/listinfo/maxima
>