Originally posted by Dr StrangeloveOh God.
Huh? I think the "formula" for pi is 22/7.
22/7 ~= 3.142857
pi ~= 3.1415926535
(In this situation I'm using ~= to be approximately equal as I can't type the actual symbol rather than the matlab definition of not equal (stupid matlab why can't you use != ?)
There are various methods for calculating pi. One that I mentioned in my previous post was one where the nth digit of pi in the base2 or base16 can be calculated. Others use comparisons between many million sided shapes and circles. There are also infinite series whose sums are pi. However, all of these methods require time heavily dependant on the length of pi to calculated.
22/7 is a handy approximation for pi when have to find a circular area and don't have a calculator.
Originally posted by XanthosNZThere was a recent breakthrough in the calculation of PI.
Oh God.
22/7 ~= 3.142857
pi ~= 3.1415926535
(In this situation I'm using ~= to be approximately equal as I can't type the actual symbol rather than the matlab definition of not equal (stupid matlab why can't you use != ?)
There are various methods for calculating pi. One that I mentioned in my previous post was one where the nth digit of pi i ...[text shortened]... is a handy approximation for pi when have to find a circular area and don't have a calculator.
With this formula, you give it the postion number of the digit you
want and the formula popps it out. Like what is the 3 trillionths
digit, plug that # in and you get the right answer every time and
you don't need to know any of the previous #'s.
I will snoop it out and show you the link.e
Here is one, not sure if its the one but you mentioned on capable
of making the Nth digit but in binary or Hex. This is it.
http://crd.lbl.gov/~dhbailey/
I thought I saw one that generated it in decimal but may be wrong.