Skip to content

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 force-pushed the misc branch 2 times, most recently from ac1f163 to c198d07 Compare April 4, 2024 06:26
@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
@skirpichev skirpichev deleted the misc branch April 8, 2024 06:37
@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
Development

Successfully merging this pull request may close these issues.

Support different number syntaxes
1 participant