π can be computed using the following series:
m(i) = 4(1 - 1/3 + 1/5 - 1/7 + 1/9 - 1/11 + . . . + (-1)i+1/(2i - 1) )
Write a function that returns m(i) for a given i and write a test program that displays the following table:
i m(i)1 4.0000101 3.1515201 3.1466301 3.1449401 3.1441501 3.1436601 3.1433701 3.1430801 3.1428901 3.1427
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here