\frac{1}{x \cdot x}\frac{\frac{1}{x}}{x}double f(double x) {
double r411161 = 1.0;
double r411162 = x;
double r411163 = r411162 * r411162;
double r411164 = r411161 / r411163;
return r411164;
}
double f(double x) {
double r411165 = 1.0;
double r411166 = x;
double r411167 = r411165 / r411166;
double r411168 = r411167 / r411166;
return r411168;
}




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