e^{\log a + \log b}b \cdot a
double f(double a, double b) {
double r75280 = a;
double r75281 = log(r75280);
double r75282 = b;
double r75283 = log(r75282);
double r75284 = r75281 + r75283;
double r75285 = exp(r75284);
return r75285;
}
double f(double a, double b) {
double r75286 = b;
double r75287 = a;
double r75288 = r75286 * r75287;
return r75288;
}




Bits error versus a




Bits error versus b
Results
| Original | 5.7 |
|---|---|
| Target | 0 |
| Herbie | 0 |
Initial program 5.7
Simplified0
Final simplification0
herbie shell --seed 2019326
(FPCore (a b)
:name "Exp of sum of logs"
:precision binary64
:herbie-target
(* a b)
(exp (+ (log a) (log b))))