Average Error: 0 → 0
Time: 832.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 r28097 = im;
        double r28098 = re;
        double r28099 = atan2(r28097, r28098);
        return r28099;
}

double f(double re, double im) {
        double r28100 = im;
        double r28101 = re;
        double r28102 = atan2(r28100, r28101);
        return r28102;
}

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