



Bits error versus x
Results
| Original | 39.5 |
|---|---|
| Target | 38.6 |
| Herbie | 0.0 |
Initial program 39.5
Simplified0.0
rmApplied *-un-lft-identity0.0
Applied associate-/l*0.0
Final simplification0.0
herbie shell --seed 2019008 +o rules:numerics
(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.6s)Debug log
1 calls. Slowest were:
| 17.0ms | (/ (- (exp x) 1) x) |
1 alts after pruning (1 fresh and 0 done)
Merged error: 0.0b
Found 1 expressions with local error:
| 0.0b | (/ (expm1 x) x) |
1 calls. Slowest were:
| 3.0ms | (/ (expm1 x) x) |
1 calls. Slowest were:
| 31.0ms | (/ (expm1 x) x) |
6 calls. Slowest were:
| 102.0ms | (* -1 (/ (- 1 (exp x)) x)) |
| 73.0ms | (+ (* 1/2 x) (+ (* 1/6 (pow x 2)) 1)) |
| 10.0ms | (/ (- (exp x) 1) x) |
2 alts after pruning (2 fresh and 0 done)
Merged error: 0b
Found 2 expressions with local error:
| 0.0b | (/ x (expm1 x)) |
| 0.0b | (/ 1 (/ x (expm1 x))) |
2 calls. Slowest were:
| 1.0ms | (/ 1 (/ x (expm1 x))) |
| 1.0ms | (/ x (expm1 x)) |
2 calls. Slowest were:
| 35.0ms | (/ x (expm1 x)) |
| 30.0ms | (/ 1 (/ x (expm1 x))) |
15 calls. Slowest were:
| 111.0ms | (* -1 (/ (- 1 (exp x)) x)) |
| 47.0ms | (- (+ (* 1/12 (pow x 2)) 1) (* 1/2 x)) |
| 38.0ms | (+ (* 1/2 x) (+ (* 1/6 (pow x 2)) 1)) |
2 alts after pruning (1 fresh and 1 done)
Merged error: 0b
Found 3 expressions with local error:
| 0.7b | (expm1 (/ (expm1 x) x)) |
| 0.0b | (/ (expm1 x) x) |
| 0.0b | (log1p (expm1 (/ (expm1 x) x))) |
3 calls. Slowest were:
| 6.0ms | (/ (expm1 x) x) |
| 1.0ms | (expm1 (/ (expm1 x) x)) |
| 0.0ms | (log1p (expm1 (/ (expm1 x) x))) |
3 calls. Slowest were:
| 250.0ms | (log1p (expm1 (/ (expm1 x) x))) |
| 35.0ms | (expm1 (/ (expm1 x) x)) |
| 31.0ms | (/ (expm1 x) x) |
14 calls. Slowest were:
| 362.0ms | (- (+ (* 7/24 (* (pow x 2) E)) (+ E (* 1/2 (* x E)))) 1) |
| 287.0ms | (- (+ (/ (exp x) x) (+ (* 1/2 (/ 1 (pow x 2))) (+ (* 1/6 (/ (pow (exp x) 3) (pow x 3))) (+ (* 1/2 (/ (pow (exp x) 2) (pow x 2))) (* 1/2 (/ (exp x) (pow x 3))))))) (+ (/ (exp x) (pow x 2)) (+ (* 1/2 (/ (pow (exp x) 2) (pow x 3))) (+ (* 1/6 (/ 1 (pow x 3))) (/ 1 x))))) |
| 204.0ms | (- (+ (/ (exp x) x) (+ (* 1/2 (/ 1 (pow x 2))) (+ (* 1/6 (/ (pow (exp x) 3) (pow x 3))) (+ (* 1/2 (/ (pow (exp x) 2) (pow x 2))) (* 1/2 (/ (exp x) (pow x 3))))))) (+ (/ (exp x) (pow x 2)) (+ (* 1/2 (/ (pow (exp x) 2) (pow x 3))) (+ (* 1/6 (/ 1 (pow x 3))) (/ 1 x))))) |
2 alts after pruning (0 fresh and 2 done)
Merged error: 0b
0% (0.0b remaining)
Error of 0.0b against oracle of 0.0b and baseline of 0.0b