e^{\log a + \log b}a \cdot b
double f(double a, double b) {
double r4427177 = a;
double r4427178 = log(r4427177);
double r4427179 = b;
double r4427180 = log(r4427179);
double r4427181 = r4427178 + r4427180;
double r4427182 = exp(r4427181);
return r4427182;
}
double f(double a, double b) {
double r4427183 = a;
double r4427184 = b;
double r4427185 = r4427183 * r4427184;
return r4427185;
}




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