microsoft/qdk
Publicmirrored fromhttps://github.com/microsoft/qdkAvailable
katas/content/complex_arithmetic/complex_addition/solution.md
5lines · modecode
| 1 | Adding two complex numbers can be done by separately adding the real parts of the numbers and the imaginary parts: |
| 2 | |
| 3 | $$x + y = (a + bi) + (c + di) = \underset{real}{\underbrace{(a + c)}} + \underset{imaginary}{\underbrace{(b + d)}}i $$ |
| 4 | |
| 5 | @[solution]({"id": "complex_arithmetic__complex_addition_solution", "codePath": "Solution.qs"}) |
| 6 | |