r \cdot \frac{\sin b}{\cos \left(a + b\right)}\frac{\sin b \cdot r}{\cos a \cdot \cos b - \sin b \cdot \sin a}(FPCore (r a b) :precision binary64 (* r (/ (sin b) (cos (+ a b)))))
(FPCore (r a b) :precision binary64 (/ (* (sin b) r) (- (* (cos a) (cos b)) (* (sin b) (sin a)))))
double code(double r, double a, double b) {
return ((double) (r * (((double) sin(b)) / ((double) cos(((double) (a + b)))))));
}
double code(double r, double a, double b) {
return (((double) (((double) sin(b)) * r)) / ((double) (((double) (((double) cos(a)) * ((double) cos(b)))) - ((double) (((double) sin(b)) * ((double) sin(a)))))));
}



Bits error versus r



Bits error versus a



Bits error versus b
Results
Initial program 14.7
rmApplied cos-sum_binary640.3
rmApplied associate-*r/_binary640.3
Simplified0.3
Final simplification0.3
herbie shell --seed 2020219
(FPCore (r a b)
:name "rsin B"
:precision binary64
(* r (/ (sin b) (cos (+ a b)))))