


Bits error versus x



Bits error versus eps
Results
if x < 354.06473683693855Initial program 39.0
Taylor expanded around 0 1.3
rmApplied add-cube-cbrt1.3
rmApplied add-cbrt-cube1.3
if 354.06473683693855 < x Initial program 0.1
Taylor expanded around -inf 0.1
Final simplification1.0
herbie shell --seed 2019016
(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.1m)Debug log
| 541× | (pre true 80) |
| 336× | (body real 80) |
| 77× | (body exit 10240) |
| 63× | (body real 1280) |
| 38× | (body real 640) |
| 16× | (body real 320) |
| 11× | (body real 160) |
| 572.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.8b
Found 4 expressions with local error:
| 2.4b | (- (* (+ 1 (/ 1 eps)) (exp (- (* (- 1 eps) x)))) (* (- (/ 1 eps) 1) (exp (- (* (+ 1 eps) x))))) |
| 0.0b | (exp (- (* (- 1 eps) x))) |
| 0.0b | (exp (- (* (+ 1 eps) x))) |
| 0.0b | (* (+ 1 (/ 1 eps)) (exp (- (* (- 1 eps) x)))) |
| 81× | frac-sub |
| 78× | exp-neg |
| 76× | frac-times |
| 59× | exp-diff |
| 59× | neg-sub0 |
| 38× | associate-*r/ |
| 38× | associate-*l/ |
| 30× | flip-+ |
| 30× | flip3-+ |
| 28× | flip-- |
| 28× | flip3-- |
| 19× | un-div-inv |
| 12× | exp-prod |
| 10× | add-log-exp |
| 8× | add-cube-cbrt |
| 8× | *-un-lft-identity |
| 8× | add-sqr-sqrt |
| 6× | add-cbrt-cube |
| 6× | pow1 |
| 5× | add-exp-log |
| 4× | rem-exp-log |
| 3× | associate-*l* |
| 3× | associate-*r* |
| 2× | neg-log |
| 2× | distribute-rgt-neg-in |
| 2× | neg-mul-1 |
| 2× | distribute-lft-neg-in |
| 1× | cbrt-unprod |
| 1× | *-commutative |
| 1× | prod-exp |
| 1× | pow-prod-down |
| 1× | diff-log |
| 1× | sub-neg |
| 27.0ms | (- (* (+ 1 (/ 1 eps)) (exp (- (* (- 1 eps) x)))) (* (- (/ 1 eps) 1) (exp (- (* (+ 1 eps) x))))) |
| 7.0ms | (* (+ 1 (/ 1 eps)) (exp (- (* (- 1 eps) x)))) |
| 6.0ms | (exp (- (* (- 1 eps) x))) |
| 5.0ms | (exp (- (* (+ 1 eps) x))) |
| 123.0ms | (- (* (+ 1 (/ 1 eps)) (exp (- (* (- 1 eps) x)))) (* (- (/ 1 eps) 1) (exp (- (* (+ 1 eps) x))))) |
| 30.0ms | (* (+ 1 (/ 1 eps)) (exp (- (* (- 1 eps) x)))) |
| 23.0ms | (exp (- (* (+ 1 eps) x))) |
| 22.0ms | (exp (- (* (- 1 eps) x))) |
| 686.0ms | (* (* (* (+ 1 (/ 1 eps)) (+ 1 (/ 1 eps))) (+ 1 (/ 1 eps))) (* (* (exp (- (* (- 1 eps) x))) (exp (- (* (- 1 eps) x)))) (exp (- (* (- 1 eps) x))))) |
| 628.0ms | (- (* (+ 1 (/ 1 eps)) (+ (/ 1 eps) 1)) (* (exp (* (- 1 eps) x)) (* (- (* (/ 1 eps) (/ 1 eps)) (* 1 1)) (exp (- (* (+ 1 eps) x)))))) |
| 616.0ms | (* (- 1 (/ 1 eps)) (+ (* (/ 1 eps) (/ 1 eps)) (+ (* 1 1) (* (/ 1 eps) 1)))) |
| 614.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)))) |
| 609.0ms | (sqrt (exp (- (* (- 1 eps) x)))) |
5 alts after pruning (5 fresh and 0 done)
Merged error: 1.0b
Found 2 expressions with local error:
| 5.4b | (- (+ (* 2/3 (pow x 3)) 2) (pow x 2)) |
| 0.1b | (* 2/3 (pow x 3)) |
| 6× | add-sqr-sqrt |
| 5× | associate-*r* |
| 5× | *-un-lft-identity |
| 4× | add-log-exp |
| 3× | add-cube-cbrt |
| 2× | difference-of-squares |
| 2× | add-exp-log |
| 2× | add-cbrt-cube |
| 2× | pow1 |
| 1× | unpow2 |
| 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)) |
| 31.0ms | (- (+ (* 2/3 (pow x 3)) 2) (pow x 2)) |
| 26.0ms | (* 2/3 (pow x 3)) |
| 84.0ms | (/ (exp (+ (* 2/3 (pow x 3)) 2)) (exp (pow x 2))) |
| 77.0ms | (- (+ (* 2/3 (pow x 3)) 2) (pow x 2)) |
| 57.0ms | (- (+ (* 2/3 (pow x 3)) 2) (pow x 2)) |
| 57.0ms | (- (+ (* 2/3 (pow x 3)) 2) (pow x 2)) |
| 57.0ms | (- (+ (* 2/3 (pow x 3)) 2) (pow x 2)) |
7 alts after pruning (7 fresh and 0 done)
Merged error: 1.0b
Found 4 expressions with local error:
| 40.1b | (cbrt (* 2/3 (pow x 3))) |
| 40.1b | (cbrt (* 2/3 (pow x 3))) |
| 40.1b | (cbrt (* 2/3 (pow x 3))) |
| 5.4b | (- (+ (* (* (cbrt (* 2/3 (pow x 3))) (cbrt (* 2/3 (pow x 3)))) (cbrt (* 2/3 (pow x 3)))) 2) (pow x 2)) |
| 7× | add-sqr-sqrt |
| 6× | add-log-exp |
| 6× | *-un-lft-identity |
| 4× | add-cube-cbrt |
| 4× | add-exp-log |
| 4× | add-cbrt-cube |
| 4× | pow1 |
| 3× | pow1/3 |
| 3× | cbrt-prod |
| 2× | difference-of-squares |
| 1× | unpow2 |
| 1× | distribute-lft-out-- |
| 1× | flip-- |
| 1× | associate--l+ |
| 1× | diff-log |
| 1× | flip3-- |
| 1× | sub-neg |
| 65.0ms | (- (+ (* (* (cbrt (* 2/3 (pow x 3))) (cbrt (* 2/3 (pow x 3)))) (cbrt (* 2/3 (pow x 3)))) 2) (pow x 2)) |
| 1.0ms | (cbrt (* 2/3 (pow x 3))) |
| 1.0ms | (cbrt (* 2/3 (pow x 3))) |
| 1.0ms | (cbrt (* 2/3 (pow x 3))) |
| 76.0ms | (cbrt (* 2/3 (pow x 3))) |
| 69.0ms | (cbrt (* 2/3 (pow x 3))) |
| 57.0ms | (- (+ (* (* (cbrt (* 2/3 (pow x 3))) (cbrt (* 2/3 (pow x 3)))) (cbrt (* 2/3 (pow x 3)))) 2) (pow x 2)) |
| 55.0ms | (cbrt (* 2/3 (pow x 3))) |
| 85.0ms | (- (+ (* 2/3 (pow x 3)) 2) (pow x 2)) |
| 79.0ms | (- (+ (* 2/3 (pow x 3)) 2) (pow x 2)) |
| 78.0ms | (/ (exp (+ (* (* (cbrt (* 2/3 (pow x 3))) (cbrt (* 2/3 (pow x 3)))) (cbrt (* 2/3 (pow x 3)))) 2)) (exp (pow x 2))) |
| 71.0ms | (- (+ (* (* (cbrt (* 2/3 (pow x 3))) (cbrt (* 2/3 (pow x 3)))) (cbrt (* 2/3 (pow x 3)))) 2) (pow x 2)) |
| 52.0ms | (- (+ (* 2/3 (pow x 3)) 2) (pow x 2)) |
6 alts after pruning (6 fresh and 0 done)
Merged error: 1.0b
Found 4 expressions with local error:
| 40.1b | (cbrt (* 2/3 (pow x 3))) |
| 40.1b | (cbrt (* 2/3 (pow x 3))) |
| 40.1b | (cbrt (* 2/3 (pow x 3))) |
| 40.1b | (cbrt (* 2/3 (pow x 3))) |
| 4× | add-log-exp |
| 4× | add-cube-cbrt |
| 4× | add-exp-log |
| 4× | pow1/3 |
| 4× | add-cbrt-cube |
| 4× | *-un-lft-identity |
| 4× | pow1 |
| 4× | add-sqr-sqrt |
| 4× | cbrt-prod |
| 2.0ms | (cbrt (* 2/3 (pow x 3))) |
| 2.0ms | (cbrt (* 2/3 (pow x 3))) |
| 2.0ms | (cbrt (* 2/3 (pow x 3))) |
| 2.0ms | (cbrt (* 2/3 (pow x 3))) |
| 96.0ms | (cbrt (* 2/3 (pow x 3))) |
| 90.0ms | (cbrt (* 2/3 (pow x 3))) |
| 75.0ms | (cbrt (* 2/3 (pow x 3))) |
| 56.0ms | (cbrt (* 2/3 (pow x 3))) |
| 17.0ms | (* -1 (* x (cbrt -2/3))) |
| 10.0ms | (* -1 (* x (cbrt -2/3))) |
| 10.0ms | (* -1 (* x (cbrt -2/3))) |
| 9.0ms | (* -1 (* x (cbrt -2/3))) |
| 2.0ms | (* x (cbrt 2/3)) |
6 alts after pruning (5 fresh and 1 done)
Merged error: 1.0b
96.3% (0.6b remaining)
Error of 1.0b against oracle of 0.4b and baseline of 16.7b
| 15985× | (pre true 80) |
| 10126× | (body real 80) |
| 1949× | (body exit 10240) |
| 1693× | (body real 1280) |
| 1274× | (body real 640) |
| 643× | (body real 320) |
| 300× | (body real 160) |