Exemple #1
0
        public static RubyArray /*!*/ GcdLcm(BigInteger /*!*/ self, BigInteger /*!*/ other)
        {
            BigInteger gcd = SignedGcd(self, other);

            return(new RubyArray {
                ClrBigInteger.Abs(gcd), Lcm(self, other, gcd)
            });
        }
Exemple #2
0
 public static object /*!*/ LeftShift(RubyContext /*!*/ context, int self, [DefaultProtocol] IntegerValue other)
 {
     return(ClrBigInteger.LeftShift(context, self, other));
 }
Exemple #3
0
 public static object /*!*/ BitwiseOr(RubyContext /*!*/ context, int self, [DefaultProtocol] IntegerValue other)
 {
     return(ClrBigInteger.BitwiseOr(context, self, other));
 }
Exemple #4
0
 public static object /*!*/ Gcd(BigInteger /*!*/ self, BigInteger /*!*/ other)
 {
     return(ClrBigInteger.Abs(SignedGcd(self, other)));
 }