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

Error

Bits error versus re

Bits error versus im

Derivation

  1. Initial program 0.0

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

    \[\leadsto re \cdot re - im \cdot im\]

Reproduce

herbie shell --seed 2019068 
(FPCore (re im)
  :name "math.square on complex, real part"
  (- (* re re) (* im im)))