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-04-12 07:47:21
Comments
Leave a Comment

Please login to continue.