__device__ double hypot ( double  x,
double  y 
)

Calculate the length of the hypotenuse of a right triangle whose two sides have lengths x and y without undue overflow or underflow.

Returns:
Returns the length of the hypotenuse $\sqrt{x^2+y^2}$. If the correct value would overflow, returns $\infty$. If the correct value would underflow, returns 0.
Note:
For accuracy information for this function see the CUDA C Programming Guide, Appendix C, Table C-2.


Generated by Doxygen for NVIDIA CUDA Library  NVIDIA