\frac{1}{x \cdot x}\frac{\frac{1}{x}}{x}double f(double x) {
double r324509 = 1.0;
double r324510 = x;
double r324511 = r324510 * r324510;
double r324512 = r324509 / r324511;
return r324512;
}
double f(double x) {
double r324513 = 1.0;
double r324514 = x;
double r324515 = r324513 / r324514;
double r324516 = r324515 / r324514;
return r324516;
}




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