Home /
Expert Answers /
Advanced Math /
5-10-pts-create-a-matlab-function-of-the-maclaurin-series-for-cos-x-which-depends-on-pa993
(Solved):
5. (10 pts) Create a Matlab function of the Maclaurin series for \( \cos (x) \), which depends on ...
5. (10 pts) Create a Matlab function of the Maclaurin series for \( \cos (x) \), which depends on \( x \) and a tolerance, tol. Explain how you choose a stopping criteria, and determine the maximum accuracy you are able to achieve (double precision!). Create another Matlab function, which plots the function in the interval \( -A_{x} \leq x \leq A_{x} \) where \( A_{x} \) is a user specified input. Overlay a plot of the exact answer, which is given by using the Matlab defined function \( \cos (x) \), using dashed lines.