Return evenly spaced values within a given interval.
This can be called with a varying number of arguments, just like the range() builtin function in Python.
arange(stop)
arange(0, stop, 1)
arange(start, stop)
arange(start, stop, 1)
arange(start, stop, step)
start
stop
step
Defaults to an integer data type. This can produce unintended results when using a non-integer step, so prefer linspace() in those cases.
Optional
Return evenly spaced values within a given interval.
This can be called with a varying number of arguments, just like the range() builtin function in Python.
arange(stop)is equivalent toarange(0, stop, 1).arange(start, stop)is equivalent toarange(start, stop, 1).arange(start, stop, step)creates an array starting atstart, ending beforestop, with a step size ofstep.Defaults to an integer data type. This can produce unintended results when using a non-integer step, so prefer linspace() in those cases.