ABS

Purpose:

Produces the absolute value of any expression.

Syntax:

ABS(val)

val

-

A scalar, series or table.

Returns:

A scalar, series, or table.

Example:

abs(-3)

 

returns 3.

Example:

abs(-3 + 2i)

 

returns 3.605551, a real scalar.

Example:

mag(-3 + 2i)

 

returns 3.605551, a real scalar.

Example:

abs(mean(W7))

 

returns a scalar which is the absolute value of the mean of the series in Window 7.

Example:

abs(gsin(100,0.1,1))

 

rectifies a sine wave. The series contains only non-negative Y values.

Remarks:

ABS always returns a result for a complex input and is identical to MAG.

See Also:

HYPOT

IMAGINARY

MAGNITUDE

PHASE

REAL