\frac{x \cdot 100}{x + y}x \cdot \frac{100}{x + y}double f(double x, double y) {
double r402568 = x;
double r402569 = 100.0;
double r402570 = r402568 * r402569;
double r402571 = y;
double r402572 = r402568 + r402571;
double r402573 = r402570 / r402572;
return r402573;
}
double f(double x, double y) {
double r402574 = x;
double r402575 = 100.0;
double r402576 = y;
double r402577 = r402574 + r402576;
double r402578 = r402575 / r402577;
double r402579 = r402574 * r402578;
return r402579;
}




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