\frac{1}{x \cdot x}\frac{\frac{1}{x}}{x}double f(double x) {
double r269380 = 1.0;
double r269381 = x;
double r269382 = r269381 * r269381;
double r269383 = r269380 / r269382;
return r269383;
}
double f(double x) {
double r269384 = 1.0;
double r269385 = x;
double r269386 = r269384 / r269385;
double r269387 = r269386 / r269385;
return r269387;
}




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