Skip to content

Instantly share code, notes, and snippets.

@axil
Created August 19, 2022 16:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save axil/12e0014f5517c582ff058b96b4fee869 to your computer and use it in GitHub Desktop.
Save axil/12e0014f5517c582ff058b96b4fee869 to your computer and use it in GitHub Desktop.
interpolate
x = [0, 1, 2, 3, 4, 5]
y = [8.1, 10.2, 15.4, 24.6, 29.8, 31.9]
from scipy.interpolate import CubicSpline
f = CubicSpline(x, y)
f(1.25) # 11.05833333
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment