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

Purpose of epsilon, why relative error can't be lower? #11

Open
jaimecoj opened this issue Jul 20, 2020 · 1 comment
Open

Purpose of epsilon, why relative error can't be lower? #11

jaimecoj opened this issue Jul 20, 2020 · 1 comment

Comments

@jaimecoj
Copy link

I was trying calculating integrals of tiny orders. Between 1e-20 and 1e-60. And setting the relative error bellow epsilon throws error.

I'm using double and it is floating point representation, so I deduct it shouldn't be a problem if I use tiny numbers since it is stored as a chain of significant numbers and exponent.

@mcsauder
Copy link
Collaborator

Hi @jaimecoj , this is a correct error to be thrown for the case you described. Here is a description of what machine epsilon is: https://en.wikipedia.org/wiki/Machine_epsilon.

Your hardware will only carry a certain set limit on how many decimal places can be carried. If you are interested in extending your level of precision, using the MPFRC++ capability of the library should help: https://github.com/tbs1980/NumericalIntegration#multiprecision-usage-note.

Let us know if this answers your question!

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

2 participants