コード例 #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);
            }
        }
コード例 #3
0
 protected virtual bool IsPrimeAcceptable(Mono.Math.BigInteger bi, object context)
 {
     throw new NotImplementedException();
 }
コード例 #4
0
ファイル: BigInteger_d1.cs プロジェクト: Hengle/JellyTerain
 public Boolean Mono.Math.BigInteger::op_LessThanOrEqual(Mono.Math.BigInteger,Mono.Math.BigInteger)
コード例 #5
0
ファイル: BigInteger_d1.cs プロジェクト: Hengle/JellyTerain
 public Boolean Mono.Math.BigInteger::op_Inequality(Mono.Math.BigInteger,Mono.Math.BigInteger)
コード例 #6
0
ファイル: BigInteger_d1.cs プロジェクト: Hengle/JellyTerain
 public Mono.Math.BigInteger Mono.Math.BigInteger::op_Division(Mono.Math.BigInteger,Mono.Math.BigInteger)
コード例 #7
0
ファイル: BigInteger_d1.cs プロジェクト: Hengle/JellyTerain
 public Mono.Math.BigInteger Mono.Math.BigInteger::op_Subtraction(Mono.Math.BigInteger,Mono.Math.BigInteger)
コード例 #8
0
ファイル: BigInteger_d1.cs プロジェクト: Hengle/JellyTerain
 public Mono.Math.BigInteger Mono.Math.BigInteger::ModPow(Mono.Math.BigInteger,Mono.Math.BigInteger)
コード例 #9
0
ファイル: BigInteger.cs プロジェクト: akrisiun/mono-source
 //ctor:
 public BigInteger(Mono.Math.BigInteger bi, uint len)
 {
 }
コード例 #10
0
ファイル: BigInteger.cs プロジェクト: akrisiun/mono-source
 //ctor:
 public BigInteger(Mono.Math.BigInteger bi)
 {
 }
コード例 #11
0
ファイル: BigInteger.cs プロジェクト: akrisiun/mono-source
 public static BigInteger NextHighestPrime(Mono.Math.BigInteger bi)
 {
     throw new NotImplementedException();
 }
コード例 #12
0
ファイル: BigInteger.cs プロジェクト: akrisiun/mono-source
 public BigInteger ModPow(Mono.Math.BigInteger exp, BigInteger n)
 {
     throw new NotImplementedException();
 }
コード例 #13
0
ファイル: BigInteger.cs プロジェクト: akrisiun/mono-source
 public BigInteger ModInverse(Mono.Math.BigInteger modulus)
 {
     throw new NotImplementedException();
 }
コード例 #14
0
ファイル: BigInteger.cs プロジェクト: akrisiun/mono-source
 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
ファイル: BigInteger.cs プロジェクト: akrisiun/mono-source
 public Sign Compare(Mono.Math.BigInteger bi)
 {
     throw new NotImplementedException();
 }
コード例 #17
0
ファイル: BigInteger.cs プロジェクト: akrisiun/mono-source
 public static uint Modulus(Mono.Math.BigInteger bi, uint ui)
 {
     throw new NotImplementedException();
 }
コード例 #18
0
ファイル: BigInteger_d1.cs プロジェクト: Hengle/JellyTerain
 public Mono.Math.BigInteger Mono.Math.BigInteger::op_Addition(Mono.Math.BigInteger,Mono.Math.BigInteger)
コード例 #19
0
ファイル: BigInteger.cs プロジェクト: akrisiun/mono-source
 public static BigInteger Divid(Mono.Math.BigInteger bi1, BigInteger bi2)
 {
     throw new NotImplementedException();
 }
コード例 #20
0
ファイル: BigInteger_d1.cs プロジェクト: Hengle/JellyTerain
 public Mono.Math.BigInteger Mono.Math.BigInteger::op_Modulus(Mono.Math.BigInteger,Mono.Math.BigInteger)
コード例 #21
0
ファイル: BigInteger.cs プロジェクト: akrisiun/mono-source
 public static BigInteger Multiply(Mono.Math.BigInteger bi, int i)
 {
     throw new NotImplementedException();
 }
コード例 #22
0
ファイル: BigInteger_d1.cs プロジェクト: Hengle/JellyTerain
 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
ファイル: BigInteger_d1.cs プロジェクト: Hengle/JellyTerain
 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
ファイル: BigInteger_d1.cs プロジェクト: Hengle/JellyTerain
 public Void Mono.Math.BigInteger::.ctor(Mono.Math.BigInteger/SignUInt32)
コード例 #28
0
ファイル: BigInteger_d1.cs プロジェクト: Hengle/JellyTerain
 public Mono.Math.BigInteger Mono.Math.BigInteger::Add(Mono.Math.BigInteger,Mono.Math.BigInteger)
コード例 #29
0
ファイル: BigInteger_d1.cs プロジェクト: Hengle/JellyTerain
 public Mono.Math.BigInteger Mono.Math.BigInteger::Subtract(Mono.Math.BigInteger,Mono.Math.BigInteger)
コード例 #30
0
 protected override bool PostTrialDivisionTests(Mono.Math.BigInteger bi)
 {
     throw new NotImplementedException();
 }
コード例 #31
0
ファイル: BigInteger_d1.cs プロジェクト: Hengle/JellyTerain
 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)