double code(double r, double a, double b) {
return ((double) (r * ((double) (((double) sin(b)) / ((double) cos(((double) (a + b))))))));
}
double code(double r, double a, double b) {
return ((double) (((double) sin(b)) * ((double) (r / ((double) (((double) (((double) cos(a)) * ((double) cos(b)))) - ((double) cbrt(((double) pow(((double) (((double) sin(b)) * ((double) sin(a)))), 3.0))))))))));
}



Bits error versus r



Bits error versus a



Bits error versus b
Results
Initial program 15.1
rmApplied cos-sum0.3
rmApplied associate-*r/0.3
Simplified0.3
rmApplied *-un-lft-identity0.3
Applied times-frac0.4
Simplified0.4
Simplified0.4
rmApplied add-cbrt-cube0.4
Applied add-cbrt-cube0.4
Applied cbrt-unprod0.4
Simplified0.4
Final simplification0.4
herbie shell --seed 2020181
(FPCore (r a b)
:name "rsin B"
:precision binary64
(* r (/ (sin b) (cos (+ a b)))))