microsoft/qdk

Public

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

CodeCommitsIssuesPull requestsActionsInsightsSecurity
1.25.1

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 · modepreview

namespace Kata {
    import Std.Math.*;

    function ComplexExponent(x : Complex) : Complex {
        Complex(E()^x.Real * Cos(x.Imag), E()^x.Real * Sin(x.Imag))
    }
}