\frac{1}{x \cdot x}\frac{\frac{1}{x}}{x}double f(double x) {
double r425630 = 1.0;
double r425631 = x;
double r425632 = r425631 * r425631;
double r425633 = r425630 / r425632;
return r425633;
}
double f(double x) {
double r425634 = 1.0;
double r425635 = x;
double r425636 = r425634 / r425635;
double r425637 = r425636 / r425635;
return r425637;
}




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