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

Error

Bits error versus re

Bits error versus im

Derivation

  1. Initial program 0.0

    \[re \cdot re - im \cdot im\]
  2. Using strategy rm
  3. Applied fma-neg0.0

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

Runtime

Time bar (total: 11.1s)Debug logProfile

herbie shell --seed '#(1070355188 2193211668 3977393919 3454156579 3755371326 1656365382)' +o rules:numerics
(FPCore (re im)
  :name "math.square on complex, real part"
  (- (* re re) (* im im)))