3 ms·
> If it can be specified by a finite sequence of operations... Hmm... are you saying that, for example, pi is the one-step sequence of operations of dividing a
by mannykannot 6y ago
> If it can be specified by a finite sequence of operations...
Hmm... are you saying that, for example, pi is the one-step sequence of operations of dividing a circle's circumference by its diameter? But first, you have to get both those values...
- lopmotr 6y agoAn algorithm for computing pi would be a finite sequence of operations. Even if the operations include "do an infinite loop".
- eru 6y agoPedantically enough, by formal definitions algorithms have to finish. See eg https://en.wikipedia.org/wiki/Algorithm https://en.wikipedia.org/wiki/Algorithm In practice, speaking informally, people talk about programs that may run forever all the time. People have developed lots of theory around those as well. Of specific interest here would be the class of programs that provably only runs for a finite time before it produces the next bit of output. You need that latter class of programs to talk about producing digits of pi, or running the main loop of an OS. See also https://en.wikipedia.org/wiki/Total_functional_programming https://en.wikipedia.org/wiki/Total_functional_programming
- mannykannot 6y agoThen, I would say, you would be publishing a fact about pi, not pi itself. These facts do not yield pi in any finite time.
- tsimionescu 6y agoThere are simple formulas for computing Pi. For example Pi can be computed to arbitrary precision as 4 * (1 - 1/3 + 1/5 - 1/7...).