Why am I doing exp(24)?! It's a constant!!!
This commit is contained in:
parent
5956361088
commit
f07528dace
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
Loading…
Reference in a new issue