当前位置: C语言 -- 标准库 -- <math.h> -- atanhl

atanhl函数


概要:
#include <math.h>
long double atanhl(long double x);

描述:

该函数计算参数x的反双曲正切值。

如果参数x不在区间[-1,+1]内,将发生域错误。如果参数x等于-1或者+1,将可能发生极点错误。如果参数x为非0值且非常接近0,会发生范围错误。


参数:
long double x

参数为long double类型的浮点数。


返回值:

函数返回参数x的反双曲正切值。


范例:
1 
2 
3 
4 
5 
6 
7 
8 
9 
10 
11 
12 
13 
14 
15 
16 
/*函数atanhl范例*/

#include <math.h>
#include <stdio.h>

int main(void)
{
    long double value = 0.5L;
    long double result;

    result = atanhl(value);
    printf("The arc hyperbolic tangent of %.6Lf is %.6Lf.\n", value, result);

    return 0;
}

输出:

The arc hyperbolic tangent of 0.500000 is 0.549306.


相关内容:
atanh double类型的反双曲正切函数。
atanhf float类型的反双曲正切函数。
atanhd32 _Decimal32类型的反双曲正切函数。
atanhd64 _Decimal64类型的反双曲正切函数。
atanhd128 _Decimal128类型的反双曲正切函数。


主要参考资料:

1、ISO/IEC 9899:2024

2、ISO/IEC 9899:2018