Question: Write your own short MATLAB function Pex5 (x,n) returning the value at x of the Taylor polynomial Pn(x) of degree n about a =

Write your own short MATLAB function Pex5 (x,n) returning the value at

Write your own short MATLAB function Pex5 (x,n) returning the value at x of the Taylor polynomial Pn(x) of degree n about a = 0 of the function ln((1 + x)/(1 x)) (see formula (3.12) on p. 25 of the class notes). Print your code and give 15 significant digits of the value P13 (0.2) =Pex5 (0.2,13) that your code obtains. Print also the absolute error |In(1.5) - P13 (0.2)| expressed in MATLAB by Hints: To minimize the number of multiplications when n 3 you should use the value t := x. Create a file called Pex5.m and start the file as follows function y-Pex5 (x,n) if (n

Step by Step Solution

3.45 Rating (148 Votes )

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 Accounting Questions!