\frac{1}{x \cdot x}\frac{\frac{1}{x}}{x}double f(double x) {
double r503216 = 1.0;
double r503217 = x;
double r503218 = r503217 * r503217;
double r503219 = r503216 / r503218;
return r503219;
}
double f(double x) {
double r503220 = 1.0;
double r503221 = x;
double r503222 = r503220 / r503221;
double r503223 = r503222 / r503221;
return r503223;
}




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