\frac{1}{x \cdot x}{x}^{-2} \cdot 1double code(double x) {
return ((double) (1.0 / ((double) (x * x))));
}
double code(double x) {
return ((double) (((double) pow(x, -2.0)) * 1.0));
}




Bits error versus x
Results
| Original | 0.6 |
|---|---|
| Target | 0.2 |
| Herbie | 0 |
Initial program 0.6
rmApplied associate-/r*0.2
rmApplied add-cube-cbrt0.9
Applied *-un-lft-identity0.9
Applied times-frac0.9
Applied associate-/l*0.9
Simplified0.9
rmApplied cbrt-unprod1.0
rmApplied associate-*r/1.0
Applied associate-/r/1.0
Simplified0
Final simplification0
herbie shell --seed 2020179
(FPCore (x)
:name "Numeric.SpecFunctions:$slogFactorial from math-functions-0.1.5.2, A"
:precision binary64
:herbie-target
(/ (/ 1.0 x) x)
(/ 1.0 (* x x)))