



Bits error versus a




Bits error versus b




Bits error versus c
Results
| Original | 33.6 |
|---|---|
| Target | 20.8 |
| Herbie | 10.2 |
if (- b) < -5.7583530328199956e-65Initial program 53.3
Applied simplify53.3
Taylor expanded around inf 47.0
Applied simplify8.9
if -5.7583530328199956e-65 < (- b) < 7.45593838244855e+91Initial program 13.2
Applied simplify13.2
if 7.45593838244855e+91 < (- b) Initial program 44.4
Applied simplify44.4
Taylor expanded around -inf 10.5
Applied simplify4.6
Applied simplify10.2
Time bar (total: 7.1m)Debug logProfile
herbie shell --seed '#(1072967564 1937075727 894099792 790700740 1036514779 1027793188)'
(FPCore (a b c)
:name "quadp (p42, positive)"
:herbie-target
(if (< b 0) (/ (+ (- b) (sqrt (- (* b b) (* 4 (* a c))))) (* 2 a)) (/ c (* a (/ (- (- b) (sqrt (- (* b b) (* 4 (* a c))))) (* 2 a)))))
(/ (+ (- b) (sqrt (- (* b b) (* 4 (* a c))))) (* 2 a)))