Average Error: 0.0 → 0.0
Time: 7.6s
Precision: 64
Ground Truth: 128
\[re \cdot im + im \cdot re\]
\[\left(im + im\right) \cdot re\]

Error

Bits error versus re

Bits error versus im

Derivation

  1. Initial program 0.0

    \[re \cdot im + im \cdot re\]
  2. Applied simplify 0.0

    \[\leadsto \color{blue}{\left(im + im\right) \cdot re}\]
  3. Removed slow pow expressions

Runtime

Total time: 7.6s Debug log

Please include this information when filing a bug report:

herbie --seed '#(3507353804 33573717 1962612665 491630852 2225798758 985391887)'
(FPCore (re im)
  :name "math.square on complex, imaginary part"
  (+ (* re im) (* im re)))