[Solved]-Question 3 6 Marks 4 Estimated Following Sum T 1 3 5 7 9 11 2k 1 K 0 Note Term Sum Smaller Q37248195
Python
Question 3. (6 marks) a/4 can be estimated from the following sum: t (-1) 3 5 7 9 11 2k 1 k 0 Note that each term in the sum is smaller in absolute value than the previous term. Write a function that takes a positive float, epsilon, and returns: .the estimate of. t/4, and the total number of terms that were added. You should stop the calculation when the absolute value of next term is less than epsilon. Do not add the next term to the estimate. def pi_over_4 (epsilon): “” (float)float, int) Input: A number determining the accuracy of the estimate of pi/4 Output: Returns a tuple containing an estimate of pi/4 and the number of terms summed to generate the estimate. Show transcribed image text Question 3. (6 marks) a/4 can be estimated from the following sum: t (-1) 3 5 7 9 11 2k 1 k 0 Note that each term in the sum is smaller in absolute value than the previous term. Write a function that takes a positive float, epsilon, and returns: .the estimate of. t/4, and the total number of terms that were added. You should stop the calculation when the absolute value of next term is less than epsilon. Do not add the next term to the estimate. def pi_over_4 (epsilon): “” (float)float, int) Input: A number determining the accuracy of the estimate of pi/4 Output: Returns a tuple containing an estimate of pi/4 and the number of terms summed to generate the estimate.
Expert Answer
Answer to Question 3. (6 marks) a/4 can be estimated from the following sum: t (-1) 3 5 7 9 11 2k 1 k 0 Note that each term in the… . . .
OR

