\frac{x}{y \cdot 3}\frac{x}{y \cdot 3}double f(double x, double y) {
double r778155 = x;
double r778156 = y;
double r778157 = 3.0;
double r778158 = r778156 * r778157;
double r778159 = r778155 / r778158;
return r778159;
}
double f(double x, double y) {
double r778160 = x;
double r778161 = y;
double r778162 = 3.0;
double r778163 = r778161 * r778162;
double r778164 = r778160 / r778163;
return r778164;
}




Bits error versus x




Bits error versus y
Results
| Original | 0.3 |
|---|---|
| Target | 0.2 |
| Herbie | 0.3 |
Initial program 0.3
rmApplied associate-/r*0.2
rmApplied div-inv0.3
Applied associate-/l*0.3
Simplified0.3
Final simplification0.3
herbie shell --seed 2020047 +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)))