3 lines
87 B
Python
3 lines
87 B
Python
def linear_interp(x0, y0, x1, y1, x):
|
|
return y0 + (y1 - y0) * (x - x0) / (x1 - x0)
|