\frac{1}{x \cdot x}\frac{\frac{1}{x}}{x}double f(double x) {
double r487603 = 1.0;
double r487604 = x;
double r487605 = r487604 * r487604;
double r487606 = r487603 / r487605;
return r487606;
}
double f(double x) {
double r487607 = 1.0;
double r487608 = x;
double r487609 = r487607 / r487608;
double r487610 = r487609 / r487608;
return r487610;
}




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