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