2009/12/18 jzakiya <jzakiya / mail.com>:
> (-3)**3 => -27
>
> (-27)**(1/3.0)  give NaN instead of -3

Ruby 1.9 has Math.cbrt.

% ruby -e 'p Math.cbrt(-27)'
-3.0
-- 
Tanaka Akira