\tan^{-1}_* \frac{im}{re}\tan^{-1}_* \frac{im}{re}double f(double re, double im) {
double r42374 = im;
double r42375 = re;
double r42376 = atan2(r42374, r42375);
return r42376;
}
double f(double re, double im) {
double r42377 = im;
double r42378 = re;
double r42379 = atan2(r42377, r42378);
return r42379;
}



Bits error versus re



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