r \cdot \frac{\sin b}{\cos \left(a + b\right)}\sin b \cdot \frac{r}{\cos a \cdot \cos b - \log \left(e^{\sin b \cdot \sin a}\right)}double f(double r, double a, double b) {
double r27839 = r;
double r27840 = b;
double r27841 = sin(r27840);
double r27842 = a;
double r27843 = r27842 + r27840;
double r27844 = cos(r27843);
double r27845 = r27841 / r27844;
double r27846 = r27839 * r27845;
return r27846;
}
double f(double r, double a, double b) {
double r27847 = b;
double r27848 = sin(r27847);
double r27849 = r;
double r27850 = a;
double r27851 = cos(r27850);
double r27852 = cos(r27847);
double r27853 = r27851 * r27852;
double r27854 = sin(r27850);
double r27855 = r27848 * r27854;
double r27856 = exp(r27855);
double r27857 = log(r27856);
double r27858 = r27853 - r27857;
double r27859 = r27849 / r27858;
double r27860 = r27848 * r27859;
return r27860;
}



Bits error versus r



Bits error versus a



Bits error versus b
Results
Initial program 14.5
Simplified14.5
rmApplied cos-sum0.3
Simplified0.3
Simplified0.3
rmApplied add-cbrt-cube0.4
Applied add-cbrt-cube0.4
Applied cbrt-unprod0.4
Simplified0.4
rmApplied add-log-exp0.4
Simplified0.4
Final simplification0.4
herbie shell --seed 2019194
(FPCore (r a b)
:name "r*sin(b)/cos(a+b), B"
(* r (/ (sin b) (cos (+ a b)))))