\frac{1}{x \cdot x}\frac{\frac{1}{x}}{x}double f(double x) {
double r463263 = 1.0;
double r463264 = x;
double r463265 = r463264 * r463264;
double r463266 = r463263 / r463265;
return r463266;
}
double f(double x) {
double r463267 = 1.0;
double r463268 = x;
double r463269 = r463267 / r463268;
double r463270 = r463269 / r463268;
return r463270;
}




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