\frac{x \cdot 100}{x + y}x \cdot \frac{100}{x + y}double f(double x, double y) {
double r835198 = x;
double r835199 = 100.0;
double r835200 = r835198 * r835199;
double r835201 = y;
double r835202 = r835198 + r835201;
double r835203 = r835200 / r835202;
return r835203;
}
double f(double x, double y) {
double r835204 = x;
double r835205 = 100.0;
double r835206 = y;
double r835207 = r835204 + r835206;
double r835208 = r835205 / r835207;
double r835209 = r835204 * r835208;
return r835209;
}




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 2020045 +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)))