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

feature request: erfc() and expm1() #21

Closed
MathGeniusJodie opened this issue Feb 25, 2022 · 4 comments
Closed

feature request: erfc() and expm1() #21

MathGeniusJodie opened this issue Feb 25, 2022 · 4 comments

Comments

@MathGeniusJodie
Copy link

would it be possible to add functions like erfc and expm1 for extra precision around zero?

@samhocevar
Copy link
Owner

I can easily add expm1, yes. However I have been unable to find a good way to compute erfc so far, the formulae I found were either incredibly slow or inaccurate.

@MathGeniusJodie
Copy link
Author

awesome, shame about erfc, I'm making a math library and I've been finding it hard to approximate it

@samhocevar
Copy link
Owner

Hi! I have added expm1 and log1p to the main branch.

I’ll have another look at erfc.

samhocevar added a commit that referenced this issue Mar 2, 2022
@samhocevar samhocevar changed the title feature request feature request: erfc() and expm1() Mar 2, 2022
@samhocevar
Copy link
Owner

samhocevar commented Mar 2, 2022

Hi! I have added the erfc() and erfcx() functions. So I’ll be closing this issue.

Maybe the accuracy issues in erfc() will not be a big deal to you; the maximum error is 1.6e-44 (see this issue).

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