menu_book Course Curriculum (SciPy) expand_more
Optimization
Integration
Statistics
Signal Processing
Linear Algebra & Sparse
RegularGridInterpolator
Learn RegularGridInterpolator in SciPy with a dedicated explanation, a concept-specific example, practical cautions, and a mastery check.
12 min read
•
Advanced
scipy-046.py
python
import numpy as np
from scipy.interpolate import RegularGridInterpolator
x=np.array([0.,1.,2.]); y=np.array([0.,10.])
values=x[:,None]+y[None,:]
f=RegularGridInterpolator((x,y),values)
print(f([[1.5,5.0]]))
What to watch
Content source & attribution
Original Syntaxis Content · Original Syntaxis Content