AForge.Math.Complex.Exp C# (CSharp) Method

Exp() public static method

Calculates exponent (e raised to the specified power) of a complex number.
public static Exp ( Complex a ) : Complex
a Complex A instance.
return Complex
        public static Complex Exp(Complex a)
        {
            Complex result = Zero;
            double r = System.Math.Exp(a.Re);
            result.Re = r*System.Math.Cos(a.Im);
            result.Im = r*System.Math.Sin(a.Im);

            return result;
        }