microsoft/qdk

Public

mirrored fromhttps://github.com/microsoft/qdkAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
v1.3.0

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

katas/content/complex_arithmetic/complex_addition/solution.md

5lines · modepreview

Adding two complex numbers can be done by separately adding the real parts of the numbers and the imaginary parts:  

$$x + y = (a + bi) + (c + di) = \underset{real}{\underbrace{(a + c)}} + \underset{imaginary}{\underbrace{(b + d)}}i $$

@[solution]({"id": "complex_arithmetic__complex_addition_solution", "codePath": "Solution.qs"})