Welcome to mpmath’s documentation!¶
Mpmath is a Python library for arbitrary-precision floating-point arithmetic. For general information about mpmath, see the project website http://mpmath.org/
These documentation pages include general information as well as docstring listing with extensive use of examples that can be run in the interactive Python interpreter. For quick access to the docstrings of individual functions, use the index listing, or type help(mpmath.function_name)
in the Python interactive prompt.
Introduction¶
Basic features¶
Advanced mathematics¶
On top of its support for arbitrary-precision arithmetic, mpmath provides extensive support for transcendental functions, evaluation of sums, integrals, limits, roots, and so on.
- Mathematical functions
- Mathematical constants
- Powers and logarithms
- Trigonometric functions
- Hyperbolic functions
- Signal functions
- Factorials and gamma functions
- Exponential integrals and error functions
- Bessel functions and related functions
- Orthogonal polynomials
- Hypergeometric functions
- Elliptic functions
- Zeta functions, L-series and polylogarithms
- Number-theoretical, combinatorial and integer functions
- q-functions
- Numerical calculus
- Matrices
- Number identification