/// <summary> /// Returns the tangent of the specified complex number. /// </summary> /// <param name="value">A complex number.</param> /// <returns>The tangent of value.</returns> public static Complex Tan(Complex value) { double sa = Functions.Sin(value.A); double ca = Functions.Cos(value.A); double shb = Functions.Sinh(value.B); double cha = Functions.Cosh(value.B); return((new Complex(sa * cha, ca * shb)) / (new Complex(ca * cha, -sa * shb))); }
/// <summary> /// Returns the sine of the specified complex number. /// </summary> /// <param name="value">A complex number.</param> /// <returns>The sine of value.</returns> public static Complex Sin(Complex value) { return(new Complex(Functions.Sin(value.A) * Functions.Cosh(value.B), Functions.Cos(value.A) * Functions.Sinh(value.B))); }