DADiSP Worksheet Functions > Function Categories > Generated Series > GSERIES
Generates a Real series from the specific values.
GSERIES(val1, val2, ..., valN)
valN - A real or complex integer or scalar.
A series.
gseries(0, 0, 0, 1, 1, 1)
generates a 3-point square wave delayed by 3 points.
gser(1, 1+2i, 3)
returns: {1+0i, 1+2i, 3+0i} i.e. a complex series.
gser(1, 2, 3)
returns: {1, 2, 3} i.e. a real series.
Delta x is fixed at 1.0. Use SETDELTAX to change the spacing on the x-axis. The values specified are Real by default.
GSERIES can be abbreviated GSER.
The { } can also be used to construct a series or array from real, complex or series values. For example:
{-1, 1..5, -1}
creates the series {-1, 1, 2, 3, 4, 5, -1}