Example #1
0
        public static Complex Cosh(Complex value) /* Hyperbolic cos */
        {
            float a = value.m_real;
            float b = value.m_imaginary;

            return(new Complex(HyperbolicMath.Cosh(a) * Mathf.Cos(b), HyperbolicMath.Sinh(a) * Mathf.Sin(b)));
        }
Example #2
0
        // --------------SECTION: Trigonometric operations (methods implementing ITrigonometric)  -------------- //

        public static Complex Sin(Complex value)
        {
            float a = value.m_real;
            float b = value.m_imaginary;

            return(new Complex(Mathf.Sin(a) * HyperbolicMath.Cosh(b), Mathf.Cos(a) * HyperbolicMath.Sinh(b)));
        }