\[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.6 s
Input Error: 14.6
Output Error: 0.4
Log:
Profile: 🕒
\(r \cdot \frac{1}{\frac{\cos a}{\frac{\sin b}{\cos b}} - \sin a}\)
  1. Started with
    \[r \cdot \frac{\sin b}{\cos \left(a + b\right)}\]
    14.6
  2. Using strategy rm
    14.6
  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 clear-num to get
    \[r \cdot \color{red}{\frac{\sin b}{\cos a \cdot \cos b - \sin a \cdot \sin b}} \leadsto r \cdot \color{blue}{\frac{1}{\frac{\cos a \cdot \cos b - \sin a \cdot \sin b}{\sin b}}}\]
    0.4
  6. Applied simplify to get
    \[r \cdot \frac{1}{\color{red}{\frac{\cos a \cdot \cos b - \sin a \cdot \sin b}{\sin b}}} \leadsto r \cdot \frac{1}{\color{blue}{\frac{\cos a}{\frac{\sin b}{\cos b}} - \sin a}}\]
    0.4

  7. Removed slow pow expressions

Original test:


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