Toniolo and Linder, Equation (7)

Percentage Accurate: 33.1% → 81.7%
Time: 22.1s
Alternatives: 10
Speedup: 225.0×

Specification

?
\[\begin{array}{l} \\ \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}} \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)))))
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)));
}
real(8) function code(x, l, t)
    real(8), intent (in) :: x
    real(8), intent (in) :: l
    real(8), intent (in) :: t
    code = (sqrt(2.0d0) * t) / sqrt(((((x + 1.0d0) / (x - 1.0d0)) * ((l * l) + (2.0d0 * (t * t)))) - (l * l)))
end function
public static double code(double x, double l, double t) {
	return (Math.sqrt(2.0) * t) / Math.sqrt(((((x + 1.0) / (x - 1.0)) * ((l * l) + (2.0 * (t * t)))) - (l * l)));
}
def code(x, l, t):
	return (math.sqrt(2.0) * t) / math.sqrt(((((x + 1.0) / (x - 1.0)) * ((l * l) + (2.0 * (t * t)))) - (l * l)))
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 tmp = code(x, l, t)
	tmp = (sqrt(2.0) * t) / sqrt(((((x + 1.0) / (x - 1.0)) * ((l * l) + (2.0 * (t * t)))) - (l * l)));
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]
\begin{array}{l}

\\
\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}}
\end{array}

Sampling outcomes in binary64 precision:

Local Percentage Accuracy vs ?

The average percentage accuracy by input value. Horizontal axis shows value of an input variable; the variable is choosen in the title. Vertical axis is accuracy; higher is better. Red represent the original program, while blue represents Herbie's suggestion. These can be toggled with buttons below the plot. The line is an average while dots represent individual samples.

Accuracy vs Speed?

Herbie found 10 alternatives:

AlternativeAccuracySpeedup
The accuracy (vertical axis) and speed (horizontal axis) of each alternatives. Up and to the right is better. The red square shows the initial program, and each blue circle shows an alternative.The line shows the best available speed-accuracy tradeoffs.

Initial Program: 33.1% accurate, 1.0× speedup?

\[\begin{array}{l} \\ \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}} \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)))))
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)));
}
real(8) function code(x, l, t)
    real(8), intent (in) :: x
    real(8), intent (in) :: l
    real(8), intent (in) :: t
    code = (sqrt(2.0d0) * t) / sqrt(((((x + 1.0d0) / (x - 1.0d0)) * ((l * l) + (2.0d0 * (t * t)))) - (l * l)))
end function
public static double code(double x, double l, double t) {
	return (Math.sqrt(2.0) * t) / Math.sqrt(((((x + 1.0) / (x - 1.0)) * ((l * l) + (2.0 * (t * t)))) - (l * l)));
}
def code(x, l, t):
	return (math.sqrt(2.0) * t) / math.sqrt(((((x + 1.0) / (x - 1.0)) * ((l * l) + (2.0 * (t * t)))) - (l * l)))
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 tmp = code(x, l, t)
	tmp = (sqrt(2.0) * t) / sqrt(((((x + 1.0) / (x - 1.0)) * ((l * l) + (2.0 * (t * t)))) - (l * l)));
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]
\begin{array}{l}

\\
\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}}
\end{array}

Alternative 1: 81.7% accurate, 0.7× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := t \cdot \frac{\sqrt{2}}{\sqrt{\frac{\ell \cdot \ell}{x} + \left(2 \cdot \left(t \cdot t + \frac{t \cdot t}{x}\right) + \frac{\mathsf{fma}\left(t \cdot 2, t, \ell \cdot \ell\right)}{x}\right)}}\\ \mathbf{if}\;t \leq -1.65 \cdot 10^{-9}:\\ \;\;\;\;-\sqrt{\frac{x + -1}{x + 1}}\\ \mathbf{elif}\;t \leq -4.4 \cdot 10^{-166}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;t \leq -2.4 \cdot 10^{-253}:\\ \;\;\;\;-1\\ \mathbf{elif}\;t \leq 7.6 \cdot 10^{-5}:\\ \;\;\;\;t_1\\ \mathbf{else}:\\ \;\;\;\;1 + \frac{-1}{x}\\ \end{array} \end{array} \]
(FPCore (x l t)
 :precision binary64
 (let* ((t_1
         (*
          t
          (/
           (sqrt 2.0)
           (sqrt
            (+
             (/ (* l l) x)
             (+
              (* 2.0 (+ (* t t) (/ (* t t) x)))
              (/ (fma (* t 2.0) t (* l l)) x))))))))
   (if (<= t -1.65e-9)
     (- (sqrt (/ (+ x -1.0) (+ x 1.0))))
     (if (<= t -4.4e-166)
       t_1
       (if (<= t -2.4e-253) -1.0 (if (<= t 7.6e-5) t_1 (+ 1.0 (/ -1.0 x))))))))
double code(double x, double l, double t) {
	double t_1 = t * (sqrt(2.0) / sqrt((((l * l) / x) + ((2.0 * ((t * t) + ((t * t) / x))) + (fma((t * 2.0), t, (l * l)) / x)))));
	double tmp;
	if (t <= -1.65e-9) {
		tmp = -sqrt(((x + -1.0) / (x + 1.0)));
	} else if (t <= -4.4e-166) {
		tmp = t_1;
	} else if (t <= -2.4e-253) {
		tmp = -1.0;
	} else if (t <= 7.6e-5) {
		tmp = t_1;
	} else {
		tmp = 1.0 + (-1.0 / x);
	}
	return tmp;
}
function code(x, l, t)
	t_1 = Float64(t * Float64(sqrt(2.0) / sqrt(Float64(Float64(Float64(l * l) / x) + Float64(Float64(2.0 * Float64(Float64(t * t) + Float64(Float64(t * t) / x))) + Float64(fma(Float64(t * 2.0), t, Float64(l * l)) / x))))))
	tmp = 0.0
	if (t <= -1.65e-9)
		tmp = Float64(-sqrt(Float64(Float64(x + -1.0) / Float64(x + 1.0))));
	elseif (t <= -4.4e-166)
		tmp = t_1;
	elseif (t <= -2.4e-253)
		tmp = -1.0;
	elseif (t <= 7.6e-5)
		tmp = t_1;
	else
		tmp = Float64(1.0 + Float64(-1.0 / x));
	end
	return tmp
end
code[x_, l_, t_] := Block[{t$95$1 = N[(t * N[(N[Sqrt[2.0], $MachinePrecision] / N[Sqrt[N[(N[(N[(l * l), $MachinePrecision] / x), $MachinePrecision] + N[(N[(2.0 * N[(N[(t * t), $MachinePrecision] + N[(N[(t * t), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(t * 2.0), $MachinePrecision] * t + N[(l * l), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -1.65e-9], (-N[Sqrt[N[(N[(x + -1.0), $MachinePrecision] / N[(x + 1.0), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), If[LessEqual[t, -4.4e-166], t$95$1, If[LessEqual[t, -2.4e-253], -1.0, If[LessEqual[t, 7.6e-5], t$95$1, N[(1.0 + N[(-1.0 / x), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := t \cdot \frac{\sqrt{2}}{\sqrt{\frac{\ell \cdot \ell}{x} + \left(2 \cdot \left(t \cdot t + \frac{t \cdot t}{x}\right) + \frac{\mathsf{fma}\left(t \cdot 2, t, \ell \cdot \ell\right)}{x}\right)}}\\
\mathbf{if}\;t \leq -1.65 \cdot 10^{-9}:\\
\;\;\;\;-\sqrt{\frac{x + -1}{x + 1}}\\

\mathbf{elif}\;t \leq -4.4 \cdot 10^{-166}:\\
\;\;\;\;t_1\\

\mathbf{elif}\;t \leq -2.4 \cdot 10^{-253}:\\
\;\;\;\;-1\\

\mathbf{elif}\;t \leq 7.6 \cdot 10^{-5}:\\
\;\;\;\;t_1\\

\mathbf{else}:\\
\;\;\;\;1 + \frac{-1}{x}\\


\end{array}
\end{array}
Derivation
  1. Split input into 4 regimes
  2. if t < -1.65000000000000009e-9

    1. Initial program 39.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. Step-by-step derivation
      1. associate-/l*40.0%

        \[\leadsto \color{blue}{\frac{\sqrt{2}}{\frac{\sqrt{\frac{x + 1}{x - 1} \cdot \left(\ell \cdot \ell + 2 \cdot \left(t \cdot t\right)\right) - \ell \cdot \ell}}{t}}} \]
      2. fma-neg40.0%

        \[\leadsto \frac{\sqrt{2}}{\frac{\sqrt{\color{blue}{\mathsf{fma}\left(\frac{x + 1}{x - 1}, \ell \cdot \ell + 2 \cdot \left(t \cdot t\right), -\ell \cdot \ell\right)}}}{t}} \]
      3. remove-double-neg40.0%

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

        \[\leadsto \frac{\sqrt{2}}{\frac{\sqrt{\color{blue}{\frac{x + 1}{x - 1} \cdot \left(-\left(-\left(\ell \cdot \ell + 2 \cdot \left(t \cdot t\right)\right)\right)\right) - \ell \cdot \ell}}}{t}} \]
      5. sub-neg40.0%

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

        \[\leadsto \frac{\sqrt{2}}{\frac{\sqrt{\frac{x + 1}{x + \color{blue}{-1}} \cdot \left(-\left(-\left(\ell \cdot \ell + 2 \cdot \left(t \cdot t\right)\right)\right)\right) - \ell \cdot \ell}}{t}} \]
      7. remove-double-neg40.0%

        \[\leadsto \frac{\sqrt{2}}{\frac{\sqrt{\frac{x + 1}{x + -1} \cdot \color{blue}{\left(\ell \cdot \ell + 2 \cdot \left(t \cdot t\right)\right)} - \ell \cdot \ell}}{t}} \]
      8. fma-def40.0%

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

      \[\leadsto \color{blue}{\frac{\sqrt{2}}{\frac{\sqrt{\frac{x + 1}{x + -1} \cdot \mathsf{fma}\left(\ell, \ell, 2 \cdot \left(t \cdot t\right)\right) - \ell \cdot \ell}}{t}}} \]
    4. Applied egg-rr82.8%

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

      \[\leadsto \color{blue}{-1 \cdot \sqrt{\frac{x - 1}{1 + x}}} \]
    6. Step-by-step derivation
      1. mul-1-neg91.4%

        \[\leadsto \color{blue}{-\sqrt{\frac{x - 1}{1 + x}}} \]
      2. sub-neg91.4%

        \[\leadsto -\sqrt{\frac{\color{blue}{x + \left(-1\right)}}{1 + x}} \]
      3. metadata-eval91.4%

        \[\leadsto -\sqrt{\frac{x + \color{blue}{-1}}{1 + x}} \]
    7. Simplified91.4%

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

    if -1.65000000000000009e-9 < t < -4.4000000000000002e-166 or -2.40000000000000009e-253 < t < 7.6000000000000004e-5

    1. Initial program 33.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. Step-by-step derivation
      1. associate-*l/33.8%

        \[\leadsto \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} \]
    3. 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} \]
    4. Taylor expanded in x around inf 67.9%

      \[\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 \]
    5. Step-by-step derivation
      1. associate--l+67.9%

        \[\leadsto \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 \]
      2. unpow267.9%

        \[\leadsto \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 \]
      3. distribute-lft-out67.9%

        \[\leadsto \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 \]
      4. unpow267.9%

        \[\leadsto \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 \]
      5. unpow267.9%

        \[\leadsto \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 \]
      6. associate-*r/67.9%

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

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

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

        \[\leadsto \frac{\sqrt{2}}{\sqrt{\frac{\ell \cdot \ell}{x} + \left(2 \cdot \left(\frac{t \cdot t}{x} + t \cdot t\right) - \frac{-\left(2 \cdot \color{blue}{\left(t \cdot t\right)} + {\ell}^{2}\right)}{x}\right)}} \cdot t \]
      10. associate-*l*67.9%

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

        \[\leadsto \frac{\sqrt{2}}{\sqrt{\frac{\ell \cdot \ell}{x} + \left(2 \cdot \left(\frac{t \cdot t}{x} + t \cdot t\right) - \frac{-\left(\left(2 \cdot t\right) \cdot t + \color{blue}{\ell \cdot \ell}\right)}{x}\right)}} \cdot t \]
      12. fma-udef67.9%

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

      \[\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) - \frac{-\mathsf{fma}\left(2 \cdot t, t, \ell \cdot \ell\right)}{x}\right)}}} \cdot t \]

    if -4.4000000000000002e-166 < t < -2.40000000000000009e-253

    1. Initial program 2.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. Step-by-step derivation
      1. associate-*l/2.1%

        \[\leadsto \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} \]
    3. Simplified2.1%

      \[\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} \]
    4. Applied egg-rr55.6%

      \[\leadsto \color{blue}{e^{\log \left(\frac{\sqrt{2}}{\mathsf{hypot}\left(\mathsf{hypot}\left(\ell, t \cdot \sqrt{2}\right) \cdot \sqrt{\frac{x + 1}{x + -1}}, \ell\right)}\right)}} \cdot t \]
    5. Taylor expanded in t around -inf 61.2%

      \[\leadsto \color{blue}{\left(-1 \cdot \left(\sqrt{\frac{x - 1}{1 + x}} \cdot \frac{1}{t}\right)\right)} \cdot t \]
    6. Step-by-step derivation
      1. mul-1-neg61.2%

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

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

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

      \[\leadsto \color{blue}{\left(-\sqrt{\frac{x + -1}{1 + x}} \cdot \frac{1}{t}\right)} \cdot t \]
    8. Taylor expanded in x around inf 61.3%

      \[\leadsto \color{blue}{-1} \]

    if 7.6000000000000004e-5 < t

    1. Initial program 33.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. Step-by-step derivation
      1. associate-*l/33.0%

        \[\leadsto \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} \]
    3. Simplified33.0%

      \[\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} \]
    4. Applied egg-rr76.7%

      \[\leadsto \color{blue}{e^{\log \left(\frac{\sqrt{2}}{\mathsf{hypot}\left(\mathsf{hypot}\left(\ell, t \cdot \sqrt{2}\right) \cdot \sqrt{\frac{x + 1}{x + -1}}, \ell\right)}\right)}} \cdot t \]
    5. Taylor expanded in t around -inf 1.6%

      \[\leadsto \color{blue}{\left(-1 \cdot \left(\sqrt{\frac{x - 1}{1 + x}} \cdot \frac{1}{t}\right)\right)} \cdot t \]
    6. Step-by-step derivation
      1. mul-1-neg1.6%

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

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

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

      \[\leadsto \color{blue}{\left(-\sqrt{\frac{x + -1}{1 + x}} \cdot \frac{1}{t}\right)} \cdot t \]
    8. Taylor expanded in x around -inf 0.0%

      \[\leadsto \color{blue}{-1 \cdot {\left(\sqrt{-1}\right)}^{2} - \frac{1}{x}} \]
    9. Step-by-step derivation
      1. unpow20.0%

        \[\leadsto -1 \cdot \color{blue}{\left(\sqrt{-1} \cdot \sqrt{-1}\right)} - \frac{1}{x} \]
      2. rem-square-sqrt90.6%

        \[\leadsto -1 \cdot \color{blue}{-1} - \frac{1}{x} \]
      3. metadata-eval90.6%

        \[\leadsto \color{blue}{1} - \frac{1}{x} \]
    10. Simplified90.6%

      \[\leadsto \color{blue}{1 - \frac{1}{x}} \]
  3. Recombined 4 regimes into one program.
  4. Final simplification80.1%

    \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -1.65 \cdot 10^{-9}:\\ \;\;\;\;-\sqrt{\frac{x + -1}{x + 1}}\\ \mathbf{elif}\;t \leq -4.4 \cdot 10^{-166}:\\ \;\;\;\;t \cdot \frac{\sqrt{2}}{\sqrt{\frac{\ell \cdot \ell}{x} + \left(2 \cdot \left(t \cdot t + \frac{t \cdot t}{x}\right) + \frac{\mathsf{fma}\left(t \cdot 2, t, \ell \cdot \ell\right)}{x}\right)}}\\ \mathbf{elif}\;t \leq -2.4 \cdot 10^{-253}:\\ \;\;\;\;-1\\ \mathbf{elif}\;t \leq 7.6 \cdot 10^{-5}:\\ \;\;\;\;t \cdot \frac{\sqrt{2}}{\sqrt{\frac{\ell \cdot \ell}{x} + \left(2 \cdot \left(t \cdot t + \frac{t \cdot t}{x}\right) + \frac{\mathsf{fma}\left(t \cdot 2, t, \ell \cdot \ell\right)}{x}\right)}}\\ \mathbf{else}:\\ \;\;\;\;1 + \frac{-1}{x}\\ \end{array} \]

Alternative 2: 79.7% accurate, 0.9× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := \frac{\sqrt{2}}{\frac{\sqrt{\frac{\ell \cdot \ell + \ell \cdot \ell}{x}}}{t}}\\ \mathbf{if}\;t \leq -1.7 \cdot 10^{-255}:\\ \;\;\;\;-\sqrt{\frac{x + -1}{x + 1}}\\ \mathbf{elif}\;t \leq 2.6 \cdot 10^{-227}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;t \leq 2.2 \cdot 10^{-211}:\\ \;\;\;\;1\\ \mathbf{elif}\;t \leq 6.2 \cdot 10^{-162}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;t \leq 7.6 \cdot 10^{-5}:\\ \;\;\;\;\frac{\sqrt{t \cdot \left(t \cdot 2\right)}}{\sqrt{\frac{\ell \cdot \ell}{x} + \left(2 \cdot \left(t \cdot t + \frac{t \cdot t}{x}\right) + \frac{\ell \cdot \ell + 2 \cdot \left(t \cdot t\right)}{x}\right)}}\\ \mathbf{else}:\\ \;\;\;\;1 + \frac{-1}{x}\\ \end{array} \end{array} \]
(FPCore (x l t)
 :precision binary64
 (let* ((t_1 (/ (sqrt 2.0) (/ (sqrt (/ (+ (* l l) (* l l)) x)) t))))
   (if (<= t -1.7e-255)
     (- (sqrt (/ (+ x -1.0) (+ x 1.0))))
     (if (<= t 2.6e-227)
       t_1
       (if (<= t 2.2e-211)
         1.0
         (if (<= t 6.2e-162)
           t_1
           (if (<= t 7.6e-5)
             (/
              (sqrt (* t (* t 2.0)))
              (sqrt
               (+
                (/ (* l l) x)
                (+
                 (* 2.0 (+ (* t t) (/ (* t t) x)))
                 (/ (+ (* l l) (* 2.0 (* t t))) x)))))
             (+ 1.0 (/ -1.0 x)))))))))
double code(double x, double l, double t) {
	double t_1 = sqrt(2.0) / (sqrt((((l * l) + (l * l)) / x)) / t);
	double tmp;
	if (t <= -1.7e-255) {
		tmp = -sqrt(((x + -1.0) / (x + 1.0)));
	} else if (t <= 2.6e-227) {
		tmp = t_1;
	} else if (t <= 2.2e-211) {
		tmp = 1.0;
	} else if (t <= 6.2e-162) {
		tmp = t_1;
	} else if (t <= 7.6e-5) {
		tmp = sqrt((t * (t * 2.0))) / sqrt((((l * l) / x) + ((2.0 * ((t * t) + ((t * t) / x))) + (((l * l) + (2.0 * (t * t))) / x))));
	} else {
		tmp = 1.0 + (-1.0 / x);
	}
	return tmp;
}
real(8) function code(x, l, t)
    real(8), intent (in) :: x
    real(8), intent (in) :: l
    real(8), intent (in) :: t
    real(8) :: t_1
    real(8) :: tmp
    t_1 = sqrt(2.0d0) / (sqrt((((l * l) + (l * l)) / x)) / t)
    if (t <= (-1.7d-255)) then
        tmp = -sqrt(((x + (-1.0d0)) / (x + 1.0d0)))
    else if (t <= 2.6d-227) then
        tmp = t_1
    else if (t <= 2.2d-211) then
        tmp = 1.0d0
    else if (t <= 6.2d-162) then
        tmp = t_1
    else if (t <= 7.6d-5) then
        tmp = sqrt((t * (t * 2.0d0))) / sqrt((((l * l) / x) + ((2.0d0 * ((t * t) + ((t * t) / x))) + (((l * l) + (2.0d0 * (t * t))) / x))))
    else
        tmp = 1.0d0 + ((-1.0d0) / x)
    end if
    code = tmp
end function
public static double code(double x, double l, double t) {
	double t_1 = Math.sqrt(2.0) / (Math.sqrt((((l * l) + (l * l)) / x)) / t);
	double tmp;
	if (t <= -1.7e-255) {
		tmp = -Math.sqrt(((x + -1.0) / (x + 1.0)));
	} else if (t <= 2.6e-227) {
		tmp = t_1;
	} else if (t <= 2.2e-211) {
		tmp = 1.0;
	} else if (t <= 6.2e-162) {
		tmp = t_1;
	} else if (t <= 7.6e-5) {
		tmp = Math.sqrt((t * (t * 2.0))) / Math.sqrt((((l * l) / x) + ((2.0 * ((t * t) + ((t * t) / x))) + (((l * l) + (2.0 * (t * t))) / x))));
	} else {
		tmp = 1.0 + (-1.0 / x);
	}
	return tmp;
}
def code(x, l, t):
	t_1 = math.sqrt(2.0) / (math.sqrt((((l * l) + (l * l)) / x)) / t)
	tmp = 0
	if t <= -1.7e-255:
		tmp = -math.sqrt(((x + -1.0) / (x + 1.0)))
	elif t <= 2.6e-227:
		tmp = t_1
	elif t <= 2.2e-211:
		tmp = 1.0
	elif t <= 6.2e-162:
		tmp = t_1
	elif t <= 7.6e-5:
		tmp = math.sqrt((t * (t * 2.0))) / math.sqrt((((l * l) / x) + ((2.0 * ((t * t) + ((t * t) / x))) + (((l * l) + (2.0 * (t * t))) / x))))
	else:
		tmp = 1.0 + (-1.0 / x)
	return tmp
function code(x, l, t)
	t_1 = Float64(sqrt(2.0) / Float64(sqrt(Float64(Float64(Float64(l * l) + Float64(l * l)) / x)) / t))
	tmp = 0.0
	if (t <= -1.7e-255)
		tmp = Float64(-sqrt(Float64(Float64(x + -1.0) / Float64(x + 1.0))));
	elseif (t <= 2.6e-227)
		tmp = t_1;
	elseif (t <= 2.2e-211)
		tmp = 1.0;
	elseif (t <= 6.2e-162)
		tmp = t_1;
	elseif (t <= 7.6e-5)
		tmp = Float64(sqrt(Float64(t * Float64(t * 2.0))) / sqrt(Float64(Float64(Float64(l * l) / x) + Float64(Float64(2.0 * Float64(Float64(t * t) + Float64(Float64(t * t) / x))) + Float64(Float64(Float64(l * l) + Float64(2.0 * Float64(t * t))) / x)))));
	else
		tmp = Float64(1.0 + Float64(-1.0 / x));
	end
	return tmp
end
function tmp_2 = code(x, l, t)
	t_1 = sqrt(2.0) / (sqrt((((l * l) + (l * l)) / x)) / t);
	tmp = 0.0;
	if (t <= -1.7e-255)
		tmp = -sqrt(((x + -1.0) / (x + 1.0)));
	elseif (t <= 2.6e-227)
		tmp = t_1;
	elseif (t <= 2.2e-211)
		tmp = 1.0;
	elseif (t <= 6.2e-162)
		tmp = t_1;
	elseif (t <= 7.6e-5)
		tmp = sqrt((t * (t * 2.0))) / sqrt((((l * l) / x) + ((2.0 * ((t * t) + ((t * t) / x))) + (((l * l) + (2.0 * (t * t))) / x))));
	else
		tmp = 1.0 + (-1.0 / x);
	end
	tmp_2 = tmp;
end
code[x_, l_, t_] := Block[{t$95$1 = N[(N[Sqrt[2.0], $MachinePrecision] / N[(N[Sqrt[N[(N[(N[(l * l), $MachinePrecision] + N[(l * l), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]], $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -1.7e-255], (-N[Sqrt[N[(N[(x + -1.0), $MachinePrecision] / N[(x + 1.0), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), If[LessEqual[t, 2.6e-227], t$95$1, If[LessEqual[t, 2.2e-211], 1.0, If[LessEqual[t, 6.2e-162], t$95$1, If[LessEqual[t, 7.6e-5], N[(N[Sqrt[N[(t * N[(t * 2.0), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / N[Sqrt[N[(N[(N[(l * l), $MachinePrecision] / x), $MachinePrecision] + N[(N[(2.0 * N[(N[(t * t), $MachinePrecision] + N[(N[(t * t), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(l * l), $MachinePrecision] + N[(2.0 * N[(t * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], N[(1.0 + N[(-1.0 / x), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := \frac{\sqrt{2}}{\frac{\sqrt{\frac{\ell \cdot \ell + \ell \cdot \ell}{x}}}{t}}\\
\mathbf{if}\;t \leq -1.7 \cdot 10^{-255}:\\
\;\;\;\;-\sqrt{\frac{x + -1}{x + 1}}\\

\mathbf{elif}\;t \leq 2.6 \cdot 10^{-227}:\\
\;\;\;\;t_1\\

\mathbf{elif}\;t \leq 2.2 \cdot 10^{-211}:\\
\;\;\;\;1\\

\mathbf{elif}\;t \leq 6.2 \cdot 10^{-162}:\\
\;\;\;\;t_1\\

\mathbf{elif}\;t \leq 7.6 \cdot 10^{-5}:\\
\;\;\;\;\frac{\sqrt{t \cdot \left(t \cdot 2\right)}}{\sqrt{\frac{\ell \cdot \ell}{x} + \left(2 \cdot \left(t \cdot t + \frac{t \cdot t}{x}\right) + \frac{\ell \cdot \ell + 2 \cdot \left(t \cdot t\right)}{x}\right)}}\\

\mathbf{else}:\\
\;\;\;\;1 + \frac{-1}{x}\\


\end{array}
\end{array}
Derivation
  1. Split input into 5 regimes
  2. if t < -1.69999999999999992e-255

    1. Initial program 36.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. Step-by-step derivation
      1. associate-/l*36.7%

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

        \[\leadsto \frac{\sqrt{2}}{\frac{\sqrt{\color{blue}{\mathsf{fma}\left(\frac{x + 1}{x - 1}, \ell \cdot \ell + 2 \cdot \left(t \cdot t\right), -\ell \cdot \ell\right)}}}{t}} \]
      3. remove-double-neg36.7%

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

        \[\leadsto \frac{\sqrt{2}}{\frac{\sqrt{\color{blue}{\frac{x + 1}{x - 1} \cdot \left(-\left(-\left(\ell \cdot \ell + 2 \cdot \left(t \cdot t\right)\right)\right)\right) - \ell \cdot \ell}}}{t}} \]
      5. sub-neg36.7%

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

        \[\leadsto \frac{\sqrt{2}}{\frac{\sqrt{\frac{x + 1}{x + \color{blue}{-1}} \cdot \left(-\left(-\left(\ell \cdot \ell + 2 \cdot \left(t \cdot t\right)\right)\right)\right) - \ell \cdot \ell}}{t}} \]
      7. remove-double-neg36.7%

        \[\leadsto \frac{\sqrt{2}}{\frac{\sqrt{\frac{x + 1}{x + -1} \cdot \color{blue}{\left(\ell \cdot \ell + 2 \cdot \left(t \cdot t\right)\right)} - \ell \cdot \ell}}{t}} \]
      8. fma-def36.7%

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

      \[\leadsto \color{blue}{\frac{\sqrt{2}}{\frac{\sqrt{\frac{x + 1}{x + -1} \cdot \mathsf{fma}\left(\ell, \ell, 2 \cdot \left(t \cdot t\right)\right) - \ell \cdot \ell}}{t}}} \]
    4. Applied egg-rr72.7%

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

      \[\leadsto \color{blue}{-1 \cdot \sqrt{\frac{x - 1}{1 + x}}} \]
    6. Step-by-step derivation
      1. mul-1-neg81.6%

        \[\leadsto \color{blue}{-\sqrt{\frac{x - 1}{1 + x}}} \]
      2. sub-neg81.6%

        \[\leadsto -\sqrt{\frac{\color{blue}{x + \left(-1\right)}}{1 + x}} \]
      3. metadata-eval81.6%

        \[\leadsto -\sqrt{\frac{x + \color{blue}{-1}}{1 + x}} \]
    7. Simplified81.6%

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

    if -1.69999999999999992e-255 < t < 2.60000000000000011e-227 or 2.19999999999999998e-211 < t < 6.1999999999999997e-162

    1. Initial program 2.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. Step-by-step derivation
      1. associate-/l*2.0%

        \[\leadsto \color{blue}{\frac{\sqrt{2}}{\frac{\sqrt{\frac{x + 1}{x - 1} \cdot \left(\ell \cdot \ell + 2 \cdot \left(t \cdot t\right)\right) - \ell \cdot \ell}}{t}}} \]
      2. fma-neg2.0%

        \[\leadsto \frac{\sqrt{2}}{\frac{\sqrt{\color{blue}{\mathsf{fma}\left(\frac{x + 1}{x - 1}, \ell \cdot \ell + 2 \cdot \left(t \cdot t\right), -\ell \cdot \ell\right)}}}{t}} \]
      3. remove-double-neg2.0%

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

        \[\leadsto \frac{\sqrt{2}}{\frac{\sqrt{\color{blue}{\frac{x + 1}{x - 1} \cdot \left(-\left(-\left(\ell \cdot \ell + 2 \cdot \left(t \cdot t\right)\right)\right)\right) - \ell \cdot \ell}}}{t}} \]
      5. sub-neg2.0%

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

        \[\leadsto \frac{\sqrt{2}}{\frac{\sqrt{\frac{x + 1}{x + \color{blue}{-1}} \cdot \left(-\left(-\left(\ell \cdot \ell + 2 \cdot \left(t \cdot t\right)\right)\right)\right) - \ell \cdot \ell}}{t}} \]
      7. remove-double-neg2.0%

        \[\leadsto \frac{\sqrt{2}}{\frac{\sqrt{\frac{x + 1}{x + -1} \cdot \color{blue}{\left(\ell \cdot \ell + 2 \cdot \left(t \cdot t\right)\right)} - \ell \cdot \ell}}{t}} \]
      8. fma-def2.0%

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

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

      \[\leadsto \frac{\sqrt{2}}{\color{blue}{\frac{1}{t} \cdot \sqrt{\frac{\left(1 + x\right) \cdot {\ell}^{2}}{x - 1} - {\ell}^{2}}}} \]
    5. Step-by-step derivation
      1. associate-*l/8.5%

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

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

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

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

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

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

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

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

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

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

      \[\leadsto \frac{\sqrt{2}}{\frac{\sqrt{\color{blue}{\frac{{\ell}^{2} - -1 \cdot {\ell}^{2}}{x}}}}{t}} \]
    8. Step-by-step derivation
      1. sub-neg55.0%

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

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

        \[\leadsto \frac{\sqrt{2}}{\frac{\sqrt{\frac{\ell \cdot \ell + \left(-\color{blue}{\left(-{\ell}^{2}\right)}\right)}{x}}}{t}} \]
      4. remove-double-neg55.0%

        \[\leadsto \frac{\sqrt{2}}{\frac{\sqrt{\frac{\ell \cdot \ell + \color{blue}{{\ell}^{2}}}{x}}}{t}} \]
      5. unpow255.0%

        \[\leadsto \frac{\sqrt{2}}{\frac{\sqrt{\frac{\ell \cdot \ell + \color{blue}{\ell \cdot \ell}}{x}}}{t}} \]
    9. Simplified55.0%

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

    if 2.60000000000000011e-227 < t < 2.19999999999999998e-211

    1. Initial program 3.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. Step-by-step derivation
      1. associate-*l/3.1%

        \[\leadsto \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} \]
    3. Simplified3.1%

      \[\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} \]
    4. Applied egg-rr55.6%

      \[\leadsto \color{blue}{e^{\log \left(\frac{\sqrt{2}}{\mathsf{hypot}\left(\mathsf{hypot}\left(\ell, t \cdot \sqrt{2}\right) \cdot \sqrt{\frac{x + 1}{x + -1}}, \ell\right)}\right)}} \cdot t \]
    5. Taylor expanded in t around -inf 1.6%

      \[\leadsto \color{blue}{\left(-1 \cdot \left(\sqrt{\frac{x - 1}{1 + x}} \cdot \frac{1}{t}\right)\right)} \cdot t \]
    6. Step-by-step derivation
      1. mul-1-neg1.6%

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

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

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

      \[\leadsto \color{blue}{\left(-\sqrt{\frac{x + -1}{1 + x}} \cdot \frac{1}{t}\right)} \cdot t \]
    8. Taylor expanded in x around -inf 0.0%

      \[\leadsto \color{blue}{-1 \cdot {\left(\sqrt{-1}\right)}^{2}} \]
    9. Step-by-step derivation
      1. unpow20.0%

        \[\leadsto -1 \cdot \color{blue}{\left(\sqrt{-1} \cdot \sqrt{-1}\right)} \]
      2. rem-square-sqrt81.7%

        \[\leadsto -1 \cdot \color{blue}{-1} \]
      3. metadata-eval81.7%

        \[\leadsto \color{blue}{1} \]
    10. Simplified81.7%

      \[\leadsto \color{blue}{1} \]

    if 6.1999999999999997e-162 < t < 7.6000000000000004e-5

    1. Initial program 56.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. Step-by-step derivation
      1. add-sqr-sqrt56.0%

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

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

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

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

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

      \[\leadsto \frac{\sqrt{\left(2 \cdot t\right) \cdot t}}{\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}}}} \]
    5. Step-by-step derivation
      1. associate--l+77.8%

        \[\leadsto \frac{\sqrt{\left(2 \cdot t\right) \cdot t}}{\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)}}} \]
      2. unpow277.8%

        \[\leadsto \frac{\sqrt{\left(2 \cdot t\right) \cdot t}}{\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)}} \]
      3. distribute-lft-out77.8%

        \[\leadsto \frac{\sqrt{\left(2 \cdot t\right) \cdot t}}{\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)}} \]
      4. unpow277.8%

        \[\leadsto \frac{\sqrt{\left(2 \cdot t\right) \cdot t}}{\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)}} \]
      5. unpow277.8%

        \[\leadsto \frac{\sqrt{\left(2 \cdot t\right) \cdot t}}{\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)}} \]
      6. associate-*r/77.8%

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

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

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

        \[\leadsto \frac{\sqrt{\left(2 \cdot t\right) \cdot t}}{\sqrt{\frac{\ell \cdot \ell}{x} + \left(2 \cdot \left(\frac{t \cdot t}{x} + t \cdot t\right) - \frac{-\left(\ell \cdot \ell + 2 \cdot \color{blue}{\left(t \cdot t\right)}\right)}{x}\right)}} \]
    6. Simplified77.8%

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

    if 7.6000000000000004e-5 < t

    1. Initial program 33.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. Step-by-step derivation
      1. associate-*l/33.0%

        \[\leadsto \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} \]
    3. Simplified33.0%

      \[\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} \]
    4. Applied egg-rr76.7%

      \[\leadsto \color{blue}{e^{\log \left(\frac{\sqrt{2}}{\mathsf{hypot}\left(\mathsf{hypot}\left(\ell, t \cdot \sqrt{2}\right) \cdot \sqrt{\frac{x + 1}{x + -1}}, \ell\right)}\right)}} \cdot t \]
    5. Taylor expanded in t around -inf 1.6%

      \[\leadsto \color{blue}{\left(-1 \cdot \left(\sqrt{\frac{x - 1}{1 + x}} \cdot \frac{1}{t}\right)\right)} \cdot t \]
    6. Step-by-step derivation
      1. mul-1-neg1.6%

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

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

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

      \[\leadsto \color{blue}{\left(-\sqrt{\frac{x + -1}{1 + x}} \cdot \frac{1}{t}\right)} \cdot t \]
    8. Taylor expanded in x around -inf 0.0%

      \[\leadsto \color{blue}{-1 \cdot {\left(\sqrt{-1}\right)}^{2} - \frac{1}{x}} \]
    9. Step-by-step derivation
      1. unpow20.0%

        \[\leadsto -1 \cdot \color{blue}{\left(\sqrt{-1} \cdot \sqrt{-1}\right)} - \frac{1}{x} \]
      2. rem-square-sqrt90.6%

        \[\leadsto -1 \cdot \color{blue}{-1} - \frac{1}{x} \]
      3. metadata-eval90.6%

        \[\leadsto \color{blue}{1} - \frac{1}{x} \]
    10. Simplified90.6%

      \[\leadsto \color{blue}{1 - \frac{1}{x}} \]
  3. Recombined 5 regimes into one program.
  4. Final simplification79.7%

    \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -1.7 \cdot 10^{-255}:\\ \;\;\;\;-\sqrt{\frac{x + -1}{x + 1}}\\ \mathbf{elif}\;t \leq 2.6 \cdot 10^{-227}:\\ \;\;\;\;\frac{\sqrt{2}}{\frac{\sqrt{\frac{\ell \cdot \ell + \ell \cdot \ell}{x}}}{t}}\\ \mathbf{elif}\;t \leq 2.2 \cdot 10^{-211}:\\ \;\;\;\;1\\ \mathbf{elif}\;t \leq 6.2 \cdot 10^{-162}:\\ \;\;\;\;\frac{\sqrt{2}}{\frac{\sqrt{\frac{\ell \cdot \ell + \ell \cdot \ell}{x}}}{t}}\\ \mathbf{elif}\;t \leq 7.6 \cdot 10^{-5}:\\ \;\;\;\;\frac{\sqrt{t \cdot \left(t \cdot 2\right)}}{\sqrt{\frac{\ell \cdot \ell}{x} + \left(2 \cdot \left(t \cdot t + \frac{t \cdot t}{x}\right) + \frac{\ell \cdot \ell + 2 \cdot \left(t \cdot t\right)}{x}\right)}}\\ \mathbf{else}:\\ \;\;\;\;1 + \frac{-1}{x}\\ \end{array} \]

Alternative 3: 78.2% accurate, 1.0× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := \sqrt{\frac{x + -1}{x + 1}}\\ \mathbf{if}\;t \leq -1.1 \cdot 10^{-252}:\\ \;\;\;\;-t_1\\ \mathbf{elif}\;t \leq 3.6 \cdot 10^{-227}:\\ \;\;\;\;\frac{\sqrt{2}}{\frac{\sqrt{\frac{\ell \cdot \ell + \ell \cdot \ell}{x}}}{t}}\\ \mathbf{else}:\\ \;\;\;\;t_1\\ \end{array} \end{array} \]
(FPCore (x l t)
 :precision binary64
 (let* ((t_1 (sqrt (/ (+ x -1.0) (+ x 1.0)))))
   (if (<= t -1.1e-252)
     (- t_1)
     (if (<= t 3.6e-227)
       (/ (sqrt 2.0) (/ (sqrt (/ (+ (* l l) (* l l)) x)) t))
       t_1))))
double code(double x, double l, double t) {
	double t_1 = sqrt(((x + -1.0) / (x + 1.0)));
	double tmp;
	if (t <= -1.1e-252) {
		tmp = -t_1;
	} else if (t <= 3.6e-227) {
		tmp = sqrt(2.0) / (sqrt((((l * l) + (l * l)) / x)) / t);
	} else {
		tmp = t_1;
	}
	return tmp;
}
real(8) function code(x, l, t)
    real(8), intent (in) :: x
    real(8), intent (in) :: l
    real(8), intent (in) :: t
    real(8) :: t_1
    real(8) :: tmp
    t_1 = sqrt(((x + (-1.0d0)) / (x + 1.0d0)))
    if (t <= (-1.1d-252)) then
        tmp = -t_1
    else if (t <= 3.6d-227) then
        tmp = sqrt(2.0d0) / (sqrt((((l * l) + (l * l)) / x)) / t)
    else
        tmp = t_1
    end if
    code = tmp
end function
public static double code(double x, double l, double t) {
	double t_1 = Math.sqrt(((x + -1.0) / (x + 1.0)));
	double tmp;
	if (t <= -1.1e-252) {
		tmp = -t_1;
	} else if (t <= 3.6e-227) {
		tmp = Math.sqrt(2.0) / (Math.sqrt((((l * l) + (l * l)) / x)) / t);
	} else {
		tmp = t_1;
	}
	return tmp;
}
def code(x, l, t):
	t_1 = math.sqrt(((x + -1.0) / (x + 1.0)))
	tmp = 0
	if t <= -1.1e-252:
		tmp = -t_1
	elif t <= 3.6e-227:
		tmp = math.sqrt(2.0) / (math.sqrt((((l * l) + (l * l)) / x)) / t)
	else:
		tmp = t_1
	return tmp
function code(x, l, t)
	t_1 = sqrt(Float64(Float64(x + -1.0) / Float64(x + 1.0)))
	tmp = 0.0
	if (t <= -1.1e-252)
		tmp = Float64(-t_1);
	elseif (t <= 3.6e-227)
		tmp = Float64(sqrt(2.0) / Float64(sqrt(Float64(Float64(Float64(l * l) + Float64(l * l)) / x)) / t));
	else
		tmp = t_1;
	end
	return tmp
end
function tmp_2 = code(x, l, t)
	t_1 = sqrt(((x + -1.0) / (x + 1.0)));
	tmp = 0.0;
	if (t <= -1.1e-252)
		tmp = -t_1;
	elseif (t <= 3.6e-227)
		tmp = sqrt(2.0) / (sqrt((((l * l) + (l * l)) / x)) / t);
	else
		tmp = t_1;
	end
	tmp_2 = tmp;
end
code[x_, l_, t_] := Block[{t$95$1 = N[Sqrt[N[(N[(x + -1.0), $MachinePrecision] / N[(x + 1.0), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]}, If[LessEqual[t, -1.1e-252], (-t$95$1), If[LessEqual[t, 3.6e-227], N[(N[Sqrt[2.0], $MachinePrecision] / N[(N[Sqrt[N[(N[(N[(l * l), $MachinePrecision] + N[(l * l), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]], $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := \sqrt{\frac{x + -1}{x + 1}}\\
\mathbf{if}\;t \leq -1.1 \cdot 10^{-252}:\\
\;\;\;\;-t_1\\

\mathbf{elif}\;t \leq 3.6 \cdot 10^{-227}:\\
\;\;\;\;\frac{\sqrt{2}}{\frac{\sqrt{\frac{\ell \cdot \ell + \ell \cdot \ell}{x}}}{t}}\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if t < -1.09999999999999995e-252

    1. Initial program 36.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. Step-by-step derivation
      1. associate-/l*36.7%

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

        \[\leadsto \frac{\sqrt{2}}{\frac{\sqrt{\color{blue}{\mathsf{fma}\left(\frac{x + 1}{x - 1}, \ell \cdot \ell + 2 \cdot \left(t \cdot t\right), -\ell \cdot \ell\right)}}}{t}} \]
      3. remove-double-neg36.7%

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

        \[\leadsto \frac{\sqrt{2}}{\frac{\sqrt{\color{blue}{\frac{x + 1}{x - 1} \cdot \left(-\left(-\left(\ell \cdot \ell + 2 \cdot \left(t \cdot t\right)\right)\right)\right) - \ell \cdot \ell}}}{t}} \]
      5. sub-neg36.7%

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

        \[\leadsto \frac{\sqrt{2}}{\frac{\sqrt{\frac{x + 1}{x + \color{blue}{-1}} \cdot \left(-\left(-\left(\ell \cdot \ell + 2 \cdot \left(t \cdot t\right)\right)\right)\right) - \ell \cdot \ell}}{t}} \]
      7. remove-double-neg36.7%

        \[\leadsto \frac{\sqrt{2}}{\frac{\sqrt{\frac{x + 1}{x + -1} \cdot \color{blue}{\left(\ell \cdot \ell + 2 \cdot \left(t \cdot t\right)\right)} - \ell \cdot \ell}}{t}} \]
      8. fma-def36.7%

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

      \[\leadsto \color{blue}{\frac{\sqrt{2}}{\frac{\sqrt{\frac{x + 1}{x + -1} \cdot \mathsf{fma}\left(\ell, \ell, 2 \cdot \left(t \cdot t\right)\right) - \ell \cdot \ell}}{t}}} \]
    4. Applied egg-rr72.7%

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

      \[\leadsto \color{blue}{-1 \cdot \sqrt{\frac{x - 1}{1 + x}}} \]
    6. Step-by-step derivation
      1. mul-1-neg81.6%

        \[\leadsto \color{blue}{-\sqrt{\frac{x - 1}{1 + x}}} \]
      2. sub-neg81.6%

        \[\leadsto -\sqrt{\frac{\color{blue}{x + \left(-1\right)}}{1 + x}} \]
      3. metadata-eval81.6%

        \[\leadsto -\sqrt{\frac{x + \color{blue}{-1}}{1 + x}} \]
    7. Simplified81.6%

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

    if -1.09999999999999995e-252 < t < 3.5999999999999999e-227

    1. Initial program 2.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. Step-by-step derivation
      1. associate-/l*2.1%

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

        \[\leadsto \frac{\sqrt{2}}{\frac{\sqrt{\color{blue}{\mathsf{fma}\left(\frac{x + 1}{x - 1}, \ell \cdot \ell + 2 \cdot \left(t \cdot t\right), -\ell \cdot \ell\right)}}}{t}} \]
      3. remove-double-neg2.1%

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

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

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

        \[\leadsto \frac{\sqrt{2}}{\frac{\sqrt{\frac{x + 1}{x + \color{blue}{-1}} \cdot \left(-\left(-\left(\ell \cdot \ell + 2 \cdot \left(t \cdot t\right)\right)\right)\right) - \ell \cdot \ell}}{t}} \]
      7. remove-double-neg2.1%

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

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

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

      \[\leadsto \frac{\sqrt{2}}{\color{blue}{\frac{1}{t} \cdot \sqrt{\frac{\left(1 + x\right) \cdot {\ell}^{2}}{x - 1} - {\ell}^{2}}}} \]
    5. Step-by-step derivation
      1. associate-*l/12.2%

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

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

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

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

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

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

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

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

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

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

      \[\leadsto \frac{\sqrt{2}}{\frac{\sqrt{\color{blue}{\frac{{\ell}^{2} - -1 \cdot {\ell}^{2}}{x}}}}{t}} \]
    8. Step-by-step derivation
      1. sub-neg58.1%

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

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

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

        \[\leadsto \frac{\sqrt{2}}{\frac{\sqrt{\frac{\ell \cdot \ell + \color{blue}{{\ell}^{2}}}{x}}}{t}} \]
      5. unpow258.1%

        \[\leadsto \frac{\sqrt{2}}{\frac{\sqrt{\frac{\ell \cdot \ell + \color{blue}{\ell \cdot \ell}}{x}}}{t}} \]
    9. Simplified58.1%

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

    if 3.5999999999999999e-227 < t

    1. Initial program 36.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. Step-by-step derivation
      1. associate-/l*36.1%

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

        \[\leadsto \frac{\sqrt{2}}{\frac{\sqrt{\color{blue}{\mathsf{fma}\left(\frac{x + 1}{x - 1}, \ell \cdot \ell + 2 \cdot \left(t \cdot t\right), -\ell \cdot \ell\right)}}}{t}} \]
      3. remove-double-neg36.1%

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

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

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

        \[\leadsto \frac{\sqrt{2}}{\frac{\sqrt{\frac{x + 1}{x + \color{blue}{-1}} \cdot \left(-\left(-\left(\ell \cdot \ell + 2 \cdot \left(t \cdot t\right)\right)\right)\right) - \ell \cdot \ell}}{t}} \]
      7. remove-double-neg36.1%

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

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

      \[\leadsto \color{blue}{\frac{\sqrt{2}}{\frac{\sqrt{\frac{x + 1}{x + -1} \cdot \mathsf{fma}\left(\ell, \ell, 2 \cdot \left(t \cdot t\right)\right) - \ell \cdot \ell}}{t}}} \]
    4. Applied egg-rr69.8%

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

      \[\leadsto \color{blue}{\sqrt{\frac{x - 1}{1 + x}}} \]
  3. Recombined 3 regimes into one program.
  4. Final simplification77.4%

    \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -1.1 \cdot 10^{-252}:\\ \;\;\;\;-\sqrt{\frac{x + -1}{x + 1}}\\ \mathbf{elif}\;t \leq 3.6 \cdot 10^{-227}:\\ \;\;\;\;\frac{\sqrt{2}}{\frac{\sqrt{\frac{\ell \cdot \ell + \ell \cdot \ell}{x}}}{t}}\\ \mathbf{else}:\\ \;\;\;\;\sqrt{\frac{x + -1}{x + 1}}\\ \end{array} \]

Alternative 4: 77.1% accurate, 2.0× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := \sqrt{\frac{x + -1}{x + 1}}\\ \mathbf{if}\;t \leq -5 \cdot 10^{-311}:\\ \;\;\;\;-t_1\\ \mathbf{else}:\\ \;\;\;\;t_1\\ \end{array} \end{array} \]
(FPCore (x l t)
 :precision binary64
 (let* ((t_1 (sqrt (/ (+ x -1.0) (+ x 1.0)))))
   (if (<= t -5e-311) (- t_1) t_1)))
double code(double x, double l, double t) {
	double t_1 = sqrt(((x + -1.0) / (x + 1.0)));
	double tmp;
	if (t <= -5e-311) {
		tmp = -t_1;
	} else {
		tmp = t_1;
	}
	return tmp;
}
real(8) function code(x, l, t)
    real(8), intent (in) :: x
    real(8), intent (in) :: l
    real(8), intent (in) :: t
    real(8) :: t_1
    real(8) :: tmp
    t_1 = sqrt(((x + (-1.0d0)) / (x + 1.0d0)))
    if (t <= (-5d-311)) then
        tmp = -t_1
    else
        tmp = t_1
    end if
    code = tmp
end function
public static double code(double x, double l, double t) {
	double t_1 = Math.sqrt(((x + -1.0) / (x + 1.0)));
	double tmp;
	if (t <= -5e-311) {
		tmp = -t_1;
	} else {
		tmp = t_1;
	}
	return tmp;
}
def code(x, l, t):
	t_1 = math.sqrt(((x + -1.0) / (x + 1.0)))
	tmp = 0
	if t <= -5e-311:
		tmp = -t_1
	else:
		tmp = t_1
	return tmp
function code(x, l, t)
	t_1 = sqrt(Float64(Float64(x + -1.0) / Float64(x + 1.0)))
	tmp = 0.0
	if (t <= -5e-311)
		tmp = Float64(-t_1);
	else
		tmp = t_1;
	end
	return tmp
end
function tmp_2 = code(x, l, t)
	t_1 = sqrt(((x + -1.0) / (x + 1.0)));
	tmp = 0.0;
	if (t <= -5e-311)
		tmp = -t_1;
	else
		tmp = t_1;
	end
	tmp_2 = tmp;
end
code[x_, l_, t_] := Block[{t$95$1 = N[Sqrt[N[(N[(x + -1.0), $MachinePrecision] / N[(x + 1.0), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]}, If[LessEqual[t, -5e-311], (-t$95$1), t$95$1]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := \sqrt{\frac{x + -1}{x + 1}}\\
\mathbf{if}\;t \leq -5 \cdot 10^{-311}:\\
\;\;\;\;-t_1\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if t < -5.00000000000023e-311

    1. Initial program 34.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. Step-by-step derivation
      1. associate-/l*34.5%

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

        \[\leadsto \frac{\sqrt{2}}{\frac{\sqrt{\color{blue}{\mathsf{fma}\left(\frac{x + 1}{x - 1}, \ell \cdot \ell + 2 \cdot \left(t \cdot t\right), -\ell \cdot \ell\right)}}}{t}} \]
      3. remove-double-neg34.5%

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

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

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

        \[\leadsto \frac{\sqrt{2}}{\frac{\sqrt{\frac{x + 1}{x + \color{blue}{-1}} \cdot \left(-\left(-\left(\ell \cdot \ell + 2 \cdot \left(t \cdot t\right)\right)\right)\right) - \ell \cdot \ell}}{t}} \]
      7. remove-double-neg34.5%

        \[\leadsto \frac{\sqrt{2}}{\frac{\sqrt{\frac{x + 1}{x + -1} \cdot \color{blue}{\left(\ell \cdot \ell + 2 \cdot \left(t \cdot t\right)\right)} - \ell \cdot \ell}}{t}} \]
      8. fma-def34.5%

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

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

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

      \[\leadsto \color{blue}{-1 \cdot \sqrt{\frac{x - 1}{1 + x}}} \]
    6. Step-by-step derivation
      1. mul-1-neg78.3%

        \[\leadsto \color{blue}{-\sqrt{\frac{x - 1}{1 + x}}} \]
      2. sub-neg78.3%

        \[\leadsto -\sqrt{\frac{\color{blue}{x + \left(-1\right)}}{1 + x}} \]
      3. metadata-eval78.3%

        \[\leadsto -\sqrt{\frac{x + \color{blue}{-1}}{1 + x}} \]
    7. Simplified78.3%

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

    if -5.00000000000023e-311 < t

    1. Initial program 32.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. Step-by-step derivation
      1. associate-/l*32.6%

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

        \[\leadsto \frac{\sqrt{2}}{\frac{\sqrt{\color{blue}{\mathsf{fma}\left(\frac{x + 1}{x - 1}, \ell \cdot \ell + 2 \cdot \left(t \cdot t\right), -\ell \cdot \ell\right)}}}{t}} \]
      3. remove-double-neg32.6%

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

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

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

        \[\leadsto \frac{\sqrt{2}}{\frac{\sqrt{\frac{x + 1}{x + \color{blue}{-1}} \cdot \left(-\left(-\left(\ell \cdot \ell + 2 \cdot \left(t \cdot t\right)\right)\right)\right) - \ell \cdot \ell}}{t}} \]
      7. remove-double-neg32.6%

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

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

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

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

      \[\leadsto \color{blue}{\sqrt{\frac{x - 1}{1 + x}}} \]
  3. Recombined 2 regimes into one program.
  4. Final simplification75.1%

    \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -5 \cdot 10^{-311}:\\ \;\;\;\;-\sqrt{\frac{x + -1}{x + 1}}\\ \mathbf{else}:\\ \;\;\;\;\sqrt{\frac{x + -1}{x + 1}}\\ \end{array} \]

Alternative 5: 76.9% accurate, 2.1× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;t \leq -4.8 \cdot 10^{-308}:\\ \;\;\;\;\frac{1}{x} + \left(-1 - \frac{0.5}{x \cdot x}\right)\\ \mathbf{else}:\\ \;\;\;\;\sqrt{\frac{x + -1}{x + 1}}\\ \end{array} \end{array} \]
(FPCore (x l t)
 :precision binary64
 (if (<= t -4.8e-308)
   (+ (/ 1.0 x) (- -1.0 (/ 0.5 (* x x))))
   (sqrt (/ (+ x -1.0) (+ x 1.0)))))
double code(double x, double l, double t) {
	double tmp;
	if (t <= -4.8e-308) {
		tmp = (1.0 / x) + (-1.0 - (0.5 / (x * x)));
	} else {
		tmp = sqrt(((x + -1.0) / (x + 1.0)));
	}
	return tmp;
}
real(8) function code(x, l, t)
    real(8), intent (in) :: x
    real(8), intent (in) :: l
    real(8), intent (in) :: t
    real(8) :: tmp
    if (t <= (-4.8d-308)) then
        tmp = (1.0d0 / x) + ((-1.0d0) - (0.5d0 / (x * x)))
    else
        tmp = sqrt(((x + (-1.0d0)) / (x + 1.0d0)))
    end if
    code = tmp
end function
public static double code(double x, double l, double t) {
	double tmp;
	if (t <= -4.8e-308) {
		tmp = (1.0 / x) + (-1.0 - (0.5 / (x * x)));
	} else {
		tmp = Math.sqrt(((x + -1.0) / (x + 1.0)));
	}
	return tmp;
}
def code(x, l, t):
	tmp = 0
	if t <= -4.8e-308:
		tmp = (1.0 / x) + (-1.0 - (0.5 / (x * x)))
	else:
		tmp = math.sqrt(((x + -1.0) / (x + 1.0)))
	return tmp
function code(x, l, t)
	tmp = 0.0
	if (t <= -4.8e-308)
		tmp = Float64(Float64(1.0 / x) + Float64(-1.0 - Float64(0.5 / Float64(x * x))));
	else
		tmp = sqrt(Float64(Float64(x + -1.0) / Float64(x + 1.0)));
	end
	return tmp
end
function tmp_2 = code(x, l, t)
	tmp = 0.0;
	if (t <= -4.8e-308)
		tmp = (1.0 / x) + (-1.0 - (0.5 / (x * x)));
	else
		tmp = sqrt(((x + -1.0) / (x + 1.0)));
	end
	tmp_2 = tmp;
end
code[x_, l_, t_] := If[LessEqual[t, -4.8e-308], N[(N[(1.0 / x), $MachinePrecision] + N[(-1.0 - N[(0.5 / N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[Sqrt[N[(N[(x + -1.0), $MachinePrecision] / N[(x + 1.0), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;t \leq -4.8 \cdot 10^{-308}:\\
\;\;\;\;\frac{1}{x} + \left(-1 - \frac{0.5}{x \cdot x}\right)\\

\mathbf{else}:\\
\;\;\;\;\sqrt{\frac{x + -1}{x + 1}}\\


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if t < -4.80000000000000016e-308

    1. Initial program 34.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. Step-by-step derivation
      1. associate-*l/34.9%

        \[\leadsto \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} \]
    3. Simplified34.9%

      \[\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} \]
    4. Applied egg-rr63.6%

      \[\leadsto \color{blue}{e^{\log \left(\frac{\sqrt{2}}{\mathsf{hypot}\left(\mathsf{hypot}\left(\ell, t \cdot \sqrt{2}\right) \cdot \sqrt{\frac{x + 1}{x + -1}}, \ell\right)}\right)}} \cdot t \]
    5. Taylor expanded in t around -inf 78.6%

      \[\leadsto \color{blue}{\left(-1 \cdot \left(\sqrt{\frac{x - 1}{1 + x}} \cdot \frac{1}{t}\right)\right)} \cdot t \]
    6. Step-by-step derivation
      1. mul-1-neg78.6%

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

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

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

      \[\leadsto \color{blue}{\left(-\sqrt{\frac{x + -1}{1 + x}} \cdot \frac{1}{t}\right)} \cdot t \]
    8. Taylor expanded in x around inf 78.5%

      \[\leadsto \color{blue}{\frac{1}{x} - \left(1 + 0.5 \cdot \frac{1}{{x}^{2}}\right)} \]
    9. Step-by-step derivation
      1. associate-*r/78.5%

        \[\leadsto \frac{1}{x} - \left(1 + \color{blue}{\frac{0.5 \cdot 1}{{x}^{2}}}\right) \]
      2. metadata-eval78.5%

        \[\leadsto \frac{1}{x} - \left(1 + \frac{\color{blue}{0.5}}{{x}^{2}}\right) \]
      3. unpow278.5%

        \[\leadsto \frac{1}{x} - \left(1 + \frac{0.5}{\color{blue}{x \cdot x}}\right) \]
    10. Simplified78.5%

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

    if -4.80000000000000016e-308 < t

    1. Initial program 32.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. Step-by-step derivation
      1. associate-/l*32.4%

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

        \[\leadsto \frac{\sqrt{2}}{\frac{\sqrt{\color{blue}{\mathsf{fma}\left(\frac{x + 1}{x - 1}, \ell \cdot \ell + 2 \cdot \left(t \cdot t\right), -\ell \cdot \ell\right)}}}{t}} \]
      3. remove-double-neg32.4%

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

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

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

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

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

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

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

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

      \[\leadsto \color{blue}{\sqrt{\frac{x - 1}{1 + x}}} \]
  3. Recombined 2 regimes into one program.
  4. Final simplification74.9%

    \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -4.8 \cdot 10^{-308}:\\ \;\;\;\;\frac{1}{x} + \left(-1 - \frac{0.5}{x \cdot x}\right)\\ \mathbf{else}:\\ \;\;\;\;\sqrt{\frac{x + -1}{x + 1}}\\ \end{array} \]

Alternative 6: 76.6% accurate, 17.2× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;t \leq -4.8 \cdot 10^{-308}:\\ \;\;\;\;\frac{1}{x} + \left(-1 - \frac{0.5}{x \cdot x}\right)\\ \mathbf{else}:\\ \;\;\;\;1 + \frac{-1}{x}\\ \end{array} \end{array} \]
(FPCore (x l t)
 :precision binary64
 (if (<= t -4.8e-308)
   (+ (/ 1.0 x) (- -1.0 (/ 0.5 (* x x))))
   (+ 1.0 (/ -1.0 x))))
double code(double x, double l, double t) {
	double tmp;
	if (t <= -4.8e-308) {
		tmp = (1.0 / x) + (-1.0 - (0.5 / (x * x)));
	} else {
		tmp = 1.0 + (-1.0 / x);
	}
	return tmp;
}
real(8) function code(x, l, t)
    real(8), intent (in) :: x
    real(8), intent (in) :: l
    real(8), intent (in) :: t
    real(8) :: tmp
    if (t <= (-4.8d-308)) then
        tmp = (1.0d0 / x) + ((-1.0d0) - (0.5d0 / (x * x)))
    else
        tmp = 1.0d0 + ((-1.0d0) / x)
    end if
    code = tmp
end function
public static double code(double x, double l, double t) {
	double tmp;
	if (t <= -4.8e-308) {
		tmp = (1.0 / x) + (-1.0 - (0.5 / (x * x)));
	} else {
		tmp = 1.0 + (-1.0 / x);
	}
	return tmp;
}
def code(x, l, t):
	tmp = 0
	if t <= -4.8e-308:
		tmp = (1.0 / x) + (-1.0 - (0.5 / (x * x)))
	else:
		tmp = 1.0 + (-1.0 / x)
	return tmp
function code(x, l, t)
	tmp = 0.0
	if (t <= -4.8e-308)
		tmp = Float64(Float64(1.0 / x) + Float64(-1.0 - Float64(0.5 / Float64(x * x))));
	else
		tmp = Float64(1.0 + Float64(-1.0 / x));
	end
	return tmp
end
function tmp_2 = code(x, l, t)
	tmp = 0.0;
	if (t <= -4.8e-308)
		tmp = (1.0 / x) + (-1.0 - (0.5 / (x * x)));
	else
		tmp = 1.0 + (-1.0 / x);
	end
	tmp_2 = tmp;
end
code[x_, l_, t_] := If[LessEqual[t, -4.8e-308], N[(N[(1.0 / x), $MachinePrecision] + N[(-1.0 - N[(0.5 / N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(1.0 + N[(-1.0 / x), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;t \leq -4.8 \cdot 10^{-308}:\\
\;\;\;\;\frac{1}{x} + \left(-1 - \frac{0.5}{x \cdot x}\right)\\

\mathbf{else}:\\
\;\;\;\;1 + \frac{-1}{x}\\


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if t < -4.80000000000000016e-308

    1. Initial program 34.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. Step-by-step derivation
      1. associate-*l/34.9%

        \[\leadsto \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} \]
    3. Simplified34.9%

      \[\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} \]
    4. Applied egg-rr63.6%

      \[\leadsto \color{blue}{e^{\log \left(\frac{\sqrt{2}}{\mathsf{hypot}\left(\mathsf{hypot}\left(\ell, t \cdot \sqrt{2}\right) \cdot \sqrt{\frac{x + 1}{x + -1}}, \ell\right)}\right)}} \cdot t \]
    5. Taylor expanded in t around -inf 78.6%

      \[\leadsto \color{blue}{\left(-1 \cdot \left(\sqrt{\frac{x - 1}{1 + x}} \cdot \frac{1}{t}\right)\right)} \cdot t \]
    6. Step-by-step derivation
      1. mul-1-neg78.6%

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

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

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

      \[\leadsto \color{blue}{\left(-\sqrt{\frac{x + -1}{1 + x}} \cdot \frac{1}{t}\right)} \cdot t \]
    8. Taylor expanded in x around inf 78.5%

      \[\leadsto \color{blue}{\frac{1}{x} - \left(1 + 0.5 \cdot \frac{1}{{x}^{2}}\right)} \]
    9. Step-by-step derivation
      1. associate-*r/78.5%

        \[\leadsto \frac{1}{x} - \left(1 + \color{blue}{\frac{0.5 \cdot 1}{{x}^{2}}}\right) \]
      2. metadata-eval78.5%

        \[\leadsto \frac{1}{x} - \left(1 + \frac{\color{blue}{0.5}}{{x}^{2}}\right) \]
      3. unpow278.5%

        \[\leadsto \frac{1}{x} - \left(1 + \frac{0.5}{\color{blue}{x \cdot x}}\right) \]
    10. Simplified78.5%

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

    if -4.80000000000000016e-308 < t

    1. Initial program 32.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. Step-by-step derivation
      1. associate-*l/32.5%

        \[\leadsto \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} \]
    3. Simplified32.5%

      \[\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} \]
    4. Applied egg-rr61.6%

      \[\leadsto \color{blue}{e^{\log \left(\frac{\sqrt{2}}{\mathsf{hypot}\left(\mathsf{hypot}\left(\ell, t \cdot \sqrt{2}\right) \cdot \sqrt{\frac{x + 1}{x + -1}}, \ell\right)}\right)}} \cdot t \]
    5. Taylor expanded in t around -inf 1.8%

      \[\leadsto \color{blue}{\left(-1 \cdot \left(\sqrt{\frac{x - 1}{1 + x}} \cdot \frac{1}{t}\right)\right)} \cdot t \]
    6. Step-by-step derivation
      1. mul-1-neg1.8%

        \[\leadsto \color{blue}{\left(-\sqrt{\frac{x - 1}{1 + x}} \cdot \frac{1}{t}\right)} \cdot t \]
      2. sub-neg1.8%

        \[\leadsto \left(-\sqrt{\frac{\color{blue}{x + \left(-1\right)}}{1 + x}} \cdot \frac{1}{t}\right) \cdot t \]
      3. metadata-eval1.8%

        \[\leadsto \left(-\sqrt{\frac{x + \color{blue}{-1}}{1 + x}} \cdot \frac{1}{t}\right) \cdot t \]
    7. Simplified1.8%

      \[\leadsto \color{blue}{\left(-\sqrt{\frac{x + -1}{1 + x}} \cdot \frac{1}{t}\right)} \cdot t \]
    8. Taylor expanded in x around -inf 0.0%

      \[\leadsto \color{blue}{-1 \cdot {\left(\sqrt{-1}\right)}^{2} - \frac{1}{x}} \]
    9. Step-by-step derivation
      1. unpow20.0%

        \[\leadsto -1 \cdot \color{blue}{\left(\sqrt{-1} \cdot \sqrt{-1}\right)} - \frac{1}{x} \]
      2. rem-square-sqrt71.3%

        \[\leadsto -1 \cdot \color{blue}{-1} - \frac{1}{x} \]
      3. metadata-eval71.3%

        \[\leadsto \color{blue}{1} - \frac{1}{x} \]
    10. Simplified71.3%

      \[\leadsto \color{blue}{1 - \frac{1}{x}} \]
  3. Recombined 2 regimes into one program.
  4. Final simplification74.9%

    \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -4.8 \cdot 10^{-308}:\\ \;\;\;\;\frac{1}{x} + \left(-1 - \frac{0.5}{x \cdot x}\right)\\ \mathbf{else}:\\ \;\;\;\;1 + \frac{-1}{x}\\ \end{array} \]

Alternative 7: 76.2% accurate, 31.9× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;t \leq -4.8 \cdot 10^{-308}:\\ \;\;\;\;-1\\ \mathbf{else}:\\ \;\;\;\;1 + \frac{-1}{x}\\ \end{array} \end{array} \]
(FPCore (x l t)
 :precision binary64
 (if (<= t -4.8e-308) -1.0 (+ 1.0 (/ -1.0 x))))
double code(double x, double l, double t) {
	double tmp;
	if (t <= -4.8e-308) {
		tmp = -1.0;
	} else {
		tmp = 1.0 + (-1.0 / x);
	}
	return tmp;
}
real(8) function code(x, l, t)
    real(8), intent (in) :: x
    real(8), intent (in) :: l
    real(8), intent (in) :: t
    real(8) :: tmp
    if (t <= (-4.8d-308)) then
        tmp = -1.0d0
    else
        tmp = 1.0d0 + ((-1.0d0) / x)
    end if
    code = tmp
end function
public static double code(double x, double l, double t) {
	double tmp;
	if (t <= -4.8e-308) {
		tmp = -1.0;
	} else {
		tmp = 1.0 + (-1.0 / x);
	}
	return tmp;
}
def code(x, l, t):
	tmp = 0
	if t <= -4.8e-308:
		tmp = -1.0
	else:
		tmp = 1.0 + (-1.0 / x)
	return tmp
function code(x, l, t)
	tmp = 0.0
	if (t <= -4.8e-308)
		tmp = -1.0;
	else
		tmp = Float64(1.0 + Float64(-1.0 / x));
	end
	return tmp
end
function tmp_2 = code(x, l, t)
	tmp = 0.0;
	if (t <= -4.8e-308)
		tmp = -1.0;
	else
		tmp = 1.0 + (-1.0 / x);
	end
	tmp_2 = tmp;
end
code[x_, l_, t_] := If[LessEqual[t, -4.8e-308], -1.0, N[(1.0 + N[(-1.0 / x), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;t \leq -4.8 \cdot 10^{-308}:\\
\;\;\;\;-1\\

\mathbf{else}:\\
\;\;\;\;1 + \frac{-1}{x}\\


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if t < -4.80000000000000016e-308

    1. Initial program 34.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. Step-by-step derivation
      1. associate-*l/34.9%

        \[\leadsto \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} \]
    3. Simplified34.9%

      \[\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} \]
    4. Applied egg-rr63.6%

      \[\leadsto \color{blue}{e^{\log \left(\frac{\sqrt{2}}{\mathsf{hypot}\left(\mathsf{hypot}\left(\ell, t \cdot \sqrt{2}\right) \cdot \sqrt{\frac{x + 1}{x + -1}}, \ell\right)}\right)}} \cdot t \]
    5. Taylor expanded in t around -inf 78.6%

      \[\leadsto \color{blue}{\left(-1 \cdot \left(\sqrt{\frac{x - 1}{1 + x}} \cdot \frac{1}{t}\right)\right)} \cdot t \]
    6. Step-by-step derivation
      1. mul-1-neg78.6%

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

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

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

      \[\leadsto \color{blue}{\left(-\sqrt{\frac{x + -1}{1 + x}} \cdot \frac{1}{t}\right)} \cdot t \]
    8. Taylor expanded in x around inf 77.3%

      \[\leadsto \color{blue}{-1} \]

    if -4.80000000000000016e-308 < t

    1. Initial program 32.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. Step-by-step derivation
      1. associate-*l/32.5%

        \[\leadsto \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} \]
    3. Simplified32.5%

      \[\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} \]
    4. Applied egg-rr61.6%

      \[\leadsto \color{blue}{e^{\log \left(\frac{\sqrt{2}}{\mathsf{hypot}\left(\mathsf{hypot}\left(\ell, t \cdot \sqrt{2}\right) \cdot \sqrt{\frac{x + 1}{x + -1}}, \ell\right)}\right)}} \cdot t \]
    5. Taylor expanded in t around -inf 1.8%

      \[\leadsto \color{blue}{\left(-1 \cdot \left(\sqrt{\frac{x - 1}{1 + x}} \cdot \frac{1}{t}\right)\right)} \cdot t \]
    6. Step-by-step derivation
      1. mul-1-neg1.8%

        \[\leadsto \color{blue}{\left(-\sqrt{\frac{x - 1}{1 + x}} \cdot \frac{1}{t}\right)} \cdot t \]
      2. sub-neg1.8%

        \[\leadsto \left(-\sqrt{\frac{\color{blue}{x + \left(-1\right)}}{1 + x}} \cdot \frac{1}{t}\right) \cdot t \]
      3. metadata-eval1.8%

        \[\leadsto \left(-\sqrt{\frac{x + \color{blue}{-1}}{1 + x}} \cdot \frac{1}{t}\right) \cdot t \]
    7. Simplified1.8%

      \[\leadsto \color{blue}{\left(-\sqrt{\frac{x + -1}{1 + x}} \cdot \frac{1}{t}\right)} \cdot t \]
    8. Taylor expanded in x around -inf 0.0%

      \[\leadsto \color{blue}{-1 \cdot {\left(\sqrt{-1}\right)}^{2} - \frac{1}{x}} \]
    9. Step-by-step derivation
      1. unpow20.0%

        \[\leadsto -1 \cdot \color{blue}{\left(\sqrt{-1} \cdot \sqrt{-1}\right)} - \frac{1}{x} \]
      2. rem-square-sqrt71.3%

        \[\leadsto -1 \cdot \color{blue}{-1} - \frac{1}{x} \]
      3. metadata-eval71.3%

        \[\leadsto \color{blue}{1} - \frac{1}{x} \]
    10. Simplified71.3%

      \[\leadsto \color{blue}{1 - \frac{1}{x}} \]
  3. Recombined 2 regimes into one program.
  4. Final simplification74.3%

    \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -4.8 \cdot 10^{-308}:\\ \;\;\;\;-1\\ \mathbf{else}:\\ \;\;\;\;1 + \frac{-1}{x}\\ \end{array} \]

Alternative 8: 76.5% accurate, 31.9× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;t \leq -4.8 \cdot 10^{-308}:\\ \;\;\;\;-1 + \frac{1}{x}\\ \mathbf{else}:\\ \;\;\;\;1 + \frac{-1}{x}\\ \end{array} \end{array} \]
(FPCore (x l t)
 :precision binary64
 (if (<= t -4.8e-308) (+ -1.0 (/ 1.0 x)) (+ 1.0 (/ -1.0 x))))
double code(double x, double l, double t) {
	double tmp;
	if (t <= -4.8e-308) {
		tmp = -1.0 + (1.0 / x);
	} else {
		tmp = 1.0 + (-1.0 / x);
	}
	return tmp;
}
real(8) function code(x, l, t)
    real(8), intent (in) :: x
    real(8), intent (in) :: l
    real(8), intent (in) :: t
    real(8) :: tmp
    if (t <= (-4.8d-308)) then
        tmp = (-1.0d0) + (1.0d0 / x)
    else
        tmp = 1.0d0 + ((-1.0d0) / x)
    end if
    code = tmp
end function
public static double code(double x, double l, double t) {
	double tmp;
	if (t <= -4.8e-308) {
		tmp = -1.0 + (1.0 / x);
	} else {
		tmp = 1.0 + (-1.0 / x);
	}
	return tmp;
}
def code(x, l, t):
	tmp = 0
	if t <= -4.8e-308:
		tmp = -1.0 + (1.0 / x)
	else:
		tmp = 1.0 + (-1.0 / x)
	return tmp
function code(x, l, t)
	tmp = 0.0
	if (t <= -4.8e-308)
		tmp = Float64(-1.0 + Float64(1.0 / x));
	else
		tmp = Float64(1.0 + Float64(-1.0 / x));
	end
	return tmp
end
function tmp_2 = code(x, l, t)
	tmp = 0.0;
	if (t <= -4.8e-308)
		tmp = -1.0 + (1.0 / x);
	else
		tmp = 1.0 + (-1.0 / x);
	end
	tmp_2 = tmp;
end
code[x_, l_, t_] := If[LessEqual[t, -4.8e-308], N[(-1.0 + N[(1.0 / x), $MachinePrecision]), $MachinePrecision], N[(1.0 + N[(-1.0 / x), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;t \leq -4.8 \cdot 10^{-308}:\\
\;\;\;\;-1 + \frac{1}{x}\\

\mathbf{else}:\\
\;\;\;\;1 + \frac{-1}{x}\\


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if t < -4.80000000000000016e-308

    1. Initial program 34.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. Step-by-step derivation
      1. associate-*l/34.9%

        \[\leadsto \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} \]
    3. Simplified34.9%

      \[\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} \]
    4. Applied egg-rr63.6%

      \[\leadsto \color{blue}{e^{\log \left(\frac{\sqrt{2}}{\mathsf{hypot}\left(\mathsf{hypot}\left(\ell, t \cdot \sqrt{2}\right) \cdot \sqrt{\frac{x + 1}{x + -1}}, \ell\right)}\right)}} \cdot t \]
    5. Taylor expanded in t around -inf 78.6%

      \[\leadsto \color{blue}{\left(-1 \cdot \left(\sqrt{\frac{x - 1}{1 + x}} \cdot \frac{1}{t}\right)\right)} \cdot t \]
    6. Step-by-step derivation
      1. mul-1-neg78.6%

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

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

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

      \[\leadsto \color{blue}{\left(-\sqrt{\frac{x + -1}{1 + x}} \cdot \frac{1}{t}\right)} \cdot t \]
    8. Taylor expanded in x around inf 78.1%

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

    if -4.80000000000000016e-308 < t

    1. Initial program 32.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. Step-by-step derivation
      1. associate-*l/32.5%

        \[\leadsto \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} \]
    3. Simplified32.5%

      \[\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} \]
    4. Applied egg-rr61.6%

      \[\leadsto \color{blue}{e^{\log \left(\frac{\sqrt{2}}{\mathsf{hypot}\left(\mathsf{hypot}\left(\ell, t \cdot \sqrt{2}\right) \cdot \sqrt{\frac{x + 1}{x + -1}}, \ell\right)}\right)}} \cdot t \]
    5. Taylor expanded in t around -inf 1.8%

      \[\leadsto \color{blue}{\left(-1 \cdot \left(\sqrt{\frac{x - 1}{1 + x}} \cdot \frac{1}{t}\right)\right)} \cdot t \]
    6. Step-by-step derivation
      1. mul-1-neg1.8%

        \[\leadsto \color{blue}{\left(-\sqrt{\frac{x - 1}{1 + x}} \cdot \frac{1}{t}\right)} \cdot t \]
      2. sub-neg1.8%

        \[\leadsto \left(-\sqrt{\frac{\color{blue}{x + \left(-1\right)}}{1 + x}} \cdot \frac{1}{t}\right) \cdot t \]
      3. metadata-eval1.8%

        \[\leadsto \left(-\sqrt{\frac{x + \color{blue}{-1}}{1 + x}} \cdot \frac{1}{t}\right) \cdot t \]
    7. Simplified1.8%

      \[\leadsto \color{blue}{\left(-\sqrt{\frac{x + -1}{1 + x}} \cdot \frac{1}{t}\right)} \cdot t \]
    8. Taylor expanded in x around -inf 0.0%

      \[\leadsto \color{blue}{-1 \cdot {\left(\sqrt{-1}\right)}^{2} - \frac{1}{x}} \]
    9. Step-by-step derivation
      1. unpow20.0%

        \[\leadsto -1 \cdot \color{blue}{\left(\sqrt{-1} \cdot \sqrt{-1}\right)} - \frac{1}{x} \]
      2. rem-square-sqrt71.3%

        \[\leadsto -1 \cdot \color{blue}{-1} - \frac{1}{x} \]
      3. metadata-eval71.3%

        \[\leadsto \color{blue}{1} - \frac{1}{x} \]
    10. Simplified71.3%

      \[\leadsto \color{blue}{1 - \frac{1}{x}} \]
  3. Recombined 2 regimes into one program.
  4. Final simplification74.7%

    \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -4.8 \cdot 10^{-308}:\\ \;\;\;\;-1 + \frac{1}{x}\\ \mathbf{else}:\\ \;\;\;\;1 + \frac{-1}{x}\\ \end{array} \]

Alternative 9: 75.8% accurate, 73.5× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;t \leq -4.8 \cdot 10^{-308}:\\ \;\;\;\;-1\\ \mathbf{else}:\\ \;\;\;\;1\\ \end{array} \end{array} \]
(FPCore (x l t) :precision binary64 (if (<= t -4.8e-308) -1.0 1.0))
double code(double x, double l, double t) {
	double tmp;
	if (t <= -4.8e-308) {
		tmp = -1.0;
	} else {
		tmp = 1.0;
	}
	return tmp;
}
real(8) function code(x, l, t)
    real(8), intent (in) :: x
    real(8), intent (in) :: l
    real(8), intent (in) :: t
    real(8) :: tmp
    if (t <= (-4.8d-308)) then
        tmp = -1.0d0
    else
        tmp = 1.0d0
    end if
    code = tmp
end function
public static double code(double x, double l, double t) {
	double tmp;
	if (t <= -4.8e-308) {
		tmp = -1.0;
	} else {
		tmp = 1.0;
	}
	return tmp;
}
def code(x, l, t):
	tmp = 0
	if t <= -4.8e-308:
		tmp = -1.0
	else:
		tmp = 1.0
	return tmp
function code(x, l, t)
	tmp = 0.0
	if (t <= -4.8e-308)
		tmp = -1.0;
	else
		tmp = 1.0;
	end
	return tmp
end
function tmp_2 = code(x, l, t)
	tmp = 0.0;
	if (t <= -4.8e-308)
		tmp = -1.0;
	else
		tmp = 1.0;
	end
	tmp_2 = tmp;
end
code[x_, l_, t_] := If[LessEqual[t, -4.8e-308], -1.0, 1.0]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;t \leq -4.8 \cdot 10^{-308}:\\
\;\;\;\;-1\\

\mathbf{else}:\\
\;\;\;\;1\\


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if t < -4.80000000000000016e-308

    1. Initial program 34.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. Step-by-step derivation
      1. associate-*l/34.9%

        \[\leadsto \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} \]
    3. Simplified34.9%

      \[\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} \]
    4. Applied egg-rr63.6%

      \[\leadsto \color{blue}{e^{\log \left(\frac{\sqrt{2}}{\mathsf{hypot}\left(\mathsf{hypot}\left(\ell, t \cdot \sqrt{2}\right) \cdot \sqrt{\frac{x + 1}{x + -1}}, \ell\right)}\right)}} \cdot t \]
    5. Taylor expanded in t around -inf 78.6%

      \[\leadsto \color{blue}{\left(-1 \cdot \left(\sqrt{\frac{x - 1}{1 + x}} \cdot \frac{1}{t}\right)\right)} \cdot t \]
    6. Step-by-step derivation
      1. mul-1-neg78.6%

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

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

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

      \[\leadsto \color{blue}{\left(-\sqrt{\frac{x + -1}{1 + x}} \cdot \frac{1}{t}\right)} \cdot t \]
    8. Taylor expanded in x around inf 77.3%

      \[\leadsto \color{blue}{-1} \]

    if -4.80000000000000016e-308 < t

    1. Initial program 32.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. Step-by-step derivation
      1. associate-*l/32.5%

        \[\leadsto \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} \]
    3. Simplified32.5%

      \[\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} \]
    4. Applied egg-rr61.6%

      \[\leadsto \color{blue}{e^{\log \left(\frac{\sqrt{2}}{\mathsf{hypot}\left(\mathsf{hypot}\left(\ell, t \cdot \sqrt{2}\right) \cdot \sqrt{\frac{x + 1}{x + -1}}, \ell\right)}\right)}} \cdot t \]
    5. Taylor expanded in t around -inf 1.8%

      \[\leadsto \color{blue}{\left(-1 \cdot \left(\sqrt{\frac{x - 1}{1 + x}} \cdot \frac{1}{t}\right)\right)} \cdot t \]
    6. Step-by-step derivation
      1. mul-1-neg1.8%

        \[\leadsto \color{blue}{\left(-\sqrt{\frac{x - 1}{1 + x}} \cdot \frac{1}{t}\right)} \cdot t \]
      2. sub-neg1.8%

        \[\leadsto \left(-\sqrt{\frac{\color{blue}{x + \left(-1\right)}}{1 + x}} \cdot \frac{1}{t}\right) \cdot t \]
      3. metadata-eval1.8%

        \[\leadsto \left(-\sqrt{\frac{x + \color{blue}{-1}}{1 + x}} \cdot \frac{1}{t}\right) \cdot t \]
    7. Simplified1.8%

      \[\leadsto \color{blue}{\left(-\sqrt{\frac{x + -1}{1 + x}} \cdot \frac{1}{t}\right)} \cdot t \]
    8. Taylor expanded in x around -inf 0.0%

      \[\leadsto \color{blue}{-1 \cdot {\left(\sqrt{-1}\right)}^{2}} \]
    9. Step-by-step derivation
      1. unpow20.0%

        \[\leadsto -1 \cdot \color{blue}{\left(\sqrt{-1} \cdot \sqrt{-1}\right)} \]
      2. rem-square-sqrt71.1%

        \[\leadsto -1 \cdot \color{blue}{-1} \]
      3. metadata-eval71.1%

        \[\leadsto \color{blue}{1} \]
    10. Simplified71.1%

      \[\leadsto \color{blue}{1} \]
  3. Recombined 2 regimes into one program.
  4. Final simplification74.2%

    \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -4.8 \cdot 10^{-308}:\\ \;\;\;\;-1\\ \mathbf{else}:\\ \;\;\;\;1\\ \end{array} \]

Alternative 10: 38.4% accurate, 225.0× speedup?

\[\begin{array}{l} \\ -1 \end{array} \]
(FPCore (x l t) :precision binary64 -1.0)
double code(double x, double l, double t) {
	return -1.0;
}
real(8) function code(x, l, t)
    real(8), intent (in) :: x
    real(8), intent (in) :: l
    real(8), intent (in) :: t
    code = -1.0d0
end function
public static double code(double x, double l, double t) {
	return -1.0;
}
def code(x, l, t):
	return -1.0
function code(x, l, t)
	return -1.0
end
function tmp = code(x, l, t)
	tmp = -1.0;
end
code[x_, l_, t_] := -1.0
\begin{array}{l}

\\
-1
\end{array}
Derivation
  1. Initial program 33.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. Step-by-step derivation
    1. associate-*l/33.7%

      \[\leadsto \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} \]
  3. Simplified33.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} \]
  4. Applied egg-rr62.6%

    \[\leadsto \color{blue}{e^{\log \left(\frac{\sqrt{2}}{\mathsf{hypot}\left(\mathsf{hypot}\left(\ell, t \cdot \sqrt{2}\right) \cdot \sqrt{\frac{x + 1}{x + -1}}, \ell\right)}\right)}} \cdot t \]
  5. Taylor expanded in t around -inf 39.9%

    \[\leadsto \color{blue}{\left(-1 \cdot \left(\sqrt{\frac{x - 1}{1 + x}} \cdot \frac{1}{t}\right)\right)} \cdot t \]
  6. Step-by-step derivation
    1. mul-1-neg39.9%

      \[\leadsto \color{blue}{\left(-\sqrt{\frac{x - 1}{1 + x}} \cdot \frac{1}{t}\right)} \cdot t \]
    2. sub-neg39.9%

      \[\leadsto \left(-\sqrt{\frac{\color{blue}{x + \left(-1\right)}}{1 + x}} \cdot \frac{1}{t}\right) \cdot t \]
    3. metadata-eval39.9%

      \[\leadsto \left(-\sqrt{\frac{x + \color{blue}{-1}}{1 + x}} \cdot \frac{1}{t}\right) \cdot t \]
  7. Simplified39.9%

    \[\leadsto \color{blue}{\left(-\sqrt{\frac{x + -1}{1 + x}} \cdot \frac{1}{t}\right)} \cdot t \]
  8. Taylor expanded in x around inf 39.3%

    \[\leadsto \color{blue}{-1} \]
  9. Final simplification39.3%

    \[\leadsto -1 \]

Reproduce

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