There are functions provided by Numpy to create evenly spaced values within a given interval. One uses a given distance 'arange' and the other one 'linspace' needs the number of elements and creates the distance automatically.
The syntax of arange:
arange([start,] stop[, step,], dtype=None)
It is nearly equivalent to the Python built-in function "range", but arange returns an ndarray rather than a list iterator as range does.
The syntax of arange:
arange([start,] stop[, step,], dtype=None)
It is nearly equivalent to the Python built-in function "range", but arange returns an ndarray rather than a list iterator as range does.