Average Error: 0 → 0
Time: 1.3s
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 r1380060 = im;
        double r1380061 = re;
        double r1380062 = atan2(r1380060, r1380061);
        return r1380062;
}

double f(double re, double im) {
        double r1380063 = im;
        double r1380064 = re;
        double r1380065 = atan2(r1380063, r1380064);
        return r1380065;
}

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 2019200 +o rules:numerics
(FPCore (re im)
  :name "math.log/1 on complex, imaginary part"
  (atan2 im re))