Average Error: 42.9 → 9.5
Time: 2.3m
Precision: 64
Internal Precision: 1344
\[\frac{\sqrt{2} \cdot t}{\sqrt{\frac{x + 1}{x - 1} \cdot \left(\ell \cdot \ell + 2 \cdot \left(t \cdot t\right)\right) - \ell \cdot \ell}}\]
\[\begin{array}{l} \mathbf{if}\;t \le -8.491105087173023 \cdot 10^{+117}:\\ \;\;\;\;\frac{t}{\left(-t\right) - \frac{t}{2} \cdot \frac{2}{x}}\\ \mathbf{if}\;t \le 2.9895959318794436 \cdot 10^{-237} \lor \neg \left(t \le 5.001979518902723 \cdot 10^{-181} \lor \neg \left(t \le 1.0241562428967443 \cdot 10^{+27}\right)\right):\\ \;\;\;\;\frac{\sqrt[3]{\sqrt{2}} \cdot \left(\left(\sqrt[3]{\sqrt{2}} \cdot \sqrt[3]{\sqrt{2}}\right) \cdot t\right)}{\sqrt{(\left((\left(\frac{\ell}{x}\right) \cdot \ell + \left(t \cdot t\right))_*\right) \cdot 2 + \left(\left(t \cdot t\right) \cdot \frac{4}{x}\right))_*}}\\ \mathbf{else}:\\ \;\;\;\;\frac{\sqrt{2}}{\frac{\frac{2}{x}}{\sqrt{2}} + \sqrt{2}}\\ \end{array}\]

Error

Bits error versus x

Bits error versus l

Bits error versus t

Derivation

  1. Split input into 3 regimes
  2. if t < -8.491105087173023e+117

    1. Initial program 53.5

      \[\frac{\sqrt{2} \cdot t}{\sqrt{\frac{x + 1}{x - 1} \cdot \left(\ell \cdot \ell + 2 \cdot \left(t \cdot t\right)\right) - \ell \cdot \ell}}\]
    2. Applied simplify53.5

      \[\leadsto \color{blue}{\frac{t \cdot \sqrt{2}}{\sqrt{(\left((\left(2 \cdot t\right) \cdot t + \left(\ell \cdot \ell\right))_*\right) \cdot \left(\frac{x + 1}{x - 1}\right) + \left(\left(-\ell\right) \cdot \ell\right))_*}}}\]
    3. Taylor expanded around -inf 2.9

      \[\leadsto \frac{t \cdot \sqrt{2}}{\color{blue}{-\left(t \cdot \sqrt{2} + 2 \cdot \frac{t}{\sqrt{2} \cdot x}\right)}}\]
    4. Applied simplify2.8

      \[\leadsto \color{blue}{\frac{t}{\left(-t\right) - \frac{2}{x} \cdot \frac{t}{2}}}\]

    if -8.491105087173023e+117 < t < 2.9895959318794436e-237 or 5.001979518902723e-181 < t < 1.0241562428967443e+27

    1. Initial program 37.4

      \[\frac{\sqrt{2} \cdot t}{\sqrt{\frac{x + 1}{x - 1} \cdot \left(\ell \cdot \ell + 2 \cdot \left(t \cdot t\right)\right) - \ell \cdot \ell}}\]
    2. Applied simplify37.3

      \[\leadsto \color{blue}{\frac{t \cdot \sqrt{2}}{\sqrt{(\left((\left(2 \cdot t\right) \cdot t + \left(\ell \cdot \ell\right))_*\right) \cdot \left(\frac{x + 1}{x - 1}\right) + \left(\left(-\ell\right) \cdot \ell\right))_*}}}\]
    3. Taylor expanded around inf 16.8

      \[\leadsto \frac{t \cdot \sqrt{2}}{\sqrt{\color{blue}{2 \cdot {t}^{2} + \left(2 \cdot \frac{{\ell}^{2}}{x} + 4 \cdot \frac{{t}^{2}}{x}\right)}}}\]
    4. Applied simplify12.9

      \[\leadsto \color{blue}{\frac{t \cdot \sqrt{2}}{\sqrt{(\left((\left(\frac{\ell}{x}\right) \cdot \ell + \left(t \cdot t\right))_*\right) \cdot 2 + \left(\frac{4}{x} \cdot \left(t \cdot t\right)\right))_*}}}\]
    5. Using strategy rm
    6. Applied add-cube-cbrt12.9

      \[\leadsto \frac{t \cdot \color{blue}{\left(\left(\sqrt[3]{\sqrt{2}} \cdot \sqrt[3]{\sqrt{2}}\right) \cdot \sqrt[3]{\sqrt{2}}\right)}}{\sqrt{(\left((\left(\frac{\ell}{x}\right) \cdot \ell + \left(t \cdot t\right))_*\right) \cdot 2 + \left(\frac{4}{x} \cdot \left(t \cdot t\right)\right))_*}}\]
    7. Applied associate-*r*12.9

      \[\leadsto \frac{\color{blue}{\left(t \cdot \left(\sqrt[3]{\sqrt{2}} \cdot \sqrt[3]{\sqrt{2}}\right)\right) \cdot \sqrt[3]{\sqrt{2}}}}{\sqrt{(\left((\left(\frac{\ell}{x}\right) \cdot \ell + \left(t \cdot t\right))_*\right) \cdot 2 + \left(\frac{4}{x} \cdot \left(t \cdot t\right)\right))_*}}\]

    if 2.9895959318794436e-237 < t < 5.001979518902723e-181 or 1.0241562428967443e+27 < t

    1. Initial program 45.0

      \[\frac{\sqrt{2} \cdot t}{\sqrt{\frac{x + 1}{x - 1} \cdot \left(\ell \cdot \ell + 2 \cdot \left(t \cdot t\right)\right) - \ell \cdot \ell}}\]
    2. Applied simplify45.0

      \[\leadsto \color{blue}{\frac{t \cdot \sqrt{2}}{\sqrt{(\left((\left(2 \cdot t\right) \cdot t + \left(\ell \cdot \ell\right))_*\right) \cdot \left(\frac{x + 1}{x - 1}\right) + \left(\left(-\ell\right) \cdot \ell\right))_*}}}\]
    3. Taylor expanded around inf 8.5

      \[\leadsto \frac{t \cdot \sqrt{2}}{\color{blue}{t \cdot \sqrt{2} + 2 \cdot \frac{t}{\sqrt{2} \cdot x}}}\]
    4. Applied simplify8.4

      \[\leadsto \color{blue}{\frac{1 \cdot \sqrt{2}}{\frac{\frac{2}{x}}{\sqrt{2}} + \sqrt{2}}}\]
  3. Recombined 3 regimes into one program.
  4. Applied simplify9.5

    \[\leadsto \color{blue}{\begin{array}{l} \mathbf{if}\;t \le -8.491105087173023 \cdot 10^{+117}:\\ \;\;\;\;\frac{t}{\left(-t\right) - \frac{t}{2} \cdot \frac{2}{x}}\\ \mathbf{if}\;t \le 2.9895959318794436 \cdot 10^{-237} \lor \neg \left(t \le 5.001979518902723 \cdot 10^{-181} \lor \neg \left(t \le 1.0241562428967443 \cdot 10^{+27}\right)\right):\\ \;\;\;\;\frac{\sqrt[3]{\sqrt{2}} \cdot \left(\left(\sqrt[3]{\sqrt{2}} \cdot \sqrt[3]{\sqrt{2}}\right) \cdot t\right)}{\sqrt{(\left((\left(\frac{\ell}{x}\right) \cdot \ell + \left(t \cdot t\right))_*\right) \cdot 2 + \left(\left(t \cdot t\right) \cdot \frac{4}{x}\right))_*}}\\ \mathbf{else}:\\ \;\;\;\;\frac{\sqrt{2}}{\frac{\frac{2}{x}}{\sqrt{2}} + \sqrt{2}}\\ \end{array}}\]

Runtime

Time bar (total: 2.3m)Debug logProfile

herbie shell --seed 2018201 +o rules:numerics
(FPCore (x l t)
  :name "Toniolo and Linder, Equation (7)"
  (/ (* (sqrt 2) t) (sqrt (- (* (/ (+ x 1) (- x 1)) (+ (* l l) (* 2 (* t t)))) (* l l)))))