Type Function Library math.* Return value Number Revision Current Public Release (2018.3326) Keywords log, logarithm See also math.exp()
math.pow()
Returns the natural logarithm of x
.
print ( math.log (2.718281828459)) ----> very close to 1 print ( math.log (1)) ----> 0 print ( math.log (0)) ----> -inf print ( math.log (-1)) ----> NaN |