
Complex numbers
Calculate complex numbers using the values and assumptions you provide.
Your inputs stay in your browser. Displayed results are rounded to a maximum of 12 significant digits.
Method and assumptions
Method version 1.0.0 · Updated
Calculate
Formula: (a + bi) ⊙ (c + di), using the selected operation
Calculate complex numbers using the values and assumptions you provide.
- a
- Coefficient a
- b
- Coefficient b
- c
- Coefficient c
- d
- Coefficient d
- operation
- Operation
Results depend on the assumptions entered; verify professional or safety-critical decisions independently.
Calculate with code
These short examples use the same inputs and core calculation as this tool. Adapt validation and formatting to your application.
JavaScript
const [a, b, c, d] = [2, 3, 4, 1]; // (2+3i)(4+i)
console.log(`${a*c-b*d} + ${a*d+b*c}i`); // 5 + 14iTypeScript
const [a, b, c, d]: number[] = [2, 3, 4, 1];
const real = a*c-b*d, imaginary = a*d+b*c;
console.log(`${real} + ${imaginary}i`); // 5 + 14iPython
a, b, c, d = 2, 3, 4, 1
print(complex(a,b) * complex(c,d)) # (5+14j)Java
double real = 2*4 - 3*1, imaginary = 2*1 + 3*4;
System.out.println(real + " + " + imaginary + "i"); // 5 + 14iC#
double real = 2*4 - 3*1, imaginary = 2*1 + 3*4;
Console.WriteLine($"{real} + {imaginary}i"); // 5 + 14i