LOGSPACE

Purpose:

Creates a series of N log spaced values from 10^lo to 10^hi inclusive.

Syntax:

LOGSPACE(lo, hi, n)

lo

-

Optional. A real, the start range. Defaults to 0.0.

hi

-

Optional. A real, the end range. Defaults to 3.0.

n

-

Optional. An integer, the number of samples. Defaults to 100.

Returns:

A series of N logarithmically spaced values.

Example:

logspace(1, 5, 5)

 

returns {10, 100, 1000, 10000, 100000}

Example:

logspace(0, 5, 5)

 

returns {1, 17.783, 316.228, 5623.413, 100000}

Remarks:

The DELTAX values of the resulting series is (10^hi - 10^lo)/(n-1) and the XOFFSET is set to 10^lo.

See Also:

.. (Range Specifier)

GLINE

LINSPACE