r \cdot \frac{\sin b}{\cos \left(a + b\right)}r \cdot \frac{\sin b}{\mathsf{fma}\left(\cos a, \cos b, -\log \left(e^{\sin a \cdot \sin b}\right)\right)}double f(double r, double a, double b) {
double r17273 = r;
double r17274 = b;
double r17275 = sin(r17274);
double r17276 = a;
double r17277 = r17276 + r17274;
double r17278 = cos(r17277);
double r17279 = r17275 / r17278;
double r17280 = r17273 * r17279;
return r17280;
}
double f(double r, double a, double b) {
double r17281 = r;
double r17282 = b;
double r17283 = sin(r17282);
double r17284 = a;
double r17285 = cos(r17284);
double r17286 = cos(r17282);
double r17287 = sin(r17284);
double r17288 = r17287 * r17283;
double r17289 = exp(r17288);
double r17290 = log(r17289);
double r17291 = -r17290;
double r17292 = fma(r17285, r17286, r17291);
double r17293 = r17283 / r17292;
double r17294 = r17281 * r17293;
return r17294;
}



Bits error versus r



Bits error versus a



Bits error versus b
Initial program 15.1
rmApplied cos-sum0.3
rmApplied fma-neg0.3
rmApplied add-log-exp0.4
Final simplification0.4
herbie shell --seed 2020060 +o rules:numerics
(FPCore (r a b)
:name "r*sin(b)/cos(a+b), B"
:precision binary64
(* r (/ (sin b) (cos (+ a b)))))