\frac{1}{x \cdot x}\frac{\frac{1}{x}}{x}double f(double x) {
double r2404 = 1.0;
double r2405 = x;
double r2406 = r2405 * r2405;
double r2407 = r2404 / r2406;
return r2407;
}
double f(double x) {
double r2408 = 1.0;
double r2409 = x;
double r2410 = r2408 / r2409;
double r2411 = r2410 / r2409;
return r2411;
}




Bits error versus x
Results
| Original | 0.7 |
|---|---|
| Target | 0.2 |
| Herbie | 0.2 |
Initial program 0.7
rmApplied associate-/r*0.2
Final simplification0.2
herbie shell --seed 2020025
(FPCore (x)
:name "Numeric.SpecFunctions:$slogFactorial from math-functions-0.1.5.2, A"
:precision binary64
:herbie-target
(/ (/ 1 x) x)
(/ 1 (* x x)))