sqrt
square root
Synopsis
#include <math.h>
double sqrt(double x);
float sqrtf (float x);
fract16 sqrt_fr16 (fract16 x);
Description
The
function returns the positive square root of the argument.
sqrt
Error Conditions
The
function returns a zero for a negative input.
sqrt
Example
#include <math.h>
double y;
y = sqrt(2.0);
See Also
rsqrt
VisualDSP++ 3.5 C/C++ Compiler and Library Manual
for ADSP-219x DSPs
/* y = 1.414..... */
C/C++ Run-Time Library
3-119
Need help?
Do you have a question about the VISUALDSP++ 3.5 and is the answer not in the manual?
Questions and answers