[Linux manuál]

hypot, hypotf, hypotl: Euklidovská vzdálenostní funkce

Originální popis anglicky: hypot, hypotf, hypotl - Euclidean distance function

Návod, kniha: Linux Programmer's Manual

STRUČNĚ

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

POPIS / INSTRUKCE

The hypot() function returns sqrt(x*x+y*y). This is the length of the hypotenuse of a right-angle triangle with sides of length x and y, or the distance of the point (x,y) from the origin.

ODPOVÍDAJÍCÍ

SVID 3, BSD 4.3, C99. The float and the long double variants are C99 requirements.

SOUVISEJÍCÍ

cabs(3), sqrt(3)
2002-07-27