\frac{r \cdot \sin b}{\cos \left(a + b\right)}
\begin{array}{l}
t_0 := e^{\mathsf{log1p}\left(\sin b \cdot \sin a\right)}\\
\frac{r \cdot \sin b}{\mathsf{fma}\left(\cos b, \cos a, 1 - t_0\right) + \mathsf{fma}\left(-\sin b, \sin a, t_0 - 1\right)}
\end{array}
(FPCore (r a b) :precision binary64 (/ (* r (sin b)) (cos (+ a b))))
(FPCore (r a b)
:precision binary64
(let* ((t_0 (exp (log1p (* (sin b) (sin a))))))
(/
(* r (sin b))
(+
(fma (cos b) (cos a) (- 1.0 t_0))
(fma (- (sin b)) (sin a) (- t_0 1.0))))))double code(double r, double a, double b) {
return (r * sin(b)) / cos(a + b);
}
double code(double r, double a, double b) {
double t_0 = exp(log1p(sin(b) * sin(a)));
return (r * sin(b)) / (fma(cos(b), cos(a), (1.0 - t_0)) + fma(-sin(b), sin(a), (t_0 - 1.0)));
}



Bits error versus r



Bits error versus a



Bits error versus b
Initial program 14.8
Applied egg0.3
Applied egg0.4
Applied egg0.3
Final simplification0.3
herbie shell --seed 2022125
(FPCore (r a b)
:name "rsin A"
:precision binary64
(/ (* r (sin b)) (cos (+ a b))))