\tan^{-1}_* \frac{im}{re}\tan^{-1}_* \frac{im}{re}double f(double re, double im) {
double r26673 = im;
double r26674 = re;
double r26675 = atan2(r26673, r26674);
return r26675;
}
double f(double re, double im) {
double r26676 = im;
double r26677 = re;
double r26678 = atan2(r26676, r26677);
return r26678;
}



Bits error versus re



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