qat.core.variables.ln
- qat.core.variables.ln(number)
Natural logarithm of a (positive or complex) number
from math import exp from qat.core.variables import ln print(ln(exp(2)))
2.0
- Parameters:
number (
Variable
orArithExpression
or number) – a positive or complex number- Returns:
natural logarithm
- Return type:
ArithExpression
or number