1 2 3 4 5 6 7 8 9
#include <math.h> extern const float __half; double cosh ( double x ) { long double y = exp (x); return (y + 1./y) * __half; }