Average Error: 13.8 → 11.0
Time: 2.0m
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} + \frac{F}{{\left(\left(x + x\right) + \left(2 + F \cdot F\right)\right)}^{\left(\frac{1}{2}\right)} \cdot \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.8

    \[\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 pow-neg13.8

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

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

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

Runtime

Time bar (total: 2.0m)Debug logProfile

herbie shell --seed '#(1063282112 2455465480 4141627379 3773598652 1647277307 776739644)' 
(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))))))