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

Error

Bits error versus re

Bits error versus im

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 0.0

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

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

Runtime

Time bar (total: 2.7s)Debug logProfile

herbie shell --seed '#(1072743783 989954326 4239155542 3782239461 3602631542 1719177920)' 
(FPCore (re im)
  :name "math.square on complex, imaginary part"
  (+ (* re im) (* im re)))