?

Average Error: 43.0 → 11.5
Time: 44.1s
Precision: binary64
Cost: 27600

?

\[\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} t_1 := t \cdot \sqrt{2}\\ t_2 := \sqrt{2 + \frac{4}{x}}\\ t_3 := \mathsf{fma}\left(t, t_2, \frac{\frac{\ell}{\frac{x}{\frac{\ell}{t}}}}{t_2}\right)\\ t_4 := \frac{\ell \cdot \ell}{x}\\ \mathbf{if}\;t \leq -205000:\\ \;\;\;\;-\sqrt{\frac{-1 + x}{x + 1}}\\ \mathbf{elif}\;t \leq -1.28 \cdot 10^{-182}:\\ \;\;\;\;t \cdot \frac{\sqrt{2}}{\sqrt{t_4 + \left(t_4 + 2 \cdot \left(t \cdot t + \frac{t \cdot t}{x}\right)\right)}}\\ \mathbf{elif}\;t \leq -6.2 \cdot 10^{-256}:\\ \;\;\;\;\frac{t \cdot \left(-\sqrt{2}\right)}{t_3}\\ \mathbf{elif}\;t \leq 9.4 \cdot 10^{-275}:\\ \;\;\;\;\frac{t_1}{\sqrt{2 \cdot \frac{\ell}{\frac{x}{\ell}}}}\\ \mathbf{else}:\\ \;\;\;\;\frac{t_1}{t_3}\\ \end{array} \]
(FPCore (x l t)
 :precision binary64
 (/
  (* (sqrt 2.0) t)
  (sqrt (- (* (/ (+ x 1.0) (- x 1.0)) (+ (* l l) (* 2.0 (* t t)))) (* l l)))))
(FPCore (x l t)
 :precision binary64
 (let* ((t_1 (* t (sqrt 2.0)))
        (t_2 (sqrt (+ 2.0 (/ 4.0 x))))
        (t_3 (fma t t_2 (/ (/ l (/ x (/ l t))) t_2)))
        (t_4 (/ (* l l) x)))
   (if (<= t -205000.0)
     (- (sqrt (/ (+ -1.0 x) (+ x 1.0))))
     (if (<= t -1.28e-182)
       (*
        t
        (/
         (sqrt 2.0)
         (sqrt (+ t_4 (+ t_4 (* 2.0 (+ (* t t) (/ (* t t) x))))))))
       (if (<= t -6.2e-256)
         (/ (* t (- (sqrt 2.0))) t_3)
         (if (<= t 9.4e-275)
           (/ t_1 (sqrt (* 2.0 (/ l (/ x l)))))
           (/ t_1 t_3)))))))
double code(double x, double l, double t) {
	return (sqrt(2.0) * t) / sqrt(((((x + 1.0) / (x - 1.0)) * ((l * l) + (2.0 * (t * t)))) - (l * l)));
}
double code(double x, double l, double t) {
	double t_1 = t * sqrt(2.0);
	double t_2 = sqrt((2.0 + (4.0 / x)));
	double t_3 = fma(t, t_2, ((l / (x / (l / t))) / t_2));
	double t_4 = (l * l) / x;
	double tmp;
	if (t <= -205000.0) {
		tmp = -sqrt(((-1.0 + x) / (x + 1.0)));
	} else if (t <= -1.28e-182) {
		tmp = t * (sqrt(2.0) / sqrt((t_4 + (t_4 + (2.0 * ((t * t) + ((t * t) / x)))))));
	} else if (t <= -6.2e-256) {
		tmp = (t * -sqrt(2.0)) / t_3;
	} else if (t <= 9.4e-275) {
		tmp = t_1 / sqrt((2.0 * (l / (x / l))));
	} else {
		tmp = t_1 / t_3;
	}
	return tmp;
}
function code(x, l, t)
	return Float64(Float64(sqrt(2.0) * t) / sqrt(Float64(Float64(Float64(Float64(x + 1.0) / Float64(x - 1.0)) * Float64(Float64(l * l) + Float64(2.0 * Float64(t * t)))) - Float64(l * l))))
end
function code(x, l, t)
	t_1 = Float64(t * sqrt(2.0))
	t_2 = sqrt(Float64(2.0 + Float64(4.0 / x)))
	t_3 = fma(t, t_2, Float64(Float64(l / Float64(x / Float64(l / t))) / t_2))
	t_4 = Float64(Float64(l * l) / x)
	tmp = 0.0
	if (t <= -205000.0)
		tmp = Float64(-sqrt(Float64(Float64(-1.0 + x) / Float64(x + 1.0))));
	elseif (t <= -1.28e-182)
		tmp = Float64(t * Float64(sqrt(2.0) / sqrt(Float64(t_4 + Float64(t_4 + Float64(2.0 * Float64(Float64(t * t) + Float64(Float64(t * t) / x))))))));
	elseif (t <= -6.2e-256)
		tmp = Float64(Float64(t * Float64(-sqrt(2.0))) / t_3);
	elseif (t <= 9.4e-275)
		tmp = Float64(t_1 / sqrt(Float64(2.0 * Float64(l / Float64(x / l)))));
	else
		tmp = Float64(t_1 / t_3);
	end
	return tmp
end
code[x_, l_, t_] := N[(N[(N[Sqrt[2.0], $MachinePrecision] * t), $MachinePrecision] / N[Sqrt[N[(N[(N[(N[(x + 1.0), $MachinePrecision] / N[(x - 1.0), $MachinePrecision]), $MachinePrecision] * N[(N[(l * l), $MachinePrecision] + N[(2.0 * N[(t * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(l * l), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]
code[x_, l_, t_] := Block[{t$95$1 = N[(t * N[Sqrt[2.0], $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[Sqrt[N[(2.0 + N[(4.0 / x), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]}, Block[{t$95$3 = N[(t * t$95$2 + N[(N[(l / N[(x / N[(l / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / t$95$2), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(N[(l * l), $MachinePrecision] / x), $MachinePrecision]}, If[LessEqual[t, -205000.0], (-N[Sqrt[N[(N[(-1.0 + x), $MachinePrecision] / N[(x + 1.0), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), If[LessEqual[t, -1.28e-182], N[(t * N[(N[Sqrt[2.0], $MachinePrecision] / N[Sqrt[N[(t$95$4 + N[(t$95$4 + N[(2.0 * N[(N[(t * t), $MachinePrecision] + N[(N[(t * t), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -6.2e-256], N[(N[(t * (-N[Sqrt[2.0], $MachinePrecision])), $MachinePrecision] / t$95$3), $MachinePrecision], If[LessEqual[t, 9.4e-275], N[(t$95$1 / N[Sqrt[N[(2.0 * N[(l / N[(x / l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], N[(t$95$1 / t$95$3), $MachinePrecision]]]]]]]]]
\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}
t_1 := t \cdot \sqrt{2}\\
t_2 := \sqrt{2 + \frac{4}{x}}\\
t_3 := \mathsf{fma}\left(t, t_2, \frac{\frac{\ell}{\frac{x}{\frac{\ell}{t}}}}{t_2}\right)\\
t_4 := \frac{\ell \cdot \ell}{x}\\
\mathbf{if}\;t \leq -205000:\\
\;\;\;\;-\sqrt{\frac{-1 + x}{x + 1}}\\

\mathbf{elif}\;t \leq -1.28 \cdot 10^{-182}:\\
\;\;\;\;t \cdot \frac{\sqrt{2}}{\sqrt{t_4 + \left(t_4 + 2 \cdot \left(t \cdot t + \frac{t \cdot t}{x}\right)\right)}}\\

\mathbf{elif}\;t \leq -6.2 \cdot 10^{-256}:\\
\;\;\;\;\frac{t \cdot \left(-\sqrt{2}\right)}{t_3}\\

\mathbf{elif}\;t \leq 9.4 \cdot 10^{-275}:\\
\;\;\;\;\frac{t_1}{\sqrt{2 \cdot \frac{\ell}{\frac{x}{\ell}}}}\\

\mathbf{else}:\\
\;\;\;\;\frac{t_1}{t_3}\\


\end{array}

Error?

Derivation?

  1. Split input into 5 regimes
  2. if t < -205000

    1. Initial program 41.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. Simplified41.6

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

      [Start]41.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}} \]

      associate-*l/ [<=]41.6

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

      +-commutative [=>]41.6

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

      fma-def [=>]41.6

      \[ \frac{\sqrt{2}}{\sqrt{\frac{x + 1}{x - 1} \cdot \color{blue}{\mathsf{fma}\left(2, t \cdot t, \ell \cdot \ell\right)} - \ell \cdot \ell}} \cdot t \]
    3. Applied egg-rr41.6

      \[\leadsto \color{blue}{\frac{\sqrt{2}}{\frac{\sqrt{\frac{x + 1}{x + -1} \cdot \mathsf{fma}\left(2, t \cdot t, \ell \cdot \ell\right) - \ell \cdot \ell}}{t}}} \]
    4. Simplified41.6

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

      [Start]41.6

      \[ \frac{\sqrt{2}}{\frac{\sqrt{\frac{x + 1}{x + -1} \cdot \mathsf{fma}\left(2, t \cdot t, \ell \cdot \ell\right) - \ell \cdot \ell}}{t}} \]

      associate-/r/ [=>]41.6

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

      associate-*l/ [=>]41.6

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

      *-commutative [<=]41.6

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

      associate-/l* [=>]41.6

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

      +-commutative [=>]41.6

      \[ \frac{t}{\frac{\sqrt{\frac{x + 1}{\color{blue}{-1 + x}} \cdot \mathsf{fma}\left(2, t \cdot t, \ell \cdot \ell\right) - \ell \cdot \ell}}{\sqrt{2}}} \]
    5. Taylor expanded in t around -inf 4.6

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

      \[\leadsto \frac{t}{\color{blue}{-t \cdot \sqrt{\frac{x + 1}{-1 + x}}}} \]
      Proof

      [Start]4.6

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

      mul-1-neg [=>]4.6

      \[ \frac{t}{\color{blue}{-\sqrt{\frac{1 + x}{x - 1}} \cdot t}} \]

      *-commutative [=>]4.6

      \[ \frac{t}{-\color{blue}{t \cdot \sqrt{\frac{1 + x}{x - 1}}}} \]

      sub-neg [=>]4.6

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

      metadata-eval [=>]4.6

      \[ \frac{t}{-t \cdot \sqrt{\frac{1 + x}{x + \color{blue}{-1}}}} \]

      +-commutative [<=]4.6

      \[ \frac{t}{-t \cdot \sqrt{\frac{\color{blue}{x + 1}}{x + -1}}} \]

      +-commutative [=>]4.6

      \[ \frac{t}{-t \cdot \sqrt{\frac{x + 1}{\color{blue}{-1 + x}}}} \]
    7. Taylor expanded in t around 0 4.6

      \[\leadsto \color{blue}{-1 \cdot \sqrt{\frac{x - 1}{1 + x}}} \]
    8. Simplified4.6

      \[\leadsto \color{blue}{-\sqrt{\frac{-1 + x}{x + 1}}} \]
      Proof

      [Start]4.6

      \[ -1 \cdot \sqrt{\frac{x - 1}{1 + x}} \]

      mul-1-neg [=>]4.6

      \[ \color{blue}{-\sqrt{\frac{x - 1}{1 + x}}} \]

      sub-neg [=>]4.6

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

      metadata-eval [=>]4.6

      \[ -\sqrt{\frac{x + \color{blue}{-1}}{1 + x}} \]

      +-commutative [=>]4.6

      \[ -\sqrt{\frac{\color{blue}{-1 + x}}{1 + x}} \]

      +-commutative [=>]4.6

      \[ -\sqrt{\frac{-1 + x}{\color{blue}{x + 1}}} \]

    if -205000 < t < -1.2800000000000001e-182

    1. Initial program 33.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. Simplified33.8

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

      [Start]33.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}} \]

      associate-*l/ [<=]33.8

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

      +-commutative [=>]33.8

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

      fma-def [=>]33.8

      \[ \frac{\sqrt{2}}{\sqrt{\frac{x + 1}{x - 1} \cdot \color{blue}{\mathsf{fma}\left(2, t \cdot t, \ell \cdot \ell\right)} - \ell \cdot \ell}} \cdot t \]
    3. Taylor expanded in x around inf 12.7

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

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

      [Start]12.7

      \[ \frac{\sqrt{2}}{\sqrt{\left(\frac{{\ell}^{2}}{x} + \left(2 \cdot \frac{{t}^{2}}{x} + 2 \cdot {t}^{2}\right)\right) - -1 \cdot \frac{{\ell}^{2} + 2 \cdot {t}^{2}}{x}}} \cdot t \]

      associate--l+ [=>]12.7

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

      unpow2 [=>]12.7

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

      distribute-lft-out [=>]12.7

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

      unpow2 [=>]12.7

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

      unpow2 [=>]12.7

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

      mul-1-neg [=>]12.7

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

      +-commutative [=>]12.7

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

      unpow2 [=>]12.7

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

      fma-udef [<=]12.7

      \[ \frac{\sqrt{2}}{\sqrt{\frac{\ell \cdot \ell}{x} + \left(2 \cdot \left(\frac{t \cdot t}{x} + t \cdot t\right) - \left(-\frac{\color{blue}{\mathsf{fma}\left(2, {t}^{2}, \ell \cdot \ell\right)}}{x}\right)\right)}} \cdot t \]

      unpow2 [=>]12.7

      \[ \frac{\sqrt{2}}{\sqrt{\frac{\ell \cdot \ell}{x} + \left(2 \cdot \left(\frac{t \cdot t}{x} + t \cdot t\right) - \left(-\frac{\mathsf{fma}\left(2, \color{blue}{t \cdot t}, \ell \cdot \ell\right)}{x}\right)\right)}} \cdot t \]
    5. Taylor expanded in t around 0 12.9

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

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

      [Start]12.9

      \[ \frac{\sqrt{2}}{\sqrt{\frac{\ell \cdot \ell}{x} + \left(2 \cdot \left(\frac{t \cdot t}{x} + t \cdot t\right) - \left(-\frac{{\ell}^{2}}{x}\right)\right)}} \cdot t \]

      unpow2 [=>]12.9

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

    if -1.2800000000000001e-182 < t < -6.19999999999999971e-256

    1. Initial program 62.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. Simplified62.7

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

      [Start]62.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}} \]

      associate-*l/ [<=]62.7

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

      +-commutative [=>]62.7

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

      fma-def [=>]62.7

      \[ \frac{\sqrt{2}}{\sqrt{\frac{x + 1}{x - 1} \cdot \color{blue}{\mathsf{fma}\left(2, t \cdot t, \ell \cdot \ell\right)} - \ell \cdot \ell}} \cdot t \]
    3. Taylor expanded in x around inf 32.8

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

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

      [Start]32.8

      \[ \frac{\sqrt{2}}{\sqrt{\left(\frac{{\ell}^{2}}{x} + \left(2 \cdot \frac{{t}^{2}}{x} + 2 \cdot {t}^{2}\right)\right) - -1 \cdot \frac{{\ell}^{2} + 2 \cdot {t}^{2}}{x}}} \cdot t \]

      associate--l+ [=>]32.8

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

      unpow2 [=>]32.8

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

      distribute-lft-out [=>]32.8

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

      unpow2 [=>]32.8

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

      unpow2 [=>]32.8

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

      mul-1-neg [=>]32.8

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

      +-commutative [=>]32.8

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

      unpow2 [=>]32.8

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

      fma-udef [<=]32.8

      \[ \frac{\sqrt{2}}{\sqrt{\frac{\ell \cdot \ell}{x} + \left(2 \cdot \left(\frac{t \cdot t}{x} + t \cdot t\right) - \left(-\frac{\color{blue}{\mathsf{fma}\left(2, {t}^{2}, \ell \cdot \ell\right)}}{x}\right)\right)}} \cdot t \]

      unpow2 [=>]32.8

      \[ \frac{\sqrt{2}}{\sqrt{\frac{\ell \cdot \ell}{x} + \left(2 \cdot \left(\frac{t \cdot t}{x} + t \cdot t\right) - \left(-\frac{\mathsf{fma}\left(2, \color{blue}{t \cdot t}, \ell \cdot \ell\right)}{x}\right)\right)}} \cdot t \]
    5. Taylor expanded in t around -inf 23.4

      \[\leadsto \frac{\sqrt{2}}{\color{blue}{-1 \cdot \left(\frac{{\ell}^{2}}{t \cdot x} \cdot \sqrt{\frac{1}{2 \cdot \left(1 + \frac{1}{x}\right) + 2 \cdot \frac{1}{x}}}\right) + -1 \cdot \left(t \cdot \sqrt{2 \cdot \left(1 + \frac{1}{x}\right) + 2 \cdot \frac{1}{x}}\right)}} \cdot t \]
    6. Simplified23.5

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

      [Start]23.4

      \[ \frac{\sqrt{2}}{-1 \cdot \left(\frac{{\ell}^{2}}{t \cdot x} \cdot \sqrt{\frac{1}{2 \cdot \left(1 + \frac{1}{x}\right) + 2 \cdot \frac{1}{x}}}\right) + -1 \cdot \left(t \cdot \sqrt{2 \cdot \left(1 + \frac{1}{x}\right) + 2 \cdot \frac{1}{x}}\right)} \cdot t \]

      *-commutative [=>]23.4

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

      *-commutative [=>]23.4

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

      distribute-lft-out [=>]23.4

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

      +-commutative [<=]23.4

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

      mul-1-neg [=>]23.4

      \[ \frac{\sqrt{2}}{\color{blue}{-\left(\sqrt{2 \cdot \left(1 + \frac{1}{x}\right) + 2 \cdot \frac{1}{x}} \cdot t + \sqrt{\frac{1}{2 \cdot \left(1 + \frac{1}{x}\right) + 2 \cdot \frac{1}{x}}} \cdot \frac{{\ell}^{2}}{t \cdot x}\right)}} \cdot t \]
    7. Applied egg-rr23.3

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

    if -6.19999999999999971e-256 < t < 9.3999999999999996e-275

    1. Initial program 62.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 in l around inf 61.5

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

      \[\leadsto \frac{\sqrt{2} \cdot t}{\sqrt{\color{blue}{\frac{2}{x}}} \cdot \ell} \]
    4. Applied egg-rr29.3

      \[\leadsto \frac{\sqrt{2} \cdot t}{\color{blue}{\sqrt{\frac{2}{x} \cdot \left(\ell \cdot \ell\right)}}} \]
    5. Taylor expanded in x around 0 29.3

      \[\leadsto \frac{\sqrt{2} \cdot t}{\sqrt{\color{blue}{2 \cdot \frac{{\ell}^{2}}{x}}}} \]
    6. Simplified29.1

      \[\leadsto \frac{\sqrt{2} \cdot t}{\sqrt{\color{blue}{2 \cdot \frac{\ell}{\frac{x}{\ell}}}}} \]
      Proof

      [Start]29.3

      \[ \frac{\sqrt{2} \cdot t}{\sqrt{2 \cdot \frac{{\ell}^{2}}{x}}} \]

      unpow2 [=>]29.3

      \[ \frac{\sqrt{2} \cdot t}{\sqrt{2 \cdot \frac{\color{blue}{\ell \cdot \ell}}{x}}} \]

      associate-/l* [=>]29.1

      \[ \frac{\sqrt{2} \cdot t}{\sqrt{2 \cdot \color{blue}{\frac{\ell}{\frac{x}{\ell}}}}} \]

    if 9.3999999999999996e-275 < t

    1. Initial program 42.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. Simplified42.4

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

      [Start]42.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}} \]

      associate-*l/ [<=]42.4

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

      +-commutative [=>]42.4

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

      fma-def [=>]42.4

      \[ \frac{\sqrt{2}}{\sqrt{\frac{x + 1}{x - 1} \cdot \color{blue}{\mathsf{fma}\left(2, t \cdot t, \ell \cdot \ell\right)} - \ell \cdot \ell}} \cdot t \]
    3. Taylor expanded in x around inf 31.1

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

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

      [Start]31.1

      \[ \frac{\sqrt{2}}{\sqrt{\left(\frac{{\ell}^{2}}{x} + \left(2 \cdot \frac{{t}^{2}}{x} + 2 \cdot {t}^{2}\right)\right) - -1 \cdot \frac{{\ell}^{2} + 2 \cdot {t}^{2}}{x}}} \cdot t \]

      associate--l+ [=>]31.1

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

      unpow2 [=>]31.1

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

      distribute-lft-out [=>]31.1

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

      unpow2 [=>]31.1

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

      unpow2 [=>]31.1

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

      mul-1-neg [=>]31.1

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

      +-commutative [=>]31.1

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

      unpow2 [=>]31.1

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

      fma-udef [<=]31.1

      \[ \frac{\sqrt{2}}{\sqrt{\frac{\ell \cdot \ell}{x} + \left(2 \cdot \left(\frac{t \cdot t}{x} + t \cdot t\right) - \left(-\frac{\color{blue}{\mathsf{fma}\left(2, {t}^{2}, \ell \cdot \ell\right)}}{x}\right)\right)}} \cdot t \]

      unpow2 [=>]31.1

      \[ \frac{\sqrt{2}}{\sqrt{\frac{\ell \cdot \ell}{x} + \left(2 \cdot \left(\frac{t \cdot t}{x} + t \cdot t\right) - \left(-\frac{\mathsf{fma}\left(2, \color{blue}{t \cdot t}, \ell \cdot \ell\right)}{x}\right)\right)}} \cdot t \]
    5. Taylor expanded in t around -inf 60.6

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

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

      [Start]60.6

      \[ \frac{\sqrt{2}}{-1 \cdot \left(\frac{{\ell}^{2}}{t \cdot x} \cdot \sqrt{\frac{1}{2 \cdot \left(1 + \frac{1}{x}\right) + 2 \cdot \frac{1}{x}}}\right) + -1 \cdot \left(t \cdot \sqrt{2 \cdot \left(1 + \frac{1}{x}\right) + 2 \cdot \frac{1}{x}}\right)} \cdot t \]

      *-commutative [=>]60.6

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

      *-commutative [=>]60.6

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

      distribute-lft-out [=>]60.6

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

      +-commutative [<=]60.6

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

      mul-1-neg [=>]60.6

      \[ \frac{\sqrt{2}}{\color{blue}{-\left(\sqrt{2 \cdot \left(1 + \frac{1}{x}\right) + 2 \cdot \frac{1}{x}} \cdot t + \sqrt{\frac{1}{2 \cdot \left(1 + \frac{1}{x}\right) + 2 \cdot \frac{1}{x}}} \cdot \frac{{\ell}^{2}}{t \cdot x}\right)}} \cdot t \]
    7. Applied egg-rr12.1

      \[\leadsto \color{blue}{\frac{t \cdot \sqrt{2}}{\mathsf{fma}\left(t, \sqrt{2 + \frac{4}{x}}, \frac{\frac{\ell}{\frac{x}{\frac{\ell}{t}}}}{\sqrt{2 + \frac{4}{x}}}\right)}} \]
  3. Recombined 5 regimes into one program.
  4. Final simplification11.5

    \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -205000:\\ \;\;\;\;-\sqrt{\frac{-1 + x}{x + 1}}\\ \mathbf{elif}\;t \leq -1.28 \cdot 10^{-182}:\\ \;\;\;\;t \cdot \frac{\sqrt{2}}{\sqrt{\frac{\ell \cdot \ell}{x} + \left(\frac{\ell \cdot \ell}{x} + 2 \cdot \left(t \cdot t + \frac{t \cdot t}{x}\right)\right)}}\\ \mathbf{elif}\;t \leq -6.2 \cdot 10^{-256}:\\ \;\;\;\;\frac{t \cdot \left(-\sqrt{2}\right)}{\mathsf{fma}\left(t, \sqrt{2 + \frac{4}{x}}, \frac{\frac{\ell}{\frac{x}{\frac{\ell}{t}}}}{\sqrt{2 + \frac{4}{x}}}\right)}\\ \mathbf{elif}\;t \leq 9.4 \cdot 10^{-275}:\\ \;\;\;\;\frac{t \cdot \sqrt{2}}{\sqrt{2 \cdot \frac{\ell}{\frac{x}{\ell}}}}\\ \mathbf{else}:\\ \;\;\;\;\frac{t \cdot \sqrt{2}}{\mathsf{fma}\left(t, \sqrt{2 + \frac{4}{x}}, \frac{\frac{\ell}{\frac{x}{\frac{\ell}{t}}}}{\sqrt{2 + \frac{4}{x}}}\right)}\\ \end{array} \]

Alternatives

Alternative 1
Error11.5
Cost27600
\[\begin{array}{l} t_1 := t \cdot \sqrt{2}\\ t_2 := \sqrt{2 + \frac{4}{x}}\\ t_3 := \frac{\ell \cdot \ell}{x}\\ t_4 := \frac{\frac{\ell}{\frac{x}{\frac{\ell}{t}}}}{t_2}\\ \mathbf{if}\;t \leq -128000:\\ \;\;\;\;-\sqrt{\frac{-1 + x}{x + 1}}\\ \mathbf{elif}\;t \leq -1.28 \cdot 10^{-182}:\\ \;\;\;\;t \cdot \frac{\sqrt{2}}{\sqrt{t_3 + \left(t_3 + 2 \cdot \left(t \cdot t + \frac{t \cdot t}{x}\right)\right)}}\\ \mathbf{elif}\;t \leq -2.6 \cdot 10^{-256}:\\ \;\;\;\;t \cdot \frac{\sqrt{2}}{t_2 \cdot \left(-t\right) - t_4}\\ \mathbf{elif}\;t \leq 8.6 \cdot 10^{-278}:\\ \;\;\;\;\frac{t_1}{\sqrt{2 \cdot \frac{\ell}{\frac{x}{\ell}}}}\\ \mathbf{else}:\\ \;\;\;\;\frac{t_1}{\mathsf{fma}\left(t, t_2, t_4\right)}\\ \end{array} \]
Alternative 2
Error11.6
Cost21328
\[\begin{array}{l} t_1 := \sqrt{2 + \frac{4}{x}}\\ t_2 := \frac{\ell \cdot \ell}{x}\\ t_3 := \frac{\frac{\ell}{\frac{x}{\frac{\ell}{t}}}}{t_1}\\ \mathbf{if}\;t \leq -44000:\\ \;\;\;\;-\sqrt{\frac{-1 + x}{x + 1}}\\ \mathbf{elif}\;t \leq -2.9 \cdot 10^{-183}:\\ \;\;\;\;t \cdot \frac{\sqrt{2}}{\sqrt{t_2 + \left(t_2 + 2 \cdot \left(t \cdot t + \frac{t \cdot t}{x}\right)\right)}}\\ \mathbf{elif}\;t \leq -2.8 \cdot 10^{-256}:\\ \;\;\;\;t \cdot \frac{\sqrt{2}}{t_1 \cdot \left(-t\right) - t_3}\\ \mathbf{elif}\;t \leq 5.5 \cdot 10^{-275}:\\ \;\;\;\;\frac{t \cdot \sqrt{2}}{\sqrt{2 \cdot \frac{\ell}{\frac{x}{\ell}}}}\\ \mathbf{else}:\\ \;\;\;\;t \cdot \frac{\sqrt{2}}{t_3 + t \cdot t_1}\\ \end{array} \]
Alternative 3
Error12.1
Cost21260
\[\begin{array}{l} t_1 := \sqrt{2 + \frac{4}{x}}\\ t_2 := \sqrt{\frac{-1 + x}{x + 1}}\\ t_3 := \frac{\ell \cdot \ell}{x}\\ \mathbf{if}\;t \leq -2750000:\\ \;\;\;\;-t_2\\ \mathbf{elif}\;t \leq -2.9 \cdot 10^{-183}:\\ \;\;\;\;t \cdot \frac{\sqrt{2}}{\sqrt{t_3 + \left(t_3 + 2 \cdot \left(t \cdot t + \frac{t \cdot t}{x}\right)\right)}}\\ \mathbf{elif}\;t \leq -1.15 \cdot 10^{-254}:\\ \;\;\;\;t \cdot \frac{\sqrt{2}}{t_1 \cdot \left(-t\right) - \frac{\frac{\ell}{\frac{x}{\frac{\ell}{t}}}}{t_1}}\\ \mathbf{elif}\;t \leq 1.2 \cdot 10^{-152}:\\ \;\;\;\;\frac{t \cdot \sqrt{2}}{\sqrt{2 \cdot \frac{\ell}{\frac{x}{\ell}}}}\\ \mathbf{else}:\\ \;\;\;\;t_2\\ \end{array} \]
Alternative 4
Error11.7
Cost20680
\[\begin{array}{l} \mathbf{if}\;t \leq -16:\\ \;\;\;\;-\sqrt{\frac{-1 + x}{x + 1}}\\ \mathbf{elif}\;t \leq 5.8 \cdot 10^{-11}:\\ \;\;\;\;\sqrt{2} \cdot \frac{t}{\sqrt{2 \cdot \left(t \cdot t + \frac{\mathsf{fma}\left(2, t \cdot t, \ell \cdot \ell\right)}{x}\right)}}\\ \mathbf{else}:\\ \;\;\;\;1 + \frac{-1}{x}\\ \end{array} \]
Alternative 5
Error11.7
Cost14792
\[\begin{array}{l} t_1 := \frac{\ell \cdot \ell}{x}\\ \mathbf{if}\;t \leq -130000:\\ \;\;\;\;-\sqrt{\frac{-1 + x}{x + 1}}\\ \mathbf{elif}\;t \leq 3.3 \cdot 10^{-13}:\\ \;\;\;\;t \cdot \frac{\sqrt{2}}{\sqrt{t_1 + \left(t_1 + 2 \cdot \left(t \cdot t + \frac{t \cdot t}{x}\right)\right)}}\\ \mathbf{else}:\\ \;\;\;\;1 + \frac{-1}{x}\\ \end{array} \]
Alternative 6
Error13.7
Cost13768
\[\begin{array}{l} t_1 := \sqrt{\frac{-1 + x}{x + 1}}\\ \mathbf{if}\;t \leq -1.2 \cdot 10^{-152}:\\ \;\;\;\;-t_1\\ \mathbf{elif}\;t \leq 8.8 \cdot 10^{-152}:\\ \;\;\;\;\frac{t \cdot \sqrt{2}}{\sqrt{2 \cdot \frac{\ell}{\frac{x}{\ell}}}}\\ \mathbf{else}:\\ \;\;\;\;t_1\\ \end{array} \]
Alternative 7
Error14.3
Cost7112
\[\begin{array}{l} \mathbf{if}\;t \leq -1.5 \cdot 10^{-216}:\\ \;\;\;\;\frac{t}{t \cdot \left(\frac{-0.5}{x \cdot x} - \left(1 + \frac{1}{x}\right)\right)}\\ \mathbf{elif}\;t \leq 2.45 \cdot 10^{-278}:\\ \;\;\;\;t \cdot \frac{-\sqrt{x}}{\ell}\\ \mathbf{else}:\\ \;\;\;\;\sqrt{\frac{-1 + x}{x + 1}}\\ \end{array} \]
Alternative 8
Error14.2
Cost7112
\[\begin{array}{l} t_1 := \sqrt{\frac{-1 + x}{x + 1}}\\ \mathbf{if}\;t \leq -2.9 \cdot 10^{-216}:\\ \;\;\;\;-t_1\\ \mathbf{elif}\;t \leq 3.1 \cdot 10^{-278}:\\ \;\;\;\;\frac{\sqrt{x}}{\ell} \cdot \left(-t\right)\\ \mathbf{else}:\\ \;\;\;\;t_1\\ \end{array} \]
Alternative 9
Error14.4
Cost7048
\[\begin{array}{l} \mathbf{if}\;t \leq -1.3 \cdot 10^{-215}:\\ \;\;\;\;\frac{t}{t \cdot \left(\frac{-0.5}{x \cdot x} - \left(1 + \frac{1}{x}\right)\right)}\\ \mathbf{elif}\;t \leq 4.2 \cdot 10^{-278}:\\ \;\;\;\;t \cdot \frac{-\sqrt{x}}{\ell}\\ \mathbf{else}:\\ \;\;\;\;1 + \left(\frac{0.5}{x \cdot x} + \frac{-1}{x}\right)\\ \end{array} \]
Alternative 10
Error14.6
Cost6984
\[\begin{array}{l} \mathbf{if}\;t \leq -2.65 \cdot 10^{-216}:\\ \;\;\;\;\frac{t}{t \cdot \left(\frac{-0.5}{x \cdot x} - \left(1 + \frac{1}{x}\right)\right)}\\ \mathbf{elif}\;t \leq 1.6 \cdot 10^{-276}:\\ \;\;\;\;t \cdot \frac{\sqrt{x}}{\ell}\\ \mathbf{else}:\\ \;\;\;\;1 + \left(\frac{0.5}{x \cdot x} + \frac{-1}{x}\right)\\ \end{array} \]
Alternative 11
Error15.5
Cost1092
\[\begin{array}{l} \mathbf{if}\;t \leq 9.6 \cdot 10^{-297}:\\ \;\;\;\;\frac{t}{t \cdot \left(\frac{-0.5}{x \cdot x} - \left(1 + \frac{1}{x}\right)\right)}\\ \mathbf{else}:\\ \;\;\;\;1 + \left(\frac{0.5}{x \cdot x} + \frac{-1}{x}\right)\\ \end{array} \]
Alternative 12
Error15.4
Cost836
\[\begin{array}{l} \mathbf{if}\;t \leq -2.5 \cdot 10^{-308}:\\ \;\;\;\;-1 + \left(\frac{1}{x} + \frac{-0.5}{x \cdot x}\right)\\ \mathbf{else}:\\ \;\;\;\;1 + \frac{-1}{x}\\ \end{array} \]
Alternative 13
Error15.3
Cost836
\[\begin{array}{l} \mathbf{if}\;t \leq -2.5 \cdot 10^{-308}:\\ \;\;\;\;-1 + \left(\frac{1}{x} + \frac{-0.5}{x \cdot x}\right)\\ \mathbf{else}:\\ \;\;\;\;1 + \left(\frac{0.5}{x \cdot x} + \frac{-1}{x}\right)\\ \end{array} \]
Alternative 14
Error15.8
Cost452
\[\begin{array}{l} \mathbf{if}\;t \leq 9.6 \cdot 10^{-297}:\\ \;\;\;\;-1 + \frac{1}{x}\\ \mathbf{else}:\\ \;\;\;\;1\\ \end{array} \]
Alternative 15
Error15.5
Cost452
\[\begin{array}{l} \mathbf{if}\;t \leq -2.5 \cdot 10^{-308}:\\ \;\;\;\;-1 + \frac{1}{x}\\ \mathbf{else}:\\ \;\;\;\;1 + \frac{-1}{x}\\ \end{array} \]
Alternative 16
Error15.9
Cost196
\[\begin{array}{l} \mathbf{if}\;t \leq -2.5 \cdot 10^{-308}:\\ \;\;\;\;-1\\ \mathbf{else}:\\ \;\;\;\;1\\ \end{array} \]
Alternative 17
Error39.0
Cost64
\[-1 \]

Error

Reproduce?

herbie shell --seed 2023038 
(FPCore (x l t)
  :name "Toniolo and Linder, Equation (7)"
  :precision binary64
  (/ (* (sqrt 2.0) t) (sqrt (- (* (/ (+ x 1.0) (- x 1.0)) (+ (* l l) (* 2.0 (* t t)))) (* l l)))))