[Date Index]
[Thread Index]
[Author Index]
Re: Continued Fraction Trouble
*To*: mathgroup at smc.vnet.net
*Subject*: [mg111068] Re: Continued Fraction Trouble
*From*: Nicholas <physnick at gmail.com>
*Date*: Mon, 19 Jul 2010 02:09:27 -0400 (EDT)
*References*: <i1u1ur$7ph$1@smc.vnet.net>
On Jul 18, 1:03 am, Bob Hanlon <hanl... at cox.net> wrote:
> On my system, I do not get the behavior that you showed
>
> $Version
>
> 7.0 for Mac OS X x86 (64-bit) (February 19, 2009)
>
> quadcon[a_, c_, n_] :==
> FromContinuedFraction[Take[Flatten@
> Table[{a c, a}, {1/8 (6 + 4 n)}], n]]
>
> data == Table[quadcon[1, -5, i], {i, 1, 200}];
>
> N[data, 2]
>
> {-5.0,-4.0,-3.8,-3.7,-3.6,-3.6,-3.6,-3.6,-3.6,-3.6,-3.6,-3.6,-3.6,-3.6,-3=
.6,-3.6,-3.6,-3.6,-3.6,-3.6,-3.6,-3.6,-3.6,-3.6,-3.6,-3.6,-3.6,-3.6,-3.6,-3=
.6,-3.6,-3.6,-3.6,-3.6,-3.6,-3.6,-3.6,-3.6,-3.6,-3.6,-3.6,-3.6,-3.6,-3.6,-3=
.6,-3.6,-3.6,-3.6,-3.6,-3.6,-3.6,-3.6,-3.6,-3.6,-3.6,-3.6,-3.6,-3.6,-3.6,-3=
.6,-3.6,-3.6,-3.6,-3.6,-3.6,-3.6,-3.6,-3.6,-3.6,-3.6,-3.6,-3.6,-3.6,-3.6,-3=
.6,-3.6,-3.6,-3.6,-3.6,-3.6,-3.6,-3.6,-3.6,-3.6,-3.6,-3.6,-3.6,-3.6,-3.6,-3=
.6,-3.6,-3.6,-3.6,-3.6,-3.6,-3.6,-3.6,-3.6,-3.6,-3.6,-3.6,-3.6,-3.6,-3.6,-3=
.6,-3.6,-3.6,-3.6,-3.6,-3.6,-3.6,-3.6,-3.6,-3.6,-3.6,-3.6,-3.6,-3.6,-3.6,-3=
.6,-3.6,-3.6,-3.6,-3.6,-3.6,-3.6,-3.6,-3.6,-3.6,-3.6,-3.6,-3.6,-3.6,-3.6,-3=
.6,-3.6,-3.6,-3.6,-3.6,-3.6,-3.6,-3.6,-3.6,-3.6,-3.6,-3.6,-3.6,-3.6,-3.6,-3=
.6,-3.6,-3.6,-3.6,-3.6,-3.6,-3.6,-3.6,-3.6,-3.6,-3.6,-3.6,-3.6,-3.6,-3.6,-3=
.6,-3.6,-3.6,-3.6,-3.6,-3.6,-3.6,-3.6,-3.6,-3.6,-3.6,-3.6,-3.6,-3.6,-3.6,-3=
.6,-3.6,-3.6,-3.6,-3.6,-3.6,-3.6,-3.6,-3.6,-3.6,-3.6,-3.6,-3.6,-3.6,-3.6,-3=
.6,-3.6,-3.6,-3.6,-3.6,-3.6}
>
> However, asking for low precision calculations is not conducive to good r=
esults. Recommend that you use NumberForm to control what is displayed
>
> NumberForm[data // N, {4, 1}]
>
> Bob Hanlon
Bob,
Thank you very much for testing this, and I am surprised that you did
not get the behavior I was talking about. I ran into this trouble on
both of my systems:
7.0 for Microsoft Windows (32-bit) (November 10, 2008)
and
7.0 on a 64-bit Linux distribution at work.
However, I tried it with
5.0 for Microsoft Windows (June 11, 2003)
that happened to be on my system, and I did not seem to encounter the
problem, could it be an earlier version of 7 that is causing the
problem? Would this be fixed with an update? I think I will contact
support.
Additionally, I was interested in the exact results, but to display
them for troubleshooting purposes on the MathGroup, I chose to display
the problem using N since the exact rational numbers would have been
overkill, but I will use NumberForm in the future.
Anyway, thank you for your help.
Nick.
Prev by Date:
**Re: Problems with Workbench Debugger Breakpoints**
Next by Date:
**Re: Show left hand side**
Previous by thread:
**Re: Continued Fraction Trouble**
Next by thread:
**Re: Continued Fraction Trouble**
| |