Average Error: 39.4 → 0.0
Time: 14.9s
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.4

    \[\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: 14.9s)Debug logProfile

herbie shell --seed '#(1063536796 3718315861 2544820885 2648279269 3952345816 4149882476)' 
(FPCore (x)
  :name "Expanding a square"
  (- (* (+ x 1) (+ x 1)) 1))