


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
rmApplied div-inv36.5
Taylor expanded around inf 4.8
Final simplification6.8
herbie shell --seed 2019010
(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: 14.8s)Debug log
| 44.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- |
| 31.0ms | (/ (- (- b_2) (sqrt (- (* b_2 b_2) (* a c)))) a) |
| 12.0ms | (- (- b_2) (sqrt (- (* b_2 b_2) (* a c)))) |
| 7.0ms | (sqrt (- (* b_2 b_2) (* a c))) |
| 4.0ms | (- (* b_2 b_2) (* a c)) |
| 78.0ms | (/ (- (- b_2) (sqrt (- (* b_2 b_2) (* a c)))) a) |
| 74.0ms | (sqrt (- (* b_2 b_2) (* a c))) |
| 44.0ms | (- (- b_2) (sqrt (- (* b_2 b_2) (* a c)))) |
| 30.0ms | (- (* b_2 b_2) (* a c)) |
| 244.0ms | (- (pow (- b_2) 3) (pow (sqrt (- (* b_2 b_2) (* a c))) 3)) |
| 214.0ms | (sqrt (- (pow (* b_2 b_2) 3) (pow (* a c) 3))) |
| 212.0ms | (- (* (- b_2) (- b_2)) (* (sqrt (- (* b_2 b_2) (* a c))) (sqrt (- (* b_2 b_2) (* a c))))) |
| 204.0ms | (sqrt (- (* (* b_2 b_2) (* b_2 b_2)) (* (* a c) (* a c)))) |
| 154.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- |
| 13.0ms | (* (- (- b_2) (sqrt (- (* b_2 b_2) (* a c)))) (/ 1 a)) |
| 10.0ms | (- (- b_2) (sqrt (- (* b_2 b_2) (* a c)))) |
| 4.0ms | (sqrt (- (* b_2 b_2) (* a c))) |
| 2.0ms | (- (* b_2 b_2) (* a c)) |
| 49.0ms | (* (- (- b_2) (sqrt (- (* b_2 b_2) (* a c)))) (/ 1 a)) |
| 43.0ms | (- (- b_2) (sqrt (- (* b_2 b_2) (* a c)))) |
| 38.0ms | (sqrt (- (* b_2 b_2) (* a c))) |
| 31.0ms | (- (* b_2 b_2) (* a c)) |
| 405.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))) |
| 311.0ms | (* (- (pow (- b_2) 3) (pow (sqrt (- (* b_2 b_2) (* a c))) 3)) 1) |
| 266.0ms | (* (- (- b_2) (sqrt (- (* b_2 b_2) (* a c)))) (/ 1 a)) |
| 265.0ms | (* (- (* (- b_2) (- b_2)) (* (sqrt (- (* b_2 b_2) (* a c))) (sqrt (- (* b_2 b_2) (* a c))))) 1) |
| 261.0ms | (sqrt (- (pow (* b_2 b_2) 3) (pow (* a c) 3))) |
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 |
| 9.0ms | (+ (- b_2) (sqrt (- (* b_2 b_2) (* a c)))) |
| 2.0ms | (/ (* a c) a) |
| 2.0ms | (sqrt (- (* b_2 b_2) (* a c))) |
| 2.0ms | (- (* b_2 b_2) (* a c)) |
| 52.0ms | (+ (- b_2) (sqrt (- (* b_2 b_2) (* a c)))) |
| 44.0ms | (sqrt (- (* b_2 b_2) (* a c))) |
| 22.0ms | (- (* b_2 b_2) (* a c)) |
| 8.0ms | (/ (* a c) a) |
| 245.0ms | (sqrt (- (pow (* b_2 b_2) 3) (pow (* a c) 3))) |
| 182.0ms | (sqrt (- (* (* b_2 b_2) (* b_2 b_2)) (* (* a c) (* a c)))) |
| 111.0ms | (- b_2 (* 1/2 (/ (* a c) b_2))) |
| 70.0ms | (* (exp (- b_2)) (exp (sqrt (- (* b_2 b_2) (* a c))))) |
| 66.0ms | (- (* 1/2 (/ (* a c) b_2)) (* 2 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 |
| 6.0ms | (+ (- b_2) (sqrt (- (* b_2 b_2) (* a c)))) |
| 4.0ms | (/ c (+ (- b_2) (sqrt (- (* b_2 b_2) (* a c))))) |
| 4.0ms | (sqrt (- (* b_2 b_2) (* a c))) |
| 2.0ms | (- (* b_2 b_2) (* a c)) |
| 128.0ms | (/ c (+ (- b_2) (sqrt (- (* b_2 b_2) (* a c))))) |
| 55.0ms | (+ (- b_2) (sqrt (- (* b_2 b_2) (* a c)))) |
| 37.0ms | (sqrt (- (* b_2 b_2) (* a c))) |
| 32.0ms | (- (* b_2 b_2) (* a c)) |
| 250.0ms | (sqrt (- (pow (* b_2 b_2) 3) (pow (* a c) 3))) |
| 242.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)))))) |
| 191.0ms | (sqrt (- (* (* b_2 b_2) (* b_2 b_2)) (* (* a c) (* a c)))) |
| 138.0ms | (- b_2 (* 1/2 (/ (* a c) b_2))) |
| 54.0ms | (- (* 1/2 (/ (* a c) b_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