gcdlcm

int.gcdlcm(int2) â array
Instance Public methods

Returns an array; [int.gcd(int2), int.lcm(int2)].

2.gcdlcm(2)                    #=> [2, 2]
3.gcdlcm(-7)                   #=> [1, 21]
((1<<31)-1).gcdlcm((1<<61)-1)  #=> [1, 4951760154835678088235319297]
doc_ruby_on_rails
2015-05-16 07:11:55
Comments
Leave a Comment

Please login to continue.