module Kernel
Public Instance Methods
tarai(x,y,z) → integer
click to toggle source
computes the tarai function in recursive (naive) manner.
p tarai(12, 6, 0) #=> 12
static VALUE tarai_m(VALUE self, VALUE x, VALUE y, VALUE z) { return LONG2NUM(tarai(NUM2LONG(x), NUM2LONG(y), NUM2LONG(z))); }