\frac{x \cdot 100}{x + y}x \cdot \frac{100}{x + y}double f(double x, double y) {
double r744963 = x;
double r744964 = 100.0;
double r744965 = r744963 * r744964;
double r744966 = y;
double r744967 = r744963 + r744966;
double r744968 = r744965 / r744967;
return r744968;
}
double f(double x, double y) {
double r744969 = x;
double r744970 = 100.0;
double r744971 = y;
double r744972 = r744969 + r744971;
double r744973 = r744970 / r744972;
double r744974 = r744969 * r744973;
return r744974;
}




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