microsoft/qdk

Public

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

CodeCommitsIssuesPull requestsActionsInsightsSecurity
billti/kata-preview

Branches

Tags

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

Clone

HTTPS

Download ZIP

katas/content/complex_arithmetic/complex_exponents/solution.md

7lines · modepreview

To start, we will rewrite the expression $e^{a + bi}$ as a product of two simpler expressions: $ e^a \cdot\ e^{bi} $.
The first part is a real number.
The second part can be expressed using the formula $e^{i\theta} = \cos \theta + i\sin \theta$.
Substituting this into our expression gives:
$$ e^a(\cos b + i\sin b) = \underset{real}{\underbrace{e^a \cos b}} + \underset{imaginary}{\underbrace{e^a \sin b}}i  $$

@[solution]({"id": "complex_arithmetic__complex_exponents_solution", "codePath": "Solution.qs"})