method

sqrt

v1_9_3_125 - Show latest stable - Class: CMath
sqrt(z)
public

Returns the non-negative square root of Complex.

sqrt(-1)            #=> 0+1.0i
sqrt(Complex(-1,0)) #=> 0.0+1.0i
sqrt(Complex(0,8))  #=> 2.0+2.0i