Average Error: 0 → 0
Time: 968.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 r603796 = im;
        double r603797 = re;
        double r603798 = atan2(r603796, r603797);
        return r603798;
}

double f(double re, double im) {
        double r603799 = im;
        double r603800 = re;
        double r603801 = atan2(r603799, r603800);
        return r603801;
}

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