\tan^{-1}_* \frac{im}{re}\tan^{-1}_* \frac{im}{re}double f(double re, double im) {
double r26079 = im;
double r26080 = re;
double r26081 = atan2(r26079, r26080);
return r26081;
}
double f(double re, double im) {
double r26082 = im;
double r26083 = re;
double r26084 = atan2(r26082, r26083);
return r26084;
}



Bits error versus re



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