\frac{1}{x \cdot x}\frac{\frac{1}{x}}{x}double f(double x) {
double r496282 = 1.0;
double r496283 = x;
double r496284 = r496283 * r496283;
double r496285 = r496282 / r496284;
return r496285;
}
double f(double x) {
double r496286 = 1.0;
double r496287 = x;
double r496288 = r496286 / r496287;
double r496289 = r496288 / r496287;
return r496289;
}




Bits error versus x
Results
| Original | 0.6 |
|---|---|
| Target | 0.2 |
| Herbie | 0.2 |
Initial program 0.6
rmApplied associate-/r*0.2
Final simplification0.2
herbie shell --seed 2019353
(FPCore (x)
:name "Numeric.SpecFunctions:$slogFactorial from math-functions-0.1.5.2, A"
:precision binary64
:herbie-target
(/ (/ 1 x) x)
(/ 1 (* x x)))