Pi is defined as the ratio of $\frac{c}{r}$. Many ancient scintist try to find the value of pi. Some of the values are $\frac{22}{7}$(good hold upto 10 decimal point), $\frac{355}{113}$ (good hold upto 63 Decimal point). modern computer determine upto million decimal point.

my qustion is that how ( algorithm or formula ) modern computer find the value of pi ?

  • $\begingroup$ 113/355?-I think you typed something wrong $\endgroup$ – Ahmed S. Attaalla Apr 22 '16 at 4:36
  • $\begingroup$ One simple yet not very accurate way is to use probability. $\endgroup$ – Colescu Apr 22 '16 at 4:38
  • $\begingroup$ Nop, i dont't want any guss. I need exect way of algo. That modern computer follow to find exect value of pi. $\endgroup$ – Prashant Apr 22 '16 at 4:40
  • 2
    $\begingroup$ Also, $\pi$ is not "defined as the ratio $\frac{c}{r}$." It is $\frac{c}{d}$. $\endgroup$ – Joel Reyes Noche Apr 22 '16 at 4:51
  • 1
    $\begingroup$ Why do you say $22/7$ is a "good hold upto 10 decimal point"? $\pi=3.141592...$ and $22/7=3.142857...$ and they differ at the third decimal place. $\endgroup$ – Joel Reyes Noche Apr 22 '16 at 4:57

There are many formulas after the development of calculus, mostly in the form of infinite series. For a simple example, it is a fact that $$\pi=4\left(1-\frac{1}{3}+\frac{1}{5}-\frac{1}{7}+\cdots\right).$$ (This can be seen through the Taylor series of arctan x). This is a simple example, but it converges really slowly; you need about 100 terms to get the 3.14 value. There are more sophisticated formulas, but I hope this gave you the idea.


Not the answer you're looking for? Browse other questions tagged or ask your own question.