本文介绍了您如何在python中使用numpy进行自然日志记录(例如"ln()")?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
使用numpy,如何执行以下操作:
Using numpy, how can I do the following:
ln(x)
是否等同于:
np.log(x)
我为这个看似微不足道的问题表示歉意,但我对log
和ln
之间的区别的理解是,ln
是日志空间e?
I apologise for such a seemingly trivial question, but my understanding of the difference between log
and ln
is that ln
is logspace e?
推荐答案
np.log
是ln
,而np.log10
是您的标准10进制日志.
np.log
is ln
, whereas np.log10
is your standard base 10 log.
相关文档:
http://docs.scipy.org/doc/numpy/reference/produced /numpy.log.html
http://docs.scipy.org/doc/numpy/reference/produced /numpy.log10.html
这篇关于您如何在python中使用numpy进行自然日志记录(例如"ln()")?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!