microsoft/qdk
Publicmirrored fromhttps://github.com/microsoft/qdkAvailable
katas/content/complex_arithmetic/complex_modulus/solution.md
3lines · modecode
| 1 | The modulus of the complex number can be seen as the distance from the origin 0 to the point $x$ in the complex plane. This can be calculated using the Pythagorean theorem: $c^2 = a^2 + b^2$, which means $ c = \sqrt{a^2 + b^2}$ |
| 2 | |
| 3 | @[solution]({"id": "complex_arithmetic__complex_modulus_solution", "codePath": "Solution.qs"}) |
| 4 | |