**Input:** A complex number $x = a + bi$.
**Goal:** Return the modulus of this number, $|x|$.
<details>
<summary><b>Need a hint?</b></summary>
A video explanation of absolute value and complex numbers can be found [here](https://www.youtube.com/watch?v=FwuPXchH2rA).
</details>
> Q# function `AbsComplex` from `Std.Math` namespace gets the absolute value of a complex number. For educational purposes, try to do this task by hand.microsoft/qdk
Publicmirrored fromhttps://github.com/microsoft/qdkAvailable
katas/content/complex_arithmetic/complex_modulus/index.md
12lines · modepreview