The assignment is for Matlab software. Need a code for the following:

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

The assignment is for Matlab software. Need a code for the following:

Post by answerhappygod »

The assignment is for Matlab software. Need a code for the
following:
The Assignment Is For Matlab Software Need A Code For The Following 1
The Assignment Is For Matlab Software Need A Code For The Following 1 (8.12 KiB) Viewed 70 times
Investigate the Error Behavior Simillar to the Forward, Backward and Central Difference formulas, this formula has an approximation error that is roughly proportional to h" for some positive integer a. Find a by completing the task below.

Task 2 [10 pts]: Pick a function f(x), a point Xo and a series of decreasing h values. Choose a function that you can calculate the derivative easily (as we need to compare the approximation with the exact value). If you really love polynomials, use the ones with degree > 5 and consists of several terms. Write MATLAB code to 1. compute the approximations to f'(X) for each value of h (use the for-loop) 2. calculate the absolute error for each value of h, 3. observe how the errors behave with respect to h, and determine the value of a. Write your code below: Question/observation: 1. Describe how the error decreases as h decreases. 2. The approximation error that is roughly proportional to ha for some positive integer a. Find a based on your observation. Type your answers below:
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply