示例#1
0
文件: BigInteger.cs 项目: cakoose/cks
        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
文件: BigInteger.cs 项目: cakoose/cks
        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
文件: BigInteger.cs 项目: cakoose/cks
 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)