method

sqrt

ruby latest stable - Class: CMath
sqrt(z)
private

Returns the non-negative square root of Complex.

CMath.sqrt(-1 + 0i) #=> 0.0+1.0i