



Bits error versus a




Bits error versus b
| Original | 0.6 |
|---|---|
| Target | 0.0 |
| Herbie | 0.6 |
Initial program 0.6
rmApplied add-sqr-sqrt0.6
Applied fma-def0.6
Final simplification0.6
herbie shell --seed 2018360 +o rules:numerics
(FPCore (a b)
:name "Quotient of sum of exps"
:herbie-target
(/ 1 (+ 1 (exp (- b a))))
(/ (exp a) (+ (exp a) (exp b))))
Time bar (total: 3.2s)Debug log
1 alts after pruning (1 fresh and 0 done)
Merged error: 0.5b
Found 2 expressions with local error:
| 0.5b | (/ (exp a) (+ (exp a) (exp b))) |
| 0.0b | (+ (exp a) (exp b)) |
2 calls. Slowest were:
| 15.0ms | (/ (exp a) (+ (exp a) (exp b))) |
| 7.0ms | (+ (exp a) (exp b)) |
2 calls. Slowest were:
| 64.0ms | (/ (exp a) (+ (exp a) (exp b))) |
| 35.0ms | (+ (exp a) (exp b)) |
44 calls. Slowest were:
| 254.0ms | (/ (* (* (exp a) (exp a)) (exp a)) (* (* (+ (exp a) (exp b)) (+ (exp a) (exp b))) (+ (exp a) (exp b)))) |
| 110.0ms | (+ (* (exp a) (exp a)) (- (* (exp b) (exp b)) (* (exp a) (exp b)))) |
| 72.0ms | (- (+ (* 1/4 a) 1/2) (* 1/4 b)) |
2 alts after pruning (2 fresh and 0 done)
Merged error: 0.5b
Found 4 expressions with local error:
| 0.5b | (/ (exp a) (fma (sqrt (exp a)) (sqrt (exp a)) (exp b))) |
| 0.0b | (fma (sqrt (exp a)) (sqrt (exp a)) (exp b)) |
| 0.0b | (sqrt (exp a)) |
| 0.0b | (sqrt (exp a)) |
4 calls. Slowest were:
| 6.0ms | (/ (exp a) (fma (sqrt (exp a)) (sqrt (exp a)) (exp b))) |
| 2.0ms | (sqrt (exp a)) |
| 1.0ms | (sqrt (exp a)) |
4 calls. Slowest were:
| 86.0ms | (/ (exp a) (fma (sqrt (exp a)) (sqrt (exp a)) (exp b))) |
| 61.0ms | (fma (sqrt (exp a)) (sqrt (exp a)) (exp b)) |
| 17.0ms | (sqrt (exp a)) |
| 12.0ms | (sqrt (exp a)) |
45 calls. Slowest were:
| 105.0ms | (/ (* (* (exp a) (exp a)) (exp a)) (* (* (fma (sqrt (exp a)) (sqrt (exp a)) (exp b)) (fma (sqrt (exp a)) (sqrt (exp a)) (exp b))) (fma (sqrt (exp a)) (sqrt (exp a)) (exp b)))) |
| 56.0ms | (- (+ (* 1/4 a) 1/2) (* 1/4 b)) |
| 34.0ms | (/ (* (cbrt (exp a)) (cbrt (exp a))) (* (cbrt (fma (sqrt (exp a)) (sqrt (exp a)) (exp b))) (cbrt (fma (sqrt (exp a)) (sqrt (exp a)) (exp b))))) |
2 alts after pruning (1 fresh and 1 done)
Merged error: 0.5b
Found 0 expressions with local error:
0 calls. Slowest were:
0 calls. Slowest were:
0 calls. Slowest were:
2 alts after pruning (0 fresh and 2 done)
Merged error: 0.5b
0% (0.0b remaining)
Error of 0.6b against oracle of 0.6b and baseline of 0.6b