nlogspace

typhon.math.nlogspace(start, stop, num=50)[source]

Creates a vector with equally logarithmic spacing.

Creates a vector with length num, equally logarithmically spaced between the given end values.

Parameters:
  • start (int) – The starting value of the sequence.

  • stop (int) – The end value of the sequence, unless endpoint is set to False.

  • num (int) – Number of samples to generate. Default is 50. Must be non-negative.

Returns: ndarray.

Examples

>>> nlogspace(10, 1000, 3)
array([  10.,  100., 1000.])