Average Error: 42.0 → 9.5
Time: 1.8m
Precision: 64
Internal Precision: 1408
\[\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 -1.42998038934624 \cdot 10^{+69}:\\ \;\;\;\;\frac{t \cdot \sqrt{2}}{\left(\frac{\frac{\frac{t}{x}}{x}}{\sqrt{2}} - t \cdot \sqrt{2}\right) - \left(\frac{\frac{t + t}{\sqrt{2}}}{x} + \frac{\frac{t + t}{\sqrt{2}}}{x \cdot x}\right)}\\ \mathbf{if}\;t \le -2.5401539047568627 \cdot 10^{-163}:\\ \;\;\;\;\frac{\sqrt{\sqrt[3]{\sqrt{2}} \cdot \sqrt[3]{\sqrt{2}}} \cdot \left(\sqrt{\sqrt[3]{\sqrt{2}}} \cdot \left(\sqrt{\sqrt{2}} \cdot t\right)\right)}{\sqrt{2 \cdot {t}^{2} + \left(2 \cdot \frac{\ell}{\frac{x}{\ell}} + 4 \cdot \frac{{t}^{2}}{x}\right)}}\\ \mathbf{if}\;t \le -5.553561555528792 \cdot 10^{-295}:\\ \;\;\;\;\frac{t \cdot \sqrt{2}}{\left(\frac{\frac{\frac{t}{x}}{x}}{\sqrt{2}} - t \cdot \sqrt{2}\right) - \left(\frac{\frac{t + t}{\sqrt{2}}}{x} + \frac{\frac{t + t}{\sqrt{2}}}{x \cdot x}\right)}\\ \mathbf{if}\;t \le 1.2691519409648163 \cdot 10^{-243}:\\ \;\;\;\;\frac{\sqrt{\sqrt{2}} \cdot \left(\sqrt{\sqrt{2}} \cdot t\right)}{\sqrt{2 \cdot {t}^{2} + \left(2 \cdot \frac{\ell}{\frac{x}{\ell}} + 4 \cdot \frac{{t}^{2}}{x}\right)}}\\ \mathbf{if}\;t \le 7.679813441312647 \cdot 10^{-161}:\\ \;\;\;\;\frac{t \cdot \sqrt{2}}{t \cdot \left(\sqrt{2} + \frac{\frac{2}{x}}{\sqrt{2}}\right) + \frac{\frac{t}{x}}{x} \cdot \left(\frac{2}{\sqrt{2}} - \frac{1}{\sqrt{2}}\right)}\\ \mathbf{if}\;t \le 4.634093238500572 \cdot 10^{+140}:\\ \;\;\;\;\frac{\sqrt{\sqrt[3]{\sqrt{2}} \cdot \sqrt[3]{\sqrt{2}}} \cdot \left(\sqrt{\sqrt[3]{\sqrt{2}}} \cdot \left(\sqrt{\sqrt{2}} \cdot t\right)\right)}{\sqrt{2 \cdot {t}^{2} + \left(2 \cdot \frac{\ell}{\frac{x}{\ell}} + 4 \cdot \frac{{t}^{2}}{x}\right)}}\\ \mathbf{else}:\\ \;\;\;\;\frac{t \cdot \sqrt{2}}{t \cdot \left(\sqrt{2} + \frac{\frac{2}{x}}{\sqrt{2}}\right) + \frac{\frac{t}{x}}{x} \cdot \left(\frac{2}{\sqrt{2}} - \frac{1}{\sqrt{2}}\right)}\\ \end{array}\]

Error

Bits error versus x

Bits error versus l

Bits error versus t

Derivation

  1. Split input into 4 regimes
  2. if t < -1.42998038934624e+69 or -2.5401539047568627e-163 < t < -5.553561555528792e-295

    1. Initial program 49.8

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

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

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

    if -1.42998038934624e+69 < t < -2.5401539047568627e-163 or 7.679813441312647e-161 < t < 4.634093238500572e+140

    1. Initial program 25.3

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

      \[\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. Using strategy rm
    4. Applied unpow210.9

      \[\leadsto \frac{\sqrt{2} \cdot t}{\sqrt{2 \cdot {t}^{2} + \left(2 \cdot \frac{\color{blue}{\ell \cdot \ell}}{x} + 4 \cdot \frac{{t}^{2}}{x}\right)}}\]
    5. Applied associate-/l*5.5

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

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

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

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

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

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

    if -5.553561555528792e-295 < t < 1.2691519409648163e-243

    1. Initial program 62.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 26.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. Using strategy rm
    4. Applied unpow226.1

      \[\leadsto \frac{\sqrt{2} \cdot t}{\sqrt{2 \cdot {t}^{2} + \left(2 \cdot \frac{\color{blue}{\ell \cdot \ell}}{x} + 4 \cdot \frac{{t}^{2}}{x}\right)}}\]
    5. Applied associate-/l*25.6

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

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

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

    if 1.2691519409648163e-243 < t < 7.679813441312647e-161 or 4.634093238500572e+140 < t

    1. Initial program 58.8

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

      \[\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 simplify9.6

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

Runtime

Time bar (total: 1.8m)Debug logProfile

herbie shell --seed '#(1070131407 1246090267 3027482374 2150728003 2026520792 2347815650)' 
(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)))))