\[\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: 6.2 s
Input Error: 0.1
Output Error: 0.1
Log:
Profile: 🕒
\(\left(-x \cdot \cot B\right) + {\left(\sin B\right)}^{-1}\)
  1. Started with
    \[\left(-x \cdot \cot B\right) + \frac{1}{\sin B}\]
    0.1
  2. Using strategy rm
    0.1
  3. Applied inv-pow to get
    \[\left(-x \cdot \cot B\right) + \color{red}{\frac{1}{\sin B}} \leadsto \left(-x \cdot \cot B\right) + \color{blue}{{\left(\sin B\right)}^{-1}}\]
    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))))