Average Error: 0.0 → 0.0
Time: 2.3s
Precision: 64
Internal precision: 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

Time bar (total: 2.3s) Debug log

Please include this information when filing a bug report:

herbie --seed '#(1040277240 3131471011 1799716872 1961407787 3158868430 2164565695)'
(FPCore (re im)
  :name "math.square on complex, imaginary part"
  (+ (* re im) (* im re)))