Average Error: 43.9 → 11.9
Time: 7.0s
Precision: binary64
\[\]
\[\]
\[\]

Error

Bits error versus a

Bits error versus b

Bits error versus c

Derivation

  1. Initial program 43.9

    \[\]
  2. Simplified43.9

    \[\leadsto \]
  3. Taylor expanded around inf 11.9

    \[\leadsto \]
  4. Final simplification11.9

    \[\leadsto \]

Reproduce

herbie shell --seed 2020191 
(FPCore (a b c)
  :name "Quadratic roots, medium range"
  :precision binary64
  :pre (and (< 1.1102230246251565e-16 a 9007199254740992.0) (< 1.1102230246251565e-16 b 9007199254740992.0) (< 1.1102230246251565e-16 c 9007199254740992.0))
  (/ (+ (neg b) (sqrt (- (* b b) (* (* 4.0 a) c)))) (* 2.0 a)))