- numpy.linspace() 方法
-> start : [optional] start of interval range. By default start = 0
-> stop : end of interval range
-> retstep : If True, return (samples, step). By deflut restep = False
-> num : [int, optional] No. of samples to generate
-> dtype : type of output array
import numpy as np
# restep set to True
print("B\n", np.linspace(2.0, 3.0, num=5, retstep=True), "\n")
# To evaluate sin() in long range
x = np.linspace(0, 2, 10)
print(x)
print("A\n", np.sin(