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

user1220022 picture user1220022 · May 15, 2012 · Viewed 280.1k times · Source

Using numpy, how can I do the following:

ln(x)

Is it equivalent to:

np.log(x)

I apologise for such a seemingly trivial question, but my understanding of the difference between log and ln is that ln is logspace e?

Answer

JoshAdel picture JoshAdel · May 15, 2012