why doesn't it exist?
import math [x for x in dir(math) if 'log' in x] >>> ['log', 'log10', 'log1p']
I know I can do log (x, 2), but log2 is really common, so I'm a bit puzzled.
Oh, it looks like it is defined only in C99, not C90, I think this answers my question. Still seems stupid.
python math
nick maxwell Jun 07 2018-10-06T00: 00Z
source share