\frac{1}{x \cdot x}\frac{\frac{1}{x}}{x}double f(double x) {
double r304015 = 1.0;
double r304016 = x;
double r304017 = r304016 * r304016;
double r304018 = r304015 / r304017;
return r304018;
}
double f(double x) {
double r304019 = 1.0;
double r304020 = x;
double r304021 = r304019 / r304020;
double r304022 = r304021 / r304020;
return r304022;
}




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