\tan^{-1}_* \frac{im}{re}\tan^{-1}_* \frac{im}{re}double f(double re, double im) {
double r24388 = im;
double r24389 = re;
double r24390 = atan2(r24388, r24389);
return r24390;
}
double f(double re, double im) {
double r24391 = im;
double r24392 = re;
double r24393 = atan2(r24391, r24392);
return r24393;
}



Bits error versus re



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