1.等差数列:返回在间隔【开始,停止】上计算的num个均匀间隔的样本,数组是一个等差数列
np.linspace(start,step,num=50,endpoint=True,retstep=False,dtype=None)
2等比数列:
np.logspace(start,stop.num=50.endpoint=True,base=10.0,dtype=None)
base是底数
1.等差数列:返回在间隔【开始,停止】上计算的num个均匀间隔的样本,数组是一个等差数列
np.linspace(start,step,num=50,endpoint=True,retstep=False,dtype=None)
2等比数列:
np.logspace(start,stop.num=50.endpoint=True,base=10.0,dtype=None)
base是底数