Average Error: 30.9 → 0
Time: 1.9s
Precision: binary64
\[\left({x}^{2} - 1\right) - {x}^{2}\]
\[-1\]

Error

Bits error versus x

Derivation

  1. Initial program 30.9

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

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

    \[\leadsto -1\]

Reproduce

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