mdbtxt1
mdbtxt2
Proceed to Safety

Complex Arithmetic    

Robert P. Munafo, 2023 Jun 13.



All of the standard arithmetic operations can be performed with complex numbers, and there are a few new operations (notably logarithm and square root of negative numbers) that can be done with complex numbers that cannot be done with ordinary real numbers.

These examples define two complex numbers x and y as:

x = a + b i

y = c + d i

(For clarity, on the right side only the i is in italics)

Addition and subtraction are very simple:

x+y = a+c + (b+d)i

x-y = a-c + (b-d)i

Multiplication is fairly simple too:

xy = ac - bd + (ad + bc)i

Division is a little more elaborate. Provided that c2+d2>0, the quotient is:

x/y = (ac+bd)/(c2+d2) + (bc-ad)/(c2+d2) i

For those who are curious: starting from (a+bi)/(c+di), multiply both numerator and denominator by the conjugate c-di; the denominator is then (c2+cdi-cdi-d2i2) and everything simplifies to the above.

--

revisions: 20100911 oldest version on record; 20230613 more details about division




From the Mandelbrot Set Glossary and Encyclopedia, by Robert Munafo, (c) 1987-2024.

Mu-ency main pageindexrecent changesDEMZ


Robert Munafo's home pages on AWS    © 1996-2024 Robert P. Munafo.    about    contact
This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License. Details here.

This page was written in the "embarrassingly readable" markup language RHTF, and was last updated on 2023 Jun 14. s.27