\frac{x \cdot 100}{x + y}\frac{\sqrt{100}}{\frac{1}{\sqrt{100}}} \cdot \frac{x}{y + x}double f(double x, double y) {
double r528564 = x;
double r528565 = 100.0;
double r528566 = r528564 * r528565;
double r528567 = y;
double r528568 = r528564 + r528567;
double r528569 = r528566 / r528568;
return r528569;
}
double f(double x, double y) {
double r528570 = 100.0;
double r528571 = sqrt(r528570);
double r528572 = 1.0;
double r528573 = r528572 / r528571;
double r528574 = r528571 / r528573;
double r528575 = x;
double r528576 = y;
double r528577 = r528576 + r528575;
double r528578 = r528575 / r528577;
double r528579 = r528574 * r528578;
return r528579;
}




Bits error versus x




Bits error versus y
Results
| Original | 0.4 |
|---|---|
| Target | 0.2 |
| Herbie | 0.2 |
Initial program 0.4
Simplified0.4
rmApplied *-un-lft-identity0.4
Applied times-frac0.2
Simplified0.2
rmApplied add-sqr-sqrt0.2
Applied associate-/l*0.3
rmApplied div-inv0.4
Applied *-un-lft-identity0.4
Applied sqrt-prod0.4
Applied times-frac0.3
Applied associate-*r*0.3
Simplified0.2
Final simplification0.2
herbie shell --seed 2019195
(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)))