[cfp-interest 3592] csinh
Fred J. Tydeman
tydeman at tybor.com
Thu Sep 11 19:59:22 PDT 2025
C23: G.6.3.5 The csinh functions has these two requirements:
- csinh(+0 + iNaN) returns ±0 + iNaN (where the sign of the real part of the result is unspeci-
fied).
- csinh(NaN + i0) returns NaN + i0.
Since csinh( x + I*y ) == sinh(x)*cos(y) + I*cosh(x)*sin(y)
It seems to me that the last case should be:
- csinh(NaN + i0) returns NaN +/- i0
(where the sign of the imaginary part of the result is unspeci-
fied).
---
Fred J. Tydeman Tydeman Consulting
tydeman at tybor.com Testing, numerics, programming
+1 (702) 608-6093 Vice-chair of INCITS/C (ANSI "C")
Sample C17+FPCE tests: http://www.tybor.com
Savers sleep well, investors eat well, spenders work forever.
More information about the cfp-interest
mailing list