|
Boost : |
Subject: Re: [boost] [mpl-cf] [RFC] MPL Real Numbers using Continued Fractions
From: Scott McMurray (me22.ca+boost_at_[hidden])
Date: 2010-11-29 21:11:36
On Mon, Nov 29, 2010 at 07:24, Hal Finkel <half_at_[hidden]> wrote:
> On Mon, 2010-11-29 at 11:07 +0100, Mathias Gaunard wrote:
>>
>> It would be nice to know what minimum value is necessary to provide
>> correctly rounded results for IEEE754 floats and doubles.
>>
>
> This depends on the number: For a rational, you need only two
> integers ;) For a general real number, it depends on the rate of
> convergence.
>
Wouldn't it be bounded by the number of terms needed for a
sufficiently-precise Phi, since it's the slowest-converging CF?
~ Scott
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk