Interpolate data from a graph

M

Mike

Find the coordinates of two points on the line, say (x1,
y1) and (x2, y2). The equation of the line is

(y - y1)/(x - x1) = (y2 - y1)/(x2 - x1) so, for example if
the two points are (3, 2) and (5, 8) the equation of the
line is

(y - 2)/(x - 3) = (8 - 2)/(5 - 3) or

(y - 2)/(x - 3) = 3 or

y - 2 = 3x - 9 or

y = 3x - 7 is the equation of the line.

This gives the formula for finding the y value when the x
value is known. If x = 15 the corresponding y value is

y = 3(15) - 7 = 38.
-----Original Message-----
I have a basic line graph built. What I would like to do
is be able to enter a number on the x axis that falls
within the range of the graph and have a function tell me
what the value is on the graph's y axis. Doesnt' seem
like it should be difficult but for the life of me I can't
figure it out.
 
Top