Average Error: 0.0 → 0.0
Time: 13.2s
Precision: 64
Internal Precision: 384
\[a \cdot a - b \cdot b\]
\[a \cdot a - b \cdot b\]

Error

Bits error versus a

Bits error versus b

Target

Original0.0
Target0.0
Herbie0.0
\[\left(a + b\right) \cdot \left(a - b\right)\]

Derivation

  1. Initial program 0.0

    \[a \cdot a - b \cdot b\]
  2. Removed slow pow expressions.

Runtime

Time bar (total: 13.2s)Debug logProfile

herbie shell --seed '#(1063027428 1192549564 1443466578 604016274 3637110559 1698629644)' 
(FPCore (a b)
  :name "Difference of squares"

  :herbie-target
  (* (+ a b) (- a b))

  (- (* a a) (* b b)))