microsoft/qdk

Public

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

CodeCommitsIssuesPull requestsActionsInsightsSecurity
v1.14.0

Branches

Tags

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

Clone

HTTPS

Download ZIP

katas/content/complex_arithmetic/complex_exponents/Solution.qs

7lines · modecode

1namespace Kata {
2 import Std.Math.*;
3
4 function ComplexExponent(x : Complex) : Complex {
5 Complex(E()^x.Real * Cos(x.Imag), E()^x.Real * Sin(x.Imag))
6 }
7}
8