@sym: logspace (a, b) ¶@sym: logspace (a, b, n) ¶Return a symbolic vector of logarithmically-spaced points.
The result will be n points between 10^a
and 10^b, which are equispaced on a logscale.
Examples:
logspace(sym(-2), 1, 4) ⇒ (sym) [1/100 1/10 1 10] (1×4 matrix) logspace(sym(0), 3, 4) ⇒ (sym) [1 10 100 1000] (1×4 matrix)
If omitted, n will default to 50. A special case occurs
if b is pi; this gives logarithmically-spaced points
between 10^a and pi instead:
logspace(0, sym(pi), 4)
⇒ (sym 1×4 matrix)
⎡ 3 ___ 2/3 ⎤
⎣1 ╲╱ π π π⎦
logspace can be combined with vpa:
logspace(vpa(-1), vpa(2), 5)'
⇒ ans = (sym 5×1 matrix)
⎡ 0.1 ⎤
⎢ ⎥
⎢0.56234132519034908039495103977648⎥
⎢ ⎥
⎢3.1622776601683793319988935444327 ⎥
⎢ ⎥
⎢17.782794100389228012254211951927 ⎥
⎢ ⎥
⎣ 100.0 ⎦
See also: @@sym/linspace.
Package: symbolic