\frac{r \cdot \sin b}{\cos \left(a + b\right)}\frac{r}{\cos a \cdot \frac{\cos b}{\sin b} - \sin a}double f(double r, double a, double b) {
double r1055315 = r;
double r1055316 = b;
double r1055317 = sin(r1055316);
double r1055318 = r1055315 * r1055317;
double r1055319 = a;
double r1055320 = r1055319 + r1055316;
double r1055321 = cos(r1055320);
double r1055322 = r1055318 / r1055321;
return r1055322;
}
double f(double r, double a, double b) {
double r1055323 = r;
double r1055324 = a;
double r1055325 = cos(r1055324);
double r1055326 = b;
double r1055327 = cos(r1055326);
double r1055328 = sin(r1055326);
double r1055329 = r1055327 / r1055328;
double r1055330 = r1055325 * r1055329;
double r1055331 = sin(r1055324);
double r1055332 = r1055330 - r1055331;
double r1055333 = r1055323 / r1055332;
return r1055333;
}



Bits error versus r



Bits error versus a



Bits error versus b
Results
Initial program 15.0
rmApplied cos-sum0.3
Taylor expanded around -inf 0.3
Simplified0.4
Final simplification0.4
herbie shell --seed 2019119
(FPCore (r a b)
:name "r*sin(b)/cos(a+b), A"
(/ (* r (sin b)) (cos (+ a b))))