microsoft/qdk

Public

mirrored from https://github.com/microsoft/qdkAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
minestarks/learning-followup

Branches

Tags

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

Clone

HTTPS

Download ZIP

katas/content/complex_arithmetic/complex_division/index.md

12lines · modepreview

**Inputs:**

1. A complex number $x = a + bi$.
2. A complex number $y = c + di \neq 0$.

**Goal:** Return the result of the division $\frac{x}{y} = \frac{a + bi}{c + di}$.

:::hint
A video explanation of complex division can be found [here](https://www.youtube.com/watch?v=Z8j5RDOibV4).
:::

> Q# function `DividedByC` from `Std.Math` namespace divides two complex numbers. For educational purposes, try to do this task by hand.