hypotl函数
概要:
#include <math.h> long double hypotl(long double , long double );
描述:
该函数计算表达式的值,且在计算过程中不会发生不必要的上溢或者下溢。
对于一些有限实参,该函数会发生范围错误。
参数:
long double
参数为long double类型的浮点数。
long double
参数为long double类型的浮点数。
返回值:
函数返回的值。
范例:
|
|
输出:
The square root of the sum of the squares of 3.000000 and 4.000000 is 5.000000.
相关内容:
| hypot | double类型的返回的函数。 |
| hypotf | float类型的返回的函数。 |
| hypotd32 | _Decimal32类型的返回的函数。 |
| hypotd64 | _Decimal64类型的返回的函数。 |
| hypotd128 | _Decimal128类型的返回的函数。 |
主要参考资料: