


Bits error versus x



Bits error versus eps
Results
if x < 180.4311795083586Initial program 39.0
Taylor expanded around 0 1.1
if 180.4311795083586 < x Initial program 0.1
rmApplied add-log-exp0.1
Final simplification0.8
herbie shell --seed 2019010
(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.3m)Debug log
| 544.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 |
| 3× | *-commutative |
| 3× | associate-*r* |
| 1× | cbrt-unprod |
| 1× | prod-exp |
| 1× | pow-prod-down |
| 1× | diff-log |
| 1× | sub-neg |
| 32.0ms | (- (* (+ 1 (/ 1 eps)) (exp (- (* (- 1 eps) x)))) (* (- (/ 1 eps) 1) (exp (- (* (+ 1 eps) x))))) |
| 14.0ms | (* (+ 1 (/ 1 eps)) (exp (- (* (- 1 eps) x)))) |
| 5.0ms | (* (- 1 eps) x) |
| 5.0ms | (* (+ 1 eps) x) |
| 116.0ms | (- (* (+ 1 (/ 1 eps)) (exp (- (* (- 1 eps) x)))) (* (- (/ 1 eps) 1) (exp (- (* (+ 1 eps) x))))) |
| 31.0ms | (* (+ 1 (/ 1 eps)) (exp (- (* (- 1 eps) x)))) |
| 17.0ms | (* (+ 1 eps) x) |
| 14.0ms | (* (- 1 eps) x) |
| 613.0ms | (* (* (* (+ 1 (/ 1 eps)) (+ 1 (/ 1 eps))) (+ 1 (/ 1 eps))) (* (* (exp (- (* (- 1 eps) x))) (exp (- (* (- 1 eps) x)))) (exp (- (* (- 1 eps) x))))) |
| 605.0ms | (* (- 1 (/ 1 eps)) (+ (* (/ 1 eps) (/ 1 eps)) (+ (* 1 1) (* (/ 1 eps) 1)))) |
| 591.0ms | (sqrt (exp (- (* (- 1 eps) x)))) |
| 559.0ms | (- (* (* (+ 1 (/ 1 eps)) 1) (* (+ (* (/ 1 eps) (/ 1 eps)) (+ (* 1 1) (* (/ 1 eps) 1))) (exp (* (+ 1 eps) x)))) (* (exp (* (- 1 eps) x)) (* (- (pow (/ 1 eps) 3) (pow 1 3)) (exp 0)))) |
| 553.0ms | (* (exp (* (- 1 eps) x)) (+ (/ 1 eps) 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)) |
| 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 |
| 22.0ms | (- (+ (* 2/3 (pow x 3)) 2) (pow x 2)) |
| 2.0ms | (* 2/3 (pow x 3)) |
| 31.0ms | (* 2/3 (pow x 3)) |
| 22.0ms | (- (+ (* 2/3 (pow x 3)) 2) (pow x 2)) |
| 73.0ms | (/ (exp (+ (* 2/3 (pow x 3)) 2)) (exp (pow x 2))) |
| 64.0ms | (- (+ (* 2/3 (pow x 3)) 2) (pow x 2)) |
| 59.0ms | (- (+ (* 2/3 (pow x 3)) 2) (pow x 2)) |
| 43.0ms | (- (+ (* 2/3 (pow x 3)) 2) (pow x 2)) |
| 42.0ms | (- (+ (* 2/3 (pow x 3)) 2) (pow x 2)) |
3 alts after pruning (2 fresh and 1 done)
Merged error: 0.3b
Found 4 expressions with local error:
| 10.5b | (cbrt (- (+ (* 2/3 (pow x 3)) 2) (pow x 2))) |
| 10.5b | (cbrt (- (+ (* 2/3 (pow x 3)) 2) (pow x 2))) |
| 10.5b | (cbrt (- (+ (* 2/3 (pow x 3)) 2) (pow x 2))) |
| 5.8b | (- (+ (* 2/3 (pow x 3)) 2) (pow x 2)) |
| 19× | add-sqr-sqrt |
| 18× | cbrt-prod |
| 15× | *-un-lft-identity |
| 8× | difference-of-squares |
| 7× | add-cube-cbrt |
| 6× | add-log-exp |
| 6× | cbrt-div |
| 4× | unpow2 |
| 4× | distribute-lft-out-- |
| 4× | flip-- |
| 4× | add-exp-log |
| 4× | add-cbrt-cube |
| 4× | flip3-- |
| 4× | pow1 |
| 3× | pow1/3 |
| 1× | associate--l+ |
| 1× | diff-log |
| 1× | sub-neg |
| 28.0ms | (- (+ (* 2/3 (pow x 3)) 2) (pow x 2)) |
| 13.0ms | (cbrt (- (+ (* 2/3 (pow x 3)) 2) (pow x 2))) |
| 12.0ms | (cbrt (- (+ (* 2/3 (pow x 3)) 2) (pow x 2))) |
| 12.0ms | (cbrt (- (+ (* 2/3 (pow x 3)) 2) (pow x 2))) |
| 85.0ms | (cbrt (- (+ (* 2/3 (pow x 3)) 2) (pow x 2))) |
| 66.0ms | (cbrt (- (+ (* 2/3 (pow x 3)) 2) (pow x 2))) |
| 53.0ms | (cbrt (- (+ (* 2/3 (pow x 3)) 2) (pow x 2))) |
| 26.0ms | (- (+ (* 2/3 (pow x 3)) 2) (pow x 2)) |
| 508.0ms | (- (+ (* 1/9 (* (pow x 3) (pow 2 1/3))) (pow 2 1/3)) (* 1/6 (* (pow x 2) (pow 2 1/3)))) |
| 444.0ms | (- (+ (* 1/9 (* (pow x 3) (pow 2 1/3))) (pow 2 1/3)) (* 1/6 (* (pow x 2) (pow 2 1/3)))) |
| 432.0ms | (- (+ (* 1/9 (* (pow x 3) (pow 2 1/3))) (pow 2 1/3)) (* 1/6 (* (pow x 2) (pow 2 1/3)))) |
| 318.0ms | (- (exp (* 1/3 (- (log -2/3) (* 3 (log (/ -1 x)))))) (+ (* 1/4 (/ (exp (* 1/3 (- (log -2/3) (* 3 (log (/ -1 x)))))) (pow x 2))) (* 1/2 (/ (exp (* 1/3 (- (log -2/3) (* 3 (log (/ -1 x)))))) x)))) |
| 311.0ms | (- (exp (* 1/3 (- (log -2/3) (* 3 (log (/ -1 x)))))) (+ (* 1/4 (/ (exp (* 1/3 (- (log -2/3) (* 3 (log (/ -1 x)))))) (pow x 2))) (* 1/2 (/ (exp (* 1/3 (- (log -2/3) (* 3 (log (/ -1 x)))))) x)))) |
4 alts after pruning (3 fresh and 1 done)
Merged error: 0.3b
Found 4 expressions with local error:
| 10.5b | (cbrt (- (+ (* 2/3 (pow x 3)) 2) (pow x 2))) |
| 10.5b | (cbrt (- (+ (* 2/3 (pow x 3)) 2) (pow x 2))) |
| 10.5b | (cbrt (- (+ (* 2/3 (pow x 3)) 2) (pow x 2))) |
| 10.5b | (cbrt (- (+ (* 2/3 (pow x 3)) 2) (pow x 2))) |
| 24× | cbrt-prod |
| 20× | add-sqr-sqrt |
| 16× | *-un-lft-identity |
| 8× | difference-of-squares |
| 8× | add-cube-cbrt |
| 8× | cbrt-div |
| 4× | add-log-exp |
| 4× | unpow2 |
| 4× | distribute-lft-out-- |
| 4× | flip-- |
| 4× | add-exp-log |
| 4× | pow1/3 |
| 4× | add-cbrt-cube |
| 4× | flip3-- |
| 4× | pow1 |
| 10.0ms | (cbrt (- (+ (* 2/3 (pow x 3)) 2) (pow x 2))) |
| 6.0ms | (cbrt (- (+ (* 2/3 (pow x 3)) 2) (pow x 2))) |
| 6.0ms | (cbrt (- (+ (* 2/3 (pow x 3)) 2) (pow x 2))) |
| 6.0ms | (cbrt (- (+ (* 2/3 (pow x 3)) 2) (pow x 2))) |
| 71.0ms | (cbrt (- (+ (* 2/3 (pow x 3)) 2) (pow x 2))) |
| 62.0ms | (cbrt (- (+ (* 2/3 (pow x 3)) 2) (pow x 2))) |
| 53.0ms | (cbrt (- (+ (* 2/3 (pow x 3)) 2) (pow x 2))) |
| 49.0ms | (cbrt (- (+ (* 2/3 (pow x 3)) 2) (pow x 2))) |
| 456.0ms | (- (+ (* 1/9 (* (pow x 3) (pow 2 1/3))) (pow 2 1/3)) (* 1/6 (* (pow x 2) (pow 2 1/3)))) |
| 411.0ms | (- (+ (* 1/9 (* (pow x 3) (pow 2 1/3))) (pow 2 1/3)) (* 1/6 (* (pow x 2) (pow 2 1/3)))) |
| 395.0ms | (- (+ (* 1/9 (* (pow x 3) (pow 2 1/3))) (pow 2 1/3)) (* 1/6 (* (pow x 2) (pow 2 1/3)))) |
| 383.0ms | (- (exp (* 1/3 (- (log -2/3) (* 3 (log (/ -1 x)))))) (+ (* 1/4 (/ (exp (* 1/3 (- (log -2/3) (* 3 (log (/ -1 x)))))) (pow x 2))) (* 1/2 (/ (exp (* 1/3 (- (log -2/3) (* 3 (log (/ -1 x)))))) x)))) |
| 378.0ms | (- (+ (* 1/9 (* (pow x 3) (pow 2 1/3))) (pow 2 1/3)) (* 1/6 (* (pow x 2) (pow 2 1/3)))) |
4 alts after pruning (3 fresh and 1 done)
Merged error: 0.3b
96.9% (0.5b remaining)
Error of 0.8b against oracle of 0.3b and baseline of 16.7b