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

Error

Bits error versus x

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 39.1

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

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

Runtime

Time bar (total: 17.3s)Debug logProfile

herbie shell --seed 2018195 
(FPCore (x)
  :name "Expanding a square"
  (- (* (+ x 1) (+ x 1)) 1))