Files
pplus-library/modules/numerics/linear-interp/ref/python/plain.py
T
alexm 568474d52f
Test (in pplus-core) / in-core (push) Failing after 28m44s
Initial commit
2026-11-12 22:23:48 -05:00

3 lines
87 B
Python

def linear_interp(x0, y0, x1, y1, x):
return y0 + (y1 - y0) * (x - x0) / (x1 - x0)