forked from PoliEcho-holding-org/kern
Implemented float.h
and improved math.h
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
#include <math.h>
|
||||
#include <string.h>
|
||||
|
||||
double nan(const char* tagp) {
|
||||
(void)tagp;
|
||||
|
||||
+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