\frac{x}{y \cdot 3}\frac{\frac{x}{3}}{y}double f(double x, double y) {
double r426722 = x;
double r426723 = y;
double r426724 = 3.0;
double r426725 = r426723 * r426724;
double r426726 = r426722 / r426725;
return r426726;
}
double f(double x, double y) {
double r426727 = x;
double r426728 = 3.0;
double r426729 = r426727 / r426728;
double r426730 = y;
double r426731 = r426729 / r426730;
return r426731;
}




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 2019325 +o rules:numerics
(FPCore (x y)
:name "Diagrams.Solve.Polynomial:cubForm from diagrams-solve-0.1, C"
:precision binary64
:herbie-target
(/ (/ x y) 3)
(/ x (* y 3)))