close

./math/py-mpmath, Python library for arbitrary-precision FP arithmetic

[ Image CVSweb ] [ Image Homepage ] [ Image RSS ] [ Image Required by ] [ Image Add to tracker ]


Branch: CURRENT, Version: 1.4.1, Package name: py313-mpmath-1.4.1, Maintainer: pkgsrc-users

A Python library for arbitrary-precision floating-point arithmetic.


Required to run:
[math/py-gmpy] [lang/python37]

Required to build:
[pkgtools/cwrappers]

Master sites:

Filesize: 2044.151 KB

Version history: (Expand)


CVS history: (Expand)


   2026-03-15 10:25:15 by Adam Ciarcinski | Files touched by this commit (3) | Package updated
Log message:
py-mpmath: updated to 1.4.1

1.4.1

Bug fixes:

* Fix test_hexadecimal_with_libc_bulk()
* Keep available deprecated aliases for mpc/mpf_log()
* Use version_file option of setuptools-scm to keep version info
* Add workaround for test on s390x
   2026-02-24 21:00:32 by Adam Ciarcinski | Files touched by this commit (3) | Package updated
Log message:
py-mpmath: updated to 1.4.0

1.4.0

Features:

* Support underscores as digit separators per PEP 515
* Add rationals converter for mpf's
* Rewrite bernpoly/eulerpoly to avoid dependency on bernoulli(1) convention,
* Support base kwarg for from_str()
* Support randmatrix() for mp.iv and mp contexts
* Added rank() function for matrices
* Add plus flag to select the B_1 sign convention for bernoulli/bernfrac
* Add mpf.as_integer_ratio() method, support construction of mpf from Decimal
  objects
* Expose lower/upper_gamma functions
* Support mpc initialization from string
* Support asinh/acosh/atanh in the fp context
* Support binary/octal/hexadecimal string output
* Support pickling for matrices and mpi
* Support matrix.__array__() dunder method
* Support more number syntaxes
* Run mpmath as a module for interactive work
* Add signed option to to_man_exp()
* Add fp.hypot
* Support inf/nan's in ctx.almosteq()
* Implement mpf.__format__()
* Support conversion from scalar ndarray's
* Support rounding modes in mpf.__format__
* Support '%' presentation type for mpf
* Support gmpy2-like rounding modes in to_str()
* Implement 'a'/'A' formating types for mpf.__format__
* Add mpc.__format__()
* Now mpf.__round__() returns mpf
* Support 'b' (binary) format type for mpf/mpc
* Implement mpf.__floordiv__() and mpf.__divmod__()
* Add parameters for MPContext constructor
* Add MPFR-compatible aliases for rounding modes
* Support negative indexes in matrix
* Better introspection support for decorated functions
* Add moving sofa demo
* Support spherical Bessel functions (jn/yn)
* Add pretty_dps context property to control number of printed digits
* Support thousands separators for formatting of fractional part
* Use PyREPL, as fallback (no IPython)
* Add exp2() and log2()
* Support rounding property for the mp context
* Add Fox H-function with rational A/B parameters (foxh())
* Provide experimental support for free-threading builds
   2023-03-14 15:12:49 by Adam Ciarcinski | Files touched by this commit (3) | Package updated
Log message:
py-mpmath: updated to 1.3.0

--1.3.0--
Released March 7, 2023

Security issues:

* Fixed ReDOS vulnerability in mpmathify() (CVE-2021-29063) (Vinzent Steinberg)

Features:

* Added quadsubdiv() for numerical integration with adaptive path splitting
  (Fredrik Johansson)
* Added the Cohen algorithm for inverse Laplace transforms
  (Guillermo Navas-Palencia)
* Some speedup of matrix multiplication (Fredrik Johansson)
* Optimizations to Carlson elliptic integrals (Paul Masson)
* Added signal functions (squarew(), trianglew(), sawtoothw(), unit_triangle()
  sigmoidw()) (Nike Dattani, Deyan Mihaylov, Tina Yu)

Bug fixes:

* Correct mpf initialization from tuple for finf and fninf (Sergey B Kirpichev)
* Support QR decomposition for matrices of width 0 and 1 (Clemens Hofreither)
* Fixed some cases where elliprj() gave inaccurate results (Fredrik Johansson)
* Fixed cases where digamma() hangs for complex input (Fredrik Johansson)
* Fixed cases of polylog() with integer-valued parameter with complex type
  (Fredrik Johansson)
* Fixed fp.nsum() with Euler-Maclaurin algorithm (Fredrik Johansson)

Maintenance:

* Dropped support for Python 3.4 (Sergey B Kirpichev)
* Documentation cleanup (Sergey B Kirpichev)
* Removed obsolete files (Sergey B Kirpichev)
* Added options to runtests.py to skip tests and exit on failure
  (Jonathan Warner)
   2022-11-14 19:53:37 by Thomas Klausner | Files touched by this commit (1)
Log message:
py-mpmath: switch to py-gmpy2

Bump PKGREVISION.
   2022-01-13 20:31:25 by Thomas Klausner | Files touched by this commit (43)
Log message:
*: setuptools_scm: switch to versioned_dependencies
   2022-01-04 21:55:40 by Thomas Klausner | Files touched by this commit (1595)
Log message:
*: bump PKGREVISION for egg.mk users

They now have a tool dependency on py-setuptools instead of a DEPENDS
   2021-10-26 12:56:13 by Nia Alarie | Files touched by this commit (458)
Log message:
math: Replace RMD160 checksums with BLAKE2s checksums

All checksums have been double-checked against existing RMD160 and
SHA512 hashes
   2021-10-07 16:28:36 by Nia Alarie | Files touched by this commit (458)
Log message:
math: Remove SHA1 hashes for distfiles