Method: MoreMath::Functions.cantor_pairing_inv

Defined in:
lib/more_math/functions.rb

.cantor_pairing_inv(c, n = 2) ⇒ Object

Returns the inverse of Cantor’s tuple function for the value c. n is the length of the tuple (defaults to 2, a pair).



196
197
198
# File 'lib/more_math/functions.rb', line 196

def cantor_pairing_inv(c, n = 2)
  CantorPairingFunction.cantor_pairing_inv(c, n)
end