MathGroup Archive 2008

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

Search the Archive

Re: Pi is not a real number?

Sebastian Meznaric wrote:
> Try this in Mathematica
> RealDigits[\[Pi], 10, 3, -10^9]
> The answer you get:
> RealDigits::realx: The value \[Pi] is not a real number. >>
> I am using 6.0.0.

That's right, in Mathematica Pi is not a "number", but a "symbol". 
Head[Pi] === Symbol and Head[3.14] === Real.  The digits of Pi must be 
explicitly calculated using N[Pi, 100 (* number of digits)* ] before 
RealDigits can be used on it.  But most probably you will not be able to 
use Mathematica to calculate 10^9 digits of Pi (unless you have a huge 
amount of memory).  Instead, I suggest using a specialized program or an 
online database such as

Also see this thread:

  • Prev by Date: Re: Question on Sum[] function
  • Next by Date: Re: LevenbergMarquardt
  • Previous by thread: RE: Re: Pi is not a real number - the News from Mathematica Mathgroup
  • Next by thread: Re: Pi is not a real number?