fa9e5f7586de65219cb872d5b50e94a7054fa820
[reactos.git] / reactos / lib / sdk / crt / math / sinh.c
1 /* Copyright (C) 1994 DJ Delorie, see COPYING.DJ for details */
2 #include <math.h>
3
4 /*
5 * @implemented
6 */
7 double sinh(double x)
8 {
9 if(x >= 0.0)
10 {
11 const double epos = exp(x);
12 return (epos - 1.0/epos) / 2.0;
13 }
14 else
15 {
16 const double eneg = exp(-x);
17 return (1.0/eneg - eneg) / 2.0;
18 }
19 }