hypot函数
概要:
#include <math.h> double hypot(double x, double y);
描述:
该函数计算表达式的值,在计算的中间阶段没有过度的溢出或者下溢。
该函数可能会发生范围错误(range error)。
参数:
double x
参数为一个double类型的浮点数。
double y
参数为一个double类型的浮点数。
返回值:
函数返回的值。
范例:
|
|
输出:
The square root of the sum of the squares of 3.000000 and 4.000000 is 5.000000.
相关内容:
hypotf | float类型的返回的函数。 |
hypotl | long double类型的返回的函数。 |