XMINMAX

Purpose:

Returns the minimum and maximum X value of a series.

Syntax:

(xmin, xmax) = XMINMAX(series)

series

-

Optional. A series. Defaults to the current Window.

Returns:

A real, the minimum X value.

 

(xmin, xmax) = XMINMAX(series) returns both the minimum and maximum X values of series.

Example:

W1: gnorm(1000, 0.001);setxoffset(10);

(xmin, xmax) = xminmax(W1);

 

xmin == 10.0

xmax == 10.999

 

Example:

W1: gsin(1000, 1/1000, 2)

W2: gline(1000, 1/1000, 1, 0)

W3: xy(W1, W2)

 

(xmin1, xmax1) = xminmax(w3);

xmin2 = min(xvals(w3));

xmax2 = max(xvals(w3));

 

xmin1 == xmin2 == -1.0

xmax1 == xmax2 ==  1.0.

Remarks:

XMINMAX returns the minimum and maximum X values of a series without copying or explicitly generating the X values. Consequently, XMINMAX is much faster and more memory efficient for large series than using XVALS directly.

See Also:

COLMAX

COLMAXIDX

COLMINIDX

MAX

MAXIDX

MAXLOC

MAXVAL

MIN

MINIDX

ROWMIN

ROWMAX

XVALS