\frac{x \cdot 100.0}{x + y}\frac{x}{\frac{y + x}{\sqrt{100.0}}} \cdot \sqrt{100.0}double f(double x, double y) {
double r37108481 = x;
double r37108482 = 100.0;
double r37108483 = r37108481 * r37108482;
double r37108484 = y;
double r37108485 = r37108481 + r37108484;
double r37108486 = r37108483 / r37108485;
return r37108486;
}
double f(double x, double y) {
double r37108487 = x;
double r37108488 = y;
double r37108489 = r37108488 + r37108487;
double r37108490 = 100.0;
double r37108491 = sqrt(r37108490);
double r37108492 = r37108489 / r37108491;
double r37108493 = r37108487 / r37108492;
double r37108494 = r37108493 * r37108491;
return r37108494;
}




Bits error versus x




Bits error versus y
Results
| Original | 0.3 |
|---|---|
| Target | 0.2 |
| Herbie | 0.2 |
Initial program 0.3
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) (/ 100.0 (+ x y)))
(/ (* x 100.0) (+ x y)))