code in matlab
math 340 APPLIED NUMERICAL METHODS
Recall that the definition of a Taylor series expansion of ananalytic function f(x) about the point x0 .
f(x) = f(x0) + (x − x0) f ‘ (x0) + (x − x0)^2/ 2 * f ”(x0) +…
Please use this to find the Taylor polynomial of the functionf(x) = e-x^2 with a maximum error of 10^−12 on theinterval (-1,1). How many terms did you need?Plot both f(x) and itspolynomial approximation on the same graph by using the hold oncommand
Expert Answer
An answer will be send to you shortly. . . . .