Function: sqrt

sqrt is a function defined in floatfns.c.

Signature

(sqrt ARG)

Documentation

Return the square root of ARG.

Other relevant functions are documented in the number group.

Probably introduced at or before Emacs version 24.3.

Shortdoc

;; number
(sqrt -1)
    => -0.0e+NaN

Source Code

// Defined in /usr/src/emacs/src/floatfns.c
{
  double d = extract_float (arg);
  d = sqrt (d);
  return make_float (d);
}