Average Error: 39.1 → 0.0
Time: 5.4s
Precision: 64
Internal Precision: 1408
\[\left(x + 1\right) \cdot \left(x + 1\right) - 1\]
\[\left(2 + x\right) \cdot x\]

Error

Bits error versus x

Derivation

  1. Initial program 39.1

    \[\left(x + 1\right) \cdot \left(x + 1\right) - 1\]
  2. Applied simplify0.0

    \[\leadsto \color{blue}{\left(2 + x\right) \cdot x}\]

Runtime

Time bar (total: 5.4s)Debug logProfile

herbie shell --seed '#(1064269945 2896236262 301053905 1701069080 1701464310 1614783279)' +o rules:numerics
(FPCore (x)
  :name "Expanding a square"
  (- (* (+ x 1) (+ x 1)) 1))