\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{1}{2}}{2 + \frac{\sqrt{1}}{i}} \cdot \frac{\frac{1}{2}}{2 - \frac{\sqrt{1}}{i}}double f(double i) {
double r71847 = i;
double r71848 = r71847 * r71847;
double r71849 = r71848 * r71848;
double r71850 = 2.0;
double r71851 = r71850 * r71847;
double r71852 = r71851 * r71851;
double r71853 = r71849 / r71852;
double r71854 = 1.0;
double r71855 = r71852 - r71854;
double r71856 = r71853 / r71855;
return r71856;
}
double f(double i) {
double r71857 = 1.0;
double r71858 = 2.0;
double r71859 = r71857 / r71858;
double r71860 = 1.0;
double r71861 = sqrt(r71860);
double r71862 = i;
double r71863 = r71861 / r71862;
double r71864 = r71858 + r71863;
double r71865 = r71859 / r71864;
double r71866 = r71858 - r71863;
double r71867 = r71859 / r71866;
double r71868 = r71865 * r71867;
return r71868;
}



Bits error versus i
Results
Initial program 47.0
Simplified0.3
rmApplied add-sqr-sqrt0.3
Applied times-frac0.4
Applied difference-of-squares0.4
Applied add-sqr-sqrt1.4
Applied add-sqr-sqrt1.9
Applied add-cube-cbrt1.9
Applied times-frac1.9
Applied times-frac1.4
Applied times-frac1.1
Simplified0.7
Simplified0.1
Final simplification0.1
herbie shell --seed 2019209
(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)))