Question: 1c) when the function f(x) =(1-cosx)/x^2, Write a Matlab program to calculate the function value f(x) and error |f(x) 1/2| at x = 0.1,0.01, ,108.
1c) when the function f(x) =(1-cosx)/x^2, Write a Matlab program to calculate the function value f(x) and error |f(x) 1/2| at x = 0.1,0.01, ,108. Fill the results in a table in the following format (by hand) x f(x) |f(x) 1/2| 101 4.9958e-01 4.1653e-04 102 . . . . . . use the command format short e to show the result in scientific notation
1d) Does the error in c) converges to 0 as x 0? If yes, does it convergence at the rate shown in step c)? If no, explain why the result does not converge?
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
