\frac{x}{y \cdot 3}\frac{\frac{x}{3}}{y} \cdot \sqrt{1}double f(double x, double y) {
double r804050 = x;
double r804051 = y;
double r804052 = 3.0;
double r804053 = r804051 * r804052;
double r804054 = r804050 / r804053;
return r804054;
}
double f(double x, double y) {
double r804055 = x;
double r804056 = 3.0;
double r804057 = r804055 / r804056;
double r804058 = y;
double r804059 = r804057 / r804058;
double r804060 = 1.0;
double r804061 = sqrt(r804060);
double r804062 = r804059 * r804061;
return r804062;
}




Bits error versus x




Bits error versus y
Results
| Original | 0.3 |
|---|---|
| Target | 0.3 |
| Herbie | 0.2 |
Initial program 0.3
rmApplied *-un-lft-identity0.3
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 2020042
(FPCore (x y)
:name "Diagrams.Solve.Polynomial:cubForm from diagrams-solve-0.1, C"
:precision binary64
:herbie-target
(/ (/ x y) 3)
(/ x (* y 3)))