


Bits error versus a



Bits error versus b_2



Bits error versus c
if b_2 < -3.665285315139032e+125Initial program 50.8
Simplified50.8
Taylor expanded around -inf 3.1
Simplified3.1
if -3.665285315139032e+125 < b_2 < 1.5010094954833426e-229Initial program 9.9
Simplified9.9
Taylor expanded around inf 9.9
if 1.5010094954833426e-229 < b_2 < 2.5651495066978512e+63Initial program 33.1
Simplified33.1
rmApplied flip--33.2
Applied associate-/l/37.1
Simplified20.9
rmApplied distribute-frac-neg20.9
Simplified7.8
if 2.5651495066978512e+63 < b_2 Initial program 56.5
Simplified56.5
rmApplied flip--56.6
Applied associate-/l/57.2
Simplified29.5
rmApplied distribute-frac-neg29.5
Simplified26.7
Taylor expanded around inf 6.9
Simplified3.4
Final simplification6.8
herbie shell --seed 2019016 +o rules:numerics
(FPCore (a b_2 c)
:name "quad2p (problem 3.2.1, positive)"
(/ (+ (- b_2) (sqrt (- (* b_2 b_2) (* a c)))) a))
Time bar (total: 20.3s)Debug log
| 378× | (pre true 80) |
| 186× | (body real 80) |
| 93× | (body nan 80) |
| 36× | (body real 2560) |
| 30× | (body real 1280) |
| 17× | (body real 640) |
| 9× | (body real 160) |
| 5× | (body real 320) |
| 2× | (body real 5120) |
| 50.0ms | (/ (+ (- b_2) (sqrt (- (* b_2 b_2) (* a c)))) a) |
1 alts after pruning (1 fresh and 0 done)
Merged error: 34.8b
Found 4 expressions with local error:
| 23.0b | (sqrt (- (* b_2 b_2) (* a c))) |
| 2.2b | (- (sqrt (- (* b_2 b_2) (* a c))) b_2) |
| 1.2b | (- (* b_2 b_2) (* a c)) |
| 0.1b | (/ (- (sqrt (- (* b_2 b_2) (* a c))) b_2) a) |
| 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-/l* |
| 2× | associate-/l/ |
| 2× | sqrt-div |
| 2× | sub-neg |
| 1× | div-inv |
| 1× | prod-diff |
| 1× | div-sub |
| 1× | diff-log |
| 1× | pow1/2 |
| 1× | frac-2neg |
| 1× | clear-num |
| 1× | rem-sqrt-square |
| 824.0ms | (- (* b_2 b_2) (* a c)) |
| 43.0ms | (/ (- (sqrt (- (* b_2 b_2) (* a c))) b_2) a) |
| 16.0ms | (- (sqrt (- (* b_2 b_2) (* a c))) b_2) |
| 4.0ms | (sqrt (- (* b_2 b_2) (* a c))) |
| 69.0ms | (- (sqrt (- (* b_2 b_2) (* a c))) b_2) |
| 66.0ms | (/ (- (sqrt (- (* b_2 b_2) (* a c))) b_2) a) |
| 63.0ms | (sqrt (- (* b_2 b_2) (* a c))) |
| 29.0ms | (- (* b_2 b_2) (* a c)) |
| 466.0ms | (sqrt (- (* (* b_2 b_2) (* b_2 b_2)) (* (* a c) (* a c)))) |
| 407.0ms | (- (* (sqrt (- (* b_2 b_2) (* a c))) (sqrt (- (* b_2 b_2) (* a c)))) (* b_2 b_2)) |
| 309.0ms | (sqrt (- (pow (* b_2 b_2) 3) (pow (* a c) 3))) |
| 168.0ms | (- b_2 (* 1/2 (/ (* a c) b_2))) |
| 121.0ms | (- (pow (sqrt (- (* b_2 b_2) (* a c))) 3) (pow b_2 3)) |
10 alts after pruning (10 fresh and 0 done)
Merged error: 5.0b
Found 4 expressions with local error:
| 23.0b | (sqrt (- (* b_2 b_2) (* a c))) |
| 16.1b | (/ (- (* a c)) (* a (+ (sqrt (- (* b_2 b_2) (* a c))) b_2))) |
| 1.2b | (+ (sqrt (- (* b_2 b_2) (* a c))) b_2) |
| 1.2b | (- (* b_2 b_2) (* a c)) |
| 10× | add-sqr-sqrt |
| 9× | add-cube-cbrt |
| 9× | *-un-lft-identity |
| 6× | add-log-exp |
| 6× | associate-/l* |
| 6× | sqrt-prod |
| 6× | add-exp-log |
| 6× | add-cbrt-cube |
| 6× | times-frac |
| 6× | fma-def |
| 4× | log1p-expm1-u |
| 4× | pow1 |
| 4× | expm1-log1p-u |
| 2× | flip-- |
| 2× | flip-+ |
| 2× | associate-/r/ |
| 2× | associate-*r/ |
| 2× | sqrt-div |
| 2× | flip3-- |
| 2× | flip3-+ |
| 2× | distribute-rgt-neg-in |
| 2× | neg-mul-1 |
| 2× | distribute-lft-neg-in |
| 1× | div-inv |
| 1× | distribute-frac-neg |
| 1× | prod-diff |
| 1× | div-exp |
| 1× | div-sub |
| 1× | diff-log |
| 1× | fma-neg |
| 1× | pow1/2 |
| 1× | frac-2neg |
| 1× | sub-neg |
| 1× | associate-/r* |
| 1× | clear-num |
| 1× | rem-sqrt-square |
| 1× | +-commutative |
| 1× | cbrt-undiv |
| 1× | neg-sub0 |
| 9.0ms | (/ (- (* a c)) (* a (+ (sqrt (- (* b_2 b_2) (* a c))) b_2))) |
| 9.0ms | (+ (sqrt (- (* b_2 b_2) (* a c))) b_2) |
| 4.0ms | (sqrt (- (* b_2 b_2) (* a c))) |
| 4.0ms | (- (* b_2 b_2) (* a c)) |
| 126.0ms | (/ (- (* a c)) (* a (+ (sqrt (- (* b_2 b_2) (* a c))) b_2))) |
| 66.0ms | (sqrt (- (* b_2 b_2) (* a c))) |
| 60.0ms | (+ (sqrt (- (* b_2 b_2) (* a c))) b_2) |
| 33.0ms | (- (* b_2 b_2) (* a c)) |
| 522.0ms | (sqrt (- (* (* b_2 b_2) (* b_2 b_2)) (* (* a c) (* a c)))) |
| 467.0ms | (/ (* (* (- (* a c)) (- (* a c))) (- (* a c))) (* (* (* a (+ (sqrt (- (* b_2 b_2) (* a c))) b_2)) (* a (+ (sqrt (- (* b_2 b_2) (* a c))) b_2))) (* a (+ (sqrt (- (* b_2 b_2) (* a c))) b_2)))) |
| 379.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))) |
| 339.0ms | (sqrt (- (pow (* b_2 b_2) 3) (pow (* a c) 3))) |
| 247.0ms | (/ (* a c) (* a (+ (sqrt (- (* b_2 b_2) (* a c))) b_2))) |
10 alts after pruning (10 fresh and 0 done)
Merged error: 5.0b
Found 4 expressions with local error:
| 23.0b | (sqrt (- (* b_2 b_2) (* a c))) |
| 1.2b | (+ b_2 (sqrt (- (* b_2 b_2) (* a c)))) |
| 1.2b | (- (* b_2 b_2) (* a c)) |
| 0.1b | (/ c (+ b_2 (sqrt (- (* b_2 b_2) (* a c))))) |
| 7× | add-sqr-sqrt |
| 6× | add-log-exp |
| 6× | add-cube-cbrt |
| 6× | *-un-lft-identity |
| 4× | log1p-expm1-u |
| 4× | add-exp-log |
| 4× | add-cbrt-cube |
| 4× | pow1 |
| 4× | expm1-log1p-u |
| 3× | sqrt-prod |
| 3× | associate-/r* |
| 2× | flip-- |
| 2× | flip-+ |
| 2× | associate-/r/ |
| 2× | sqrt-div |
| 2× | flip3-- |
| 2× | flip3-+ |
| 1× | div-inv |
| 1× | prod-diff |
| 1× | diff-log |
| 1× | fma-neg |
| 1× | pow1/2 |
| 1× | frac-2neg |
| 1× | sub-neg |
| 1× | clear-num |
| 1× | rem-sqrt-square |
| 1× | +-commutative |
| 6.0ms | (sqrt (- (* b_2 b_2) (* a c))) |
| 4.0ms | (- (* b_2 b_2) (* a c)) |
| 3.0ms | (+ b_2 (sqrt (- (* b_2 b_2) (* a c)))) |
| 3.0ms | (/ c (+ b_2 (sqrt (- (* b_2 b_2) (* a c))))) |
| 135.0ms | (/ c (+ b_2 (sqrt (- (* b_2 b_2) (* a c))))) |
| 56.0ms | (+ b_2 (sqrt (- (* b_2 b_2) (* a c)))) |
| 47.0ms | (sqrt (- (* b_2 b_2) (* a c))) |
| 20.0ms | (- (* b_2 b_2) (* a c)) |
| 399.0ms | (sqrt (- (* (* b_2 b_2) (* b_2 b_2)) (* (* a c) (* a c)))) |
| 353.0ms | (sqrt (- (pow (* b_2 b_2) 3) (pow (* a c) 3))) |
| 209.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)))))) |
| 125.0ms | (- (* 2 b_2) (* 1/2 (/ (* a c) b_2))) |
| 114.0ms | (- b_2 (* 1/2 (/ (* a c) b_2))) |
8 alts after pruning (7 fresh and 1 done)
Merged error: 4.9b
Found 4 expressions with local error:
| 23.0b | (sqrt (- (* b_2 b_2) (* a c))) |
| 10.2b | (/ (* a c) (+ (sqrt (- (* b_2 b_2) (* a c))) b_2)) |
| 3.5b | (* (/ -1 a) (/ (* a c) (+ (sqrt (- (* b_2 b_2) (* a c))) b_2))) |
| 1.2b | (+ (sqrt (- (* b_2 b_2) (* a c))) b_2) |
| 13× | add-sqr-sqrt |
| 12× | add-cube-cbrt |
| 12× | *-un-lft-identity |
| 11× | add-exp-log |
| 11× | add-cbrt-cube |
| 9× | associate-*r* |
| 6× | sqrt-prod |
| 6× | times-frac |
| 6× | fma-def |
| 6× | pow1 |
| 4× | add-log-exp |
| 4× | log1p-expm1-u |
| 4× | associate-/r/ |
| 4× | associate-*l* |
| 4× | expm1-log1p-u |
| 3× | div-inv |
| 3× | flip-+ |
| 3× | flip3-+ |
| 3× | associate-/r* |
| 2× | cbrt-unprod |
| 2× | prod-exp |
| 2× | div-exp |
| 2× | sqrt-div |
| 2× | cbrt-undiv |
| 1× | associate-/l* |
| 1× | flip-- |
| 1× | *-commutative |
| 1× | associate-*r/ |
| 1× | associate-*l/ |
| 1× | pow-prod-down |
| 1× | pow1/2 |
| 1× | flip3-- |
| 1× | frac-2neg |
| 1× | clear-num |
| 1× | rem-sqrt-square |
| 1× | +-commutative |
| 1× | frac-times |
| 16.0ms | (/ (* a c) (+ (sqrt (- (* b_2 b_2) (* a c))) b_2)) |
| 15.0ms | (+ (sqrt (- (* b_2 b_2) (* a c))) b_2) |
| 14.0ms | (* (/ -1 a) (/ (* a c) (+ (sqrt (- (* b_2 b_2) (* a c))) b_2))) |
| 6.0ms | (sqrt (- (* b_2 b_2) (* a c))) |
| 158.0ms | (/ (* a c) (+ (sqrt (- (* b_2 b_2) (* a c))) b_2)) |
| 142.0ms | (* (/ -1 a) (/ (* a c) (+ (sqrt (- (* b_2 b_2) (* a c))) b_2))) |
| 48.0ms | (sqrt (- (* b_2 b_2) (* a c))) |
| 40.0ms | (+ (sqrt (- (* b_2 b_2) (* a c))) b_2) |
| 389.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))) |
| 389.0ms | (sqrt (- (pow (* b_2 b_2) 3) (pow (* a c) 3))) |
| 383.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))) |
| 364.0ms | (sqrt (- (* (* b_2 b_2) (* b_2 b_2)) (* (* a c) (* a c)))) |
| 289.0ms | (+ (log (/ -1 a)) (- (log (* a c)) (log (+ (sqrt (- (* b_2 b_2) (* a c))) b_2)))) |
8 alts after pruning (6 fresh and 2 done)
Merged error: 4.9b
95.3% (1.1b remaining)
Error of 6.8b against oracle of 5.6b and baseline of 29.6b
| 11497× | (pre true 80) |
| 5928× | (body real 80) |
| 2743× | (body nan 80) |
| 1015× | (body real 2560) |
| 886× | (body real 1280) |
| 456× | (body real 640) |
| 225× | (body real 320) |
| 126× | (body real 160) |
| 118× | (body real 5120) |