Question: use matlab et-e-* In class, we learned that the function f(x)= e could be approximated by the function - 2x g(x) =1+*+*, which is the

use matlab et-e-* In class, we learned that the function f(x)= euse matlab

et-e-* In class, we learned that the function f(x)= e could be approximated by the function - 2x g(x) =1+*+*, which is the first three terms of the Maclaurin series for f(x). Write a script 8(*)=1* 7 * 120 that computes both the original form of f(x) and its approximation g(x) at x =10-P, where p=1,2,3,.... Starting at p=1, repeatedly compute both f(x) and g(x) with increasing values of p until either f (10-P) or g(10-P) equals the exact value of lim e . (You can compute the exact limit using L'Hpital's rule.) Precisely, the last value of p used should be the first value of p at which either f(10-P) or g(10-P) equals the exact value of the limit, whichever comes first. Notice which function attains the exact value of the limit first! (You do no need to turn in this observation - just observe for yourself.) et - e-* x+ 2x

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!