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



Bits error versus i
Results
Initial program 46.8
Simplified15.7
rmApplied times-frac15.3
rmApplied add-sqr-sqrt15.3
Applied difference-of-squares15.3
Applied *-un-lft-identity15.3
Applied times-frac0.1
Applied associate-*l*0.1
rmApplied associate-*l/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)))