



Bits error versus x
Results
| Original | 39.5 |
|---|---|
| Target | 38.6 |
| Herbie | 0.3 |
if x < -0.00020187990748026416Initial program 0.1
rmApplied add-log-exp0.1
if -0.00020187990748026416 < x Initial program 59.9
Taylor expanded around 0 0.5
rmApplied add-cube-cbrt0.5
Taylor expanded around 0 0.5
Taylor expanded around 0 0.5
Final simplification0.3
herbie shell --seed 2019008
(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: 10.7s)Debug log
1 calls. Slowest were:
| 7.0ms | (/ (- (exp x) 1) x) |
1 alts after pruning (1 fresh and 0 done)
Merged error: 41.8b
Found 2 expressions with local error:
| 3.7b | (- (exp x) 1) |
| 0.0b | (/ (- (exp x) 1) x) |
2 calls. Slowest were:
| 10.0ms | (/ (- (exp x) 1) x) |
| 3.0ms | (- (exp x) 1) |
2 calls. Slowest were:
| 34.0ms | (/ (- (exp x) 1) x) |
| 20.0ms | (- (exp x) 1) |
13 calls. Slowest were:
| 106.0ms | (* -1 (/ (- 1 (exp x)) x)) |
| 78.0ms | (+ x (+ (* 1/6 (pow x 3)) (* 1/2 (pow x 2)))) |
| 34.0ms | (+ (* 1/2 x) (+ (* 1/6 (pow x 2)) 1)) |
2 alts after pruning (2 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:
| 13.0ms | (* 1/6 (pow x 2)) |
| 11.0ms | (+ (* 1/2 x) (+ (* 1/6 (pow x 2)) 1)) |
10 calls. Slowest were:
| 80.0ms | (* (exp (* 1/2 x)) (exp (+ (* 1/6 (pow x 2)) 1))) |
| 37.0ms | (+ (* 1/2 x) (+ (* 1/6 (pow x 2)) 1)) |
| 31.0ms | (+ (* 1/2 x) (+ (* 1/6 (pow x 2)) 1)) |
3 alts after pruning (2 fresh and 1 done)
Merged error: 0.1b
Found 4 expressions with local error:
| 10.8b | (cbrt (+ (* 1/2 x) (+ (* 1/6 (pow x 2)) 1))) |
| 10.8b | (cbrt (+ (* 1/2 x) (+ (* 1/6 (pow x 2)) 1))) |
| 10.8b | (cbrt (+ (* 1/2 x) (+ (* 1/6 (pow x 2)) 1))) |
| 0.2b | (* 1/6 (pow x 2)) |
4 calls. Slowest were:
| 4.0ms | (cbrt (+ (* 1/2 x) (+ (* 1/6 (pow x 2)) 1))) |
| 4.0ms | (cbrt (+ (* 1/2 x) (+ (* 1/6 (pow x 2)) 1))) |
| 3.0ms | (cbrt (+ (* 1/2 x) (+ (* 1/6 (pow x 2)) 1))) |
4 calls. Slowest were:
| 70.0ms | (cbrt (+ (* 1/2 x) (+ (* 1/6 (pow x 2)) 1))) |
| 52.0ms | (cbrt (+ (* 1/2 x) (+ (* 1/6 (pow x 2)) 1))) |
| 43.0ms | (cbrt (+ (* 1/2 x) (+ (* 1/6 (pow x 2)) 1))) |
| 21.0ms | (* 1/6 (pow x 2)) |
30 calls. Slowest were:
| 380.0ms | (cbrt (+ (pow (* 1/2 x) 3) (pow (+ (* 1/6 (pow x 2)) 1) 3))) |
| 353.0ms | (cbrt (+ (pow (* 1/2 x) 3) (pow (+ (* 1/6 (pow x 2)) 1) 3))) |
| 290.0ms | (cbrt (+ (pow (* 1/2 x) 3) (pow (+ (* 1/6 (pow x 2)) 1) 3))) |
3 alts after pruning (2 fresh and 1 done)
Merged error: 0.1b
Found 4 expressions with local error:
| 10.8b | (cbrt (+ (* 1/2 x) (+ (* 1/6 (pow x 2)) 1))) |
| 10.8b | (cbrt (+ (* 1/2 x) (+ (* 1/6 (pow x 2)) 1))) |
| 0.4b | (* 1/6 x) |
| 0.2b | (* 1/6 (pow x 2)) |
4 calls. Slowest were:
| 7.0ms | (cbrt (+ (* 1/2 x) (+ (* 1/6 (pow x 2)) 1))) |
| 7.0ms | (cbrt (+ (* 1/2 x) (+ (* 1/6 (pow x 2)) 1))) |
| 2.0ms | (* 1/6 (pow x 2)) |
4 calls. Slowest were:
| 58.0ms | (cbrt (+ (* 1/2 x) (+ (* 1/6 (pow x 2)) 1))) |
| 55.0ms | (cbrt (+ (* 1/2 x) (+ (* 1/6 (pow x 2)) 1))) |
| 12.0ms | (* 1/6 (pow x 2)) |
| 7.0ms | (* 1/6 x) |
25 calls. Slowest were:
| 425.0ms | (cbrt (+ (pow (* 1/2 x) 3) (pow (+ (* 1/6 (pow x 2)) 1) 3))) |
| 319.0ms | (cbrt (+ (pow (* 1/2 x) 3) (pow (+ (* 1/6 (pow x 2)) 1) 3))) |
| 265.0ms | (+ (/ (exp (* 1/3 (- (log 1/6) (* 2 (log (/ -1 x)))))) x) (+ (/ (exp (* 1/3 (- (log 1/6) (* 2 (log (/ -1 x)))))) (pow x 2)) (exp (* 1/3 (- (log 1/6) (* 2 (log (/ -1 x)))))))) |
3 alts after pruning (2 fresh and 1 done)
Merged error: 0.1b
99.1% (0.2b remaining)
Error of 0.3b against oracle of 0.1b and baseline of 21.4b