\frac{1}{x \cdot x}{x}^{-2} \cdot 1double f(double x) {
double r377877 = 1.0;
double r377878 = x;
double r377879 = r377878 * r377878;
double r377880 = r377877 / r377879;
return r377880;
}
double f(double x) {
double r377881 = x;
double r377882 = -2.0;
double r377883 = pow(r377881, r377882);
double r377884 = 1.0;
double r377885 = r377883 * r377884;
return r377885;
}




Bits error versus x
Results
| Original | 0.5 |
|---|---|
| Target | 0.2 |
| Herbie | 0 |
Initial program 0.5
rmApplied div-inv0.5
Simplified0.2
rmApplied pow10.2
Applied inv-pow0.2
Applied pow-div0
Simplified0
Final simplification0
herbie shell --seed 2019194
(FPCore (x)
:name "Numeric.SpecFunctions:$slogFactorial from math-functions-0.1.5.2, A"
:herbie-target
(/ (/ 1.0 x) x)
(/ 1.0 (* x x)))