\frac{1}{x \cdot x}\frac{\frac{1}{x}}{x}double f(double x) {
double r459436 = 1.0;
double r459437 = x;
double r459438 = r459437 * r459437;
double r459439 = r459436 / r459438;
return r459439;
}
double f(double x) {
double r459440 = 1.0;
double r459441 = x;
double r459442 = r459440 / r459441;
double r459443 = r459442 / r459441;
return r459443;
}




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