\frac{1}{x \cdot x}{x}^{-2} \cdot 1double f(double x) {
double r429094 = 1.0;
double r429095 = x;
double r429096 = r429095 * r429095;
double r429097 = r429094 / r429096;
return r429097;
}
double f(double x) {
double r429098 = x;
double r429099 = -2.0;
double r429100 = pow(r429098, r429099);
double r429101 = 1.0;
double r429102 = r429100 * r429101;
return r429102;
}




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