std::sqrt

From cppreference.com
Jump to: navigation, search
Defined in header <cmath>
float       sqrt( float arg );
double      sqrt( double arg );
long double sqrt( long double arg );
double      sqrt( Integral arg );
(since C++11)

Computes square root of arg.

[edit] Parameters

arg - floating point or integer value

[edit] Return value

square root of arg.

Domain error occurs if arg is negative. NAN is returned in that case.

[edit] See also

(C++11)
computes cubic root (3x)
(function) [edit]
raises a number to the given power (xy)
(function) [edit]
complex square root in the range of the right half-plane
(function template) [edit]
applies the function std::sqrt to each element of valarray
(function template) [edit]

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox