Average Error: 0 → 0
Time: 725.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 r26933 = im;
        double r26934 = re;
        double r26935 = atan2(r26933, r26934);
        return r26935;
}

double f(double re, double im) {
        double r26936 = im;
        double r26937 = re;
        double r26938 = atan2(r26936, r26937);
        return r26938;
}

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