Average Error: 42.2 → 8.9
Time: 57.7s
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 -4.730312142490351 \cdot 10^{+118}:\\ \;\;\;\;\frac{\sqrt{2} \cdot t}{t \cdot \left(\left(-\sqrt{2}\right) - \frac{\frac{2}{x}}{\sqrt{2}}\right)}\\ \mathbf{elif}\;t \le 8.680923412516155 \cdot 10^{+58}:\\ \;\;\;\;\frac{\left(\left(\sqrt{\sqrt{2}} \cdot t\right) \cdot \sqrt{\sqrt{\sqrt{2}}}\right) \cdot \sqrt{\sqrt{\sqrt{2}}}}{\sqrt{\left(t \cdot t\right) \cdot \left(2 + \frac{4}{x}\right) + \frac{\ell}{x} \cdot \left(\ell \cdot 2\right)}}\\ \mathbf{else}:\\ \;\;\;\;\frac{\sqrt{2} \cdot t}{\left(\sqrt{2} + \frac{\frac{2}{x}}{\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 < -4.730312142490351e+118

    1. Initial program 54.2

      \[\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. Initial simplification54.2

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

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

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

    if -4.730312142490351e+118 < t < 8.680923412516155e+58

    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. Initial simplification37.4

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

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

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

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

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

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

      \[\leadsto \frac{\color{blue}{\left(\left(t \cdot \sqrt{\sqrt{2}}\right) \cdot \sqrt{\sqrt{\sqrt{2}}}\right) \cdot \sqrt{\sqrt{\sqrt{2}}}}}{\sqrt{\frac{2 \cdot \ell}{\frac{x}{\ell}} + \left(t \cdot t\right) \cdot \left(\frac{4}{x} + 2\right)}}\]
    11. Taylor expanded around -inf 17.0

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

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

    if 8.680923412516155e+58 < t

    1. Initial program 44.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. Initial simplification44.6

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;t \le -4.730312142490351 \cdot 10^{+118}:\\ \;\;\;\;\frac{\sqrt{2} \cdot t}{t \cdot \left(\left(-\sqrt{2}\right) - \frac{\frac{2}{x}}{\sqrt{2}}\right)}\\ \mathbf{elif}\;t \le 8.680923412516155 \cdot 10^{+58}:\\ \;\;\;\;\frac{\left(\left(\sqrt{\sqrt{2}} \cdot t\right) \cdot \sqrt{\sqrt{\sqrt{2}}}\right) \cdot \sqrt{\sqrt{\sqrt{2}}}}{\sqrt{\left(t \cdot t\right) \cdot \left(2 + \frac{4}{x}\right) + \frac{\ell}{x} \cdot \left(\ell \cdot 2\right)}}\\ \mathbf{else}:\\ \;\;\;\;\frac{\sqrt{2} \cdot t}{\left(\sqrt{2} + \frac{\frac{2}{x}}{\sqrt{2}}\right) \cdot t}\\ \end{array}\]

Runtime

Time bar (total: 57.7s)Debug logProfile

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