\frac{x}{y \cdot 3}\frac{\frac{x}{3}}{y}double f(double x, double y) {
double r734487 = x;
double r734488 = y;
double r734489 = 3.0;
double r734490 = r734488 * r734489;
double r734491 = r734487 / r734490;
return r734491;
}
double f(double x, double y) {
double r734492 = x;
double r734493 = 3.0;
double r734494 = r734492 / r734493;
double r734495 = y;
double r734496 = r734494 / r734495;
return r734496;
}




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