Average Error: 13.5 → 10.6
Time: 1.7m
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.5

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

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

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

    \[\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: 1.7m)Debug log

herbie shell --seed '#(1567391828 2030694642 2833800258 828025724 3004380912 3532991858)' +o setup:early-exit +o reduce:binary-search
(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))))))