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

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}{re \cdot \left(im + im\right)}\]
  3. Removed slow pow expressions.

Runtime

Time bar (total: 3.9s)Debug logProfile

herbie shell --seed '#(1063282112 2455465480 4141627379 3773598652 1647277307 776739644)' 
(FPCore (re im)
  :name "math.square on complex, imaginary part"
  (+ (* re im) (* im re)))