A '''[[wp:Complex number|complex number]]''' is a number which can be written as:
(sometimes shown as:
where and are real numbers, and [[wp:Imaginary_unit|]] is √{{overline| -1 }}
Typically, complex numbers are represented as a pair of real numbers called the "imaginary part" and "real part", where the imaginary part is the number to be multiplied by .
;Task:
* Show addition, multiplication, negation, and inversion of complex numbers in separate functions. (Subtraction and division operations can be made with pairs of these operations.)
* Print the results for each operation tested.
* ''Optional:'' Show complex conjugation.
By definition, the [[wp:complex conjugate|complex conjugate]] of
is
Some languages have complex number libraries available. If your language does, show the operations. If your language does not, also show the definition of this type.