



Bits error versus a




Bits error versus b




Bits error versus c
Results
| Original | 32.8 |
|---|---|
| Target | 20.3 |
| Herbie | 9.9 |
if b < -4.858471778140402e+95Initial program 43.4
Initial simplification43.4
rmApplied sub-neg43.4
Taylor expanded around -inf 4.0
if -4.858471778140402e+95 < b < 1.2136635266576205e-73Initial program 12.5
Initial simplification12.5
rmApplied *-un-lft-identity12.5
Applied associate-/l*12.7
if 1.2136635266576205e-73 < b Initial program 52.2
Initial simplification52.2
Taylor expanded around inf 9.1
Simplified9.1
Final simplification9.9
Time bar (total: 23.4s)Debug logProfile
| Baseline | Herbie | Oracle | Span | % | |
|---|---|---|---|---|---|
| Regimes | 31.8 | 9.9 | 5.3 | 26.5 | 82.8% |
herbie shell --seed 2018340
(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)))