sqrt

Return a spline approximation to the square root of the spline output.


Declaration

 splinesqrt = sqrt(spline)

Parameters

  • spline BSpline instance

Returns

  • splinesqrt BSpline approximating sqrt(spline)

Discussion

This is a convenience wrapper around spline.^(1/2) and is most useful when the spline is nonnegative over its domain.

  amplitudeSpline = sqrt(energySpline);