Average Error: 39.1 → 0
Time: 2.0s
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

Derivation

  1. Initial program 39.1

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

    \[\leadsto (x \cdot x + \left(x + x\right))_*\]
  3. Final simplification0

    \[\leadsto (x \cdot x + \left(x + x\right))_*\]

Runtime

Time bar (total: 2.0s)Debug logProfile

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