Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2000
*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 2000

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

Search the Archive

ContinuedFraction broken?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg21439] ContinuedFraction broken?
  • From: dougn_NOspam at gte.net (Doug Nelson)
  • Date: Fri, 7 Jan 2000 00:20:47 -0500 (EST)
  • Sender: owner-wri-mathgroup at wolfram.com

I've been using Mathematica 4.0 for a couple of weeks now (meaning I'm a 
newbie) and have discovered what I think may be a bug in the ContinuedFraction 
built-in function.

In[116]:=
ContinuedFraction[0.9]

Out[116]=
{0, 1}                                     * incorrect *

In[120]:=
ContinuedFraction[0.90000000001]

Out[120]=
{0, 1, 9}                                  * correct *

In[121]:=
ContinuedFraction[9/10]

Out[121]=
{0, 1, 9}                                  * correct *

The docs state that 0.9 is expanded to cover the precision of the input 
(but it's not going far enough).   The results are all the same if you 
specify a number of terms (say  ",20]").

Is this somehow pilot error?
Doug


  • Prev by Date: ParametricPlot3D without mesh
  • Next by Date: Re: Using Mathematica to Create Technical Documents
  • Previous by thread: ParametricPlot3D without mesh
  • Next by thread: Re: ContinuedFraction broken?