c:math:sqrt From C++ Reference previous page next page sqrt Syntax: #include <cmath> double sqrt( double num ); The sqrt() function returns the square root of num. If num is negative, a domain error occurs. Related Topics: exp, log, pow previous page start next page