\tan^{-1}_* \frac{im}{re}\tan^{-1}_* \frac{im}{re}double f(double re, double im) {
double r28131 = im;
double r28132 = re;
double r28133 = atan2(r28131, r28132);
return r28133;
}
double f(double re, double im) {
double r28134 = im;
double r28135 = re;
double r28136 = atan2(r28134, r28135);
return r28136;
}



Bits error versus re



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