



Bits error versus x
Results
| Original | 58.8 |
|---|---|
| Target | 0.4 |
| Herbie | 0.4 |
Initial program 58.8
Taylor expanded around 0 0.4
Simplified0.4
Final simplification0.4
herbie shell --seed 2019008
(FPCore (x)
:name "expm1 (example 3.7)"
:pre (< -0.00017 x)
:herbie-target
(* x (+ (+ 1 (/ x 2)) (/ (* x x) 6)))
(- (exp x) 1))
Time bar (total: 4.3s)Debug log
1 calls. Slowest were:
| 4.0ms | (- (exp x) 1) |
1 alts after pruning (1 fresh and 0 done)
Merged error: 58.9b
Found 1 expressions with local error:
| 6.9b | (- (exp x) 1) |
1 calls. Slowest were:
| 6.0ms | (- (exp x) 1) |
1 calls. Slowest were:
| 20.0ms | (- (exp x) 1) |
4 calls. Slowest were:
| 93.0ms | (+ x (+ (* 1/6 (pow x 3)) (* 1/2 (pow x 2)))) |
| 4.0ms | (+ (sqrt (exp x)) 1) |
| 3.0ms | (- (exp x) 1) |
2 alts after pruning (1 fresh and 1 done)
Merged error: 0.0b
Found 2 expressions with local error:
| 0.4b | (* x 1/6) |
| 0.0b | (* (+ (* x 1/6) 1/2) (* x x)) |
2 calls. Slowest were:
| 11.0ms | (* (+ (* x 1/6) 1/2) (* x x)) |
| 0.0ms | (* x 1/6) |
2 calls. Slowest were:
| 26.0ms | (* (+ (* x 1/6) 1/2) (* x x)) |
| 10.0ms | (* x 1/6) |
13 calls. Slowest were:
| 477.0ms | (* (- (* (* x 1/6) (* x 1/6)) (* 1/2 1/2)) (* x x)) |
| 352.0ms | (* (+ (pow (* x 1/6) 3) (pow 1/2 3)) (* x x)) |
| 89.0ms | (* (* (* (+ (* x 1/6) 1/2) (+ (* x 1/6) 1/2)) (+ (* x 1/6) 1/2)) (* (* (* x x) (* x x)) (* x x))) |
2 alts after pruning (0 fresh and 2 done)
Merged error: 0.0b
0% (0.4b remaining)
Error of 0.4b against oracle of 0.0b and baseline of 0.4b