侧边栏壁纸
博主头像
noerror

虚灵不寐,众理具而万事出。

  • 累计撰写 239 篇文章
  • 累计创建 9 个标签
  • 累计收到 2 条评论
标签搜索

目 录CONTENT

文章目录

casinh函数用法详解

noerror
2022-10-14 / 0 评论 / 0 点赞 / 113 阅读 / 174 字 / 正在检测是否收录...

casinh函数用法详解

casinh函数简介

  • 头文件包含
#include <complex.h>
  • 函数定义
double complex casinh(double complex  z );
float complex casinhf(float complex  z );
long double complex casinhl(long double complex  z );
  • 编译链接选项
-lm

casinh函数常见使用错误

  • 链接错误
    undefined reference to `casinh'
    解决办法:添加链接选项
-lm
  • 编译错误
    warning: implicit declaration of function ‘casinh’ [-Wimplicit-function-declaration]
    解决办法:包含头文件
#include <complex.h>

casinh函数详细描述

这些函数计算z 的复圆弧双曲正弦,如果y = casinh(z),然后pz = csinh(y)。在区间[\-pi/2,pi/2]中选择y的虚部。
一个有:

   casinh(z) = clog(z + csqrt(z * z + 1))
0

评论区