\tan^{-1}_* \frac{im}{re}\tan^{-1}_* \frac{im}{re}double f(double re, double im) {
double r22810 = im;
double r22811 = re;
double r22812 = atan2(r22810, r22811);
return r22812;
}
double f(double re, double im) {
double r22813 = im;
double r22814 = re;
double r22815 = atan2(r22813, r22814);
return r22815;
}



Bits error versus re



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