Method deprecated or moved
This method is deprecated or moved on the latest stable version.
The last existing version (v2_4_6) is shown here.
These similar methods exist in v2_5_5:
sqrt(a)
private
Show source
def sqrt(a)
if a.kind_of?(Complex)
sqrt!(a)
elsif a.respond_to?(:nan?) and a.nan?
a
elsif a >= 0
rsqrt(a)
else
Complex(0,rsqrt(-a))
end
end