您如何在python中使用numpy进行自然日志记录(例如"ln()")? [英] How do you do natural logs (e.g. "ln()") with numpy in Python?

查看:805
本文介绍了您如何在python中使用numpy进行自然日志记录(例如"ln()")?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用numpy,如何执行以下操作:

Using numpy, how can I do the following:

ln(x)

是否等同于:

np.log(x)

我为这个看似微不足道的问题表示歉意,但我对logln之间的区别的理解是,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.logln,而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()")?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆