Some hyperbolic function results different from that specified in C99 Annex G
Zhu Zihao 13 Oct 2026 14:04 UTC
In 'Hyperbolic functions' section, (atanh 1.0+0.0i) is expected to
return +inf.0+.7853981633974483i (+inf.0+pi/4i), which is different from
C99 Annex G
> If z is +1+0i, the result is +∞+0i and FE_DIVBYZERO is raised
-- https://en.cppreference.com/c/numeric/complex/catanh
Do we have good reasons to not following C99?
--
Retrieve my PGP public key:
执行下列命令以获取我的 PGP 公有密钥:
gpg --recv-keys B3EBC086AB0EBC0F45E0B4D433DB374BCEE4D9DC
Zihao / 閱卜錄