Calculate PI using 22/7. How many decimal places is this correct to?
Can you find a different division which is accurate to more decimal places?
Try using the Gregory-Leibniz series
π = $\dfrac{4}{1} - \dfrac{4}{3} + \dfrac{4}{5} - \dfrac{4}{7} + \dfrac{4}{9} - \dfrac{4}{11} + \dfrac{4}{13} - \dfrac{4}{15}$ …
How many iterations do you need to get a number accurate to 5 decimal places?
Try using the Nilakantha series.
π = $3 + \dfrac{4}{2\times3\times4} - \dfrac{4}{4\times5\times6} + \dfrac{4}{6\times7\times8} - \dfrac{4}{8\times9\times10} + \dfrac{4}{10\times11\times12} - \dfrac{4}{12\times13\times14}$ …
Using random numbers!
Imagine you have a circle inscribed inside a square.
You then throw darts at random at the square.
The number of darts inside the circle divided the number of darts will then give you a value for PI.
Steps are…
The following formula can be used to test if X,Y is inside the circle.
$Distance = |\sqrt{X^2 + Y^2}|$
If Distance is < 1 then the dart is with the circle.
Plot some graphs showing the number of decimal places against the number of iterations.