


Bits error versus a



Bits error versus b_2



Bits error versus c
Results
if b_2 < -1.2011928214601198e+124Initial program 59.7
rmApplied div-inv59.7
Taylor expanded around -inf 2.2
if -1.2011928214601198e+124 < b_2 < -5.7718118619005265e-295Initial program 33.4
rmApplied div-inv33.4
rmApplied flip--33.5
Applied associate-*l/33.5
Simplified14.7
Taylor expanded around -inf 8.4
rmApplied clear-num8.8
if -5.7718118619005265e-295 < b_2 < 1.592220113700558e+55Initial program 9.5
rmApplied div-inv9.6
if 1.592220113700558e+55 < b_2 Initial program 36.4
Taylor expanded around inf 4.8
Final simplification6.8
herbie shell --seed 2019010
(FPCore (a b_2 c)
:name "NMSE problem 3.2.1"
(/ (- (- b_2) (sqrt (- (* b_2 b_2) (* a c)))) a))
Time bar (total: 15.5s)Debug log
| 57.0ms | (/ (- (- b_2) (sqrt (- (* b_2 b_2) (* a c)))) a) |
1 alts after pruning (1 fresh and 0 done)
Merged error: 34.1b
Found 4 expressions with local error:
| 23.4b | (sqrt (- (* b_2 b_2) (* a c))) |
| 0.4b | (- (- b_2) (sqrt (- (* b_2 b_2) (* a c)))) |
| 0.2b | (- (* 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- |
| 19.0ms | (/ (- (- b_2) (sqrt (- (* b_2 b_2) (* a c)))) a) |
| 11.0ms | (- (- b_2) (sqrt (- (* b_2 b_2) (* a c)))) |
| 4.0ms | (sqrt (- (* b_2 b_2) (* a c))) |
| 4.0ms | (- (* b_2 b_2) (* a c)) |
| 66.0ms | (- (- b_2) (sqrt (- (* b_2 b_2) (* a c)))) |
| 62.0ms | (/ (- (- b_2) (sqrt (- (* b_2 b_2) (* a c)))) a) |
| 59.0ms | (sqrt (- (* b_2 b_2) (* a c))) |
| 33.0ms | (- (* b_2 b_2) (* a c)) |
| 263.0ms | (sqrt (- (* (* b_2 b_2) (* b_2 b_2)) (* (* a c) (* a c)))) |
| 262.0ms | (sqrt (- (pow (* b_2 b_2) 3) (pow (* a c) 3))) |
| 250.0ms | (- (pow (- b_2) 3) (pow (sqrt (- (* b_2 b_2) (* a c))) 3)) |
| 202.0ms | (- (* (- b_2) (- b_2)) (* (sqrt (- (* b_2 b_2) (* a c))) (sqrt (- (* b_2 b_2) (* a c))))) |
| 143.0ms | (- b_2 (* 1/2 (/ (* a c) b_2))) |
9 alts after pruning (9 fresh and 0 done)
Merged error: 6.2b
Found 4 expressions with local error:
| 23.4b | (sqrt (- (* b_2 b_2) (* a c))) |
| 0.4b | (- (- b_2) (sqrt (- (* b_2 b_2) (* a c)))) |
| 0.2b | (- (* b_2 b_2) (* a c)) |
| 0.2b | (* (- (- b_2) (sqrt (- (* b_2 b_2) (* a c)))) (/ 1 a)) |
| 16× | add-sqr-sqrt |
| 11× | *-un-lft-identity |
| 8× | add-log-exp |
| 7× | add-cube-cbrt |
| 6× | add-exp-log |
| 6× | associate-*l* |
| 6× | add-cbrt-cube |
| 6× | pow1 |
| 5× | flip-- |
| 5× | sqrt-prod |
| 5× | flip3-- |
| 4× | difference-of-squares |
| 4× | associate-*r* |
| 2× | distribute-lft-out-- |
| 2× | associate-*l/ |
| 2× | diff-log |
| 2× | sqrt-div |
| 2× | sub-neg |
| 2× | frac-times |
| 1× | div-inv |
| 1× | cbrt-unprod |
| 1× | *-commutative |
| 1× | un-div-inv |
| 1× | associate-*r/ |
| 1× | prod-exp |
| 1× | pow-prod-down |
| 1× | pow1/2 |
| 1× | rem-sqrt-square |
| 1× | neg-sub0 |
| 1× | associate--l- |
| 26.0ms | (* (- (- b_2) (sqrt (- (* b_2 b_2) (* a c)))) (/ 1 a)) |
| 11.0ms | (- (- b_2) (sqrt (- (* b_2 b_2) (* a c)))) |
| 4.0ms | (sqrt (- (* b_2 b_2) (* a c))) |
| 4.0ms | (- (* b_2 b_2) (* a c)) |
| 56.0ms | (* (- (- b_2) (sqrt (- (* b_2 b_2) (* a c)))) (/ 1 a)) |
| 42.0ms | (- (- b_2) (sqrt (- (* b_2 b_2) (* a c)))) |
| 40.0ms | (sqrt (- (* b_2 b_2) (* a c))) |
| 20.0ms | (- (* b_2 b_2) (* a c)) |
| 387.0ms | (* (* (* (- (- b_2) (sqrt (- (* b_2 b_2) (* a c)))) (- (- b_2) (sqrt (- (* b_2 b_2) (* a c))))) (- (- b_2) (sqrt (- (* b_2 b_2) (* a c))))) (* (* (/ 1 a) (/ 1 a)) (/ 1 a))) |
| 347.0ms | (* (- (pow (- b_2) 3) (pow (sqrt (- (* b_2 b_2) (* a c))) 3)) 1) |
| 335.0ms | (* (- (* (- b_2) (- b_2)) (* (sqrt (- (* b_2 b_2) (* a c))) (sqrt (- (* b_2 b_2) (* a c))))) 1) |
| 232.0ms | (sqrt (- (pow (* b_2 b_2) 3) (pow (* a c) 3))) |
| 221.0ms | (* (- (- b_2) (sqrt (- (* b_2 b_2) (* a c)))) (/ 1 a)) |
7 alts after pruning (6 fresh and 1 done)
Merged error: 6.2b
Found 4 expressions with local error:
| 23.4b | (sqrt (- (* b_2 b_2) (* a c))) |
| 15.2b | (/ (* a c) a) |
| 1.7b | (+ (- b_2) (sqrt (- (* b_2 b_2) (* a c)))) |
| 0.2b | (- (* b_2 b_2) (* a c)) |
| 8× | add-log-exp |
| 7× | *-un-lft-identity |
| 6× | add-sqr-sqrt |
| 5× | add-cube-cbrt |
| 4× | add-exp-log |
| 4× | add-cbrt-cube |
| 4× | pow1 |
| 3× | sqrt-prod |
| 2× | flip-- |
| 2× | sqrt-div |
| 2× | flip3-- |
| 1× | associate-/l* |
| 1× | distribute-lft-out |
| 1× | div-inv |
| 1× | flip-+ |
| 1× | associate-+l- |
| 1× | diff-log |
| 1× | pow1/2 |
| 1× | flip3-+ |
| 1× | frac-2neg |
| 1× | sub-neg |
| 1× | sum-log |
| 1× | clear-num |
| 1× | rem-sqrt-square |
| 1× | +-commutative |
| 1× | neg-sub0 |
| 11.0ms | (+ (- b_2) (sqrt (- (* b_2 b_2) (* a c)))) |
| 4.0ms | (/ (* a c) a) |
| 4.0ms | (sqrt (- (* b_2 b_2) (* a c))) |
| 4.0ms | (- (* b_2 b_2) (* a c)) |
| 46.0ms | (sqrt (- (* b_2 b_2) (* a c))) |
| 40.0ms | (+ (- b_2) (sqrt (- (* b_2 b_2) (* a c)))) |
| 30.0ms | (- (* b_2 b_2) (* a c)) |
| 5.0ms | (/ (* a c) a) |
| 248.0ms | (sqrt (- (pow (* b_2 b_2) 3) (pow (* a c) 3))) |
| 162.0ms | (sqrt (- (* (* b_2 b_2) (* b_2 b_2)) (* (* a c) (* a c)))) |
| 108.0ms | (- b_2 (* 1/2 (/ (* a c) b_2))) |
| 88.0ms | (- (* 1/2 (/ (* a c) b_2)) (* 2 b_2)) |
| 46.0ms | (* -1/2 (/ (* a c) b_2)) |
9 alts after pruning (8 fresh and 1 done)
Merged error: 6.2b
Found 4 expressions with local error:
| 23.4b | (sqrt (- (* b_2 b_2) (* a c))) |
| 1.7b | (+ (- b_2) (sqrt (- (* b_2 b_2) (* a c)))) |
| 0.2b | (- (* b_2 b_2) (* a c)) |
| 0.1b | (/ c (+ (- b_2) (sqrt (- (* b_2 b_2) (* a c))))) |
| 10× | *-un-lft-identity |
| 8× | add-log-exp |
| 7× | add-sqr-sqrt |
| 6× | add-cube-cbrt |
| 4× | add-exp-log |
| 4× | add-cbrt-cube |
| 4× | associate-/r* |
| 4× | pow1 |
| 3× | sqrt-prod |
| 2× | distribute-lft-out |
| 2× | flip-- |
| 2× | flip-+ |
| 2× | associate-/r/ |
| 2× | sqrt-div |
| 2× | flip3-- |
| 2× | flip3-+ |
| 1× | div-inv |
| 1× | associate-+l- |
| 1× | diff-log |
| 1× | pow1/2 |
| 1× | frac-2neg |
| 1× | sub-neg |
| 1× | sum-log |
| 1× | clear-num |
| 1× | rem-sqrt-square |
| 1× | +-commutative |
| 1× | neg-sub0 |
| 11.0ms | (+ (- b_2) (sqrt (- (* b_2 b_2) (* a c)))) |
| 8.0ms | (/ c (+ (- b_2) (sqrt (- (* b_2 b_2) (* a c))))) |
| 4.0ms | (sqrt (- (* b_2 b_2) (* a c))) |
| 4.0ms | (- (* b_2 b_2) (* a c)) |
| 158.0ms | (/ c (+ (- b_2) (sqrt (- (* b_2 b_2) (* a c))))) |
| 63.0ms | (+ (- b_2) (sqrt (- (* b_2 b_2) (* a c)))) |
| 60.0ms | (sqrt (- (* b_2 b_2) (* a c))) |
| 37.0ms | (- (* b_2 b_2) (* a c)) |
| 300.0ms | (sqrt (- (pow (* b_2 b_2) 3) (pow (* a c) 3))) |
| 297.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)))))) |
| 252.0ms | (sqrt (- (* (* b_2 b_2) (* b_2 b_2)) (* (* a c) (* a c)))) |
| 175.0ms | (- b_2 (* 1/2 (/ (* a c) b_2))) |
| 89.0ms | (- (* 1/2 (/ (* a c) b_2)) (* 2 b_2)) |
9 alts after pruning (8 fresh and 1 done)
Merged error: 6.2b
94.5% (1.3b remaining)
Error of 6.8b against oracle of 5.5b and baseline of 29.8b