/ blog /

Mpmath 0.12 released

June 9, 2009

I’ll quote the mailing list announcement:

Mpmath version 0.12 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 (

Version 0.12 mostly contains bug fixes and speed improvements. New features include various special functions from analytic number theory, Newton’s method as an option for root-finding, and more versatile printing of intervals. It is now also possible to create multiple working contexts each with its own precision. Finally, mpmath now recognizes being installed in Sage and will automatically wrap Sage’s fast integer arithmetic if available.

For more details, see the changelog:

Bug reports and other comments are welcome at the issue tracker at or the mpmath mailing list:

I’ve previously blogged about some of the new features:

Computing generalized Bell numbers
Approximate prime counting
Fun with zeta functions

See those posts or the documentation for many examples.