\frac{1}{x \cdot x}\frac{\frac{1}{x}}{x}double f(double x) {
double r731030 = 1.0;
double r731031 = x;
double r731032 = r731031 * r731031;
double r731033 = r731030 / r731032;
return r731033;
}
double f(double x) {
double r731034 = 1.0;
double r731035 = x;
double r731036 = r731034 / r731035;
double r731037 = r731036 / r731035;
return r731037;
}




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)))