Open BeastyBlacksmith opened 6 years ago
another question to the same topic: integrate
and derivative
are not intended to be used with ParametricSplines
do they?
The underlying Fortran library doesn't allow for integrating an arbitrary function like integrate(spl, a, b, (x) -> x^2)
. But you could apply this function before creating the spline, like spl = Spline1D(x, y^2)
rather than spl = Spline1D(x, y)
.
I think integrate
and derivative
on a ParametricSpline are the integral and derivative in each dimension, with respect to the curve parameter. So a curve through N
dimensional space will have an integral that is a length N
vector. Is that right @bshall?
Would it be hard to allow for integration of a function of the spline?
For example
And then one integrates the square of the spline values.