Math.cbrt cube root would be nice

Roger Andrews roger.andrews at
Fri Mar 9 19:24:45 PST 2012

A Math.cbrt cube root function would be nice.

This should be more accurate than pow(x,1/3) and should not have a domain 
error for x<0.
Unlike pow():
    Math.cbrt(-0) == -0
    Math.cbrt(-Infinity) == -Infinity 

More information about the es-discuss mailing list