In linear space the sequence starts at base
^start
and ends at
base
^stop
.
logspace(start, stop, num = 15, base = 10)
start |
|
---|---|
stop |
|
num | Number of sequence elements to generate. Default is 15. |
base | The base of the log space. Default is 10. |
Sequence from base
^start
to base
^stop
evenly logspaced.
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