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

real::erf() inaccuracy #2

Open
samhocevar opened this issue Mar 2, 2022 · 1 comment
Open

real::erf() inaccuracy #2

samhocevar opened this issue Mar 2, 2022 · 1 comment

Comments

@samhocevar
Copy link
Contributor

samhocevar commented Mar 2, 2022

The current real::erf() implementation uses a Taylor series that does not converge and thus has precision issues.

  • The affected range is [7,19].
  • The approximate error is 10^(-n²/1.13).

That is to say, erf(8) will have a precision error of 10^(-8²/1.13) = 2.3e-57, e.g. the 57th decimal will be inaccurate.

@Tigeronthe
Copy link

Hey Sam

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