\frac{1}{x \cdot x}\frac{\frac{1}{x}}{x}double f(double x) {
double r425843 = 1.0;
double r425844 = x;
double r425845 = r425844 * r425844;
double r425846 = r425843 / r425845;
return r425846;
}
double f(double x) {
double r425847 = 1.0;
double r425848 = x;
double r425849 = r425847 / r425848;
double r425850 = r425849 / r425848;
return r425850;
}




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