SERVER: Add exp math function

This commit is contained in:
Steam Deck User 2023-03-09 13:30:30 -05:00
parent fa0a85fce0
commit 297ab1bfee

View file

@ -76,6 +76,18 @@ float(float x) sign = {
return 0;
};
float exp(float x) {
float result = 1;
float term = 1;
for (float i = 1; i < 50; i++) {
term *= x / i;
result += term;
}
return result;
}
/*
* wrap
*