



Bits error versus x
Results
| Original | 39.7 |
|---|---|
| Target | 38.9 |
| Herbie | 0.4 |
if x < -0.00017454211774255434Initial program 0.1
rmApplied add-sqr-sqrt0.1
Applied difference-of-sqr-10.1
if -0.00017454211774255434 < x Initial program 60.0
Taylor expanded around 0 0.5
rmApplied associate-+r+0.5
Final simplification0.4
herbie shell --seed 2018362
(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: 2.6s)Debug log
1 alts after pruning (1 fresh and 0 done)
Merged error: 45.6b
Found 2 expressions with local error:
| 5.4b | (- (exp x) 1) |
| 0.0b | (/ (- (exp x) 1) x) |
2 calls. Slowest were:
| 7.0ms | (/ (- (exp x) 1) x) |
| 5.0ms | (- (exp x) 1) |
2 calls. Slowest were:
| 21.0ms | (/ (- (exp x) 1) x) |
| 12.0ms | (- (exp x) 1) |
13 calls. Slowest were:
| 127.0ms | (+ x (+ (* 1/6 (pow x 3)) (* 1/2 (pow x 2)))) |
| 108.0ms | (* -1 (/ (- 1 (exp x)) x)) |
| 40.0ms | (+ (* 1/2 x) (+ (* 1/6 (pow x 2)) 1)) |
4 alts after pruning (4 fresh and 0 done)
Merged error: 0.0b
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:
| 62.0ms | (* (exp (* 1/2 x)) (exp (+ (* 1/6 (pow x 2)) 1))) |
| 21.0ms | (+ (* 1/2 x) (+ (* 1/6 (pow x 2)) 1)) |
| 20.0ms | (+ (* 1/2 x) (+ (* 1/6 (pow x 2)) 1)) |
3 alts after pruning (3 fresh and 0 done)
Merged error: 0.0b
Found 1 expressions with local error:
| 0.2b | (* 1/6 (pow x 2)) |
1 calls. Slowest were:
| 2.0ms | (* 1/6 (pow x 2)) |
1 calls. Slowest were:
| 20.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)) |
3 alts after pruning (2 fresh and 1 done)
Merged error: 0.0b
Found 2 expressions with local error:
| 5.4b | (- (exp x) 1) |
| 0.0b | (/ (- (exp x) 1) x) |
2 calls. Slowest were:
| 6.0ms | (/ (- (exp x) 1) x) |
| 3.0ms | (- (exp x) 1) |
2 calls. Slowest were:
| 32.0ms | (/ (- (exp x) 1) x) |
| 11.0ms | (- (exp x) 1) |
13 calls. Slowest were:
| 150.0ms | (+ x (+ (* 1/6 (pow x 3)) (* 1/2 (pow x 2)))) |
| 108.0ms | (* -1 (/ (- 1 (exp x)) x)) |
| 31.0ms | (+ (* 1/2 x) (+ (* 1/6 (pow x 2)) 1)) |
3 alts after pruning (1 fresh and 2 done)
Merged error: 0.0b
98.5% (0.3b remaining)
Error of 0.4b against oracle of 0.0b and baseline of 21.2b