


Bits error versus x



Bits error versus eps
Results
if x < 342.69244116077795Initial 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
rmApplied add-sqr-sqrt1.2
Applied sqrt-prod2.7
Applied add-sqr-sqrt1.2
Applied times-frac1.2
if 342.69244116077795 < x Initial program 0
rmApplied add-cbrt-cube0
Final simplification0.9
herbie shell --seed 2018362
(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: 4.0m)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:
| 25.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) |
4 calls. Slowest were:
| 144.0ms | (- (* (+ 1 (/ 1 eps)) (exp (- (* (- 1 eps) x)))) (* (- (/ 1 eps) 1) (exp (- (* (+ 1 eps) x))))) |
| 27.0ms | (* (+ 1 (/ 1 eps)) (exp (- (* (- 1 eps) x)))) |
| 19.0ms | (* (- 1 eps) x) |
| 13.0ms | (* (+ 1 eps) x) |
204 calls. Slowest were:
| 746.0ms | (* (- 1 (/ 1 eps)) (+ (* (/ 1 eps) (/ 1 eps)) (+ (* 1 1) (* (/ 1 eps) 1)))) |
| 650.0ms | (* (* (* (+ 1 (/ 1 eps)) (+ 1 (/ 1 eps))) (+ 1 (/ 1 eps))) (* (* (exp (- (* (- 1 eps) x))) (exp (- (* (- 1 eps) x)))) (exp (- (* (- 1 eps) x))))) |
| 630.0ms | (* (exp (* (- 1 eps) x)) (+ (* (/ 1 eps) (/ 1 eps)) (+ (* 1 1) (* (/ 1 eps) 1)))) |
2 alts after pruning (2 fresh and 0 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:
| 15.0ms | (- (+ (* 2/3 (pow x 3)) 2) (pow x 2)) |
| 1.0ms | (* 2/3 (pow x 3)) |
2 calls. Slowest were:
| 26.0ms | (* 2/3 (pow x 3)) |
| 25.0ms | (- (+ (* 2/3 (pow x 3)) 2) (pow x 2)) |
17 calls. Slowest were:
| 130.0ms | (/ (exp (+ (* 2/3 (pow x 3)) 2)) (exp (pow x 2))) |
| 85.0ms | (- (+ (* 2/3 (pow x 3)) 2) (pow x 2)) |
| 74.0ms | (- (+ (* 2/3 (pow x 3)) 2) (pow x 2)) |
2 alts after pruning (2 fresh and 0 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:
| 116.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))))) |
| 31.0ms | (- (pow (+ (* 2/3 (pow x 3)) 2) 3) (pow (pow x 2) 3)) |
| 3.0ms | (* (pow x 2) (pow x 2)) |
4 calls. Slowest were:
| 62.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))))) |
| 54.0ms | (- (pow (+ (* 2/3 (pow x 3)) 2) 3) (pow (pow x 2) 3)) |
| 31.0ms | (pow (pow x 2) 3) |
| 24.0ms | (* (pow x 2) (pow x 2)) |
269 calls. Slowest were:
| 750.0ms | (/ (- (pow (sqrt (+ (* 2/3 (pow x 3)) 2)) 3) (pow x 3)) (sqrt (+ (* (+ (* 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)))))) |
| 602.0ms | (/ (+ (sqrt (pow (+ (* 2/3 (pow x 3)) 2) 3)) (sqrt (pow (pow x 2) 3))) (sqrt (+ (* (+ (* 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)))))) |
| 600.0ms | (/ (- (sqrt (pow (+ (* 2/3 (pow x 3)) 2) 3)) (sqrt (pow (pow x 2) 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)))))) |
3 alts after pruning (3 fresh and 0 done)
Merged error: 0.1b
Found 4 expressions with local error:
| 12.7b | (/ (* (cbrt (- (pow (+ (* 2/3 (pow x 3)) 2) 3) (pow (pow x 2) 3))) (cbrt (- (pow (+ (* 2/3 (pow x 3)) 2) 3) (pow (pow x 2) 3)))) (sqrt (+ (* (+ (* 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 | (/ (cbrt (- (pow (+ (* 2/3 (pow x 3)) 2) 3) (pow (pow x 2) 3))) (sqrt (+ (* (+ (* 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)) |
| 12.4b | (- (pow (+ (* 2/3 (pow x 3)) 2) 3) (pow (pow x 2) 3)) |
4 calls. Slowest were:
| 65.0ms | (/ (cbrt (- (pow (+ (* 2/3 (pow x 3)) 2) 3) (pow (pow x 2) 3))) (sqrt (+ (* (+ (* 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)))))) |
| 59.0ms | (/ (* (cbrt (- (pow (+ (* 2/3 (pow x 3)) 2) 3) (pow (pow x 2) 3))) (cbrt (- (pow (+ (* 2/3 (pow x 3)) 2) 3) (pow (pow x 2) 3)))) (sqrt (+ (* (+ (* 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 (+ (* 2/3 (pow x 3)) 2) 3) (pow (pow x 2) 3)) |
4 calls. Slowest were:
| 154.0ms | (/ (cbrt (- (pow (+ (* 2/3 (pow x 3)) 2) 3) (pow (pow x 2) 3))) (sqrt (+ (* (+ (* 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)))))) |
| 146.0ms | (/ (* (cbrt (- (pow (+ (* 2/3 (pow x 3)) 2) 3) (pow (pow x 2) 3))) (cbrt (- (pow (+ (* 2/3 (pow x 3)) 2) 3) (pow (pow x 2) 3)))) (sqrt (+ (* (+ (* 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)))))) |
| 45.0ms | (- (pow (+ (* 2/3 (pow x 3)) 2) 3) (pow (pow x 2) 3)) |
| 39.0ms | (- (pow (+ (* 2/3 (pow x 3)) 2) 3) (pow (pow x 2) 3)) |
523 calls. Slowest were:
| 929.0ms | (/ (cbrt (+ (sqrt (pow (+ (* 2/3 (pow x 3)) 2) 3)) (pow x 3))) (sqrt (sqrt (+ (* (+ (* 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))))))) |
| 823.0ms | (/ (cbrt (- (pow (sqrt (+ (* 2/3 (pow x 3)) 2)) 3) (pow x 3))) (sqrt (+ (* (+ (* 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)))))) |
| 681.0ms | (sqrt (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)))))) |
3 alts after pruning (3 fresh and 0 done)
Merged error: 0.1b
97% (0.5b remaining)
Error of 0.9b against oracle of 0.4b and baseline of 16.1b