



Bits error versus x
Results
| Original | 40.2 |
|---|---|
| Target | 39.3 |
| Herbie | 0.3 |
if x < -0.00017968162493656685Initial program 0.0
rmApplied div-inv0.0
if -0.00017968162493656685 < x Initial program 60.3
Taylor expanded around 0 0.4
Final simplification0.3
herbie shell --seed 2019002
(FPCore (x)
:name "Kahan's exp quotient"
:herbie-target
(if (and (< x 1) (> x -1)) (/ (- (exp x) 1) (log (exp x))) (/ (- (exp x) 1) x))
(/ (- (exp x) 1) x))
Time bar (total: 5.5s)Debug log
1 calls. Slowest were:
| 16.0ms | (/ (- (exp x) 1) x) |
1 alts after pruning (1 fresh and 0 done)
Merged error: 43.5b
Found 2 expressions with local error:
| 4.5b | (- (exp x) 1) |
| 0.0b | (/ (- (exp x) 1) x) |
2 calls. Slowest were:
| 13.0ms | (- (exp x) 1) |
| 7.0ms | (/ (- (exp x) 1) x) |
2 calls. Slowest were:
| 34.0ms | (/ (- (exp x) 1) x) |
| 12.0ms | (- (exp x) 1) |
13 calls. Slowest were:
| 103.0ms | (+ x (+ (* 1/6 (pow x 3)) (* 1/2 (pow x 2)))) |
| 69.0ms | (* -1 (/ (- 1 (exp x)) x)) |
| 38.0ms | (+ (* 1/2 x) (+ (* 1/6 (pow x 2)) 1)) |
2 alts after pruning (2 fresh and 0 done)
Merged error: 0b
Found 1 expressions with local error:
| 0.2b | (* 1/6 (pow x 2)) |
1 calls. Slowest were:
| 3.0ms | (* 1/6 (pow x 2)) |
1 calls. Slowest were:
| 24.0ms | (* 1/6 (pow x 2)) |
6 calls. Slowest were:
| 7.0ms | (* 1/6 (pow x 2)) |
| 7.0ms | (* 1/6 (pow x 2)) |
| 7.0ms | (* 1/6 (pow x 2)) |
2 alts after pruning (1 fresh and 1 done)
Merged error: 0b
Found 2 expressions with local error:
| 4.5b | (- (exp x) 1) |
| 0.0b | (* (- (exp x) 1) (/ 1 x)) |
2 calls. Slowest were:
| 15.0ms | (* (- (exp x) 1) (/ 1 x)) |
| 6.0ms | (- (exp x) 1) |
2 calls. Slowest were:
| 28.0ms | (* (- (exp x) 1) (/ 1 x)) |
| 12.0ms | (- (exp x) 1) |
23 calls. Slowest were:
| 389.0ms | (* (* (* (- (exp x) 1) (- (exp x) 1)) (- (exp x) 1)) (* (* (/ 1 x) (/ 1 x)) (/ 1 x))) |
| 196.0ms | (* (+ (* (exp x) (exp x)) (+ (* 1 1) (* (exp x) 1))) x) |
| 173.0ms | (* (- (pow (exp x) 3) (pow 1 3)) (/ 1 x)) |
2 alts after pruning (0 fresh and 2 done)
Merged error: 0b
98.8% (0.3b remaining)
Error of 0.3b against oracle of 0.0b and baseline of 20.8b