Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Very slow for one-dimensional integral #63

Closed
urbainvaes opened this issue Nov 15, 2023 · 3 comments
Closed

Very slow for one-dimensional integral #63

urbainvaes opened this issue Nov 15, 2023 · 3 comments

Comments

@urbainvaes
Copy link

Hi,

I noticed that hquadrature sometimes does not work. For example, the command

hquadrature(sin, -5,  5)

does not terminate. Is this a known issue? Strangely, the command works well if maxevals is provided.

@mzaffalon
Copy link

Related to #34.

@stevengj
Copy link
Member

stevengj commented Nov 15, 2023

As explained in the manual:

More precisely, the integration will terminate when either the relative- or the absolute-error tolerances are met. abstol defaults to 0, which means that it is ignored, but it can be useful to specify an absoute error tolerance for integrands that may integrate to zero (or nearly zero) because of large cancellations, in which case the problem is ill-conditioned and a small relative error tolerance may be unachievable.

Closing as a duplicate of #34.

@urbainvaes
Copy link
Author

Ah, all right! Thank you very much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants