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 r27835 = r;
double r27836 = b;
double r27837 = sin(r27836);
double r27838 = a;
double r27839 = r27838 + r27836;
double r27840 = cos(r27839);
double r27841 = r27837 / r27840;
double r27842 = r27835 * r27841;
return r27842;
}
double f(double r, double a, double b) {
double r27843 = b;
double r27844 = sin(r27843);
double r27845 = r;
double r27846 = a;
double r27847 = cos(r27846);
double r27848 = cos(r27843);
double r27849 = r27847 * r27848;
double r27850 = sin(r27846);
double r27851 = r27844 * r27850;
double r27852 = exp(r27851);
double r27853 = log(r27852);
double r27854 = r27849 - r27853;
double r27855 = r27845 / r27854;
double r27856 = r27844 * r27855;
return r27856;
}



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)))))