Question: 3. Cosine Approximation Write a function m-file to calculate the approximated cosine function which can be evaluated by the following infinite series - equation (2):

 3. Cosine Approximation Write a function m-file to calculate the approximated

3. Cosine Approximation Write a function m-file to calculate the approximated cosine function which can be evaluated by the following infinite series - equation (2): 1. x x4 26 (-1)(n+1). 22(n-1) cos x = 1 - 3 + - 6! + + (2(n 1))! Here are requirements for the function m-file. - Parameter lists (inputs): 2 value (in radian), and desired error percentagel. - Return value (outputs): approximated value, real error percentage, and number of iterations - Function name: 'Approx_Cos_yourEmailAccount Using a script m-file which will call the Approx_Cos_yourEmailAccount function, save outputs with following given inputs. - x = 7/12 and %error = 1%. Save it on EX1_11.dat. - X= 7/12 and %error = 0.1%. Save it on EX1_12.dat. x = 7/6 and %error = 1%. Save it on EX1_13.dat. - * = 7/6 and %error = 0.1%. Save it on EX1_14.dat. - x = 7/6 and %error = 0.01%. Save it on EX1_15.dat

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!