Ejemplo n.º 1
0
        public static void Divide(ULongIntD A, ULongIntD B, out ULongIntD Q, out ULongIntD R)
        {
            LongIntBase QNumber = new LongIntBase(A.Base);
            LongIntBase RNumber = new LongIntBase(B.Base);

            LongMath.Divide(A, B, out QNumber, out RNumber, true, true);
            Q = new ULongIntD(QNumber, ConstructorMode.Assign);
            R = new ULongIntD(RNumber, ConstructorMode.Assign);
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Calculates A*A
 /// </summary>
 /// <param name="A">Long Number</param>
 /// <returns>Long number that is result of self-product of A</returns>
 public static ULongIntD Sqr(ULongIntD A)
 {
     return new ULongIntD(LongMath.InnerSqr(A), ConstructorMode.Assign);
 }
Ejemplo n.º 3
0
        public static ULongIntD Sqrt(ULongIntD A)
        {
            throw new NotImplementedException("Sqrt() is not implemented yet!");
            /*
            ULongIntD currentResult = null;

            return currentResult;
            */
        }
Ejemplo n.º 4
0
 public static ULongIntD Exp(ULongIntD A, ulong n)
 {
     return new ULongIntD(InnerPower(A, n), ConstructorMode.Assign);
 }