\[\left(-x \cdot \cot B\right) + \frac{1}{\sin B}\]
Test:
VandenBroeck and Keller, Equation (24)
Bits:
128 bits
Bits error versus B
Bits error versus x
Time: 5.7 s
Input Error: 0.1
Output Error: 0.1
Log:
Profile: 🕒
\(\left(-{\left(x \cdot \cot B\right)}^{1}\right) + \frac{1}{\sin B}\)
  1. Started with
    \[\left(-x \cdot \cot B\right) + \frac{1}{\sin B}\]
    0.1
  2. Using strategy rm
    0.1
  3. Applied pow1 to get
    \[\left(-\color{red}{x \cdot \cot B}\right) + \frac{1}{\sin B} \leadsto \left(-\color{blue}{{\left(x \cdot \cot B\right)}^{1}}\right) + \frac{1}{\sin B}\]
    0.1

  4. Removed slow pow expressions

Original test:


(lambda ((B default) (x default))
  #:name "VandenBroeck and Keller, Equation (24)"
  (+ (- (* x (cotan B))) (/ 1 (sin B))))