


Bits error versus a



Bits error versus b_2



Bits error versus c
Results
if b_2 < -2.149882403051541e+52Initial program 56.9
Taylor expanded around -inf 3.6
if -2.149882403051541e+52 < b_2 < -5.3114917253015484e-256Initial program 31.7
rmApplied div-inv31.7
rmApplied flip--31.8
Applied associate-*l/31.9
Simplified17.4
Taylor expanded around inf 9.2
if -5.3114917253015484e-256 < b_2 < 1.2400038106051258e+68Initial program 10.2
rmApplied div-inv10.4
if 1.2400038106051258e+68 < b_2 Initial program 37.5
Taylor expanded around inf 5.1
Final simplification7.3
herbie shell --seed 1137770271
(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: 26.4s)Debug log
| 192× | 40.0ms | (body real 80) |
| 30× | 38.0ms | (body real 2560) |
| 32× | 33.0ms | (body real 1280) |
| 98× | 20.0ms | (body nan 80) |
| 17× | 15.0ms | (body real 640) |
| 381× | 14.0ms | (pre true 80) |
| 10× | 8.0ms | (body real 320) |
| 1× | 1.0ms | (body real 5120) |
| 1× | 0.0ms | (body real 160) |
| 47.0ms | (/ (- (- b_2) (sqrt (- (* b_2 b_2) (* a c)))) a) |
1 alts after pruning (1 fresh and 0 done)
Merged error: 33.0b
Found 4 expressions with local error:
| 22.2b | (sqrt (- (* b_2 b_2) (* a c))) |
| 0.6b | (- (- b_2) (sqrt (- (* b_2 b_2) (* a c)))) |
| 0.4b | (- (* 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- |
| 52.0ms | (/ (- (- b_2) (sqrt (- (* b_2 b_2) (* a c)))) a) |
| 18.0ms | (- (- b_2) (sqrt (- (* b_2 b_2) (* a c)))) |
| 6.0ms | (sqrt (- (* b_2 b_2) (* a c))) |
| 5.0ms | (- (* b_2 b_2) (* a c)) |
| 111.0ms | (/ (- (- b_2) (sqrt (- (* b_2 b_2) (* a c)))) a) |
| 96.0ms | (- (- b_2) (sqrt (- (* b_2 b_2) (* a c)))) |
| 87.0ms | (sqrt (- (* b_2 b_2) (* a c))) |
| 46.0ms | (- (* b_2 b_2) (* a c)) |
| 595.0ms | (sqrt (- (pow (* b_2 b_2) 3) (pow (* a c) 3))) |
| 366.0ms | (- (pow (- b_2) 3) (pow (sqrt (- (* b_2 b_2) (* a c))) 3)) |
| 360.0ms | (sqrt (- (* (* b_2 b_2) (* b_2 b_2)) (* (* a c) (* a c)))) |
| 267.0ms | (- (* (- b_2) (- b_2)) (* (sqrt (- (* b_2 b_2) (* a c))) (sqrt (- (* b_2 b_2) (* a c))))) |
| 184.0ms | (- b_2 (* 1/2 (/ (* a c) b_2))) |
10 alts after pruning (10 fresh and 0 done)
Merged error: 7.1b
Found 4 expressions with local error:
| 22.2b | (sqrt (- (* b_2 b_2) (* a c))) |
| 0.6b | (- (- b_2) (sqrt (- (* b_2 b_2) (* a c)))) |
| 0.4b | (- (* 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- |
| 34.0ms | (* (- (- b_2) (sqrt (- (* b_2 b_2) (* a c)))) (/ 1 a)) |
| 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)) |
| 107.0ms | (* (- (- b_2) (sqrt (- (* b_2 b_2) (* a c)))) (/ 1 a)) |
| 86.0ms | (- (- b_2) (sqrt (- (* b_2 b_2) (* a c)))) |
| 72.0ms | (sqrt (- (* b_2 b_2) (* a c))) |
| 42.0ms | (- (* b_2 b_2) (* a c)) |
| 600.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))) |
| 466.0ms | (sqrt (- (pow (* b_2 b_2) 3) (pow (* a c) 3))) |
| 460.0ms | (* (- (* (- b_2) (- b_2)) (* (sqrt (- (* b_2 b_2) (* a c))) (sqrt (- (* b_2 b_2) (* a c))))) 1) |
| 458.0ms | (* (- (pow (- b_2) 3) (pow (sqrt (- (* b_2 b_2) (* a c))) 3)) 1) |
| 430.0ms | (* (- (- b_2) (sqrt (- (* b_2 b_2) (* a c)))) (/ 1 a)) |
10 alts after pruning (9 fresh and 1 done)
Merged error: 7.1b
Found 4 expressions with local error:
| 22.2b | (sqrt (- (* b_2 b_2) (* a c))) |
| 14.6b | (/ (* a c) a) |
| 0.7b | (+ (- b_2) (sqrt (- (* b_2 b_2) (* a c)))) |
| 0.4b | (- (* 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 |
| 13.0ms | (+ (- b_2) (sqrt (- (* b_2 b_2) (* a c)))) |
| 5.0ms | (/ (* a c) a) |
| 5.0ms | (sqrt (- (* b_2 b_2) (* a c))) |
| 5.0ms | (- (* b_2 b_2) (* a c)) |
| 90.0ms | (+ (- b_2) (sqrt (- (* b_2 b_2) (* a c)))) |
| 75.0ms | (sqrt (- (* b_2 b_2) (* a c))) |
| 42.0ms | (- (* b_2 b_2) (* a c)) |
| 10.0ms | (/ (* a c) a) |
| 526.0ms | (sqrt (- (* (* b_2 b_2) (* b_2 b_2)) (* (* a c) (* a c)))) |
| 482.0ms | (sqrt (- (pow (* b_2 b_2) 3) (pow (* a c) 3))) |
| 227.0ms | (- b_2 (* 1/2 (/ (* a c) b_2))) |
| 162.0ms | (- (* 1/2 (/ (* a c) b_2)) b_2) |
| 110.0ms | (- (* 1/2 (/ (* a c) b_2)) (* 2 b_2)) |
10 alts after pruning (9 fresh and 1 done)
Merged error: 7.0b
Found 4 expressions with local error:
| 22.2b | (sqrt (- (* b_2 b_2) (* a c))) |
| 0.7b | (+ (- 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))))) |
| 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 |
| 14.0ms | (+ (- b_2) (sqrt (- (* b_2 b_2) (* a c)))) |
| 11.0ms | (/ c (+ (- 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)) |
| 234.0ms | (/ c (+ (- b_2) (sqrt (- (* b_2 b_2) (* a c))))) |
| 84.0ms | (+ (- b_2) (sqrt (- (* b_2 b_2) (* a c)))) |
| 73.0ms | (sqrt (- (* b_2 b_2) (* a c))) |
| 45.0ms | (- (* b_2 b_2) (* a c)) |
| 435.0ms | (sqrt (- (pow (* b_2 b_2) 3) (pow (* a c) 3))) |
| 405.0ms | (sqrt (- (* (* b_2 b_2) (* b_2 b_2)) (* (* a c) (* a c)))) |
| 395.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)))))) |
| 190.0ms | (- b_2 (* 1/2 (/ (* a c) b_2))) |
| 97.0ms | (- (* 1/2 (/ (* a c) b_2)) (* 2 b_2)) |
11 alts after pruning (9 fresh and 2 done)
Merged error: 7.0b
93.9% (1.5b remaining)
Error of 7.3b against oracle of 5.8b and baseline of 29.8b
| 1042× | 1.5s | (body real 2560) |
| 5899× | 1.4s | (body real 80) |
| 882× | 1.1s | (body real 1280) |
| 2924× | 589.0ms | (body nan 80) |
| 11626× | 478.0ms | (pre true 80) |
| 446× | 460.0ms | (body real 640) |
| 116× | 256.0ms | (body real 5120) |
| 218× | 173.0ms | (body real 320) |
| 99× | 43.0ms | (body real 160) |