Пример #1
0
        public static BigInteger operator *(BigInteger a, int b)
        {
            bool IsPositive;
            uint Magnitude;
            if (b > 0) {
            IsPositive = true;
            Magnitude = (uint) b;
            } else {
            IsPositive = false;
            Magnitude = (uint) -b;
            }

            return new BigInteger(a.IsPositive == IsPositive, a.Magnitude * Magnitude);
        }
Пример #2
0
        public static BigInteger operator +(BigInteger a, int b)
        {
            bool IsPositive;
            uint Magnitude;
            if (b > 0) {
            IsPositive = true;
            Magnitude = (uint) b;
            } else {
            IsPositive = false;
            Magnitude = (uint) -b;
            }

            if (a.IsPositive == IsPositive) {
            return new BigInteger(a.IsPositive, a.Magnitude + Magnitude);
            }
            else if (a.Magnitude > Magnitude) {
            return new BigInteger(a.IsPositive, a.Magnitude - Magnitude);
            }
            else {
            return new BigInteger(IsPositive, Magnitude - a.Magnitude);
            }
        }
 protected virtual bool IsPrimeAcceptable(Mono.Math.BigInteger bi, object context)
 {
     throw new NotImplementedException();
 }
Пример #4
0
 public Boolean Mono.Math.BigInteger::op_LessThanOrEqual(Mono.Math.BigInteger,Mono.Math.BigInteger)
Пример #5
0
 public Boolean Mono.Math.BigInteger::op_Inequality(Mono.Math.BigInteger,Mono.Math.BigInteger)
Пример #6
0
 public Mono.Math.BigInteger Mono.Math.BigInteger::op_Division(Mono.Math.BigInteger,Mono.Math.BigInteger)
Пример #7
0
 public Mono.Math.BigInteger Mono.Math.BigInteger::op_Subtraction(Mono.Math.BigInteger,Mono.Math.BigInteger)
Пример #8
0
 public Mono.Math.BigInteger Mono.Math.BigInteger::ModPow(Mono.Math.BigInteger,Mono.Math.BigInteger)
Пример #9
0
 //ctor:
 public BigInteger(Mono.Math.BigInteger bi, uint len)
 {
 }
Пример #10
0
 //ctor:
 public BigInteger(Mono.Math.BigInteger bi)
 {
 }
Пример #11
0
 public static BigInteger NextHighestPrime(Mono.Math.BigInteger bi)
 {
     throw new NotImplementedException();
 }
Пример #12
0
 public BigInteger ModPow(Mono.Math.BigInteger exp, BigInteger n)
 {
     throw new NotImplementedException();
 }
Пример #13
0
 public BigInteger ModInverse(Mono.Math.BigInteger modulus)
 {
     throw new NotImplementedException();
 }
Пример #14
0
 public BigInteger GCD(Mono.Math.BigInteger bi)
 {
     throw new NotImplementedException();
 }
Пример #15
0
 public Boolean Mono.Math.Prime.PrimalityTest::Invoke(Mono.Math.BigInteger,Mono.Math.Prime.ConfidenceFactor)
Пример #16
0
 public Sign Compare(Mono.Math.BigInteger bi)
 {
     throw new NotImplementedException();
 }
Пример #17
0
 public static uint Modulus(Mono.Math.BigInteger bi, uint ui)
 {
     throw new NotImplementedException();
 }
Пример #18
0
 public Mono.Math.BigInteger Mono.Math.BigInteger::op_Addition(Mono.Math.BigInteger,Mono.Math.BigInteger)
Пример #19
0
 public static BigInteger Divid(Mono.Math.BigInteger bi1, BigInteger bi2)
 {
     throw new NotImplementedException();
 }
Пример #20
0
 public Mono.Math.BigInteger Mono.Math.BigInteger::op_Modulus(Mono.Math.BigInteger,Mono.Math.BigInteger)
Пример #21
0
 public static BigInteger Multiply(Mono.Math.BigInteger bi, int i)
 {
     throw new NotImplementedException();
 }
Пример #22
0
 public Mono.Math.BigInteger Mono.Math.BigInteger::op_Multiply(Mono.Math.BigInteger,Mono.Math.BigInteger)
Пример #23
0
 public static bool SmallPrimeSppTest(Mono.Math.BigInteger bi, ConfidenceFactor confidence)
 {
     throw new NotImplementedException();
 }
Пример #24
0
 public Boolean Mono.Math.BigInteger::op_GreaterThanOrEqual(Mono.Math.BigInteger,Mono.Math.BigInteger)
Пример #25
0
 public static bool Test(Mono.Math.BigInteger n, ConfidenceFactor confidence)
 {
     throw new NotImplementedException();
 }
Пример #26
0
 public BigInteger(bool IsPositive, BigNatural Magnitude)
 {
     this.IsPositive = IsPositive;
     this.Magnitude = Magnitude;
 }
Пример #27
0
 public Void Mono.Math.BigInteger::.ctor(Mono.Math.BigInteger/SignUInt32)
Пример #28
0
 public Mono.Math.BigInteger Mono.Math.BigInteger::Add(Mono.Math.BigInteger,Mono.Math.BigInteger)
Пример #29
0
 public Mono.Math.BigInteger Mono.Math.BigInteger::Subtract(Mono.Math.BigInteger,Mono.Math.BigInteger)
 protected override bool PostTrialDivisionTests(Mono.Math.BigInteger bi)
 {
     throw new NotImplementedException();
 }
Пример #31
0
 public Mono.Math.BigInteger Mono.Math.BigInteger::Divid(Mono.Math.BigInteger,Mono.Math.BigInteger)
Пример #32
0
 public IAsyncResult Mono.Math.Prime.PrimalityTest::BeginInvoke(Mono.Math.BigInteger,Mono.Math.Prime.ConfidenceFactorAsyncCallbackObject)
Пример #33
0
 public Boolean Mono.Math.Prime.PrimalityTests::SmallPrimeSppTest(Mono.Math.BigInteger, Mono.Math.Prime.ConfidenceFactor)