Phase (FPScript)

21.09.2021

Forms the phase of complex numbers.

Syntax

Phase(Number)

 

The syntax of the Phase function consists of the following parts:

Part

Description

Number

The real or complex number for which the phase is determined.

All data structures are allowed. All numeric data types are permitted, except calendar time und time span.

Remarks

The result has the same structure as the argument Number.

If the number is real, then the result is of the same data type. Otherwise, the result is of the corresponding real data type for the complex argument. The phase angle is output in radians. The phase of positive real numbers is 0 and the phase of negative real numbers is PI. If the argument has a unit then the result has the unit "rad".

If the argument is a list, then the function is executed for each element of the list and the result is also a list.

Available in

FlexPro Basic, Professional, Developer Suite

Examples

Phase((1.0, 1.0))

Results in 0.785398. (PI/4)

Phase(1.0)

Results in 0.

Phase(-2.0)

Results in 3.1415927. (PI)

Phase((0n, 2n))

Results in 1. Result is not 1.57079 because the argument, and thus also the result, is a 32-bit integral data type.

See Also

Absolute Function

PhaseUnwrap Function

PolarTransform Function

Share article or send as email:

You might be interested in these articles