Services & Resources / Wolfram Forums
MathGroup Archive
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2007

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

Search the Archive

Re: Using N function

  • To: mathgroup at
  • Subject: [mg76282] Re: [mg76270] Using N function
  • From: Carl Woll <carlw at>
  • Date: Sat, 19 May 2007 04:30:38 -0400 (EDT)
  • References: <>

kkwweett wrote:

>Good morning Mathematica users,
>Can anyone tell me, please, which of a),b) or c) is wrong :
>N[expr] is equivalent to N[expr, MachinePrecision].
>In[1]:=N[Exp[Sqrt[163 ]Pi] - 640320^3]
>In[2]:=N[Exp[Sqrt[163 ]Pi] - 640320^3,$MachinePrecision]
>Thank you
None of them are wrong. Perhaps you meant to use the following in part c?

In[32]:= N[Exp[Sqrt[163] Pi] - 640320^3, MachinePrecision]
Out[32]= 256.

Note the use of MachinePrecision instead of $MachinePrecision.

Carl Woll
Wolfram Research

  • Prev by Date: Re: 64-bit again
  • Next by Date: [6] how to print or save help pages ? PDF?
  • Previous by thread: Using N function
  • Next by thread: Re: Using N function