\frac{x}{y \cdot 3}\frac{\frac{x}{3}}{y}double f(double x, double y) {
double r750100 = x;
double r750101 = y;
double r750102 = 3.0;
double r750103 = r750101 * r750102;
double r750104 = r750100 / r750103;
return r750104;
}
double f(double x, double y) {
double r750105 = x;
double r750106 = 3.0;
double r750107 = r750105 / r750106;
double r750108 = y;
double r750109 = r750107 / r750108;
return r750109;
}




Bits error versus x




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