Re: Question on Pi
andre.maier@xxxxxxx wrote:
Hi all,
I'm looking for an algorithm that allows to calculate
a specific digit of Pi directly, whereas the only
parameter is the position of the digit.
e.g. f(2) = 4, f(3) = 1, ... and so on.
| |
int int
Does such an algorithm exist at all?
Yes. There is such an algorithm.
See
http://www.math.hmc.edu/funfacts/ffiles/20010.5.shtml
Bob Kolker
.
Relevant Pages
- Re: No Set Contains Every Computable Natural (was Church-Turing compared to Zuse-Fredkin thesis)
... Russell is right about Turing saying this, ... You might not want to call this an algorithm which has ... decimal representation of x digit by digit. ... (comp.theory) - Re: Powers and logic
... quasi wrote: ... It is easy to give an algorithm which could be calculated ... one can always find the leading digit by inspection. ... The space requirement would exceed the capacity of ... (sci.math) - Re: Large-numbers division way too slow -- what to do?
... > algorithm is now responsible for most of the slowness. ... I want to return the quotient or the remainder). ... In the division function, at the very bottom, I placed: ... processing the last digit becomes the remainder. ... (sci.crypt) - Re: continued fractions
... The "one bit at a time" algorithm is just a special case of the ... The dividend and divisor will be expressed as ... The crucial part here is the "guessing" of the digit. ... digit is 1, and the result of the subtraction is your new w; ... (comp.lang.forth) - Why are reals uncountable yet algorithms countable (long)?
... If you are going to say: construct a number from one digit ... you cannot enumerate the infinite digits.I have read that, unlike reals, ... one of these algorithms would also be an algorithm ... enumeration of algorithms cannot produce all reals? ... (sci.math) |
|