



Bits error versus a




Bits error versus b




Bits error versus c
| Original | 34.2 |
|---|---|
| Target | 20.8 |
| Herbie | 6.8 |
if b < -9.103844937062704e64Initial program 57.6
Taylor expanded around -inf 3.7
Simplified3.7
if -9.103844937062704e64 < b < -1.13478872317873976e-303Initial program 30.8
rmApplied flip--30.8
Simplified17.1
Simplified17.1
rmApplied clear-num17.2
Simplified9.7
if -1.13478872317873976e-303 < b < 2.81251542793613095e118Initial program 9.0
if 2.81251542793613095e118 < b Initial program 51.9
Taylor expanded around inf 2.4
Simplified2.4
Final simplification6.8
herbie shell --seed 2020191
(FPCore (a b c)
:name "quadm (p42, negative)"
:precision binary64
:herbie-expected #f
:herbie-target
(if (< b 0.0) (/ c (* a (/ (+ (neg b) (sqrt (- (* b b) (* 4.0 (* a c))))) (* 2.0 a)))) (/ (- (neg b) (sqrt (- (* b b) (* 4.0 (* a c))))) (* 2.0 a)))
(/ (- (neg b) (sqrt (- (* b b) (* 4.0 (* a c))))) (* 2.0 a)))