\frac{x}{y \cdot 3}\frac{\frac{x}{3}}{y}double f(double x, double y) {
double r469071 = x;
double r469072 = y;
double r469073 = 3.0;
double r469074 = r469072 * r469073;
double r469075 = r469071 / r469074;
return r469075;
}
double f(double x, double y) {
double r469076 = x;
double r469077 = 3.0;
double r469078 = r469076 / r469077;
double r469079 = y;
double r469080 = r469078 / r469079;
return r469080;
}




Bits error versus x




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