Mathematical functions¶
Mpmath implements the standard functions from Python’s math
and cmath
modules, for both real and complex numbers and with arbitrary precision. Many other functions are also available in mpmath, including commonly-used variants of standard functions (such as the alternative trigonometric functions sec, csc, cot), but also a large number of “special functions” such as the gamma function, the Riemann zeta function, error functions, Bessel functions, etc.
- Mathematical constants
- Powers and logarithms
- Trigonometric functions
- Hyperbolic 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