Ejemplo n.º 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)
            });
        }
Ejemplo n.º 2
0
 public static object /*!*/ LeftShift(RubyContext /*!*/ context, int self, [DefaultProtocol] IntegerValue other)
 {
     return(ClrBigInteger.LeftShift(context, self, other));
 }
Ejemplo n.º 3
0
 public static object /*!*/ BitwiseOr(RubyContext /*!*/ context, int self, [DefaultProtocol] IntegerValue other)
 {
     return(ClrBigInteger.BitwiseOr(context, self, other));
 }
Ejemplo n.º 4
0
 public static object /*!*/ Gcd(BigInteger /*!*/ self, BigInteger /*!*/ other)
 {
     return(ClrBigInteger.Abs(SignedGcd(self, other)));
 }