



Bits error versus x
Results
| Original | 39.9 |
|---|---|
| Target | 39.4 |
| Herbie | 0.5 |
Initial program 39.9
Simplified0.5
Taylor expanded around -inf 39.9
Simplified0.5
Final simplification0.5
herbie shell --seed 2019005 +o rules:numerics
(FPCore (x)
:name "expq2 (section 3.11)"
:herbie-target
(/ 1 (- 1 (exp (- x))))
(/ (exp x) (- (exp x) 1)))
Time bar (total: 9.0s)Debug log
1 calls. Slowest were:
| 3.0ms | (/ (exp x) (- (exp x) 1)) |
2 alts after pruning (2 fresh and 0 done)
Merged error: 0.3b
Found 1 expressions with local error:
| 0.3b | (/ (exp x) (expm1 x)) |
1 calls. Slowest were:
| 3.0ms | (/ (exp x) (expm1 x)) |
1 calls. Slowest were:
| 35.0ms | (/ (exp x) (expm1 x)) |
28 calls. Slowest were:
| 151.0ms | (/ (* (* (exp x) (exp x)) (exp x)) (* (* (expm1 x) (expm1 x)) (expm1 x))) |
| 22.0ms | (/ (* (cbrt (exp x)) (cbrt (exp x))) (* (cbrt (expm1 x)) (cbrt (expm1 x)))) |
| 10.0ms | (+ (* 1/12 x) (+ (/ 1 x) 1/2)) |
5 alts after pruning (5 fresh and 0 done)
Merged error: 0.2b
Found 1 expressions with local error:
| 0.3b | (/ (exp x) (expm1 x)) |
1 calls. Slowest were:
| 6.0ms | (/ (exp x) (expm1 x)) |
1 calls. Slowest were:
| 36.0ms | (/ (exp x) (expm1 x)) |
28 calls. Slowest were:
| 142.0ms | (/ (* (* (exp x) (exp x)) (exp x)) (* (* (expm1 x) (expm1 x)) (expm1 x))) |
| 20.0ms | (+ (* 1/12 x) (+ (/ 1 x) 1/2)) |
| 18.0ms | (/ (* (cbrt (exp x)) (cbrt (exp x))) (* (cbrt (expm1 x)) (cbrt (expm1 x)))) |
5 alts after pruning (4 fresh and 1 done)
Merged error: 0.2b
Found 2 expressions with local error:
| 0.2b | (* (exp x) (/ 1 (expm1 x))) |
| 0.0b | (/ 1 (expm1 x)) |
2 calls. Slowest were:
| 4.0ms | (* (exp x) (/ 1 (expm1 x))) |
| 1.0ms | (/ 1 (expm1 x)) |
2 calls. Slowest were:
| 37.0ms | (* (exp x) (/ 1 (expm1 x))) |
| 26.0ms | (/ 1 (expm1 x)) |
22 calls. Slowest were:
| 391.0ms | (* (* (* (exp x) (exp x)) (exp x)) (* (* (/ 1 (expm1 x)) (/ 1 (expm1 x))) (/ 1 (expm1 x)))) |
| 28.0ms | (- (+ (* 1/12 x) (/ 1 x)) 1/2) |
| 13.0ms | (* (exp x) (/ 1 (expm1 x))) |
5 alts after pruning (3 fresh and 2 done)
Merged error: 0.2b
Found 4 expressions with local error:
| 0.3b | (/ (cbrt (exp x)) (expm1 x)) |
| 0.3b | (* (* (cbrt (exp x)) (cbrt (exp x))) (/ (cbrt (exp x)) (expm1 x))) |
| 0.2b | (cbrt (exp x)) |
| 0.2b | (cbrt (exp x)) |
4 calls. Slowest were:
| 16.0ms | (* (* (cbrt (exp x)) (cbrt (exp x))) (/ (cbrt (exp x)) (expm1 x))) |
| 5.0ms | (/ (cbrt (exp x)) (expm1 x)) |
| 3.0ms | (cbrt (exp x)) |
4 calls. Slowest were:
| 171.0ms | (/ (cbrt (exp x)) (expm1 x)) |
| 133.0ms | (cbrt (exp x)) |
| 130.0ms | (cbrt (exp x)) |
| 35.0ms | (* (* (cbrt (exp x)) (cbrt (exp x))) (/ (cbrt (exp x)) (expm1 x))) |
98 calls. Slowest were:
| 248.0ms | (* (* (* (* (cbrt (exp x)) (cbrt (exp x))) (* (cbrt (exp x)) (cbrt (exp x)))) (* (cbrt (exp x)) (cbrt (exp x)))) (* (* (/ (cbrt (exp x)) (expm1 x)) (/ (cbrt (exp x)) (expm1 x))) (/ (cbrt (exp x)) (expm1 x)))) |
| 229.0ms | (* (* (* (* (cbrt (exp x)) (cbrt (exp x))) (* (cbrt (exp x)) (cbrt (exp x)))) (* (cbrt (exp x)) (cbrt (exp x)))) (/ (exp x) (* (* (expm1 x) (expm1 x)) (expm1 x)))) |
| 124.0ms | (* (* (exp x) (exp x)) (/ (exp x) (* (* (expm1 x) (expm1 x)) (expm1 x)))) |
5 alts after pruning (2 fresh and 3 done)
Merged error: 0.2b
0% (0.1b remaining)
Error of 0.5b against oracle of 0.4b and baseline of 0.5b