Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Modify the code to verify numerically that the approximation of f ' ( x 0 ) given by the formula f ( x 0 -
Modify the code to verify numerically that the approximation of given by the formula
is of order namely the truncation error goes to zero as
from numpy import sin cos
from matplotlib import pyplot as plt
err
for in range :
err
pltclf
plt for in
plt legenderror 'slope 'slope loc'upper right'
pltshow
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started