\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{0.5}{2 + \frac{1}{i}} \cdot \frac{0.5}{2 - \frac{1}{i}}(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 (* (/ 0.5 (+ 2.0 (/ 1.0 i))) (/ 0.5 (- 2.0 (/ 1.0 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 ((double) ((0.5 / ((double) (2.0 + (1.0 / i)))) * (0.5 / ((double) (2.0 - (1.0 / i))))));
}



Bits error versus i
Results
Initial program 47.0
Simplified0.3
rmApplied add-sqr-sqrt_binary640.3
Applied times-frac_binary640.4
Applied add-sqr-sqrt_binary640.4
Applied difference-of-squares_binary640.4
Applied add-sqr-sqrt_binary640.4
Applied times-frac_binary640.1
Simplified0.1
Simplified0.1
Final simplification0.1
herbie shell --seed 2020219
(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)))