\frac{x}{y \cdot 3}\frac{\frac{x}{3}}{y}double f(double x, double y) {
double r934224 = x;
double r934225 = y;
double r934226 = 3.0;
double r934227 = r934225 * r934226;
double r934228 = r934224 / r934227;
return r934228;
}
double f(double x, double y) {
double r934229 = x;
double r934230 = 3.0;
double r934231 = r934229 / r934230;
double r934232 = y;
double r934233 = r934231 / r934232;
return r934233;
}




Bits error versus x




Bits error versus y
Results
| Original | 0.3 |
|---|---|
| Target | 0.3 |
| Herbie | 0.2 |
Initial program 0.3
rmApplied associate-/r*0.3
rmApplied div-inv0.3
Applied associate-/l*0.3
Simplified0.3
rmApplied associate-/r*0.2
Final simplification0.2
herbie shell --seed 2019305 +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)))