Average Error: 38.8 → 0.0
Time: 12.9s
Precision: 64
Internal Precision: 128
\[\left(x + 1\right) \cdot \left(x + 1\right) - 1\]
\[\left(x + 2\right) \cdot x\]

Error

Bits error versus x

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 38.8

    \[\left(x + 1\right) \cdot \left(x + 1\right) - 1\]
  2. Initial simplification0.0

    \[\leadsto \left(2 + x\right) \cdot x\]
  3. Final simplification0.0

    \[\leadsto \left(x + 2\right) \cdot x\]

Runtime

Time bar (total: 12.9s)Debug logProfile

herbie shell --seed 2018274 +o rules:numerics
(FPCore (x)
  :name "Expanding a square"
  (- (* (+ x 1) (+ x 1)) 1))