Sintaxe:
#include <cmath> double sqrt( double num );
A função sqrt() devolve a raiz quadrada de num. Se num é negativo, ocorre um erro de domínio (domain error).
O C++ também fornece as seguintes formas sobre-carregadas (overload):
#include <cmath> float sqrt( float num ); // igual a sqrtf() em C99 long double sqrt( long double num ); // igual a sqrtl() em C99