C
数值 | Numerics

csinhf

csinhf, csinh, csinhl

在头文件中定义
float complex csinhf(float complex z);(1)(自C99以来)
double complex csinh( double complex z (2)(自C99以来)
long double complex csinhl( long double complex z (3)(自C99以来)
在头文件<tgmath.h>中定义
#define sinh(z)(4)(自C99以来)

1-3)计算z的复数双曲正弦。

4)类型 - 通用宏:如果z具有类型long double complex,则调用csinhl。 如果z具有类型double complex,则调用csinh,如果z具有类型float complex,则调用csinhf。 如果z是实数或整数,则宏调用相应的实函数(sinhf,sinh,sinhl)。 如果z是虚数,那么宏调用函数sin的相应实数版本,实现公式sinh(iy)= i sin(y),并且返回类型是虚数。

参数

z-complex argument

返回值

如果没有出现错误,则返回z的复数双曲正弦。

错误处理和特殊值

报告的错误与math_errhandling一致。

如果实现支持IEEE浮点运算,

csinh(conj(z))== conj(csinh(z))

其中cis(y)是cos(y)+ i sin(y)。

注意

双曲正弦的数学定义是sinh z =

| ez-e-z |

|:----|

| 2 |

双曲正弦是复平面中的一个完整函数,并且没有分支切割。它是周期性的,相对于虚部,周期为2πi。

#include <stdio.h> #include <math.h> #include <complex.h> int main(void) { double complex z = csinh(1 // behaves like real sinh along the real line printf("sinh(1+0i) = %f%+fi (sinh(1)=%f)\n", creal(z), cimag(z), sinh(1) double complex z2 = csinh(I // behaves like sine along the imaginary line printf("sinh(0+1i) = %f%+fi ( sin(1)=%f)\n", creal(z2), cimag(z2), sin(1) }

输出:

sinh(1+0i) = 1.175201+0.000000i (sinh(1)=1.175201) sinh(0+1i) = 0.000000+0.841471i ( sin(1)=0.841471)

参考

  • C11标准(ISO / IEC 9899:2011):

参考内容

ccoshccoshfccoshl(C99)(C99)(C99)计算复双曲余弦(函数)
ctanhctanhfctanhl (C99)(C99)(C99) 计算复数双曲正切(函数)
casinhcasinhfcasinhl (C99)(C99)(C99) 计算复曲线双曲正弦函数(函数)
sinhsinhfsinhl(C99)(C99)计算双曲正弦函数(sh(x))(函数)

| sinh的C ++文档 |