Question: Task 2 . a . Propose a better technique for numerical differentiation that provides higher accuracy than the methods you have worked so far. You

Task 2.
a. Propose a better technique for numerical differentiation that provides higher accuracy than the methods you have worked so far. You need to
write a function for your proposed technique.
Let,
f(x)=x5+2.5x4-2x3-6x2+x+2
b. Using your proposed method, what is the slope of f(x) at x=0,-1.18625 and step size =0.1?
Compare the error of your method with actual, forward, backward and central differentiation at x=0,-1.18625 by showing in Pandas
Dataframe.
d. Plot actual derivative, Forward derivative, Backward derivative, Central derivative and the derivative from your proposed method in a graph.
Here,
h=0.1,-2x1.2
[] #2a. This cell should not have any output.
Proposed_Method_Name =""
#Write Code here
[] #2b. This cell should print
[] #2c.This cell should print
def compare1(f, f_prime, h, x):
Result ={'x' : [], "Actual" : [],"FD": [],"BD" : [],"CD": [],"RE": [],"FD Error" : [],"BD Error": [],"CD Error" : [],"RE Error" : []}
#Write code here
compare1(WUrite code here)
[] #2.d This cell should plot a graph.
Task 2 . a . Propose a better technique for

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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!