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

Posted shanger

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了用 np.logspace() 创建等比数列相关的知识,希望对你有一定的参考价值。

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() 创建等比数列的主要内容,如果未能解决你的问题,请参考以下文章