Python library for arbitrary-precision floating-point arithmetic

Edit Package python-mpmath

Mpmath is a pure-Python library for multiprecision floating-point arithmetic. It provides an extensive set of transcendental functions, unlimited exponent sizes, complex numbers, interval arithmetic, numerical integration and differentiation, root-finding, linear algebra, and much more. Almost any calculation can be performed just as well at 10-digit or 1000-digit precision, and in many cases mpmath implements asymptotically fast algorithms that scale well for extremely high precision work. If available, mpmath will (optionally) use gmpy to speed up high precision operations.

Mpmath is free (BSD license) and easy to install or include in other software due to being written entirely in Python with no additional dependencies. It runs on Python 2.4, 2.5 and 2.6. It can be used as a library, interactively via the Python interpreter, or via SymPy which uses it for numerical evaluation of symbolic expressions.

If matplotlib is available, mpmath also provides a convenient plotting interface.

Refresh
Refresh
Source Files
Filename Size Changed
mpmath-1.3.0.tar.gz 0000508106 496 KB
python-mpmath.changes 0000011758 11.5 KB
python-mpmath.spec 0000002708 2.64 KB
Latest Revision
Ana Guerrero's avatar Ana Guerrero (anag+factory) accepted request 1114257 from Dirk Mueller's avatar Dirk Mueller (dirkmueller) (revision 6)
- Update to 1.3.0 (bsc#1215804, CVE-2021-29063):
  * Security issues:
    - Fixed ReDOS vulnerability in mpmathify() (CVE-2021-29063)
  * Features:
    - Added quadsubdiv() for numerical integration with adaptive path splitting
    - Added the Cohen algorithm for inverse Laplace transforms
    - Some speedup of matrix multiplication
    - Optimizations to Carlson elliptic integrals
    - Added signal functions (squarew(), trianglew(), sawtoothw(), unit_triangle()
    sigmoidw())
  * Bug fixes:
    - Correct mpf initialization from tuple for finf and fninf
    - Support QR decomposition for matrices of width 0 and 1
    - Fixed some cases where elliprj() gave inaccurate results
    - Fixed cases where digamma() hangs for complex input
    - Fixed cases of polylog() with integer-valued parameter with complex type
    - Fixed fp.nsum() with Euler-Maclaurin algorithm
  * Maintenance:
    - Dropped support for Python 3.4
    - Documentation cleanup
    - Removed obsolete files
    - Added options to runtests.py to skip tests and exit on failure
- Add %{?sle15_python_module_pythons}
Comments 0
openSUSE Build Service is sponsored by