A complex number is a number of the form
, whereby and are constants, and is a special
value that is defined as the square root of -1. Of course, you never try
to actually calculate what the square root of -1 is, as that gives a
runtime error; in complex numbers, you always let the remain. For
instance, the complex number cannot be simplified any
further.
Multiplication of two complex numbers and is
defined as
Assignment
We represent a complex number as a tuple of two numeric values. Write a function product that calculates the multiplication of two complex numbers.