csinh函数用法详解
csinh函数简介
- 头文件包含
#include <complex.h>
- 函数定义
double complex csinh(double complex z );
float complex csinhf(float complex z );
long double complex csinhl(long double complex z );
- 编译链接选项
-lm
csinh函数常见使用错误
- 链接错误
undefined reference to `csinh'
解决办法:添加链接选项
-lm
- 编译错误
warning: implicit declaration of function ‘csinh’ [-Wimplicit-function-declaration]
解决办法:包含头文件
#include <complex.h>
csinh函数详细描述
这些函数计算z 的复双曲正弦
复双曲正弦函数定义为:
csinh(z) = (exp(z)\-exp(\-z))/2
评论区