Average Error: 0 → 0
Time: 371.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 r84150 = im;
        double r84151 = re;
        double r84152 = atan2(r84150, r84151);
        return r84152;
}

double f(double re, double im) {
        double r84153 = im;
        double r84154 = re;
        double r84155 = atan2(r84153, r84154);
        return r84155;
}

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