\tan^{-1}_* \frac{im}{re}\tan^{-1}_* \frac{im}{re}double f(double re, double im) {
double r24403 = im;
double r24404 = re;
double r24405 = atan2(r24403, r24404);
return r24405;
}
double f(double re, double im) {
double r24406 = im;
double r24407 = re;
double r24408 = atan2(r24406, r24407);
return r24408;
}



Bits error versus re



Bits error versus im
Results
Initial program 0
Final simplification0
herbie shell --seed 2019303 +o rules:numerics
(FPCore (re im)
:name "math.log/1 on complex, imaginary part"
:precision binary64
(atan2 im re))