Average Error: 13.4 → 10.5
Time: 11.3s
Precision: binary64
\[\left(-x \cdot \frac{1}{\tan B}\right) + \frac{F}{\sin B} \cdot {\left(\left(F \cdot F + 2\right) + 2 \cdot x\right)}^{\left(-\frac{1}{2}\right)}\]
\[\frac{\frac{F}{{\left(F \cdot F + \left(2 + 2 \cdot x\right)\right)}^{\left(\frac{1}{2}\right)}}}{\sin B} - 1 \cdot \left(\frac{x}{\sin B} \cdot \cos B\right)\]

Error

Bits error versus F

Bits error versus B

Bits error versus x

Derivation

  1. Initial program 13.4

    \[\left(-x \cdot \frac{1}{\tan B}\right) + \frac{F}{\sin B} \cdot {\left(\left(F \cdot F + 2\right) + 2 \cdot x\right)}^{\left(-\frac{1}{2}\right)}\]
  2. Simplified10.5

    \[\leadsto \color{blue}{F \cdot \frac{{\left(F \cdot F + \left(2 + x \cdot 2\right)\right)}^{\left(\frac{-1}{2}\right)}}{\sin B} - x \cdot \frac{1}{\tan B}}\]
  3. Using strategy rm
  4. Applied associate-*r/10.5

    \[\leadsto \color{blue}{\frac{F \cdot {\left(F \cdot F + \left(2 + x \cdot 2\right)\right)}^{\left(\frac{-1}{2}\right)}}{\sin B}} - x \cdot \frac{1}{\tan B}\]
  5. Simplified10.5

    \[\leadsto \frac{\color{blue}{F \cdot {\left(F \cdot F + \left(2 + 2 \cdot x\right)\right)}^{\left(\frac{-1}{2}\right)}}}{\sin B} - x \cdot \frac{1}{\tan B}\]
  6. Using strategy rm
  7. Applied distribute-frac-neg10.5

    \[\leadsto \frac{F \cdot {\left(F \cdot F + \left(2 + 2 \cdot x\right)\right)}^{\color{blue}{\left(-\frac{1}{2}\right)}}}{\sin B} - x \cdot \frac{1}{\tan B}\]
  8. Applied pow-neg10.5

    \[\leadsto \frac{F \cdot \color{blue}{\frac{1}{{\left(F \cdot F + \left(2 + 2 \cdot x\right)\right)}^{\left(\frac{1}{2}\right)}}}}{\sin B} - x \cdot \frac{1}{\tan B}\]
  9. Applied un-div-inv10.5

    \[\leadsto \frac{\color{blue}{\frac{F}{{\left(F \cdot F + \left(2 + 2 \cdot x\right)\right)}^{\left(\frac{1}{2}\right)}}}}{\sin B} - x \cdot \frac{1}{\tan B}\]
  10. Taylor expanded around inf 10.5

    \[\leadsto \frac{\frac{F}{{\left(F \cdot F + \left(2 + 2 \cdot x\right)\right)}^{\left(\frac{1}{2}\right)}}}{\sin B} - \color{blue}{1 \cdot \frac{x \cdot \cos B}{\sin B}}\]
  11. Simplified10.5

    \[\leadsto \frac{\frac{F}{{\left(F \cdot F + \left(2 + 2 \cdot x\right)\right)}^{\left(\frac{1}{2}\right)}}}{\sin B} - \color{blue}{1 \cdot \left(\frac{x}{\sin B} \cdot \cos B\right)}\]
  12. Final simplification10.5

    \[\leadsto \frac{\frac{F}{{\left(F \cdot F + \left(2 + 2 \cdot x\right)\right)}^{\left(\frac{1}{2}\right)}}}{\sin B} - 1 \cdot \left(\frac{x}{\sin B} \cdot \cos B\right)\]

Reproduce

herbie shell --seed 2020185 
(FPCore (F B x)
  :name "VandenBroeck and Keller, Equation (23)"
  :precision binary64
  (+ (neg (* x (/ 1.0 (tan B)))) (* (/ F (sin B)) (pow (+ (+ (* F F) 2.0) (* 2.0 x)) (neg (/ 1.0 2.0))))))