\tan^{-1}_* \frac{im}{re}\tan^{-1}_* \frac{im}{re}double f(double re, double im) {
double r28429 = im;
double r28430 = re;
double r28431 = atan2(r28429, r28430);
return r28431;
}
double f(double re, double im) {
double r28432 = im;
double r28433 = re;
double r28434 = atan2(r28432, r28433);
return r28434;
}



Bits error versus re



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