Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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):

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

SQL Instant Reference

Authors: Gruber, Martin Gruber

2nd Edition

0782125395, 9780782125399

More Books

Students also viewed these Databases questions