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
SouthEndMusic
changed the title
Wrong linear interpolation on interval (t[1], t[end])
Wrong linear interpolation integral on interval (t[1], t[end])Jun 6, 2024
SouthEndMusic
changed the title
Wrong linear interpolation integral on interval (t[1], t[end])
Wrong linear interpolation integral on interval (t[1], t[2])Jun 6, 2024
Describe the bug 🐞
I'm pretty sure the linear interpolation integral on the first interval is wrong.
Expected behavior
DataInterpolations.integral(itp, t, t) == 0
for anyt
, the integral is increasing when the integrand is positive.Minimal Reproducible Example 👇
Suggested solution:
I don't completely understand the role of this part of the code:
DataInterpolations.jl/src/integrals.jl
Line 26 in 5aed96d
However, setting the first value in this tuple to
-1
fixes the problem.Environment:
versioninfo()
The text was updated successfully, but these errors were encountered: