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

Option to have relative allowed error in numbers but with also allowing a small absolute error #2343

Open
dqnykamp opened this issue Sep 22, 2023 · 0 comments
Labels
DoenetML core question Further information is requested

Comments

@dqnykamp
Copy link
Member

When one generates answers through a numerical algorithm, it's common to have 0 become a small number on the order of 10^-15. In these cases, one would typically want any small number of that order to be considered correct, i.e. to have an absolute allowed error of around 10^-14.

Right now, we have a boolean "allowedErrorIsAbsolute", but in this case you want a combination of both relative error (for answers that don't end up being essentially zero) and a small absolute error (for the above case). Do we change how the allowed error attributes work so that you have to supply both allowed absolute error and allowed relative error? What should the defaults be?

@dqnykamp dqnykamp added question Further information is requested DoenetML core labels Sep 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
DoenetML core question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant