arange
Return evenly spaced values within a given interval. When called with a single argument, it is treated asstop and start defaults to 0.
Returns:
NDArray — 1-D array of evenly spaced values.
linspace
Return evenly spaced numbers over a specified interval. Unlikearange, the stop value is included by default.
Returns:
NDArray — 1-D array of num evenly spaced values from start to stop.
logspace
Return numbers spaced evenly on a log scale. In the default base 10,start and stop are exponents: the sequence runs from base**start to base**stop.
Returns:
NDArray — 1-D array of num samples, equally spaced on a log scale.
geomspace
Return numbers spaced evenly on a log scale (a geometric sequence). Unlikelogspace, start and stop are the actual start/stop values, not exponents.
Returns:
NDArray — 1-D array of num samples, equally spaced on a geometric (log) scale.
Throws: Error if start or stop is zero, or if they have different signs.