\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 204.76020695153215:\\
\;\;\;\;\frac{i}{\left(2 \cdot i\right) \cdot \left(2 \cdot i\right) - 1} \cdot \frac{i}{2 \cdot 2}\\
\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 <= 204.76020695153215)) {
temp = ((i / (((2.0 * i) * (2.0 * i)) - 1.0)) * (i / (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 < 204.76020695153215Initial program 45.1
Simplified0.0
rmApplied times-frac0.0
if 204.76020695153215 < i Initial program 48.3
Simplified32.7
Taylor expanded around inf 0.0
Final simplification0.0
herbie shell --seed 2020057
(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)))