Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

log base 2 python

import math

output = math.log(8, 2)  # second parameter is base of logarithm

print("Output:", output) # Output: 3.0
 
PREVIOUS NEXT
Tagged: #log #base #python
ADD COMMENT
Topic
Name
9+3 =