\frac{1}{x \cdot x}\frac{\frac{1}{x}}{x}double f(double x) {
double r493110 = 1.0;
double r493111 = x;
double r493112 = r493111 * r493111;
double r493113 = r493110 / r493112;
return r493113;
}
double f(double x) {
double r493114 = 1.0;
double r493115 = x;
double r493116 = r493114 / r493115;
double r493117 = r493116 / r493115;
return r493117;
}




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