\frac{x}{y \cdot 3}\frac{\frac{x}{3}}{y}double f(double x, double y) {
double r465122 = x;
double r465123 = y;
double r465124 = 3.0;
double r465125 = r465123 * r465124;
double r465126 = r465122 / r465125;
return r465126;
}
double f(double x, double y) {
double r465127 = x;
double r465128 = 3.0;
double r465129 = r465127 / r465128;
double r465130 = y;
double r465131 = r465129 / r465130;
return r465131;
}




Bits error versus x




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