\frac{x}{y \cdot 3}\frac{\frac{x}{3}}{y}double f(double x, double y) {
double r495522 = x;
double r495523 = y;
double r495524 = 3.0;
double r495525 = r495523 * r495524;
double r495526 = r495522 / r495525;
return r495526;
}
double f(double x, double y) {
double r495527 = x;
double r495528 = 3.0;
double r495529 = r495527 / r495528;
double r495530 = y;
double r495531 = r495529 / r495530;
return r495531;
}




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