ID EN
Complex Math

log

Python 3.11

Returns the logarithm of x to the given base. If the base is not specified, returns the natural logarithm of x. There is one branch cut, from 0 along the negative real axis to -∞.

Syntax

PYTHON
cmath.log(x[, base])