Flowdock
method

sqrt

Importance_1
Ruby latest stable (v1_9_3_392) - 0 notes - 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
Show source
Register or log in to add new notes.