\frac{x}{y \cdot 3}\frac{\frac{x}{3}}{y}double f(double x, double y) {
double r851887 = x;
double r851888 = y;
double r851889 = 3.0;
double r851890 = r851888 * r851889;
double r851891 = r851887 / r851890;
return r851891;
}
double f(double x, double y) {
double r851892 = x;
double r851893 = 3.0;
double r851894 = r851892 / r851893;
double r851895 = y;
double r851896 = r851894 / r851895;
return r851896;
}




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 associate-*l*0.3
Simplified0.2
Final simplification0.2
herbie shell --seed 2019362 +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)))