Average Error: 0.0 → 0.0
Time: 5.2s
Precision: 64
Internal precision: 384
\[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. Removed slow pow expressions

Runtime

Time bar (total: 5.2s) Debug logProfile

Please include this information when filing a bug report:

herbie shell --seed '#(1064524629 4159152179 2999149171 575749698 4006532819 692958815)'
(FPCore (re im)
  :name "math.square on complex, real part"
  (- (* re re) (* im im)))