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.
- Follow-Ups:
- Re: Re: Pi is not a real number?
- From: Andrzej Kozlowski <akoz@mimuw.edu.pl>
- Re: Re: Pi is not a real number?