Question: 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 explain
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
