Implemented float.h

and improved math.h
This commit is contained in:
2024-10-25 12:03:58 +02:00
parent e135c4e9a1
commit fe2dac1361
3 changed files with 35 additions and 1 deletions
+1
View File
@@ -1,4 +1,5 @@
#include <math.h>
#include <string.h>
double nan(const char* tagp) {
(void)tagp;
+1 -1
View File
@@ -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);
}