



Bits error versus x
Results
| Original | 40.4 |
|---|---|
| Target | 39.9 |
| Herbie | 0.5 |
Initial program 40.4
Initial simplification0.5
Final simplification0.5
herbie shell --seed 2018360 +o rules:numerics
(FPCore (x)
:name "expq2 (section 3.11)"
:herbie-target
(/ 1 (- 1 (exp (- x))))
(/ (exp x) (- (exp x) 1)))
Time bar (total: 7.7s)Debug log
1 alts after pruning (1 fresh and 0 done)
Merged error: 1.0b
Found 1 expressions with local error:
| 1.0b | (/ (exp x) (expm1 x)) |
1 calls. Slowest were:
| 7.0ms | (/ (exp x) (expm1 x)) |
1 calls. Slowest were:
| 25.0ms | (/ (exp x) (expm1 x)) |
28 calls. Slowest were:
| 118.0ms | (/ (* (* (exp x) (exp x)) (exp x)) (* (* (expm1 x) (expm1 x)) (expm1 x))) |
| 21.0ms | (+ (* 1/12 x) (+ (/ 1 x) 1/2)) |
| 14.0ms | (/ (* (cbrt (exp x)) (cbrt (exp x))) (* (cbrt (expm1 x)) (cbrt (expm1 x)))) |
4 alts after pruning (3 fresh and 1 done)
Merged error: 0.9b
Found 4 expressions with local error:
| 1.0b | (/ (cbrt (exp x)) (expm1 x)) |
| 1.0b | (* (* (cbrt (exp x)) (cbrt (exp x))) (/ (cbrt (exp x)) (expm1 x))) |
| 0.0b | (* (cbrt (exp x)) (cbrt (exp x))) |
| 0.0b | (cbrt (exp x)) |
4 calls. Slowest were:
| 13.0ms | (* (* (cbrt (exp x)) (cbrt (exp x))) (/ (cbrt (exp x)) (expm1 x))) |
| 5.0ms | (* (cbrt (exp x)) (cbrt (exp x))) |
| 4.0ms | (/ (cbrt (exp x)) (expm1 x)) |
4 calls. Slowest were:
| 147.0ms | (/ (cbrt (exp x)) (expm1 x)) |
| 129.0ms | (* (cbrt (exp x)) (cbrt (exp x))) |
| 121.0ms | (cbrt (exp x)) |
| 23.0ms | (* (* (cbrt (exp x)) (cbrt (exp x))) (/ (cbrt (exp x)) (expm1 x))) |
115 calls. Slowest were:
| 421.0ms | (* (* (exp x) (exp x)) (* (* (/ (cbrt (exp x)) (expm1 x)) (/ (cbrt (exp x)) (expm1 x))) (/ (cbrt (exp x)) (expm1 x)))) |
| 281.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)))) |
| 158.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)))) |
3 alts after pruning (2 fresh and 1 done)
Merged error: 0.9b
Found 4 expressions with local error:
| 1.0b | (/ (cbrt (exp x)) (expm1 x)) |
| 1.0b | (* (cbrt (* (exp x) (exp x))) (/ (cbrt (exp x)) (expm1 x))) |
| 0.0b | (* (exp x) (exp x)) |
| 0.0b | (cbrt (* (exp x) (exp x))) |
4 calls. Slowest were:
| 16.0ms | (* (cbrt (* (exp x) (exp x))) (/ (cbrt (exp x)) (expm1 x))) |
| 7.0ms | (/ (cbrt (exp x)) (expm1 x)) |
| 7.0ms | (* (exp x) (exp x)) |
4 calls. Slowest were:
| 190.0ms | (/ (cbrt (exp x)) (expm1 x)) |
| 170.0ms | (cbrt (* (exp x) (exp x))) |
| 23.0ms | (* (cbrt (* (exp x) (exp x))) (/ (cbrt (exp x)) (expm1 x))) |
| 10.0ms | (* (exp x) (exp x)) |
101 calls. Slowest were:
| 488.0ms | (* (* (exp x) (exp x)) (* (* (/ (cbrt (exp x)) (expm1 x)) (/ (cbrt (exp x)) (expm1 x))) (/ (cbrt (exp x)) (expm1 x)))) |
| 91.0ms | (* (* (exp x) (exp x)) (/ (exp x) (* (* (expm1 x) (expm1 x)) (expm1 x)))) |
| 57.0ms | (+ (* 2 x) (+ (* 2 (pow x 2)) 1)) |
3 alts after pruning (1 fresh and 2 done)
Merged error: 0.9b
Found 2 expressions with local error:
| 0.1b | (fma 1/12 x 1/2) |
| 0.0b | (+ (fma 1/12 x 1/2) (/ 1 x)) |
2 calls. Slowest were:
| 4.0ms | (+ (fma 1/12 x 1/2) (/ 1 x)) |
| 0.0ms | (fma 1/12 x 1/2) |
2 calls. Slowest were:
| 25.0ms | (fma 1/12 x 1/2) |
| 13.0ms | (+ (fma 1/12 x 1/2) (/ 1 x)) |
12 calls. Slowest were:
| 33.0ms | (* (exp (fma 1/12 x 1/2)) (exp (/ 1 x))) |
| 12.0ms | (+ (fma 1/12 x 1/2) (/ 1 x)) |
| 10.0ms | (* (cbrt (fma 1/12 x 1/2)) (cbrt (fma 1/12 x 1/2))) |
5 alts after pruning (3 fresh and 2 done)
Merged error: 0.9b
0% (0.1b remaining)
Error of 0.5b against oracle of 0.4b and baseline of 0.5b