Name

log()

Examples
# Calculates the base-10 logarithm of a number
def log10(x): 
    return (log(x) / log(10))

i = 12
print(log(i))
print(log10(i))
Description Calculates the natural logarithm (the base-e logarithm) of a number. This function expects the n parameter to be a value greater than 0.0.
Syntax
log(n)
Parameters
nfloat: number greater than 0.0
Updated on Tue Jul 11 06:52:24 2017.
Creative Commons License