\frac{e^{a}}{e^{a} + e^{b}}\log \left({\left(e^{e^{a}}\right)}^{\left(\frac{1}{e^{b} + e^{a}}\right)}\right)double f(double a, double b) {
double r180488 = a;
double r180489 = exp(r180488);
double r180490 = b;
double r180491 = exp(r180490);
double r180492 = r180489 + r180491;
double r180493 = r180489 / r180492;
return r180493;
}
double f(double a, double b) {
double r180494 = a;
double r180495 = exp(r180494);
double r180496 = exp(r180495);
double r180497 = 1.0;
double r180498 = b;
double r180499 = exp(r180498);
double r180500 = r180499 + r180495;
double r180501 = r180497 / r180500;
double r180502 = pow(r180496, r180501);
double r180503 = log(r180502);
return r180503;
}




Bits error versus a




Bits error versus b
Results
| Original | 0.7 |
|---|---|
| Target | 0.0 |
| Herbie | 0.7 |
Initial program 0.7
rmApplied *-un-lft-identity0.7
Applied add-sqr-sqrt0.7
Applied times-frac0.7
Simplified0.7
rmApplied add-log-exp0.8
Simplified0.7
Final simplification0.7
herbie shell --seed 2020025
(FPCore (a b)
:name "Quotient of sum of exps"
:precision binary64
:herbie-target
(/ 1 (+ 1 (exp (- b a))))
(/ (exp a) (+ (exp a) (exp b))))