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 r826191 = r;
double r826192 = b;
double r826193 = sin(r826192);
double r826194 = a;
double r826195 = r826194 + r826192;
double r826196 = cos(r826195);
double r826197 = r826193 / r826196;
double r826198 = r826191 * r826197;
return r826198;
}
double f(double r, double a, double b) {
double r826199 = r;
double r826200 = a;
double r826201 = cos(r826200);
double r826202 = b;
double r826203 = cos(r826202);
double r826204 = r826201 * r826203;
double r826205 = sin(r826202);
double r826206 = sin(r826200);
double r826207 = r826205 * r826206;
double r826208 = r826204 - r826207;
double r826209 = r826199 / r826208;
double r826210 = r826209 * r826205;
return r826210;
}



Bits error versus r



Bits error versus a



Bits error versus b
Results
Initial program 14.7
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 2019132 +o rules:numerics
(FPCore (r a b)
:name "r*sin(b)/cos(a+b), B"
(* r (/ (sin b) (cos (+ a b)))))