Numeric & Mathematical
fractions — Rational numbers
random — Generate pseudo-random numbers
statistics — Mathematical statistics functions
decimal — Decimal fixed point and floating point arithmetic
cmath — Mathematical functions for complex numbers
This module provides access to mathematical functions for complex numbers. The functions in this module accept integers, floating-point numbers or complex numbers as arguments. They will also accept any Python object that has either a
method: these methods are used to convert the object to a complex or floating-point number, respectively, and the function is then applied to the result of the conversion.
numbers — Numeric abstract base classes
math — Mathematical functions
This module provides access to the mathematical functions defined by the C standard.