How do you do natural logs (e.g. “ln()”) with numpy in Python?

np.log is ln, whereas np.log10 is your standard base 10 log.

Relevant documentation:

http://docs.scipy.org/doc/numpy/reference/generated/numpy.log.html

http://docs.scipy.org/doc/numpy/reference/generated/numpy.log10.html

Leave a Comment