


Bits error versus a



Bits error versus b



Bits error versus c
if (if (>= b 0) (/ (* c 2) (/ (* 4 (* c a)) (- (sqrt (fma (- c) (* 4 a) (* b b))) b))) (/ (- (sqrt (fma (- c) (* a 4) (* b b))) b) (* a 2))) < -6.330711029357154e+278Initial program 45.6
Applied simplify45.6
Taylor expanded around inf 27.9
Applied simplify27.9
if -6.330711029357154e+278 < (if (>= b 0) (/ (* c 2) (/ (* 4 (* c a)) (- (sqrt (fma (- c) (* 4 a) (* b b))) b))) (/ (- (sqrt (fma (- c) (* a 4) (* b b))) b) (* a 2))) < 1.443046588755042e+268Initial program 1.6
Applied simplify1.6
rmApplied add-sqr-sqrt1.8
if 1.443046588755042e+268 < (if (>= b 0) (/ (* c 2) (/ (* 4 (* c a)) (- (sqrt (fma (- c) (* 4 a) (* b b))) b))) (/ (- (sqrt (fma (- c) (* a 4) (* b b))) b) (* a 2))) Initial program 42.2
Applied simplify42.1
Taylor expanded around 0 27.8
Time bar (total: 1.1m)Debug logProfile
herbie shell --seed 2020178 +o rules:numerics
(FPCore (a b c)
:name "jeff quadratic root 2"
(if (>= b 0) (/ (* 2 c) (- (- b) (sqrt (- (* b b) (* (* 4 a) c))))) (/ (+ (- b) (sqrt (- (* b b) (* (* 4 a) c)))) (* 2 a))))