Question: (3). Write a computer program using MatLab that finds the first and second derivatives of a func- tion f at a giveen value a

(3). Write a computer program using MatLab that finds the first and second derivatives of a func- tion f at a

(3). Write a computer program using MatLab that finds the first and second derivatives of a func- tion f at a giveen value a of x, using the backward, forward and central finite difference methods. Input data to the program should be a function f, a, the value of h, and the number of rows n.Test your program to find the derivatives of f(x) = 2x sin(x) at x = 0.1,0.5, 1, 1.5. Compare the results with the exact answer more preferably in tabular and in graphical forms. (10) (4). Write a computer program using MatLab that estimate the first and second derivatives of f(x)= arc tan(x) at x = 1;. (10) Total Marks: [40] (3). Write a computer program using MatLab that finds the first and second derivatives of a func- tion f at a giveen value a of x, using the backward, forward and central finite difference methods. Input data to the program should be a function f, a, the value of h, and the number of rows n. Test your program to find the derivatives of f(x) = 2x sin(x) at x = 0.1,0.5, 1, 1.5. Compare the results with the exact answer more preferably in tabular and in graphical forms. (10) (4). Write a computer program using MatLab that estimate the first and second derivatives of f(x) = arc tan(x) at x = 1;. (10) Total Marks: [40]

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Task 3 Finding derivatives using finite difference methods function firstderiv secondderiv finiteDif... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!