double hypot (double x , double y); float hypotf (float x , float y);long double hypotl (long double x, long double y);
double hypot (double x , double y); float hypot (float x , float y);long double hypot (long double x, long double y); double hypot (Type1 x , Type2 y); // additional overloads
<cmath>
) for other combinations of arithmetic types (Type1 and Type2): These overloads effectively cast its arguments to double
before calculations, except if at least one of the arguments is of type long double
(in which case both are casted to long double
instead).(x2+y2)
.
|
|
3.000000, 4.000000 and 5.000000 form a right-angled triangle. |