


Bits error versus a



Bits error versus b



Bits error versus c
Results
if (if (>= b 0) (/ (- (- b) (sqrt (- (* b b) (* (* 4 a) c)))) (* 2 a)) (/ (* 2 c) (/ (* c (* a 4)) (- (- b) (sqrt (- (* b b) (* (* 4 a) c))))))) < -1.747230685297179e+308 or 5.01129605338043e+285 < (if (>= b 0) (/ (- (- b) (sqrt (- (* b b) (* (* 4 a) c)))) (* 2 a)) (/ (* 2 c) (/ (* c (* a 4)) (- (- b) (sqrt (- (* b b) (* (* 4 a) c))))))) Initial program 44.6
Taylor expanded around -inf 29.7
Applied simplify27.6
Taylor expanded around inf 14.4
Applied simplify11.9
if -1.747230685297179e+308 < (if (>= b 0) (/ (- (- b) (sqrt (- (* b b) (* (* 4 a) c)))) (* 2 a)) (/ (* 2 c) (/ (* c (* a 4)) (- (- b) (sqrt (- (* b b) (* (* 4 a) c))))))) < 5.01129605338043e+285Initial program 1.7
rmApplied add-sqr-sqrt1.7
Applied sqrt-prod1.8
Time bar (total: 2.0m)Debug logProfile
herbie shell --seed 2018193
(FPCore (a b c)
:name "jeff quadratic root 1"
(if (>= b 0) (/ (- (- b) (sqrt (- (* b b) (* (* 4 a) c)))) (* 2 a)) (/ (* 2 c) (+ (- b) (sqrt (- (* b b) (* (* 4 a) c)))))))