Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

log in python

def log(x,base):
    result = ln(x)/ln(base)
    return result

def ln(x):
    n = 100000.0
    return n * ((x ** (1/n)) - 1)

print(log(2,4))

#code by fawlid
Source by softhunt.net #
 
PREVIOUS NEXT
Tagged: #log #python
ADD COMMENT
Topic
Name
4+5 =