math module
This module is always available. It provides access to the mathematical functions defined by the C standard.
Functions
- def log(...)
- log(x[, base])
Function documentation
def math. log(...)
log(x[, base])
Return the logarithm of x to the given base. If the base not specified, returns the natural logarithm (base e) of x.