Linear interpolation and extrapolation.
Given two points, this function will find the line that lines on those two points. And it will return a function that will find all points on that line.
One valid input.
The expected output at x1.
Another valid input. Must differ from x2.
The expected output at x2.
A function of a line. Give an x as input and it will return the expected y.
Linear interpolation and extrapolation.
Given two points, this function will find the line that lines on those two points. And it will return a function that will find all points on that line.