microsoft/qdk

Public

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

CodeCommitsIssuesPull requestsActionsInsightsSecurity
copilot/replace-qsharp-with-qdk-python-tests

Branches

Tags

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

Clone

HTTPS

Download ZIP

katas/content/complex_arithmetic/complex_division/index.md

15lines · 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}$.

<details>
  <summary><b>Need a hint?</b></summary>
  
A video explanation of complex division can be found [here](https://www.youtube.com/watch?v=Z8j5RDOibV4).

</details>

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