Average Error: 28.2 → 0.4
Time: 4.4s
Precision: binary64
\[\]
\[\]
\[\]

Error

Bits error versus a

Bits error versus b

Bits error versus c

Derivation

  1. Initial program 28.2

    \[\]
  2. Using strategy rm
  3. Applied flip-+28.2

    \[\leadsto \]
  4. Simplified0.4

    \[\leadsto \]
  5. Simplified0.4

    \[\leadsto \]
  6. Using strategy rm
  7. Applied *-un-lft-identity0.4

    \[\leadsto \]
  8. Applied times-frac0.4

    \[\leadsto \]
  9. Applied times-frac0.4

    \[\leadsto \]
  10. Simplified0.4

    \[\leadsto \]
  11. Simplified0.3

    \[\leadsto \]
  12. Using strategy rm
  13. Applied clear-num0.4

    \[\leadsto \]
  14. Final simplification0.4

    \[\leadsto \]

Reproduce

herbie shell --seed 2020180 
(FPCore (a b c)
  :name "Quadratic roots, narrow range"
  :precision binary64
  :pre (and (< 1.0536712127723509e-08 a 94906265.62425156) (< 1.0536712127723509e-08 b 94906265.62425156) (< 1.0536712127723509e-08 c 94906265.62425156))
  (/ (+ (neg b) (sqrt (- (* b b) (* (* 4.0 a) c)))) (* 2.0 a)))