Average Error: 0 → 0
Time: 510.0ms
Precision: 64
\[\tan^{-1}_* \frac{im}{re}\]
\[\tan^{-1}_* \frac{im}{re}\]
\tan^{-1}_* \frac{im}{re}
\tan^{-1}_* \frac{im}{re}
double f(double re, double im) {
        double r81776 = im;
        double r81777 = re;
        double r81778 = atan2(r81776, r81777);
        return r81778;
}

double f(double re, double im) {
        double r81779 = im;
        double r81780 = re;
        double r81781 = atan2(r81779, r81780);
        return r81781;
}

Error

Bits error versus re

Bits error versus im

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 0

    \[\tan^{-1}_* \frac{im}{re}\]
  2. Final simplification0

    \[\leadsto \tan^{-1}_* \frac{im}{re}\]

Reproduce

herbie shell --seed 2019318 
(FPCore (re im)
  :name "math.log/1 on complex, imaginary part"
  :precision binary64
  (atan2 im re))