



Bits error versus a




Bits error versus b
Results
| Original | 0.6 |
|---|---|
| Target | 0.0 |
| Herbie | 0.6 |
Initial program 0.6
Final simplification0.6
herbie shell --seed 2019022 +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: 6.6s)Debug log
| 77.0ms | 105× | body | 10240 | exit |
| 23.0ms | 256× | body | 80 | valid |
| 2.0ms | (/ (exp a) (+ (exp a) (exp b))) |
1 alts after pruning (1 fresh and 0 done)
Merged error: 1.0b
Found 2 expressions with local error:
| 1.0b | (/ (exp a) (+ (exp a) (exp b))) |
| 0.0b | (+ (exp a) (exp b)) |
| 22× | *-un-lft-identity |
| 12× | add-cube-cbrt |
| 12× | times-frac |
| 12× | add-sqr-sqrt |
| 5× | distribute-lft-out |
| 4× | add-log-exp |
| 4× | add-cbrt-cube |
| 4× | associate-/r* |
| 3× | associate-/l* |
| 3× | add-exp-log |
| 3× | fma-def |
| 2× | log1p-expm1-u |
| 2× | flip-+ |
| 2× | associate-/r/ |
| 2× | flip3-+ |
| 2× | pow1 |
| 2× | expm1-log1p-u |
| 1× | div-inv |
| 1× | div-exp |
| 1× | frac-2neg |
| 1× | sum-log |
| 1× | clear-num |
| 1× | +-commutative |
| 1× | cbrt-undiv |
| 13.0ms | (/ (exp a) (+ (exp a) (exp b))) |
| 7.0ms | (+ (exp a) (exp b)) |
| 72.0ms | (/ (exp a) (+ (exp a) (exp b))) |
| 24.0ms | (+ (exp a) (exp b)) |
| 208.0ms | (/ (* (* (exp a) (exp a)) (exp a)) (* (* (+ (exp a) (exp b)) (+ (exp a) (exp b))) (+ (exp a) (exp b)))) |
| 82.0ms | (+ (* (exp a) (exp a)) (- (* (exp b) (exp b)) (* (exp a) (exp b)))) |
| 49.0ms | (- (+ (* 1/4 a) 1/2) (* 1/4 b)) |
| 36.0ms | (/ (* (cbrt (exp a)) (cbrt (exp a))) (* (cbrt (+ (exp a) (exp b))) (cbrt (+ (exp a) (exp b))))) |
| 17.0ms | (/ (* (cbrt (exp a)) (cbrt (exp a))) 1) |
3 alts after pruning (2 fresh and 1 done)
Merged error: 0.7b
Found 1 expressions with local error:
| 0.0b | (/ (exp a) (+ a (+ b 2))) |
| 9× | add-cube-cbrt |
| 9× | times-frac |
| 9× | *-un-lft-identity |
| 9× | add-sqr-sqrt |
| 3× | associate-/l* |
| 3× | add-cbrt-cube |
| 3× | associate-/r* |
| 2× | associate-/r/ |
| 2× | add-exp-log |
| 1× | add-log-exp |
| 1× | div-inv |
| 1× | log1p-expm1-u |
| 1× | flip-+ |
| 1× | div-exp |
| 1× | flip3-+ |
| 1× | frac-2neg |
| 1× | clear-num |
| 1× | cbrt-undiv |
| 1× | pow1 |
| 1× | expm1-log1p-u |
| 4.0ms | (/ (exp a) (+ a (+ b 2))) |
| 83.0ms | (/ (exp a) (+ a (+ b 2))) |
| 144.0ms | (+ (* a a) (- (* (+ b 2) (+ b 2)) (* a (+ b 2)))) |
| 119.0ms | (/ (* (* (exp a) (exp a)) (exp a)) (* (* (+ a (+ b 2)) (+ a (+ b 2))) (+ a (+ b 2)))) |
| 72.0ms | (- (+ (* 1/4 a) 1/2) (* 1/4 b)) |
| 20.0ms | (/ (* (cbrt (exp a)) (cbrt (exp a))) (* (cbrt (+ a (+ b 2))) (cbrt (+ a (+ b 2))))) |
| 20.0ms | (- a (+ b 2)) |
3 alts after pruning (1 fresh and 2 done)
Merged error: 0.7b
Found 0 expressions with local error:
3 alts after pruning (0 fresh and 3 done)
Merged error: 0.7b
0% (0.2b remaining)
Error of 0.6b against oracle of 0.4b and baseline of 0.6b
| 3.1s | 3481× | body | 10240 | exit |
| 723.0ms | 8000× | body | 80 | valid |