/// <summary> /// Returns e raised to the power specified by a complex number. /// </summary> /// <returns>The number e raised to the power <paramref name="value" />.</returns> /// <param name="value">A complex number that specifies a power.</param> public static Complex Exp(Complex value) { var exp = System.Math.Exp(value.Real); if (value.IsReal()) { return(new Complex(exp, 0.0)); } return(new Complex(exp * Trig.Cos(value.Imaginary), exp * Trig.Sin(value.Imaginary))); }
public static Complex Sin(Complex value) { return(Trig.Sin(value)); }