



Bits error versus a




Bits error versus b




Bits error versus c
| Original | 34.4 |
|---|---|
| Target | 21.6 |
| Herbie | 6.6 |
if b < -1.11280777925980924e121Initial program 61.2
rmApplied flip--61.2
Simplified34.1
Simplified34.1
rmApplied *-un-lft-identity34.1
Applied times-frac34.1
Applied times-frac34.1
Simplified34.1
Simplified32.8
Taylor expanded around -inf 6.2
Simplified1.9
if -1.11280777925980924e121 < b < 7.34590175634682991e-281Initial program 32.3
rmApplied flip--32.3
Simplified16.1
Simplified16.1
rmApplied *-un-lft-identity16.1
Applied times-frac16.1
Applied times-frac16.1
Simplified16.1
Simplified8.8
if 7.34590175634682991e-281 < b < 4.9074896239589895e136Initial program 9.0
rmApplied div-inv9.1
Simplified9.1
if 4.9074896239589895e136 < b Initial program 58.2
rmApplied flip--63.8
Simplified62.7
Simplified62.7
Taylor expanded around 0 2.5
Final simplification6.6
herbie shell --seed 2020179
(FPCore (a b c)
:name "quadm (p42, negative)"
:precision binary64
: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)))