complex-theory
Complex numbers basics - the shit you should have learned in high school
Absolute basics
You can represent complex numbers as the sum of their real parts and their imaginary parts, which also lets you write it in vector notation:
We can represent complex conjugates with * notation:
Using conjugates, we can find the imaginary and real parts of a number quite easily, using these simple formulas:
and
For and , you can extract the real and imaginary scalar components via two functions:
- : takes in a complex number and returns the scalar that multiples the real number component
- : takes in a complex number and returns the scalar that multiples the imaginary number component

- getting the real component from a complex number: By adding a complex number and its conjugate together then dividing the sum by 2, we can isolate just the real number component of the complex number.
- getting the imaginary component from a complex number: By subtracting the conjugate of a complex number from the complex number itself, then dividing the sum by , we can isolate just the imaginary number component of the complex number.
Square and absolute value of a complex number
You also have this property of conjugates concerning the absolute value: