\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 r57646 = i;
double r57647 = r57646 * r57646;
double r57648 = r57647 * r57647;
double r57649 = 2.0;
double r57650 = r57649 * r57646;
double r57651 = r57650 * r57650;
double r57652 = r57648 / r57651;
double r57653 = 1.0;
double r57654 = r57651 - r57653;
double r57655 = r57652 / r57654;
return r57655;
}
double f(double i) {
double r57656 = 1.0;
double r57657 = 2.0;
double r57658 = r57656 / r57657;
double r57659 = 1.0;
double r57660 = sqrt(r57659);
double r57661 = i;
double r57662 = r57660 / r57661;
double r57663 = r57657 + r57662;
double r57664 = r57658 / r57663;
double r57665 = r57657 - r57662;
double r57666 = r57658 / r57665;
double r57667 = r57664 * r57666;
return r57667;
}



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 2019212
(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)))