Average Error: 29.5 → 0
Time: 546.0ms
Precision: binary64
\[\left(x - 1\right) - x\]
\[-1\]

Error

Bits error versus x

Derivation

  1. Initial program 29.5

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

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

    \[\leadsto -1\]

Reproduce

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