import numpy as np
linspace
=10
a=20
b=200 n
= np.array([a+(b-a)/(n-1) * (i-1) for i in range(1,n+1)]) arr1
\[a+\frac{(b-a)i}{n-1}\] for \(i=1,2,3,\dots, n\)
= np.linspace(a,b,n) arr2
5] arr1[:
array([10. , 10.05025126, 10.10050251, 10.15075377, 10.20100503])
5] arr2[:
array([10. , 10.05025126, 10.10050251, 10.15075377, 10.20100503])