Average Error: 0.0 → 0.0
Time: 2.3s
Precision: binary64
\[\]
\[\]

Error

Bits error versus f

Bits error versus n

Derivation

  1. Initial program 0.0

    \[\]
  2. Simplified0.0

    \[\leadsto \]
  3. Using strategy rm
  4. Applied clear-num0.0

    \[\leadsto \]
  5. Using strategy rm
  6. Applied div-inv0.2

    \[\leadsto \]
  7. Applied associate-/r*0.0

    \[\leadsto \]
  8. Final simplification0.0

    \[\leadsto \]

Reproduce

herbie shell --seed 2020192 
(FPCore (f n)
  :name "subtraction fraction"
  :precision binary64
  (/ (neg (+ f n)) (- f n)))