


Bits error versus x



Bits error versus eps
if x < 354.06473683693855Initial program 39.0
Taylor expanded around 0 1.3
rmApplied *-un-lft-identity1.3
Applied add-sqr-sqrt2.3
Applied prod-diff2.3
Simplified1.3
Simplified1.3
rmApplied log1p-expm1-u1.3
if 354.06473683693855 < x Initial program 0.1
Taylor expanded around inf 0.1
Final simplification1.0
herbie shell --seed 2019016 +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.3m)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) |
| 525.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 |
| 4× | log1p-expm1-u |
| 4× | expm1-log1p-u |
| 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× | prod-diff |
| 1× | diff-log |
| 1× | fma-neg |
| 1× | sub-neg |
| 27.0ms | (- (* (+ 1 (/ 1 eps)) (exp (- (* (- 1 eps) x)))) (* (- (/ 1 eps) 1) (exp (- (* (+ 1 eps) x))))) |
| 15.0ms | (* (+ 1 (/ 1 eps)) (exp (- (* (- 1 eps) x)))) |
| 7.0ms | (exp (- (* (+ 1 eps) x))) |
| 6.0ms | (exp (- (* (- 1 eps) x))) |
| 113.0ms | (- (* (+ 1 (/ 1 eps)) (exp (- (* (- 1 eps) x)))) (* (- (/ 1 eps) 1) (exp (- (* (+ 1 eps) x))))) |
| 31.0ms | (* (+ 1 (/ 1 eps)) (exp (- (* (- 1 eps) x)))) |
| 22.0ms | (exp (- (* (+ 1 eps) x))) |
| 14.0ms | (exp (- (* (- 1 eps) x))) |
| 1.1s | (- (* (* (+ (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)))) |
| 993.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)))) |
| 877.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)))) |
| 805.0ms | (cbrt (exp (- (* (- 1 eps) x)))) |
| 795.0ms | (* (* (+ (* 1 1) (- (* (/ 1 eps) (/ 1 eps)) (* 1 (/ 1 eps)))) (exp (* (- 1 eps) x))) (+ (* (/ 1 eps) (/ 1 eps)) (+ (* 1 1) (* (/ 1 eps) 1)))) |
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)) |
| 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 |
| 15.0ms | (- (+ (* 2/3 (pow x 3)) 2) (pow x 2)) |
| 1.0ms | (* 2/3 (pow x 3)) |
| 16.0ms | (- (+ (* 2/3 (pow x 3)) 2) (pow x 2)) |
| 15.0ms | (* 2/3 (pow x 3)) |
| 241.0ms | (fma 1 (+ (* 2/3 (pow x 3)) 2) (- (* (sqrt (pow x 2)) (sqrt (pow x 2))))) |
| 201.0ms | (fma (sqrt (+ (* 2/3 (pow x 3)) 2)) (sqrt (+ (* 2/3 (pow x 3)) 2)) (- (* (pow x 2) 1))) |
| 175.0ms | (fma 1 (+ (* 2/3 (pow x 3)) 2) (- (* x x))) |
| 159.0ms | (fma 1 (+ (* 2/3 (pow x 3)) 2) (- (* (pow x 2) 1))) |
| 123.0ms | (fma (sqrt (+ (* 2/3 (pow x 3)) 2)) (sqrt (+ (* 2/3 (pow x 3)) 2)) (- (* (sqrt (pow x 2)) (sqrt (pow x 2))))) |
6 alts after pruning (6 fresh and 0 done)
Merged error: 1.0b
Found 2 expressions with local error:
| 0.1b | (fma 2/3 x -1) |
| 0.0b | (fma (* x x) (fma 2/3 x -1) 2) |
| 2× | add-log-exp |
| 2× | log1p-expm1-u |
| 2× | fma-udef |
| 2× | add-cube-cbrt |
| 2× | add-exp-log |
| 2× | add-cbrt-cube |
| 2× | *-un-lft-identity |
| 2× | pow1 |
| 2× | expm1-log1p-u |
| 2× | add-sqr-sqrt |
| 0.0ms | (fma 2/3 x -1) |
| 0.0ms | (fma (* x x) (fma 2/3 x -1) 2) |
| 21.0ms | (fma 2/3 x -1) |
| 18.0ms | (fma (* x x) (fma 2/3 x -1) 2) |
| 109.0ms | (- (+ (* 2/3 (pow x 3)) 2) (pow x 2)) |
| 99.0ms | (- (+ (* 2/3 (pow x 3)) 2) (pow x 2)) |
| 83.0ms | (- (+ (* 2/3 (pow x 3)) 2) (pow x 2)) |
| 9.0ms | (- (* 2/3 x) 1) |
| 8.0ms | (- (* 2/3 x) 1) |
6 alts after pruning (6 fresh and 0 done)
Merged error: 1.0b
Found 4 expressions with local error:
| 0.8b | (log1p (expm1 (fma 2/3 x -1))) |
| 0.1b | (fma 2/3 x -1) |
| 0.0b | (expm1 (fma 2/3 x -1)) |
| 0.0b | (fma (* x x) (log1p (expm1 (fma 2/3 x -1))) 2) |
| 5× | log1p-expm1-u |
| 4× | add-log-exp |
| 4× | add-cube-cbrt |
| 4× | add-exp-log |
| 4× | add-cbrt-cube |
| 4× | *-un-lft-identity |
| 4× | pow1 |
| 4× | expm1-log1p-u |
| 4× | add-sqr-sqrt |
| 2× | fma-udef |
| 1× | expm1-udef |
| 1× | log1p-expm1 |
| 1× | expm1-log1p |
| 1× | log1p-udef |
| 6.0ms | (expm1 (fma 2/3 x -1)) |
| 0.0ms | (log1p (expm1 (fma 2/3 x -1))) |
| 0.0ms | (fma (* x x) (log1p (expm1 (fma 2/3 x -1))) 2) |
| 0.0ms | (fma 2/3 x -1) |
| 276.0ms | (log1p (expm1 (fma 2/3 x -1))) |
| 179.0ms | (fma (* x x) (log1p (expm1 (fma 2/3 x -1))) 2) |
| 24.0ms | (expm1 (fma 2/3 x -1)) |
| 23.0ms | (fma 2/3 x -1) |
| 406.0ms | (- (+ (exp -1) (+ (* 2/3 (* x (exp -1))) (* 2/9 (* (pow x 2) (exp -1))))) 1) |
| 95.0ms | (- (+ (* 2/3 (pow x 3)) 2) (pow x 2)) |
| 76.0ms | (+ 2 (* (pow x 2) (fma 2/3 x -1))) |
| 47.0ms | (+ 2 (* (pow x 2) (fma 2/3 x -1))) |
| 18.0ms | (- (exp (fma 2/3 x -1)) 1) |
6 alts after pruning (5 fresh and 1 done)
Merged error: 1.0b
96.2% (0.6b remaining)
Error of 1.0b against oracle of 0.4b and baseline of 16.6b
| 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) |