e^{\log a + \log b}b \cdot a
double f(double a, double b) {
double r9841829 = a;
double r9841830 = log(r9841829);
double r9841831 = b;
double r9841832 = log(r9841831);
double r9841833 = r9841830 + r9841832;
double r9841834 = exp(r9841833);
return r9841834;
}
double f(double a, double b) {
double r9841835 = b;
double r9841836 = a;
double r9841837 = r9841835 * r9841836;
return r9841837;
}




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