



Bits error versus a




Bits error versus b




Bits error versus c
| Original | 33.9 |
|---|---|
| Target | 20.8 |
| Herbie | 10.9 |
if b < -3.8737124647248335e+59 or -1.4333654669698449e+23 < b < -4.028097694917915e-119Initial program 51.8
Taylor expanded around -inf 48.4
Applied simplify10.8
if -3.8737124647248335e+59 < b < -1.4333654669698449e+23Initial program 47.2
rmApplied div-sub47.3
if -4.028097694917915e-119 < b < 2.150885504737231e+143Initial program 10.5
rmApplied div-sub10.5
if 2.150885504737231e+143 < b Initial program 56.9
Taylor expanded around inf 2.8
Applied simplify2.8
Applied simplify10.9
Time bar (total: 3.0m)Debug logProfile
herbie shell --seed '#(1072361757 3390613284 2339397988 1175251238 145061547 3101881848)' +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)))