Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2004
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2004

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

Search the Archive

Re: RealDigits bug?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg46050] Re: RealDigits bug?
  • From: Enrique Zeleny <ezeleny at fismat1.fcfm.buap.mx>
  • Date: Tue, 3 Feb 2004 18:20:55 -0500 (EST)
  • Sender: owner-wri-mathgroup at wolfram.com

Hi

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"
integers.
Someone at WRI knows when this bug is produced? Some way to fix
it?

Enrique Zeleny
Universidad Autonoma de Puebla
Mexico


adam.smith at hillsdale.edu (Adam Smith) wrote in message
news:<bv82tq$i97$1 at smc.vnet.net>...
> 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