ComplexPolar(x,y)
语法
z = ComplexPolar(x,y)
说明
将复数设置为复数类型变量z。指定绝对值为x和相角为y(弧度)的复数。
数据类型
x:双精度浮点型(Double)
y:双精度浮点型(Double)
z:复数类型(Complex)
应用实例
Dim a As Complex, pi As Double
pi = 3.14159265
a = ComplexPolar(2.5, 60 * pi / 180)
z = ComplexPolar(x,y)
将复数设置为复数类型变量z。指定绝对值为x和相角为y(弧度)的复数。
x:双精度浮点型(Double)
y:双精度浮点型(Double)
z:复数类型(Complex)
Dim a As Complex, pi As Double
pi = 3.14159265
a = ComplexPolar(2.5, 60 * pi / 180)