Average Error: 0.0 → 0.0
Time: 2.2s
Precision: 64
Internal Precision: 384
\[re \cdot im + im \cdot re\]
\[\left(re + re\right) \cdot im\]

Error

Bits error versus re

Bits error versus im

Derivation

  1. Initial program 0.0

    \[re \cdot im + im \cdot re\]
  2. Applied simplify0.0

    \[\leadsto \color{blue}{\left(re + re\right) \cdot im}\]

Runtime

Time bar (total: 2.2s)Debug logProfile

herbie shell --seed '#(1070258749 1877548225 2229079127 1588002776 3179087814 1886870650)' +o rules:numerics
(FPCore (re im)
  :name "math.square on complex, imaginary part"
  (+ (* re im) (* im re)))