


Bits error versus a



Bits error versus b



Bits error versus c
if (if (>= b 0) (/ (* 2 c) (- (- b) (sqrt (fma (* 4 a) (- c) (* b b))))) (/ (/ (* (* c a) (- 4)) (+ (sqrt (fma (* 4 a) (- c) (* b b))) b)) (* a 2))) < -5.5241838258470886e-260 or -0.0 < (if (>= b 0) (/ (* 2 c) (- (- b) (sqrt (fma (* 4 a) (- c) (* b b))))) (/ (/ (* (* c a) (- 4)) (+ (sqrt (fma (* 4 a) (- c) (* b b))) b)) (* a 2))) Initial program 6.4
Applied simplify6.4
rmApplied add-cube-cbrt6.6
Applied fma-neg6.6
if -5.5241838258470886e-260 < (if (>= b 0) (/ (* 2 c) (- (- b) (sqrt (fma (* 4 a) (- c) (* b b))))) (/ (/ (* (* c a) (- 4)) (+ (sqrt (fma (* 4 a) (- c) (* b b))) b)) (* a 2))) < -0.0Initial program 43.6
Applied simplify43.6
Taylor expanded around 0 25.9
Taylor expanded around -inf 23.8
Time bar (total: 1.2m)Debug logProfile
herbie shell --seed '#(1071501266 3581234924 1086666455 2685055582 1243441566 1802958749)' +o rules:numerics
(FPCore (a b c)
:name "jeff quadratic root 2"
(if (>= b 0) (/ (* 2 c) (- (- b) (sqrt (- (* b b) (* (* 4 a) c))))) (/ (+ (- b) (sqrt (- (* b b) (* (* 4 a) c)))) (* 2 a))))