



Bits error versus x
Results
| Original | 39.9 |
|---|---|
| Target | 39.5 |
| Herbie | 0.4 |
Initial program 39.9
Initial simplification0.4
rmApplied div-inv0.4
Final simplification0.4
herbie shell --seed 2018362 +o rules:numerics
(FPCore (x)
:name "expq2 (section 3.11)"
:herbie-target
(/ 1 (- 1 (exp (- x))))
(/ (exp x) (- (exp x) 1)))
Time bar (total: 12.7s)Debug log
1 alts after pruning (1 fresh and 0 done)
Merged error: 0.7b
Found 1 expressions with local error:
| 0.7b | (/ (exp x) (expm1 x)) |
1 calls. Slowest were:
| 3.0ms | (/ (exp x) (expm1 x)) |
1 calls. Slowest were:
| 43.0ms | (/ (exp x) (expm1 x)) |
28 calls. Slowest were:
| 86.0ms | (/ (* (* (exp x) (exp x)) (exp x)) (* (* (expm1 x) (expm1 x)) (expm1 x))) |
| 19.0ms | (+ (* 1/12 x) (+ (/ 1 x) 1/2)) |
| 13.0ms | (/ (* (cbrt (exp x)) (cbrt (exp x))) (* (cbrt (expm1 x)) (cbrt (expm1 x)))) |
3 alts after pruning (3 fresh and 0 done)
Merged error: 0.7b
Found 2 expressions with local error:
| 0.7b | (* (exp x) (/ 1 (expm1 x))) |
| 0.0b | (/ 1 (expm1 x)) |
2 calls. Slowest were:
| 8.0ms | (* (exp x) (/ 1 (expm1 x))) |
| 2.0ms | (/ 1 (expm1 x)) |
2 calls. Slowest were:
| 29.0ms | (* (exp x) (/ 1 (expm1 x))) |
| 17.0ms | (/ 1 (expm1 x)) |
22 calls. Slowest were:
| 573.0ms | (* (* (* (exp x) (exp x)) (exp x)) (* (* (/ 1 (expm1 x)) (/ 1 (expm1 x))) (/ 1 (expm1 x)))) |
| 24.0ms | (- (+ (* 1/12 x) (/ 1 x)) 1/2) |
| 14.0ms | (* (exp x) (/ 1 (expm1 x))) |
3 alts after pruning (2 fresh and 1 done)
Merged error: 0.7b
Found 4 expressions with local error:
| 0.7b | (/ (sqrt (exp x)) (/ (expm1 x) (sqrt (exp x)))) |
| 0.6b | (/ (expm1 x) (sqrt (exp x))) |
| 0.2b | (sqrt (exp x)) |
| 0.2b | (sqrt (exp x)) |
4 calls. Slowest were:
| 6.0ms | (/ (sqrt (exp x)) (/ (expm1 x) (sqrt (exp x)))) |
| 4.0ms | (/ (expm1 x) (sqrt (exp x))) |
| 1.0ms | (sqrt (exp x)) |
4 calls. Slowest were:
| 66.0ms | (/ (expm1 x) (sqrt (exp x))) |
| 21.0ms | (/ (sqrt (exp x)) (/ (expm1 x) (sqrt (exp x)))) |
| 11.0ms | (sqrt (exp x)) |
| 11.0ms | (sqrt (exp x)) |
363 calls. Slowest were:
| 511.0ms | (/ (sqrt 1) (/ (* (cbrt (expm1 x)) (cbrt (expm1 x))) (* (cbrt (sqrt (exp x))) (cbrt (sqrt (exp x)))))) |
| 469.0ms | (/ (* (cbrt (sqrt (exp x))) (cbrt (sqrt (exp x)))) (/ 1 (* (cbrt (sqrt (exp x))) (cbrt (sqrt (exp x)))))) |
| 438.0ms | (/ (* (* (sqrt (exp x)) (sqrt (exp x))) (sqrt (exp x))) (* (* (/ (expm1 x) (sqrt (exp x))) (/ (expm1 x) (sqrt (exp x)))) (/ (expm1 x) (sqrt (exp x))))) |
3 alts after pruning (1 fresh and 2 done)
Merged error: 0.7b
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:
| 7.0ms | (+ (fma 1/12 x 1/2) (/ 1 x)) |
| 0.0ms | (fma 1/12 x 1/2) |
2 calls. Slowest were:
| 24.0ms | (fma 1/12 x 1/2) |
| 13.0ms | (+ (fma 1/12 x 1/2) (/ 1 x)) |
12 calls. Slowest were:
| 25.0ms | (* (exp (fma 1/12 x 1/2)) (exp (/ 1 x))) |
| 20.0ms | (+ (* 1/12 x) (+ (/ 1 x) 1/2)) |
| 11.0ms | (+ (* 1/12 x) (+ (/ 1 x) 1/2)) |
5 alts after pruning (3 fresh and 2 done)
Merged error: 0.7b
0% (0.0b remaining)
Error of 0.4b against oracle of 0.3b and baseline of 0.4b