首页 > 其他 > 详细

用 np.logspace() 创建等比数列

时间:2019-12-15 14:51:56      阅读:296      评论:0      收藏:0      [点我收藏+]

np.logspace( start, stop, num=50, endpoint=True, base=10.0, dtype=None, axis=0, )

Docstring:

  Return numbers spaced evenly on a log scale.

  In linear space, the sequence starts at ``base ** start`` (`base` to the power of `start`) and ends with ``base ** stop``

(see `endpoint` below).

 

等比数列通项为:an  = a1 * qn-1

用 np.logspace() 创建等比数列

原文:https://www.cnblogs.com/shanger/p/12043959.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!