MathGroup Archive 2003

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: diffrence between ver 3.01 and 4.1 regarding N[]?


Hi,

try FullForm to see all digits of a floating point number
that is truncated by the Print/Output functions.

Regards
  Jens

peter weijnitz wrote:
> 
> I tried some of my Mathematica3.01 programs on a computer with
> Mathematica4.1,
>  there where some differences that I could not explain.
> 
>  Regarding N[]: consider for example:
> with version 4.1 I got:
> 
> N[Sqrt[2.],16]->1.4142
> and
> N[Sqrt[2.],17]->1.4142135623730950
> 
> and in version 3.01:
> 
> N[Sqrt[2.],16]->1.414213562373095
> and
> N[Sqrt[2.],17]->1.4142135623730950
> 
> Using SetPrecision[Sqrt[2.],16] I could make Mathematica4.1 give me 16
> digits precision.
> Ideas?
> 
> Peter W


  • Prev by Date: Re: Random Trouble
  • Next by Date: Re: Package creation
  • Previous by thread: RE: diffrence between ver 3.01 and 4.1 regarding N[]?
  • Next by thread: Re: Help DSolve