
#include <lcmath.h> double hypot(double x,double y);
hypot computes the square root of the sum of squares of its two arguments.
The value returned by hypot is defined by this equation:
hypot returns the square root of the sum of the squares of its arguments.
stderr) if the result of the computation would be larger than
HUGE_VAL. In this case, the function returns HUGE_VAL, the largest
positive floating-point number that can be represented.
If an error occurs in hypot, the _matherr routine is called.
You can supply your own version of _matherr to suppress the diagnostic
message or modify the value returned.
hypot is portable to many, but not all, non UNIX C implementations.
#include <stdio.h>
#include <lcmath.h>
#define SVECTOR .7854
main()
{
double hypov;
hypov = hypot(SVECTOR,-SVECTOR);
printf("hypot(%f,%f) = %f n", SVECTOR,-SVECTOR, hypov);
}
_matherr
Copyright (c) 1998 SAS Institute Inc. Cary, NC, USA. All rights reserved.