Answered step by step
Verified Expert Solution
Link Copied!

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.

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Statistical And Scientific Database Management International Working Conference Ssdbm Rome Italy June 21 23 1988 Proceedings Lncs 339

Authors: Maurizio Rafanelli ,John C. Klensin ,Per Svensson

1st Edition

354050575X, 978-3540505754

More Books

Students also viewed these Databases questions