Average Error: 29.1 → 0
Time: 557.0ms
Precision: binary64
\[x - \left(x + 1\right)\]
\[-1\]

Error

Bits error versus x

Derivation

  1. Initial program 29.1

    \[x - \left(x + 1\right)\]
  2. Simplified0

    \[\leadsto \color{blue}{-1}\]
  3. Final simplification0

    \[\leadsto -1\]

Reproduce

herbie shell --seed 2020152 
(FPCore (x)
  :name "(- x (+ x 1))"
  :precision binary64
  (- x (+ x 1.0)))