



Bits error versus x
Results
| Original | 39.6 |
|---|---|
| Target | 38.7 |
| Herbie | 0.4 |
if x < -0.00015646466021836952Initial program 0.1
rmApplied add-log-exp0.1
rmApplied add-cube-cbrt0.1
if -0.00015646466021836952 < x Initial program 59.9
Taylor expanded around 0 0.6
Final simplification0.4
herbie shell --seed 2019007
(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: 6.1s)Debug log
1 calls. Slowest were:
| 14.0ms | (/ (- (exp x) 1) x) |
1 alts after pruning (1 fresh and 0 done)
Merged error: 40.9b
Found 2 expressions with local error:
| 6.1b | (- (exp x) 1) |
| 0.0b | (/ (- (exp x) 1) x) |
2 calls. Slowest were:
| 10.0ms | (/ (- (exp x) 1) x) |
| 6.0ms | (- (exp x) 1) |
2 calls. Slowest were:
| 27.0ms | (/ (- (exp x) 1) x) |
| 11.0ms | (- (exp x) 1) |
13 calls. Slowest were:
| 119.0ms | (+ x (+ (* 1/6 (pow x 3)) (* 1/2 (pow x 2)))) |
| 93.0ms | (* -1 (/ (- 1 (exp x)) x)) |
| 35.0ms | (- (* (exp x) (exp x)) (* 1 1)) |
4 alts after pruning (4 fresh and 0 done)
Merged error: 0.1b
Found 2 expressions with local error:
| 0.2b | (* 1/6 (pow x 2)) |
| 0.0b | (+ (* 1/2 x) (+ (* 1/6 (pow x 2)) 1)) |
2 calls. Slowest were:
| 5.0ms | (+ (* 1/2 x) (+ (* 1/6 (pow x 2)) 1)) |
| 1.0ms | (* 1/6 (pow x 2)) |
2 calls. Slowest were:
| 11.0ms | (* 1/6 (pow x 2)) |
| 10.0ms | (+ (* 1/2 x) (+ (* 1/6 (pow x 2)) 1)) |
10 calls. Slowest were:
| 82.0ms | (* (exp (* 1/2 x)) (exp (+ (* 1/6 (pow x 2)) 1))) |
| 41.0ms | (+ (* 1/2 x) (+ (* 1/6 (pow x 2)) 1)) |
| 31.0ms | (+ (* 1/2 x) (+ (* 1/6 (pow x 2)) 1)) |
4 alts after pruning (3 fresh and 1 done)
Merged error: 0.1b
Found 2 expressions with local error:
| 5.5b | (- (/ (exp x) x) (/ 1 x)) |
| 0.0b | (/ (exp x) x) |
2 calls. Slowest were:
| 5.0ms | (- (/ (exp x) x) (/ 1 x)) |
| 2.0ms | (/ (exp x) x) |
2 calls. Slowest were:
| 25.0ms | (- (/ (exp x) x) (/ 1 x)) |
| 22.0ms | (/ (exp x) x) |
20 calls. Slowest were:
| 114.0ms | (* -1 (/ (- 1 (exp x)) x)) |
| 28.0ms | (/ (exp (/ (exp x) x)) (exp (/ 1 x))) |
| 21.0ms | (+ (* 1/2 x) (+ (* 1/6 (pow x 2)) 1)) |
5 alts after pruning (3 fresh and 2 done)
Merged error: 0.1b
Found 3 expressions with local error:
| 6.1b | (- (exp x) 1) |
| 6.0b | (log (exp (- (exp x) 1))) |
| 0.0b | (/ (log (exp (- (exp x) 1))) x) |
3 calls. Slowest were:
| 31.0ms | (/ (log (exp (- (exp x) 1))) x) |
| 6.0ms | (log (exp (- (exp x) 1))) |
| 3.0ms | (- (exp x) 1) |
3 calls. Slowest were:
| 35.0ms | (/ (log (exp (- (exp x) 1))) x) |
| 11.0ms | (log (exp (- (exp x) 1))) |
| 11.0ms | (- (exp x) 1) |
28 calls. Slowest were:
| 106.0ms | (+ x (+ (* 1/6 (pow x 3)) (* 1/2 (pow x 2)))) |
| 94.0ms | (+ x (+ (* 1/6 (pow x 3)) (* 1/2 (pow x 2)))) |
| 79.0ms | (* -1 (/ (- 1 (exp x)) x)) |
7 alts after pruning (5 fresh and 2 done)
Merged error: 0.1b
98.4% (0.3b remaining)
Error of 0.4b against oracle of 0.1b and baseline of 21.2b