🔢 What is a complex number?
Define i by i² = −1. A complex number is z = x + iy where x and y are real. The real part is Re(z) = x and the imaginary part is Im(z) = y (the number y, not iy). It can also be written as the ordered pair (x, y).
- If y = 0, z is purely real (x + 0i is just x).
- If x = 0, z is purely imaginary (iy).
- Two complex numbers are equal exactly when their real parts match and their imaginary parts match.