Method: MoreMath::CantorPairingFunction.cantor_pairing_inv_q

Defined in:
lib/more_math/cantor_pairing_function.rb

.cantor_pairing_inv_q(z) ⇒ Object



25
26
27
28
29
30
31
# File 'lib/more_math/cantor_pairing_function.rb', line 25

def self.cantor_pairing_inv_q(z)
  v = 0
  while cantor_pairing_inv_f(v) <= z
    v += 1
  end
  v - 1
end