Complex Arithmetic
Robert P. Munafo, 2010 Sep 11.
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
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
From the Mandelbrot Set Glossary and Encyclopedia, by Robert Munafo, (c) 1987-2012. Mu-ency index
Robert Munafo's home pages on HostMDS © 1996-2012 Robert P. Munafo. about contact
Google+
mrob27
@mrob_27
This work is licensed under a Creative Commons
Attribution-NonCommercial 2.5 License. Details here
s.13