|
|
1.1 root 1: /*
2: * Hyperbolic cosine.
3: */
4: #include <math.h>
5:
6: #if EMU87
7: #include "emumath.h"
8: #endif
9:
10: double
11: cosh(x)
12: double x;
13: {
14: double r;
15: register int e;
16:
17: e = errno;
18: r = exp(x);
19: errno = e;
20: r = (r+1.0/r) / 2.0;
21: return (r);
22: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.