Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started