\tan^{-1}_* \frac{im}{re}\tan^{-1}_* \frac{im}{re}(FPCore (re im) :precision binary64 (atan2 im re))
(FPCore (re im) :precision binary64 (atan2 im re))
double code(double re, double im) {
return ((double) atan2(im, re));
}
double code(double re, double im) {
return ((double) atan2(im, re));
}



Bits error versus re



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