A   '''[[wp:Complex number|complex number]]'''   is a number which can be written as: a + b \times i (sometimes shown as: b + a \times i where   a   and   b  are real numbers,   and   [[wp:Imaginary_unit|i]]   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 i. ;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 a + bi is a - bi
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.