more useful options | |
PerlMonks |
Re: Good to about 45 places; spigot algorithmby jdalbec (Deacon) |
on Jul 22, 2004 at 03:06 UTC ( [id://376449]=note: print w/replies, xml ) | Need Help?? |
The inaccuracy appears to be the result of roundoff error; use bigint; or use Math::BigInt ':constant'; (as suggested by tachyon and bageler) fixes that also. Also, my algorithm is streaming in Gibbons' sense. It represents the continued fraction as a composition of linear fractional transformations.
In Section
Obfuscated Code
|
|