Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Just need M file on MATLAB, no explanation required. Use the function f(x)-sin(x), a -0.5, and h1,0.1, 0.01, 0.001,. 0.0000000001. Create two tables; the first
Just need M file on MATLAB, no explanation required.
Use the function f(x)-sin(x), a -0.5, and h1,0.1, 0.01, 0.001,. 0.0000000001. Create two tables; the first one containing the values of the derivatives with different values of h (11 different values of h), and the second one with the true error in percentage. (Exact value - approx value) Exact value errort abs x 100% ix 0.1 0.01 0.0000000001 You will have 4 curves. Explain how the error changes. Based on these results, can you explain which is a better way to improve the accuracy (reduce h or increase the order of approximation)? I:s roundoff error a factor in the calculation? Please explain. Use the function f(x)-sin(x), a -0.5, and h1,0.1, 0.01, 0.001,. 0.0000000001. Create two tables; the first one containing the values of the derivatives with different values of h (11 different values of h), and the second one with the true error in percentage. (Exact value - approx value) Exact value errort abs x 100% ix 0.1 0.01 0.0000000001 You will have 4 curves. Explain how the error changes. Based on these results, can you explain which is a better way to improve the accuracy (reduce h or increase the order of approximation)? I:s roundoff error a factor in the calculation? Please explainStep 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