Source Code:
(back to article)
a = 5 + 2j b = 3 + 4j # Addition c = a + b print(c) # (8+6j) # Subtraction c = a - b print(c) # (2-2j) # Multiplication c = a * b print(c) # (1+20j) # Division c = a / b print(c) # (0.6-0.4j)
Result:
Report an issue