10000 Misc fixes by skirpichev · Pull Request #731 · mpmath/mpmath · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Misc fixes #731

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

Merged
merged 10 commits into from
Oct 22, 2023
Merged

Misc fixes #731

merged 10 commits into from
Oct 22, 2023

Conversation

skirpichev
Copy link
Collaborator
@skirpichev skirpichev commented Oct 16, 2023

gmpy2 has fix for aleaxit/gmpy#381 only in the development
version, so I have added simple workaround for this.
Handle special values as in the ISO C99 and IEEE 754 standards
for the pow function.

Closes mpmath#523
Closes mpmath#512
Closes mpmath#417.  I think we can't do better: e.g. if we provide
the mpf._mpfr_ property - then in expressions like mpq(1,2)+mpf(1.0) -
second operand (and the whole expression) will be promoted to mpfr.

Also this corrects to_rational() private function to return a pair of
integers with same type.
@skirpichev skirpichev merged commit c593982 into mpmath:master Oct 22, 2023
@skirpichev skirpichev deleted the misc branch October 22, 2023 05:55
@skirpichev skirpichev added this to the 1.4 milestone May 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
0