ANN: mpmath 0.9 released

Fredrik Johansson fredrik.johansson at
Sat Aug 23 17:35:26 CEST 2008


Mpmath version 0.9 is now available from the website:

It can also be downloaded from the Python Package Index:

Mpmath is a pure-Python library for arbitrary-precision
floating-point arithmetic that implements an extensive set of
mathematical functions. It can be used as a standalone library
or via SymPy (

The most significant change in 0.9 is that mpmath now transparently
uses GMPY ( integers instead of
Python's builtin integers if GMPY is installed. This makes mpmath
much faster at high precision. Computing 1 million digits of pi,
for example, now only takes ~10 seconds.

Extensive benchmarks (with and without GMPY) are available here:

Credit goes to Case Van Horsen for implementing GMPY support.

There are many new functions, including Jacobi elliptic functions
(contributed by Mike Taschuk), various exponential integrals,
Airy functions, Fresnel integrals, etc. Several missing basic
utility functions have also been added, and Mario Pernici has
taken great care to optimize the implementations of various
elementary functions.

For a more complete changelog, see:

Bug reports and other comments are welcome at the issue tracker:

or the mpmath mailing list:

Thanks to all who contributed code or provided feedback for
this release!


More information about the Python-announce-list mailing list