Average Error: 42.2 → 9.1
Time: 2.9m
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 -5.0956317827316975 \cdot 10^{+35}:\\ \;\;\;\;\frac{t \cdot \sqrt{2}}{\left(1 - 2\right) \cdot \frac{\frac{t}{\sqrt{2}}}{x \cdot x} - \left(\frac{\frac{2}{x}}{\sqrt{2}} + \sqrt{2}\right) \cdot t}\\ \mathbf{if}\;t \le -1.3546765881565658 \cdot 10^{-161}:\\ \;\;\;\;\frac{\sqrt{\sqrt{2}} \cdot \left(t \cdot \sqrt{\sqrt{2}}\right)}{\sqrt{\frac{2 \cdot \ell}{\frac{x}{\ell}} + \left(\frac{4}{x} + 2\right) \cdot \left(t \cdot t\right)}}\\ \mathbf{if}\;t \le -3.566305362743011 \cdot 10^{-230}:\\ \;\;\;\;\frac{t \cdot \sqrt{2}}{\left(1 - 2\right) \cdot \frac{\frac{t}{\sqrt{2}}}{x \cdot x} - \left(\frac{\frac{2}{x}}{\sqrt{2}} + \sqrt{2}\right) \cdot t}\\ \mathbf{if}\;t \le 5.026677509923616 \cdot 10^{-222} \lor \neg \left(t \le 6.419520610108919 \cdot 10^{-173} \lor \neg \left(t \le 4.178697909520673 \cdot 10^{+143}\right)\right):\\ \;\;\;\;\frac{\sqrt[3]{\sqrt[3]{\sqrt{2}}} \cdot \left(\left(\sqrt[3]{\sqrt[3]{\sqrt{2}}} \cdot \sqrt[3]{\sqrt[3]{\sqrt{2}}}\right) \cdot \left(\left(\sqrt[3]{\sqrt{2}} \cdot \sqrt[3]{\sqrt{2}}\right) \cdot t\right)\right)}{\sqrt{\frac{2 \cdot \ell}{\frac{x}{\ell}} + \left(\frac{4}{x} + 2\right) \cdot \left(t \cdot t\right)}}\\ \mathbf{else}:\\ \;\;\;\;\frac{t \cdot \sqrt{2}}{\frac{t}{\left(x \cdot x\right) \cdot \sqrt{2}} \cdot \left(2 - 1\right) + \left(\frac{\frac{2}{x}}{\sqrt{2}} + \sqrt{2}\right) \cdot t}\\ \end{array}\]

Error

Bits error versus x

Bits error versus l

Bits error versus t

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Split input into 4 regimes
  2. if t < -5.0956317827316975e+35 or -1.3546765881565658e-161 < t < -3.566305362743011e-230

    1. Initial program 45.6

      \[\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. Taylor expanded around -inf 8.2

      \[\leadsto \frac{\sqrt{2} \cdot t}{\color{blue}{2 \cdot \frac{t}{{\left(\sqrt{2}\right)}^{3} \cdot {x}^{2}} - \left(t \cdot \sqrt{2} + \left(2 \cdot \frac{t}{\sqrt{2} \cdot x} + 2 \cdot \frac{t}{\sqrt{2} \cdot {x}^{2}}\right)\right)}}\]
    3. Applied simplify8.2

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

    if -5.0956317827316975e+35 < t < -1.3546765881565658e-161

    1. Initial program 28.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. Taylor expanded around inf 9.0

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

      \[\leadsto \color{blue}{\frac{t \cdot \sqrt{2}}{\sqrt{\left(\frac{4}{x} + 2\right) \cdot \left(t \cdot t\right) + \frac{2 \cdot \ell}{\frac{x}{\ell}}}}}\]
    4. Using strategy rm
    5. Applied add-sqr-sqrt5.3

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

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

    if -3.566305362743011e-230 < t < 5.026677509923616e-222 or 6.419520610108919e-173 < t < 4.178697909520673e+143

    1. Initial program 35.9

      \[\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. Taylor expanded around inf 16.7

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

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

      \[\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(\frac{4}{x} + 2\right) \cdot \left(t \cdot t\right) + \frac{2 \cdot \ell}{\frac{x}{\ell}}}}\]
    6. Applied associate-*r*12.6

      \[\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(\frac{4}{x} + 2\right) \cdot \left(t \cdot t\right) + \frac{2 \cdot \ell}{\frac{x}{\ell}}}}\]
    7. Using strategy rm
    8. Applied add-cube-cbrt12.6

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

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

    if 5.026677509923616e-222 < t < 6.419520610108919e-173 or 4.178697909520673e+143 < t

    1. Initial program 59.1

      \[\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. Taylor expanded around inf 7.2

      \[\leadsto \frac{\sqrt{2} \cdot t}{\color{blue}{\left(t \cdot \sqrt{2} + \left(2 \cdot \frac{t}{\sqrt{2} \cdot x} + 2 \cdot \frac{t}{\sqrt{2} \cdot {x}^{2}}\right)\right) - 2 \cdot \frac{t}{{\left(\sqrt{2}\right)}^{3} \cdot {x}^{2}}}}\]
    3. Applied simplify7.2

      \[\leadsto \color{blue}{\frac{t \cdot \sqrt{2}}{t \cdot \left(\sqrt{2} + \frac{\frac{2}{x}}{\sqrt{2}}\right) + \frac{t}{\left(x \cdot x\right) \cdot \sqrt{2}} \cdot \left(2 - 1\right)}}\]
  3. Recombined 4 regimes into one program.
  4. Applied simplify9.1

    \[\leadsto \color{blue}{\begin{array}{l} \mathbf{if}\;t \le -5.0956317827316975 \cdot 10^{+35}:\\ \;\;\;\;\frac{t \cdot \sqrt{2}}{\left(1 - 2\right) \cdot \frac{\frac{t}{\sqrt{2}}}{x \cdot x} - \left(\frac{\frac{2}{x}}{\sqrt{2}} + \sqrt{2}\right) \cdot t}\\ \mathbf{if}\;t \le -1.3546765881565658 \cdot 10^{-161}:\\ \;\;\;\;\frac{\sqrt{\sqrt{2}} \cdot \left(t \cdot \sqrt{\sqrt{2}}\right)}{\sqrt{\frac{2 \cdot \ell}{\frac{x}{\ell}} + \left(\frac{4}{x} + 2\right) \cdot \left(t \cdot t\right)}}\\ \mathbf{if}\;t \le -3.566305362743011 \cdot 10^{-230}:\\ \;\;\;\;\frac{t \cdot \sqrt{2}}{\left(1 - 2\right) \cdot \frac{\frac{t}{\sqrt{2}}}{x \cdot x} - \left(\frac{\frac{2}{x}}{\sqrt{2}} + \sqrt{2}\right) \cdot t}\\ \mathbf{if}\;t \le 5.026677509923616 \cdot 10^{-222} \lor \neg \left(t \le 6.419520610108919 \cdot 10^{-173} \lor \neg \left(t \le 4.178697909520673 \cdot 10^{+143}\right)\right):\\ \;\;\;\;\frac{\sqrt[3]{\sqrt[3]{\sqrt{2}}} \cdot \left(\left(\sqrt[3]{\sqrt[3]{\sqrt{2}}} \cdot \sqrt[3]{\sqrt[3]{\sqrt{2}}}\right) \cdot \left(\left(\sqrt[3]{\sqrt{2}} \cdot \sqrt[3]{\sqrt{2}}\right) \cdot t\right)\right)}{\sqrt{\frac{2 \cdot \ell}{\frac{x}{\ell}} + \left(\frac{4}{x} + 2\right) \cdot \left(t \cdot t\right)}}\\ \mathbf{else}:\\ \;\;\;\;\frac{t \cdot \sqrt{2}}{\frac{t}{\left(x \cdot x\right) \cdot \sqrt{2}} \cdot \left(2 - 1\right) + \left(\frac{\frac{2}{x}}{\sqrt{2}} + \sqrt{2}\right) \cdot t}\\ \end{array}}\]

Runtime

Time bar (total: 2.9m)Debug logProfile

herbie shell --seed 2018198 
(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)))))