Average Error: 25.3 → 25.3
Time: 9.6s
Precision: 64
Internal precision: 384
\[\frac{x.im \cdot y.re - x.re \cdot y.im}{y.re \cdot y.re + y.im \cdot y.im}\]
\[\frac{y.re \cdot x.im - x.re \cdot y.im}{y.im \cdot y.im + {y.re}^2}\]

Error

Bits error versus x.re

Bits error versus x.im

Bits error versus y.re

Bits error versus y.im

Derivation

  1. Initial program 25.3

    \[\frac{x.im \cdot y.re - x.re \cdot y.im}{y.re \cdot y.re + y.im \cdot y.im}\]
  2. Applied simplify 25.3

    \[\leadsto \color{blue}{\frac{y.re \cdot x.im - x.re \cdot y.im}{y.im \cdot y.im + {y.re}^2}}\]
  3. Removed slow pow expressions

Runtime

Time bar (total: 9.6s) Debug logProfile

Please include this information when filing a bug report:

herbie shell --seed '#(1064524629 4159152179 2999149171 575749698 4006532819 692958815)'
(FPCore (x.re x.im y.re y.im)
  :name "_divideComplex, imaginary part"
  (/ (- (* x.im y.re) (* x.re y.im)) (+ (* y.re y.re) (* y.im y.im))))