


Bits error versus a



Bits error versus b_2



Bits error versus c
Results
if b_2 < -2.1201191588883625e+58Initial program 56.8
Taylor expanded around -inf 3.9
if -2.1201191588883625e+58 < b_2 < -4.1629424800051737e-277Initial program 31.5
rmApplied flip--31.7
Applied associate-/l/36.2
Simplified22.2
rmApplied times-frac9.3
Simplified9.3
Simplified9.3
if -4.1629424800051737e-277 < b_2 < 1.4678790591984611e+23Initial program 10.1
Taylor expanded around -inf 10.1
if 1.4678790591984611e+23 < b_2 Initial program 32.7
rmApplied flip--59.1
Applied associate-/l/60.0
Simplified60.1
Taylor expanded around 0 6.3
Final simplification7.3
herbie shell --seed 2019022 +o rules:numerics
(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: 18.3s)Debug log
| 48.0ms | 24× | body | 1280 | valid |
| 27.0ms | 32× | body | 2560 | valid |
| 27.0ms | 188× | body | 80 | valid |
| 11.0ms | 96× | body | 80 | nan |
| 8.0ms | 17× | body | 640 | valid |
| 5.0ms | 6× | body | 5120 | valid |
| 3.0ms | 8× | body | 320 | valid |
| 2.0ms | 6× | body | 160 | valid |
| 45.0ms | (/ (- (- b_2) (sqrt (- (* b_2 b_2) (* a c)))) a) |
1 alts after pruning (1 fresh and 0 done)
Merged error: 33.7b
Found 4 expressions with local error:
| 22.4b | (sqrt (- (* b_2 b_2) (* a c))) |
| 1.1b | (- (- 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) |
| 30× | add-sqr-sqrt |
| 25× | prod-diff |
| 25× | *-un-lft-identity |
| 21× | add-cube-cbrt |
| 17× | sqrt-prod |
| 8× | add-log-exp |
| 7× | neg-mul-1 |
| 6× | associate-/l* |
| 5× | fma-neg |
| 4× | difference-of-squares |
| 4× | flip-- |
| 4× | log1p-expm1-u |
| 4× | add-exp-log |
| 4× | add-cbrt-cube |
| 4× | flip3-- |
| 4× | pow1 |
| 4× | expm1-log1p-u |
| 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- |
| 34.0ms | (/ (- (- b_2) (sqrt (- (* b_2 b_2) (* a c)))) a) |
| 13.0ms | (- (- b_2) (sqrt (- (* b_2 b_2) (* a c)))) |
| 8.0ms | (sqrt (- (* b_2 b_2) (* a c))) |
| 4.0ms | (- (* b_2 b_2) (* a c)) |
| 81.0ms | (sqrt (- (* b_2 b_2) (* a c))) |
| 62.0ms | (- (- b_2) (sqrt (- (* b_2 b_2) (* a c)))) |
| 47.0ms | (/ (- (- b_2) (sqrt (- (* b_2 b_2) (* a c)))) a) |
| 27.0ms | (- (* b_2 b_2) (* a c)) |
| 497.0ms | (sqrt (- (* (* b_2 b_2) (* b_2 b_2)) (* (* a c) (* a c)))) |
| 322.0ms | (sqrt (- (pow (* b_2 b_2) 3) (pow (* a c) 3))) |
| 273.0ms | (- (* (- b_2) (- b_2)) (* (sqrt (- (* b_2 b_2) (* a c))) (sqrt (- (* b_2 b_2) (* a c))))) |
| 191.0ms | (- (pow (- b_2) 3) (pow (sqrt (- (* b_2 b_2) (* a c))) 3)) |
| 115.0ms | (- b_2 (* 1/2 (/ (* a c) b_2))) |
13 alts after pruning (13 fresh and 0 done)
Merged error: 5.5b
Found 4 expressions with local error:
| 22.4b | (sqrt (- (* b_2 b_2) (* a c))) |
| 14.0b | (/ (* a c) (* a (+ (- b_2) (sqrt (- (* b_2 b_2) (* a c)))))) |
| 2.1b | (+ (- b_2) (sqrt (- (* b_2 b_2) (* a c)))) |
| 0.4b | (- (* b_2 b_2) (* a c)) |
| 8× | add-log-exp |
| 8× | *-un-lft-identity |
| 7× | add-sqr-sqrt |
| 6× | add-cube-cbrt |
| 6× | add-exp-log |
| 6× | add-cbrt-cube |
| 4× | log1p-expm1-u |
| 4× | fma-def |
| 4× | pow1 |
| 4× | expm1-log1p-u |
| 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× | prod-diff |
| 1× | div-exp |
| 1× | diff-log |
| 1× | fma-neg |
| 1× | pow1/2 |
| 1× | times-frac |
| 1× | frac-2neg |
| 1× | sub-neg |
| 1× | sum-log |
| 1× | neg-mul-1 |
| 1× | associate-/r* |
| 1× | clear-num |
| 1× | rem-sqrt-square |
| 1× | +-commutative |
| 1× | cbrt-undiv |
| 1× | neg-sub0 |
| 12.0ms | (/ (* a c) (* a (+ (- b_2) (sqrt (- (* b_2 b_2) (* a c)))))) |
| 9.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)) |
| 111.0ms | (/ (* a c) (* a (+ (- b_2) (sqrt (- (* b_2 b_2) (* a c)))))) |
| 58.0ms | (+ (- b_2) (sqrt (- (* b_2 b_2) (* a c)))) |
| 37.0ms | (sqrt (- (* b_2 b_2) (* a c))) |
| 25.0ms | (- (* b_2 b_2) (* a c)) |
| 567.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)))))) |
| 513.0ms | (sqrt (- (* (* b_2 b_2) (* b_2 b_2)) (* (* a c) (* a c)))) |
| 407.0ms | (- (log (* a c)) (log (* a (+ (- b_2) (sqrt (- (* b_2 b_2) (* a c))))))) |
| 357.0ms | (sqrt (- (pow (* b_2 b_2) 3) (pow (* a c) 3))) |
| 231.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))))))) |
9 alts after pruning (8 fresh and 1 done)
Merged error: 5.5b
Found 4 expressions with local error:
| 22.4b | (sqrt (- (* b_2 b_2) (* a c))) |
| 2.1b | (- (sqrt (- (* b_2 b_2) (* a c))) b_2) |
| 0.4b | (- (* b_2 b_2) (* a c)) |
| 0.1b | (/ c (- (sqrt (- (* b_2 b_2) (* a c))) b_2)) |
| 9× | add-sqr-sqrt |
| 8× | add-cube-cbrt |
| 8× | *-un-lft-identity |
| 7× | fma-neg |
| 6× | add-log-exp |
| 6× | sqrt-prod |
| 4× | flip-- |
| 4× | log1p-expm1-u |
| 4× | add-exp-log |
| 4× | add-cbrt-cube |
| 4× | flip3-- |
| 4× | pow1 |
| 4× | expm1-log1p-u |
| 3× | associate-/r* |
| 2× | associate-/r/ |
| 2× | sqrt-div |
| 2× | sub-neg |
| 1× | div-inv |
| 1× | prod-diff |
| 1× | diff-log |
| 1× | pow1/2 |
| 1× | frac-2neg |
| 1× | clear-num |
| 1× | rem-sqrt-square |
| 15.0ms | (- (sqrt (- (* b_2 b_2) (* a c))) b_2) |
| 5.0ms | (sqrt (- (* b_2 b_2) (* a c))) |
| 5.0ms | (/ c (- (sqrt (- (* b_2 b_2) (* a c))) b_2)) |
| 2.0ms | (- (* b_2 b_2) (* a c)) |
| 114.0ms | (/ c (- (sqrt (- (* b_2 b_2) (* a c))) b_2)) |
| 51.0ms | (- (sqrt (- (* b_2 b_2) (* a c))) b_2) |
| 35.0ms | (sqrt (- (* b_2 b_2) (* a c))) |
| 25.0ms | (- (* b_2 b_2) (* a c)) |
| 482.0ms | (sqrt (- (* (* b_2 b_2) (* b_2 b_2)) (* (* a c) (* a c)))) |
| 282.0ms | (sqrt (- (pow (* b_2 b_2) 3) (pow (* a c) 3))) |
| 211.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))) |
| 121.0ms | (- b_2 (* 1/2 (/ (* a c) b_2))) |
| 77.0ms | (- (* 1/2 (/ (* a c) b_2)) b_2) |
9 alts after pruning (7 fresh and 2 done)
Merged error: 5.5b
Found 4 expressions with local error:
| 22.4b | (sqrt (- (* b_2 b_2) (* a c))) |
| 2.1b | (- (sqrt (- (* b_2 b_2) (* a c))) b_2) |
| 0.4b | (- (* b_2 b_2) (* a c)) |
| 0.2b | (* c (/ 1 (- (sqrt (- (* b_2 b_2) (* a c))) b_2))) |
| 9× | add-sqr-sqrt |
| 8× | add-cube-cbrt |
| 8× | *-un-lft-identity |
| 7× | fma-neg |
| 6× | add-log-exp |
| 6× | sqrt-prod |
| 6× | associate-*r* |
| 4× | flip-- |
| 4× | log1p-expm1-u |
| 4× | add-exp-log |
| 4× | add-cbrt-cube |
| 4× | flip3-- |
| 4× | pow1 |
| 4× | expm1-log1p-u |
| 2× | associate-/r/ |
| 2× | sqrt-div |
| 2× | sub-neg |
| 1× | div-inv |
| 1× | *-commutative |
| 1× | un-div-inv |
| 1× | associate-*r/ |
| 1× | prod-diff |
| 1× | diff-log |
| 1× | pow1/2 |
| 1× | rem-sqrt-square |
| 13.0ms | (- (sqrt (- (* b_2 b_2) (* a c))) b_2) |
| 6.0ms | (* c (/ 1 (- (sqrt (- (* b_2 b_2) (* a c))) b_2))) |
| 4.0ms | (- (* b_2 b_2) (* a c)) |
| 3.0ms | (sqrt (- (* b_2 b_2) (* a c))) |
| 143.0ms | (* c (/ 1 (- (sqrt (- (* b_2 b_2) (* a c))) b_2))) |
| 52.0ms | (sqrt (- (* b_2 b_2) (* a c))) |
| 42.0ms | (- (sqrt (- (* b_2 b_2) (* a c))) b_2) |
| 20.0ms | (- (* b_2 b_2) (* a c)) |
| 472.0ms | (sqrt (- (* (* b_2 b_2) (* b_2 b_2)) (* (* a c) (* a c)))) |
| 306.0ms | (sqrt (- (pow (* b_2 b_2) 3) (pow (* a c) 3))) |
| 278.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))) |
| 123.0ms | (- b_2 (* 1/2 (/ (* a c) b_2))) |
| 72.0ms | (- (* 1/2 (/ (* a c) b_2)) b_2) |
9 alts after pruning (6 fresh and 3 done)
Merged error: 5.5b
92.3% (1.8b remaining)
Error of 7.3b against oracle of 5.5b and baseline of 29.2b
| 1.1s | 5851× | body | 80 | valid |
| 893.0ms | 1068× | body | 2560 | valid |
| 637.0ms | 932× | body | 1280 | valid |
| 393.0ms | 2970× | body | 80 | nan |
| 176.0ms | 444× | body | 640 | valid |
| 89.0ms | 124× | body | 5120 | valid |
| 61.0ms | 201× | body | 320 | valid |
| 23.0ms | 110× | body | 160 | valid |