r \cdot \frac{\sin b}{\cos \left(a + b\right)}\frac{r}{\cos a \cdot \cos b - \sin b \cdot \sin a} \cdot \sin bdouble f(double r, double a, double b) {
double r795322 = r;
double r795323 = b;
double r795324 = sin(r795323);
double r795325 = a;
double r795326 = r795325 + r795323;
double r795327 = cos(r795326);
double r795328 = r795324 / r795327;
double r795329 = r795322 * r795328;
return r795329;
}
double f(double r, double a, double b) {
double r795330 = r;
double r795331 = a;
double r795332 = cos(r795331);
double r795333 = b;
double r795334 = cos(r795333);
double r795335 = r795332 * r795334;
double r795336 = sin(r795333);
double r795337 = sin(r795331);
double r795338 = r795336 * r795337;
double r795339 = r795335 - r795338;
double r795340 = r795330 / r795339;
double r795341 = r795340 * r795336;
return r795341;
}



Bits error versus r



Bits error versus a



Bits error versus b
Results
Initial program 15.2
rmApplied cos-sum0.3
Taylor expanded around -inf 0.3
rmApplied *-un-lft-identity0.3
Applied times-frac0.3
Simplified0.3
Final simplification0.3
herbie shell --seed 2019141 +o rules:numerics
(FPCore (r a b)
:name "r*sin(b)/cos(a+b), B"
(* r (/ (sin b) (cos (+ a b)))))