\tan^{-1}_* \frac{im}{re}\tan^{-1}_* \frac{im}{re}double f(double re, double im) {
double r25941 = im;
double r25942 = re;
double r25943 = atan2(r25941, r25942);
return r25943;
}
double f(double re, double im) {
double r25944 = im;
double r25945 = re;
double r25946 = atan2(r25944, r25945);
return r25946;
}



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))