\frac{1}{x \cdot x}\frac{\frac{1}{x}}{x}double f(double x) {
double r310810 = 1.0;
double r310811 = x;
double r310812 = r310811 * r310811;
double r310813 = r310810 / r310812;
return r310813;
}
double f(double x) {
double r310814 = 1.0;
double r310815 = x;
double r310816 = r310814 / r310815;
double r310817 = r310816 / r310815;
return r310817;
}




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