Question: Numbers in a series and While loop practice Write a function piprod to determine how many terms of the above series are required to approximate
Numbers in a series and While loop practice
Write a function piprod to determine how many terms of the above series are required to approximate PI to within 0.00001 of Matlab's value for PI. The output of the function should be the number of terms. For this function there is no input, so you can define the function piprod(null) to show the users of the function there is no input. 
4n2 4n2 1 n=1 0o n2n) 2.2.4.4.6.6.8.8 (2n - 1) (2n1) 1 33 5 5 7 79 n=1 Numbers in a series and While loop practice Write a function piprod to determine how many terms of the above series are required to approximate PI to within 0.00001 of Matlab's value for PI. The output of the function should be the number of terms. For this function there is no input, so you can define the function piprod(null) to show the users of the function there is no input
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
