double code(double i) {
return (((i * i) * (i * i)) / ((2.0 * i) * (2.0 * i))) / (((2.0 * i) * (2.0 * i)) - 1.0);
}
double code(double i) {
return (1.0 / 2.0) / (2.0 * ((2.0 * 2.0) - (1.0 / (i * i))));
}



Bits error versus i
Results
Initial program 46.4
Simplified0.4
Final simplification0.4
herbie shell --seed 2020338
(FPCore (i)
:name "Octave 3.8, jcobi/4, as called"
:precision binary64
:pre (and (> i 0.0))
(/ (/ (* (* i i) (* i i)) (* (* 2.0 i) (* 2.0 i))) (- (* (* 2.0 i) (* 2.0 i)) 1.0)))