7.12.7.3 The hypot functions

Synopsis

1

#include <math.h>
double hypot(double x, double y);
float hypotf(float x, float y);
long double hypotl(long double x, long double y);

Description

2

The hypot functions compute the square root of the sum of the squares of x and y, without undue overflow or underflow. A range error may occur.

3

Returns

4

The hypot functions return (sqrt)(x2 + y2).