



Bits error versus a




Bits error versus b




Bits error versus c
| Original | 33.6 |
|---|---|
| Target | 20.5 |
| Herbie | 7.1 |
if b < -9.13115209614994337e44Initial program 37.2
Taylor expanded around -inf 6.0
Simplified6.0
if -9.13115209614994337e44 < b < -2.9023563689620041e-306Initial program 9.1
rmApplied div-inv9.3
Simplified9.3
if -2.9023563689620041e-306 < b < 1.34309843668829568e38Initial program 28.3
rmApplied flip-+28.3
Simplified16.5
rmApplied *-un-lft-identity16.5
Applied times-frac16.5
Applied times-frac16.5
Simplified16.5
Simplified9.2
if 1.34309843668829568e38 < b Initial program 57.0
Taylor expanded around inf 4.2
Final simplification7.1
herbie shell --seed 2020181
(FPCore (a b c)
:name "quadp (p42, positive)"
:precision binary64
:herbie-target
(if (< b 0.0) (/ (+ (neg b) (sqrt (- (* b b) (* 4.0 (* a c))))) (* 2.0 a)) (/ 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)))