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

Misc fixes #731

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
8 checks passed
@skirpichev skirpichev deleted the misc branch October 22, 2023 05:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant