2.461859078 is the correct value according to my Casio calculator.
I expect it's a glibc bug, so maybe it's better to use the "emulation" functions, yes.
/ Marcus Comstedt (ACROSS) (Hail Ilpalazzo!)
Previous text:
2003-07-17 19:54: Subject: cosh, atanh, sinh
They don't seem to work very well. I wonder if I missed anything, or if it's glibc.
float x=1.55; 0.5*(exp(x)+exp(-x));
(3) Result: 2.461859
cosh(x);
(4) Result: inf
A tiny C-only test program yields the same result. I think I'll move on from system to your functions.
/ Mirar