\frac{x \cdot 100}{x + y}\sqrt{100} \cdot \frac{x}{\frac{x + y}{\sqrt{100}}}double f(double x, double y) {
double r602563 = x;
double r602564 = 100.0;
double r602565 = r602563 * r602564;
double r602566 = y;
double r602567 = r602563 + r602566;
double r602568 = r602565 / r602567;
return r602568;
}
double f(double x, double y) {
double r602569 = 100.0;
double r602570 = sqrt(r602569);
double r602571 = x;
double r602572 = y;
double r602573 = r602571 + r602572;
double r602574 = r602573 / r602570;
double r602575 = r602571 / r602574;
double r602576 = r602570 * r602575;
return r602576;
}




Bits error versus x




Bits error versus y
Results
| Original | 0.4 |
|---|---|
| Target | 0.2 |
| Herbie | 0.2 |
Initial program 0.4
rmApplied associate-/l*0.2
rmApplied add-sqr-sqrt0.2
Applied *-un-lft-identity0.2
Applied times-frac0.4
Applied *-un-lft-identity0.4
Applied times-frac0.2
Simplified0.2
Final simplification0.2
herbie shell --seed 2019198
(FPCore (x y)
:name "Development.Shake.Progress:message from shake-0.15.5"
:herbie-target
(* (/ x 1.0) (/ 100.0 (+ x y)))
(/ (* x 100.0) (+ x y)))