\tan^{-1}_* \frac{im}{re}\tan^{-1}_* \frac{im}{re}double f(double re, double im) {
double r20977 = im;
double r20978 = re;
double r20979 = atan2(r20977, r20978);
return r20979;
}
double f(double re, double im) {
double r20980 = im;
double r20981 = re;
double r20982 = atan2(r20980, r20981);
return r20982;
}



Bits error versus re



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