For calculations with complex numbers
there are functions available to calculate the real part, imaginary part, modulus, argument and complex conjugate of a complex number.
You can read more about complex numbers and the complex plane on the page Complex numbers.
|
| Function | Description |
|---|---|
| Re(a + bi) | Calculates the real part of the complex number a + bi. Re(a + bi) = a |
| Im(a + bi) | Calculates the imaginary part of the complex number a + bi. Im(a + bi) = b |
| Abs(a + bi) | Calculates the absolute value of the complex number a + bi, also called the complex modulus. Abs(a + bi) = Sqrt(a2 + b2) |
| Arg(a + bi) | Calculates the complex argument of a + bi.
See also the subject complex plane on the page Complex numbers. |
| Conj(a + bi) | Calculates the complex conjugate of the complex number a + bi.
This is given by changing the sign of the imaginary part. Conj(a + bi) = a - bi |
'Examples of using complex functions
Re(3 + 4i)
Ans = 3
Im(3 + 4i)
Ans = 4
Re(5.5)
Ans = 5.5
Im(5.5)
Ans = 0
Abs(3 + 4i)
Ans = 5
Conj(10.5 + 3.25i)
Ans = 10.5 - 3.25i
' Calculate the modulus and argument for
' the complex value 1 + 2i and check the values
Angles = Rad;
r = Abs(1 + 2i)
r = 2.236067977
theta = Arg(1 + 2i)
theta = 1.107148718
r * Cos(theta)
Ans = 1
r * Sin(theta)
Ans = 2