\tan^{-1}_* \frac{im}{re}\tan^{-1}_* \frac{im}{re}double f(double re, double im) {
double r73814 = im;
double r73815 = re;
double r73816 = atan2(r73814, r73815);
return r73816;
}
double f(double re, double im) {
double r73817 = im;
double r73818 = re;
double r73819 = atan2(r73817, r73818);
return r73819;
}



Bits error versus re



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