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
Many of the quadrature algorithms do not handle Inf in the integrand well.
QuadGK throws a DomainError, 2D or higher HCubature returns NaN. Cubature has similar issues but at different dimensions (see JuliaMath/HCubature.jl#29). Some Cuba methods seem to work, i.e. return Inf, while others segfault after a significant amount of computation time.
I'm not quite sure how to approach this issue. Seems like it should be handled upstream by the various algorithms, but this may be a big task to get cleaned up across the board.
The text was updated successfully, but these errors were encountered:
I guess the surprising thing is that there are integrable singularities, but in practice if an algorithm encounters an infinity, it will either throw an error, give a NaN or Inf, or silently return an underconverged result depending on how proactive it is about numerical errors. I think the best we can do is provide informative return codes, which are currently available from SciMLBase but unused. @agerlach do you think that would address the issue?
Many of the quadrature algorithms do not handle
Inf
in the integrand well.QuadGK
throws aDomainError
, 2D or higher HCubature returnsNaN
. Cubature has similar issues but at different dimensions (see JuliaMath/HCubature.jl#29). Some Cuba methods seem to work, i.e. return Inf, while others segfault after a significant amount of computation time.I'm not quite sure how to approach this issue. Seems like it should be handled upstream by the various algorithms, but this may be a big task to get cleaned up across the board.
The text was updated successfully, but these errors were encountered: