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 Feb 27 14:07:12 2024.

If you see any errors or have comments, please let us know.