\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}}{\left(2 \cdot i - \sqrt{1}\right) \cdot 2} \cdot \frac{i}{\sqrt{1} + 2 \cdot i}double f(double i) {
double r4877450 = i;
double r4877451 = r4877450 * r4877450;
double r4877452 = r4877451 * r4877451;
double r4877453 = 2.0;
double r4877454 = r4877453 * r4877450;
double r4877455 = r4877454 * r4877454;
double r4877456 = r4877452 / r4877455;
double r4877457 = 1.0;
double r4877458 = r4877455 - r4877457;
double r4877459 = r4877456 / r4877458;
return r4877459;
}
double f(double i) {
double r4877460 = i;
double r4877461 = 2.0;
double r4877462 = r4877460 / r4877461;
double r4877463 = r4877461 * r4877460;
double r4877464 = 1.0;
double r4877465 = sqrt(r4877464);
double r4877466 = r4877463 - r4877465;
double r4877467 = r4877466 * r4877461;
double r4877468 = r4877462 / r4877467;
double r4877469 = r4877465 + r4877463;
double r4877470 = r4877460 / r4877469;
double r4877471 = r4877468 * r4877470;
return r4877471;
}



Bits error versus i
Results
Initial program 46.5
Simplified15.3
rmApplied add-sqr-sqrt15.3
Applied difference-of-squares15.3
Applied div-inv15.3
Applied times-frac0.1
Applied associate-*l*0.1
Simplified0.0
Final simplification0.0
herbie shell --seed 2019200 +o rules:numerics
(FPCore (i)
:name "Octave 3.8, jcobi/4, as called"
:pre (and (> i 0.0))
(/ (/ (* (* i i) (* i i)) (* (* 2.0 i) (* 2.0 i))) (- (* (* 2.0 i) (* 2.0 i)) 1.0)))