Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Questions of pi

  1. Mar 13, 2005 #1
  2. jcsd
  3. Mar 13, 2005 #2
  4. Mar 13, 2005 #3
    There are integrals and series that converge exactly to [tex]\pi[/tex]. In the case of integrals, we can approximate their values numerically to arbitrary precision, and in the case of series, we can evaluate enough terms so that the sum is as close as we like to the real decimal representation. Some examples are

    [tex]\pi = 2\int_{-1}^1 \sqrt{1-x^2} dx[/tex]


    [tex]\pi = 2\sum_{k=0}^\infty \frac{n!}{(2n+1)!!}[/tex]

    The integral above is just the area of a circle of radius 1, and the series is one derived due to a theorem by Euler. These and many more can be viewed at http://mathworld.wolfram.com/PiFormulas.html.

    There are much more computationally efficient algorithms used to calculate [tex]\pi[/tex] quickly by programs like SuperPi.
  5. Mar 13, 2005 #4


    User Avatar
    Science Advisor
    Homework Helper

    The technique of "multi-precision" and other methods are used. Essentially, you store individual digits in arrays and do the arithmetic on the elements of the array. Check out "PIFAST" on the web (it's free) and is the fastest program to calculate PI and other numbers to lots of digits. I used it to calcuate e to 500 million places. Why? Uhhhhh ... for fun?

    Oh yea, how do I know it's correct? Well, if you work with multi-precision, even write programs for doing it, you gain confidence that the algorithms are sound. I was very skeptical at first but after writing software for it, I'm 100% confident the results are correct.
    Last edited: Mar 13, 2005
  6. Mar 14, 2005 #5
    Kinda OT, but did anyone know that today is National Pi Day (because the date is 3.14).

    Happy Pi Day to all!


    The Rev
  7. Mar 14, 2005 #6


    User Avatar
    Science Advisor
    Homework Helper
    Gold Member
    Dearly Missed

    Gee, is it Pi Day today?
    Thanks for informing me..:approve:
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Have something to add?

Similar Discussions: Questions of pi
  1. Question on Pi (Replies: 12)

  2. Questioning of pi (Replies: 26)