ComplexPolar(x,y)

Syntax

z = ComplexPolar(x,y)

Description

Sets a complex number to a complex type variable z. Specifies a complex number with an absolute value x and a phase angle y (radian).

Data type

x : Double precision floating point type (Double)

y : Double precision floating point type (Double)

z : Complex type (Complex)

Example of use

Dim a As Complex, pi As Double
pi = 3.14159265
a = ComplexPolar(2.5, 60 * pi / 180)