Average Error: 0.0 → 0.0
Time: 4.2s
Precision: 64
Internal precision: 384
\[{a}^2 - {b}^2\]
\[{a}^2 - {b}^2\]

Error

Bits error versus a

Bits error versus b

Target

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

Derivation

  1. Initial program 0.0

    \[{a}^2 - {b}^2\]
  2. Removed slow pow expressions

Runtime

Time bar (total: 4.2s) Debug logProfile

Please include this information when filing a bug report:

herbie shell --seed '#(1064524629 4159152179 2999149171 575749698 4006532819 692958815)'
(FPCore (a b)
  :name "Difference of squares"

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

  (- (sqr a) (sqr b)))