用 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

上一篇:Flask中的redirect和url_for


下一篇:GAE云端点与android集成 – 找不到GoogleJsonResponseException 404