namespace Kata {
import Std.Math.*;
function ComplexExponent(x : Complex) : Complex {
Complex(E()^x.Real * Cos(x.Imag), E()^x.Real * Sin(x.Imag))
}
}microsoft/qdk
Publicmirrored from https://github.com/microsoft/qdkAvailable
katas/content/complex_arithmetic/complex_exponents/Solution.qs
7lines · modepreview