\frac{x}{y \cdot 3}\frac{\frac{x}{3}}{y} \cdot \sqrt{1}double f(double x, double y) {
double r653617 = x;
double r653618 = y;
double r653619 = 3.0;
double r653620 = r653618 * r653619;
double r653621 = r653617 / r653620;
return r653621;
}
double f(double x, double y) {
double r653622 = x;
double r653623 = 3.0;
double r653624 = r653622 / r653623;
double r653625 = y;
double r653626 = r653624 / r653625;
double r653627 = 1.0;
double r653628 = sqrt(r653627);
double r653629 = r653626 * r653628;
return r653629;
}




Bits error versus x




Bits error versus y
Results
| Original | 0.2 |
|---|---|
| Target | 0.3 |
| Herbie | 0.2 |
Initial program 0.2
rmApplied *-un-lft-identity0.2
Applied times-frac0.3
rmApplied *-un-lft-identity0.3
Applied add-sqr-sqrt0.3
Applied times-frac0.3
Applied associate-*l*0.3
Simplified0.2
Final simplification0.2
herbie shell --seed 2020024
(FPCore (x y)
:name "Diagrams.Solve.Polynomial:cubForm from diagrams-solve-0.1, C"
:precision binary64
:herbie-target
(/ (/ x y) 3)
(/ x (* y 3)))