Ejemplo n.º 1
0
        public static OmgNum Pow(OmgNum left, OmgNum right)
        {
            bool evenPower = (right.Raw.Digits[0] & 1) == 0;

            if (evenPower || !left.IsNegative)
            {
                return(_Positive(m_multiplier.Pow(left.Raw, right.Raw)));
            }

            return(_Negative(m_multiplier.Pow(left.Raw, right.Raw)));
        }