\frac{\left(\frac{\left(\left(i \cdot i\right) \cdot \left(i \cdot i\right)\right)}{\left(\left(\left(2\right) \cdot i\right) \cdot \left(\left(2\right) \cdot i\right)\right)}\right)}{\left(\left(\left(\left(2\right) \cdot i\right) \cdot \left(\left(2\right) \cdot i\right)\right) - \left(1.0\right)\right)}\frac{i}{\left(2 \cdot i + 1.0\right) \cdot \frac{2}{1.0}} \cdot \frac{\frac{i}{\frac{2}{1.0}}}{\left(\mathsf{qms}\left(\left(\left(2 \cdot i\right)\right), 1.0, 1.0\right)\right)}double f(double i) {
double r1182114 = i;
double r1182115 = r1182114 * r1182114;
double r1182116 = r1182115 * r1182115;
double r1182117 = 2.0;
double r1182118 = /* ERROR: no posit support in C */;
double r1182119 = r1182118 * r1182114;
double r1182120 = r1182119 * r1182119;
double r1182121 = r1182116 / r1182120;
double r1182122 = 1.0;
double r1182123 = /* ERROR: no posit support in C */;
double r1182124 = r1182120 - r1182123;
double r1182125 = r1182121 / r1182124;
return r1182125;
}
double f(double i) {
double r1182126 = i;
double r1182127 = 2.0;
double r1182128 = r1182127 * r1182126;
double r1182129 = 1.0;
double r1182130 = r1182128 + r1182129;
double r1182131 = r1182127 / r1182129;
double r1182132 = r1182130 * r1182131;
double r1182133 = r1182126 / r1182132;
double r1182134 = r1182126 / r1182131;
double r1182135 = /*Error: no posit support in C */;
double r1182136 = /*Error: no posit support in C */;
double r1182137 = /*Error: no posit support in C */;
double r1182138 = r1182134 / r1182137;
double r1182139 = r1182133 * r1182138;
return r1182139;
}



Bits error versus i
Initial program 2.4
rmApplied p16-*-un-lft-identity2.4
Applied associate-/r*2.4
Simplified0.9
rmApplied *p16-rgt-identity-expand0.9
Applied difference-of-squares0.8
Applied p16-times-frac0.4
rmApplied *p16-rgt-identity-expand0.4
Applied introduce-quire0.4
Applied insert-quire-fdp-sub0.4
rmApplied associate-/l/0.4
Final simplification0.4
herbie shell --seed 2019152 +o rules:numerics
(FPCore (i)
:name "Octave 3.8, jcobi/4, as called"
:pre (and (>.p16 i (real->posit16 0)))
(/.p16 (/.p16 (*.p16 (*.p16 i i) (*.p16 i i)) (*.p16 (*.p16 (real->posit16 2) i) (*.p16 (real->posit16 2) i))) (-.p16 (*.p16 (*.p16 (real->posit16 2) i) (*.p16 (real->posit16 2) i)) (real->posit16 1.0))))