Average Error: 0 → 0
Time: 333.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 r44767 = im;
        double r44768 = re;
        double r44769 = atan2(r44767, r44768);
        return r44769;
}

double f(double re, double im) {
        double r44770 = im;
        double r44771 = re;
        double r44772 = atan2(r44770, r44771);
        return r44772;
}

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