Everything

hypot / hypotf / hypotl


Calculates the square root of the sum of squares of floating-point values ( ).

[Format]

#include <math.h>

double hypot(double x, double y);

float hypotf(float x, float y);

long double hypotl(long double x, long double y);

[Parameters]

x, y Values for which the square root of the sum of squares of two parameters ( ) is to be calculated

[Return values]

Normal: Square root of the sum of squares of two parameters ( )

Abnormal: Range error: Returns HUGE_VAL, HUGE_VALF, or HUGE_VALL depending on the function.

[Remarks]

A range error may occur if the result overflows.