hypot(3) Library Functions Manual hypot(3) hypot, hypotf, hypotl - (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 || /* glibc 2.19: */ _DEFAULT_SOURCE || /* glibc <= 2.19: */ _BSD_SOURCE || _SVID_SOURCE hypotf(), hypotl(): _ISOC99_SOURCE || _POSIX_C_SOURCE >= 200112L || /* Since glibc 2.19: */ _DEFAULT_SOURCE || /* glibc <= 2.19: */ _BSD_SOURCE || _SVID_SOURCE sqrt(x*x+y*y). x y (x,y) . . x 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(), | | MT-Safe | |hypotf(), | | | |hypotl() | | | +------------+------------------------------------+--------------------+ C11, POSIX.1-2008. C99 POSIX.1-2001. double SVr4 4.3BSD. cabs(3), sqrt(3) 3 . . : . 6.18 8 2026 hypot(3)