Why am I doing exp(24)?! It's a constant!!!

This commit is contained in:
Kat R. 2022-10-27 23:57:29 -05:00
parent 5956361088
commit f07528dace

View file

@ -15,7 +15,7 @@ double _agm(double x, double y) {
}
double log(double x) {
double s = x * exp2(24);
double s = x * 16777216;
double nat_log = (M_PI / (2 * _agm(1, 4/s))) - (24 * M_LN2);
return nat_log;
}