\frac{1}{x \cdot x}\frac{\frac{1}{x}}{x}double f(double x) {
double r417240 = 1.0;
double r417241 = x;
double r417242 = r417241 * r417241;
double r417243 = r417240 / r417242;
return r417243;
}
double f(double x) {
double r417244 = 1.0;
double r417245 = x;
double r417246 = r417244 / r417245;
double r417247 = r417246 / r417245;
return r417247;
}




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