numpy.logspace() in Python

The logspace() function of Python numpy class returns the equal number of spaces over every interval on a log scale.



start: It represents the start of the interval range.

stop: This parameter represents the end of the interval range.

endpoint: It optional parameter which takes Boolean values. If passed True, the stop is the last sample.

num:This parameter represents the total number no. of samples to generate.

base: It represents the Base of the log scale. It is an optional float parameter, and by default, it is equal to 10.0.

dtype: This parameter represents the type of output array.


This function returns the ‘ndarray’.

Example 1


Pin It on Pinterest

Share This