r \cdot \frac{\sin b}{\cos \left(a + b\right)}\frac{r \cdot \sin b}{\cos b \cdot \cos a - \sin a \cdot \sin b}double f(double r, double a, double b) {
double r25702 = r;
double r25703 = b;
double r25704 = sin(r25703);
double r25705 = a;
double r25706 = r25705 + r25703;
double r25707 = cos(r25706);
double r25708 = r25704 / r25707;
double r25709 = r25702 * r25708;
return r25709;
}
double f(double r, double a, double b) {
double r25710 = r;
double r25711 = b;
double r25712 = sin(r25711);
double r25713 = r25710 * r25712;
double r25714 = cos(r25711);
double r25715 = a;
double r25716 = cos(r25715);
double r25717 = r25714 * r25716;
double r25718 = sin(r25715);
double r25719 = r25718 * r25712;
double r25720 = r25717 - r25719;
double r25721 = r25713 / r25720;
return r25721;
}



Bits error versus r



Bits error versus a



Bits error versus b
Results
Initial program 14.7
rmApplied cos-sum0.3
rmApplied add-cbrt-cube0.4
Applied add-cbrt-cube0.4
Applied cbrt-unprod0.4
Simplified0.4
rmApplied pow10.4
Applied pow10.4
Applied pow-prod-down0.4
Simplified0.3
Final simplification0.3
herbie shell --seed 2019325 +o rules:numerics
(FPCore (r a b)
:name "r*sin(b)/cos(a+b), B"
:precision binary64
(* r (/ (sin b) (cos (+ a b)))))