So, so sorry.

Even easier.

def cube_root(x)
  x**(1/3.0)
end

Cheers,

Serabe

-- 
http://sergio.arbeo.net
http://www.serabe.com