Re: Re: Pi is not a real number?
- To: mathgroup at smc.vnet.net
- Subject: [mg86658] Re: [mg86632] Re: Pi is not a real number?
- From: Andrzej Kozlowski <akoz at mimuw.edu.pl>
- Date: Sun, 16 Mar 2008 04:40:40 -0500 (EST)
- References: <200803152243.RAA09832@smc.vnet.net>
I find it a little strange that so many persons have posted an answer similar to the one below (that is, about PI being a symbol, the need to use N, etc) without bothering to check that (for exmple) RealDigits[Pi, 10, 3, -10^4] {{8, 5, 6}, -9999} without any need to use N. Moreover: RealDigits[2, 10, 3, -10^9] General::"ovfl" : "Overflow occurred in computation. Andrzej Kozlowski On 15 Mar 2008, at 23:43, Bill Rowe wrote: > 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. >
- References:
- Re: Pi is not a real number?
- From: Bill Rowe <readnews@sbcglobal.net>
- Re: Pi is not a real number?