Average Error: 0.0 → 0.0
Time: 3.1s
Precision: 64
Internal Precision: 384
\[x.re \cdot y.im + x.im \cdot y.re\]
\[(x.re \cdot y.im + \left(x.im \cdot y.re\right))_*\]

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 0.0

    \[x.re \cdot y.im + x.im \cdot y.re\]
  2. Using strategy rm
  3. Applied fma-def0.0

    \[\leadsto \color{blue}{(x.re \cdot y.im + \left(x.im \cdot y.re\right))_*}\]

Runtime

Time bar (total: 3.1s)Debug logProfile

herbie shell --seed '#(1070355188 2193211668 3977393919 3454156579 3755371326 1656365382)' +o rules:numerics
(FPCore (x.re x.im y.re y.im)
  :name "_multiplyComplex, imaginary part"
  (+ (* x.re y.im) (* x.im y.re)))