e^{\log a + \log b}a \cdot b
double f(double a, double b) {
double r5000156 = a;
double r5000157 = log(r5000156);
double r5000158 = b;
double r5000159 = log(r5000158);
double r5000160 = r5000157 + r5000159;
double r5000161 = exp(r5000160);
return r5000161;
}
double f(double a, double b) {
double r5000162 = a;
double r5000163 = b;
double r5000164 = r5000162 * r5000163;
return r5000164;
}




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