Develop a well-structured MATLAB function to compute the
Maclaurin series expansion
for the cosine function and name the function cosMac. The
function should have the following features:
Iterate until the relative error (variable name “relErr” ) falls
below a stopping criterion OR exceeds a maximum number of
iterations (variable name“maxIter”) for a given value of x.
Include a default value of relErr = 1e-6 if the user does not
enter the value (use nargin function).
Include a default value for...
1. Find a closed form expression for the MacLaurin series for
f(x) = sinh(3x)
2. Find a closed form expression for the Taylor series for f(x)
= 4e2x expanded at a=3