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; }