


Bits error versus a



Bits error versus b_2



Bits error versus c
if b_2 < -4.1146996886759634e+123Initial program 49.0
Simplified49.0
Taylor expanded around -inf 3.2
Simplified3.2
if -4.1146996886759634e+123 < b_2 < 5.770837317334599e-298Initial program 9.1
Simplified9.1
rmApplied div-sub9.1
if 5.770837317334599e-298 < b_2 < 2.1684855184037787e+58Initial program 30.0
Simplified30.0
rmApplied div-inv30.1
rmApplied flip--30.2
Applied associate-*l/30.3
Simplified16.4
Taylor expanded around -inf 9.0
Simplified9.0
rmApplied add-sqr-sqrt9.0
Applied sqrt-prod9.2
Applied fma-def9.2
if 2.1684855184037787e+58 < b_2 Initial program 56.4
Simplified56.4
rmApplied div-inv56.4
rmApplied flip--56.4
Applied associate-*l/56.4
Simplified28.0
Taylor expanded around -inf 26.6
Simplified26.6
Taylor expanded around inf 5.9
Simplified3.3
Final simplification6.7
herbie shell --seed 2019010 +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: 19.4s)Debug log
| 55.0ms | (/ (+ (- b_2) (sqrt (- (* b_2 b_2) (* a c)))) a) |
1 alts after pruning (1 fresh and 0 done)
Merged error: 32.9b
Found 4 expressions with local error:
| 22.0b | (sqrt (- (* b_2 b_2) (* a c))) |
| 1.7b | (- (sqrt (- (* b_2 b_2) (* a c))) b_2) |
| 0.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 |
| 30.0ms | (/ (- (sqrt (- (* b_2 b_2) (* a c))) b_2) a) |
| 12.0ms | (- (sqrt (- (* b_2 b_2) (* a c))) b_2) |
| 4.0ms | (sqrt (- (* b_2 b_2) (* a c))) |
| 2.0ms | (- (* b_2 b_2) (* a c)) |
| 52.0ms | (/ (- (sqrt (- (* b_2 b_2) (* a c))) b_2) a) |
| 49.0ms | (sqrt (- (* b_2 b_2) (* a c))) |
| 41.0ms | (- (sqrt (- (* b_2 b_2) (* a c))) b_2) |
| 36.0ms | (- (* b_2 b_2) (* a c)) |
| 522.0ms | (- (* (sqrt (- (* b_2 b_2) (* a c))) (sqrt (- (* b_2 b_2) (* a c)))) (* b_2 b_2)) |
| 469.0ms | (sqrt (- (* (* b_2 b_2) (* b_2 b_2)) (* (* a c) (* a c)))) |
| 370.0ms | (sqrt (- (pow (* b_2 b_2) 3) (pow (* a c) 3))) |
| 132.0ms | (- (pow (sqrt (- (* b_2 b_2) (* a c))) 3) (pow b_2 3)) |
| 90.0ms | (- b_2 (* 1/2 (/ (* a c) b_2))) |
8 alts after pruning (8 fresh and 0 done)
Merged error: 6.3b
Found 4 expressions with local error:
| 22.0b | (sqrt (- (* b_2 b_2) (* a c))) |
| 1.7b | (- (sqrt (- (* b_2 b_2) (* a c))) b_2) |
| 0.2b | (- (* b_2 b_2) (* a c)) |
| 0.2b | (* (- (sqrt (- (* b_2 b_2) (* a c))) b_2) (/ 1 a)) |
| 10× | add-sqr-sqrt |
| 9× | add-cube-cbrt |
| 9× | *-un-lft-identity |
| 7× | fma-neg |
| 6× | add-log-exp |
| 6× | sqrt-prod |
| 6× | add-exp-log |
| 6× | add-cbrt-cube |
| 6× | pow1 |
| 5× | flip-- |
| 5× | flip3-- |
| 4× | log1p-expm1-u |
| 4× | associate-*r* |
| 4× | expm1-log1p-u |
| 3× | associate-*l* |
| 2× | associate-*l/ |
| 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× | prod-diff |
| 1× | diff-log |
| 1× | pow1/2 |
| 1× | rem-sqrt-square |
| 29.0ms | (* (- (sqrt (- (* b_2 b_2) (* a c))) b_2) (/ 1 a)) |
| 13.0ms | (- (sqrt (- (* b_2 b_2) (* a c))) b_2) |
| 3.0ms | (sqrt (- (* b_2 b_2) (* a c))) |
| 2.0ms | (- (* b_2 b_2) (* a c)) |
| 83.0ms | (* (- (sqrt (- (* b_2 b_2) (* a c))) b_2) (/ 1 a)) |
| 61.0ms | (sqrt (- (* b_2 b_2) (* a c))) |
| 46.0ms | (- (sqrt (- (* b_2 b_2) (* a c))) b_2) |
| 21.0ms | (- (* b_2 b_2) (* a c)) |
| 622.0ms | (* (- (* (sqrt (- (* b_2 b_2) (* a c))) (sqrt (- (* b_2 b_2) (* a c)))) (* b_2 b_2)) 1) |
| 471.0ms | (sqrt (- (* (* b_2 b_2) (* b_2 b_2)) (* (* a c) (* a c)))) |
| 456.0ms | (* (* (* (- (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))) b_2)) (* (* (/ 1 a) (/ 1 a)) (/ 1 a))) |
| 374.0ms | (* (- (pow (sqrt (- (* b_2 b_2) (* a c))) 3) (pow b_2 3)) (/ 1 a)) |
| 317.0ms | (sqrt (- (pow (* b_2 b_2) 3) (pow (* a c) 3))) |
8 alts after pruning (7 fresh and 1 done)
Merged error: 6.2b
Found 4 expressions with local error:
| 22.0b | (sqrt (- (* b_2 b_2) (* a c))) |
| 14.3b | (/ (fma a (- c) 0) a) |
| 0.4b | (+ (sqrt (- (* b_2 b_2) (* a c))) b_2) |
| 0.2b | (- (* b_2 b_2) (* a c)) |
| 9× | add-sqr-sqrt |
| 8× | add-cube-cbrt |
| 8× | *-un-lft-identity |
| 6× | add-log-exp |
| 6× | sqrt-prod |
| 6× | fma-def |
| 4× | log1p-expm1-u |
| 4× | add-exp-log |
| 4× | add-cbrt-cube |
| 4× | pow1 |
| 4× | expm1-log1p-u |
| 3× | associate-/l* |
| 2× | flip-- |
| 2× | sqrt-div |
| 2× | flip3-- |
| 1× | div-inv |
| 1× | flip-+ |
| 1× | prod-diff |
| 1× | diff-log |
| 1× | fma-neg |
| 1× | pow1/2 |
| 1× | flip3-+ |
| 1× | frac-2neg |
| 1× | sub-neg |
| 1× | clear-num |
| 1× | rem-sqrt-square |
| 1× | +-commutative |
| 12.0ms | (+ (sqrt (- (* b_2 b_2) (* a c))) b_2) |
| 6.0ms | (sqrt (- (* b_2 b_2) (* a c))) |
| 3.0ms | (/ (fma a (- c) 0) a) |
| 2.0ms | (- (* b_2 b_2) (* a c)) |
| 46.0ms | (+ (sqrt (- (* b_2 b_2) (* a c))) b_2) |
| 45.0ms | (sqrt (- (* b_2 b_2) (* a c))) |
| 22.0ms | (/ (fma a (- c) 0) a) |
| 21.0ms | (- (* b_2 b_2) (* a c)) |
| 492.0ms | (sqrt (- (* (* b_2 b_2) (* b_2 b_2)) (* (* a c) (* a c)))) |
| 249.0ms | (sqrt (- (pow (* b_2 b_2) 3) (pow (* a c) 3))) |
| 156.0ms | (- (* 2 b_2) (* 1/2 (/ (* a c) b_2))) |
| 106.0ms | (- b_2 (* 1/2 (/ (* a c) b_2))) |
| 77.0ms | (- (* 1/2 (/ (* a c) b_2)) b_2) |
9 alts after pruning (8 fresh and 1 done)
Merged error: 6.2b
Found 4 expressions with local error:
| 22.0b | (sqrt (- (* b_2 b_2) (* a c))) |
| 0.4b | (+ (sqrt (- (* b_2 b_2) (* a c))) b_2) |
| 0.2b | (- (* b_2 b_2) (* a c)) |
| 0.1b | (/ (- c) (+ (sqrt (- (* b_2 b_2) (* a c))) b_2)) |
| 17× | add-sqr-sqrt |
| 16× | add-cube-cbrt |
| 16× | *-un-lft-identity |
| 12× | times-frac |
| 6× | add-log-exp |
| 6× | sqrt-prod |
| 6× | add-exp-log |
| 6× | add-cbrt-cube |
| 6× | fma-def |
| 4× | associate-/l* |
| 4× | log1p-expm1-u |
| 4× | neg-mul-1 |
| 4× | pow1 |
| 4× | expm1-log1p-u |
| 3× | associate-/r* |
| 2× | flip-- |
| 2× | flip-+ |
| 2× | associate-/r/ |
| 2× | sqrt-div |
| 2× | flip3-- |
| 2× | flip3-+ |
| 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× | clear-num |
| 1× | rem-sqrt-square |
| 1× | +-commutative |
| 1× | cbrt-undiv |
| 1× | neg-sub0 |
| 16.0ms | (/ (- c) (+ (sqrt (- (* b_2 b_2) (* a c))) b_2)) |
| 10.0ms | (+ (sqrt (- (* b_2 b_2) (* a c))) b_2) |
| 3.0ms | (sqrt (- (* b_2 b_2) (* a c))) |
| 2.0ms | (- (* b_2 b_2) (* a c)) |
| 129.0ms | (/ (- c) (+ (sqrt (- (* b_2 b_2) (* a c))) b_2)) |
| 62.0ms | (sqrt (- (* b_2 b_2) (* a c))) |
| 52.0ms | (+ (sqrt (- (* b_2 b_2) (* a c))) b_2) |
| 30.0ms | (- (* b_2 b_2) (* a c)) |
| 432.0ms | (/ (* (* (- c) (- c)) (- c)) (* (* (+ (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))) b_2))) |
| 410.0ms | (sqrt (- (* (* b_2 b_2) (* b_2 b_2)) (* (* a c) (* a c)))) |
| 371.0ms | (sqrt (- (pow (* b_2 b_2) 3) (pow (* a c) 3))) |
| 289.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))) |
| 128.0ms | (- b_2 (* 1/2 (/ (* a c) b_2))) |
8 alts after pruning (7 fresh and 1 done)
Merged error: 6.2b
94.8% (1.3b remaining)
Error of 6.7b against oracle of 5.4b and baseline of 29.4b