Is there such a function that allows calculating logarithms? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Is there such a function that allows calculating logarithms?

I´d like to use it to calculate the Sturges´ rule, m = 1+3.3log(n)

15th Dec 2020, 6:55 AM
Tecolote Come Elote
Tecolote Come Elote - avatar
2 Answers
+ 2
import math https://docs.python.org/2/library/math.html#math.log
15th Dec 2020, 7:09 AM
Ratnapal Shende
Ratnapal Shende - avatar
+ 1
Thanks, bro. I just ended up finding your answer while looking for info on the internet. XD greeting from Mexico.
15th Dec 2020, 7:13 AM
Tecolote Come Elote
Tecolote Come Elote - avatar