\tan^{-1}_* \frac{im}{re}\tan^{-1}_* \frac{im}{re}double f(double re, double im) {
double r22795 = im;
double r22796 = re;
double r22797 = atan2(r22795, r22796);
return r22797;
}
double f(double re, double im) {
double r22798 = im;
double r22799 = re;
double r22800 = atan2(r22798, r22799);
return r22800;
}



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))