Average Error: 0 → 0
Time: 696.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 r1197453 = im;
        double r1197454 = re;
        double r1197455 = atan2(r1197453, r1197454);
        return r1197455;
}

double f(double re, double im) {
        double r1197456 = im;
        double r1197457 = re;
        double r1197458 = atan2(r1197456, r1197457);
        return r1197458;
}

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