Average Error: 39.3 → 0.0
Time: 25.3s
Precision: 64
Internal Precision: 1344
\[\left(x + 1\right) \cdot \left(x + 1\right) - 1\]
\[(x \cdot x + x)_* + x\]

Error

Bits error versus x

Derivation

  1. Initial program 39.3

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

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

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

Runtime

Time bar (total: 25.3s)Debug logProfile

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