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

xexpy(0, 1000) should be zero #79

Closed
cossio opened this issue Feb 14, 2024 · 5 comments
Closed

xexpy(0, 1000) should be zero #79

cossio opened this issue Feb 14, 2024 · 5 comments

Comments

@cossio
Copy link
Contributor

cossio commented Feb 14, 2024

julia> xexpy(0, 1000)
NaN

I think xexpy can handle this better and return zero?

@cossio
Copy link
Contributor Author

cossio commented Feb 14, 2024

@devmotion
Copy link
Member

Why should it be 0? At least the current implementation agrees with the docstring.

@cossio
Copy link
Contributor Author

cossio commented Feb 14, 2024

Mathematically, 0 * exp(1000) = 0. Why should it not be zero?

@tpapp
Copy link
Collaborator

tpapp commented Feb 15, 2024

I also think that we should make xexpy finite if y is finite and x is zero. The purpose of writing a function is precisely to handle these kind of cases.

@devmotion
Copy link
Member

Fixed by #80.

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

3 participants