\frac{1}{x \cdot x}\frac{\frac{1}{x}}{x}double f(double x) {
double r408034 = 1.0;
double r408035 = x;
double r408036 = r408035 * r408035;
double r408037 = r408034 / r408036;
return r408037;
}
double f(double x) {
double r408038 = 1.0;
double r408039 = x;
double r408040 = r408038 / r408039;
double r408041 = r408040 / r408039;
return r408041;
}




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