Question: Consider the function () = + 2.4 + 0.147 sin , around the point is 0 = 4 /9 . Develop a Matlab script to
Consider the function () = + 2.4 + 0.147 sin , around the point is 0 = 4 /9 . Develop a Matlab script to determine the lowest order of Taylor expansion resulting in a maximum error of 0.00001% for all values on the interval specified below. Write the Maltab script (using a while loop) so that the approximate function value and true relative error () is calculated for each order Taylor expansion, i.e., from zeroth-order to the highest order needed, for the values [0, /6, 2/6, 3/6, 4/6, 5/6, ]. The result should be two 2D arrays where each row is a specific order in the Taylor expansion, and one array holds the function value at each point (the columns), and the other array hold the error value at each point
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
