



Bits error versus x
Results
| Original | 39.6 |
|---|---|
| Target | 38.7 |
| Herbie | 0.0 |
Initial program 39.6
Initial simplification0.0
Final simplification0.0
herbie shell --seed 2018365 +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: 15.4s)Debug log
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:
| 39.0ms | (/ (expm1 x) x) |
6 calls. Slowest were:
| 98.0ms | (* -1 (/ (- 1 (exp x)) x)) |
| 73.0ms | (+ (* 1/2 x) (+ (* 1/6 (pow x 2)) 1)) |
| 20.0ms | (/ (- (exp x) 1) x) |
4 alts after pruning (3 fresh and 1 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:
| 32.0ms | (/ x (expm1 x)) |
| 23.0ms | (/ 1 (/ x (expm1 x))) |
15 calls. Slowest were:
| 110.0ms | (* -1 (/ (- 1 (exp x)) x)) |
| 72.0ms | (+ (* 1/2 x) (+ (* 1/6 (pow x 2)) 1)) |
| 72.0ms | (- (+ (* 1/12 (pow x 2)) 1) (* 1/2 x)) |
3 alts after pruning (2 fresh and 1 done)
Merged error: 0b
Found 4 expressions with local error:
| 0.3b | (cbrt (/ (expm1 x) x)) |
| 0.3b | (cbrt (/ (expm1 x) x)) |
| 0.3b | (cbrt (/ (expm1 x) x)) |
| 0.2b | (* (cbrt (/ (expm1 x) x)) (cbrt (/ (expm1 x) x))) |
4 calls. Slowest were:
| 10.0ms | (* (cbrt (/ (expm1 x) x)) (cbrt (/ (expm1 x) x))) |
| 1.0ms | (cbrt (/ (expm1 x) x)) |
| 1.0ms | (cbrt (/ (expm1 x) x)) |
4 calls. Slowest were:
| 214.0ms | (cbrt (/ (expm1 x) x)) |
| 213.0ms | (* (cbrt (/ (expm1 x) x)) (cbrt (/ (expm1 x) x))) |
| 184.0ms | (cbrt (/ (expm1 x) x)) |
| 184.0ms | (cbrt (/ (expm1 x) x)) |
53 calls. Slowest were:
| 273.0ms | (* (pow (cbrt -1) 2) (exp (* 1/3 (+ (* 2 (log (/ -1 x))) (log (pow (- (exp x) 1) 2)))))) |
| 261.0ms | (exp (* 1/3 (+ (* 2 (log (/ 1 x))) (log (pow (- (exp x) 1) 2))))) |
| 202.0ms | (* (exp (* 1/3 (+ (log (- (exp x) 1)) (log (/ -1 x))))) (cbrt -1)) |
3 alts after pruning (1 fresh and 2 done)
Merged error: 0b
Found 4 expressions with local error:
| 16.1b | (cbrt (* (* (/ 1 (/ x (expm1 x))) (/ 1 (/ x (expm1 x)))) (/ 1 (/ x (expm1 x))))) |
| 0.1b | (* (/ 1 (/ x (expm1 x))) (/ 1 (/ x (expm1 x)))) |
| 0.1b | (* (* (/ 1 (/ x (expm1 x))) (/ 1 (/ x (expm1 x)))) (/ 1 (/ x (expm1 x)))) |
| 0.0b | (/ x (expm1 x)) |
4 calls. Slowest were:
| 20.0ms | (* (* (/ 1 (/ x (expm1 x))) (/ 1 (/ x (expm1 x)))) (/ 1 (/ x (expm1 x)))) |
| 7.0ms | (cbrt (* (* (/ 1 (/ x (expm1 x))) (/ 1 (/ x (expm1 x)))) (/ 1 (/ x (expm1 x))))) |
| 4.0ms | (* (/ 1 (/ x (expm1 x))) (/ 1 (/ x (expm1 x)))) |
4 calls. Slowest were:
| 61.0ms | (cbrt (* (* (/ 1 (/ x (expm1 x))) (/ 1 (/ x (expm1 x)))) (/ 1 (/ x (expm1 x))))) |
| 54.0ms | (* (* (/ 1 (/ x (expm1 x))) (/ 1 (/ x (expm1 x)))) (/ 1 (/ x (expm1 x)))) |
| 30.0ms | (* (/ 1 (/ x (expm1 x))) (/ 1 (/ x (expm1 x)))) |
| 25.0ms | (/ x (expm1 x)) |
122 calls. Slowest were:
| 438.0ms | (* (* (* (* (/ 1 (/ x (expm1 x))) (/ 1 (/ x (expm1 x)))) (* (/ 1 (/ x (expm1 x))) (/ 1 (/ x (expm1 x))))) (* (/ 1 (/ x (expm1 x))) (/ 1 (/ x (expm1 x))))) (* (* (/ 1 (/ x (expm1 x))) (/ 1 (/ x (expm1 x)))) (/ 1 (/ x (expm1 x))))) |
| 419.0ms | (* (* (/ 1 (/ x (expm1 x))) (/ 1 (/ x (expm1 x)))) (/ 1 (/ x (expm1 x)))) |
| 371.0ms | (* -1 (/ (- (* (cbrt -1) (exp x)) (cbrt -1)) x)) |
3 alts after pruning (0 fresh and 3 done)
Merged error: 0b
0% (0.0b remaining)
Error of 0.0b against oracle of 0.0b and baseline of 0.0b