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

不打扰是莪最后的温柔 提交于 2019-12-15 14:12:02

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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!