Advertisement

Complex number calculator

Write the first number as a + bi and the second as c + di. Choose an operation; powers and logarithms use the principal argument.

Calculator

Result real part
4.00000000
Result imaginary part
-2.00000000
Result magnitude
4.47213595
Principal argument
-0.463648
Polar form
4.472135955 exp(i * -0.463647609)
First number magnitude
2.23606798
Second number magnitude
5.00000000
First number argument
1.10715
Second number argument
-0.927295

Advertisement

How this calculator works

Complex arithmetic keeps real and imaginary parts separate using i^2 = -1. Division multiplies by a conjugate, while powers are evaluated as exp(w log z). The principal logarithm chooses an argument from -pi to pi. Magnitude is non-negative and phase uses the engine angle selector. Zero has no phase.

Formula

(a+bi)(c+di) = (ac-bd) + (ad+bc)i. log(z) = ln|z| + i arg(z). z^w = exp(w log(z)).

Worked example

(1 + 2i)(3 - 4i) = 3 - 4i + 6i - 8i^2 = 11 + 2i. For division, (3 + 4i)/(1 - 2i) = (-5 + 10i)/5 = -1 + 2i.

Advertisement

Frequently asked questions

Why can powers have more than one value mathematically?

A complex logarithm can differ by multiples of 2pi i. This calculator consistently uses the principal branch.

Can I divide by zero?

No. Both parts of the divisor cannot be zero.

Are phase values degrees?

The default readout is radians. Select degrees or turns in the output unit control.

Sources

Advertisement