e^{\log a + \log b}b \cdot a
double f(double a, double b) {
double r2920166 = a;
double r2920167 = log(r2920166);
double r2920168 = b;
double r2920169 = log(r2920168);
double r2920170 = r2920167 + r2920169;
double r2920171 = exp(r2920170);
return r2920171;
}
double f(double a, double b) {
double r2920172 = b;
double r2920173 = a;
double r2920174 = r2920172 * r2920173;
return r2920174;
}




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 2019155 +o rules:numerics
(FPCore (a b)
:name "Exp of sum of logs"
:herbie-target
(* a b)
(exp (+ (log a) (log b))))