コード例 #1
0
        /// <summary>
        /// Exponentiation of field element <paramref name="a"/> to the degree <paramref name="degree"/>
        /// </summary>
        /// <param name="a">Element for exponentiation</param>
        /// <param name="degree">Power for exponentiation</param>
        public static FieldElement Pow(FieldElement a, int degree)
        {
            var c = new FieldElement(a);

            return(c.Pow(degree));
        }