Finds a linear function between two points

linterp(x1, y1, x2, y2)

Arguments

x1

x value of the first point

y1

y value of the first point

x2

x value of the second point

y2

y value of the second point

Value

a linear equation's coefficients

Details

linterp finds a linear function between two points.

See also

Examples

f <- linterp(3, 2, 7, -2)