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



Bits error versus i
Results
if i < 245.0973832573261Initial program 45.2
Simplified0.0
rmApplied times-frac0.0
rmApplied div-inv0.0
if 245.0973832573261 < i Initial program 48.4
Simplified31.6
Taylor expanded around inf 0.0
Simplified0.0
Final simplification0.0
herbie shell --seed 2020078 +o rules:numerics
(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)))