This is a fairly minimal update to the interpolate section. Important points are that the example no longer uses the legacy function interp1d, and it highlights the distinction between the two main uses of splines: smoothing and interpolation.
One thing I could consider doing including in this PR is to simplify variable names. I maintained the existing style, but I would find the code easier to read with simpler variable names like t and x. LMK what you think.
In follow-up PRs, I could:
Show how to take the derivative and antiderivative of a spline in the text.
Show how to get the roots of a spline in the text.
Create a separate example that shows how to create an inverse of a function.
This is a fairly minimal update to the interpolate section. Important points are that the example no longer uses the legacy function
interp1d
, and it highlights the distinction between the two main uses of splines: smoothing and interpolation.One thing I could consider doing including in this PR is to simplify variable names. I maintained the existing style, but I would find the code easier to read with simpler variable names like
t
andx
. LMK what you think.In follow-up PRs, I could:
derivative
andantiderivative
of a spline in the text.LMK what you'd be interested in.