hypotf---distance from origin
#include <math.h> double hypot(double x, double y); float hypotf(float x, float y);
hypot calculates the Euclidean distance
between the origin (0,0) and a point represented by the
Cartesian coordinates (x,y).
hypotf differs only
in the type of its arguments and result.
Normally, the distance value is returned. On overflow,
HUGE_VAL and sets
You can change the error treatment with
hypotf are not ANSI C.
Go to the first, previous, next, last section, table of contents.