forked from KolibriOS/kolibrios
8 lines
125 B
C
8 lines
125 B
C
|
#include <math.h>
|
||
|
|
||
|
double tanh (double x)
|
||
|
{
|
||
|
double ex = exp(x), exm = exp(-x);
|
||
|
|
||
|
return (ex - exm) / (ex + exm);
|
||
|
}
|