I am have trouble evaluating the following:
Kerwin, is there is a general form if the method of Linear Interpolation you gave? What if the value of z varied by 2 instead of 1, ie 0.63 and 0.65? instead of only varying by 0.01 in this case? Do you see what I mean?
It sounds like you would like the
formula
f(a)=x, f(b)=y
then f(c)=x+(y-x)(c-a)/(b-a)
although I seriously recommend NOT thinking about linear
interpolation by the formula. Instead, look at the idea of
joining a straight line betweeen the two given points.
Kerwin
Thanks.
Can you extend your help to explaining the idea of the straight
line? Thanks.
The tables give us values of
the function y=Phi(x) for lots of values of x. If you imagine
these plotted as coordinates on a graph, we then have to try and
work out what happens inbetween. Since the points are pretty
close together, it will not be too inaccurate to assume that the
line joining them is straight: we know it is actually curved, but
there's not too much difference. You may remember that a straight
line graph is linear ; hence the term linear
interpolation.
Look at the diagram. The two points we know (in your case,
(0.63,Phi(0.63)) and (0.64,Phi(0.64)) are joined by a straight
red line. You wanted to find the value of c, given
Phi(c).
If we know what fraction of the way along the straight line we
have gone, we can work out what fraction of the distance (b-a) to
add to a. That fraction is