\frac{x}{y \cdot 3}\frac{x}{y \cdot 3}double f(double x, double y) {
double r804300 = x;
double r804301 = y;
double r804302 = 3.0;
double r804303 = r804301 * r804302;
double r804304 = r804300 / r804303;
return r804304;
}
double f(double x, double y) {
double r804305 = x;
double r804306 = y;
double r804307 = 3.0;
double r804308 = r804306 * r804307;
double r804309 = r804305 / r804308;
return r804309;
}




Bits error versus x




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