MathGroup Archive 2008

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

Search the Archive

Re: Pi is not a real number?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg86632] Re: Pi is not a real number?
  • From: Bill Rowe <readnews at sbcglobal.net>
  • Date: Sat, 15 Mar 2008 17:43:21 -0500 (EST)

On 3/15/08 at 3:11 AM, meznaric at gmail.com (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. >>

The problem is Pi is a symbol and RealDigits wants a number. Use
N to convert Pi to a number then use RealDigits. Also, the
fourth argument to RealDigits is expected to be an integer. So,
putting this together

In[3]:= RealDigits[N[\[Pi]], 10, 3, -9]

Out[3]= {{3,5,8},-8}

is the result I think you were looking for.


  • Prev by Date: Re: Re: Increasing RandomInteger speed
  • Next by Date: Operate on Heads
  • Previous by thread: Pi is not a real number?
  • Next by thread: Re: Re: Pi is not a real number?