\[r \cdot \frac{\sin b}{\cos \left(a + b\right)}\]
Test:
r*sin(b)/cos(a+b), B
Bits:
128 bits
Bits error versus r
Bits error versus a
Bits error versus b
Time: 9.9 s
Input Error: 14.9
Output Error: 0.3
Log:
Profile: 🕒
\(\frac{r \cdot \sin b}{\cos a \cdot \cos b - \sin a \cdot \sin b}\)
  1. Started with
    \[r \cdot \frac{\sin b}{\cos \left(a + b\right)}\]
    14.9
  2. Using strategy rm
    14.9
  3. Applied cos-sum to get
    \[r \cdot \frac{\sin b}{\color{red}{\cos \left(a + b\right)}} \leadsto r \cdot \frac{\sin b}{\color{blue}{\cos a \cdot \cos b - \sin a \cdot \sin b}}\]
    0.3
  4. Using strategy rm
    0.3
  5. Applied associate-*r/ to get
    \[\color{red}{r \cdot \frac{\sin b}{\cos a \cdot \cos b - \sin a \cdot \sin b}} \leadsto \color{blue}{\frac{r \cdot \sin b}{\cos a \cdot \cos b - \sin a \cdot \sin b}}\]
    0.3

Original test:


(lambda ((r default) (a default) (b default))
  #:name "r*sin(b)/cos(a+b), B"
  (* r (/ (sin b) (cos (+ a b)))))