\frac{x}{y \cdot 3}\frac{\frac{x}{3}}{y}double f(double x, double y) {
double r659464 = x;
double r659465 = y;
double r659466 = 3.0;
double r659467 = r659465 * r659466;
double r659468 = r659464 / r659467;
return r659468;
}
double f(double x, double y) {
double r659469 = x;
double r659470 = 3.0;
double r659471 = r659469 / r659470;
double r659472 = y;
double r659473 = r659471 / r659472;
return r659473;
}




Bits error versus x




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