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 #778

Merged
merged 16 commits into from
Apr 8, 2024
Merged

Misc fixes #778

merged 16 commits into from
Apr 8, 2024

Conversation

skirpichev
Copy link
Collaborator

@skirpichev skirpichev commented Apr 4, 2024

  • adjust defaults for rnd: 'd' -> round_fast, 'f' -> round_floor
  • make explicit rnd=round_fast for to_int()
  • set defaults rnd=round_fast for mpf_bernoulli*
  • clear unused imports in mpmath/libmp/*.py
  • use prec=0 in libmp/*.py
  • drop libmp.HASH_MODULUS
  • drop libmp.HASH_BITS
  • drop libmp.math_float_inf
  • adjust nan's hashing for Python versions >= 3.10
  • use to_man_exp() in mpf.man_exp to raise exceptions
  • improve coverage
  • add missing type cast in from_npfloat() and test
  • add type-cast for mantissa in _mpf_ 4-tuple (mpf constructor)
  • turn DeprecationWarning's into errors in CI
  • fail test suite if xfail'ed test - pass
  • support more number syntaxes, closes Support different number syntaxes #184

@skirpichev skirpichev marked this pull request as draft April 4, 2024 04:55
@skirpichev skirpichev marked this pull request as ready for review April 4, 2024 07:27
* 'oo' and '-oo' for infinity
* '2+3*I' or '2+4I' (SymPy and Mathematica style imaginary unit)
* '2/3 + 4/5j' (rational parts for a complex number)

Closes mpmath#184
@skirpichev skirpichev merged commit dffeaa6 into mpmath:master Apr 8, 2024
10 checks passed
@skirpichev skirpichev deleted the misc branch April 8, 2024 06:37
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

Successfully merging this pull request may close these issues.

Support different number syntaxes
1 participant