\frac{1}{x \cdot x}\frac{\frac{1}{x}}{x}double f(double x) {
double r372367 = 1.0;
double r372368 = x;
double r372369 = r372368 * r372368;
double r372370 = r372367 / r372369;
return r372370;
}
double f(double x) {
double r372371 = 1.0;
double r372372 = x;
double r372373 = r372371 / r372372;
double r372374 = r372373 / r372372;
return r372374;
}




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