forked from PoliEcho-holding-org/kern
Implemented float.h
and improved math.h
This commit is contained in:
+1
-1
@@ -11,6 +11,6 @@ double cosh(double x) {
|
||||
double tanh(double x) {
|
||||
double ex = exp(x);
|
||||
double emx = exp(-x);
|
||||
return (ex - exp) / (ex + exp);
|
||||
return (ex - emx) / (ex + emx);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user