


Bits error versus a



Bits error versus b_2



Bits error versus c
Results
if b_2 < -1.1691367897364362e+152Initial program 62.8
Taylor expanded around -inf 1.2
if -1.1691367897364362e+152 < b_2 < -5.677263518060922e-271Initial program 36.3
rmApplied flip--36.3
Applied associate-/l/40.2
Simplified19.4
rmApplied times-frac6.9
Simplified6.9
Simplified6.9
if -5.677263518060922e-271 < b_2 < 7.532875008454864e+126Initial program 8.9
if 7.532875008454864e+126 < b_2 Initial program 50.7
rmApplied flip--61.9
Applied associate-/l/62.1
Simplified62.3
Taylor expanded around 0 2.9
Final simplification6.0
herbie shell --seed 323378853
(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: 25.4s)Debug log
| 47.0ms | 39× | body | 2560 | valid |
| 34.0ms | 21× | body | 640 | valid |
| 34.0ms | 36× | body | 1280 | valid |
| 32.0ms | 168× | body | 80 | valid |
| 14.0ms | 84× | body | 80 | nan |
| 4.0ms | 7× | body | 320 | valid |
| 3.0ms | 2× | body | 5120 | valid |
| 1.0ms | 3× | body | 160 | valid |
| 43.0ms | (/ (- (- b_2) (sqrt (- (* b_2 b_2) (* a c)))) a) |
1 alts after pruning (1 fresh and 0 done)
Merged error: 35.5b
Found 4 expressions with local error:
| 24.4b | (sqrt (- (* b_2 b_2) (* a c))) |
| 1.4b | (- (* b_2 b_2) (* a c)) |
| 0.6b | (- (- b_2) (sqrt (- (* b_2 b_2) (* a c)))) |
| 0.1b | (/ (- (- b_2) (sqrt (- (* b_2 b_2) (* a c)))) a) |
| 15× | add-sqr-sqrt |
| 10× | *-un-lft-identity |
| 8× | add-log-exp |
| 6× | associate-/l* |
| 6× | add-cube-cbrt |
| 5× | sqrt-prod |
| 4× | difference-of-squares |
| 4× | flip-- |
| 4× | add-exp-log |
| 4× | add-cbrt-cube |
| 4× | flip3-- |
| 4× | pow1 |
| 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- |
| 42.0ms | (/ (- (- b_2) (sqrt (- (* b_2 b_2) (* a c)))) a) |
| 14.0ms | (- (- b_2) (sqrt (- (* b_2 b_2) (* a c)))) |
| 5.0ms | (sqrt (- (* b_2 b_2) (* a c))) |
| 4.0ms | (- (* b_2 b_2) (* a c)) |
| 97.0ms | (/ (- (- b_2) (sqrt (- (* b_2 b_2) (* a c)))) a) |
| 82.0ms | (- (- b_2) (sqrt (- (* b_2 b_2) (* a c)))) |
| 71.0ms | (sqrt (- (* b_2 b_2) (* a c))) |
| 42.0ms | (- (* b_2 b_2) (* a c)) |
| 424.0ms | (sqrt (- (pow (* b_2 b_2) 3) (pow (* a c) 3))) |
| 398.0ms | (- (pow (- b_2) 3) (pow (sqrt (- (* b_2 b_2) (* a c))) 3)) |
| 366.0ms | (sqrt (- (* (* b_2 b_2) (* b_2 b_2)) (* (* a c) (* a c)))) |
| 293.0ms | (- (* (- b_2) (- b_2)) (* (sqrt (- (* b_2 b_2) (* a c))) (sqrt (- (* b_2 b_2) (* a c))))) |
| 204.0ms | (- b_2 (* 1/2 (/ (* a c) b_2))) |
9 alts after pruning (8 fresh and 1 done)
Merged error: 4.8b
Found 4 expressions with local error:
| 24.4b | (sqrt (- (* b_2 b_2) (* a c))) |
| 16.6b | (/ (* a c) (* a (+ (- b_2) (sqrt (- (* b_2 b_2) (* a c)))))) |
| 1.8b | (+ (- b_2) (sqrt (- (* b_2 b_2) (* a c)))) |
| 1.4b | (- (* b_2 b_2) (* a c)) |
| 8× | add-log-exp |
| 7× | *-un-lft-identity |
| 6× | add-exp-log |
| 6× | add-cbrt-cube |
| 6× | add-sqr-sqrt |
| 5× | add-cube-cbrt |
| 4× | pow1 |
| 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× | div-exp |
| 1× | diff-log |
| 1× | pow1/2 |
| 1× | times-frac |
| 1× | frac-2neg |
| 1× | sub-neg |
| 1× | sum-log |
| 1× | associate-/r* |
| 1× | clear-num |
| 1× | rem-sqrt-square |
| 1× | +-commutative |
| 1× | cbrt-undiv |
| 1× | neg-sub0 |
| 17.0ms | (/ (* a c) (* a (+ (- b_2) (sqrt (- (* b_2 b_2) (* a c)))))) |
| 13.0ms | (+ (- b_2) (sqrt (- (* b_2 b_2) (* a c)))) |
| 5.0ms | (- (* b_2 b_2) (* a c)) |
| 5.0ms | (sqrt (- (* b_2 b_2) (* a c))) |
| 186.0ms | (/ (* a c) (* a (+ (- b_2) (sqrt (- (* b_2 b_2) (* a c)))))) |
| 83.0ms | (+ (- b_2) (sqrt (- (* b_2 b_2) (* a c)))) |
| 74.0ms | (sqrt (- (* b_2 b_2) (* a c))) |
| 42.0ms | (- (* b_2 b_2) (* a c)) |
| 778.0ms | (- (log (* a c)) (log (* a (+ (- b_2) (sqrt (- (* b_2 b_2) (* a c))))))) |
| 505.0ms | (sqrt (- (pow (* b_2 b_2) 3) (pow (* a c) 3))) |
| 489.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)))))) |
| 383.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))))))) |
| 361.0ms | (sqrt (- (* (* b_2 b_2) (* b_2 b_2)) (* (* a c) (* a c)))) |
6 alts after pruning (5 fresh and 1 done)
Merged error: 4.7b
Found 4 expressions with local error:
| 24.4b | (sqrt (- (* b_2 b_2) (* a c))) |
| 1.8b | (- (sqrt (- (* b_2 b_2) (* a c))) b_2) |
| 1.4b | (- (* b_2 b_2) (* a c)) |
| 0.1b | (/ c (- (sqrt (- (* b_2 b_2) (* a c))) b_2)) |
| 7× | add-sqr-sqrt |
| 6× | add-log-exp |
| 6× | add-cube-cbrt |
| 6× | *-un-lft-identity |
| 4× | flip-- |
| 4× | add-exp-log |
| 4× | add-cbrt-cube |
| 4× | flip3-- |
| 4× | pow1 |
| 3× | sqrt-prod |
| 3× | associate-/r* |
| 2× | associate-/r/ |
| 2× | sqrt-div |
| 2× | sub-neg |
| 1× | div-inv |
| 1× | diff-log |
| 1× | pow1/2 |
| 1× | frac-2neg |
| 1× | clear-num |
| 1× | rem-sqrt-square |
| 26.0ms | (- (sqrt (- (* b_2 b_2) (* a c))) b_2) |
| 13.0ms | (/ c (- (sqrt (- (* b_2 b_2) (* a c))) b_2)) |
| 5.0ms | (sqrt (- (* b_2 b_2) (* a c))) |
| 5.0ms | (- (* b_2 b_2) (* a c)) |
| 216.0ms | (/ c (- (sqrt (- (* b_2 b_2) (* a c))) b_2)) |
| 80.0ms | (- (sqrt (- (* b_2 b_2) (* a c))) b_2) |
| 75.0ms | (sqrt (- (* b_2 b_2) (* a c))) |
| 42.0ms | (- (* b_2 b_2) (* a c)) |
| 406.0ms | (sqrt (- (pow (* b_2 b_2) 3) (pow (* a c) 3))) |
| 353.0ms | (sqrt (- (* (* b_2 b_2) (* b_2 b_2)) (* (* a c) (* a c)))) |
| 233.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))) |
| 217.0ms | (- b_2 (* 1/2 (/ (* a c) b_2))) |
| 103.0ms | (- (* 1/2 (/ (* a c) b_2)) (* 2 b_2)) |
7 alts after pruning (5 fresh and 2 done)
Merged error: 4.7b
Found 4 expressions with local error:
| 24.4b | (sqrt (- (* b_2 b_2) (* a c))) |
| 16.9b | (* (* a c) (/ 1 (* a (+ (- b_2) (sqrt (- (* b_2 b_2) (* a c))))))) |
| 1.8b | (+ (- b_2) (sqrt (- (* b_2 b_2) (* a c)))) |
| 1.4b | (- (* b_2 b_2) (* a c)) |
| 8× | add-log-exp |
| 8× | add-exp-log |
| 8× | *-un-lft-identity |
| 7× | add-sqr-sqrt |
| 6× | add-cube-cbrt |
| 6× | associate-*r* |
| 6× | add-cbrt-cube |
| 6× | pow1 |
| 3× | sqrt-prod |
| 3× | associate-*r/ |
| 2× | flip-- |
| 2× | flip-+ |
| 2× | associate-/r/ |
| 2× | prod-exp |
| 2× | sqrt-div |
| 2× | flip3-- |
| 2× | flip3-+ |
| 1× | distribute-lft-out |
| 1× | div-inv |
| 1× | cbrt-unprod |
| 1× | associate-+l- |
| 1× | *-commutative |
| 1× | un-div-inv |
| 1× | pow-prod-down |
| 1× | associate-*l* |
| 1× | diff-log |
| 1× | pow1/2 |
| 1× | sub-neg |
| 1× | sum-log |
| 1× | rec-exp |
| 1× | rem-sqrt-square |
| 1× | +-commutative |
| 1× | neg-sub0 |
| 32.0ms | (* (* a c) (/ 1 (* a (+ (- b_2) (sqrt (- (* b_2 b_2) (* a c))))))) |
| 14.0ms | (+ (- b_2) (sqrt (- (* b_2 b_2) (* a c)))) |
| 5.0ms | (sqrt (- (* b_2 b_2) (* a c))) |
| 5.0ms | (- (* b_2 b_2) (* a c)) |
| 200.0ms | (* (* a c) (/ 1 (* a (+ (- b_2) (sqrt (- (* b_2 b_2) (* a c))))))) |
| 101.0ms | (+ (- b_2) (sqrt (- (* b_2 b_2) (* a c)))) |
| 80.0ms | (sqrt (- (* b_2 b_2) (* a c))) |
| 54.0ms | (- (* b_2 b_2) (* a c)) |
| 775.0ms | (+ (log (* a c)) (- (log (* a (+ (- b_2) (sqrt (- (* b_2 b_2) (* a c)))))))) |
| 471.0ms | (* (* a c) (/ 1 (* a (+ (- b_2) (sqrt (- (* b_2 b_2) (* a c))))))) |
| 399.0ms | (sqrt (- (pow (* b_2 b_2) 3) (pow (* a c) 3))) |
| 354.0ms | (sqrt (- (* (* b_2 b_2) (* b_2 b_2)) (* (* a c) (* a c)))) |
| 351.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)))))) |
7 alts after pruning (4 fresh and 3 done)
Merged error: 4.7b
96.5% (0.8b remaining)
Error of 6.0b against oracle of 5.2b and baseline of 29.1b
| 1.6s | 1081× | body | 2560 | valid |
| 1.3s | 5760× | body | 80 | valid |
| 1.1s | 925× | body | 1280 | valid |
| 836.0ms | 489× | body | 640 | valid |
| 811.0ms | 2968× | body | 80 | nan |
| 217.0ms | 245× | body | 320 | valid |
| 184.0ms | 116× | body | 5120 | valid |
| 50.0ms | 124× | body | 160 | valid |