\tan^{-1}_* \frac{im}{re}\tan^{-1}_* \frac{im}{re}double f(double re, double im) {
double r21900 = im;
double r21901 = re;
double r21902 = atan2(r21900, r21901);
return r21902;
}
double f(double re, double im) {
double r21903 = im;
double r21904 = re;
double r21905 = atan2(r21903, r21904);
return r21905;
}



Bits error versus re



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