\tan^{-1}_* \frac{im}{re}\tan^{-1}_* \frac{im}{re}double f(double re, double im) {
double r28401 = im;
double r28402 = re;
double r28403 = atan2(r28401, r28402);
return r28403;
}
double f(double re, double im) {
double r28404 = im;
double r28405 = re;
double r28406 = atan2(r28404, r28405);
return r28406;
}



Bits error versus re



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