Average Error: 0 → 0
Time: 784.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 r614047 = im;
        double r614048 = re;
        double r614049 = atan2(r614047, r614048);
        return r614049;
}

double f(double re, double im) {
        double r614050 = im;
        double r614051 = re;
        double r614052 = atan2(r614050, r614051);
        return r614052;
}

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 2019154 
(FPCore (re im)
  :name "math.arg on complex"
  (atan2 im re))