\frac{1}{x \cdot x}\frac{\frac{1}{x}}{x}double f(double x) {
double r383320 = 1.0;
double r383321 = x;
double r383322 = r383321 * r383321;
double r383323 = r383320 / r383322;
return r383323;
}
double f(double x) {
double r383324 = 1.0;
double r383325 = x;
double r383326 = r383324 / r383325;
double r383327 = r383326 / r383325;
return r383327;
}




Bits error versus x
Results
| Original | 0.5 |
|---|---|
| Target | 0.2 |
| Herbie | 0.2 |
Initial program 0.5
rmApplied associate-/r*0.2
Final simplification0.2
herbie shell --seed 2019294
(FPCore (x)
:name "Numeric.SpecFunctions:$slogFactorial from math-functions-0.1.5.2, A"
:precision binary64
:herbie-target
(/ (/ 1 x) x)
(/ 1 (* x x)))