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

exp (huge :+ 0) #5

Open
davjam opened this issue Oct 13, 2021 · 0 comments
Open

exp (huge :+ 0) #5

davjam opened this issue Oct 13, 2021 · 0 comments

Comments

@davjam
Copy link
Owner

davjam commented Oct 13, 2021

is currently Infinity :+ NaN, hence not matching real function exp huge. Should it be Infinity :+ 0.

(and should exp (Inf :+ 0) be Infinity :+ NaN?)

The imag part is calculated as exp huge * sin 0.

Whether this is "correct" depends on whether 0 is really zero, or if it's underflow, and there's no way to tell.

The issue also impacts sin, cos, sinh, cosh.

Suggest leaving it as is for now, given the change is at least debatable.

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

1 participant