r \cdot \frac{\sin b}{\cos \left(a + b\right)}\frac{r \cdot \sin b}{\cos a \cdot \cos b - \log \left(e^{\sin a \cdot \sin b}\right)}double f(double r, double a, double b) {
double r1124781 = r;
double r1124782 = b;
double r1124783 = sin(r1124782);
double r1124784 = a;
double r1124785 = r1124784 + r1124782;
double r1124786 = cos(r1124785);
double r1124787 = r1124783 / r1124786;
double r1124788 = r1124781 * r1124787;
return r1124788;
}
double f(double r, double a, double b) {
double r1124789 = r;
double r1124790 = b;
double r1124791 = sin(r1124790);
double r1124792 = r1124789 * r1124791;
double r1124793 = a;
double r1124794 = cos(r1124793);
double r1124795 = cos(r1124790);
double r1124796 = r1124794 * r1124795;
double r1124797 = sin(r1124793);
double r1124798 = r1124797 * r1124791;
double r1124799 = exp(r1124798);
double r1124800 = log(r1124799);
double r1124801 = r1124796 - r1124800;
double r1124802 = r1124792 / r1124801;
return r1124802;
}



Bits error versus r



Bits error versus a



Bits error versus b
Results
Initial program 14.5
rmApplied +-commutative14.5
Applied cos-sum0.3
rmApplied div-inv0.4
Applied associate-*r*0.4
Taylor expanded around inf 0.3
rmApplied add-log-exp0.4
Final simplification0.4
herbie shell --seed 2019158
(FPCore (r a b)
:name "r*sin(b)/cos(a+b), B"
(* r (/ (sin b) (cos (+ a b)))))