\frac{1}{x \cdot x}\frac{\frac{1}{x}}{x}double f(double x) {
double r388231 = 1.0;
double r388232 = x;
double r388233 = r388232 * r388232;
double r388234 = r388231 / r388233;
return r388234;
}
double f(double x) {
double r388235 = 1.0;
double r388236 = x;
double r388237 = r388235 / r388236;
double r388238 = r388237 / r388236;
return r388238;
}




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