e^{\log a + \log b}a \cdot b
double f(double a, double b) {
double r150544 = a;
double r150545 = log(r150544);
double r150546 = b;
double r150547 = log(r150546);
double r150548 = r150545 + r150547;
double r150549 = exp(r150548);
return r150549;
}
double f(double a, double b) {
double r150550 = a;
double r150551 = b;
double r150552 = r150550 * r150551;
return r150552;
}




Bits error versus a




Bits error versus b
Results
| Original | 5.8 |
|---|---|
| Target | 0 |
| Herbie | 0 |
Initial program 5.8
rmApplied exp-sum5.5
Simplified4.7
Simplified0
Final simplification0
herbie shell --seed 2019354
(FPCore (a b)
:name "Exp of sum of logs"
:precision binary64
:herbie-target
(* a b)
(exp (+ (log a) (log b))))