sqrt()

Calculates the square root of a number.

Library Documentation

double sqrt(double x)

Compute the square root of a number.

Return
The square root of x. The return value is never negative.
Parameters
  • x -

    The number whose square root to find. This value cannot be negative.

Arduino Compatibility

The Maple versino of sqrt() is compatible with Arduino.

See Also

License and Attribution

Portions of this page were adapted from the Arduino Reference Documentation, which is released under a Creative Commons Attribution-ShareAlike 3.0 License.