\frac{\frac{\left(i \cdot i\right) \cdot \left(i \cdot i\right)}{\left(2 \cdot i\right) \cdot \left(2 \cdot i\right)}}{\left(2 \cdot i\right) \cdot \left(2 \cdot i\right) - 1}\frac{\frac{1}{2}}{2 \cdot \left(2 \cdot 2 - \frac{1}{i \cdot i}\right)}(FPCore (i) :precision binary64 (/ (/ (* (* i i) (* i i)) (* (* 2.0 i) (* 2.0 i))) (- (* (* 2.0 i) (* 2.0 i)) 1.0)))
(FPCore (i) :precision binary64 (/ (/ 1.0 2.0) (* 2.0 (- (* 2.0 2.0) (/ 1.0 (* i i))))))
double code(double i) {
return ((((double) (((double) (i * i)) * ((double) (i * i)))) / ((double) (((double) (2.0 * i)) * ((double) (2.0 * i))))) / ((double) (((double) (((double) (2.0 * i)) * ((double) (2.0 * i)))) - 1.0)));
}
double code(double i) {
return ((1.0 / 2.0) / ((double) (2.0 * ((double) (((double) (2.0 * 2.0)) - (1.0 / ((double) (i * i))))))));
}



Bits error versus i
Results
Initial program 46.6
Simplified0.4
Final simplification0.4
herbie shell --seed 2020205
(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)))