Average Error: 42.9 → 9.7
Time: 2.5m
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.096040115868599 \cdot 10^{+105}:\\ \;\;\;\;\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 2.9895959318794436 \cdot 10^{-237} \lor \neg \left(t \le 5.001979518902723 \cdot 10^{-181} \lor \neg \left(t \le 84948581.82161465\right)\right):\\ \;\;\;\;\frac{t \cdot \sqrt{2}}{\sqrt{\sqrt{\frac{\ell \cdot 2}{\frac{x}{\ell}} + \left(2 + \frac{4}{x}\right) \cdot \left(t \cdot t\right)}} \cdot \sqrt{\sqrt{\frac{\ell \cdot 2}{\frac{x}{\ell}} + \left(2 + \frac{4}{x}\right) \cdot \left(t \cdot t\right)}}}\\ \mathbf{else}:\\ \;\;\;\;\frac{t \cdot \sqrt{2}}{\left(2 - 1\right) \cdot \frac{t}{\left(x \cdot x\right) \cdot \sqrt{2}} + \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 3 regimes
  2. if t < -5.096040115868599e+105

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

      \[\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 simplify3.1

      \[\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.096040115868599e+105 < t < 2.9895959318794436e-237 or 5.001979518902723e-181 < t < 84948581.82161465

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

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

      \[\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-sqrt13.3

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

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

    if 2.9895959318794436e-237 < t < 5.001979518902723e-181 or 84948581.82161465 < t

    1. Initial program 43.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 8.7

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

      \[\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 3 regimes into one program.
  4. Applied simplify9.7

    \[\leadsto \color{blue}{\begin{array}{l} \mathbf{if}\;t \le -5.096040115868599 \cdot 10^{+105}:\\ \;\;\;\;\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 2.9895959318794436 \cdot 10^{-237} \lor \neg \left(t \le 5.001979518902723 \cdot 10^{-181} \lor \neg \left(t \le 84948581.82161465\right)\right):\\ \;\;\;\;\frac{t \cdot \sqrt{2}}{\sqrt{\sqrt{\frac{\ell \cdot 2}{\frac{x}{\ell}} + \left(2 + \frac{4}{x}\right) \cdot \left(t \cdot t\right)}} \cdot \sqrt{\sqrt{\frac{\ell \cdot 2}{\frac{x}{\ell}} + \left(2 + \frac{4}{x}\right) \cdot \left(t \cdot t\right)}}}\\ \mathbf{else}:\\ \;\;\;\;\frac{t \cdot \sqrt{2}}{\left(2 - 1\right) \cdot \frac{t}{\left(x \cdot x\right) \cdot \sqrt{2}} + \left(\frac{\frac{2}{x}}{\sqrt{2}} + \sqrt{2}\right) \cdot t}\\ \end{array}}\]

Runtime

Time bar (total: 2.5m)Debug logProfile

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