\frac{1}{x \cdot x}\frac{\frac{1}{x}}{x}double f(double x) {
double r337763 = 1.0;
double r337764 = x;
double r337765 = r337764 * r337764;
double r337766 = r337763 / r337765;
return r337766;
}
double f(double x) {
double r337767 = 1.0;
double r337768 = x;
double r337769 = r337767 / r337768;
double r337770 = r337769 / r337768;
return r337770;
}




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