Question #46685

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
1

Expert's answer

2014-09-29T09:16:09-0400

Answer on Question #46685 – Math – Algorithms | Quantitative Methods

The function f(x)=ln(1+x)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-

×\leq \times in magnitude

Solution.


f(x)=ln(1+x)f(x) = \ln(1 + x)


Error for linear interpolation on [0,h][0, h]: eh28maxf(x)e \leq \frac{h^2}{8} |maxf''(x)|

In our case f(x)=1(x+1)2f''(x) = -\frac{1}{(x+1)^2}, on [2,3]maxf(x)=19[2, 3] |maxf''(x)| = \frac{1}{9}, e=4105e = 4 * 10^{-5},


h28maxf(x)=h2819=h272.\frac{h^2}{8} |maxf''(x)| = \frac{h^2}{8} * \frac{1}{9} = \frac{h^2}{72}.


So, for 41054 * 10^{-5}, h0.05h \approx 0.05.

Largest step size equals 0.05.

www.AssignmentExpert.com


Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!
LATEST TUTORIALS
APPROVED BY CLIENTS