In linear space the sequence starts at base^start and ends at base^stop.

logspace(start, stop, num = 15, base = 10)

Arguments

start

base^startis the starting value of the sequence.

stop

base^stop is the final value in the sequence.

num

Number of sequence elements to generate. Default is 15.

base

The base of the log space. Default is 10.

Value

Sequence from base^start to base^stop evenly logspaced.

Examples

logspace(-5, 5)
#> [1] 1.000000e-05 5.179475e-05 2.682696e-04 1.389495e-03 7.196857e-03 #> [6] 3.727594e-02 1.930698e-01 1.000000e+00 5.179475e+00 2.682696e+01 #> [11] 1.389495e+02 7.196857e+02 3.727594e+03 1.930698e+04 1.000000e+05