\frac{1}{x \cdot x}\frac{\frac{1}{x}}{x}double f(double x) {
double r532093 = 1.0;
double r532094 = x;
double r532095 = r532094 * r532094;
double r532096 = r532093 / r532095;
return r532096;
}
double f(double x) {
double r532097 = 1.0;
double r532098 = x;
double r532099 = r532097 / r532098;
double r532100 = r532099 / r532098;
return r532100;
}




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