\frac{1}{x \cdot x}\frac{\frac{1}{x}}{x}double f(double x) {
double r321937 = 1.0;
double r321938 = x;
double r321939 = r321938 * r321938;
double r321940 = r321937 / r321939;
return r321940;
}
double f(double x) {
double r321941 = 1.0;
double r321942 = x;
double r321943 = r321941 / r321942;
double r321944 = r321943 / r321942;
return r321944;
}




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