\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 2205.1788338000024:\\
\;\;\;\;\frac{i \cdot i}{\left(\left(2 \cdot i\right) \cdot \left(2 \cdot i\right) - 1\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 VAR;
if ((i <= 2205.1788338000024)) {
VAR = ((i * i) / ((((2.0 * i) * (2.0 * i)) - 1.0) * (2.0 * 2.0)));
} else {
VAR = ((0.00390625 * (1.0 / pow(i, 4.0))) + ((0.015625 * (1.0 / pow(i, 2.0))) + 0.0625));
}
return VAR;
}



Bits error versus i
Results
if i < 2205.1788338000024Initial program 44.7
Simplified0.0
if 2205.1788338000024 < i Initial program 48.6
Simplified32.0
Taylor expanded around inf 0.0
Final simplification0.0
herbie shell --seed 2020091
(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)))