Created
August 19, 2022 16:52
-
-
Save axil/12e0014f5517c582ff058b96b4fee869 to your computer and use it in GitHub Desktop.
interpolate
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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