Answer on Question #46685 – Math – Algorithms | Quantitative Methods
The function f(x)=ln(1+x) is to be tabulated at equispaced points in the interval 2 using linear interpolation. Find the largest s 3 tep size h that can be used so that
the error 4
5 10-
≤× in magnitude
Solution.
f(x)=ln(1+x)
Error for linear interpolation on [0,h]: e≤8h2∣maxf′′(x)∣
In our case f′′(x)=−(x+1)21, on [2,3]∣maxf′′(x)∣=91, e=4∗10−5,
8h2∣maxf′′(x)∣=8h2∗91=72h2.
So, for 4∗10−5, h≈0.05.
Largest step size equals 0.05.
www.AssignmentExpert.com
Comments