hypot(3) Library Functions Manual hypot(3) hypot, hypotf, hypotl - , LIBRARY Math library (libm, -lm) #include double hypot(double x, double y); float hypotf(float x, float y); long double hypotl(long double x, long double y); glibc (. feature_test_macros(7)): hypot(): _ISOC99_SOURCE || _POSIX_C_SOURCE >= 200112L || _XOPEN_SOURCE || /* Since glibc 2.19: */ _DEFAULT_SOURCE || /* glibc <= 2.19: */ _BSD_SOURCE || _SVID_SOURCE hypotf(), hypotl(): _ISOC99_SOURCE || _POSIX_C_SOURCE >= 200112L || /* glibc 2.19: */ _DEFAULT_SOURCE || /* Glibc <= 2.19: */ _BSD_SOURCE || _SVID_SOURCE sqrt(x*x+y*y). x y, (x,y). . On success, these functions return the length of the hypotenuse of a right-angled triangle with sides of length x and y. x y , . x y NaN, , NaN. , HUGE_VAL, HUGE_VALF HUGE_VALL, . , , . math_error(7), , . : : errno ERANGE. (FE_OVERFLOW). : (FE_UNDERFLOW). errno. attributes(7). +----------------------------+----------------------------------------------------------+--------------------------+ | | | | +----------------------------+----------------------------------------------------------+--------------------------+ |hypot(), hypotf(), hypotl() | | MT-Safe | +----------------------------+----------------------------------------------------------+--------------------------+ C11, POSIX.1-2008. C99, POSIX.1-2001. , double, SVr4, 4.3BSD. cabs(3), sqrt(3) Yuri Kozlov ; GNU (GNU General Public License - GPL, 3 ) , - . - , , <>. Linux man-pages 6.8 2 2024 . hypot(3)