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

Should positive * pos_inf be pos_inf instead of zero_pm_inf? #408

Open
postmath opened this issue Mar 10, 2022 · 1 comment
Open

Should positive * pos_inf be pos_inf instead of zero_pm_inf? #408

postmath opened this issue Mar 10, 2022 · 1 comment

Comments

@postmath
Copy link
Contributor

I've seen your comments that you feel that the various non-number values in arb are not well enough defined, but I think this should be a case where there is a reasonable mathematically correct interpretation.

In arb_mul (and arb_mul_arf), if you multiply an arb_t (or an arf_t) representing a signed infinity by a non-exact finite arb_t, then the result's radius is infinite. It seems like it would be mathematically sound to test whether the finite arb_t is either all positive or all negative, and if so, set the result's radius to be finite instead -- correct? That would give answers that users might expect more, even though of course the current result is also correct. I would be happy to prepare a patch.

@fredrik-johansson
Copy link
Collaborator

Yes, this seems reasonable.

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