\tan^{-1}_* \frac{im}{re}\tan^{-1}_* \frac{im}{re}double f(double re, double im) {
double r34149 = im;
double r34150 = re;
double r34151 = atan2(r34149, r34150);
return r34151;
}
double f(double re, double im) {
double r34152 = im;
double r34153 = re;
double r34154 = atan2(r34152, r34153);
return r34154;
}



Bits error versus re



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