\frac{x \cdot 100}{x + y}x \cdot \frac{100}{x + y}double f(double x, double y) {
double r783113 = x;
double r783114 = 100.0;
double r783115 = r783113 * r783114;
double r783116 = y;
double r783117 = r783113 + r783116;
double r783118 = r783115 / r783117;
return r783118;
}
double f(double x, double y) {
double r783119 = x;
double r783120 = 100.0;
double r783121 = y;
double r783122 = r783119 + r783121;
double r783123 = r783120 / r783122;
double r783124 = r783119 * r783123;
return r783124;
}




Bits error versus x




Bits error versus y
Results
| Original | 0.4 |
|---|---|
| Target | 0.2 |
| Herbie | 0.2 |
Initial program 0.4
rmApplied *-un-lft-identity0.4
Applied times-frac0.2
Simplified0.2
Final simplification0.2
herbie shell --seed 2020033 +o rules:numerics
(FPCore (x y)
:name "Development.Shake.Progress:message from shake-0.15.5"
:precision binary64
:herbie-target
(* (/ x 1) (/ 100 (+ x y)))
(/ (* x 100) (+ x y)))