



Bits error versus a




Bits error versus b




Bits error versus c
Results
| Original | 34.0 |
|---|---|
| Target | 21.0 |
| Herbie | 15.1 |
if (- b) < -1.5226383508946404e+119Initial program 50.1
rmApplied clear-num50.1
rmApplied associate-/r/50.1
Taylor expanded around 0 3.7
Simplified3.7
if -1.5226383508946404e+119 < (- b) < 1.8160081293285892e+30Initial program 17.9
rmApplied clear-num18.0
if 1.8160081293285892e+30 < (- b) Initial program 56.1
Taylor expanded around -inf 14.9
Final simplification15.1
Time bar (total: 2.3m)Debug logProfile
herbie shell --seed 2018225 +o rules:numerics
(FPCore (a b c)
:name "quadm (p42, negative)"
:herbie-target
(if (< b 0) (/ c (* a (/ (+ (- b) (sqrt (- (* b b) (* 4 (* a c))))) (* 2 a)))) (/ (- (- b) (sqrt (- (* b b) (* 4 (* a c))))) (* 2 a)))
(/ (- (- b) (sqrt (- (* b b) (* 4 (* a c))))) (* 2 a)))