ReactOS 0.4.15-dev-7842-g558ab78
tanh.c File Reference
#include <math.h>
Include dependency graph for tanh.c:

Go to the source code of this file.

Functions

double tanh (double x)
 

Function Documentation

◆ tanh()

double tanh ( double  x)

Definition at line 12 of file tanh.c.

13{
14 if (x > 50)
15 return 1;
16 else if (x < -50)
17 return -1;
18 else
19 {
20 const double ebig = exp(x);
21 const double esmall = 1.0/ebig;
22 return (ebig - esmall) / (ebig + esmall);
23 }
24}
GLint GLint GLint GLint GLint x
Definition: gl.h:1548
DWORD exp
Definition: msg.c:16058