Articles → Numpy → Linspace Function In Numpy
Linspace Function In Numpy
Purpose
Click to Enlarge
Click to Enlarge
Syntax
linspace(start, end, number_of_evenly_spaced_numbers)
Example
import numpy as np
print(np.linspace(0,150,3))
print(np.linspace(0,150,4))
Output
Click to Enlarge