MAGNITUDE

Purpose:

Returns the magnitude component of an expression that is in Polar (magnitude/angle), Cartesian (Real/Imaginary) or other form.

Syntax:

MAGNITUDE(val)

val

-

A scalar, series or table.

Returns:

A scalar, series, or table.

Example:

magnitude(-3)

 

returns 3.

Example:

mag(3.0 + 4.0i)

 

yields 5, the hypotenuse length of a 3-4-5 triangle.

Example:

mag(W1)

 

returns a new series corresponding to the magnitude component of the original series, whether Polar or Cartesian form.

Remarks:

MAGNITUDE always returns real, positive values.

 

MAGNITUDE can be abbreviated MAG.

See Also:

ABS

ANGLE

CONJUGATE

HYPOT

IMAGINARY

MAGSPEC

MAKECARTESIAN

MAKEPOLAR

PHASE

REAL