This program does a straight line linear interpolation between two
points, identified as ordered pairs, (X1,Y1) and (X2,Y2). You then
input X and it calculates the corresponding value of Y.
Linear Fit
Straight line linear
interpolation between
two points (X1,Y1)
and (X2,Y2).
Note: X1 must be
< X2
Enter X1,Y1
[<Enter>=Quit] ? _ |
Given the two ordered pairs (1.5,.8) and (4,3.1), what is Y for X=3 ?
Enter X1,Y1 above as "1.5,.8" at the prompt up above
and then press <Enter>. At the second
prompt, enter "4,3.1" and press <Enter>
once again.
Next, you're asked to enter a value for X:
Enter X: ? _
Input "3" and press <Enter>.
Here is the output calculation:
Y = 2.1800