


Bits error versus a



Bits error versus b_2



Bits error versus c
if b_2 < -4.3758192932526006e+125Initial program 60.4
Taylor expanded around -inf 2.0
if -4.3758192932526006e+125 < b_2 < -1.7802256960037828e-163Initial program 39.5
rmApplied flip--39.6
Applied associate-/l/42.7
Simplified19.2
rmApplied times-frac6.1
Simplified6.1
Simplified6.1
if -1.7802256960037828e-163 < b_2 < 1.3608843092494827e+63Initial program 11.1
rmApplied div-sub11.1
if 1.3608843092494827e+63 < b_2 Initial program 37.2
Taylor expanded around inf 5.0
Simplified5.0
Final simplification6.8
herbie shell --seed 2019016 +o rules:numerics
(FPCore (a b_2 c)
:name "quad2m (problem 3.2.1, negative)"
(/ (- (- b_2) (sqrt (- (* b_2 b_2) (* a c)))) a))
Time bar (total: 23.8s)Debug log
| 368× | (pre true 80) |
| 182× | (body real 80) |
| 91× | (body nan 80) |
| 35× | (body real 1280) |
| 32× | (body real 2560) |
| 13× | (body real 640) |
| 6× | (body real 320) |
| 5× | (body real 160) |
| 4× | (body real 5120) |
| 26.0ms | (/ (- (- b_2) (sqrt (- (* b_2 b_2) (* a c)))) a) |
1 alts after pruning (1 fresh and 0 done)
Merged error: 35.0b
Found 4 expressions with local error:
| 23.7b | (sqrt (- (* b_2 b_2) (* a c))) |
| 1.2b | (- (- b_2) (sqrt (- (* b_2 b_2) (* a c)))) |
| 1.2b | (- (* b_2 b_2) (* a c)) |
| 0.1b | (/ (- (- b_2) (sqrt (- (* b_2 b_2) (* a c)))) a) |
| 30× | add-sqr-sqrt |
| 25× | prod-diff |
| 25× | *-un-lft-identity |
| 21× | add-cube-cbrt |
| 17× | sqrt-prod |
| 8× | add-log-exp |
| 7× | neg-mul-1 |
| 6× | associate-/l* |
| 5× | fma-neg |
| 4× | difference-of-squares |
| 4× | flip-- |
| 4× | log1p-expm1-u |
| 4× | add-exp-log |
| 4× | add-cbrt-cube |
| 4× | flip3-- |
| 4× | pow1 |
| 4× | expm1-log1p-u |
| 2× | associate-/l/ |
| 2× | distribute-lft-out-- |
| 2× | diff-log |
| 2× | sqrt-div |
| 2× | sub-neg |
| 1× | div-inv |
| 1× | div-sub |
| 1× | pow1/2 |
| 1× | frac-2neg |
| 1× | clear-num |
| 1× | rem-sqrt-square |
| 1× | neg-sub0 |
| 1× | associate--l- |
| 419.0ms | (sqrt (- (* b_2 b_2) (* a c))) |
| 18.0ms | (/ (- (- b_2) (sqrt (- (* b_2 b_2) (* a c)))) a) |
| 8.0ms | (- (- b_2) (sqrt (- (* b_2 b_2) (* a c)))) |
| 2.0ms | (- (* b_2 b_2) (* a c)) |
| 67.0ms | (/ (- (- b_2) (sqrt (- (* b_2 b_2) (* a c)))) a) |
| 50.0ms | (sqrt (- (* b_2 b_2) (* a c))) |
| 47.0ms | (- (- b_2) (sqrt (- (* b_2 b_2) (* a c)))) |
| 21.0ms | (- (* b_2 b_2) (* a c)) |
| 462.0ms | (sqrt (- (* (* b_2 b_2) (* b_2 b_2)) (* (* a c) (* a c)))) |
| 338.0ms | (sqrt (- (pow (* b_2 b_2) 3) (pow (* a c) 3))) |
| 251.0ms | (- (* (- b_2) (- b_2)) (* (sqrt (- (* b_2 b_2) (* a c))) (sqrt (- (* b_2 b_2) (* a c))))) |
| 184.0ms | (- (pow (- b_2) 3) (pow (sqrt (- (* b_2 b_2) (* a c))) 3)) |
| 130.0ms | (- b_2 (* 1/2 (/ (* a c) b_2))) |
9 alts after pruning (9 fresh and 0 done)
Merged error: 4.7b
Found 4 expressions with local error:
| 23.7b | (sqrt (- (* b_2 b_2) (* a c))) |
| 7.9b | (- (/ (- b_2) a) (/ (sqrt (- (* b_2 b_2) (* a c))) a)) |
| 1.2b | (- (* b_2 b_2) (* a c)) |
| 0.1b | (/ (sqrt (- (* b_2 b_2) (* a c))) a) |
| 19× | add-sqr-sqrt |
| 18× | *-un-lft-identity |
| 17× | prod-diff |
| 16× | add-cube-cbrt |
| 12× | div-inv |
| 8× | add-log-exp |
| 6× | associate-/l* |
| 6× | sqrt-prod |
| 5× | fma-neg |
| 4× | flip-- |
| 4× | log1p-expm1-u |
| 4× | add-exp-log |
| 4× | sqrt-div |
| 4× | add-cbrt-cube |
| 4× | flip3-- |
| 4× | pow1 |
| 4× | expm1-log1p-u |
| 2× | associate-/l/ |
| 2× | diff-log |
| 2× | sub-neg |
| 1× | difference-of-squares |
| 1× | sub-div |
| 1× | distribute-lft-out-- |
| 1× | frac-sub |
| 1× | div-sub |
| 1× | pow1/2 |
| 1× | distribute-rgt-out-- |
| 1× | frac-2neg |
| 1× | clear-num |
| 1× | rem-sqrt-square |
| 1× | neg-sub0 |
| 1× | associate--l- |
| 10.0ms | (- (/ (- b_2) a) (/ (sqrt (- (* b_2 b_2) (* a c))) a)) |
| 8.0ms | (/ (sqrt (- (* b_2 b_2) (* a c))) a) |
| 3.0ms | (sqrt (- (* b_2 b_2) (* a c))) |
| 2.0ms | (- (* b_2 b_2) (* a c)) |
| 78.0ms | (/ (sqrt (- (* b_2 b_2) (* a c))) a) |
| 71.0ms | (- (/ (- b_2) a) (/ (sqrt (- (* b_2 b_2) (* a c))) a)) |
| 57.0ms | (sqrt (- (* b_2 b_2) (* a c))) |
| 25.0ms | (- (* b_2 b_2) (* a c)) |
| 412.0ms | (sqrt (- (* (* b_2 b_2) (* b_2 b_2)) (* (* a c) (* a c)))) |
| 390.0ms | (sqrt (- (* (* b_2 b_2) (* b_2 b_2)) (* (* a c) (* a c)))) |
| 377.0ms | (sqrt (- (pow (* b_2 b_2) 3) (pow (* a c) 3))) |
| 333.0ms | (sqrt (- (pow (* b_2 b_2) 3) (pow (* a c) 3))) |
| 213.0ms | (fma (- b_2) (/ 1 a) (- (* (/ 1 a) (sqrt (- (* b_2 b_2) (* a c)))))) |
9 alts after pruning (8 fresh and 1 done)
Merged error: 4.7b
Found 4 expressions with local error:
| 23.7b | (sqrt (- (* b_2 b_2) (* a c))) |
| 23.7b | (sqrt (- (* b_2 b_2) (* a c))) |
| 12.9b | (- (- b_2) (* (sqrt (sqrt (- (* b_2 b_2) (* a c)))) (sqrt (sqrt (- (* b_2 b_2) (* a c)))))) |
| 1.2b | (- (* b_2 b_2) (* a c)) |
| 11× | add-sqr-sqrt |
| 8× | add-log-exp |
| 8× | add-cube-cbrt |
| 8× | *-un-lft-identity |
| 6× | sqrt-prod |
| 5× | prod-diff |
| 5× | fma-neg |
| 4× | flip-- |
| 4× | log1p-expm1-u |
| 4× | add-exp-log |
| 4× | sqrt-div |
| 4× | add-cbrt-cube |
| 4× | flip3-- |
| 4× | pow1 |
| 4× | expm1-log1p-u |
| 2× | diff-log |
| 2× | pow1/2 |
| 2× | sub-neg |
| 2× | neg-mul-1 |
| 2× | rem-sqrt-square |
| 1× | difference-of-squares |
| 1× | neg-sub0 |
| 1× | associate--l- |
| 9.0ms | (sqrt (- (* b_2 b_2) (* a c))) |
| 6.0ms | (- (- b_2) (* (sqrt (sqrt (- (* b_2 b_2) (* a c)))) (sqrt (sqrt (- (* b_2 b_2) (* a c)))))) |
| 6.0ms | (sqrt (- (* b_2 b_2) (* a c))) |
| 2.0ms | (- (* b_2 b_2) (* a c)) |
| 69.0ms | (- (- b_2) (* (sqrt (sqrt (- (* b_2 b_2) (* a c)))) (sqrt (sqrt (- (* b_2 b_2) (* a c)))))) |
| 55.0ms | (sqrt (- (* b_2 b_2) (* a c))) |
| 43.0ms | (sqrt (- (* b_2 b_2) (* a c))) |
| 36.0ms | (- (* b_2 b_2) (* a c)) |
| 437.0ms | (sqrt (- (* (* b_2 b_2) (* b_2 b_2)) (* (* a c) (* a c)))) |
| 405.0ms | (sqrt (- (* (* b_2 b_2) (* b_2 b_2)) (* (* a c) (* a c)))) |
| 326.0ms | (sqrt (- (pow (* b_2 b_2) 3) (pow (* a c) 3))) |
| 324.0ms | (sqrt (- (pow (* b_2 b_2) 3) (pow (* a c) 3))) |
| 117.0ms | (- b_2 (* 1/2 (/ (* a c) b_2))) |
9 alts after pruning (7 fresh and 2 done)
Merged error: 4.7b
Found 4 expressions with local error:
| 23.7b | (sqrt (- (* b_2 b_2) (* a c))) |
| 15.6b | (/ (* a c) (* a (+ (- b_2) (sqrt (- (* b_2 b_2) (* a c)))))) |
| 2.2b | (+ (- b_2) (sqrt (- (* b_2 b_2) (* a c)))) |
| 1.2b | (- (* b_2 b_2) (* a c)) |
| 8× | add-log-exp |
| 8× | *-un-lft-identity |
| 7× | add-sqr-sqrt |
| 6× | add-cube-cbrt |
| 6× | add-exp-log |
| 6× | add-cbrt-cube |
| 4× | log1p-expm1-u |
| 4× | fma-def |
| 4× | pow1 |
| 4× | expm1-log1p-u |
| 3× | sqrt-prod |
| 2× | flip-- |
| 2× | flip-+ |
| 2× | associate-/r/ |
| 2× | associate-*r/ |
| 2× | sqrt-div |
| 2× | flip3-- |
| 2× | flip3-+ |
| 1× | associate-/l* |
| 1× | distribute-lft-out |
| 1× | div-inv |
| 1× | associate-+l- |
| 1× | prod-diff |
| 1× | div-exp |
| 1× | diff-log |
| 1× | fma-neg |
| 1× | pow1/2 |
| 1× | times-frac |
| 1× | frac-2neg |
| 1× | sub-neg |
| 1× | sum-log |
| 1× | neg-mul-1 |
| 1× | associate-/r* |
| 1× | clear-num |
| 1× | rem-sqrt-square |
| 1× | +-commutative |
| 1× | cbrt-undiv |
| 1× | neg-sub0 |
| 12.0ms | (/ (* a c) (* a (+ (- b_2) (sqrt (- (* b_2 b_2) (* a c)))))) |
| 9.0ms | (sqrt (- (* b_2 b_2) (* a c))) |
| 6.0ms | (+ (- b_2) (sqrt (- (* b_2 b_2) (* a c)))) |
| 2.0ms | (- (* b_2 b_2) (* a c)) |
| 104.0ms | (/ (* a c) (* a (+ (- b_2) (sqrt (- (* b_2 b_2) (* a c)))))) |
| 69.0ms | (+ (- b_2) (sqrt (- (* b_2 b_2) (* a c)))) |
| 43.0ms | (sqrt (- (* b_2 b_2) (* a c))) |
| 38.0ms | (- (* b_2 b_2) (* a c)) |
| 628.0ms | (+ (* (- b_2) (- b_2)) (- (* (sqrt (- (* b_2 b_2) (* a c))) (sqrt (- (* b_2 b_2) (* a c)))) (* (- b_2) (sqrt (- (* b_2 b_2) (* a c)))))) |
| 514.0ms | (- (log (* a c)) (log (* a (+ (- b_2) (sqrt (- (* b_2 b_2) (* a c))))))) |
| 479.0ms | (sqrt (- (* (* b_2 b_2) (* b_2 b_2)) (* (* a c) (* a c)))) |
| 301.0ms | (sqrt (- (pow (* b_2 b_2) 3) (pow (* a c) 3))) |
| 294.0ms | (/ (* (* (* a c) (* a c)) (* a c)) (* (* (* a (+ (- b_2) (sqrt (- (* b_2 b_2) (* a c))))) (* a (+ (- b_2) (sqrt (- (* b_2 b_2) (* a c)))))) (* a (+ (- b_2) (sqrt (- (* b_2 b_2) (* a c))))))) |
7 alts after pruning (5 fresh and 2 done)
Merged error: 4.7b
95% (1.2b remaining)
Error of 6.8b against oracle of 5.6b and baseline of 29.3b
| 11456× | (pre true 80) |
| 5804× | (body real 80) |
| 2736× | (body nan 80) |
| 1109× | (body real 2560) |
| 946× | (body real 1280) |
| 435× | (body real 640) |
| 215× | (body real 320) |
| 110× | (body real 5120) |
| 101× | (body real 160) |