Average Error: 0.0 → 0.0
Time: 2.7s
Precision: 64
Internal Precision: 128
\[re \cdot im + im \cdot re\]
\[re \cdot im + re \cdot im\]

Error

Bits error versus re

Bits error versus im

Derivation

  1. Initial program 0.0

    \[re \cdot im + im \cdot re\]
  2. Final simplification0.0

    \[\leadsto re \cdot im + re \cdot im\]

Reproduce

herbie shell --seed 2019053 +o rules:numerics
(FPCore (re im)
  :name "math.square on complex, imaginary part"
  (+ (* re im) (* im re)))