Question: Matlab question coment for (a) is on the second pic Name the problem as HW1Problem1.m Consider the function f(x) = e*.x. Write a script file

Matlab question coment for (a) is on the secondMatlab question
coment for (a) is on the second pic
Matlab question coment for (a) is on the second
Name the problem as HW1Problem1.m Consider the function f(x) = e*.x. Write a script file to do the following items. a) Use MATLAB commend to write the Maclaurin polynomial of degree Ps(x). To do this, look at the commend in the following Problem 2 part (1). b) Find f(x), as the actual value using MATLAB, and P=(x) the approximation value, for x, (0,1) and x = $i = 0,1,2,..., 20. c) Find Ex = abs(f(xi) - P(x)) for i = 0,1,2, ...,20. d) Graph the points related to (xif (x)), (x, Ps(x)) and (x E) for i = 0,1,2, ...,20, all in one figure with deferent color. You need to have just this graph as output. e) Write down, as a commend (%) in the end of your script file, about your observation on the graph (d) to see that what kind of the error do you have. Name the problem as HW1Problem2.m Write a script to do the following items. 1) Find Taylor expansion of f(x) = arctan (x), i.e., P.(x), for n = 1,2,.... Here is the commend in MATLAB fatan(x); P(n) = taylor(f, x, "Order', n)

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 General Management Questions!