


Bits error versus x



Bits error versus eps
if x < 2.84808728349047Initial program 38.9
Taylor expanded around 0 1.0
rmApplied flip--1.0
Taylor expanded around 0 1.0
rmApplied add-sqr-sqrt1.0
Applied associate-/l*1.0
if 2.84808728349047 < x Initial program 0.4
rmApplied prod-diff0.4
Simplified0.4
Simplified0.4
Final simplification0.9
herbie shell --seed 2019010 +o rules:numerics
(FPCore (x eps)
:name "NMSE Section 6.1 mentioned, A"
(/ (- (* (+ 1 (/ 1 eps)) (exp (- (* (- 1 eps) x)))) (* (- (/ 1 eps) 1) (exp (- (* (+ 1 eps) x))))) 2))
Time bar (total: 1.6m)Debug log
| 171.0ms | (/ (- (* (+ 1 (/ 1 eps)) (exp (- (* (- 1 eps) x)))) (* (- (/ 1 eps) 1) (exp (- (* (+ 1 eps) x))))) 2) |
1 alts after pruning (1 fresh and 0 done)
Merged error: 29.3b
Found 4 expressions with local error:
| 0.5b | (- (* (+ 1 (/ 1 eps)) (exp (- (* (- 1 eps) x)))) (* (- (/ 1 eps) 1) (exp (- (* (+ 1 eps) x))))) |
| 0.0b | (* (+ 1 eps) x) |
| 0.0b | (* (+ 1 (/ 1 eps)) (exp (- (* (- 1 eps) x)))) |
| 0.0b | (* (- 1 eps) x) |
| 81× | frac-sub |
| 76× | frac-times |
| 76× | exp-neg |
| 57× | exp-diff |
| 57× | neg-sub0 |
| 42× | associate-*l/ |
| 38× | associate-*r/ |
| 31× | flip-+ |
| 31× | flip3-+ |
| 29× | flip-- |
| 29× | flip3-- |
| 19× | un-div-inv |
| 9× | associate-*l* |
| 8× | add-cube-cbrt |
| 8× | *-un-lft-identity |
| 8× | add-sqr-sqrt |
| 6× | add-log-exp |
| 6× | add-cbrt-cube |
| 6× | pow1 |
| 5× | add-exp-log |
| 4× | log1p-expm1-u |
| 4× | expm1-log1p-u |
| 3× | *-commutative |
| 3× | associate-*r* |
| 1× | cbrt-unprod |
| 1× | prod-exp |
| 1× | pow-prod-down |
| 1× | prod-diff |
| 1× | diff-log |
| 1× | fma-neg |
| 1× | sub-neg |
| 25.0ms | (- (* (+ 1 (/ 1 eps)) (exp (- (* (- 1 eps) x)))) (* (- (/ 1 eps) 1) (exp (- (* (+ 1 eps) x))))) |
| 12.0ms | (* (+ 1 (/ 1 eps)) (exp (- (* (- 1 eps) x)))) |
| 3.0ms | (* (- 1 eps) x) |
| 2.0ms | (* (+ 1 eps) x) |
| 141.0ms | (- (* (+ 1 (/ 1 eps)) (exp (- (* (- 1 eps) x)))) (* (- (/ 1 eps) 1) (exp (- (* (+ 1 eps) x))))) |
| 24.0ms | (* (+ 1 (/ 1 eps)) (exp (- (* (- 1 eps) x)))) |
| 22.0ms | (* (- 1 eps) x) |
| 13.0ms | (* (+ 1 eps) x) |
| 1.0s | (- (* (* (+ (pow 1 3) (pow (/ 1 eps) 3)) (exp 0)) (* (+ (/ 1 eps) 1) (exp (* (+ 1 eps) x)))) (* (* (+ (* 1 1) (- (* (/ 1 eps) (/ 1 eps)) (* 1 (/ 1 eps)))) (exp (* (- 1 eps) x))) (* (- (* (/ 1 eps) (/ 1 eps)) (* 1 1)) (exp 0)))) |
| 984.0ms | (- (* (* (- (* 1 1) (* (/ 1 eps) (/ 1 eps))) 1) (* (+ (/ 1 eps) 1) (exp (* (+ 1 eps) x)))) (* (* (- 1 (/ 1 eps)) (exp (* (- 1 eps) x))) (* (- (* (/ 1 eps) (/ 1 eps)) (* 1 1)) (exp 0)))) |
| 865.0ms | (- (* (* (- (* 1 1) (* (/ 1 eps) (/ 1 eps))) (exp 0)) (* (+ (/ 1 eps) 1) (exp (* (+ 1 eps) x)))) (* (* (- 1 (/ 1 eps)) (exp (* (- 1 eps) x))) (* (- (* (/ 1 eps) (/ 1 eps)) (* 1 1)) (exp 0)))) |
| 859.0ms | (* (* (+ (* 1 1) (- (* (/ 1 eps) (/ 1 eps)) (* 1 (/ 1 eps)))) (exp (* (- 1 eps) x))) (+ (* (/ 1 eps) (/ 1 eps)) (+ (* 1 1) (* (/ 1 eps) 1)))) |
| 853.0ms | (- (* (* (- (* 1 1) (* (/ 1 eps) (/ 1 eps))) (exp 0)) (* (+ (/ 1 eps) 1) (exp (* (+ 1 eps) x)))) (* (* (- 1 (/ 1 eps)) (exp (* (- 1 eps) x))) (* (- (* (/ 1 eps) (/ 1 eps)) (* 1 1)) 1))) |
2 alts after pruning (2 fresh and 0 done)
Merged error: 0.3b
Found 2 expressions with local error:
| 5.8b | (- (+ (* 2/3 (pow x 3)) 2) (pow x 2)) |
| 0.1b | (* 2/3 (pow x 3)) |
| 14× | add-sqr-sqrt |
| 13× | *-un-lft-identity |
| 12× | prod-diff |
| 11× | add-cube-cbrt |
| 5× | associate-*r* |
| 4× | add-log-exp |
| 4× | unpow2 |
| 3× | fma-neg |
| 2× | difference-of-squares |
| 2× | log1p-expm1-u |
| 2× | add-exp-log |
| 2× | add-cbrt-cube |
| 2× | pow1 |
| 2× | expm1-log1p-u |
| 1× | distribute-lft-out-- |
| 1× | flip-- |
| 1× | *-commutative |
| 1× | associate--l+ |
| 1× | unpow3 |
| 1× | diff-log |
| 1× | flip3-- |
| 1× | sub-neg |
| 1× | cube-mult |
| 25.0ms | (- (+ (* 2/3 (pow x 3)) 2) (pow x 2)) |
| 2.0ms | (* 2/3 (pow x 3)) |
| 19.0ms | (- (+ (* 2/3 (pow x 3)) 2) (pow x 2)) |
| 16.0ms | (* 2/3 (pow x 3)) |
| 221.0ms | (fma (sqrt (+ (* 2/3 (pow x 3)) 2)) (sqrt (+ (* 2/3 (pow x 3)) 2)) (- (* (pow x 2) 1))) |
| 218.0ms | (fma 1 (+ (* 2/3 (pow x 3)) 2) (- (* (pow x 2) 1))) |
| 173.0ms | (fma 1 (+ (* 2/3 (pow x 3)) 2) (- (* (sqrt (pow x 2)) (sqrt (pow x 2))))) |
| 172.0ms | (fma 1 (+ (* 2/3 (pow x 3)) 2) (- (* x x))) |
| 145.0ms | (fma (sqrt (+ (* 2/3 (pow x 3)) 2)) (sqrt (+ (* 2/3 (pow x 3)) 2)) (- (* (sqrt (pow x 2)) (sqrt (pow x 2))))) |
4 alts after pruning (4 fresh and 0 done)
Merged error: 0.3b
Found 4 expressions with local error:
| 10.3b | (/ (- (* (+ (* 2/3 (pow x 3)) 2) (+ (* 2/3 (pow x 3)) 2)) (* (pow x 2) (pow x 2))) (+ (+ (* 2/3 (pow x 3)) 2) (pow x 2))) |
| 9.2b | (- (* (+ (* 2/3 (pow x 3)) 2) (+ (* 2/3 (pow x 3)) 2)) (* (pow x 2) (pow x 2))) |
| 0.1b | (* 2/3 (pow x 3)) |
| 0.1b | (* 2/3 (pow x 3)) |
| 26× | *-un-lft-identity |
| 16× | add-cube-cbrt |
| 16× | times-frac |
| 16× | add-sqr-sqrt |
| 10× | associate-*r* |
| 6× | difference-of-squares |
| 6× | add-log-exp |
| 6× | add-exp-log |
| 6× | add-cbrt-cube |
| 5× | distribute-lft-out |
| 4× | associate-/l* |
| 4× | log1p-expm1-u |
| 4× | associate-/r* |
| 4× | pow1 |
| 4× | expm1-log1p-u |
| 2× | associate-/l/ |
| 2× | flip-- |
| 2× | *-commutative |
| 2× | associate-/r/ |
| 2× | associate--l+ |
| 2× | unpow3 |
| 2× | flip3-- |
| 2× | cube-mult |
| 1× | div-inv |
| 1× | flip-+ |
| 1× | prod-diff |
| 1× | div-exp |
| 1× | div-sub |
| 1× | diff-log |
| 1× | fma-neg |
| 1× | flip3-+ |
| 1× | distribute-lft-in |
| 1× | frac-2neg |
| 1× | sub-neg |
| 1× | clear-num |
| 1× | cbrt-undiv |
| 1× | distribute-rgt-in |
| 64.0ms | (/ (- (* (+ (* 2/3 (pow x 3)) 2) (+ (* 2/3 (pow x 3)) 2)) (* (pow x 2) (pow x 2))) (+ (+ (* 2/3 (pow x 3)) 2) (pow x 2))) |
| 14.0ms | (- (* (+ (* 2/3 (pow x 3)) 2) (+ (* 2/3 (pow x 3)) 2)) (* (pow x 2) (pow x 2))) |
| 1.0ms | (* 2/3 (pow x 3)) |
| 1.0ms | (* 2/3 (pow x 3)) |
| 42.0ms | (/ (- (* (+ (* 2/3 (pow x 3)) 2) (+ (* 2/3 (pow x 3)) 2)) (* (pow x 2) (pow x 2))) (+ (+ (* 2/3 (pow x 3)) 2) (pow x 2))) |
| 37.0ms | (- (* (+ (* 2/3 (pow x 3)) 2) (+ (* 2/3 (pow x 3)) 2)) (* (pow x 2) (pow x 2))) |
| 27.0ms | (* 2/3 (pow x 3)) |
| 26.0ms | (* 2/3 (pow x 3)) |
| 654.0ms | (/ (* (cbrt (- (* (+ (* 2/3 (pow x 3)) 2) (+ (* 2/3 (pow x 3)) 2)) (* (pow x 2) (pow x 2)))) (cbrt (- (* (+ (* 2/3 (pow x 3)) 2) (+ (* 2/3 (pow x 3)) 2)) (* (pow x 2) (pow x 2))))) 1) |
| 576.0ms | (/ (- (* (+ (* 2/3 (pow x 3)) 2) (+ (* 2/3 (pow x 3)) 2)) (* (pow x 2) (pow x 2))) (+ (+ (* 2/3 (pow x 3)) 2) (pow x 2))) |
| 522.0ms | (/ (- (* (+ (* 2/3 (pow x 3)) 2) (+ (* 2/3 (pow x 3)) 2)) (* (pow x 2) (pow x 2))) (+ (+ (* 2/3 (pow x 3)) 2) (pow x 2))) |
| 512.0ms | (+ (* (+ (* 2/3 (pow x 3)) 2) (+ (* 2/3 (pow x 3)) 2)) (- (* (pow x 2) (pow x 2)) (* (+ (* 2/3 (pow x 3)) 2) (pow x 2)))) |
| 489.0ms | (fma (+ (* 2/3 (pow x 3)) 2) (+ (* 2/3 (pow x 3)) 2) (- (* (pow x 2) (pow x 2)))) |
3 alts after pruning (3 fresh and 0 done)
Merged error: 0.3b
Found 4 expressions with local error:
| 11.4b | (/ (- (+ (* 8/3 (pow x 3)) 4) (pow x 4)) (+ (+ (* 2/3 (pow x 3)) 2) (pow x 2))) |
| 10.3b | (- (+ (* 8/3 (pow x 3)) 4) (pow x 4)) |
| 0.1b | (* 2/3 (pow x 3)) |
| 0.1b | (* 8/3 (pow x 3)) |
| 48× | *-un-lft-identity |
| 36× | add-sqr-sqrt |
| 24× | add-cube-cbrt |
| 20× | times-frac |
| 10× | associate-*r* |
| 9× | prod-diff |
| 6× | difference-of-squares |
| 6× | add-log-exp |
| 6× | distribute-lft-out-- |
| 6× | distribute-lft-out |
| 6× | add-exp-log |
| 6× | add-cbrt-cube |
| 5× | associate-/l* |
| 4× | log1p-expm1-u |
| 4× | associate-/r* |
| 4× | pow1 |
| 4× | expm1-log1p-u |
| 3× | fma-neg |
| 2× | associate-/l/ |
| 2× | flip-- |
| 2× | *-commutative |
| 2× | associate-/r/ |
| 2× | unpow3 |
| 2× | flip3-- |
| 2× | cube-mult |
| 1× | div-inv |
| 1× | flip-+ |
| 1× | associate--l+ |
| 1× | div-exp |
| 1× | div-sub |
| 1× | diff-log |
| 1× | flip3-+ |
| 1× | frac-2neg |
| 1× | sub-neg |
| 1× | clear-num |
| 1× | cbrt-undiv |
| 40.0ms | (/ (- (+ (* 8/3 (pow x 3)) 4) (pow x 4)) (+ (+ (* 2/3 (pow x 3)) 2) (pow x 2))) |
| 30.0ms | (- (+ (* 8/3 (pow x 3)) 4) (pow x 4)) |
| 2.0ms | (* 8/3 (pow x 3)) |
| 2.0ms | (* 2/3 (pow x 3)) |
| 44.0ms | (/ (- (+ (* 8/3 (pow x 3)) 4) (pow x 4)) (+ (+ (* 2/3 (pow x 3)) 2) (pow x 2))) |
| 28.0ms | (* 8/3 (pow x 3)) |
| 25.0ms | (* 2/3 (pow x 3)) |
| 21.0ms | (- (+ (* 8/3 (pow x 3)) 4) (pow x 4)) |
| 590.0ms | (+ (* (+ (* 2/3 (pow x 3)) 2) (+ (* 2/3 (pow x 3)) 2)) (- (* (pow x 2) (pow x 2)) (* (+ (* 2/3 (pow x 3)) 2) (pow x 2)))) |
| 221.0ms | (- (* (+ (* 8/3 (pow x 3)) 4) (+ (* 8/3 (pow x 3)) 4)) (* (pow x 4) (pow x 4))) |
| 220.0ms | (/ (* (* (- (+ (* 8/3 (pow x 3)) 4) (pow x 4)) (- (+ (* 8/3 (pow x 3)) 4) (pow x 4))) (- (+ (* 8/3 (pow x 3)) 4) (pow x 4))) (* (* (+ (+ (* 2/3 (pow x 3)) 2) (pow x 2)) (+ (+ (* 2/3 (pow x 3)) 2) (pow x 2))) (+ (+ (* 2/3 (pow x 3)) 2) (pow x 2)))) |
| 192.0ms | (- (pow (+ (* 8/3 (pow x 3)) 4) 3) (pow (pow x 4) 3)) |
| 171.0ms | (/ (sqrt (- (+ (* 8/3 (pow x 3)) 4) (pow x 4))) (sqrt (+ (+ (* 2/3 (pow x 3)) 2) (pow x 2)))) |
4 alts after pruning (4 fresh and 0 done)
Merged error: 0.3b
96.8% (0.5b remaining)
Error of 0.9b against oracle of 0.3b and baseline of 16.7b