DADiSP Worksheet Functions > Function Categories > Generated Series > GSERIES

 

GSERIES

Purpose:

Generates a Real series from the specific values.

Syntax:

GSERIES(val1, val2, ..., valN)

 

valN  -  A real or complex integer or scalar.

Returns:

A series.

Example:

gseries(0, 0, 0, 1, 1, 1)

 

generates a 3-point square wave delayed by 3 points.

Example:

gser(1, 1+2i, 3)

 

returns: {1+0i, 1+2i, 3+0i} i.e. a complex series.

Example:

gser(1, 2, 3)

 

returns: {1, 2, 3} i.e. a real series.

Remarks:

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}

See Also:

.. (Range Specifier)

{}

GNUMBER