


Bits error versus x



Bits error versus eps
Results
if x < 334.68650982699563Initial program 39.5
Taylor expanded around 0 1.1
rmApplied flip3--1.1
rmApplied add-sqr-sqrt1.1
Applied add-cube-cbrt1.1
Applied times-frac1.2
if 334.68650982699563 < x Initial program 0
Final simplification0.9
herbie shell --seed 2018362 +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: 5.1m)Debug log
2 alts after pruning (2 fresh and 0 done)
Merged error: 29.9b
Found 4 expressions with local error:
| 2.7b | (- (* (+ 1 (/ 1 eps)) (exp (- (* (- 1 eps) x)))) (* (- (/ 1 eps) 1) (exp (- (* (+ 1 eps) x))))) |
| 0.0b | (* (- 1 eps) x) |
| 0.0b | (* (+ 1 eps) x) |
| 0.0b | (* (+ 1 (/ 1 eps)) (exp (- (* (- 1 eps) x)))) |
4 calls. Slowest were:
| 22.0ms | (- (* (+ 1 (/ 1 eps)) (exp (- (* (- 1 eps) x)))) (* (- (/ 1 eps) 1) (exp (- (* (+ 1 eps) x))))) |
| 13.0ms | (* (+ 1 (/ 1 eps)) (exp (- (* (- 1 eps) x)))) |
| 3.0ms | (* (- 1 eps) x) |
4 calls. Slowest were:
| 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)))) |
| 27.0ms | (* (- 1 eps) x) |
| 22.0ms | (* (+ 1 eps) x) |
207 calls. Slowest were:
| 1.3s | (- (* (* (+ (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)))) |
| 1.1s | (- (* (* (- (* 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)))) |
| 1.0s | (- (* (* (- (* 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)))) |
3 alts after pruning (2 fresh and 1 done)
Merged error: 0.1b
Found 2 expressions with local error:
| 8.0b | (- (+ (* 2/3 (pow x 3)) 2) (pow x 2)) |
| 0.1b | (* 2/3 (pow x 3)) |
2 calls. Slowest were:
| 35.0ms | (- (+ (* 2/3 (pow x 3)) 2) (pow x 2)) |
| 2.0ms | (* 2/3 (pow x 3)) |
2 calls. Slowest were:
| 28.0ms | (* 2/3 (pow x 3)) |
| 26.0ms | (- (+ (* 2/3 (pow x 3)) 2) (pow x 2)) |
43 calls. Slowest were:
| 273.0ms | (fma 1 (+ (* 2/3 (pow x 3)) 2) (- (* (pow x 2) 1))) |
| 221.0ms | (fma 1 (+ (* 2/3 (pow x 3)) 2) (- (* (sqrt (pow x 2)) (sqrt (pow x 2))))) |
| 205.0ms | (fma 1 (+ (* 2/3 (pow x 3)) 2) (- (* x x))) |
4 alts after pruning (3 fresh and 1 done)
Merged error: 0.1b
Found 4 expressions with local error:
| 13.4b | (/ (- (pow (+ (* 2/3 (pow x 3)) 2) 3) (pow (pow x 2) 3)) (+ (* (+ (* 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))))) |
| 12.4b | (- (pow (+ (* 2/3 (pow x 3)) 2) 3) (pow (pow x 2) 3)) |
| 0.1b | (* (pow x 2) (pow x 2)) |
| 0.1b | (pow (pow x 2) 3) |
4 calls. Slowest were:
| 91.0ms | (/ (- (pow (+ (* 2/3 (pow x 3)) 2) 3) (pow (pow x 2) 3)) (+ (* (+ (* 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))))) |
| 35.0ms | (- (pow (+ (* 2/3 (pow x 3)) 2) 3) (pow (pow x 2) 3)) |
| 8.0ms | (* (pow x 2) (pow x 2)) |
4 calls. Slowest were:
| 66.0ms | (- (pow (+ (* 2/3 (pow x 3)) 2) 3) (pow (pow x 2) 3)) |
| 65.0ms | (/ (- (pow (+ (* 2/3 (pow x 3)) 2) 3) (pow (pow x 2) 3)) (+ (* (+ (* 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))))) |
| 36.0ms | (* (pow x 2) (pow x 2)) |
| 32.0ms | (pow (pow x 2) 3) |
565 calls. Slowest were:
| 1.2s | (/ (+ (pow (sqrt (+ (* 2/3 (pow x 3)) 2)) 3) (pow x 3)) (* (cbrt (+ (* (+ (* 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))))) (cbrt (+ (* (+ (* 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))))))) |
| 948.0ms | (fma (pow 1 3) (pow (+ (* 2/3 (pow x 3)) 2) 3) (- (* (pow (pow x 2) 3) 1))) |
| 934.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)))) |
4 alts after pruning (3 fresh and 1 done)
Merged error: 0.1b
Found 4 expressions with local error:
| 14.9b | (/ (fma (sqrt (fma (* 2/3 x) (* x x) 2)) (fma (* 2/3 x) (* x x) 2) (pow x 3)) (* (cbrt (fma (fma (* 2/3 x) (* x x) 2) (fma (fma x 2/3 1) (* x x) 2) (pow x 4))) (cbrt (fma (fma (* 2/3 x) (* x x) 2) (fma (fma x 2/3 1) (* x x) 2) (pow x 4))))) |
| 11.9b | (/ (- (pow (sqrt (+ (* 2/3 (pow x 3)) 2)) 3) (pow x 3)) (cbrt (+ (* (+ (* 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)))))) |
| 10.2b | (- (pow (sqrt (+ (* 2/3 (pow x 3)) 2)) 3) (pow x 3)) |
| 5.6b | (sqrt (fma (* 2/3 x) (* x x) 2)) |
4 calls. Slowest were:
| 98.0ms | (/ (- (pow (sqrt (+ (* 2/3 (pow x 3)) 2)) 3) (pow x 3)) (cbrt (+ (* (+ (* 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)))))) |
| 32.0ms | (- (pow (sqrt (+ (* 2/3 (pow x 3)) 2)) 3) (pow x 3)) |
| 11.0ms | (/ (fma (sqrt (fma (* 2/3 x) (* x x) 2)) (fma (* 2/3 x) (* x x) 2) (pow x 3)) (* (cbrt (fma (fma (* 2/3 x) (* x x) 2) (fma (fma x 2/3 1) (* x x) 2) (pow x 4))) (cbrt (fma (fma (* 2/3 x) (* x x) 2) (fma (fma x 2/3 1) (* x x) 2) (pow x 4))))) |
4 calls. Slowest were:
| 199.0ms | (/ (fma (sqrt (fma (* 2/3 x) (* x x) 2)) (fma (* 2/3 x) (* x x) 2) (pow x 3)) (* (cbrt (fma (fma (* 2/3 x) (* x x) 2) (fma (fma x 2/3 1) (* x x) 2) (pow x 4))) (cbrt (fma (fma (* 2/3 x) (* x x) 2) (fma (fma x 2/3 1) (* x x) 2) (pow x 4))))) |
| 159.0ms | (/ (- (pow (sqrt (+ (* 2/3 (pow x 3)) 2)) 3) (pow x 3)) (cbrt (+ (* (+ (* 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)))))) |
| 40.0ms | (- (pow (sqrt (+ (* 2/3 (pow x 3)) 2)) 3) (pow x 3)) |
| 27.0ms | (sqrt (fma (* 2/3 x) (* x x) 2)) |
386 calls. Slowest were:
| 1.0s | (/ (cbrt (- (pow (sqrt (+ (* 2/3 (pow x 3)) 2)) 3) (pow x 3))) (cbrt (+ (* (+ (* 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)))))) |
| 1.0s | (/ (fma (sqrt (fma (* 2/3 x) (* x x) 2)) (fma (* 2/3 x) (* x x) 2) (pow x 3)) (cbrt (fma (fma (* 2/3 x) (* x x) 2) (fma (fma x 2/3 1) (* x x) 2) (pow x 4)))) |
| 883.0ms | (/ (* (cbrt (- (pow (sqrt (+ (* 2/3 (pow x 3)) 2)) 3) (pow x 3))) (cbrt (- (pow (sqrt (+ (* 2/3 (pow x 3)) 2)) 3) (pow x 3)))) (cbrt (* (cbrt (+ (* (+ (* 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))))) (cbrt (+ (* (+ (* 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)))))))) |
4 alts after pruning (3 fresh and 1 done)
Merged error: 0.1b
97.1% (0.4b remaining)
Error of 0.9b against oracle of 0.4b and baseline of 16.1b