Average Error: 14.0 → 14.0
Time: 31.2s
Precision: 64
Internal Precision: 576
\[\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)}\]
\[(\left({\left((2 \cdot x + \left((F \cdot F + 2)_*\right))_*\right)}^{\frac{-1}{2}}\right) \cdot \left(\frac{\frac{1}{\sin B}}{\frac{1}{F}}\right) + \left(\cos B \cdot \frac{-x}{\sin B}\right))_*\]

Error

Bits error versus F

Bits error versus B

Bits error versus x

Derivation

  1. Initial program 14.0

    \[\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.9

    \[\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 clear-num13.9

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

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

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

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

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

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

Runtime

Time bar (total: 31.2s)Debug logProfile

BaselineHerbieOracleSpan%
Regimes14.014.013.40.60%
herbie shell --seed 2018286 +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))))))