Question: Write a Matlab function mySin 3 x that takes as input x and the number N to estimate using and returns as outputs the estimate
Write a Matlab function mySinx that takes as input x and the number N to estimate using and returns as outputs the estimate for together with the corresponding true relative error. You may use the Matlab function factorial to calculate the factorial in the formula. For the true value of use Matlab's buildin function sinx Do not print out any results to screen or do any plotting within the function.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
