


Bits error versus a



Bits error versus b



Bits error versus c
if (if (>= b 0) (/ (* 2 c) (/ (- (pow (- b) 3) (pow (sqrt (fma (* 4 a) (- c) (* b b))) 3)) (fma (- b) (sqrt (fma (- a) (* 4 c) (* b b))) (- (* (+ b b) b) (* 4 (* a c)))))) (/ (- (sqrt (fma (* 4 a) (- c) (* b b))) b) (* a 2))) < +inf.0Initial program 12.3
Applied simplify12.3
rmApplied add-sqr-sqrt12.3
Applied sqrt-prod12.4
if +inf.0 < (if (>= b 0) (/ (* 2 c) (/ (- (pow (- b) 3) (pow (sqrt (fma (* 4 a) (- c) (* b b))) 3)) (fma (- b) (sqrt (fma (- a) (* 4 c) (* b b))) (- (* (+ b b) b) (* 4 (* a c)))))) (/ (- (sqrt (fma (* 4 a) (- c) (* b b))) b) (* a 2))) Initial program 42.3
Applied simplify42.3
Taylor expanded around inf 16.2
Applied simplify11.4
Time bar (total: 50.2s)Debug logProfile
herbie shell --seed '#(1071821486 549052472 3784827256 1559736200 3548510075 881134285)' +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))))