cbrt(z)
returns the principal value of the cube root of z
CMath.cbrt(1 + 4i) #=> (1.449461632813119+0.6858152562177092i)
# File lib/cmath.rb, line 164 def cbrt(z) z ** (1.0/3) end