Average Error: 13.4 → 10.6
Time: 57.5s
Precision: 64
Internal Precision: 128
\[\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)}\]
\[\cos B \cdot \frac{-x}{\sin B} + \frac{1}{\sin B} \cdot \left({\left((2 \cdot x + \left((F \cdot F + 2)_*\right))_*\right)}^{\frac{-1}{2}} \cdot F\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. Initial simplification13.3

    \[\leadsto (\left({\left((2 \cdot x + \left((F \cdot F + 2)_*\right))_*\right)}^{\frac{-1}{2}}\right) \cdot \left(\frac{F}{\sin B}\right) + \left(\frac{-x}{\tan B}\right))_*\]
  3. Using strategy rm
  4. Applied div-inv13.3

    \[\leadsto (\left({\left((2 \cdot x + \left((F \cdot F + 2)_*\right))_*\right)}^{\frac{-1}{2}}\right) \cdot \color{blue}{\left(F \cdot \frac{1}{\sin B}\right)} + \left(\frac{-x}{\tan B}\right))_*\]
  5. Using strategy rm
  6. Applied fma-udef13.3

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

    \[\leadsto \color{blue}{\left({\left((2 \cdot x + \left((F \cdot F + 2)_*\right))_*\right)}^{\frac{-1}{2}} \cdot F\right) \cdot \frac{1}{\sin B}} + \frac{-x}{\tan B}\]
  9. Using strategy rm
  10. Applied tan-quot10.6

    \[\leadsto \left({\left((2 \cdot x + \left((F \cdot F + 2)_*\right))_*\right)}^{\frac{-1}{2}} \cdot F\right) \cdot \frac{1}{\sin B} + \frac{-x}{\color{blue}{\frac{\sin B}{\cos B}}}\]
  11. Applied associate-/r/10.6

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

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

Runtime

Time bar (total: 57.5s)Debug logProfile

herbie shell --seed 2018349 +o rules:numerics
(FPCore (F B x)
  :name "VandenBroeck and Keller, Equation (23)"
  (+ (- (* x (/ 1 (tan B)))) (* (/ F (sin B)) (pow (+ (+ (* F F) 2) (* 2 x)) (- (/ 1 2))))))