



Bits error versus a




Bits error versus b




Bits error versus c
Results
| Original | 33.9 |
|---|---|
| Target | 21.0 |
| Herbie | 10.5 |
if b < -2.794908999297654e-113Initial program 50.7
Taylor expanded around -inf 47.5
Applied simplify11.3
if -2.794908999297654e-113 < b < 1.3722158195955077e+141Initial program 11.9
if 1.3722158195955077e+141 < b Initial program 56.1
Taylor expanded around inf 11.0
Applied simplify2.6
Applied simplify10.5
Time bar (total: 2.2m)Debug logProfile
herbie shell --seed 2018206
(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)))