


Bits error versus a



Bits error versus b_2



Bits error versus c
if b_2 < -1.4610610347609648e+33Initial program 34.3
Simplified34.3
Taylor expanded around -inf 5.8
Simplified5.8
if -1.4610610347609648e+33 < b_2 < -1.6380403487825836e-118Initial program 5.9
Simplified5.9
rmApplied flip3--11.9
if -1.6380403487825836e-118 < b_2 < 1.501809486178084e+23Initial program 23.0
Simplified23.0
rmApplied flip--24.7
Applied associate-/l/30.9
Simplified23.6
rmApplied distribute-frac-neg23.6
Simplified12.9
if 1.501809486178084e+23 < b_2 Initial program 55.5
Simplified55.5
Taylor expanded around inf 4.4
Final simplification8.7
herbie shell --seed 2019022 +o rules:numerics
(FPCore (a b_2 c)
:name "quad2p (problem 3.2.1, positive)"
(/ (+ (- b_2) (sqrt (- (* b_2 b_2) (* a c)))) a))
Time bar (total: 16.7s)Debug log
| 60.0ms | 40× | body | 2560 | valid |
| 15.0ms | 185× | body | 80 | valid |
| 10.0ms | 27× | body | 1280 | valid |
| 7.0ms | 97× | body | 80 | nan |
| 4.0ms | 15× | body | 640 | valid |
| 2.0ms | 3× | body | 5120 | valid |
| 2.0ms | 7× | body | 320 | valid |
| 1.0ms | 6× | body | 160 | valid |
| 51.0ms | (/ (+ (- b_2) (sqrt (- (* b_2 b_2) (* a c)))) a) |
1 alts after pruning (1 fresh and 0 done)
Merged error: 32.5b
Found 4 expressions with local error:
| 21.7b | (sqrt (- (* b_2 b_2) (* a c))) |
| 2.1b | (- (sqrt (- (* b_2 b_2) (* a c))) b_2) |
| 0.4b | (- (* b_2 b_2) (* a c)) |
| 0.1b | (/ (- (sqrt (- (* b_2 b_2) (* a c))) b_2) a) |
| 9× | add-sqr-sqrt |
| 8× | add-cube-cbrt |
| 8× | *-un-lft-identity |
| 7× | fma-neg |
| 6× | add-log-exp |
| 6× | sqrt-prod |
| 4× | flip-- |
| 4× | log1p-expm1-u |
| 4× | add-exp-log |
| 4× | add-cbrt-cube |
| 4× | flip3-- |
| 4× | pow1 |
| 4× | expm1-log1p-u |
| 3× | associate-/l* |
| 2× | associate-/l/ |
| 2× | sqrt-div |
| 2× | sub-neg |
| 1× | div-inv |
| 1× | prod-diff |
| 1× | div-sub |
| 1× | diff-log |
| 1× | pow1/2 |
| 1× | frac-2neg |
| 1× | clear-num |
| 1× | rem-sqrt-square |
| 40.0ms | (/ (- (sqrt (- (* b_2 b_2) (* a c))) b_2) a) |
| 24.0ms | (- (sqrt (- (* b_2 b_2) (* a c))) b_2) |
| 7.0ms | (sqrt (- (* b_2 b_2) (* a c))) |
| 4.0ms | (- (* b_2 b_2) (* a c)) |
| 69.0ms | (/ (- (sqrt (- (* b_2 b_2) (* a c))) b_2) a) |
| 68.0ms | (- (sqrt (- (* b_2 b_2) (* a c))) b_2) |
| 56.0ms | (sqrt (- (* b_2 b_2) (* a c))) |
| 35.0ms | (- (* b_2 b_2) (* a c)) |
| 460.0ms | (sqrt (- (* (* b_2 b_2) (* b_2 b_2)) (* (* a c) (* a c)))) |
| 395.0ms | (- (* (sqrt (- (* b_2 b_2) (* a c))) (sqrt (- (* b_2 b_2) (* a c)))) (* b_2 b_2)) |
| 374.0ms | (sqrt (- (pow (* b_2 b_2) 3) (pow (* a c) 3))) |
| 146.0ms | (- b_2 (* 1/2 (/ (* a c) b_2))) |
| 133.0ms | (- (pow (sqrt (- (* b_2 b_2) (* a c))) 3) (pow b_2 3)) |
13 alts after pruning (13 fresh and 0 done)
Merged error: 5.5b
Found 4 expressions with local error:
| 21.7b | (sqrt (- (* b_2 b_2) (* a c))) |
| 13.5b | (/ (- (* a c)) (* a (+ (sqrt (- (* b_2 b_2) (* a c))) b_2))) |
| 1.4b | (+ (sqrt (- (* b_2 b_2) (* a c))) b_2) |
| 0.4b | (- (* b_2 b_2) (* a c)) |
| 10× | add-sqr-sqrt |
| 9× | add-cube-cbrt |
| 9× | *-un-lft-identity |
| 6× | add-log-exp |
| 6× | associate-/l* |
| 6× | sqrt-prod |
| 6× | add-exp-log |
| 6× | add-cbrt-cube |
| 6× | times-frac |
| 6× | fma-def |
| 4× | log1p-expm1-u |
| 4× | pow1 |
| 4× | expm1-log1p-u |
| 2× | flip-- |
| 2× | flip-+ |
| 2× | associate-/r/ |
| 2× | associate-*r/ |
| 2× | sqrt-div |
| 2× | flip3-- |
| 2× | flip3-+ |
| 2× | distribute-rgt-neg-in |
| 2× | neg-mul-1 |
| 2× | distribute-lft-neg-in |
| 1× | div-inv |
| 1× | distribute-frac-neg |
| 1× | prod-diff |
| 1× | div-exp |
| 1× | div-sub |
| 1× | diff-log |
| 1× | fma-neg |
| 1× | pow1/2 |
| 1× | frac-2neg |
| 1× | sub-neg |
| 1× | associate-/r* |
| 1× | clear-num |
| 1× | rem-sqrt-square |
| 1× | +-commutative |
| 1× | cbrt-undiv |
| 1× | neg-sub0 |
| 9.0ms | (/ (- (* a c)) (* a (+ (sqrt (- (* b_2 b_2) (* a c))) b_2))) |
| 9.0ms | (+ (sqrt (- (* b_2 b_2) (* a c))) b_2) |
| 3.0ms | (sqrt (- (* b_2 b_2) (* a c))) |
| 2.0ms | (- (* b_2 b_2) (* a c)) |
| 132.0ms | (/ (- (* a c)) (* a (+ (sqrt (- (* b_2 b_2) (* a c))) b_2))) |
| 49.0ms | (+ (sqrt (- (* b_2 b_2) (* a c))) b_2) |
| 45.0ms | (sqrt (- (* b_2 b_2) (* a c))) |
| 20.0ms | (- (* b_2 b_2) (* a c)) |
| 417.0ms | (/ (* (* (- (* a c)) (- (* a c))) (- (* a c))) (* (* (* a (+ (sqrt (- (* b_2 b_2) (* a c))) b_2)) (* a (+ (sqrt (- (* b_2 b_2) (* a c))) b_2))) (* a (+ (sqrt (- (* b_2 b_2) (* a c))) b_2)))) |
| 391.0ms | (sqrt (- (* (* b_2 b_2) (* b_2 b_2)) (* (* a c) (* a c)))) |
| 354.0ms | (+ (* (sqrt (- (* b_2 b_2) (* a c))) (sqrt (- (* b_2 b_2) (* a c)))) (- (* b_2 b_2) (* (sqrt (- (* b_2 b_2) (* a c))) b_2))) |
| 316.0ms | (sqrt (- (pow (* b_2 b_2) 3) (pow (* a c) 3))) |
| 220.0ms | (/ (* a c) (* a (+ (sqrt (- (* b_2 b_2) (* a c))) b_2))) |
12 alts after pruning (11 fresh and 1 done)
Merged error: 5.5b
Found 4 expressions with local error:
| 21.7b | (sqrt (- (* b_2 b_2) (* a c))) |
| 1.4b | (+ b_2 (sqrt (- (* b_2 b_2) (* a c)))) |
| 0.4b | (- (* b_2 b_2) (* a c)) |
| 0.1b | (/ c (+ b_2 (sqrt (- (* b_2 b_2) (* a c))))) |
| 7× | add-sqr-sqrt |
| 6× | add-log-exp |
| 6× | add-cube-cbrt |
| 6× | *-un-lft-identity |
| 4× | log1p-expm1-u |
| 4× | add-exp-log |
| 4× | add-cbrt-cube |
| 4× | pow1 |
| 4× | expm1-log1p-u |
| 3× | sqrt-prod |
| 3× | associate-/r* |
| 2× | flip-- |
| 2× | flip-+ |
| 2× | associate-/r/ |
| 2× | sqrt-div |
| 2× | flip3-- |
| 2× | flip3-+ |
| 1× | div-inv |
| 1× | prod-diff |
| 1× | diff-log |
| 1× | fma-neg |
| 1× | pow1/2 |
| 1× | frac-2neg |
| 1× | sub-neg |
| 1× | clear-num |
| 1× | rem-sqrt-square |
| 1× | +-commutative |
| 3.0ms | (sqrt (- (* b_2 b_2) (* a c))) |
| 2.0ms | (- (* b_2 b_2) (* a c)) |
| 2.0ms | (/ c (+ b_2 (sqrt (- (* b_2 b_2) (* a c))))) |
| 2.0ms | (+ b_2 (sqrt (- (* b_2 b_2) (* a c)))) |
| 120.0ms | (/ c (+ b_2 (sqrt (- (* b_2 b_2) (* a c))))) |
| 53.0ms | (+ b_2 (sqrt (- (* b_2 b_2) (* a c)))) |
| 41.0ms | (sqrt (- (* b_2 b_2) (* a c))) |
| 28.0ms | (- (* b_2 b_2) (* a c)) |
| 440.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))) |
| 249.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)))))) |
| 116.0ms | (- b_2 (* 1/2 (/ (* a c) b_2))) |
| 105.0ms | (- (* 2 b_2) (* 1/2 (/ (* a c) b_2))) |
10 alts after pruning (8 fresh and 2 done)
Merged error: 5.5b
Found 4 expressions with local error:
| 21.7b | (sqrt (- (* b_2 b_2) (* a c))) |
| 1.4b | (+ b_2 (sqrt (- (* b_2 b_2) (* a c)))) |
| 0.4b | (- (* b_2 b_2) (* a c)) |
| 0.2b | (* c (/ 1 (+ b_2 (sqrt (- (* b_2 b_2) (* a c)))))) |
| 7× | add-sqr-sqrt |
| 6× | add-log-exp |
| 6× | add-cube-cbrt |
| 6× | associate-*r* |
| 6× | *-un-lft-identity |
| 4× | log1p-expm1-u |
| 4× | add-exp-log |
| 4× | add-cbrt-cube |
| 4× | pow1 |
| 4× | expm1-log1p-u |
| 3× | sqrt-prod |
| 2× | flip-- |
| 2× | flip-+ |
| 2× | associate-/r/ |
| 2× | sqrt-div |
| 2× | flip3-- |
| 2× | flip3-+ |
| 1× | div-inv |
| 1× | *-commutative |
| 1× | un-div-inv |
| 1× | associate-*r/ |
| 1× | prod-diff |
| 1× | diff-log |
| 1× | fma-neg |
| 1× | pow1/2 |
| 1× | sub-neg |
| 1× | rem-sqrt-square |
| 1× | +-commutative |
| 5.0ms | (sqrt (- (* b_2 b_2) (* a c))) |
| 3.0ms | (- (* b_2 b_2) (* a c)) |
| 3.0ms | (+ b_2 (sqrt (- (* b_2 b_2) (* a c)))) |
| 1.0ms | (* c (/ 1 (+ b_2 (sqrt (- (* b_2 b_2) (* a c)))))) |
| 135.0ms | (* c (/ 1 (+ b_2 (sqrt (- (* b_2 b_2) (* a c)))))) |
| 68.0ms | (+ b_2 (sqrt (- (* b_2 b_2) (* a c)))) |
| 44.0ms | (sqrt (- (* b_2 b_2) (* a c))) |
| 32.0ms | (- (* b_2 b_2) (* a c)) |
| 428.0ms | (sqrt (- (* (* b_2 b_2) (* b_2 b_2)) (* (* a c) (* a c)))) |
| 379.0ms | (sqrt (- (pow (* b_2 b_2) 3) (pow (* a c) 3))) |
| 249.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)))))) |
| 109.0ms | (- (* 2 b_2) (* 1/2 (/ (* a c) b_2))) |
| 103.0ms | (- b_2 (* 1/2 (/ (* a c) b_2))) |
10 alts after pruning (7 fresh and 3 done)
Merged error: 5.5b
86.5% (3.2b remaining)
Error of 8.7b against oracle of 5.5b and baseline of 29.3b
| 787.0ms | 5850× | body | 80 | valid |
| 742.0ms | 1064× | body | 2560 | valid |
| 590.0ms | 922× | body | 1280 | valid |
| 513.0ms | 102× | body | 5120 | valid |
| 377.0ms | 2973× | body | 80 | nan |
| 231.0ms | 436× | body | 640 | valid |
| 108.0ms | 226× | body | 320 | valid |
| 95.0ms | 140× | body | 160 | valid |