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



Bits error versus i
Results
Initial program 46.3
Simplified15.7
rmApplied add-sqr-sqrt15.7
Applied difference-of-squares15.7
Applied associate-*l*15.7
Applied times-frac0.1
Simplified0.0
Final simplification0.0
herbie shell --seed 2020066 +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)))