\frac{1}{x \cdot x}\frac{\frac{1}{x}}{x}double f(double x) {
double r383229 = 1.0;
double r383230 = x;
double r383231 = r383230 * r383230;
double r383232 = r383229 / r383231;
return r383232;
}
double f(double x) {
double r383233 = 1.0;
double r383234 = x;
double r383235 = r383233 / r383234;
double r383236 = r383235 / r383234;
return r383236;
}




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 2020062
(FPCore (x)
:name "Numeric.SpecFunctions:$slogFactorial from math-functions-0.1.5.2, A"
:precision binary64
:herbie-target
(/ (/ 1 x) x)
(/ 1 (* x x)))