


Bits error versus a



Bits error versus b



Bits error versus c
if b < -3.1989072191100113e139Initial program 35.6
Taylor expanded around -inf 7.3
Simplified2.2
if -3.1989072191100113e139 < b < 1.6693019817677781e-29Initial program 9.1
rmApplied add-sqr-sqrt9.1
Applied sqrt-prod9.2
Simplified9.2
Simplified9.2
if 1.6693019817677781e-29 < b Initial program 28.8
Taylor expanded around inf 12.7
Simplified9.1
Final simplification7.8
herbie shell --seed 2020192
(FPCore (a b c)
:name "jeff quadratic root 1"
:precision binary64
(if (>= b 0.0) (/ (- (neg b) (sqrt (- (* b b) (* (* 4.0 a) c)))) (* 2.0 a)) (/ (* 2.0 c) (+ (neg b) (sqrt (- (* b b) (* (* 4.0 a) c)))))))