\frac{r \cdot \sin b}{\cos \left(a + b\right)}r \cdot \frac{\sin b}{\mathsf{fma}\left(\cos a, \cos b, -\sin a \cdot \sin b\right)}double f(double r, double a, double b) {
double r16622 = r;
double r16623 = b;
double r16624 = sin(r16623);
double r16625 = r16622 * r16624;
double r16626 = a;
double r16627 = r16626 + r16623;
double r16628 = cos(r16627);
double r16629 = r16625 / r16628;
return r16629;
}
double f(double r, double a, double b) {
double r16630 = r;
double r16631 = b;
double r16632 = sin(r16631);
double r16633 = a;
double r16634 = cos(r16633);
double r16635 = cos(r16631);
double r16636 = sin(r16633);
double r16637 = r16636 * r16632;
double r16638 = -r16637;
double r16639 = fma(r16634, r16635, r16638);
double r16640 = r16632 / r16639;
double r16641 = r16630 * r16640;
return r16641;
}



Bits error versus r



Bits error versus a



Bits error versus b
Initial program 15.0
rmApplied cos-sum0.3
rmApplied fma-neg0.3
rmApplied *-un-lft-identity0.3
Applied times-frac0.3
Simplified0.3
Final simplification0.3
herbie shell --seed 2019351 +o rules:numerics
(FPCore (r a b)
:name "r*sin(b)/cos(a+b), A"
:precision binary64
(/ (* r (sin b)) (cos (+ a b))))