You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
julia>inverse(f)(-3.6)
ERROR: DomainError with -0.4346471879176269:
sqrt was called with a negative real argument but will only return a complex result if called with a complex argument. Try sqrt(Complex(x)).
and the spline is not monotonic and has discontinuities:
plot(-6:0.01:6, f)
The text was updated successfully, but these errors were encountered:
I believe this issue arises due to the implicit requirements to the spline parameters under the hood:
- edge knots at the beginning and end of the interval must sit on the identity line
- the derivatives at the edge knots must be set to 1
When I modify your above example to comply with these requirements, I get the following spline:
With
(fairly smooth spline parameters) we get
and the spline is not monotonic and has discontinuities:
The text was updated successfully, but these errors were encountered: