double f(double x) {
double r1884235 = 1.0;
double r1884236 = x;
double r1884237 = cos(r1884236);
double r1884238 = r1884235 - r1884237;
double r1884239 = r1884236 * r1884236;
double r1884240 = r1884238 / r1884239;
return r1884240;
}
double f(double x) {
double r1884241 = x;
double r1884242 = sin(r1884241);
double r1884243 = r1884242 / r1884241;
double r1884244 = r1884243 * r1884243;
double r1884245 = 1.0;
double r1884246 = cos(r1884241);
double r1884247 = r1884245 + r1884246;
double r1884248 = log(r1884247);
double r1884249 = exp(r1884248);
double r1884250 = r1884244 / r1884249;
return r1884250;
}
\frac{1 - \cos x}{x \cdot x}\frac{\frac{\sin x}{x} \cdot \frac{\sin x}{x}}{e^{\log \left(1 + \cos x\right)}}


Bits error versus x
Initial program 30.8
rmApplied flip--30.9
Applied associate-/l/30.9
Simplified15.2
Taylor expanded around -inf 15.2
Simplified0.3
rmApplied add-exp-log0.3
Final simplification0.3
herbie shell --seed 2019102
(FPCore (x)
:name "cos2 (problem 3.4.1)"
(/ (- 1 (cos x)) (* x x)))