# second (linspace(start, stop, N))
u = np.linspace(0, 10, 5)
#third (logspace(start, stop, N)) 
v = np.logspace(1,10,5)


linspace function creates an array of N evenly spaced points between a starting point (start) and an ending point (stop).
linspace(0, 10, 5)
would return an of ([ 0. , 2.5, 5. , 7.5, 10. ])

logspace also produces evenly spaced N points between a starting point (start to the power of 10 (10**start)) and an ending point (stop to the power of 10 (10**stop)) but on a logarithmic spaced scale.
logspace(0, 10, 5)
would return [ 1.00000000e+00 3.16227766e+02 1.00000000e+05 3.16227766e+07 1.00000000e+10]

  • Create 9 points evenly spaced between 10 and 100. print them out.