\tan^{-1}_* \frac{im}{re}\tan^{-1}_* \frac{im}{re}double f(double re, double im) {
double r33486 = im;
double r33487 = re;
double r33488 = atan2(r33486, r33487);
return r33488;
}
double f(double re, double im) {
double r33489 = im;
double r33490 = re;
double r33491 = atan2(r33489, r33490);
return r33491;
}



Bits error versus re



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