MathGroup Archive 2004

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

Search the Archive

Re: RealDigits bug?

  • To: mathgroup at
  • Subject: [mg46050] Re: RealDigits bug?
  • From: Enrique Zeleny <ezeleny at>
  • Date: Tue, 3 Feb 2004 18:20:55 -0500 (EST)
  • Sender: owner-wri-mathgroup at


The bug appears in Mathematica 5.0, the error is not produced by N,
because if you see the result generated by N, it doesn't contain 1's
between the trail of 0's, as expected because pisot numbers are "nearly"
Someone at WRI knows when this bug is produced? Some way to fix

Enrique Zeleny
Universidad Autonoma de Puebla

adam.smith at (Adam Smith) wrote in message
news:<bv82tq$i97$1 at>...
> Bobby,
> What version of Mathematica are you using?  I am running Version 4.1
> and it does not include 10 in the Frequencies list
> In[3]:=
> Frequencies[First[RealDigits[ pisot]]]
> Out[3]=
> {{2089,0},{422,1},{427,2},{434,3},{467,4},{444,5},{452,6},{447,7},{437,
>     8},{381,9}}
> In response to Enrique.  I suspect that the failure is related to a
> misunderstanding of the N[] function.  In particular look in the Help
> for N[] and study the $MaxMachineNumber and $MaxPrecision.  Since your
> pisot is on the order of 10^3340, you may be running into truncation
> errors with N[].  On my machine $MaxMachineNumber is around 10^308.
> Since pisot is clearly much greater than this, I would expect
> truncation errors.
> Adam Smith

  • Prev by Date: Re: Notation for Complex Conjugation
  • Next by Date: RE: How to plot...
  • Previous by thread: Re: RealDigits bug?
  • Next by thread: Request from Design Science