예제 #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)));
        }
예제 #2
0
        public static Complex Cos(Complex value)
        {
            float a = value.m_real;
            float b = value.m_imaginary;

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