\frac{{d}^{2} \cdot \left(theta - \sin theta\right)}{8 \cdot {\left(\sin \left(\frac{theta}{2}\right)\right)}^{2}}\frac{{d}^{2} \cdot \left(theta - \sin theta\right)}{8 \cdot {\left(\sin \left(\frac{theta}{2}\right)\right)}^{2}}double code(double d, double theta) {
return ((double) (((double) (((double) pow(d, 2.0)) * ((double) (theta - ((double) sin(theta)))))) / ((double) (8.0 * ((double) pow(((double) sin(((double) (theta / 2.0)))), 2.0))))));
}
double code(double d, double theta) {
return ((double) (((double) (((double) pow(d, 2.0)) * ((double) (theta - ((double) sin(theta)))))) / ((double) (8.0 * ((double) pow(((double) sin(((double) (theta / 2.0)))), 2.0))))));
}



Bits error versus d



Bits error versus theta
Results
Initial program 34.7
Final simplification34.7
herbie shell --seed 2020152
(FPCore (d theta)
:name "(/ (* (pow d 2) (- theta (sin theta))) (* 8 (pow (sin (/ theta 2)) 2)))"
:precision binary64
(/ (* (pow d 2.0) (- theta (sin theta))) (* 8.0 (pow (sin (/ theta 2.0)) 2.0))))