\frac{x \cdot 100}{x + y}x \cdot \frac{100}{x + y}double f(double x, double y) {
double r866322 = x;
double r866323 = 100.0;
double r866324 = r866322 * r866323;
double r866325 = y;
double r866326 = r866322 + r866325;
double r866327 = r866324 / r866326;
return r866327;
}
double f(double x, double y) {
double r866328 = x;
double r866329 = 100.0;
double r866330 = y;
double r866331 = r866328 + r866330;
double r866332 = r866329 / r866331;
double r866333 = r866328 * r866332;
return r866333;
}




Bits error versus x




Bits error versus y
Results
| Original | 0.3 |
|---|---|
| Target | 0.2 |
| Herbie | 0.2 |
Initial program 0.3
rmApplied *-un-lft-identity0.3
Applied times-frac0.2
Simplified0.2
Final simplification0.2
herbie shell --seed 2020018 +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)))