\tan^{-1}_* \frac{im}{re}\tan^{-1}_* \frac{im}{re}double f(double re, double im) {
double r77195 = im;
double r77196 = re;
double r77197 = atan2(r77195, r77196);
return r77197;
}
double f(double re, double im) {
double r77198 = im;
double r77199 = re;
double r77200 = atan2(r77198, r77199);
return r77200;
}



Bits error versus re



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