Average Error: 13.8 → 10.9
Time: 2.4m
Precision: 64
Internal Precision: 384
\[\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{-x}{\tan B} + \left({\left(\left(x + x\right) + \left(2 + F \cdot F\right)\right)}^{\left(-\frac{1}{2}\right)} \cdot F\right) \cdot \frac{1}{\sin B}\]

Error

Bits error versus F

Bits error versus B

Bits error versus x

Derivation

  1. Initial program 13.8

    \[\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. Applied simplify13.7

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

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

    \[\leadsto \frac{-x}{\tan B} + \color{blue}{\left({\left(\left(x + x\right) + \left(2 + F \cdot F\right)\right)}^{\left(-\frac{1}{2}\right)} \cdot F\right) \cdot \frac{1}{\sin B}}\]
  6. Removed slow pow expressions.

Runtime

Time bar (total: 2.4m)Debug logProfile

herbie shell --seed '#(1062930989 876886121 3990119081 3032829768 3060892583 1929069376)' 
(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))))))