



Bits error versus x
Results
| Original | 40.2 |
|---|---|
| Target | 39.2 |
| Herbie | 0.3 |
if x < -0.00014764390145815054Initial program 0.0
rmApplied flip3--0.1
Applied associate-/l/0.1
Simplified0.1
if -0.00014764390145815054 < x Initial program 60.0
Taylor expanded around 0 0.4
rmApplied associate-+r+0.3
Final simplification0.3
herbie shell --seed 2018360
(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: 3.0s)Debug log
1 alts after pruning (1 fresh and 0 done)
Merged error: 41.0b
Found 2 expressions with local error:
| 4.2b | (- (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:
| 43.0ms | (/ (- (exp x) 1) x) |
| 12.0ms | (- (exp x) 1) |
13 calls. Slowest were:
| 79.0ms | (+ x (+ (* 1/6 (pow x 3)) (* 1/2 (pow x 2)))) |
| 59.0ms | (* -1 (/ (- 1 (exp x)) x)) |
| 30.0ms | (- (* (exp x) (exp x)) (* 1 1)) |
3 alts after pruning (3 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:
| 8.0ms | (+ (* 1/2 x) (+ (* 1/6 (pow x 2)) 1)) |
| 2.0ms | (* 1/6 (pow x 2)) |
2 calls. Slowest were:
| 12.0ms | (* 1/6 (pow x 2)) |
| 10.0ms | (+ (* 1/2 x) (+ (* 1/6 (pow x 2)) 1)) |
10 calls. Slowest were:
| 34.0ms | (* (exp (* 1/2 x)) (exp (+ (* 1/6 (pow x 2)) 1))) |
| 23.0ms | (+ (* 1/2 x) (+ (* 1/6 (pow x 2)) 1)) |
| 19.0ms | (+ (* 1/2 x) (+ (* 1/6 (pow x 2)) 1)) |
3 alts after pruning (3 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))) |
2 calls. Slowest were:
| 5.0ms | (+ (* 1/2 x) (* 1/6 (pow x 2))) |
| 2.0ms | (* 1/6 (pow x 2)) |
2 calls. Slowest were:
| 52.0ms | (+ (* 1/2 x) (* 1/6 (pow x 2))) |
| 20.0ms | (* 1/6 (pow x 2)) |
10 calls. Slowest were:
| 26.0ms | (* (exp (* 1/2 x)) (exp (* 1/6 (pow x 2)))) |
| 24.0ms | (+ (* 1/2 x) (* 1/6 (pow x 2))) |
| 17.0ms | (+ (* 1/2 x) (* 1/6 (pow x 2))) |
3 alts after pruning (2 fresh and 1 done)
Merged error: 0.0b
Found 3 expressions with local error:
| 4.2b | (- (exp x) 1) |
| 0.0b | (/ 1 (/ x (- (exp x) 1))) |
| 0.0b | (/ x (- (exp x) 1)) |
3 calls. Slowest were:
| 3.0ms | (- (exp x) 1) |
| 2.0ms | (/ x (- (exp x) 1)) |
| 1.0ms | (/ 1 (/ x (- (exp x) 1))) |
3 calls. Slowest were:
| 37.0ms | (/ 1 (/ x (- (exp x) 1))) |
| 28.0ms | (/ x (- (exp x) 1)) |
| 13.0ms | (- (exp x) 1) |
24 calls. Slowest were:
| 104.0ms | (+ x (+ (* 1/6 (pow x 3)) (* 1/2 (pow x 2)))) |
| 65.0ms | (* -1 (/ (- 1 (exp x)) x)) |
| 53.0ms | (- (+ (* 1/12 (pow x 2)) 1) (* 1/2 x)) |
3 alts after pruning (2 fresh and 1 done)
Merged error: 0b
99% (0.2b remaining)
Error of 0.3b against oracle of 0.0b and baseline of 20.6b