cpp/numeric/math/sqrt
De cppreference.com
< cpp | numeric/math
Sintaxis:
#include <cmath> double sqrt( double num );
La función sqrt() devuelve la raíz cuadrada de num. Si num es negativo, genera un error de dominio.
C++ también proporciona las siguientes formas de sobrecarga:
#include <cmath> float sqrt( float num ); igual que sqrtf() en C99 long double sqrt( long double num ); igual que sqrtl() en C99