Average Error: 0.0 → 0.0
Time: 25.2s
Precision: 64
Internal precision: 128
\[\left(x \cdot 2.0 + x \cdot x\right) + y \cdot y\]
\[{y}^2 + \left(x + 2.0\right) \cdot x\]

Error

Bits error versus x

Bits error versus y

Target

Original0.0
Comparison0.0
Herbie0.0
\[ {y}^2 + \left(2.0 \cdot x + {x}^2\right) \]

Derivation

  1. Initial program 0.0

    \[\left(x \cdot 2.0 + x \cdot x\right) + y \cdot y\]
  2. Applied simplify 0.0

    \[\leadsto \color{blue}{{y}^2 + \left(x + 2.0\right) \cdot x}\]
  3. Removed slow pow expressions

Runtime

Time bar (total: 25.2s) Debug log

Please include this information when filing a bug report:

herbie --seed '#(187914365 1765990571 20829699 506174629 4044405405 2423143474)'
(FPCore (x y)
  :name "Numeric.Log:$clog1p from log-domain-0.10.2.1, A"

  :target
  (+ (sqr y) (+ (* 2.0 x) (sqr x)))

  (+ (+ (* x 2.0) (* x x)) (* y y)))