Average Error: 39.0 → 0.0
Time: 6.3s
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.0

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

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

Runtime

Time bar (total: 6.3s)Debug logProfile

herbie shell --seed '#(1063282112 2455465480 4141627379 3773598652 1647277307 776739644)' 
(FPCore (x)
  :name "Expanding a square"
  (- (* (+ x 1) (+ x 1)) 1))