\frac{1}{x \cdot x}\frac{\frac{1}{x}}{x}double f(double x) {
double r500104 = 1.0;
double r500105 = x;
double r500106 = r500105 * r500105;
double r500107 = r500104 / r500106;
return r500107;
}
double f(double x) {
double r500108 = 1.0;
double r500109 = x;
double r500110 = r500108 / r500109;
double r500111 = r500110 / r500109;
return r500111;
}




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