



Bits error versus a




Bits error versus b




Bits error versus c
| Original | 34.4 |
|---|---|
| Comparison | 22.1 |
| Herbie | 5.4 |
if b < -4.319226994044875e+67Initial program 43.2
Applied taylor 0
Taylor expanded around -inf 0
Applied simplify 0
if -4.319226994044875e+67 < b < 1.3254506382963175e-308Initial program 9.8
rmApplied clear-num 9.9
if 1.3254506382963175e-308 < b < 1.0905893076356243e+100Initial program 31.4
rmApplied flip-+ 31.5
Applied simplify 16.5
rmApplied *-un-lft-identity 16.5
Applied times-frac 16.5
Applied times-frac 16.5
Applied simplify 16.5
Applied simplify 9.2
if 1.0905893076356243e+100 < b Initial program 58.9
Applied taylor 40.7
Taylor expanded around inf 40.7
Applied simplify 0
Applied simplify 0
Time bar (total: 1.3m) Debug log
Please include this information when filing a bug report:
herbie --seed '#(2170345737 194459988 47475974 1804353289 669403722 2564614823)'
(FPCore (a b c)
:name "The quadratic formula (r1)"
:target
(if (< b 0) (/ (+ (- b) (sqrt (- (sqr b) (* (* 4 a) c)))) (* 2 a)) (/ c (* a (/ (- (- b) (sqrt (- (sqr b) (* (* 4 a) c)))) (* 2 a)))))
(/ (+ (- b) (sqrt (- (sqr b) (* (* 4 a) c)))) (* 2 a)))