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

Computes the square root of a. It makes use of Complex and Rational to have no rounding errors if possible.

Math.sqrt(4/9)      # => 2/3
Math.sqrt(- 4/9)    # => Complex(0, 2/3)
Math.sqrt(4.0/9.0)  # => 0.666666666666667
Show source
Register or log in to add new notes.