π can be computed using the following series: m(i) = XXXXXXXXXX/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...


π 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.0000
101    3.1515
201    3.1466
301    3.1449
401    3.1441
501   3.1436
601   3.1433
701   3.1430
801   3.1428
901   3.1427



Jun 09, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here