



Bits error versus x
Results
| Original | 58.7 |
|---|---|
| Target | 0.5 |
| Herbie | 0.5 |
Initial program 58.7
Taylor expanded around 0 0.5
Simplified0.5
Final simplification0.5
herbie shell --seed 2019002
(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: 5.6s)Debug log
1 calls. Slowest were:
| 4.0ms | (- (exp x) 1) |
1 alts after pruning (1 fresh and 0 done)
Merged error: 58.7b
Found 1 expressions with local error:
| 8.0b | (- (exp x) 1) |
1 calls. Slowest were:
| 3.0ms | (- (exp x) 1) |
1 calls. Slowest were:
| 11.0ms | (- (exp x) 1) |
4 calls. Slowest were:
| 84.0ms | (+ x (+ (* 1/6 (pow x 3)) (* 1/2 (pow x 2)))) |
| 3.0ms | (- (exp x) 1) |
| 3.0ms | (- (exp x) 1) |
3 alts after pruning (3 fresh and 0 done)
Merged error: 0.0b
Found 2 expressions with local error:
| 0.3b | (* x 1/6) |
| 0.0b | (* (+ (* x 1/6) 1/2) (* x x)) |
2 calls. Slowest were:
| 6.0ms | (* (+ (* x 1/6) 1/2) (* x x)) |
| 0.0ms | (* x 1/6) |
2 calls. Slowest were:
| 38.0ms | (* (+ (* x 1/6) 1/2) (* x x)) |
| 8.0ms | (* x 1/6) |
13 calls. Slowest were:
| 527.0ms | (* (- (* (* x 1/6) (* x 1/6)) (* 1/2 1/2)) (* x x)) |
| 383.0ms | (* (+ (pow (* x 1/6) 3) (pow 1/2 3)) (* x x)) |
| 82.0ms | (* (* (* (+ (* x 1/6) 1/2) (+ (* x 1/6) 1/2)) (+ (* x 1/6) 1/2)) (* (* (* x x) (* x x)) (* x x))) |
3 alts after pruning (2 fresh and 1 done)
Merged error: 0.0b
Found 1 expressions with local error:
| 8.0b | (- (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:
| 109.0ms | (+ x (+ (* 1/6 (pow x 3)) (* 1/2 (pow x 2)))) |
| 4.0ms | (+ (sqrt (exp x)) 1) |
| 3.0ms | (- (exp x) 1) |
3 alts after pruning (1 fresh and 2 done)
Merged error: 0.0b
Found 2 expressions with local error:
| 8.0b | (log (exp (- (exp x) 1))) |
| 8.0b | (- (exp x) 1) |
2 calls. Slowest were:
| 13.0ms | (log (exp (- (exp x) 1))) |
| 5.0ms | (- (exp x) 1) |
2 calls. Slowest were:
| 12.0ms | (log (exp (- (exp x) 1))) |
| 11.0ms | (- (exp x) 1) |
18 calls. Slowest were:
| 116.0ms | (+ x (+ (* 1/6 (pow x 3)) (* 1/2 (pow x 2)))) |
| 103.0ms | (+ x (+ (* 1/6 (pow x 3)) (* 1/2 (pow x 2)))) |
| 19.0ms | (log (* (cbrt (exp (- (exp x) 1))) (cbrt (exp (- (exp x) 1))))) |
3 alts after pruning (0 fresh and 3 done)
Merged error: 0.0b
0% (0.4b remaining)
Error of 0.5b against oracle of 0.0b and baseline of 0.5b