\tan^{-1}_* \frac{im}{re}\tan^{-1}_* \frac{im}{re}double f(double re, double im) {
double r36360 = im;
double r36361 = re;
double r36362 = atan2(r36360, r36361);
return r36362;
}
double f(double re, double im) {
double r36363 = im;
double r36364 = re;
double r36365 = atan2(r36363, r36364);
return r36365;
}



Bits error versus re



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