\frac{1}{x \cdot x}\frac{\frac{1}{x}}{x}double f(double x) {
double r594978 = 1.0;
double r594979 = x;
double r594980 = r594979 * r594979;
double r594981 = r594978 / r594980;
return r594981;
}
double f(double x) {
double r594982 = 1.0;
double r594983 = x;
double r594984 = r594982 / r594983;
double r594985 = r594984 / r594983;
return r594985;
}




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