1. Engineering
  2. Computer Science
  3. p2 the value of t can be determined by the...

Question: p2 the value of t can be determined by the...

Question details

P2. The value of T can be determined by the series (-1)a 4 (k-3 5 79 1 13 Write a MATLAB function [n, piVal,errl-findPivalue (targetError) that determines the minimum number of terms of the series n required to achieve an absolute value of the percentage relative error (err) that is less than or equal to targetError. Here piVal is value of T determined by summing the first n terms of the series. Submit a printout of the function. For example İftargetError-20, then the function should return values of n-2, piVal-2.666667 and err-15.127364 because the first two terms will . give a value of 4-2.66667 which has an absolute percentage relative error of -2666667 4-2-ooooo ||x100-15.12% that is less than or equal to the target error of 20%. İftargetError-3, then the function should return values of n piVal-3.232316 and err 2.887808 because the first eleven terms will give a value of 3.232316 which has an absolute percentage relative error of . 11, π-32323161 x 100-28 o l x100- 2.89% that is less than or equal to the target error of 3%.
Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution