中文网站
https://www.numpy.org.cn/
https://www.numpy.org.cn/user_guide/quickstart_tutorial/the_basics.html#数组的创建
from numpy import pi
np.linspace( 0, 2, 9 ) # 9 numbers from 0 to 2
array([ 0. , 0.25, 0.5 , 0.75, 1. , 1.25, 1.5 , 1.75, 2. ])
x = np.linspace( 0, 2*pi, 100 ) # useful to evaluate function at lots of points
f = np.sin(x)
https://docs.scipy.org/doc/numpy/reference/generated/numpy.linspace.html#numpy.linspace
numpy.linspace(start, stop, num=50, endpoint=True, retstep=False, dtype=None)[source]
在指定的间隔内返回均匀间隔的数字。
https://docs.scipy.org/doc/numpy/reference/generated/numpy.logspace.html?highlight=logspace#numpy.logspace
numpy.logspace(start, stop, num=50, endpoint=True, base=10.0, dtype=None)[source]
英文网站
http://www.numpy.org/