Average Error: 42.1 → 9.1
Time: 1.0m
Precision: 64
Internal Precision: 128
\[\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 -6.332818975842798 \cdot 10^{+134}:\\ \;\;\;\;\frac{\sqrt{2} \cdot t}{\left(\frac{\frac{t}{x}}{2 \cdot x} - \frac{t}{x}\right) \cdot \frac{2}{\sqrt{2}} - \left(\sqrt{2} \cdot t + \frac{\frac{t}{x}}{x} \cdot \frac{2}{\sqrt{2}}\right)}\\ \mathbf{elif}\;t \le -3.0105180508940534 \cdot 10^{-192}:\\ \;\;\;\;\frac{\sqrt[3]{\sqrt{2}} \cdot \sqrt[3]{\sqrt{2}}}{\frac{\sqrt{\left(\frac{\ell}{x} \cdot \ell\right) \cdot 2 + \left(t \cdot t\right) \cdot \left(\frac{4}{x} + 2\right)}}{t \cdot \sqrt[3]{\sqrt{2}}}}\\ \mathbf{elif}\;t \le -3.6638223607870816 \cdot 10^{-270}:\\ \;\;\;\;\frac{\sqrt{2} \cdot t}{\left(\frac{\frac{t}{x}}{2 \cdot x} - \frac{t}{x}\right) \cdot \frac{2}{\sqrt{2}} - \left(\sqrt{2} \cdot t + \frac{\frac{t}{x}}{x} \cdot \frac{2}{\sqrt{2}}\right)}\\ \mathbf{elif}\;t \le 5.995832793448661 \cdot 10^{+89}:\\ \;\;\;\;\frac{\sqrt[3]{\sqrt{2}} \cdot \sqrt[3]{\sqrt{2}}}{\frac{\sqrt{\left(\frac{\ell}{x} \cdot \ell\right) \cdot 2 + \left(t \cdot t\right) \cdot \left(\frac{4}{x} + 2\right)}}{t \cdot \sqrt[3]{\sqrt{2}}}}\\ \mathbf{else}:\\ \;\;\;\;\frac{\sqrt{2} \cdot t}{t \cdot \left(\frac{\frac{2}{x}}{\sqrt{2}} + \sqrt{2}\right) + \left(t - \frac{t}{2}\right) \cdot \frac{\frac{\frac{2}{x}}{x}}{\sqrt{2}}}\\ \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 < -6.332818975842798e+134 or -3.0105180508940534e-192 < t < -3.6638223607870816e-270

    1. Initial program 58.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 10.1

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

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

    if -6.332818975842798e+134 < t < -3.0105180508940534e-192 or -3.6638223607870816e-270 < t < 5.995832793448661e+89

    1. Initial program 34.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 15.5

      \[\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. Simplified11.0

      \[\leadsto \frac{\sqrt{2} \cdot t}{\sqrt{\color{blue}{\frac{\ell}{x} \cdot \left(\ell \cdot 2\right) + \left(2 + \frac{4}{x}\right) \cdot \left(t \cdot t\right)}}}\]
    4. Using strategy rm
    5. Applied associate-*r*11.0

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

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

      \[\leadsto \frac{\color{blue}{\left(\sqrt[3]{\sqrt{2}} \cdot \sqrt[3]{\sqrt{2}}\right) \cdot \left(\sqrt[3]{\sqrt{2}} \cdot t\right)}}{\sqrt{\left(\frac{\ell}{x} \cdot \ell\right) \cdot 2 + \left(2 + \frac{4}{x}\right) \cdot \left(t \cdot t\right)}}\]
    9. Using strategy rm
    10. Applied associate-/l*11.1

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

    if 5.995832793448661e+89 < t

    1. Initial program 47.7

      \[\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 2.8

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;t \le -6.332818975842798 \cdot 10^{+134}:\\ \;\;\;\;\frac{\sqrt{2} \cdot t}{\left(\frac{\frac{t}{x}}{2 \cdot x} - \frac{t}{x}\right) \cdot \frac{2}{\sqrt{2}} - \left(\sqrt{2} \cdot t + \frac{\frac{t}{x}}{x} \cdot \frac{2}{\sqrt{2}}\right)}\\ \mathbf{elif}\;t \le -3.0105180508940534 \cdot 10^{-192}:\\ \;\;\;\;\frac{\sqrt[3]{\sqrt{2}} \cdot \sqrt[3]{\sqrt{2}}}{\frac{\sqrt{\left(\frac{\ell}{x} \cdot \ell\right) \cdot 2 + \left(t \cdot t\right) \cdot \left(\frac{4}{x} + 2\right)}}{t \cdot \sqrt[3]{\sqrt{2}}}}\\ \mathbf{elif}\;t \le -3.6638223607870816 \cdot 10^{-270}:\\ \;\;\;\;\frac{\sqrt{2} \cdot t}{\left(\frac{\frac{t}{x}}{2 \cdot x} - \frac{t}{x}\right) \cdot \frac{2}{\sqrt{2}} - \left(\sqrt{2} \cdot t + \frac{\frac{t}{x}}{x} \cdot \frac{2}{\sqrt{2}}\right)}\\ \mathbf{elif}\;t \le 5.995832793448661 \cdot 10^{+89}:\\ \;\;\;\;\frac{\sqrt[3]{\sqrt{2}} \cdot \sqrt[3]{\sqrt{2}}}{\frac{\sqrt{\left(\frac{\ell}{x} \cdot \ell\right) \cdot 2 + \left(t \cdot t\right) \cdot \left(\frac{4}{x} + 2\right)}}{t \cdot \sqrt[3]{\sqrt{2}}}}\\ \mathbf{else}:\\ \;\;\;\;\frac{\sqrt{2} \cdot t}{t \cdot \left(\frac{\frac{2}{x}}{\sqrt{2}} + \sqrt{2}\right) + \left(t - \frac{t}{2}\right) \cdot \frac{\frac{\frac{2}{x}}{x}}{\sqrt{2}}}\\ \end{array}\]

Runtime

Time bar (total: 1.0m)Debug logProfile

BaselineHerbieOracleSpan%
Regimes26.99.13.023.974.4%
herbie shell --seed 2018351 
(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)))))