microsoft/qdk
Publicmirrored fromhttps://github.com/microsoft/qdkAvailable
katas/content/complex_arithmetic/complex_division/index.md
15lines · modecode
| 1 | **Inputs:** |
| 2 | |
| 3 | 1. A complex number $x = a + bi$. |
| 4 | 2. A complex number $y = c + di \neq 0$. |
| 5 | |
| 6 | **Goal:** Return the result of the division $\frac{x}{y} = \frac{a + bi}{c + di}$. |
| 7 | |
| 8 | <details> |
| 9 | <summary><b>Need a hint?</b></summary> |
| 10 | |
| 11 | A video explanation of complex division can be found [here](https://www.youtube.com/watch?v=Z8j5RDOibV4). |
| 12 | |
| 13 | </details> |
| 14 | |
| 15 | > Q# function `DividedByC` from `Microsoft.Quantum.Math` namespace divides two complex numbers. For educational purposes, try to do this task by hand. |
| 16 | |