DADiSP Worksheet Functions > Function Categories > Series and Scalar Math > W0

 

W0

Purpose:

References the current Window.

Syntax:

W0

Returns:

A Window.

Example:

setx(W0, 1.0, 2.0)

 

sets the x-range of the current Window.

Example:

W1: 1..8;W0[2] = 0

 

creates the series {1, 0, 3, 4, 5, 6, 7, 8}

Remarks:

Depending on context, a Window can refer to the plotting Window itself or the series within a Window. Consider the following,

 

 setx(W1, 3, 4)

 

W1 here refers to the plotting Window since the X range of the axis is being set. Now consider:

 

 deriv(W1)

 

W1 in the above expression refers to the series in W1, since the derivative (a numeric result) is desired.

 

Thus, depending on context, W0 refers to the current plotting Window or the series in the current plotting Window.

 

The CURRENT function always refers to the series in the current Window, so:

 

 deriv(currrent)

 

Is a valid expression, but

 

 setx(current, 3, 4)

 

produces an error.

 

See REFWINDOW to obtain a Window from a variable

See Also:

CURRENT

REFSERIES

REFWINDOW