__device__ float hypotf ( float  x,
float  y 
)

Calculates 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-1.


Generated by Doxygen for NVIDIA CUDA Library  NVIDIA