MathGroup Archive 2000

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

Search the Archive

Re: About N in Mathematica 4


I don't think the documented definition of N really changed.  Rather,
with Mathematica 3.0, people were relying upon an undocumented "feature"
of the way the results of N were displayed.

"J. Leko" wrote:
> 
> Ahhh...
> 
> It sounds like you're coming from an older version of Mathematica. I too
> had this problem when I switched to 4.0. It appears that the definition of
> the N function has changed since then. What you now need to use is the
> NumberForm function (section 2.8.7). It seems to operate in a fashion
> similar to the old N.
> 
> Regards,
> 
> J. Leko
> 
> Please reply to leko*j at cspar.uah.edu and remove the *
> 
> In article <8qhn06$j09 at smc.vnet.net>, "Sistrall" <silvano.stralla at tin.it> wrote:
> 
> > Hi!
> >
> > I've a question about the function N in Mathematica 4. I haven't found
> > information about this problem.
> >
> > The question is: why if I use N[Pi,30] I'll have a number of 30 decimal
> > digits, but with N[Pi,10] or N[Pi,3] I'll get a number of 6 digits?
> >
> > The right number of digits is given only if I use a precision bigger than
> > the precision of the machine. But if I want a number of 3 decimal digits?
> >
> > Thanks.

-- 
Murray Eisenberg                     murray at math.umass.edu
Mathematics & Statistics Dept.       phone 413 549-1020 (H)
Univ. of Massachusetts                     413 545-2859 (W)
Amherst, MA 01003-4515


  • Prev by Date: Re: Differential operators, Help
  • Next by Date: Re: filtering data
  • Previous by thread: Re: About N in Mathematica 4
  • Next by thread: Mathematic problem with backtrack