Similar to bug 14478 (fixed) for cexp, the functions csin, csinh, ccos, ccosh are missing underflow exceptions when the final result underflows but the multiplication generating it is exact although the mathematical result of the function is not exactly representable. Examples showing this on x86_64 are: csin (0x1p-1074 + 0x1p-1022i) csinh (0x1p-1022 + 0x1p-1074i) ccos (0x1p-954 + 0x1p-120i) ccosh (0x1p-120 + 0x1p-954i)
Fixed for 2.18 by: commit f0302940e7c2acb587971e3c99dfbd00aa4e2134 Author: Joseph Myers <joseph@codesourcery.com> Date: Fri Apr 26 19:25:19 2013 +0000 Fix csin, csinh, ccos, ccosh missing underflows (bug 15405).