\frac{x}{y \cdot 3}\frac{\frac{x}{3}}{y}double f(double x, double y) {
double r609416 = x;
double r609417 = y;
double r609418 = 3.0;
double r609419 = r609417 * r609418;
double r609420 = r609416 / r609419;
return r609420;
}
double f(double x, double y) {
double r609421 = x;
double r609422 = 3.0;
double r609423 = r609421 / r609422;
double r609424 = y;
double r609425 = r609423 / r609424;
return r609425;
}




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 associate-*l/0.2
Simplified0.2
Final simplification0.2
herbie shell --seed 2019362
(FPCore (x y)
:name "Diagrams.Solve.Polynomial:cubForm from diagrams-solve-0.1, C"
:precision binary64
:herbie-target
(/ (/ x y) 3)
(/ x (* y 3)))