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

log1p(Double64(Inf)) returns nothing #203

Closed
moble opened this issue May 30, 2024 · 0 comments · Fixed by #204
Closed

log1p(Double64(Inf)) returns nothing #203

moble opened this issue May 30, 2024 · 0 comments · Fixed by #204

Comments

@moble
Copy link

moble commented May 30, 2024

This behavior is inconsistent with, e.g., Float64, which gives log1p(Inf) == Inf. I think this may just be a typo in

isinf(x) && !signbit(x) && return

Presumably, that line should end with x, like in the log function defined just before it:

isinf(x) && !signbit(x) && return x

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

Successfully merging a pull request may close this issue.

1 participant