Skip to content

Misc fixes#731

Merged
skirpichev merged 10 commits intompmath:masterfrom
skirpichev:misc
Oct 22, 2023
Merged

Misc fixes#731
skirpichev merged 10 commits intompmath:masterfrom
skirpichev:misc

Conversation

@skirpichev
Copy link
Copy Markdown
Collaborator

@skirpichev skirpichev commented Oct 16, 2023

gmpy2 has fix for gmpy2/gmpy2#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

Labels

None yet

Projects

None yet

1 participant