\frac{1}{x \cdot x}\frac{\frac{1}{x}}{x}double f(double x) {
double r434227 = 1.0;
double r434228 = x;
double r434229 = r434228 * r434228;
double r434230 = r434227 / r434229;
return r434230;
}
double f(double x) {
double r434231 = 1.0;
double r434232 = x;
double r434233 = r434231 / r434232;
double r434234 = r434233 / r434232;
return r434234;
}




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