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); }
/// <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); }
public static ULongIntD Sqrt(ULongIntD A) { throw new NotImplementedException("Sqrt() is not implemented yet!"); /* ULongIntD currentResult = null; return currentResult; */ }
public static ULongIntD Exp(ULongIntD A, ulong n) { return new ULongIntD(InnerPower(A, n), ConstructorMode.Assign); }