DADiSP Worksheet Functions > Function Categories > Macro and Command File Functions > ; (SEMICOLON)

 

; (SEMICOLON)

Purpose:

Combines several functions, commands, or macros on a single line for execution as a whole. This command form may be used at the command line or within a macro.

Syntax:

<formula1> ; <formula2>;<formulaN>

<formulaN>

-

Any valid  formula, a command, function or macro. The following are examples of valid formula types:

1.

An expression evaluation to a series or scalar:

W1 * W1

2.

Commands that return nothing but manipulate a series or Window display:

EXPANDH(2), FPEAK, CURSORON, or PLOTMODE(0).

3.

Built-in or user-defined functions or macros:

AUTOCOR(W1) or PSD(W1)

Example:

W1: gsin(100,.01)

W2: W1*W1;overplot(W1,lred)

 

Window 2 contains the square of W1 and the original data is also overplotted in light red. Any changes to Window 1 cause a re-evaluation of Window 2.

Example:

W1: gnorm(10,1);

W2: spline(W1,3);overp(W1,lred);setsym(4);setsym(14,2)

 

Window 2 performs a cubic spline interpolation of the data in W1. The original data is overplotted onto the resulting interpolation. The interpolated data displays cross (4) symbols and the original data is plotted in light red with circles (14) as symbols.

Remarks:

The semicolon (;) is used as an expression separator.

 

Semicolons are required to terminate expressions in SPL routines.

See Also:

| (Vertical Bar)

SPL: Series Processing Language