\frac{1}{x \cdot x}\frac{\frac{1}{x}}{x}double f(double x) {
double r482495 = 1.0;
double r482496 = x;
double r482497 = r482496 * r482496;
double r482498 = r482495 / r482497;
return r482498;
}
double f(double x) {
double r482499 = 1.0;
double r482500 = x;
double r482501 = r482499 / r482500;
double r482502 = r482501 / r482500;
return r482502;
}




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