\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}\begin{array}{l}
\mathbf{if}\;i \le 219.764984409217874:\\
\;\;\;\;\frac{i \cdot i}{\left(\left(2 \cdot i + \sqrt{1}\right) \cdot \left(2 \cdot i - \sqrt{1}\right)\right) \cdot \left(2 \cdot 2\right)}\\
\mathbf{else}:\\
\;\;\;\;0.00390625 \cdot \frac{1}{{i}^{4}} + \left(0.015625 \cdot \frac{1}{{i}^{2}} + 0.0625\right)\\
\end{array}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) {
double temp;
if ((i <= 219.76498440921787)) {
temp = ((i * i) / ((((2.0 * i) + sqrt(1.0)) * ((2.0 * i) - sqrt(1.0))) * (2.0 * 2.0)));
} else {
temp = ((0.00390625 * (1.0 / pow(i, 4.0))) + ((0.015625 * (1.0 / pow(i, 2.0))) + 0.0625));
}
return temp;
}



Bits error versus i
Results
if i < 219.76498440921787Initial program 44.4
Simplified0.0
rmApplied add-sqr-sqrt0.0
Applied difference-of-squares0.0
if 219.76498440921787 < i Initial program 48.4
Simplified32.4
Taylor expanded around inf 0.0
Final simplification0.0
herbie shell --seed 2020049
(FPCore (i)
:name "Octave 3.8, jcobi/4, as called"
:precision binary64
:pre (and (> i 0.0))
(/ (/ (* (* i i) (* i i)) (* (* 2 i) (* 2 i))) (- (* (* 2 i) (* 2 i)) 1)))