\frac{x \cdot 100}{x + y}\frac{x}{\frac{y + x}{\sqrt{100}}} \cdot \sqrt{100}double f(double x, double y) {
double r40766367 = x;
double r40766368 = 100.0;
double r40766369 = r40766367 * r40766368;
double r40766370 = y;
double r40766371 = r40766367 + r40766370;
double r40766372 = r40766369 / r40766371;
return r40766372;
}
double f(double x, double y) {
double r40766373 = x;
double r40766374 = y;
double r40766375 = r40766374 + r40766373;
double r40766376 = 100.0;
double r40766377 = sqrt(r40766376);
double r40766378 = r40766375 / r40766377;
double r40766379 = r40766373 / r40766378;
double r40766380 = r40766379 * r40766377;
return r40766380;
}




Bits error versus x




Bits error versus y
Results
| Original | 0.4 |
|---|---|
| Target | 0.2 |
| Herbie | 0.2 |
Initial program 0.4
rmApplied associate-/l*0.2
rmApplied add-sqr-sqrt0.2
Applied *-un-lft-identity0.2
Applied times-frac0.4
Applied *-un-lft-identity0.4
Applied times-frac0.2
Simplified0.2
Final simplification0.2
herbie shell --seed 2019168
(FPCore (x y)
:name "Development.Shake.Progress:message from shake-0.15.5"
:herbie-target
(* (/ x 1.0) (/ 100.0 (+ x y)))
(/ (* x 100.0) (+ x y)))