{\left(\sin \left(\frac{theta}{2}\right)\right)}^{2}{\left(\sin \left(\frac{theta}{2}\right)\right)}^{2}double code(double theta) {
return ((double) pow(((double) sin(((double) (theta / 2.0)))), 2.0));
}
double code(double theta) {
return ((double) pow(((double) sin(((double) (theta / 2.0)))), 2.0));
}



Bits error versus theta
Results
Initial program 0.3
Final simplification0.3
herbie shell --seed 2020152
(FPCore (theta)
:name "(pow (sin (/ theta 2)) 2)"
:precision binary64
(pow (sin (/ theta 2.0)) 2.0))