\frac{1}{x \cdot x}\frac{\frac{1}{x}}{x}double f(double x) {
double r426234 = 1.0;
double r426235 = x;
double r426236 = r426235 * r426235;
double r426237 = r426234 / r426236;
return r426237;
}
double f(double x) {
double r426238 = 1.0;
double r426239 = x;
double r426240 = r426238 / r426239;
double r426241 = r426240 / r426239;
return r426241;
}




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