x \cdot \frac{\sin y}{y}x \cdot \frac{1}{y \cdot \frac{1}{\sin y}}double code(double x, double y) {
return ((double) (x * ((double) (((double) sin(y)) / y))));
}
double code(double x, double y) {
return ((double) (x * ((double) (1.0 / ((double) (y * ((double) (1.0 / ((double) sin(y))))))))));
}



Bits error versus x



Bits error versus y
Results
Initial program 0.1
rmApplied clear-num0.2
rmApplied div-inv0.3
Final simplification0.3
herbie shell --seed 2020184
(FPCore (x y)
:name "Linear.Quaternion:$cexp from linear-1.19.1.3"
:precision binary64
(* x (/ (sin y) y)))