π

Follow this link to 32 series expansions for π. Below are three selections you will code...

Series 1
Series 2 Series 3

 

  1. Create the project, Transcendentals
  2. To the project, add the static class, NumericalMethods. Add the static constant EPSILON defined as 1E-10.
  3. Within the NumericalMethods class, implement the series defined above within the static methods, pi1(), pi2(), and pi3(), respectively. Each method returns the most accurate approximation possible, as limited by the value of EPSILON.
  4. Add statements within the main method of Transcendentals that display the result of calls to each of the NumericalMethods' π methods.