ECE 3040 - Test - 01
ECE 3040 - Test - 01
1. (20 points) Consider the approximation of atan(𝑥) using the power series:
Use Matlab to find the smallest degree of the polynomial that leads to an
absolute true relative error less than 0.0001 when approximating
atan(0.25).
4. (20 points) The Maclaurin series (a special case of the Taylor series) allows
us to express a differentiable, analytic function as an infinite degree
polynomial. Here is the degree seven polynomial approximation of the sine:
Use Matlab to generate a plot of sin(x) (solid blue line) and its polynomial
approximation (dashed red line) for x = 0 to 3π/2 and y from -1.5 to 2. Use
the built-in factorial function in evaluating the polynomial expression.
Employ only fplot, hold and axis commands to generate the plot.