\frac{x}{y \cdot 3}\frac{\frac{x}{y}}{3}double f(double x, double y) {
double r69518 = x;
double r69519 = y;
double r69520 = 3.0;
double r69521 = r69519 * r69520;
double r69522 = r69518 / r69521;
return r69522;
}
double f(double x, double y) {
double r69523 = x;
double r69524 = y;
double r69525 = r69523 / r69524;
double r69526 = 3.0;
double r69527 = r69525 / r69526;
return r69527;
}




Bits error versus x




Bits error versus y
Results
| Original | 0.3 |
|---|---|
| Target | 0.3 |
| Herbie | 0.3 |
Initial program 0.3
rmApplied associate-/r*0.3
rmApplied *-un-lft-identity0.3
Applied div-inv0.3
Applied times-frac0.3
Simplified0.3
rmApplied associate-*r/0.3
Simplified0.3
Final simplification0.3
herbie shell --seed 2019310 +o rules:numerics
(FPCore (x y)
:name "Diagrams.Solve.Polynomial:cubForm from diagrams-solve-0.1, C"
:precision binary64
:herbie-target
(/ (/ x y) 3)
(/ x (* y 3)))