


Bits error versus a



Bits error versus b_2



Bits error versus c
Results
if b_2 < -4.5550426908734494e+95Initial program 58.4
Taylor expanded around 0 58.4
Taylor expanded around -inf 2.6
if -4.5550426908734494e+95 < b_2 < -7.909515526455137e-171Initial program 37.6
rmApplied div-inv37.6
rmApplied flip--37.7
Applied associate-*l/37.7
Simplified14.6
if -7.909515526455137e-171 < b_2 < 1.2614257711811345e+67Initial program 10.6
rmApplied div-inv10.7
rmApplied *-commutative10.7
if 1.2614257711811345e+67 < b_2 Initial program 38.5
Taylor expanded around inf 5.2
Final simplification8.6
herbie shell --seed 1042149663
(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: 29.6s)Debug log
| 359× | (pre true 80) |
| 200× | (body real 80) |
| 85× | (body nan 80) |
| 34× | (body real 2560) |
| 20× | (body real 1280) |
| 13× | (body real 640) |
| 3× | (body real 5120) |
| 2× | (body real 320) |
| 2× | (body real 160) |
| 46.0ms | (/ (- (- b_2) (sqrt (- (* b_2 b_2) (* a c)))) a) |
1 alts after pruning (1 fresh and 0 done)
Merged error: 30.3b
Found 4 expressions with local error:
| 22.7b | (sqrt (- (* b_2 b_2) (* a c))) |
| 0.8b | (- (* b_2 b_2) (* a c)) |
| 0.5b | (- (- 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- |
| 36.0ms | (/ (- (- b_2) (sqrt (- (* b_2 b_2) (* a c)))) a) |
| 13.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)) |
| 95.0ms | (/ (- (- b_2) (sqrt (- (* b_2 b_2) (* a c)))) a) |
| 79.0ms | (- (- b_2) (sqrt (- (* b_2 b_2) (* a c)))) |
| 76.0ms | (sqrt (- (* b_2 b_2) (* a c))) |
| 41.0ms | (- (* b_2 b_2) (* a c)) |
| 409.0ms | (sqrt (- (pow (* b_2 b_2) 3) (pow (* a c) 3))) |
| 361.0ms | (- (pow (- b_2) 3) (pow (sqrt (- (* b_2 b_2) (* a c))) 3)) |
| 355.0ms | (sqrt (- (* (* b_2 b_2) (* b_2 b_2)) (* (* a c) (* a c)))) |
| 271.0ms | (- (* (- b_2) (- b_2)) (* (sqrt (- (* b_2 b_2) (* a c))) (sqrt (- (* b_2 b_2) (* a c))))) |
| 187.0ms | (- b_2 (* 1/2 (/ (* a c) b_2))) |
10 alts after pruning (10 fresh and 0 done)
Merged error: 5.3b
Found 4 expressions with local error:
| 22.7b | (sqrt (- (pow b_2 2) (* a c))) |
| 0.8b | (- (pow b_2 2) (* a c)) |
| 0.5b | (- (- b_2) (sqrt (- (pow b_2 2) (* a c)))) |
| 0.1b | (/ (- (- b_2) (sqrt (- (pow b_2 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 (- (pow b_2 2) (* a c)))) a) |
| 16.0ms | (- (- b_2) (sqrt (- (pow b_2 2) (* a c)))) |
| 7.0ms | (- (pow b_2 2) (* a c)) |
| 7.0ms | (sqrt (- (pow b_2 2) (* a c))) |
| 96.0ms | (/ (- (- b_2) (sqrt (- (pow b_2 2) (* a c)))) a) |
| 78.0ms | (- (- b_2) (sqrt (- (pow b_2 2) (* a c)))) |
| 70.0ms | (sqrt (- (pow b_2 2) (* a c))) |
| 47.0ms | (- (pow b_2 2) (* a c)) |
| 906.0ms | (- (* (- b_2) (- b_2)) (* (sqrt (- (pow b_2 2) (* a c))) (sqrt (- (pow b_2 2) (* a c))))) |
| 502.0ms | (sqrt (- (pow (pow b_2 2) 3) (pow (* a c) 3))) |
| 462.0ms | (- (pow (- b_2) 3) (pow (sqrt (- (pow b_2 2) (* a c))) 3)) |
| 355.0ms | (sqrt (- (* (pow b_2 2) (pow b_2 2)) (* (* a c) (* a c)))) |
| 188.0ms | (- b_2 (* 1/2 (/ (* a c) b_2))) |
10 alts after pruning (9 fresh and 1 done)
Merged error: 5.3b
Found 4 expressions with local error:
| 22.7b | (sqrt (- (* b_2 b_2) (* a c))) |
| 0.8b | (- (* b_2 b_2) (* a c)) |
| 0.5b | (- (- b_2) (sqrt (- (* b_2 b_2) (* a c)))) |
| 0.3b | (* (- (- 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- |
| 32.0ms | (* (- (- b_2) (sqrt (- (* b_2 b_2) (* a c)))) (/ 1 a)) |
| 14.0ms | (- (- b_2) (sqrt (- (* b_2 b_2) (* a c)))) |
| 7.0ms | (- (* b_2 b_2) (* a c)) |
| 5.0ms | (sqrt (- (* b_2 b_2) (* a c))) |
| 107.0ms | (* (- (- b_2) (sqrt (- (* b_2 b_2) (* a c)))) (/ 1 a)) |
| 89.0ms | (- (- b_2) (sqrt (- (* b_2 b_2) (* a c)))) |
| 79.0ms | (sqrt (- (* b_2 b_2) (* a c))) |
| 45.0ms | (- (* b_2 b_2) (* a c)) |
| 623.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))) |
| 475.0ms | (* (- (* (- b_2) (- b_2)) (* (sqrt (- (* b_2 b_2) (* a c))) (sqrt (- (* b_2 b_2) (* a c))))) 1) |
| 470.0ms | (* (- (pow (- b_2) 3) (pow (sqrt (- (* b_2 b_2) (* a c))) 3)) 1) |
| 446.0ms | (sqrt (- (pow (* b_2 b_2) 3) (pow (* a c) 3))) |
| 439.0ms | (* (- (- b_2) (sqrt (- (* b_2 b_2) (* a c)))) (/ 1 a)) |
8 alts after pruning (8 fresh and 0 done)
Merged error: 5.3b
Found 4 expressions with local error:
| 22.7b | (sqrt (- (* b_2 b_2) (* a c))) |
| 0.8b | (- (* b_2 b_2) (* a c)) |
| 0.5b | (- (- b_2) (sqrt (- (* b_2 b_2) (* a c)))) |
| 0.3b | (* (/ 1 a) (- (- b_2) (sqrt (- (* b_2 b_2) (* a c))))) |
| 16× | add-sqr-sqrt |
| 11× | *-un-lft-identity |
| 8× | add-log-exp |
| 7× | add-cube-cbrt |
| 6× | add-exp-log |
| 6× | associate-*r* |
| 6× | add-cbrt-cube |
| 6× | pow1 |
| 5× | flip-- |
| 5× | sqrt-prod |
| 5× | flip3-- |
| 4× | difference-of-squares |
| 4× | associate-*l* |
| 4× | sub-neg |
| 2× | distribute-lft-out-- |
| 2× | associate-*r/ |
| 2× | diff-log |
| 2× | sqrt-div |
| 2× | distribute-lft-in |
| 2× | frac-times |
| 2× | distribute-rgt-in |
| 1× | div-inv |
| 1× | cbrt-unprod |
| 1× | *-commutative |
| 1× | prod-exp |
| 1× | associate-*l/ |
| 1× | pow-prod-down |
| 1× | pow1/2 |
| 1× | rem-sqrt-square |
| 1× | neg-sub0 |
| 1× | associate--l- |
| 29.0ms | (* (/ 1 a) (- (- b_2) (sqrt (- (* b_2 b_2) (* a c))))) |
| 13.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)) |
| 121.0ms | (* (/ 1 a) (- (- b_2) (sqrt (- (* b_2 b_2) (* a c))))) |
| 79.0ms | (- (- b_2) (sqrt (- (* b_2 b_2) (* a c)))) |
| 76.0ms | (sqrt (- (* b_2 b_2) (* a c))) |
| 41.0ms | (- (* b_2 b_2) (* a c)) |
| 1.1s | (* (* (* (/ 1 a) (/ 1 a)) (/ 1 a)) (* (* (- (- 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)))))) |
| 534.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)))))) |
| 456.0ms | (* 1 (- (* (- b_2) (- b_2)) (* (sqrt (- (* b_2 b_2) (* a c))) (sqrt (- (* b_2 b_2) (* a c)))))) |
| 408.0ms | (sqrt (- (pow (* b_2 b_2) 3) (pow (* a c) 3))) |
| 406.0ms | (* 1 (- (pow (- b_2) 3) (pow (sqrt (- (* b_2 b_2) (* a c))) 3))) |
8 alts after pruning (7 fresh and 1 done)
Merged error: 5.3b
88.7% (3.1b remaining)
Error of 8.6b against oracle of 5.5b and baseline of 33.0b
| 11655× | (pre true 80) |
| 5920× | (body real 80) |
| 2914× | (body nan 80) |
| 1020× | (body real 2560) |
| 879× | (body real 1280) |
| 471× | (body real 640) |
| 227× | (body real 320) |
| 118× | (body real 5120) |
| 106× | (body real 160) |