\frac{1}{x \cdot x}\frac{\frac{1}{x}}{x}double f(double x) {
double r536520 = 1.0;
double r536521 = x;
double r536522 = r536521 * r536521;
double r536523 = r536520 / r536522;
return r536523;
}
double f(double x) {
double r536524 = 1.0;
double r536525 = x;
double r536526 = r536524 / r536525;
double r536527 = r536526 / r536525;
return r536527;
}




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