Описание тега sqrt
c programming language:
The sqrt()
, sqrtf()
and sqrtl()
functions return the nonnegative square root of x. With the GCC compiler they resid in the math library (libm
), which is linked using -lm
. They can be found in the <math.h>
header.
c++ programming language:
The std::sqrt()
function returns the nonnegative square root of x. It can be found in the <cmath>
header.
matlab:
A built-in function, can (and should) be used in a vectorived manner on numerc matrices.
Handles negative and complex numbers as well.
See official doc for more details.
numpy:
Return the positive square-root of an array, element-wise.
See doc for more details.
java:
Returns the correctly rounded positive square root of a double
value.
See the java.lang.Math
class for more details.