Toniolo and Linder, Equation (10+)

Percentage Accurate: 53.7% → 89.2%
Time: 20.6s
Alternatives: 22
Speedup: 3.8×

Specification

?
\[\begin{array}{l} \\ \frac{2}{\left(\left(\frac{{t}^{3}}{\ell \cdot \ell} \cdot \sin k\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \end{array} \]
(FPCore (t l k)
 :precision binary64
 (/
  2.0
  (*
   (* (* (/ (pow t 3.0) (* l l)) (sin k)) (tan k))
   (+ (+ 1.0 (pow (/ k t) 2.0)) 1.0))))
double code(double t, double l, double k) {
	return 2.0 / ((((pow(t, 3.0) / (l * l)) * sin(k)) * tan(k)) * ((1.0 + pow((k / t), 2.0)) + 1.0));
}
real(8) function code(t, l, k)
    real(8), intent (in) :: t
    real(8), intent (in) :: l
    real(8), intent (in) :: k
    code = 2.0d0 / (((((t ** 3.0d0) / (l * l)) * sin(k)) * tan(k)) * ((1.0d0 + ((k / t) ** 2.0d0)) + 1.0d0))
end function
public static double code(double t, double l, double k) {
	return 2.0 / ((((Math.pow(t, 3.0) / (l * l)) * Math.sin(k)) * Math.tan(k)) * ((1.0 + Math.pow((k / t), 2.0)) + 1.0));
}
def code(t, l, k):
	return 2.0 / ((((math.pow(t, 3.0) / (l * l)) * math.sin(k)) * math.tan(k)) * ((1.0 + math.pow((k / t), 2.0)) + 1.0))
function code(t, l, k)
	return Float64(2.0 / Float64(Float64(Float64(Float64((t ^ 3.0) / Float64(l * l)) * sin(k)) * tan(k)) * Float64(Float64(1.0 + (Float64(k / t) ^ 2.0)) + 1.0)))
end
function tmp = code(t, l, k)
	tmp = 2.0 / (((((t ^ 3.0) / (l * l)) * sin(k)) * tan(k)) * ((1.0 + ((k / t) ^ 2.0)) + 1.0));
end
code[t_, l_, k_] := N[(2.0 / N[(N[(N[(N[(N[Power[t, 3.0], $MachinePrecision] / N[(l * l), $MachinePrecision]), $MachinePrecision] * N[Sin[k], $MachinePrecision]), $MachinePrecision] * N[Tan[k], $MachinePrecision]), $MachinePrecision] * N[(N[(1.0 + N[Power[N[(k / t), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}

\\
\frac{2}{\left(\left(\frac{{t}^{3}}{\ell \cdot \ell} \cdot \sin k\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)}
\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 22 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: 53.7% accurate, 1.0× speedup?

\[\begin{array}{l} \\ \frac{2}{\left(\left(\frac{{t}^{3}}{\ell \cdot \ell} \cdot \sin k\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \end{array} \]
(FPCore (t l k)
 :precision binary64
 (/
  2.0
  (*
   (* (* (/ (pow t 3.0) (* l l)) (sin k)) (tan k))
   (+ (+ 1.0 (pow (/ k t) 2.0)) 1.0))))
double code(double t, double l, double k) {
	return 2.0 / ((((pow(t, 3.0) / (l * l)) * sin(k)) * tan(k)) * ((1.0 + pow((k / t), 2.0)) + 1.0));
}
real(8) function code(t, l, k)
    real(8), intent (in) :: t
    real(8), intent (in) :: l
    real(8), intent (in) :: k
    code = 2.0d0 / (((((t ** 3.0d0) / (l * l)) * sin(k)) * tan(k)) * ((1.0d0 + ((k / t) ** 2.0d0)) + 1.0d0))
end function
public static double code(double t, double l, double k) {
	return 2.0 / ((((Math.pow(t, 3.0) / (l * l)) * Math.sin(k)) * Math.tan(k)) * ((1.0 + Math.pow((k / t), 2.0)) + 1.0));
}
def code(t, l, k):
	return 2.0 / ((((math.pow(t, 3.0) / (l * l)) * math.sin(k)) * math.tan(k)) * ((1.0 + math.pow((k / t), 2.0)) + 1.0))
function code(t, l, k)
	return Float64(2.0 / Float64(Float64(Float64(Float64((t ^ 3.0) / Float64(l * l)) * sin(k)) * tan(k)) * Float64(Float64(1.0 + (Float64(k / t) ^ 2.0)) + 1.0)))
end
function tmp = code(t, l, k)
	tmp = 2.0 / (((((t ^ 3.0) / (l * l)) * sin(k)) * tan(k)) * ((1.0 + ((k / t) ^ 2.0)) + 1.0));
end
code[t_, l_, k_] := N[(2.0 / N[(N[(N[(N[(N[Power[t, 3.0], $MachinePrecision] / N[(l * l), $MachinePrecision]), $MachinePrecision] * N[Sin[k], $MachinePrecision]), $MachinePrecision] * N[Tan[k], $MachinePrecision]), $MachinePrecision] * N[(N[(1.0 + N[Power[N[(k / t), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}

\\
\frac{2}{\left(\left(\frac{{t}^{3}}{\ell \cdot \ell} \cdot \sin k\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)}
\end{array}

Alternative 1: 89.2% accurate, 0.3× speedup?

\[\begin{array}{l} t\_m = \left|t\right| \\ t\_s = \mathsf{copysign}\left(1, t\right) \\ \begin{array}{l} t_2 := 2 + {\left(\frac{k}{t\_m}\right)}^{2}\\ t_3 := \sqrt[3]{\sin k} \cdot \frac{t\_m}{{\left(\sqrt[3]{\ell}\right)}^{2}}\\ t\_s \cdot \begin{array}{l} \mathbf{if}\;t\_m \leq 1.4 \cdot 10^{-55}:\\ \;\;\;\;\ell \cdot \left(2 \cdot \left(\left(\ell \cdot {k}^{-2}\right) \cdot \frac{\cos k}{t\_m \cdot {\sin k}^{2}}\right)\right)\\ \mathbf{else}:\\ \;\;\;\;\frac{2}{{\left(t\_3 \cdot \left(\sqrt[3]{\tan k} \cdot \sqrt[3]{t\_2}\right)\right)}^{2} \cdot \left(t\_3 \cdot \sqrt[3]{\tan k \cdot t\_2}\right)}\\ \end{array} \end{array} \end{array} \]
t\_m = (fabs.f64 t)
t\_s = (copysign.f64 #s(literal 1 binary64) t)
(FPCore (t_s t_m l k)
 :precision binary64
 (let* ((t_2 (+ 2.0 (pow (/ k t_m) 2.0)))
        (t_3 (* (cbrt (sin k)) (/ t_m (pow (cbrt l) 2.0)))))
   (*
    t_s
    (if (<= t_m 1.4e-55)
      (*
       l
       (* 2.0 (* (* l (pow k -2.0)) (/ (cos k) (* t_m (pow (sin k) 2.0))))))
      (/
       2.0
       (*
        (pow (* t_3 (* (cbrt (tan k)) (cbrt t_2))) 2.0)
        (* t_3 (cbrt (* (tan k) t_2)))))))))
t\_m = fabs(t);
t\_s = copysign(1.0, t);
double code(double t_s, double t_m, double l, double k) {
	double t_2 = 2.0 + pow((k / t_m), 2.0);
	double t_3 = cbrt(sin(k)) * (t_m / pow(cbrt(l), 2.0));
	double tmp;
	if (t_m <= 1.4e-55) {
		tmp = l * (2.0 * ((l * pow(k, -2.0)) * (cos(k) / (t_m * pow(sin(k), 2.0)))));
	} else {
		tmp = 2.0 / (pow((t_3 * (cbrt(tan(k)) * cbrt(t_2))), 2.0) * (t_3 * cbrt((tan(k) * t_2))));
	}
	return t_s * tmp;
}
t\_m = Math.abs(t);
t\_s = Math.copySign(1.0, t);
public static double code(double t_s, double t_m, double l, double k) {
	double t_2 = 2.0 + Math.pow((k / t_m), 2.0);
	double t_3 = Math.cbrt(Math.sin(k)) * (t_m / Math.pow(Math.cbrt(l), 2.0));
	double tmp;
	if (t_m <= 1.4e-55) {
		tmp = l * (2.0 * ((l * Math.pow(k, -2.0)) * (Math.cos(k) / (t_m * Math.pow(Math.sin(k), 2.0)))));
	} else {
		tmp = 2.0 / (Math.pow((t_3 * (Math.cbrt(Math.tan(k)) * Math.cbrt(t_2))), 2.0) * (t_3 * Math.cbrt((Math.tan(k) * t_2))));
	}
	return t_s * tmp;
}
t\_m = abs(t)
t\_s = copysign(1.0, t)
function code(t_s, t_m, l, k)
	t_2 = Float64(2.0 + (Float64(k / t_m) ^ 2.0))
	t_3 = Float64(cbrt(sin(k)) * Float64(t_m / (cbrt(l) ^ 2.0)))
	tmp = 0.0
	if (t_m <= 1.4e-55)
		tmp = Float64(l * Float64(2.0 * Float64(Float64(l * (k ^ -2.0)) * Float64(cos(k) / Float64(t_m * (sin(k) ^ 2.0))))));
	else
		tmp = Float64(2.0 / Float64((Float64(t_3 * Float64(cbrt(tan(k)) * cbrt(t_2))) ^ 2.0) * Float64(t_3 * cbrt(Float64(tan(k) * t_2)))));
	end
	return Float64(t_s * tmp)
end
t\_m = N[Abs[t], $MachinePrecision]
t\_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[t]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
code[t$95$s_, t$95$m_, l_, k_] := Block[{t$95$2 = N[(2.0 + N[Power[N[(k / t$95$m), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[Power[N[Sin[k], $MachinePrecision], 1/3], $MachinePrecision] * N[(t$95$m / N[Power[N[Power[l, 1/3], $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, N[(t$95$s * If[LessEqual[t$95$m, 1.4e-55], N[(l * N[(2.0 * N[(N[(l * N[Power[k, -2.0], $MachinePrecision]), $MachinePrecision] * N[(N[Cos[k], $MachinePrecision] / N[(t$95$m * N[Power[N[Sin[k], $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(2.0 / N[(N[Power[N[(t$95$3 * N[(N[Power[N[Tan[k], $MachinePrecision], 1/3], $MachinePrecision] * N[Power[t$95$2, 1/3], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 2.0], $MachinePrecision] * N[(t$95$3 * N[Power[N[(N[Tan[k], $MachinePrecision] * t$95$2), $MachinePrecision], 1/3], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]), $MachinePrecision]]]
\begin{array}{l}
t\_m = \left|t\right|
\\
t\_s = \mathsf{copysign}\left(1, t\right)

\\
\begin{array}{l}
t_2 := 2 + {\left(\frac{k}{t\_m}\right)}^{2}\\
t_3 := \sqrt[3]{\sin k} \cdot \frac{t\_m}{{\left(\sqrt[3]{\ell}\right)}^{2}}\\
t\_s \cdot \begin{array}{l}
\mathbf{if}\;t\_m \leq 1.4 \cdot 10^{-55}:\\
\;\;\;\;\ell \cdot \left(2 \cdot \left(\left(\ell \cdot {k}^{-2}\right) \cdot \frac{\cos k}{t\_m \cdot {\sin k}^{2}}\right)\right)\\

\mathbf{else}:\\
\;\;\;\;\frac{2}{{\left(t\_3 \cdot \left(\sqrt[3]{\tan k} \cdot \sqrt[3]{t\_2}\right)\right)}^{2} \cdot \left(t\_3 \cdot \sqrt[3]{\tan k \cdot t\_2}\right)}\\


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

    1. Initial program 51.2%

      \[\frac{2}{\left(\left(\frac{{t}^{3}}{\ell \cdot \ell} \cdot \sin k\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
    2. Simplified49.3%

      \[\leadsto \color{blue}{\frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}}}{{t}^{3} \cdot \left(\sin k \cdot \tan k\right)} \cdot \left(\ell \cdot \ell\right)} \]
    3. Add Preprocessing
    4. Step-by-step derivation
      1. associate-*r*57.1%

        \[\leadsto \color{blue}{\left(\frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}}}{{t}^{3} \cdot \left(\sin k \cdot \tan k\right)} \cdot \ell\right) \cdot \ell} \]
      2. associate-*l/55.8%

        \[\leadsto \color{blue}{\frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{{t}^{3} \cdot \left(\sin k \cdot \tan k\right)}} \cdot \ell \]
    5. Applied egg-rr55.8%

      \[\leadsto \color{blue}{\frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{{t}^{3} \cdot \left(\sin k \cdot \tan k\right)} \cdot \ell} \]
    6. Taylor expanded in k around inf 71.0%

      \[\leadsto \color{blue}{\left(2 \cdot \frac{\ell \cdot \cos k}{{k}^{2} \cdot \left(t \cdot {\sin k}^{2}\right)}\right)} \cdot \ell \]
    7. Step-by-step derivation
      1. times-frac71.6%

        \[\leadsto \left(2 \cdot \color{blue}{\left(\frac{\ell}{{k}^{2}} \cdot \frac{\cos k}{t \cdot {\sin k}^{2}}\right)}\right) \cdot \ell \]
    8. Simplified71.6%

      \[\leadsto \color{blue}{\left(2 \cdot \left(\frac{\ell}{{k}^{2}} \cdot \frac{\cos k}{t \cdot {\sin k}^{2}}\right)\right)} \cdot \ell \]
    9. Step-by-step derivation
      1. *-un-lft-identity71.6%

        \[\leadsto \left(2 \cdot \left(\color{blue}{\left(1 \cdot \frac{\ell}{{k}^{2}}\right)} \cdot \frac{\cos k}{t \cdot {\sin k}^{2}}\right)\right) \cdot \ell \]
      2. div-inv71.6%

        \[\leadsto \left(2 \cdot \left(\left(1 \cdot \color{blue}{\left(\ell \cdot \frac{1}{{k}^{2}}\right)}\right) \cdot \frac{\cos k}{t \cdot {\sin k}^{2}}\right)\right) \cdot \ell \]
      3. pow-flip71.8%

        \[\leadsto \left(2 \cdot \left(\left(1 \cdot \left(\ell \cdot \color{blue}{{k}^{\left(-2\right)}}\right)\right) \cdot \frac{\cos k}{t \cdot {\sin k}^{2}}\right)\right) \cdot \ell \]
      4. metadata-eval71.8%

        \[\leadsto \left(2 \cdot \left(\left(1 \cdot \left(\ell \cdot {k}^{\color{blue}{-2}}\right)\right) \cdot \frac{\cos k}{t \cdot {\sin k}^{2}}\right)\right) \cdot \ell \]
    10. Applied egg-rr71.8%

      \[\leadsto \left(2 \cdot \left(\color{blue}{\left(1 \cdot \left(\ell \cdot {k}^{-2}\right)\right)} \cdot \frac{\cos k}{t \cdot {\sin k}^{2}}\right)\right) \cdot \ell \]
    11. Step-by-step derivation
      1. *-lft-identity71.8%

        \[\leadsto \left(2 \cdot \left(\color{blue}{\left(\ell \cdot {k}^{-2}\right)} \cdot \frac{\cos k}{t \cdot {\sin k}^{2}}\right)\right) \cdot \ell \]
    12. Simplified71.8%

      \[\leadsto \left(2 \cdot \left(\color{blue}{\left(\ell \cdot {k}^{-2}\right)} \cdot \frac{\cos k}{t \cdot {\sin k}^{2}}\right)\right) \cdot \ell \]

    if 1.39999999999999992e-55 < t

    1. Initial program 64.7%

      \[\frac{2}{\left(\left(\frac{{t}^{3}}{\ell \cdot \ell} \cdot \sin k\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
    2. Add Preprocessing
    3. Step-by-step derivation
      1. unpow364.7%

        \[\leadsto \frac{2}{\left(\left(\frac{\color{blue}{\left(t \cdot t\right) \cdot t}}{\ell \cdot \ell} \cdot \sin k\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
      2. times-frac74.7%

        \[\leadsto \frac{2}{\left(\left(\color{blue}{\left(\frac{t \cdot t}{\ell} \cdot \frac{t}{\ell}\right)} \cdot \sin k\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
      3. pow274.7%

        \[\leadsto \frac{2}{\left(\left(\left(\frac{\color{blue}{{t}^{2}}}{\ell} \cdot \frac{t}{\ell}\right) \cdot \sin k\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
    4. Applied egg-rr74.7%

      \[\leadsto \frac{2}{\left(\left(\color{blue}{\left(\frac{{t}^{2}}{\ell} \cdot \frac{t}{\ell}\right)} \cdot \sin k\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
    5. Applied egg-rr96.0%

      \[\leadsto \frac{2}{\color{blue}{{\left(\left(\sqrt[3]{\sin k} \cdot \frac{t}{{\left(\sqrt[3]{\ell}\right)}^{2}}\right) \cdot \sqrt[3]{\tan k \cdot \left(1 + {\left(\mathsf{hypot}\left(1, \frac{k}{t}\right)\right)}^{2}\right)}\right)}^{2} \cdot \left(\left(\sqrt[3]{\sin k} \cdot \frac{t}{{\left(\sqrt[3]{\ell}\right)}^{2}}\right) \cdot \sqrt[3]{\tan k \cdot \left(1 + {\left(\mathsf{hypot}\left(1, \frac{k}{t}\right)\right)}^{2}\right)}\right)}} \]
    6. Step-by-step derivation
      1. cbrt-prod96.1%

        \[\leadsto \frac{2}{{\left(\left(\sqrt[3]{\sin k} \cdot \frac{t}{{\left(\sqrt[3]{\ell}\right)}^{2}}\right) \cdot \color{blue}{\left(\sqrt[3]{\tan k} \cdot \sqrt[3]{1 + {\left(\mathsf{hypot}\left(1, \frac{k}{t}\right)\right)}^{2}}\right)}\right)}^{2} \cdot \left(\left(\sqrt[3]{\sin k} \cdot \frac{t}{{\left(\sqrt[3]{\ell}\right)}^{2}}\right) \cdot \sqrt[3]{\tan k \cdot \left(1 + {\left(\mathsf{hypot}\left(1, \frac{k}{t}\right)\right)}^{2}\right)}\right)} \]
      2. unpow296.1%

        \[\leadsto \frac{2}{{\left(\left(\sqrt[3]{\sin k} \cdot \frac{t}{{\left(\sqrt[3]{\ell}\right)}^{2}}\right) \cdot \left(\sqrt[3]{\tan k} \cdot \sqrt[3]{1 + \color{blue}{\mathsf{hypot}\left(1, \frac{k}{t}\right) \cdot \mathsf{hypot}\left(1, \frac{k}{t}\right)}}\right)\right)}^{2} \cdot \left(\left(\sqrt[3]{\sin k} \cdot \frac{t}{{\left(\sqrt[3]{\ell}\right)}^{2}}\right) \cdot \sqrt[3]{\tan k \cdot \left(1 + {\left(\mathsf{hypot}\left(1, \frac{k}{t}\right)\right)}^{2}\right)}\right)} \]
      3. hypot-undefine96.1%

        \[\leadsto \frac{2}{{\left(\left(\sqrt[3]{\sin k} \cdot \frac{t}{{\left(\sqrt[3]{\ell}\right)}^{2}}\right) \cdot \left(\sqrt[3]{\tan k} \cdot \sqrt[3]{1 + \color{blue}{\sqrt{1 \cdot 1 + \frac{k}{t} \cdot \frac{k}{t}}} \cdot \mathsf{hypot}\left(1, \frac{k}{t}\right)}\right)\right)}^{2} \cdot \left(\left(\sqrt[3]{\sin k} \cdot \frac{t}{{\left(\sqrt[3]{\ell}\right)}^{2}}\right) \cdot \sqrt[3]{\tan k \cdot \left(1 + {\left(\mathsf{hypot}\left(1, \frac{k}{t}\right)\right)}^{2}\right)}\right)} \]
      4. metadata-eval96.1%

        \[\leadsto \frac{2}{{\left(\left(\sqrt[3]{\sin k} \cdot \frac{t}{{\left(\sqrt[3]{\ell}\right)}^{2}}\right) \cdot \left(\sqrt[3]{\tan k} \cdot \sqrt[3]{1 + \sqrt{\color{blue}{1} + \frac{k}{t} \cdot \frac{k}{t}} \cdot \mathsf{hypot}\left(1, \frac{k}{t}\right)}\right)\right)}^{2} \cdot \left(\left(\sqrt[3]{\sin k} \cdot \frac{t}{{\left(\sqrt[3]{\ell}\right)}^{2}}\right) \cdot \sqrt[3]{\tan k \cdot \left(1 + {\left(\mathsf{hypot}\left(1, \frac{k}{t}\right)\right)}^{2}\right)}\right)} \]
      5. unpow296.1%

        \[\leadsto \frac{2}{{\left(\left(\sqrt[3]{\sin k} \cdot \frac{t}{{\left(\sqrt[3]{\ell}\right)}^{2}}\right) \cdot \left(\sqrt[3]{\tan k} \cdot \sqrt[3]{1 + \sqrt{1 + \color{blue}{{\left(\frac{k}{t}\right)}^{2}}} \cdot \mathsf{hypot}\left(1, \frac{k}{t}\right)}\right)\right)}^{2} \cdot \left(\left(\sqrt[3]{\sin k} \cdot \frac{t}{{\left(\sqrt[3]{\ell}\right)}^{2}}\right) \cdot \sqrt[3]{\tan k \cdot \left(1 + {\left(\mathsf{hypot}\left(1, \frac{k}{t}\right)\right)}^{2}\right)}\right)} \]
      6. hypot-undefine96.1%

        \[\leadsto \frac{2}{{\left(\left(\sqrt[3]{\sin k} \cdot \frac{t}{{\left(\sqrt[3]{\ell}\right)}^{2}}\right) \cdot \left(\sqrt[3]{\tan k} \cdot \sqrt[3]{1 + \sqrt{1 + {\left(\frac{k}{t}\right)}^{2}} \cdot \color{blue}{\sqrt{1 \cdot 1 + \frac{k}{t} \cdot \frac{k}{t}}}}\right)\right)}^{2} \cdot \left(\left(\sqrt[3]{\sin k} \cdot \frac{t}{{\left(\sqrt[3]{\ell}\right)}^{2}}\right) \cdot \sqrt[3]{\tan k \cdot \left(1 + {\left(\mathsf{hypot}\left(1, \frac{k}{t}\right)\right)}^{2}\right)}\right)} \]
      7. metadata-eval96.1%

        \[\leadsto \frac{2}{{\left(\left(\sqrt[3]{\sin k} \cdot \frac{t}{{\left(\sqrt[3]{\ell}\right)}^{2}}\right) \cdot \left(\sqrt[3]{\tan k} \cdot \sqrt[3]{1 + \sqrt{1 + {\left(\frac{k}{t}\right)}^{2}} \cdot \sqrt{\color{blue}{1} + \frac{k}{t} \cdot \frac{k}{t}}}\right)\right)}^{2} \cdot \left(\left(\sqrt[3]{\sin k} \cdot \frac{t}{{\left(\sqrt[3]{\ell}\right)}^{2}}\right) \cdot \sqrt[3]{\tan k \cdot \left(1 + {\left(\mathsf{hypot}\left(1, \frac{k}{t}\right)\right)}^{2}\right)}\right)} \]
      8. unpow296.1%

        \[\leadsto \frac{2}{{\left(\left(\sqrt[3]{\sin k} \cdot \frac{t}{{\left(\sqrt[3]{\ell}\right)}^{2}}\right) \cdot \left(\sqrt[3]{\tan k} \cdot \sqrt[3]{1 + \sqrt{1 + {\left(\frac{k}{t}\right)}^{2}} \cdot \sqrt{1 + \color{blue}{{\left(\frac{k}{t}\right)}^{2}}}}\right)\right)}^{2} \cdot \left(\left(\sqrt[3]{\sin k} \cdot \frac{t}{{\left(\sqrt[3]{\ell}\right)}^{2}}\right) \cdot \sqrt[3]{\tan k \cdot \left(1 + {\left(\mathsf{hypot}\left(1, \frac{k}{t}\right)\right)}^{2}\right)}\right)} \]
      9. add-sqr-sqrt96.1%

        \[\leadsto \frac{2}{{\left(\left(\sqrt[3]{\sin k} \cdot \frac{t}{{\left(\sqrt[3]{\ell}\right)}^{2}}\right) \cdot \left(\sqrt[3]{\tan k} \cdot \sqrt[3]{1 + \color{blue}{\left(1 + {\left(\frac{k}{t}\right)}^{2}\right)}}\right)\right)}^{2} \cdot \left(\left(\sqrt[3]{\sin k} \cdot \frac{t}{{\left(\sqrt[3]{\ell}\right)}^{2}}\right) \cdot \sqrt[3]{\tan k \cdot \left(1 + {\left(\mathsf{hypot}\left(1, \frac{k}{t}\right)\right)}^{2}\right)}\right)} \]
    7. Applied egg-rr96.1%

      \[\leadsto \frac{2}{{\left(\left(\sqrt[3]{\sin k} \cdot \frac{t}{{\left(\sqrt[3]{\ell}\right)}^{2}}\right) \cdot \color{blue}{\left(\sqrt[3]{\tan k} \cdot \sqrt[3]{1 + \left(1 + {\left(\frac{k}{t}\right)}^{2}\right)}\right)}\right)}^{2} \cdot \left(\left(\sqrt[3]{\sin k} \cdot \frac{t}{{\left(\sqrt[3]{\ell}\right)}^{2}}\right) \cdot \sqrt[3]{\tan k \cdot \left(1 + {\left(\mathsf{hypot}\left(1, \frac{k}{t}\right)\right)}^{2}\right)}\right)} \]
    8. Step-by-step derivation
      1. associate-+r+96.1%

        \[\leadsto \frac{2}{{\left(\left(\sqrt[3]{\sin k} \cdot \frac{t}{{\left(\sqrt[3]{\ell}\right)}^{2}}\right) \cdot \left(\sqrt[3]{\tan k} \cdot \sqrt[3]{\color{blue}{\left(1 + 1\right) + {\left(\frac{k}{t}\right)}^{2}}}\right)\right)}^{2} \cdot \left(\left(\sqrt[3]{\sin k} \cdot \frac{t}{{\left(\sqrt[3]{\ell}\right)}^{2}}\right) \cdot \sqrt[3]{\tan k \cdot \left(1 + {\left(\mathsf{hypot}\left(1, \frac{k}{t}\right)\right)}^{2}\right)}\right)} \]
      2. metadata-eval96.1%

        \[\leadsto \frac{2}{{\left(\left(\sqrt[3]{\sin k} \cdot \frac{t}{{\left(\sqrt[3]{\ell}\right)}^{2}}\right) \cdot \left(\sqrt[3]{\tan k} \cdot \sqrt[3]{\color{blue}{2} + {\left(\frac{k}{t}\right)}^{2}}\right)\right)}^{2} \cdot \left(\left(\sqrt[3]{\sin k} \cdot \frac{t}{{\left(\sqrt[3]{\ell}\right)}^{2}}\right) \cdot \sqrt[3]{\tan k \cdot \left(1 + {\left(\mathsf{hypot}\left(1, \frac{k}{t}\right)\right)}^{2}\right)}\right)} \]
    9. Simplified96.1%

      \[\leadsto \frac{2}{{\left(\left(\sqrt[3]{\sin k} \cdot \frac{t}{{\left(\sqrt[3]{\ell}\right)}^{2}}\right) \cdot \color{blue}{\left(\sqrt[3]{\tan k} \cdot \sqrt[3]{2 + {\left(\frac{k}{t}\right)}^{2}}\right)}\right)}^{2} \cdot \left(\left(\sqrt[3]{\sin k} \cdot \frac{t}{{\left(\sqrt[3]{\ell}\right)}^{2}}\right) \cdot \sqrt[3]{\tan k \cdot \left(1 + {\left(\mathsf{hypot}\left(1, \frac{k}{t}\right)\right)}^{2}\right)}\right)} \]
    10. Step-by-step derivation
      1. *-un-lft-identity96.1%

        \[\leadsto \frac{2}{{\left(\left(\sqrt[3]{\sin k} \cdot \frac{t}{{\left(\sqrt[3]{\ell}\right)}^{2}}\right) \cdot \left(\sqrt[3]{\tan k} \cdot \sqrt[3]{2 + {\left(\frac{k}{t}\right)}^{2}}\right)\right)}^{2} \cdot \left(\left(\sqrt[3]{\sin k} \cdot \frac{t}{{\left(\sqrt[3]{\ell}\right)}^{2}}\right) \cdot \color{blue}{\left(1 \cdot \sqrt[3]{\tan k \cdot \left(1 + {\left(\mathsf{hypot}\left(1, \frac{k}{t}\right)\right)}^{2}\right)}\right)}\right)} \]
      2. unpow296.1%

        \[\leadsto \frac{2}{{\left(\left(\sqrt[3]{\sin k} \cdot \frac{t}{{\left(\sqrt[3]{\ell}\right)}^{2}}\right) \cdot \left(\sqrt[3]{\tan k} \cdot \sqrt[3]{2 + {\left(\frac{k}{t}\right)}^{2}}\right)\right)}^{2} \cdot \left(\left(\sqrt[3]{\sin k} \cdot \frac{t}{{\left(\sqrt[3]{\ell}\right)}^{2}}\right) \cdot \left(1 \cdot \sqrt[3]{\tan k \cdot \left(1 + \color{blue}{\mathsf{hypot}\left(1, \frac{k}{t}\right) \cdot \mathsf{hypot}\left(1, \frac{k}{t}\right)}\right)}\right)\right)} \]
      3. hypot-undefine96.1%

        \[\leadsto \frac{2}{{\left(\left(\sqrt[3]{\sin k} \cdot \frac{t}{{\left(\sqrt[3]{\ell}\right)}^{2}}\right) \cdot \left(\sqrt[3]{\tan k} \cdot \sqrt[3]{2 + {\left(\frac{k}{t}\right)}^{2}}\right)\right)}^{2} \cdot \left(\left(\sqrt[3]{\sin k} \cdot \frac{t}{{\left(\sqrt[3]{\ell}\right)}^{2}}\right) \cdot \left(1 \cdot \sqrt[3]{\tan k \cdot \left(1 + \color{blue}{\sqrt{1 \cdot 1 + \frac{k}{t} \cdot \frac{k}{t}}} \cdot \mathsf{hypot}\left(1, \frac{k}{t}\right)\right)}\right)\right)} \]
      4. metadata-eval96.1%

        \[\leadsto \frac{2}{{\left(\left(\sqrt[3]{\sin k} \cdot \frac{t}{{\left(\sqrt[3]{\ell}\right)}^{2}}\right) \cdot \left(\sqrt[3]{\tan k} \cdot \sqrt[3]{2 + {\left(\frac{k}{t}\right)}^{2}}\right)\right)}^{2} \cdot \left(\left(\sqrt[3]{\sin k} \cdot \frac{t}{{\left(\sqrt[3]{\ell}\right)}^{2}}\right) \cdot \left(1 \cdot \sqrt[3]{\tan k \cdot \left(1 + \sqrt{\color{blue}{1} + \frac{k}{t} \cdot \frac{k}{t}} \cdot \mathsf{hypot}\left(1, \frac{k}{t}\right)\right)}\right)\right)} \]
      5. unpow296.1%

        \[\leadsto \frac{2}{{\left(\left(\sqrt[3]{\sin k} \cdot \frac{t}{{\left(\sqrt[3]{\ell}\right)}^{2}}\right) \cdot \left(\sqrt[3]{\tan k} \cdot \sqrt[3]{2 + {\left(\frac{k}{t}\right)}^{2}}\right)\right)}^{2} \cdot \left(\left(\sqrt[3]{\sin k} \cdot \frac{t}{{\left(\sqrt[3]{\ell}\right)}^{2}}\right) \cdot \left(1 \cdot \sqrt[3]{\tan k \cdot \left(1 + \sqrt{1 + \color{blue}{{\left(\frac{k}{t}\right)}^{2}}} \cdot \mathsf{hypot}\left(1, \frac{k}{t}\right)\right)}\right)\right)} \]
      6. hypot-undefine96.1%

        \[\leadsto \frac{2}{{\left(\left(\sqrt[3]{\sin k} \cdot \frac{t}{{\left(\sqrt[3]{\ell}\right)}^{2}}\right) \cdot \left(\sqrt[3]{\tan k} \cdot \sqrt[3]{2 + {\left(\frac{k}{t}\right)}^{2}}\right)\right)}^{2} \cdot \left(\left(\sqrt[3]{\sin k} \cdot \frac{t}{{\left(\sqrt[3]{\ell}\right)}^{2}}\right) \cdot \left(1 \cdot \sqrt[3]{\tan k \cdot \left(1 + \sqrt{1 + {\left(\frac{k}{t}\right)}^{2}} \cdot \color{blue}{\sqrt{1 \cdot 1 + \frac{k}{t} \cdot \frac{k}{t}}}\right)}\right)\right)} \]
      7. metadata-eval96.1%

        \[\leadsto \frac{2}{{\left(\left(\sqrt[3]{\sin k} \cdot \frac{t}{{\left(\sqrt[3]{\ell}\right)}^{2}}\right) \cdot \left(\sqrt[3]{\tan k} \cdot \sqrt[3]{2 + {\left(\frac{k}{t}\right)}^{2}}\right)\right)}^{2} \cdot \left(\left(\sqrt[3]{\sin k} \cdot \frac{t}{{\left(\sqrt[3]{\ell}\right)}^{2}}\right) \cdot \left(1 \cdot \sqrt[3]{\tan k \cdot \left(1 + \sqrt{1 + {\left(\frac{k}{t}\right)}^{2}} \cdot \sqrt{\color{blue}{1} + \frac{k}{t} \cdot \frac{k}{t}}\right)}\right)\right)} \]
      8. unpow296.1%

        \[\leadsto \frac{2}{{\left(\left(\sqrt[3]{\sin k} \cdot \frac{t}{{\left(\sqrt[3]{\ell}\right)}^{2}}\right) \cdot \left(\sqrt[3]{\tan k} \cdot \sqrt[3]{2 + {\left(\frac{k}{t}\right)}^{2}}\right)\right)}^{2} \cdot \left(\left(\sqrt[3]{\sin k} \cdot \frac{t}{{\left(\sqrt[3]{\ell}\right)}^{2}}\right) \cdot \left(1 \cdot \sqrt[3]{\tan k \cdot \left(1 + \sqrt{1 + {\left(\frac{k}{t}\right)}^{2}} \cdot \sqrt{1 + \color{blue}{{\left(\frac{k}{t}\right)}^{2}}}\right)}\right)\right)} \]
      9. add-sqr-sqrt96.1%

        \[\leadsto \frac{2}{{\left(\left(\sqrt[3]{\sin k} \cdot \frac{t}{{\left(\sqrt[3]{\ell}\right)}^{2}}\right) \cdot \left(\sqrt[3]{\tan k} \cdot \sqrt[3]{2 + {\left(\frac{k}{t}\right)}^{2}}\right)\right)}^{2} \cdot \left(\left(\sqrt[3]{\sin k} \cdot \frac{t}{{\left(\sqrt[3]{\ell}\right)}^{2}}\right) \cdot \left(1 \cdot \sqrt[3]{\tan k \cdot \left(1 + \color{blue}{\left(1 + {\left(\frac{k}{t}\right)}^{2}\right)}\right)}\right)\right)} \]
    11. Applied egg-rr96.1%

      \[\leadsto \frac{2}{{\left(\left(\sqrt[3]{\sin k} \cdot \frac{t}{{\left(\sqrt[3]{\ell}\right)}^{2}}\right) \cdot \left(\sqrt[3]{\tan k} \cdot \sqrt[3]{2 + {\left(\frac{k}{t}\right)}^{2}}\right)\right)}^{2} \cdot \left(\left(\sqrt[3]{\sin k} \cdot \frac{t}{{\left(\sqrt[3]{\ell}\right)}^{2}}\right) \cdot \color{blue}{\left(1 \cdot \sqrt[3]{\tan k \cdot \left(1 + \left(1 + {\left(\frac{k}{t}\right)}^{2}\right)\right)}\right)}\right)} \]
    12. Step-by-step derivation
      1. *-lft-identity96.1%

        \[\leadsto \frac{2}{{\left(\left(\sqrt[3]{\sin k} \cdot \frac{t}{{\left(\sqrt[3]{\ell}\right)}^{2}}\right) \cdot \left(\sqrt[3]{\tan k} \cdot \sqrt[3]{2 + {\left(\frac{k}{t}\right)}^{2}}\right)\right)}^{2} \cdot \left(\left(\sqrt[3]{\sin k} \cdot \frac{t}{{\left(\sqrt[3]{\ell}\right)}^{2}}\right) \cdot \color{blue}{\sqrt[3]{\tan k \cdot \left(1 + \left(1 + {\left(\frac{k}{t}\right)}^{2}\right)\right)}}\right)} \]
      2. associate-+r+96.1%

        \[\leadsto \frac{2}{{\left(\left(\sqrt[3]{\sin k} \cdot \frac{t}{{\left(\sqrt[3]{\ell}\right)}^{2}}\right) \cdot \left(\sqrt[3]{\tan k} \cdot \sqrt[3]{2 + {\left(\frac{k}{t}\right)}^{2}}\right)\right)}^{2} \cdot \left(\left(\sqrt[3]{\sin k} \cdot \frac{t}{{\left(\sqrt[3]{\ell}\right)}^{2}}\right) \cdot \sqrt[3]{\tan k \cdot \color{blue}{\left(\left(1 + 1\right) + {\left(\frac{k}{t}\right)}^{2}\right)}}\right)} \]
      3. metadata-eval96.1%

        \[\leadsto \frac{2}{{\left(\left(\sqrt[3]{\sin k} \cdot \frac{t}{{\left(\sqrt[3]{\ell}\right)}^{2}}\right) \cdot \left(\sqrt[3]{\tan k} \cdot \sqrt[3]{2 + {\left(\frac{k}{t}\right)}^{2}}\right)\right)}^{2} \cdot \left(\left(\sqrt[3]{\sin k} \cdot \frac{t}{{\left(\sqrt[3]{\ell}\right)}^{2}}\right) \cdot \sqrt[3]{\tan k \cdot \left(\color{blue}{2} + {\left(\frac{k}{t}\right)}^{2}\right)}\right)} \]
    13. Simplified96.1%

      \[\leadsto \frac{2}{{\left(\left(\sqrt[3]{\sin k} \cdot \frac{t}{{\left(\sqrt[3]{\ell}\right)}^{2}}\right) \cdot \left(\sqrt[3]{\tan k} \cdot \sqrt[3]{2 + {\left(\frac{k}{t}\right)}^{2}}\right)\right)}^{2} \cdot \left(\left(\sqrt[3]{\sin k} \cdot \frac{t}{{\left(\sqrt[3]{\ell}\right)}^{2}}\right) \cdot \color{blue}{\sqrt[3]{\tan k \cdot \left(2 + {\left(\frac{k}{t}\right)}^{2}\right)}}\right)} \]
  3. Recombined 2 regimes into one program.
  4. Final simplification79.4%

    \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq 1.4 \cdot 10^{-55}:\\ \;\;\;\;\ell \cdot \left(2 \cdot \left(\left(\ell \cdot {k}^{-2}\right) \cdot \frac{\cos k}{t \cdot {\sin k}^{2}}\right)\right)\\ \mathbf{else}:\\ \;\;\;\;\frac{2}{{\left(\left(\sqrt[3]{\sin k} \cdot \frac{t}{{\left(\sqrt[3]{\ell}\right)}^{2}}\right) \cdot \left(\sqrt[3]{\tan k} \cdot \sqrt[3]{2 + {\left(\frac{k}{t}\right)}^{2}}\right)\right)}^{2} \cdot \left(\left(\sqrt[3]{\sin k} \cdot \frac{t}{{\left(\sqrt[3]{\ell}\right)}^{2}}\right) \cdot \sqrt[3]{\tan k \cdot \left(2 + {\left(\frac{k}{t}\right)}^{2}\right)}\right)}\\ \end{array} \]
  5. Add Preprocessing

Alternative 2: 89.1% accurate, 0.5× speedup?

\[\begin{array}{l} t\_m = \left|t\right| \\ t\_s = \mathsf{copysign}\left(1, t\right) \\ t\_s \cdot \begin{array}{l} \mathbf{if}\;t\_m \leq 6 \cdot 10^{-55}:\\ \;\;\;\;\ell \cdot \left(2 \cdot \left(\left(\ell \cdot {k}^{-2}\right) \cdot \frac{\cos k}{t\_m \cdot {\sin k}^{2}}\right)\right)\\ \mathbf{else}:\\ \;\;\;\;\frac{2}{{\left(\left(\sqrt[3]{\sin k} \cdot \frac{t\_m}{{\left(\sqrt[3]{\ell}\right)}^{2}}\right) \cdot \sqrt[3]{\tan k \cdot \left(1 + {\left(\mathsf{hypot}\left(1, \frac{k}{t\_m}\right)\right)}^{2}\right)}\right)}^{3}}\\ \end{array} \end{array} \]
t\_m = (fabs.f64 t)
t\_s = (copysign.f64 #s(literal 1 binary64) t)
(FPCore (t_s t_m l k)
 :precision binary64
 (*
  t_s
  (if (<= t_m 6e-55)
    (* l (* 2.0 (* (* l (pow k -2.0)) (/ (cos k) (* t_m (pow (sin k) 2.0))))))
    (/
     2.0
     (pow
      (*
       (* (cbrt (sin k)) (/ t_m (pow (cbrt l) 2.0)))
       (cbrt (* (tan k) (+ 1.0 (pow (hypot 1.0 (/ k t_m)) 2.0)))))
      3.0)))))
t\_m = fabs(t);
t\_s = copysign(1.0, t);
double code(double t_s, double t_m, double l, double k) {
	double tmp;
	if (t_m <= 6e-55) {
		tmp = l * (2.0 * ((l * pow(k, -2.0)) * (cos(k) / (t_m * pow(sin(k), 2.0)))));
	} else {
		tmp = 2.0 / pow(((cbrt(sin(k)) * (t_m / pow(cbrt(l), 2.0))) * cbrt((tan(k) * (1.0 + pow(hypot(1.0, (k / t_m)), 2.0))))), 3.0);
	}
	return t_s * tmp;
}
t\_m = Math.abs(t);
t\_s = Math.copySign(1.0, t);
public static double code(double t_s, double t_m, double l, double k) {
	double tmp;
	if (t_m <= 6e-55) {
		tmp = l * (2.0 * ((l * Math.pow(k, -2.0)) * (Math.cos(k) / (t_m * Math.pow(Math.sin(k), 2.0)))));
	} else {
		tmp = 2.0 / Math.pow(((Math.cbrt(Math.sin(k)) * (t_m / Math.pow(Math.cbrt(l), 2.0))) * Math.cbrt((Math.tan(k) * (1.0 + Math.pow(Math.hypot(1.0, (k / t_m)), 2.0))))), 3.0);
	}
	return t_s * tmp;
}
t\_m = abs(t)
t\_s = copysign(1.0, t)
function code(t_s, t_m, l, k)
	tmp = 0.0
	if (t_m <= 6e-55)
		tmp = Float64(l * Float64(2.0 * Float64(Float64(l * (k ^ -2.0)) * Float64(cos(k) / Float64(t_m * (sin(k) ^ 2.0))))));
	else
		tmp = Float64(2.0 / (Float64(Float64(cbrt(sin(k)) * Float64(t_m / (cbrt(l) ^ 2.0))) * cbrt(Float64(tan(k) * Float64(1.0 + (hypot(1.0, Float64(k / t_m)) ^ 2.0))))) ^ 3.0));
	end
	return Float64(t_s * tmp)
end
t\_m = N[Abs[t], $MachinePrecision]
t\_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[t]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
code[t$95$s_, t$95$m_, l_, k_] := N[(t$95$s * If[LessEqual[t$95$m, 6e-55], N[(l * N[(2.0 * N[(N[(l * N[Power[k, -2.0], $MachinePrecision]), $MachinePrecision] * N[(N[Cos[k], $MachinePrecision] / N[(t$95$m * N[Power[N[Sin[k], $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(2.0 / N[Power[N[(N[(N[Power[N[Sin[k], $MachinePrecision], 1/3], $MachinePrecision] * N[(t$95$m / N[Power[N[Power[l, 1/3], $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[Power[N[(N[Tan[k], $MachinePrecision] * N[(1.0 + N[Power[N[Sqrt[1.0 ^ 2 + N[(k / t$95$m), $MachinePrecision] ^ 2], $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1/3], $MachinePrecision]), $MachinePrecision], 3.0], $MachinePrecision]), $MachinePrecision]]), $MachinePrecision]
\begin{array}{l}
t\_m = \left|t\right|
\\
t\_s = \mathsf{copysign}\left(1, t\right)

\\
t\_s \cdot \begin{array}{l}
\mathbf{if}\;t\_m \leq 6 \cdot 10^{-55}:\\
\;\;\;\;\ell \cdot \left(2 \cdot \left(\left(\ell \cdot {k}^{-2}\right) \cdot \frac{\cos k}{t\_m \cdot {\sin k}^{2}}\right)\right)\\

\mathbf{else}:\\
\;\;\;\;\frac{2}{{\left(\left(\sqrt[3]{\sin k} \cdot \frac{t\_m}{{\left(\sqrt[3]{\ell}\right)}^{2}}\right) \cdot \sqrt[3]{\tan k \cdot \left(1 + {\left(\mathsf{hypot}\left(1, \frac{k}{t\_m}\right)\right)}^{2}\right)}\right)}^{3}}\\


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

    1. Initial program 51.2%

      \[\frac{2}{\left(\left(\frac{{t}^{3}}{\ell \cdot \ell} \cdot \sin k\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
    2. Simplified49.3%

      \[\leadsto \color{blue}{\frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}}}{{t}^{3} \cdot \left(\sin k \cdot \tan k\right)} \cdot \left(\ell \cdot \ell\right)} \]
    3. Add Preprocessing
    4. Step-by-step derivation
      1. associate-*r*57.1%

        \[\leadsto \color{blue}{\left(\frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}}}{{t}^{3} \cdot \left(\sin k \cdot \tan k\right)} \cdot \ell\right) \cdot \ell} \]
      2. associate-*l/55.8%

        \[\leadsto \color{blue}{\frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{{t}^{3} \cdot \left(\sin k \cdot \tan k\right)}} \cdot \ell \]
    5. Applied egg-rr55.8%

      \[\leadsto \color{blue}{\frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{{t}^{3} \cdot \left(\sin k \cdot \tan k\right)} \cdot \ell} \]
    6. Taylor expanded in k around inf 71.0%

      \[\leadsto \color{blue}{\left(2 \cdot \frac{\ell \cdot \cos k}{{k}^{2} \cdot \left(t \cdot {\sin k}^{2}\right)}\right)} \cdot \ell \]
    7. Step-by-step derivation
      1. times-frac71.6%

        \[\leadsto \left(2 \cdot \color{blue}{\left(\frac{\ell}{{k}^{2}} \cdot \frac{\cos k}{t \cdot {\sin k}^{2}}\right)}\right) \cdot \ell \]
    8. Simplified71.6%

      \[\leadsto \color{blue}{\left(2 \cdot \left(\frac{\ell}{{k}^{2}} \cdot \frac{\cos k}{t \cdot {\sin k}^{2}}\right)\right)} \cdot \ell \]
    9. Step-by-step derivation
      1. *-un-lft-identity71.6%

        \[\leadsto \left(2 \cdot \left(\color{blue}{\left(1 \cdot \frac{\ell}{{k}^{2}}\right)} \cdot \frac{\cos k}{t \cdot {\sin k}^{2}}\right)\right) \cdot \ell \]
      2. div-inv71.6%

        \[\leadsto \left(2 \cdot \left(\left(1 \cdot \color{blue}{\left(\ell \cdot \frac{1}{{k}^{2}}\right)}\right) \cdot \frac{\cos k}{t \cdot {\sin k}^{2}}\right)\right) \cdot \ell \]
      3. pow-flip71.8%

        \[\leadsto \left(2 \cdot \left(\left(1 \cdot \left(\ell \cdot \color{blue}{{k}^{\left(-2\right)}}\right)\right) \cdot \frac{\cos k}{t \cdot {\sin k}^{2}}\right)\right) \cdot \ell \]
      4. metadata-eval71.8%

        \[\leadsto \left(2 \cdot \left(\left(1 \cdot \left(\ell \cdot {k}^{\color{blue}{-2}}\right)\right) \cdot \frac{\cos k}{t \cdot {\sin k}^{2}}\right)\right) \cdot \ell \]
    10. Applied egg-rr71.8%

      \[\leadsto \left(2 \cdot \left(\color{blue}{\left(1 \cdot \left(\ell \cdot {k}^{-2}\right)\right)} \cdot \frac{\cos k}{t \cdot {\sin k}^{2}}\right)\right) \cdot \ell \]
    11. Step-by-step derivation
      1. *-lft-identity71.8%

        \[\leadsto \left(2 \cdot \left(\color{blue}{\left(\ell \cdot {k}^{-2}\right)} \cdot \frac{\cos k}{t \cdot {\sin k}^{2}}\right)\right) \cdot \ell \]
    12. Simplified71.8%

      \[\leadsto \left(2 \cdot \left(\color{blue}{\left(\ell \cdot {k}^{-2}\right)} \cdot \frac{\cos k}{t \cdot {\sin k}^{2}}\right)\right) \cdot \ell \]

    if 6.00000000000000033e-55 < t

    1. Initial program 64.7%

      \[\frac{2}{\left(\left(\frac{{t}^{3}}{\ell \cdot \ell} \cdot \sin k\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
    2. Add Preprocessing
    3. Step-by-step derivation
      1. unpow364.7%

        \[\leadsto \frac{2}{\left(\left(\frac{\color{blue}{\left(t \cdot t\right) \cdot t}}{\ell \cdot \ell} \cdot \sin k\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
      2. times-frac74.7%

        \[\leadsto \frac{2}{\left(\left(\color{blue}{\left(\frac{t \cdot t}{\ell} \cdot \frac{t}{\ell}\right)} \cdot \sin k\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
      3. pow274.7%

        \[\leadsto \frac{2}{\left(\left(\left(\frac{\color{blue}{{t}^{2}}}{\ell} \cdot \frac{t}{\ell}\right) \cdot \sin k\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
    4. Applied egg-rr74.7%

      \[\leadsto \frac{2}{\left(\left(\color{blue}{\left(\frac{{t}^{2}}{\ell} \cdot \frac{t}{\ell}\right)} \cdot \sin k\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
    5. Step-by-step derivation
      1. add-cube-cbrt74.4%

        \[\leadsto \frac{2}{\color{blue}{\left(\sqrt[3]{\left(\left(\left(\frac{{t}^{2}}{\ell} \cdot \frac{t}{\ell}\right) \cdot \sin k\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \cdot \sqrt[3]{\left(\left(\left(\frac{{t}^{2}}{\ell} \cdot \frac{t}{\ell}\right) \cdot \sin k\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)}\right) \cdot \sqrt[3]{\left(\left(\left(\frac{{t}^{2}}{\ell} \cdot \frac{t}{\ell}\right) \cdot \sin k\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)}}} \]
      2. pow374.4%

        \[\leadsto \frac{2}{\color{blue}{{\left(\sqrt[3]{\left(\left(\left(\frac{{t}^{2}}{\ell} \cdot \frac{t}{\ell}\right) \cdot \sin k\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)}\right)}^{3}}} \]
    6. Applied egg-rr96.0%

      \[\leadsto \frac{2}{\color{blue}{{\left(\left(\sqrt[3]{\sin k} \cdot \frac{t}{{\left(\sqrt[3]{\ell}\right)}^{2}}\right) \cdot \sqrt[3]{\tan k \cdot \left(1 + {\left(\mathsf{hypot}\left(1, \frac{k}{t}\right)\right)}^{2}\right)}\right)}^{3}}} \]
  3. Recombined 2 regimes into one program.
  4. Final simplification79.4%

    \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq 6 \cdot 10^{-55}:\\ \;\;\;\;\ell \cdot \left(2 \cdot \left(\left(\ell \cdot {k}^{-2}\right) \cdot \frac{\cos k}{t \cdot {\sin k}^{2}}\right)\right)\\ \mathbf{else}:\\ \;\;\;\;\frac{2}{{\left(\left(\sqrt[3]{\sin k} \cdot \frac{t}{{\left(\sqrt[3]{\ell}\right)}^{2}}\right) \cdot \sqrt[3]{\tan k \cdot \left(1 + {\left(\mathsf{hypot}\left(1, \frac{k}{t}\right)\right)}^{2}\right)}\right)}^{3}}\\ \end{array} \]
  5. Add Preprocessing

Alternative 3: 83.7% accurate, 0.5× speedup?

\[\begin{array}{l} t\_m = \left|t\right| \\ t\_s = \mathsf{copysign}\left(1, t\right) \\ \begin{array}{l} t_2 := \sqrt[3]{\sin k}\\ t_3 := 1 + \left({\left(\frac{k}{t\_m}\right)}^{2} + 1\right)\\ t\_s \cdot \begin{array}{l} \mathbf{if}\;t\_m \leq 1.95 \cdot 10^{-60}:\\ \;\;\;\;\ell \cdot \left(2 \cdot \left(\left(\ell \cdot {k}^{-2}\right) \cdot \frac{\cos k}{t\_m \cdot {\sin k}^{2}}\right)\right)\\ \mathbf{elif}\;t\_m \leq 1.32 \cdot 10^{+200}:\\ \;\;\;\;\frac{2}{t\_3 \cdot \left(\frac{{t\_m}^{1.5}}{\ell} \cdot \left(\tan k \cdot \frac{\sin k \cdot {t\_m}^{1.5}}{\ell}\right)\right)}\\ \mathbf{elif}\;t\_m \leq 8 \cdot 10^{+271}:\\ \;\;\;\;\frac{2}{t\_3 \cdot {\left(\sqrt[3]{\tan k} \cdot \left(t\_2 \cdot \left(t\_m \cdot \sqrt[3]{{\ell}^{-2}}\right)\right)\right)}^{3}}\\ \mathbf{else}:\\ \;\;\;\;\frac{2}{t\_3 \cdot \left(\tan k \cdot {\left(t\_2 \cdot \frac{t\_m}{{\left(\sqrt[3]{\ell}\right)}^{2}}\right)}^{3}\right)}\\ \end{array} \end{array} \end{array} \]
t\_m = (fabs.f64 t)
t\_s = (copysign.f64 #s(literal 1 binary64) t)
(FPCore (t_s t_m l k)
 :precision binary64
 (let* ((t_2 (cbrt (sin k))) (t_3 (+ 1.0 (+ (pow (/ k t_m) 2.0) 1.0))))
   (*
    t_s
    (if (<= t_m 1.95e-60)
      (*
       l
       (* 2.0 (* (* l (pow k -2.0)) (/ (cos k) (* t_m (pow (sin k) 2.0))))))
      (if (<= t_m 1.32e+200)
        (/
         2.0
         (*
          t_3
          (* (/ (pow t_m 1.5) l) (* (tan k) (/ (* (sin k) (pow t_m 1.5)) l)))))
        (if (<= t_m 8e+271)
          (/
           2.0
           (*
            t_3
            (pow (* (cbrt (tan k)) (* t_2 (* t_m (cbrt (pow l -2.0))))) 3.0)))
          (/
           2.0
           (*
            t_3
            (* (tan k) (pow (* t_2 (/ t_m (pow (cbrt l) 2.0))) 3.0))))))))))
t\_m = fabs(t);
t\_s = copysign(1.0, t);
double code(double t_s, double t_m, double l, double k) {
	double t_2 = cbrt(sin(k));
	double t_3 = 1.0 + (pow((k / t_m), 2.0) + 1.0);
	double tmp;
	if (t_m <= 1.95e-60) {
		tmp = l * (2.0 * ((l * pow(k, -2.0)) * (cos(k) / (t_m * pow(sin(k), 2.0)))));
	} else if (t_m <= 1.32e+200) {
		tmp = 2.0 / (t_3 * ((pow(t_m, 1.5) / l) * (tan(k) * ((sin(k) * pow(t_m, 1.5)) / l))));
	} else if (t_m <= 8e+271) {
		tmp = 2.0 / (t_3 * pow((cbrt(tan(k)) * (t_2 * (t_m * cbrt(pow(l, -2.0))))), 3.0));
	} else {
		tmp = 2.0 / (t_3 * (tan(k) * pow((t_2 * (t_m / pow(cbrt(l), 2.0))), 3.0)));
	}
	return t_s * tmp;
}
t\_m = Math.abs(t);
t\_s = Math.copySign(1.0, t);
public static double code(double t_s, double t_m, double l, double k) {
	double t_2 = Math.cbrt(Math.sin(k));
	double t_3 = 1.0 + (Math.pow((k / t_m), 2.0) + 1.0);
	double tmp;
	if (t_m <= 1.95e-60) {
		tmp = l * (2.0 * ((l * Math.pow(k, -2.0)) * (Math.cos(k) / (t_m * Math.pow(Math.sin(k), 2.0)))));
	} else if (t_m <= 1.32e+200) {
		tmp = 2.0 / (t_3 * ((Math.pow(t_m, 1.5) / l) * (Math.tan(k) * ((Math.sin(k) * Math.pow(t_m, 1.5)) / l))));
	} else if (t_m <= 8e+271) {
		tmp = 2.0 / (t_3 * Math.pow((Math.cbrt(Math.tan(k)) * (t_2 * (t_m * Math.cbrt(Math.pow(l, -2.0))))), 3.0));
	} else {
		tmp = 2.0 / (t_3 * (Math.tan(k) * Math.pow((t_2 * (t_m / Math.pow(Math.cbrt(l), 2.0))), 3.0)));
	}
	return t_s * tmp;
}
t\_m = abs(t)
t\_s = copysign(1.0, t)
function code(t_s, t_m, l, k)
	t_2 = cbrt(sin(k))
	t_3 = Float64(1.0 + Float64((Float64(k / t_m) ^ 2.0) + 1.0))
	tmp = 0.0
	if (t_m <= 1.95e-60)
		tmp = Float64(l * Float64(2.0 * Float64(Float64(l * (k ^ -2.0)) * Float64(cos(k) / Float64(t_m * (sin(k) ^ 2.0))))));
	elseif (t_m <= 1.32e+200)
		tmp = Float64(2.0 / Float64(t_3 * Float64(Float64((t_m ^ 1.5) / l) * Float64(tan(k) * Float64(Float64(sin(k) * (t_m ^ 1.5)) / l)))));
	elseif (t_m <= 8e+271)
		tmp = Float64(2.0 / Float64(t_3 * (Float64(cbrt(tan(k)) * Float64(t_2 * Float64(t_m * cbrt((l ^ -2.0))))) ^ 3.0)));
	else
		tmp = Float64(2.0 / Float64(t_3 * Float64(tan(k) * (Float64(t_2 * Float64(t_m / (cbrt(l) ^ 2.0))) ^ 3.0))));
	end
	return Float64(t_s * tmp)
end
t\_m = N[Abs[t], $MachinePrecision]
t\_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[t]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
code[t$95$s_, t$95$m_, l_, k_] := Block[{t$95$2 = N[Power[N[Sin[k], $MachinePrecision], 1/3], $MachinePrecision]}, Block[{t$95$3 = N[(1.0 + N[(N[Power[N[(k / t$95$m), $MachinePrecision], 2.0], $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]}, N[(t$95$s * If[LessEqual[t$95$m, 1.95e-60], N[(l * N[(2.0 * N[(N[(l * N[Power[k, -2.0], $MachinePrecision]), $MachinePrecision] * N[(N[Cos[k], $MachinePrecision] / N[(t$95$m * N[Power[N[Sin[k], $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$m, 1.32e+200], N[(2.0 / N[(t$95$3 * N[(N[(N[Power[t$95$m, 1.5], $MachinePrecision] / l), $MachinePrecision] * N[(N[Tan[k], $MachinePrecision] * N[(N[(N[Sin[k], $MachinePrecision] * N[Power[t$95$m, 1.5], $MachinePrecision]), $MachinePrecision] / l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$m, 8e+271], N[(2.0 / N[(t$95$3 * N[Power[N[(N[Power[N[Tan[k], $MachinePrecision], 1/3], $MachinePrecision] * N[(t$95$2 * N[(t$95$m * N[Power[N[Power[l, -2.0], $MachinePrecision], 1/3], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 3.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(2.0 / N[(t$95$3 * N[(N[Tan[k], $MachinePrecision] * N[Power[N[(t$95$2 * N[(t$95$m / N[Power[N[Power[l, 1/3], $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 3.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]), $MachinePrecision]]]
\begin{array}{l}
t\_m = \left|t\right|
\\
t\_s = \mathsf{copysign}\left(1, t\right)

\\
\begin{array}{l}
t_2 := \sqrt[3]{\sin k}\\
t_3 := 1 + \left({\left(\frac{k}{t\_m}\right)}^{2} + 1\right)\\
t\_s \cdot \begin{array}{l}
\mathbf{if}\;t\_m \leq 1.95 \cdot 10^{-60}:\\
\;\;\;\;\ell \cdot \left(2 \cdot \left(\left(\ell \cdot {k}^{-2}\right) \cdot \frac{\cos k}{t\_m \cdot {\sin k}^{2}}\right)\right)\\

\mathbf{elif}\;t\_m \leq 1.32 \cdot 10^{+200}:\\
\;\;\;\;\frac{2}{t\_3 \cdot \left(\frac{{t\_m}^{1.5}}{\ell} \cdot \left(\tan k \cdot \frac{\sin k \cdot {t\_m}^{1.5}}{\ell}\right)\right)}\\

\mathbf{elif}\;t\_m \leq 8 \cdot 10^{+271}:\\
\;\;\;\;\frac{2}{t\_3 \cdot {\left(\sqrt[3]{\tan k} \cdot \left(t\_2 \cdot \left(t\_m \cdot \sqrt[3]{{\ell}^{-2}}\right)\right)\right)}^{3}}\\

\mathbf{else}:\\
\;\;\;\;\frac{2}{t\_3 \cdot \left(\tan k \cdot {\left(t\_2 \cdot \frac{t\_m}{{\left(\sqrt[3]{\ell}\right)}^{2}}\right)}^{3}\right)}\\


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

    1. Initial program 50.7%

      \[\frac{2}{\left(\left(\frac{{t}^{3}}{\ell \cdot \ell} \cdot \sin k\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
    2. Simplified48.7%

      \[\leadsto \color{blue}{\frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}}}{{t}^{3} \cdot \left(\sin k \cdot \tan k\right)} \cdot \left(\ell \cdot \ell\right)} \]
    3. Add Preprocessing
    4. Step-by-step derivation
      1. associate-*r*56.6%

        \[\leadsto \color{blue}{\left(\frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}}}{{t}^{3} \cdot \left(\sin k \cdot \tan k\right)} \cdot \ell\right) \cdot \ell} \]
      2. associate-*l/55.3%

        \[\leadsto \color{blue}{\frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{{t}^{3} \cdot \left(\sin k \cdot \tan k\right)}} \cdot \ell \]
    5. Applied egg-rr55.3%

      \[\leadsto \color{blue}{\frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{{t}^{3} \cdot \left(\sin k \cdot \tan k\right)} \cdot \ell} \]
    6. Taylor expanded in k around inf 70.7%

      \[\leadsto \color{blue}{\left(2 \cdot \frac{\ell \cdot \cos k}{{k}^{2} \cdot \left(t \cdot {\sin k}^{2}\right)}\right)} \cdot \ell \]
    7. Step-by-step derivation
      1. times-frac71.2%

        \[\leadsto \left(2 \cdot \color{blue}{\left(\frac{\ell}{{k}^{2}} \cdot \frac{\cos k}{t \cdot {\sin k}^{2}}\right)}\right) \cdot \ell \]
    8. Simplified71.2%

      \[\leadsto \color{blue}{\left(2 \cdot \left(\frac{\ell}{{k}^{2}} \cdot \frac{\cos k}{t \cdot {\sin k}^{2}}\right)\right)} \cdot \ell \]
    9. Step-by-step derivation
      1. *-un-lft-identity71.2%

        \[\leadsto \left(2 \cdot \left(\color{blue}{\left(1 \cdot \frac{\ell}{{k}^{2}}\right)} \cdot \frac{\cos k}{t \cdot {\sin k}^{2}}\right)\right) \cdot \ell \]
      2. div-inv71.3%

        \[\leadsto \left(2 \cdot \left(\left(1 \cdot \color{blue}{\left(\ell \cdot \frac{1}{{k}^{2}}\right)}\right) \cdot \frac{\cos k}{t \cdot {\sin k}^{2}}\right)\right) \cdot \ell \]
      3. pow-flip71.5%

        \[\leadsto \left(2 \cdot \left(\left(1 \cdot \left(\ell \cdot \color{blue}{{k}^{\left(-2\right)}}\right)\right) \cdot \frac{\cos k}{t \cdot {\sin k}^{2}}\right)\right) \cdot \ell \]
      4. metadata-eval71.5%

        \[\leadsto \left(2 \cdot \left(\left(1 \cdot \left(\ell \cdot {k}^{\color{blue}{-2}}\right)\right) \cdot \frac{\cos k}{t \cdot {\sin k}^{2}}\right)\right) \cdot \ell \]
    10. Applied egg-rr71.5%

      \[\leadsto \left(2 \cdot \left(\color{blue}{\left(1 \cdot \left(\ell \cdot {k}^{-2}\right)\right)} \cdot \frac{\cos k}{t \cdot {\sin k}^{2}}\right)\right) \cdot \ell \]
    11. Step-by-step derivation
      1. *-lft-identity71.5%

        \[\leadsto \left(2 \cdot \left(\color{blue}{\left(\ell \cdot {k}^{-2}\right)} \cdot \frac{\cos k}{t \cdot {\sin k}^{2}}\right)\right) \cdot \ell \]
    12. Simplified71.5%

      \[\leadsto \left(2 \cdot \left(\color{blue}{\left(\ell \cdot {k}^{-2}\right)} \cdot \frac{\cos k}{t \cdot {\sin k}^{2}}\right)\right) \cdot \ell \]

    if 1.9500000000000001e-60 < t < 1.3199999999999999e200

    1. Initial program 64.3%

      \[\frac{2}{\left(\left(\frac{{t}^{3}}{\ell \cdot \ell} \cdot \sin k\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
    2. Add Preprocessing
    3. Step-by-step derivation
      1. add-sqr-sqrt64.3%

        \[\leadsto \frac{2}{\left(\left(\color{blue}{\left(\sqrt{\frac{{t}^{3}}{\ell \cdot \ell}} \cdot \sqrt{\frac{{t}^{3}}{\ell \cdot \ell}}\right)} \cdot \sin k\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
      2. associate-*l*64.3%

        \[\leadsto \frac{2}{\left(\color{blue}{\left(\sqrt{\frac{{t}^{3}}{\ell \cdot \ell}} \cdot \left(\sqrt{\frac{{t}^{3}}{\ell \cdot \ell}} \cdot \sin k\right)\right)} \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
      3. sqrt-div64.3%

        \[\leadsto \frac{2}{\left(\left(\color{blue}{\frac{\sqrt{{t}^{3}}}{\sqrt{\ell \cdot \ell}}} \cdot \left(\sqrt{\frac{{t}^{3}}{\ell \cdot \ell}} \cdot \sin k\right)\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
      4. sqrt-pow164.3%

        \[\leadsto \frac{2}{\left(\left(\frac{\color{blue}{{t}^{\left(\frac{3}{2}\right)}}}{\sqrt{\ell \cdot \ell}} \cdot \left(\sqrt{\frac{{t}^{3}}{\ell \cdot \ell}} \cdot \sin k\right)\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
      5. metadata-eval64.3%

        \[\leadsto \frac{2}{\left(\left(\frac{{t}^{\color{blue}{1.5}}}{\sqrt{\ell \cdot \ell}} \cdot \left(\sqrt{\frac{{t}^{3}}{\ell \cdot \ell}} \cdot \sin k\right)\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
      6. sqrt-prod32.3%

        \[\leadsto \frac{2}{\left(\left(\frac{{t}^{1.5}}{\color{blue}{\sqrt{\ell} \cdot \sqrt{\ell}}} \cdot \left(\sqrt{\frac{{t}^{3}}{\ell \cdot \ell}} \cdot \sin k\right)\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
      7. add-sqr-sqrt49.5%

        \[\leadsto \frac{2}{\left(\left(\frac{{t}^{1.5}}{\color{blue}{\ell}} \cdot \left(\sqrt{\frac{{t}^{3}}{\ell \cdot \ell}} \cdot \sin k\right)\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
      8. sqrt-div49.5%

        \[\leadsto \frac{2}{\left(\left(\frac{{t}^{1.5}}{\ell} \cdot \left(\color{blue}{\frac{\sqrt{{t}^{3}}}{\sqrt{\ell \cdot \ell}}} \cdot \sin k\right)\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
      9. sqrt-pow152.5%

        \[\leadsto \frac{2}{\left(\left(\frac{{t}^{1.5}}{\ell} \cdot \left(\frac{\color{blue}{{t}^{\left(\frac{3}{2}\right)}}}{\sqrt{\ell \cdot \ell}} \cdot \sin k\right)\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
      10. metadata-eval52.5%

        \[\leadsto \frac{2}{\left(\left(\frac{{t}^{1.5}}{\ell} \cdot \left(\frac{{t}^{\color{blue}{1.5}}}{\sqrt{\ell \cdot \ell}} \cdot \sin k\right)\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
      11. sqrt-prod40.1%

        \[\leadsto \frac{2}{\left(\left(\frac{{t}^{1.5}}{\ell} \cdot \left(\frac{{t}^{1.5}}{\color{blue}{\sqrt{\ell} \cdot \sqrt{\ell}}} \cdot \sin k\right)\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
      12. add-sqr-sqrt85.2%

        \[\leadsto \frac{2}{\left(\left(\frac{{t}^{1.5}}{\ell} \cdot \left(\frac{{t}^{1.5}}{\color{blue}{\ell}} \cdot \sin k\right)\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
    4. Applied egg-rr85.2%

      \[\leadsto \frac{2}{\left(\color{blue}{\left(\frac{{t}^{1.5}}{\ell} \cdot \left(\frac{{t}^{1.5}}{\ell} \cdot \sin k\right)\right)} \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
    5. Step-by-step derivation
      1. associate-*l*91.4%

        \[\leadsto \frac{2}{\color{blue}{\left(\frac{{t}^{1.5}}{\ell} \cdot \left(\left(\frac{{t}^{1.5}}{\ell} \cdot \sin k\right) \cdot \tan k\right)\right)} \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
      2. associate-*l/91.4%

        \[\leadsto \frac{2}{\left(\frac{{t}^{1.5}}{\ell} \cdot \left(\color{blue}{\frac{{t}^{1.5} \cdot \sin k}{\ell}} \cdot \tan k\right)\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
    6. Applied egg-rr91.4%

      \[\leadsto \frac{2}{\color{blue}{\left(\frac{{t}^{1.5}}{\ell} \cdot \left(\frac{{t}^{1.5} \cdot \sin k}{\ell} \cdot \tan k\right)\right)} \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]

    if 1.3199999999999999e200 < t < 7.99999999999999962e271

    1. Initial program 69.5%

      \[\frac{2}{\left(\left(\frac{{t}^{3}}{\ell \cdot \ell} \cdot \sin k\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
    2. Add Preprocessing
    3. Step-by-step derivation
      1. add-cube-cbrt69.5%

        \[\leadsto \frac{2}{\left(\color{blue}{\left(\left(\sqrt[3]{\frac{{t}^{3}}{\ell \cdot \ell} \cdot \sin k} \cdot \sqrt[3]{\frac{{t}^{3}}{\ell \cdot \ell} \cdot \sin k}\right) \cdot \sqrt[3]{\frac{{t}^{3}}{\ell \cdot \ell} \cdot \sin k}\right)} \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
      2. pow369.5%

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

        \[\leadsto \frac{2}{\left({\left(\sqrt[3]{\color{blue}{\sin k \cdot \frac{{t}^{3}}{\ell \cdot \ell}}}\right)}^{3} \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
      4. cbrt-prod69.5%

        \[\leadsto \frac{2}{\left({\color{blue}{\left(\sqrt[3]{\sin k} \cdot \sqrt[3]{\frac{{t}^{3}}{\ell \cdot \ell}}\right)}}^{3} \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
      5. div-inv69.5%

        \[\leadsto \frac{2}{\left({\left(\sqrt[3]{\sin k} \cdot \sqrt[3]{\color{blue}{{t}^{3} \cdot \frac{1}{\ell \cdot \ell}}}\right)}^{3} \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
      6. cbrt-prod69.5%

        \[\leadsto \frac{2}{\left({\left(\sqrt[3]{\sin k} \cdot \color{blue}{\left(\sqrt[3]{{t}^{3}} \cdot \sqrt[3]{\frac{1}{\ell \cdot \ell}}\right)}\right)}^{3} \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
      7. rem-cbrt-cube76.0%

        \[\leadsto \frac{2}{\left({\left(\sqrt[3]{\sin k} \cdot \left(\color{blue}{t} \cdot \sqrt[3]{\frac{1}{\ell \cdot \ell}}\right)\right)}^{3} \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
      8. pow276.0%

        \[\leadsto \frac{2}{\left({\left(\sqrt[3]{\sin k} \cdot \left(t \cdot \sqrt[3]{\frac{1}{\color{blue}{{\ell}^{2}}}}\right)\right)}^{3} \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
      9. pow-flip76.0%

        \[\leadsto \frac{2}{\left({\left(\sqrt[3]{\sin k} \cdot \left(t \cdot \sqrt[3]{\color{blue}{{\ell}^{\left(-2\right)}}}\right)\right)}^{3} \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
      10. metadata-eval76.0%

        \[\leadsto \frac{2}{\left({\left(\sqrt[3]{\sin k} \cdot \left(t \cdot \sqrt[3]{{\ell}^{\color{blue}{-2}}}\right)\right)}^{3} \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
    4. Applied egg-rr76.0%

      \[\leadsto \frac{2}{\left(\color{blue}{{\left(\sqrt[3]{\sin k} \cdot \left(t \cdot \sqrt[3]{{\ell}^{-2}}\right)\right)}^{3}} \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
    5. Step-by-step derivation
      1. add-cube-cbrt76.0%

        \[\leadsto \frac{2}{\color{blue}{\left(\left(\sqrt[3]{{\left(\sqrt[3]{\sin k} \cdot \left(t \cdot \sqrt[3]{{\ell}^{-2}}\right)\right)}^{3} \cdot \tan k} \cdot \sqrt[3]{{\left(\sqrt[3]{\sin k} \cdot \left(t \cdot \sqrt[3]{{\ell}^{-2}}\right)\right)}^{3} \cdot \tan k}\right) \cdot \sqrt[3]{{\left(\sqrt[3]{\sin k} \cdot \left(t \cdot \sqrt[3]{{\ell}^{-2}}\right)\right)}^{3} \cdot \tan k}\right)} \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
      2. pow376.0%

        \[\leadsto \frac{2}{\color{blue}{{\left(\sqrt[3]{{\left(\sqrt[3]{\sin k} \cdot \left(t \cdot \sqrt[3]{{\ell}^{-2}}\right)\right)}^{3} \cdot \tan k}\right)}^{3}} \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
      3. cbrt-prod76.0%

        \[\leadsto \frac{2}{{\color{blue}{\left(\sqrt[3]{{\left(\sqrt[3]{\sin k} \cdot \left(t \cdot \sqrt[3]{{\ell}^{-2}}\right)\right)}^{3}} \cdot \sqrt[3]{\tan k}\right)}}^{3} \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
      4. unpow376.0%

        \[\leadsto \frac{2}{{\left(\sqrt[3]{\color{blue}{\left(\left(\sqrt[3]{\sin k} \cdot \left(t \cdot \sqrt[3]{{\ell}^{-2}}\right)\right) \cdot \left(\sqrt[3]{\sin k} \cdot \left(t \cdot \sqrt[3]{{\ell}^{-2}}\right)\right)\right) \cdot \left(\sqrt[3]{\sin k} \cdot \left(t \cdot \sqrt[3]{{\ell}^{-2}}\right)\right)}} \cdot \sqrt[3]{\tan k}\right)}^{3} \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
      5. add-cbrt-cube87.3%

        \[\leadsto \frac{2}{{\left(\color{blue}{\left(\sqrt[3]{\sin k} \cdot \left(t \cdot \sqrt[3]{{\ell}^{-2}}\right)\right)} \cdot \sqrt[3]{\tan k}\right)}^{3} \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
    6. Applied egg-rr87.3%

      \[\leadsto \frac{2}{\color{blue}{{\left(\left(\sqrt[3]{\sin k} \cdot \left(t \cdot \sqrt[3]{{\ell}^{-2}}\right)\right) \cdot \sqrt[3]{\tan k}\right)}^{3}} \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]

    if 7.99999999999999962e271 < t

    1. Initial program 67.9%

      \[\frac{2}{\left(\left(\frac{{t}^{3}}{\ell \cdot \ell} \cdot \sin k\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
    2. Add Preprocessing
    3. Step-by-step derivation
      1. unpow367.9%

        \[\leadsto \frac{2}{\left(\left(\frac{\color{blue}{\left(t \cdot t\right) \cdot t}}{\ell \cdot \ell} \cdot \sin k\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
      2. times-frac68.2%

        \[\leadsto \frac{2}{\left(\left(\color{blue}{\left(\frac{t \cdot t}{\ell} \cdot \frac{t}{\ell}\right)} \cdot \sin k\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
      3. pow268.2%

        \[\leadsto \frac{2}{\left(\left(\left(\frac{\color{blue}{{t}^{2}}}{\ell} \cdot \frac{t}{\ell}\right) \cdot \sin k\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
    4. Applied egg-rr68.2%

      \[\leadsto \frac{2}{\left(\left(\color{blue}{\left(\frac{{t}^{2}}{\ell} \cdot \frac{t}{\ell}\right)} \cdot \sin k\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
    5. Step-by-step derivation
      1. add-cube-cbrt68.2%

        \[\leadsto \frac{2}{\left(\color{blue}{\left(\left(\sqrt[3]{\left(\frac{{t}^{2}}{\ell} \cdot \frac{t}{\ell}\right) \cdot \sin k} \cdot \sqrt[3]{\left(\frac{{t}^{2}}{\ell} \cdot \frac{t}{\ell}\right) \cdot \sin k}\right) \cdot \sqrt[3]{\left(\frac{{t}^{2}}{\ell} \cdot \frac{t}{\ell}\right) \cdot \sin k}\right)} \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
      2. pow368.2%

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

        \[\leadsto \frac{2}{\left({\left(\sqrt[3]{\color{blue}{\sin k \cdot \left(\frac{{t}^{2}}{\ell} \cdot \frac{t}{\ell}\right)}}\right)}^{3} \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
      4. cbrt-prod68.2%

        \[\leadsto \frac{2}{\left({\color{blue}{\left(\sqrt[3]{\sin k} \cdot \sqrt[3]{\frac{{t}^{2}}{\ell} \cdot \frac{t}{\ell}}\right)}}^{3} \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
      5. frac-times67.9%

        \[\leadsto \frac{2}{\left({\left(\sqrt[3]{\sin k} \cdot \sqrt[3]{\color{blue}{\frac{{t}^{2} \cdot t}{\ell \cdot \ell}}}\right)}^{3} \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
      6. unpow267.9%

        \[\leadsto \frac{2}{\left({\left(\sqrt[3]{\sin k} \cdot \sqrt[3]{\frac{\color{blue}{\left(t \cdot t\right)} \cdot t}{\ell \cdot \ell}}\right)}^{3} \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
      7. unpow367.9%

        \[\leadsto \frac{2}{\left({\left(\sqrt[3]{\sin k} \cdot \sqrt[3]{\frac{\color{blue}{{t}^{3}}}{\ell \cdot \ell}}\right)}^{3} \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
      8. cbrt-div67.9%

        \[\leadsto \frac{2}{\left({\left(\sqrt[3]{\sin k} \cdot \color{blue}{\frac{\sqrt[3]{{t}^{3}}}{\sqrt[3]{\ell \cdot \ell}}}\right)}^{3} \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
      9. unpow367.9%

        \[\leadsto \frac{2}{\left({\left(\sqrt[3]{\sin k} \cdot \frac{\sqrt[3]{\color{blue}{\left(t \cdot t\right) \cdot t}}}{\sqrt[3]{\ell \cdot \ell}}\right)}^{3} \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
      10. add-cbrt-cube68.7%

        \[\leadsto \frac{2}{\left({\left(\sqrt[3]{\sin k} \cdot \frac{\color{blue}{t}}{\sqrt[3]{\ell \cdot \ell}}\right)}^{3} \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
      11. cbrt-prod83.8%

        \[\leadsto \frac{2}{\left({\left(\sqrt[3]{\sin k} \cdot \frac{t}{\color{blue}{\sqrt[3]{\ell} \cdot \sqrt[3]{\ell}}}\right)}^{3} \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
      12. pow283.8%

        \[\leadsto \frac{2}{\left({\left(\sqrt[3]{\sin k} \cdot \frac{t}{\color{blue}{{\left(\sqrt[3]{\ell}\right)}^{2}}}\right)}^{3} \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
    6. Applied egg-rr83.8%

      \[\leadsto \frac{2}{\left(\color{blue}{{\left(\sqrt[3]{\sin k} \cdot \frac{t}{{\left(\sqrt[3]{\ell}\right)}^{2}}\right)}^{3}} \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
  3. Recombined 4 regimes into one program.
  4. Final simplification77.4%

    \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq 1.95 \cdot 10^{-60}:\\ \;\;\;\;\ell \cdot \left(2 \cdot \left(\left(\ell \cdot {k}^{-2}\right) \cdot \frac{\cos k}{t \cdot {\sin k}^{2}}\right)\right)\\ \mathbf{elif}\;t \leq 1.32 \cdot 10^{+200}:\\ \;\;\;\;\frac{2}{\left(1 + \left({\left(\frac{k}{t}\right)}^{2} + 1\right)\right) \cdot \left(\frac{{t}^{1.5}}{\ell} \cdot \left(\tan k \cdot \frac{\sin k \cdot {t}^{1.5}}{\ell}\right)\right)}\\ \mathbf{elif}\;t \leq 8 \cdot 10^{+271}:\\ \;\;\;\;\frac{2}{\left(1 + \left({\left(\frac{k}{t}\right)}^{2} + 1\right)\right) \cdot {\left(\sqrt[3]{\tan k} \cdot \left(\sqrt[3]{\sin k} \cdot \left(t \cdot \sqrt[3]{{\ell}^{-2}}\right)\right)\right)}^{3}}\\ \mathbf{else}:\\ \;\;\;\;\frac{2}{\left(1 + \left({\left(\frac{k}{t}\right)}^{2} + 1\right)\right) \cdot \left(\tan k \cdot {\left(\sqrt[3]{\sin k} \cdot \frac{t}{{\left(\sqrt[3]{\ell}\right)}^{2}}\right)}^{3}\right)}\\ \end{array} \]
  5. Add Preprocessing

Alternative 4: 88.5% accurate, 0.5× speedup?

\[\begin{array}{l} t\_m = \left|t\right| \\ t\_s = \mathsf{copysign}\left(1, t\right) \\ t\_s \cdot \begin{array}{l} \mathbf{if}\;t\_m \leq 4.5 \cdot 10^{-55}:\\ \;\;\;\;\ell \cdot \left(2 \cdot \left(\left(\ell \cdot {k}^{-2}\right) \cdot \frac{\cos k}{t\_m \cdot {\sin k}^{2}}\right)\right)\\ \mathbf{else}:\\ \;\;\;\;\frac{2}{{\left(\sqrt[3]{\tan k} \cdot \left(\sqrt[3]{\sin k} \cdot \left(t\_m \cdot {\left(\sqrt[3]{\ell}\right)}^{-2}\right)\right)\right)}^{3} \cdot \left(1 + \left({\left(\frac{k}{t\_m}\right)}^{2} + 1\right)\right)}\\ \end{array} \end{array} \]
t\_m = (fabs.f64 t)
t\_s = (copysign.f64 #s(literal 1 binary64) t)
(FPCore (t_s t_m l k)
 :precision binary64
 (*
  t_s
  (if (<= t_m 4.5e-55)
    (* l (* 2.0 (* (* l (pow k -2.0)) (/ (cos k) (* t_m (pow (sin k) 2.0))))))
    (/
     2.0
     (*
      (pow
       (* (cbrt (tan k)) (* (cbrt (sin k)) (* t_m (pow (cbrt l) -2.0))))
       3.0)
      (+ 1.0 (+ (pow (/ k t_m) 2.0) 1.0)))))))
t\_m = fabs(t);
t\_s = copysign(1.0, t);
double code(double t_s, double t_m, double l, double k) {
	double tmp;
	if (t_m <= 4.5e-55) {
		tmp = l * (2.0 * ((l * pow(k, -2.0)) * (cos(k) / (t_m * pow(sin(k), 2.0)))));
	} else {
		tmp = 2.0 / (pow((cbrt(tan(k)) * (cbrt(sin(k)) * (t_m * pow(cbrt(l), -2.0)))), 3.0) * (1.0 + (pow((k / t_m), 2.0) + 1.0)));
	}
	return t_s * tmp;
}
t\_m = Math.abs(t);
t\_s = Math.copySign(1.0, t);
public static double code(double t_s, double t_m, double l, double k) {
	double tmp;
	if (t_m <= 4.5e-55) {
		tmp = l * (2.0 * ((l * Math.pow(k, -2.0)) * (Math.cos(k) / (t_m * Math.pow(Math.sin(k), 2.0)))));
	} else {
		tmp = 2.0 / (Math.pow((Math.cbrt(Math.tan(k)) * (Math.cbrt(Math.sin(k)) * (t_m * Math.pow(Math.cbrt(l), -2.0)))), 3.0) * (1.0 + (Math.pow((k / t_m), 2.0) + 1.0)));
	}
	return t_s * tmp;
}
t\_m = abs(t)
t\_s = copysign(1.0, t)
function code(t_s, t_m, l, k)
	tmp = 0.0
	if (t_m <= 4.5e-55)
		tmp = Float64(l * Float64(2.0 * Float64(Float64(l * (k ^ -2.0)) * Float64(cos(k) / Float64(t_m * (sin(k) ^ 2.0))))));
	else
		tmp = Float64(2.0 / Float64((Float64(cbrt(tan(k)) * Float64(cbrt(sin(k)) * Float64(t_m * (cbrt(l) ^ -2.0)))) ^ 3.0) * Float64(1.0 + Float64((Float64(k / t_m) ^ 2.0) + 1.0))));
	end
	return Float64(t_s * tmp)
end
t\_m = N[Abs[t], $MachinePrecision]
t\_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[t]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
code[t$95$s_, t$95$m_, l_, k_] := N[(t$95$s * If[LessEqual[t$95$m, 4.5e-55], N[(l * N[(2.0 * N[(N[(l * N[Power[k, -2.0], $MachinePrecision]), $MachinePrecision] * N[(N[Cos[k], $MachinePrecision] / N[(t$95$m * N[Power[N[Sin[k], $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(2.0 / N[(N[Power[N[(N[Power[N[Tan[k], $MachinePrecision], 1/3], $MachinePrecision] * N[(N[Power[N[Sin[k], $MachinePrecision], 1/3], $MachinePrecision] * N[(t$95$m * N[Power[N[Power[l, 1/3], $MachinePrecision], -2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 3.0], $MachinePrecision] * N[(1.0 + N[(N[Power[N[(k / t$95$m), $MachinePrecision], 2.0], $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]), $MachinePrecision]
\begin{array}{l}
t\_m = \left|t\right|
\\
t\_s = \mathsf{copysign}\left(1, t\right)

\\
t\_s \cdot \begin{array}{l}
\mathbf{if}\;t\_m \leq 4.5 \cdot 10^{-55}:\\
\;\;\;\;\ell \cdot \left(2 \cdot \left(\left(\ell \cdot {k}^{-2}\right) \cdot \frac{\cos k}{t\_m \cdot {\sin k}^{2}}\right)\right)\\

\mathbf{else}:\\
\;\;\;\;\frac{2}{{\left(\sqrt[3]{\tan k} \cdot \left(\sqrt[3]{\sin k} \cdot \left(t\_m \cdot {\left(\sqrt[3]{\ell}\right)}^{-2}\right)\right)\right)}^{3} \cdot \left(1 + \left({\left(\frac{k}{t\_m}\right)}^{2} + 1\right)\right)}\\


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

    1. Initial program 51.2%

      \[\frac{2}{\left(\left(\frac{{t}^{3}}{\ell \cdot \ell} \cdot \sin k\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
    2. Simplified49.3%

      \[\leadsto \color{blue}{\frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}}}{{t}^{3} \cdot \left(\sin k \cdot \tan k\right)} \cdot \left(\ell \cdot \ell\right)} \]
    3. Add Preprocessing
    4. Step-by-step derivation
      1. associate-*r*57.1%

        \[\leadsto \color{blue}{\left(\frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}}}{{t}^{3} \cdot \left(\sin k \cdot \tan k\right)} \cdot \ell\right) \cdot \ell} \]
      2. associate-*l/55.8%

        \[\leadsto \color{blue}{\frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{{t}^{3} \cdot \left(\sin k \cdot \tan k\right)}} \cdot \ell \]
    5. Applied egg-rr55.8%

      \[\leadsto \color{blue}{\frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{{t}^{3} \cdot \left(\sin k \cdot \tan k\right)} \cdot \ell} \]
    6. Taylor expanded in k around inf 71.0%

      \[\leadsto \color{blue}{\left(2 \cdot \frac{\ell \cdot \cos k}{{k}^{2} \cdot \left(t \cdot {\sin k}^{2}\right)}\right)} \cdot \ell \]
    7. Step-by-step derivation
      1. times-frac71.6%

        \[\leadsto \left(2 \cdot \color{blue}{\left(\frac{\ell}{{k}^{2}} \cdot \frac{\cos k}{t \cdot {\sin k}^{2}}\right)}\right) \cdot \ell \]
    8. Simplified71.6%

      \[\leadsto \color{blue}{\left(2 \cdot \left(\frac{\ell}{{k}^{2}} \cdot \frac{\cos k}{t \cdot {\sin k}^{2}}\right)\right)} \cdot \ell \]
    9. Step-by-step derivation
      1. *-un-lft-identity71.6%

        \[\leadsto \left(2 \cdot \left(\color{blue}{\left(1 \cdot \frac{\ell}{{k}^{2}}\right)} \cdot \frac{\cos k}{t \cdot {\sin k}^{2}}\right)\right) \cdot \ell \]
      2. div-inv71.6%

        \[\leadsto \left(2 \cdot \left(\left(1 \cdot \color{blue}{\left(\ell \cdot \frac{1}{{k}^{2}}\right)}\right) \cdot \frac{\cos k}{t \cdot {\sin k}^{2}}\right)\right) \cdot \ell \]
      3. pow-flip71.8%

        \[\leadsto \left(2 \cdot \left(\left(1 \cdot \left(\ell \cdot \color{blue}{{k}^{\left(-2\right)}}\right)\right) \cdot \frac{\cos k}{t \cdot {\sin k}^{2}}\right)\right) \cdot \ell \]
      4. metadata-eval71.8%

        \[\leadsto \left(2 \cdot \left(\left(1 \cdot \left(\ell \cdot {k}^{\color{blue}{-2}}\right)\right) \cdot \frac{\cos k}{t \cdot {\sin k}^{2}}\right)\right) \cdot \ell \]
    10. Applied egg-rr71.8%

      \[\leadsto \left(2 \cdot \left(\color{blue}{\left(1 \cdot \left(\ell \cdot {k}^{-2}\right)\right)} \cdot \frac{\cos k}{t \cdot {\sin k}^{2}}\right)\right) \cdot \ell \]
    11. Step-by-step derivation
      1. *-lft-identity71.8%

        \[\leadsto \left(2 \cdot \left(\color{blue}{\left(\ell \cdot {k}^{-2}\right)} \cdot \frac{\cos k}{t \cdot {\sin k}^{2}}\right)\right) \cdot \ell \]
    12. Simplified71.8%

      \[\leadsto \left(2 \cdot \left(\color{blue}{\left(\ell \cdot {k}^{-2}\right)} \cdot \frac{\cos k}{t \cdot {\sin k}^{2}}\right)\right) \cdot \ell \]

    if 4.4999999999999997e-55 < t

    1. Initial program 64.7%

      \[\frac{2}{\left(\left(\frac{{t}^{3}}{\ell \cdot \ell} \cdot \sin k\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
    2. Add Preprocessing
    3. Step-by-step derivation
      1. unpow364.7%

        \[\leadsto \frac{2}{\left(\left(\frac{\color{blue}{\left(t \cdot t\right) \cdot t}}{\ell \cdot \ell} \cdot \sin k\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
      2. times-frac74.7%

        \[\leadsto \frac{2}{\left(\left(\color{blue}{\left(\frac{t \cdot t}{\ell} \cdot \frac{t}{\ell}\right)} \cdot \sin k\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
      3. pow274.7%

        \[\leadsto \frac{2}{\left(\left(\left(\frac{\color{blue}{{t}^{2}}}{\ell} \cdot \frac{t}{\ell}\right) \cdot \sin k\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
    4. Applied egg-rr74.7%

      \[\leadsto \frac{2}{\left(\left(\color{blue}{\left(\frac{{t}^{2}}{\ell} \cdot \frac{t}{\ell}\right)} \cdot \sin k\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
    5. Step-by-step derivation
      1. add-cube-cbrt74.6%

        \[\leadsto \frac{2}{\left(\color{blue}{\left(\left(\sqrt[3]{\left(\frac{{t}^{2}}{\ell} \cdot \frac{t}{\ell}\right) \cdot \sin k} \cdot \sqrt[3]{\left(\frac{{t}^{2}}{\ell} \cdot \frac{t}{\ell}\right) \cdot \sin k}\right) \cdot \sqrt[3]{\left(\frac{{t}^{2}}{\ell} \cdot \frac{t}{\ell}\right) \cdot \sin k}\right)} \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
    6. Applied egg-rr83.7%

      \[\leadsto \frac{2}{\left(\color{blue}{\left({\left(\sqrt[3]{\sin k} \cdot \frac{t}{{\left(\sqrt[3]{\ell}\right)}^{2}}\right)}^{2} \cdot \left(\sqrt[3]{\sin k} \cdot \frac{t}{{\left(\sqrt[3]{\ell}\right)}^{2}}\right)\right)} \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
    7. Step-by-step derivation
      1. unpow283.7%

        \[\leadsto \frac{2}{\left(\left(\color{blue}{\left(\left(\sqrt[3]{\sin k} \cdot \frac{t}{{\left(\sqrt[3]{\ell}\right)}^{2}}\right) \cdot \left(\sqrt[3]{\sin k} \cdot \frac{t}{{\left(\sqrt[3]{\ell}\right)}^{2}}\right)\right)} \cdot \left(\sqrt[3]{\sin k} \cdot \frac{t}{{\left(\sqrt[3]{\ell}\right)}^{2}}\right)\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
      2. unpow383.8%

        \[\leadsto \frac{2}{\left(\color{blue}{{\left(\sqrt[3]{\sin k} \cdot \frac{t}{{\left(\sqrt[3]{\ell}\right)}^{2}}\right)}^{3}} \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
      3. cube-prod78.9%

        \[\leadsto \frac{2}{\left(\color{blue}{\left({\left(\sqrt[3]{\sin k}\right)}^{3} \cdot {\left(\frac{t}{{\left(\sqrt[3]{\ell}\right)}^{2}}\right)}^{3}\right)} \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
      4. rem-cube-cbrt79.0%

        \[\leadsto \frac{2}{\left(\left(\color{blue}{\sin k} \cdot {\left(\frac{t}{{\left(\sqrt[3]{\ell}\right)}^{2}}\right)}^{3}\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
    8. Simplified79.0%

      \[\leadsto \frac{2}{\left(\color{blue}{\left(\sin k \cdot {\left(\frac{t}{{\left(\sqrt[3]{\ell}\right)}^{2}}\right)}^{3}\right)} \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
    9. Step-by-step derivation
      1. add-cube-cbrt78.9%

        \[\leadsto \frac{2}{\color{blue}{\left(\left(\sqrt[3]{\left(\sin k \cdot {\left(\frac{t}{{\left(\sqrt[3]{\ell}\right)}^{2}}\right)}^{3}\right) \cdot \tan k} \cdot \sqrt[3]{\left(\sin k \cdot {\left(\frac{t}{{\left(\sqrt[3]{\ell}\right)}^{2}}\right)}^{3}\right) \cdot \tan k}\right) \cdot \sqrt[3]{\left(\sin k \cdot {\left(\frac{t}{{\left(\sqrt[3]{\ell}\right)}^{2}}\right)}^{3}\right) \cdot \tan k}\right)} \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
      2. pow378.9%

        \[\leadsto \frac{2}{\color{blue}{{\left(\sqrt[3]{\left(\sin k \cdot {\left(\frac{t}{{\left(\sqrt[3]{\ell}\right)}^{2}}\right)}^{3}\right) \cdot \tan k}\right)}^{3}} \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
      3. cbrt-prod79.0%

        \[\leadsto \frac{2}{{\color{blue}{\left(\sqrt[3]{\sin k \cdot {\left(\frac{t}{{\left(\sqrt[3]{\ell}\right)}^{2}}\right)}^{3}} \cdot \sqrt[3]{\tan k}\right)}}^{3} \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
      4. cbrt-prod78.9%

        \[\leadsto \frac{2}{{\left(\color{blue}{\left(\sqrt[3]{\sin k} \cdot \sqrt[3]{{\left(\frac{t}{{\left(\sqrt[3]{\ell}\right)}^{2}}\right)}^{3}}\right)} \cdot \sqrt[3]{\tan k}\right)}^{3} \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
      5. unpow378.9%

        \[\leadsto \frac{2}{{\left(\left(\sqrt[3]{\sin k} \cdot \sqrt[3]{\color{blue}{\left(\frac{t}{{\left(\sqrt[3]{\ell}\right)}^{2}} \cdot \frac{t}{{\left(\sqrt[3]{\ell}\right)}^{2}}\right) \cdot \frac{t}{{\left(\sqrt[3]{\ell}\right)}^{2}}}}\right) \cdot \sqrt[3]{\tan k}\right)}^{3} \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
      6. add-cbrt-cube94.8%

        \[\leadsto \frac{2}{{\left(\left(\sqrt[3]{\sin k} \cdot \color{blue}{\frac{t}{{\left(\sqrt[3]{\ell}\right)}^{2}}}\right) \cdot \sqrt[3]{\tan k}\right)}^{3} \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
      7. div-inv94.8%

        \[\leadsto \frac{2}{{\left(\left(\sqrt[3]{\sin k} \cdot \color{blue}{\left(t \cdot \frac{1}{{\left(\sqrt[3]{\ell}\right)}^{2}}\right)}\right) \cdot \sqrt[3]{\tan k}\right)}^{3} \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
      8. pow-flip94.9%

        \[\leadsto \frac{2}{{\left(\left(\sqrt[3]{\sin k} \cdot \left(t \cdot \color{blue}{{\left(\sqrt[3]{\ell}\right)}^{\left(-2\right)}}\right)\right) \cdot \sqrt[3]{\tan k}\right)}^{3} \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
      9. metadata-eval94.9%

        \[\leadsto \frac{2}{{\left(\left(\sqrt[3]{\sin k} \cdot \left(t \cdot {\left(\sqrt[3]{\ell}\right)}^{\color{blue}{-2}}\right)\right) \cdot \sqrt[3]{\tan k}\right)}^{3} \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
    10. Applied egg-rr94.9%

      \[\leadsto \frac{2}{\color{blue}{{\left(\left(\sqrt[3]{\sin k} \cdot \left(t \cdot {\left(\sqrt[3]{\ell}\right)}^{-2}\right)\right) \cdot \sqrt[3]{\tan k}\right)}^{3}} \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
  3. Recombined 2 regimes into one program.
  4. Final simplification79.0%

    \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq 4.5 \cdot 10^{-55}:\\ \;\;\;\;\ell \cdot \left(2 \cdot \left(\left(\ell \cdot {k}^{-2}\right) \cdot \frac{\cos k}{t \cdot {\sin k}^{2}}\right)\right)\\ \mathbf{else}:\\ \;\;\;\;\frac{2}{{\left(\sqrt[3]{\tan k} \cdot \left(\sqrt[3]{\sin k} \cdot \left(t \cdot {\left(\sqrt[3]{\ell}\right)}^{-2}\right)\right)\right)}^{3} \cdot \left(1 + \left({\left(\frac{k}{t}\right)}^{2} + 1\right)\right)}\\ \end{array} \]
  5. Add Preprocessing

Alternative 5: 85.8% accurate, 0.6× speedup?

\[\begin{array}{l} t\_m = \left|t\right| \\ t\_s = \mathsf{copysign}\left(1, t\right) \\ t\_s \cdot \begin{array}{l} \mathbf{if}\;t\_m \leq 6.5 \cdot 10^{-54}:\\ \;\;\;\;\ell \cdot \left(2 \cdot \left(\left(\ell \cdot {k}^{-2}\right) \cdot \frac{\cos k}{t\_m \cdot {\sin k}^{2}}\right)\right)\\ \mathbf{else}:\\ \;\;\;\;\frac{2}{\left(1 + \left({\left(\frac{k}{t\_m}\right)}^{2} + 1\right)\right) \cdot \left(\tan k \cdot {\left(\sqrt[3]{\sin k} \cdot \frac{t\_m}{{\left(\sqrt[3]{\ell}\right)}^{2}}\right)}^{3}\right)}\\ \end{array} \end{array} \]
t\_m = (fabs.f64 t)
t\_s = (copysign.f64 #s(literal 1 binary64) t)
(FPCore (t_s t_m l k)
 :precision binary64
 (*
  t_s
  (if (<= t_m 6.5e-54)
    (* l (* 2.0 (* (* l (pow k -2.0)) (/ (cos k) (* t_m (pow (sin k) 2.0))))))
    (/
     2.0
     (*
      (+ 1.0 (+ (pow (/ k t_m) 2.0) 1.0))
      (* (tan k) (pow (* (cbrt (sin k)) (/ t_m (pow (cbrt l) 2.0))) 3.0)))))))
t\_m = fabs(t);
t\_s = copysign(1.0, t);
double code(double t_s, double t_m, double l, double k) {
	double tmp;
	if (t_m <= 6.5e-54) {
		tmp = l * (2.0 * ((l * pow(k, -2.0)) * (cos(k) / (t_m * pow(sin(k), 2.0)))));
	} else {
		tmp = 2.0 / ((1.0 + (pow((k / t_m), 2.0) + 1.0)) * (tan(k) * pow((cbrt(sin(k)) * (t_m / pow(cbrt(l), 2.0))), 3.0)));
	}
	return t_s * tmp;
}
t\_m = Math.abs(t);
t\_s = Math.copySign(1.0, t);
public static double code(double t_s, double t_m, double l, double k) {
	double tmp;
	if (t_m <= 6.5e-54) {
		tmp = l * (2.0 * ((l * Math.pow(k, -2.0)) * (Math.cos(k) / (t_m * Math.pow(Math.sin(k), 2.0)))));
	} else {
		tmp = 2.0 / ((1.0 + (Math.pow((k / t_m), 2.0) + 1.0)) * (Math.tan(k) * Math.pow((Math.cbrt(Math.sin(k)) * (t_m / Math.pow(Math.cbrt(l), 2.0))), 3.0)));
	}
	return t_s * tmp;
}
t\_m = abs(t)
t\_s = copysign(1.0, t)
function code(t_s, t_m, l, k)
	tmp = 0.0
	if (t_m <= 6.5e-54)
		tmp = Float64(l * Float64(2.0 * Float64(Float64(l * (k ^ -2.0)) * Float64(cos(k) / Float64(t_m * (sin(k) ^ 2.0))))));
	else
		tmp = Float64(2.0 / Float64(Float64(1.0 + Float64((Float64(k / t_m) ^ 2.0) + 1.0)) * Float64(tan(k) * (Float64(cbrt(sin(k)) * Float64(t_m / (cbrt(l) ^ 2.0))) ^ 3.0))));
	end
	return Float64(t_s * tmp)
end
t\_m = N[Abs[t], $MachinePrecision]
t\_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[t]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
code[t$95$s_, t$95$m_, l_, k_] := N[(t$95$s * If[LessEqual[t$95$m, 6.5e-54], N[(l * N[(2.0 * N[(N[(l * N[Power[k, -2.0], $MachinePrecision]), $MachinePrecision] * N[(N[Cos[k], $MachinePrecision] / N[(t$95$m * N[Power[N[Sin[k], $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(2.0 / N[(N[(1.0 + N[(N[Power[N[(k / t$95$m), $MachinePrecision], 2.0], $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision] * N[(N[Tan[k], $MachinePrecision] * N[Power[N[(N[Power[N[Sin[k], $MachinePrecision], 1/3], $MachinePrecision] * N[(t$95$m / N[Power[N[Power[l, 1/3], $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 3.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]), $MachinePrecision]
\begin{array}{l}
t\_m = \left|t\right|
\\
t\_s = \mathsf{copysign}\left(1, t\right)

\\
t\_s \cdot \begin{array}{l}
\mathbf{if}\;t\_m \leq 6.5 \cdot 10^{-54}:\\
\;\;\;\;\ell \cdot \left(2 \cdot \left(\left(\ell \cdot {k}^{-2}\right) \cdot \frac{\cos k}{t\_m \cdot {\sin k}^{2}}\right)\right)\\

\mathbf{else}:\\
\;\;\;\;\frac{2}{\left(1 + \left({\left(\frac{k}{t\_m}\right)}^{2} + 1\right)\right) \cdot \left(\tan k \cdot {\left(\sqrt[3]{\sin k} \cdot \frac{t\_m}{{\left(\sqrt[3]{\ell}\right)}^{2}}\right)}^{3}\right)}\\


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

    1. Initial program 51.2%

      \[\frac{2}{\left(\left(\frac{{t}^{3}}{\ell \cdot \ell} \cdot \sin k\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
    2. Simplified49.3%

      \[\leadsto \color{blue}{\frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}}}{{t}^{3} \cdot \left(\sin k \cdot \tan k\right)} \cdot \left(\ell \cdot \ell\right)} \]
    3. Add Preprocessing
    4. Step-by-step derivation
      1. associate-*r*57.1%

        \[\leadsto \color{blue}{\left(\frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}}}{{t}^{3} \cdot \left(\sin k \cdot \tan k\right)} \cdot \ell\right) \cdot \ell} \]
      2. associate-*l/55.8%

        \[\leadsto \color{blue}{\frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{{t}^{3} \cdot \left(\sin k \cdot \tan k\right)}} \cdot \ell \]
    5. Applied egg-rr55.8%

      \[\leadsto \color{blue}{\frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{{t}^{3} \cdot \left(\sin k \cdot \tan k\right)} \cdot \ell} \]
    6. Taylor expanded in k around inf 71.0%

      \[\leadsto \color{blue}{\left(2 \cdot \frac{\ell \cdot \cos k}{{k}^{2} \cdot \left(t \cdot {\sin k}^{2}\right)}\right)} \cdot \ell \]
    7. Step-by-step derivation
      1. times-frac71.6%

        \[\leadsto \left(2 \cdot \color{blue}{\left(\frac{\ell}{{k}^{2}} \cdot \frac{\cos k}{t \cdot {\sin k}^{2}}\right)}\right) \cdot \ell \]
    8. Simplified71.6%

      \[\leadsto \color{blue}{\left(2 \cdot \left(\frac{\ell}{{k}^{2}} \cdot \frac{\cos k}{t \cdot {\sin k}^{2}}\right)\right)} \cdot \ell \]
    9. Step-by-step derivation
      1. *-un-lft-identity71.6%

        \[\leadsto \left(2 \cdot \left(\color{blue}{\left(1 \cdot \frac{\ell}{{k}^{2}}\right)} \cdot \frac{\cos k}{t \cdot {\sin k}^{2}}\right)\right) \cdot \ell \]
      2. div-inv71.6%

        \[\leadsto \left(2 \cdot \left(\left(1 \cdot \color{blue}{\left(\ell \cdot \frac{1}{{k}^{2}}\right)}\right) \cdot \frac{\cos k}{t \cdot {\sin k}^{2}}\right)\right) \cdot \ell \]
      3. pow-flip71.8%

        \[\leadsto \left(2 \cdot \left(\left(1 \cdot \left(\ell \cdot \color{blue}{{k}^{\left(-2\right)}}\right)\right) \cdot \frac{\cos k}{t \cdot {\sin k}^{2}}\right)\right) \cdot \ell \]
      4. metadata-eval71.8%

        \[\leadsto \left(2 \cdot \left(\left(1 \cdot \left(\ell \cdot {k}^{\color{blue}{-2}}\right)\right) \cdot \frac{\cos k}{t \cdot {\sin k}^{2}}\right)\right) \cdot \ell \]
    10. Applied egg-rr71.8%

      \[\leadsto \left(2 \cdot \left(\color{blue}{\left(1 \cdot \left(\ell \cdot {k}^{-2}\right)\right)} \cdot \frac{\cos k}{t \cdot {\sin k}^{2}}\right)\right) \cdot \ell \]
    11. Step-by-step derivation
      1. *-lft-identity71.8%

        \[\leadsto \left(2 \cdot \left(\color{blue}{\left(\ell \cdot {k}^{-2}\right)} \cdot \frac{\cos k}{t \cdot {\sin k}^{2}}\right)\right) \cdot \ell \]
    12. Simplified71.8%

      \[\leadsto \left(2 \cdot \left(\color{blue}{\left(\ell \cdot {k}^{-2}\right)} \cdot \frac{\cos k}{t \cdot {\sin k}^{2}}\right)\right) \cdot \ell \]

    if 6.49999999999999991e-54 < t

    1. Initial program 64.7%

      \[\frac{2}{\left(\left(\frac{{t}^{3}}{\ell \cdot \ell} \cdot \sin k\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
    2. Add Preprocessing
    3. Step-by-step derivation
      1. unpow364.7%

        \[\leadsto \frac{2}{\left(\left(\frac{\color{blue}{\left(t \cdot t\right) \cdot t}}{\ell \cdot \ell} \cdot \sin k\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
      2. times-frac74.7%

        \[\leadsto \frac{2}{\left(\left(\color{blue}{\left(\frac{t \cdot t}{\ell} \cdot \frac{t}{\ell}\right)} \cdot \sin k\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
      3. pow274.7%

        \[\leadsto \frac{2}{\left(\left(\left(\frac{\color{blue}{{t}^{2}}}{\ell} \cdot \frac{t}{\ell}\right) \cdot \sin k\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
    4. Applied egg-rr74.7%

      \[\leadsto \frac{2}{\left(\left(\color{blue}{\left(\frac{{t}^{2}}{\ell} \cdot \frac{t}{\ell}\right)} \cdot \sin k\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
    5. Step-by-step derivation
      1. add-cube-cbrt74.6%

        \[\leadsto \frac{2}{\left(\color{blue}{\left(\left(\sqrt[3]{\left(\frac{{t}^{2}}{\ell} \cdot \frac{t}{\ell}\right) \cdot \sin k} \cdot \sqrt[3]{\left(\frac{{t}^{2}}{\ell} \cdot \frac{t}{\ell}\right) \cdot \sin k}\right) \cdot \sqrt[3]{\left(\frac{{t}^{2}}{\ell} \cdot \frac{t}{\ell}\right) \cdot \sin k}\right)} \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
      2. pow374.5%

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

        \[\leadsto \frac{2}{\left({\left(\sqrt[3]{\color{blue}{\sin k \cdot \left(\frac{{t}^{2}}{\ell} \cdot \frac{t}{\ell}\right)}}\right)}^{3} \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
      4. cbrt-prod74.5%

        \[\leadsto \frac{2}{\left({\color{blue}{\left(\sqrt[3]{\sin k} \cdot \sqrt[3]{\frac{{t}^{2}}{\ell} \cdot \frac{t}{\ell}}\right)}}^{3} \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
      5. frac-times64.6%

        \[\leadsto \frac{2}{\left({\left(\sqrt[3]{\sin k} \cdot \sqrt[3]{\color{blue}{\frac{{t}^{2} \cdot t}{\ell \cdot \ell}}}\right)}^{3} \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
      6. unpow264.6%

        \[\leadsto \frac{2}{\left({\left(\sqrt[3]{\sin k} \cdot \sqrt[3]{\frac{\color{blue}{\left(t \cdot t\right)} \cdot t}{\ell \cdot \ell}}\right)}^{3} \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
      7. unpow364.6%

        \[\leadsto \frac{2}{\left({\left(\sqrt[3]{\sin k} \cdot \sqrt[3]{\frac{\color{blue}{{t}^{3}}}{\ell \cdot \ell}}\right)}^{3} \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
      8. cbrt-div64.6%

        \[\leadsto \frac{2}{\left({\left(\sqrt[3]{\sin k} \cdot \color{blue}{\frac{\sqrt[3]{{t}^{3}}}{\sqrt[3]{\ell \cdot \ell}}}\right)}^{3} \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
      9. unpow364.6%

        \[\leadsto \frac{2}{\left({\left(\sqrt[3]{\sin k} \cdot \frac{\sqrt[3]{\color{blue}{\left(t \cdot t\right) \cdot t}}}{\sqrt[3]{\ell \cdot \ell}}\right)}^{3} \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
      10. add-cbrt-cube70.8%

        \[\leadsto \frac{2}{\left({\left(\sqrt[3]{\sin k} \cdot \frac{\color{blue}{t}}{\sqrt[3]{\ell \cdot \ell}}\right)}^{3} \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
      11. cbrt-prod83.8%

        \[\leadsto \frac{2}{\left({\left(\sqrt[3]{\sin k} \cdot \frac{t}{\color{blue}{\sqrt[3]{\ell} \cdot \sqrt[3]{\ell}}}\right)}^{3} \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
      12. pow283.8%

        \[\leadsto \frac{2}{\left({\left(\sqrt[3]{\sin k} \cdot \frac{t}{\color{blue}{{\left(\sqrt[3]{\ell}\right)}^{2}}}\right)}^{3} \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
    6. Applied egg-rr83.8%

      \[\leadsto \frac{2}{\left(\color{blue}{{\left(\sqrt[3]{\sin k} \cdot \frac{t}{{\left(\sqrt[3]{\ell}\right)}^{2}}\right)}^{3}} \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
  3. Recombined 2 regimes into one program.
  4. Final simplification75.5%

    \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq 6.5 \cdot 10^{-54}:\\ \;\;\;\;\ell \cdot \left(2 \cdot \left(\left(\ell \cdot {k}^{-2}\right) \cdot \frac{\cos k}{t \cdot {\sin k}^{2}}\right)\right)\\ \mathbf{else}:\\ \;\;\;\;\frac{2}{\left(1 + \left({\left(\frac{k}{t}\right)}^{2} + 1\right)\right) \cdot \left(\tan k \cdot {\left(\sqrt[3]{\sin k} \cdot \frac{t}{{\left(\sqrt[3]{\ell}\right)}^{2}}\right)}^{3}\right)}\\ \end{array} \]
  5. Add Preprocessing

Alternative 6: 77.3% accurate, 0.7× speedup?

\[\begin{array}{l} t\_m = \left|t\right| \\ t\_s = \mathsf{copysign}\left(1, t\right) \\ \begin{array}{l} t_2 := 1 + \left({\left(\frac{k}{t\_m}\right)}^{2} + 1\right)\\ t\_s \cdot \begin{array}{l} \mathbf{if}\;t\_m \leq 2.05 \cdot 10^{-60}:\\ \;\;\;\;\ell \cdot \left(2 \cdot \left(\left(\ell \cdot {k}^{-2}\right) \cdot \frac{\cos k}{t\_m \cdot {\sin k}^{2}}\right)\right)\\ \mathbf{elif}\;t\_m \leq 8 \cdot 10^{+199}:\\ \;\;\;\;\frac{2}{t\_2 \cdot \left(\frac{{t\_m}^{1.5}}{\ell} \cdot \left(\tan k \cdot \frac{\sin k \cdot {t\_m}^{1.5}}{\ell}\right)\right)}\\ \mathbf{else}:\\ \;\;\;\;\frac{2}{t\_2 \cdot \left(\tan k \cdot {\left(\sqrt[3]{\sin k} \cdot \left(t\_m \cdot {\ell}^{-0.6666666666666666}\right)\right)}^{3}\right)}\\ \end{array} \end{array} \end{array} \]
t\_m = (fabs.f64 t)
t\_s = (copysign.f64 #s(literal 1 binary64) t)
(FPCore (t_s t_m l k)
 :precision binary64
 (let* ((t_2 (+ 1.0 (+ (pow (/ k t_m) 2.0) 1.0))))
   (*
    t_s
    (if (<= t_m 2.05e-60)
      (*
       l
       (* 2.0 (* (* l (pow k -2.0)) (/ (cos k) (* t_m (pow (sin k) 2.0))))))
      (if (<= t_m 8e+199)
        (/
         2.0
         (*
          t_2
          (* (/ (pow t_m 1.5) l) (* (tan k) (/ (* (sin k) (pow t_m 1.5)) l)))))
        (/
         2.0
         (*
          t_2
          (*
           (tan k)
           (pow
            (* (cbrt (sin k)) (* t_m (pow l -0.6666666666666666)))
            3.0)))))))))
t\_m = fabs(t);
t\_s = copysign(1.0, t);
double code(double t_s, double t_m, double l, double k) {
	double t_2 = 1.0 + (pow((k / t_m), 2.0) + 1.0);
	double tmp;
	if (t_m <= 2.05e-60) {
		tmp = l * (2.0 * ((l * pow(k, -2.0)) * (cos(k) / (t_m * pow(sin(k), 2.0)))));
	} else if (t_m <= 8e+199) {
		tmp = 2.0 / (t_2 * ((pow(t_m, 1.5) / l) * (tan(k) * ((sin(k) * pow(t_m, 1.5)) / l))));
	} else {
		tmp = 2.0 / (t_2 * (tan(k) * pow((cbrt(sin(k)) * (t_m * pow(l, -0.6666666666666666))), 3.0)));
	}
	return t_s * tmp;
}
t\_m = Math.abs(t);
t\_s = Math.copySign(1.0, t);
public static double code(double t_s, double t_m, double l, double k) {
	double t_2 = 1.0 + (Math.pow((k / t_m), 2.0) + 1.0);
	double tmp;
	if (t_m <= 2.05e-60) {
		tmp = l * (2.0 * ((l * Math.pow(k, -2.0)) * (Math.cos(k) / (t_m * Math.pow(Math.sin(k), 2.0)))));
	} else if (t_m <= 8e+199) {
		tmp = 2.0 / (t_2 * ((Math.pow(t_m, 1.5) / l) * (Math.tan(k) * ((Math.sin(k) * Math.pow(t_m, 1.5)) / l))));
	} else {
		tmp = 2.0 / (t_2 * (Math.tan(k) * Math.pow((Math.cbrt(Math.sin(k)) * (t_m * Math.pow(l, -0.6666666666666666))), 3.0)));
	}
	return t_s * tmp;
}
t\_m = abs(t)
t\_s = copysign(1.0, t)
function code(t_s, t_m, l, k)
	t_2 = Float64(1.0 + Float64((Float64(k / t_m) ^ 2.0) + 1.0))
	tmp = 0.0
	if (t_m <= 2.05e-60)
		tmp = Float64(l * Float64(2.0 * Float64(Float64(l * (k ^ -2.0)) * Float64(cos(k) / Float64(t_m * (sin(k) ^ 2.0))))));
	elseif (t_m <= 8e+199)
		tmp = Float64(2.0 / Float64(t_2 * Float64(Float64((t_m ^ 1.5) / l) * Float64(tan(k) * Float64(Float64(sin(k) * (t_m ^ 1.5)) / l)))));
	else
		tmp = Float64(2.0 / Float64(t_2 * Float64(tan(k) * (Float64(cbrt(sin(k)) * Float64(t_m * (l ^ -0.6666666666666666))) ^ 3.0))));
	end
	return Float64(t_s * tmp)
end
t\_m = N[Abs[t], $MachinePrecision]
t\_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[t]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
code[t$95$s_, t$95$m_, l_, k_] := Block[{t$95$2 = N[(1.0 + N[(N[Power[N[(k / t$95$m), $MachinePrecision], 2.0], $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]}, N[(t$95$s * If[LessEqual[t$95$m, 2.05e-60], N[(l * N[(2.0 * N[(N[(l * N[Power[k, -2.0], $MachinePrecision]), $MachinePrecision] * N[(N[Cos[k], $MachinePrecision] / N[(t$95$m * N[Power[N[Sin[k], $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$m, 8e+199], N[(2.0 / N[(t$95$2 * N[(N[(N[Power[t$95$m, 1.5], $MachinePrecision] / l), $MachinePrecision] * N[(N[Tan[k], $MachinePrecision] * N[(N[(N[Sin[k], $MachinePrecision] * N[Power[t$95$m, 1.5], $MachinePrecision]), $MachinePrecision] / l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(2.0 / N[(t$95$2 * N[(N[Tan[k], $MachinePrecision] * N[Power[N[(N[Power[N[Sin[k], $MachinePrecision], 1/3], $MachinePrecision] * N[(t$95$m * N[Power[l, -0.6666666666666666], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 3.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]), $MachinePrecision]]
\begin{array}{l}
t\_m = \left|t\right|
\\
t\_s = \mathsf{copysign}\left(1, t\right)

\\
\begin{array}{l}
t_2 := 1 + \left({\left(\frac{k}{t\_m}\right)}^{2} + 1\right)\\
t\_s \cdot \begin{array}{l}
\mathbf{if}\;t\_m \leq 2.05 \cdot 10^{-60}:\\
\;\;\;\;\ell \cdot \left(2 \cdot \left(\left(\ell \cdot {k}^{-2}\right) \cdot \frac{\cos k}{t\_m \cdot {\sin k}^{2}}\right)\right)\\

\mathbf{elif}\;t\_m \leq 8 \cdot 10^{+199}:\\
\;\;\;\;\frac{2}{t\_2 \cdot \left(\frac{{t\_m}^{1.5}}{\ell} \cdot \left(\tan k \cdot \frac{\sin k \cdot {t\_m}^{1.5}}{\ell}\right)\right)}\\

\mathbf{else}:\\
\;\;\;\;\frac{2}{t\_2 \cdot \left(\tan k \cdot {\left(\sqrt[3]{\sin k} \cdot \left(t\_m \cdot {\ell}^{-0.6666666666666666}\right)\right)}^{3}\right)}\\


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

    1. Initial program 50.7%

      \[\frac{2}{\left(\left(\frac{{t}^{3}}{\ell \cdot \ell} \cdot \sin k\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
    2. Simplified48.7%

      \[\leadsto \color{blue}{\frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}}}{{t}^{3} \cdot \left(\sin k \cdot \tan k\right)} \cdot \left(\ell \cdot \ell\right)} \]
    3. Add Preprocessing
    4. Step-by-step derivation
      1. associate-*r*56.6%

        \[\leadsto \color{blue}{\left(\frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}}}{{t}^{3} \cdot \left(\sin k \cdot \tan k\right)} \cdot \ell\right) \cdot \ell} \]
      2. associate-*l/55.3%

        \[\leadsto \color{blue}{\frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{{t}^{3} \cdot \left(\sin k \cdot \tan k\right)}} \cdot \ell \]
    5. Applied egg-rr55.3%

      \[\leadsto \color{blue}{\frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{{t}^{3} \cdot \left(\sin k \cdot \tan k\right)} \cdot \ell} \]
    6. Taylor expanded in k around inf 70.7%

      \[\leadsto \color{blue}{\left(2 \cdot \frac{\ell \cdot \cos k}{{k}^{2} \cdot \left(t \cdot {\sin k}^{2}\right)}\right)} \cdot \ell \]
    7. Step-by-step derivation
      1. times-frac71.2%

        \[\leadsto \left(2 \cdot \color{blue}{\left(\frac{\ell}{{k}^{2}} \cdot \frac{\cos k}{t \cdot {\sin k}^{2}}\right)}\right) \cdot \ell \]
    8. Simplified71.2%

      \[\leadsto \color{blue}{\left(2 \cdot \left(\frac{\ell}{{k}^{2}} \cdot \frac{\cos k}{t \cdot {\sin k}^{2}}\right)\right)} \cdot \ell \]
    9. Step-by-step derivation
      1. *-un-lft-identity71.2%

        \[\leadsto \left(2 \cdot \left(\color{blue}{\left(1 \cdot \frac{\ell}{{k}^{2}}\right)} \cdot \frac{\cos k}{t \cdot {\sin k}^{2}}\right)\right) \cdot \ell \]
      2. div-inv71.3%

        \[\leadsto \left(2 \cdot \left(\left(1 \cdot \color{blue}{\left(\ell \cdot \frac{1}{{k}^{2}}\right)}\right) \cdot \frac{\cos k}{t \cdot {\sin k}^{2}}\right)\right) \cdot \ell \]
      3. pow-flip71.5%

        \[\leadsto \left(2 \cdot \left(\left(1 \cdot \left(\ell \cdot \color{blue}{{k}^{\left(-2\right)}}\right)\right) \cdot \frac{\cos k}{t \cdot {\sin k}^{2}}\right)\right) \cdot \ell \]
      4. metadata-eval71.5%

        \[\leadsto \left(2 \cdot \left(\left(1 \cdot \left(\ell \cdot {k}^{\color{blue}{-2}}\right)\right) \cdot \frac{\cos k}{t \cdot {\sin k}^{2}}\right)\right) \cdot \ell \]
    10. Applied egg-rr71.5%

      \[\leadsto \left(2 \cdot \left(\color{blue}{\left(1 \cdot \left(\ell \cdot {k}^{-2}\right)\right)} \cdot \frac{\cos k}{t \cdot {\sin k}^{2}}\right)\right) \cdot \ell \]
    11. Step-by-step derivation
      1. *-lft-identity71.5%

        \[\leadsto \left(2 \cdot \left(\color{blue}{\left(\ell \cdot {k}^{-2}\right)} \cdot \frac{\cos k}{t \cdot {\sin k}^{2}}\right)\right) \cdot \ell \]
    12. Simplified71.5%

      \[\leadsto \left(2 \cdot \left(\color{blue}{\left(\ell \cdot {k}^{-2}\right)} \cdot \frac{\cos k}{t \cdot {\sin k}^{2}}\right)\right) \cdot \ell \]

    if 2.05000000000000006e-60 < t < 8.00000000000000078e199

    1. Initial program 64.3%

      \[\frac{2}{\left(\left(\frac{{t}^{3}}{\ell \cdot \ell} \cdot \sin k\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
    2. Add Preprocessing
    3. Step-by-step derivation
      1. add-sqr-sqrt64.3%

        \[\leadsto \frac{2}{\left(\left(\color{blue}{\left(\sqrt{\frac{{t}^{3}}{\ell \cdot \ell}} \cdot \sqrt{\frac{{t}^{3}}{\ell \cdot \ell}}\right)} \cdot \sin k\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
      2. associate-*l*64.3%

        \[\leadsto \frac{2}{\left(\color{blue}{\left(\sqrt{\frac{{t}^{3}}{\ell \cdot \ell}} \cdot \left(\sqrt{\frac{{t}^{3}}{\ell \cdot \ell}} \cdot \sin k\right)\right)} \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
      3. sqrt-div64.3%

        \[\leadsto \frac{2}{\left(\left(\color{blue}{\frac{\sqrt{{t}^{3}}}{\sqrt{\ell \cdot \ell}}} \cdot \left(\sqrt{\frac{{t}^{3}}{\ell \cdot \ell}} \cdot \sin k\right)\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
      4. sqrt-pow164.3%

        \[\leadsto \frac{2}{\left(\left(\frac{\color{blue}{{t}^{\left(\frac{3}{2}\right)}}}{\sqrt{\ell \cdot \ell}} \cdot \left(\sqrt{\frac{{t}^{3}}{\ell \cdot \ell}} \cdot \sin k\right)\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
      5. metadata-eval64.3%

        \[\leadsto \frac{2}{\left(\left(\frac{{t}^{\color{blue}{1.5}}}{\sqrt{\ell \cdot \ell}} \cdot \left(\sqrt{\frac{{t}^{3}}{\ell \cdot \ell}} \cdot \sin k\right)\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
      6. sqrt-prod32.3%

        \[\leadsto \frac{2}{\left(\left(\frac{{t}^{1.5}}{\color{blue}{\sqrt{\ell} \cdot \sqrt{\ell}}} \cdot \left(\sqrt{\frac{{t}^{3}}{\ell \cdot \ell}} \cdot \sin k\right)\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
      7. add-sqr-sqrt49.5%

        \[\leadsto \frac{2}{\left(\left(\frac{{t}^{1.5}}{\color{blue}{\ell}} \cdot \left(\sqrt{\frac{{t}^{3}}{\ell \cdot \ell}} \cdot \sin k\right)\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
      8. sqrt-div49.5%

        \[\leadsto \frac{2}{\left(\left(\frac{{t}^{1.5}}{\ell} \cdot \left(\color{blue}{\frac{\sqrt{{t}^{3}}}{\sqrt{\ell \cdot \ell}}} \cdot \sin k\right)\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
      9. sqrt-pow152.5%

        \[\leadsto \frac{2}{\left(\left(\frac{{t}^{1.5}}{\ell} \cdot \left(\frac{\color{blue}{{t}^{\left(\frac{3}{2}\right)}}}{\sqrt{\ell \cdot \ell}} \cdot \sin k\right)\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
      10. metadata-eval52.5%

        \[\leadsto \frac{2}{\left(\left(\frac{{t}^{1.5}}{\ell} \cdot \left(\frac{{t}^{\color{blue}{1.5}}}{\sqrt{\ell \cdot \ell}} \cdot \sin k\right)\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
      11. sqrt-prod40.1%

        \[\leadsto \frac{2}{\left(\left(\frac{{t}^{1.5}}{\ell} \cdot \left(\frac{{t}^{1.5}}{\color{blue}{\sqrt{\ell} \cdot \sqrt{\ell}}} \cdot \sin k\right)\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
      12. add-sqr-sqrt85.2%

        \[\leadsto \frac{2}{\left(\left(\frac{{t}^{1.5}}{\ell} \cdot \left(\frac{{t}^{1.5}}{\color{blue}{\ell}} \cdot \sin k\right)\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
    4. Applied egg-rr85.2%

      \[\leadsto \frac{2}{\left(\color{blue}{\left(\frac{{t}^{1.5}}{\ell} \cdot \left(\frac{{t}^{1.5}}{\ell} \cdot \sin k\right)\right)} \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
    5. Step-by-step derivation
      1. associate-*l*91.4%

        \[\leadsto \frac{2}{\color{blue}{\left(\frac{{t}^{1.5}}{\ell} \cdot \left(\left(\frac{{t}^{1.5}}{\ell} \cdot \sin k\right) \cdot \tan k\right)\right)} \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
      2. associate-*l/91.4%

        \[\leadsto \frac{2}{\left(\frac{{t}^{1.5}}{\ell} \cdot \left(\color{blue}{\frac{{t}^{1.5} \cdot \sin k}{\ell}} \cdot \tan k\right)\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
    6. Applied egg-rr91.4%

      \[\leadsto \frac{2}{\color{blue}{\left(\frac{{t}^{1.5}}{\ell} \cdot \left(\frac{{t}^{1.5} \cdot \sin k}{\ell} \cdot \tan k\right)\right)} \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]

    if 8.00000000000000078e199 < t

    1. Initial program 69.0%

      \[\frac{2}{\left(\left(\frac{{t}^{3}}{\ell \cdot \ell} \cdot \sin k\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
    2. Add Preprocessing
    3. Step-by-step derivation
      1. add-cube-cbrt69.0%

        \[\leadsto \frac{2}{\left(\color{blue}{\left(\left(\sqrt[3]{\frac{{t}^{3}}{\ell \cdot \ell} \cdot \sin k} \cdot \sqrt[3]{\frac{{t}^{3}}{\ell \cdot \ell} \cdot \sin k}\right) \cdot \sqrt[3]{\frac{{t}^{3}}{\ell \cdot \ell} \cdot \sin k}\right)} \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
      2. pow369.0%

        \[\leadsto \frac{2}{\left(\color{blue}{{\left(\sqrt[3]{\frac{{t}^{3}}{\ell \cdot \ell} \cdot \sin k}\right)}^{3}} \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
      3. *-commutative69.0%

        \[\leadsto \frac{2}{\left({\left(\sqrt[3]{\color{blue}{\sin k \cdot \frac{{t}^{3}}{\ell \cdot \ell}}}\right)}^{3} \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
      4. cbrt-prod69.0%

        \[\leadsto \frac{2}{\left({\color{blue}{\left(\sqrt[3]{\sin k} \cdot \sqrt[3]{\frac{{t}^{3}}{\ell \cdot \ell}}\right)}}^{3} \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
      5. div-inv69.0%

        \[\leadsto \frac{2}{\left({\left(\sqrt[3]{\sin k} \cdot \sqrt[3]{\color{blue}{{t}^{3} \cdot \frac{1}{\ell \cdot \ell}}}\right)}^{3} \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
      6. cbrt-prod69.0%

        \[\leadsto \frac{2}{\left({\left(\sqrt[3]{\sin k} \cdot \color{blue}{\left(\sqrt[3]{{t}^{3}} \cdot \sqrt[3]{\frac{1}{\ell \cdot \ell}}\right)}\right)}^{3} \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
      7. rem-cbrt-cube74.0%

        \[\leadsto \frac{2}{\left({\left(\sqrt[3]{\sin k} \cdot \left(\color{blue}{t} \cdot \sqrt[3]{\frac{1}{\ell \cdot \ell}}\right)\right)}^{3} \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
      8. pow274.0%

        \[\leadsto \frac{2}{\left({\left(\sqrt[3]{\sin k} \cdot \left(t \cdot \sqrt[3]{\frac{1}{\color{blue}{{\ell}^{2}}}}\right)\right)}^{3} \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
      9. pow-flip74.0%

        \[\leadsto \frac{2}{\left({\left(\sqrt[3]{\sin k} \cdot \left(t \cdot \sqrt[3]{\color{blue}{{\ell}^{\left(-2\right)}}}\right)\right)}^{3} \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
      10. metadata-eval74.0%

        \[\leadsto \frac{2}{\left({\left(\sqrt[3]{\sin k} \cdot \left(t \cdot \sqrt[3]{{\ell}^{\color{blue}{-2}}}\right)\right)}^{3} \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
    4. Applied egg-rr74.0%

      \[\leadsto \frac{2}{\left(\color{blue}{{\left(\sqrt[3]{\sin k} \cdot \left(t \cdot \sqrt[3]{{\ell}^{-2}}\right)\right)}^{3}} \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
    5. Step-by-step derivation
      1. pow1/374.0%

        \[\leadsto \frac{2}{\left({\left(\sqrt[3]{\sin k} \cdot \left(t \cdot \color{blue}{{\left({\ell}^{-2}\right)}^{0.3333333333333333}}\right)\right)}^{3} \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
      2. pow-pow45.8%

        \[\leadsto \frac{2}{\left({\left(\sqrt[3]{\sin k} \cdot \left(t \cdot \color{blue}{{\ell}^{\left(-2 \cdot 0.3333333333333333\right)}}\right)\right)}^{3} \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
      3. metadata-eval45.8%

        \[\leadsto \frac{2}{\left({\left(\sqrt[3]{\sin k} \cdot \left(t \cdot {\ell}^{\color{blue}{-0.6666666666666666}}\right)\right)}^{3} \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
    6. Applied egg-rr45.8%

      \[\leadsto \frac{2}{\left({\left(\sqrt[3]{\sin k} \cdot \left(t \cdot \color{blue}{{\ell}^{-0.6666666666666666}}\right)\right)}^{3} \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
  3. Recombined 3 regimes into one program.
  4. Final simplification73.9%

    \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq 2.05 \cdot 10^{-60}:\\ \;\;\;\;\ell \cdot \left(2 \cdot \left(\left(\ell \cdot {k}^{-2}\right) \cdot \frac{\cos k}{t \cdot {\sin k}^{2}}\right)\right)\\ \mathbf{elif}\;t \leq 8 \cdot 10^{+199}:\\ \;\;\;\;\frac{2}{\left(1 + \left({\left(\frac{k}{t}\right)}^{2} + 1\right)\right) \cdot \left(\frac{{t}^{1.5}}{\ell} \cdot \left(\tan k \cdot \frac{\sin k \cdot {t}^{1.5}}{\ell}\right)\right)}\\ \mathbf{else}:\\ \;\;\;\;\frac{2}{\left(1 + \left({\left(\frac{k}{t}\right)}^{2} + 1\right)\right) \cdot \left(\tan k \cdot {\left(\sqrt[3]{\sin k} \cdot \left(t \cdot {\ell}^{-0.6666666666666666}\right)\right)}^{3}\right)}\\ \end{array} \]
  5. Add Preprocessing

Alternative 7: 83.7% accurate, 0.8× speedup?

\[\begin{array}{l} t\_m = \left|t\right| \\ t\_s = \mathsf{copysign}\left(1, t\right) \\ \begin{array}{l} t_2 := {\left(\frac{k}{t\_m}\right)}^{2}\\ t\_s \cdot \begin{array}{l} \mathbf{if}\;t\_m \leq 2.8 \cdot 10^{-60}:\\ \;\;\;\;\ell \cdot \left(2 \cdot \left(\left(\ell \cdot {k}^{-2}\right) \cdot \frac{\cos k}{t\_m \cdot {\sin k}^{2}}\right)\right)\\ \mathbf{elif}\;t\_m \leq 1.32 \cdot 10^{+200}:\\ \;\;\;\;\frac{2}{\left(1 + \left(t\_2 + 1\right)\right) \cdot \left(\frac{{t\_m}^{1.5}}{\ell} \cdot \left(\tan k \cdot \frac{\sin k \cdot {t\_m}^{1.5}}{\ell}\right)\right)}\\ \mathbf{else}:\\ \;\;\;\;\ell \cdot \frac{\ell \cdot \frac{2}{2 + t\_2}}{{\left(t\_m \cdot {\left(\sqrt[3]{k}\right)}^{2}\right)}^{3}}\\ \end{array} \end{array} \end{array} \]
t\_m = (fabs.f64 t)
t\_s = (copysign.f64 #s(literal 1 binary64) t)
(FPCore (t_s t_m l k)
 :precision binary64
 (let* ((t_2 (pow (/ k t_m) 2.0)))
   (*
    t_s
    (if (<= t_m 2.8e-60)
      (*
       l
       (* 2.0 (* (* l (pow k -2.0)) (/ (cos k) (* t_m (pow (sin k) 2.0))))))
      (if (<= t_m 1.32e+200)
        (/
         2.0
         (*
          (+ 1.0 (+ t_2 1.0))
          (* (/ (pow t_m 1.5) l) (* (tan k) (/ (* (sin k) (pow t_m 1.5)) l)))))
        (*
         l
         (/
          (* l (/ 2.0 (+ 2.0 t_2)))
          (pow (* t_m (pow (cbrt k) 2.0)) 3.0))))))))
t\_m = fabs(t);
t\_s = copysign(1.0, t);
double code(double t_s, double t_m, double l, double k) {
	double t_2 = pow((k / t_m), 2.0);
	double tmp;
	if (t_m <= 2.8e-60) {
		tmp = l * (2.0 * ((l * pow(k, -2.0)) * (cos(k) / (t_m * pow(sin(k), 2.0)))));
	} else if (t_m <= 1.32e+200) {
		tmp = 2.0 / ((1.0 + (t_2 + 1.0)) * ((pow(t_m, 1.5) / l) * (tan(k) * ((sin(k) * pow(t_m, 1.5)) / l))));
	} else {
		tmp = l * ((l * (2.0 / (2.0 + t_2))) / pow((t_m * pow(cbrt(k), 2.0)), 3.0));
	}
	return t_s * tmp;
}
t\_m = Math.abs(t);
t\_s = Math.copySign(1.0, t);
public static double code(double t_s, double t_m, double l, double k) {
	double t_2 = Math.pow((k / t_m), 2.0);
	double tmp;
	if (t_m <= 2.8e-60) {
		tmp = l * (2.0 * ((l * Math.pow(k, -2.0)) * (Math.cos(k) / (t_m * Math.pow(Math.sin(k), 2.0)))));
	} else if (t_m <= 1.32e+200) {
		tmp = 2.0 / ((1.0 + (t_2 + 1.0)) * ((Math.pow(t_m, 1.5) / l) * (Math.tan(k) * ((Math.sin(k) * Math.pow(t_m, 1.5)) / l))));
	} else {
		tmp = l * ((l * (2.0 / (2.0 + t_2))) / Math.pow((t_m * Math.pow(Math.cbrt(k), 2.0)), 3.0));
	}
	return t_s * tmp;
}
t\_m = abs(t)
t\_s = copysign(1.0, t)
function code(t_s, t_m, l, k)
	t_2 = Float64(k / t_m) ^ 2.0
	tmp = 0.0
	if (t_m <= 2.8e-60)
		tmp = Float64(l * Float64(2.0 * Float64(Float64(l * (k ^ -2.0)) * Float64(cos(k) / Float64(t_m * (sin(k) ^ 2.0))))));
	elseif (t_m <= 1.32e+200)
		tmp = Float64(2.0 / Float64(Float64(1.0 + Float64(t_2 + 1.0)) * Float64(Float64((t_m ^ 1.5) / l) * Float64(tan(k) * Float64(Float64(sin(k) * (t_m ^ 1.5)) / l)))));
	else
		tmp = Float64(l * Float64(Float64(l * Float64(2.0 / Float64(2.0 + t_2))) / (Float64(t_m * (cbrt(k) ^ 2.0)) ^ 3.0)));
	end
	return Float64(t_s * tmp)
end
t\_m = N[Abs[t], $MachinePrecision]
t\_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[t]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
code[t$95$s_, t$95$m_, l_, k_] := Block[{t$95$2 = N[Power[N[(k / t$95$m), $MachinePrecision], 2.0], $MachinePrecision]}, N[(t$95$s * If[LessEqual[t$95$m, 2.8e-60], N[(l * N[(2.0 * N[(N[(l * N[Power[k, -2.0], $MachinePrecision]), $MachinePrecision] * N[(N[Cos[k], $MachinePrecision] / N[(t$95$m * N[Power[N[Sin[k], $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$m, 1.32e+200], N[(2.0 / N[(N[(1.0 + N[(t$95$2 + 1.0), $MachinePrecision]), $MachinePrecision] * N[(N[(N[Power[t$95$m, 1.5], $MachinePrecision] / l), $MachinePrecision] * N[(N[Tan[k], $MachinePrecision] * N[(N[(N[Sin[k], $MachinePrecision] * N[Power[t$95$m, 1.5], $MachinePrecision]), $MachinePrecision] / l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(l * N[(N[(l * N[(2.0 / N[(2.0 + t$95$2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[Power[N[(t$95$m * N[Power[N[Power[k, 1/3], $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision], 3.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]), $MachinePrecision]]
\begin{array}{l}
t\_m = \left|t\right|
\\
t\_s = \mathsf{copysign}\left(1, t\right)

\\
\begin{array}{l}
t_2 := {\left(\frac{k}{t\_m}\right)}^{2}\\
t\_s \cdot \begin{array}{l}
\mathbf{if}\;t\_m \leq 2.8 \cdot 10^{-60}:\\
\;\;\;\;\ell \cdot \left(2 \cdot \left(\left(\ell \cdot {k}^{-2}\right) \cdot \frac{\cos k}{t\_m \cdot {\sin k}^{2}}\right)\right)\\

\mathbf{elif}\;t\_m \leq 1.32 \cdot 10^{+200}:\\
\;\;\;\;\frac{2}{\left(1 + \left(t\_2 + 1\right)\right) \cdot \left(\frac{{t\_m}^{1.5}}{\ell} \cdot \left(\tan k \cdot \frac{\sin k \cdot {t\_m}^{1.5}}{\ell}\right)\right)}\\

\mathbf{else}:\\
\;\;\;\;\ell \cdot \frac{\ell \cdot \frac{2}{2 + t\_2}}{{\left(t\_m \cdot {\left(\sqrt[3]{k}\right)}^{2}\right)}^{3}}\\


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

    1. Initial program 50.7%

      \[\frac{2}{\left(\left(\frac{{t}^{3}}{\ell \cdot \ell} \cdot \sin k\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
    2. Simplified48.7%

      \[\leadsto \color{blue}{\frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}}}{{t}^{3} \cdot \left(\sin k \cdot \tan k\right)} \cdot \left(\ell \cdot \ell\right)} \]
    3. Add Preprocessing
    4. Step-by-step derivation
      1. associate-*r*56.6%

        \[\leadsto \color{blue}{\left(\frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}}}{{t}^{3} \cdot \left(\sin k \cdot \tan k\right)} \cdot \ell\right) \cdot \ell} \]
      2. associate-*l/55.3%

        \[\leadsto \color{blue}{\frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{{t}^{3} \cdot \left(\sin k \cdot \tan k\right)}} \cdot \ell \]
    5. Applied egg-rr55.3%

      \[\leadsto \color{blue}{\frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{{t}^{3} \cdot \left(\sin k \cdot \tan k\right)} \cdot \ell} \]
    6. Taylor expanded in k around inf 70.7%

      \[\leadsto \color{blue}{\left(2 \cdot \frac{\ell \cdot \cos k}{{k}^{2} \cdot \left(t \cdot {\sin k}^{2}\right)}\right)} \cdot \ell \]
    7. Step-by-step derivation
      1. times-frac71.2%

        \[\leadsto \left(2 \cdot \color{blue}{\left(\frac{\ell}{{k}^{2}} \cdot \frac{\cos k}{t \cdot {\sin k}^{2}}\right)}\right) \cdot \ell \]
    8. Simplified71.2%

      \[\leadsto \color{blue}{\left(2 \cdot \left(\frac{\ell}{{k}^{2}} \cdot \frac{\cos k}{t \cdot {\sin k}^{2}}\right)\right)} \cdot \ell \]
    9. Step-by-step derivation
      1. *-un-lft-identity71.2%

        \[\leadsto \left(2 \cdot \left(\color{blue}{\left(1 \cdot \frac{\ell}{{k}^{2}}\right)} \cdot \frac{\cos k}{t \cdot {\sin k}^{2}}\right)\right) \cdot \ell \]
      2. div-inv71.3%

        \[\leadsto \left(2 \cdot \left(\left(1 \cdot \color{blue}{\left(\ell \cdot \frac{1}{{k}^{2}}\right)}\right) \cdot \frac{\cos k}{t \cdot {\sin k}^{2}}\right)\right) \cdot \ell \]
      3. pow-flip71.5%

        \[\leadsto \left(2 \cdot \left(\left(1 \cdot \left(\ell \cdot \color{blue}{{k}^{\left(-2\right)}}\right)\right) \cdot \frac{\cos k}{t \cdot {\sin k}^{2}}\right)\right) \cdot \ell \]
      4. metadata-eval71.5%

        \[\leadsto \left(2 \cdot \left(\left(1 \cdot \left(\ell \cdot {k}^{\color{blue}{-2}}\right)\right) \cdot \frac{\cos k}{t \cdot {\sin k}^{2}}\right)\right) \cdot \ell \]
    10. Applied egg-rr71.5%

      \[\leadsto \left(2 \cdot \left(\color{blue}{\left(1 \cdot \left(\ell \cdot {k}^{-2}\right)\right)} \cdot \frac{\cos k}{t \cdot {\sin k}^{2}}\right)\right) \cdot \ell \]
    11. Step-by-step derivation
      1. *-lft-identity71.5%

        \[\leadsto \left(2 \cdot \left(\color{blue}{\left(\ell \cdot {k}^{-2}\right)} \cdot \frac{\cos k}{t \cdot {\sin k}^{2}}\right)\right) \cdot \ell \]
    12. Simplified71.5%

      \[\leadsto \left(2 \cdot \left(\color{blue}{\left(\ell \cdot {k}^{-2}\right)} \cdot \frac{\cos k}{t \cdot {\sin k}^{2}}\right)\right) \cdot \ell \]

    if 2.8000000000000002e-60 < t < 1.3199999999999999e200

    1. Initial program 64.3%

      \[\frac{2}{\left(\left(\frac{{t}^{3}}{\ell \cdot \ell} \cdot \sin k\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
    2. Add Preprocessing
    3. Step-by-step derivation
      1. add-sqr-sqrt64.3%

        \[\leadsto \frac{2}{\left(\left(\color{blue}{\left(\sqrt{\frac{{t}^{3}}{\ell \cdot \ell}} \cdot \sqrt{\frac{{t}^{3}}{\ell \cdot \ell}}\right)} \cdot \sin k\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
      2. associate-*l*64.3%

        \[\leadsto \frac{2}{\left(\color{blue}{\left(\sqrt{\frac{{t}^{3}}{\ell \cdot \ell}} \cdot \left(\sqrt{\frac{{t}^{3}}{\ell \cdot \ell}} \cdot \sin k\right)\right)} \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
      3. sqrt-div64.3%

        \[\leadsto \frac{2}{\left(\left(\color{blue}{\frac{\sqrt{{t}^{3}}}{\sqrt{\ell \cdot \ell}}} \cdot \left(\sqrt{\frac{{t}^{3}}{\ell \cdot \ell}} \cdot \sin k\right)\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
      4. sqrt-pow164.3%

        \[\leadsto \frac{2}{\left(\left(\frac{\color{blue}{{t}^{\left(\frac{3}{2}\right)}}}{\sqrt{\ell \cdot \ell}} \cdot \left(\sqrt{\frac{{t}^{3}}{\ell \cdot \ell}} \cdot \sin k\right)\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
      5. metadata-eval64.3%

        \[\leadsto \frac{2}{\left(\left(\frac{{t}^{\color{blue}{1.5}}}{\sqrt{\ell \cdot \ell}} \cdot \left(\sqrt{\frac{{t}^{3}}{\ell \cdot \ell}} \cdot \sin k\right)\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
      6. sqrt-prod32.3%

        \[\leadsto \frac{2}{\left(\left(\frac{{t}^{1.5}}{\color{blue}{\sqrt{\ell} \cdot \sqrt{\ell}}} \cdot \left(\sqrt{\frac{{t}^{3}}{\ell \cdot \ell}} \cdot \sin k\right)\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
      7. add-sqr-sqrt49.5%

        \[\leadsto \frac{2}{\left(\left(\frac{{t}^{1.5}}{\color{blue}{\ell}} \cdot \left(\sqrt{\frac{{t}^{3}}{\ell \cdot \ell}} \cdot \sin k\right)\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
      8. sqrt-div49.5%

        \[\leadsto \frac{2}{\left(\left(\frac{{t}^{1.5}}{\ell} \cdot \left(\color{blue}{\frac{\sqrt{{t}^{3}}}{\sqrt{\ell \cdot \ell}}} \cdot \sin k\right)\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
      9. sqrt-pow152.5%

        \[\leadsto \frac{2}{\left(\left(\frac{{t}^{1.5}}{\ell} \cdot \left(\frac{\color{blue}{{t}^{\left(\frac{3}{2}\right)}}}{\sqrt{\ell \cdot \ell}} \cdot \sin k\right)\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
      10. metadata-eval52.5%

        \[\leadsto \frac{2}{\left(\left(\frac{{t}^{1.5}}{\ell} \cdot \left(\frac{{t}^{\color{blue}{1.5}}}{\sqrt{\ell \cdot \ell}} \cdot \sin k\right)\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
      11. sqrt-prod40.1%

        \[\leadsto \frac{2}{\left(\left(\frac{{t}^{1.5}}{\ell} \cdot \left(\frac{{t}^{1.5}}{\color{blue}{\sqrt{\ell} \cdot \sqrt{\ell}}} \cdot \sin k\right)\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
      12. add-sqr-sqrt85.2%

        \[\leadsto \frac{2}{\left(\left(\frac{{t}^{1.5}}{\ell} \cdot \left(\frac{{t}^{1.5}}{\color{blue}{\ell}} \cdot \sin k\right)\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
    4. Applied egg-rr85.2%

      \[\leadsto \frac{2}{\left(\color{blue}{\left(\frac{{t}^{1.5}}{\ell} \cdot \left(\frac{{t}^{1.5}}{\ell} \cdot \sin k\right)\right)} \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
    5. Step-by-step derivation
      1. associate-*l*91.4%

        \[\leadsto \frac{2}{\color{blue}{\left(\frac{{t}^{1.5}}{\ell} \cdot \left(\left(\frac{{t}^{1.5}}{\ell} \cdot \sin k\right) \cdot \tan k\right)\right)} \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
      2. associate-*l/91.4%

        \[\leadsto \frac{2}{\left(\frac{{t}^{1.5}}{\ell} \cdot \left(\color{blue}{\frac{{t}^{1.5} \cdot \sin k}{\ell}} \cdot \tan k\right)\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
    6. Applied egg-rr91.4%

      \[\leadsto \frac{2}{\color{blue}{\left(\frac{{t}^{1.5}}{\ell} \cdot \left(\frac{{t}^{1.5} \cdot \sin k}{\ell} \cdot \tan k\right)\right)} \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]

    if 1.3199999999999999e200 < t

    1. Initial program 69.0%

      \[\frac{2}{\left(\left(\frac{{t}^{3}}{\ell \cdot \ell} \cdot \sin k\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
    2. Simplified54.5%

      \[\leadsto \color{blue}{\frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}}}{{t}^{3} \cdot \left(\sin k \cdot \tan k\right)} \cdot \left(\ell \cdot \ell\right)} \]
    3. Add Preprocessing
    4. Step-by-step derivation
      1. associate-*r*55.0%

        \[\leadsto \color{blue}{\left(\frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}}}{{t}^{3} \cdot \left(\sin k \cdot \tan k\right)} \cdot \ell\right) \cdot \ell} \]
      2. associate-*l/55.0%

        \[\leadsto \color{blue}{\frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{{t}^{3} \cdot \left(\sin k \cdot \tan k\right)}} \cdot \ell \]
    5. Applied egg-rr55.0%

      \[\leadsto \color{blue}{\frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{{t}^{3} \cdot \left(\sin k \cdot \tan k\right)} \cdot \ell} \]
    6. Taylor expanded in k around 0 55.0%

      \[\leadsto \frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{\color{blue}{{k}^{2} \cdot {t}^{3}}} \cdot \ell \]
    7. Step-by-step derivation
      1. add-cube-cbrt55.0%

        \[\leadsto \frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{\color{blue}{\left(\sqrt[3]{{k}^{2} \cdot {t}^{3}} \cdot \sqrt[3]{{k}^{2} \cdot {t}^{3}}\right) \cdot \sqrt[3]{{k}^{2} \cdot {t}^{3}}}} \cdot \ell \]
      2. pow255.0%

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

        \[\leadsto \frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{{\left(\sqrt[3]{\color{blue}{{t}^{3} \cdot {k}^{2}}}\right)}^{2} \cdot \sqrt[3]{{k}^{2} \cdot {t}^{3}}} \cdot \ell \]
      4. cbrt-prod55.0%

        \[\leadsto \frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{{\color{blue}{\left(\sqrt[3]{{t}^{3}} \cdot \sqrt[3]{{k}^{2}}\right)}}^{2} \cdot \sqrt[3]{{k}^{2} \cdot {t}^{3}}} \cdot \ell \]
      5. unpow355.0%

        \[\leadsto \frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{{\left(\sqrt[3]{\color{blue}{\left(t \cdot t\right) \cdot t}} \cdot \sqrt[3]{{k}^{2}}\right)}^{2} \cdot \sqrt[3]{{k}^{2} \cdot {t}^{3}}} \cdot \ell \]
      6. add-cbrt-cube55.0%

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

        \[\leadsto \frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{{\left(t \cdot \sqrt[3]{\color{blue}{k \cdot k}}\right)}^{2} \cdot \sqrt[3]{{k}^{2} \cdot {t}^{3}}} \cdot \ell \]
      8. cbrt-prod55.0%

        \[\leadsto \frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{{\left(t \cdot \color{blue}{\left(\sqrt[3]{k} \cdot \sqrt[3]{k}\right)}\right)}^{2} \cdot \sqrt[3]{{k}^{2} \cdot {t}^{3}}} \cdot \ell \]
      9. pow255.0%

        \[\leadsto \frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{{\left(t \cdot \color{blue}{{\left(\sqrt[3]{k}\right)}^{2}}\right)}^{2} \cdot \sqrt[3]{{k}^{2} \cdot {t}^{3}}} \cdot \ell \]
      10. *-commutative55.0%

        \[\leadsto \frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{{\left(t \cdot {\left(\sqrt[3]{k}\right)}^{2}\right)}^{2} \cdot \sqrt[3]{\color{blue}{{t}^{3} \cdot {k}^{2}}}} \cdot \ell \]
      11. cbrt-prod55.0%

        \[\leadsto \frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{{\left(t \cdot {\left(\sqrt[3]{k}\right)}^{2}\right)}^{2} \cdot \color{blue}{\left(\sqrt[3]{{t}^{3}} \cdot \sqrt[3]{{k}^{2}}\right)}} \cdot \ell \]
      12. unpow355.0%

        \[\leadsto \frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{{\left(t \cdot {\left(\sqrt[3]{k}\right)}^{2}\right)}^{2} \cdot \left(\sqrt[3]{\color{blue}{\left(t \cdot t\right) \cdot t}} \cdot \sqrt[3]{{k}^{2}}\right)} \cdot \ell \]
      13. add-cbrt-cube60.4%

        \[\leadsto \frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{{\left(t \cdot {\left(\sqrt[3]{k}\right)}^{2}\right)}^{2} \cdot \left(\color{blue}{t} \cdot \sqrt[3]{{k}^{2}}\right)} \cdot \ell \]
      14. unpow260.4%

        \[\leadsto \frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{{\left(t \cdot {\left(\sqrt[3]{k}\right)}^{2}\right)}^{2} \cdot \left(t \cdot \sqrt[3]{\color{blue}{k \cdot k}}\right)} \cdot \ell \]
      15. cbrt-prod86.7%

        \[\leadsto \frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{{\left(t \cdot {\left(\sqrt[3]{k}\right)}^{2}\right)}^{2} \cdot \left(t \cdot \color{blue}{\left(\sqrt[3]{k} \cdot \sqrt[3]{k}\right)}\right)} \cdot \ell \]
      16. pow286.7%

        \[\leadsto \frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{{\left(t \cdot {\left(\sqrt[3]{k}\right)}^{2}\right)}^{2} \cdot \left(t \cdot \color{blue}{{\left(\sqrt[3]{k}\right)}^{2}}\right)} \cdot \ell \]
    8. Applied egg-rr86.7%

      \[\leadsto \frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{\color{blue}{{\left(t \cdot {\left(\sqrt[3]{k}\right)}^{2}\right)}^{2} \cdot \left(t \cdot {\left(\sqrt[3]{k}\right)}^{2}\right)}} \cdot \ell \]
    9. Step-by-step derivation
      1. unpow286.7%

        \[\leadsto \frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{\color{blue}{\left(\left(t \cdot {\left(\sqrt[3]{k}\right)}^{2}\right) \cdot \left(t \cdot {\left(\sqrt[3]{k}\right)}^{2}\right)\right)} \cdot \left(t \cdot {\left(\sqrt[3]{k}\right)}^{2}\right)} \cdot \ell \]
      2. unpow386.7%

        \[\leadsto \frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{\color{blue}{{\left(t \cdot {\left(\sqrt[3]{k}\right)}^{2}\right)}^{3}}} \cdot \ell \]
    10. Simplified86.7%

      \[\leadsto \frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{\color{blue}{{\left(t \cdot {\left(\sqrt[3]{k}\right)}^{2}\right)}^{3}}} \cdot \ell \]
  3. Recombined 3 regimes into one program.
  4. Final simplification77.5%

    \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq 2.8 \cdot 10^{-60}:\\ \;\;\;\;\ell \cdot \left(2 \cdot \left(\left(\ell \cdot {k}^{-2}\right) \cdot \frac{\cos k}{t \cdot {\sin k}^{2}}\right)\right)\\ \mathbf{elif}\;t \leq 1.32 \cdot 10^{+200}:\\ \;\;\;\;\frac{2}{\left(1 + \left({\left(\frac{k}{t}\right)}^{2} + 1\right)\right) \cdot \left(\frac{{t}^{1.5}}{\ell} \cdot \left(\tan k \cdot \frac{\sin k \cdot {t}^{1.5}}{\ell}\right)\right)}\\ \mathbf{else}:\\ \;\;\;\;\ell \cdot \frac{\ell \cdot \frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}}}{{\left(t \cdot {\left(\sqrt[3]{k}\right)}^{2}\right)}^{3}}\\ \end{array} \]
  5. Add Preprocessing

Alternative 8: 83.9% accurate, 0.8× speedup?

\[\begin{array}{l} t\_m = \left|t\right| \\ t\_s = \mathsf{copysign}\left(1, t\right) \\ \begin{array}{l} t_2 := {\left(\frac{k}{t\_m}\right)}^{2}\\ t_3 := \frac{{t\_m}^{1.5}}{\ell}\\ t\_s \cdot \begin{array}{l} \mathbf{if}\;t\_m \leq 2.3 \cdot 10^{-54}:\\ \;\;\;\;\ell \cdot \left(2 \cdot \left(\left(\ell \cdot {k}^{-2}\right) \cdot \frac{\cos k}{t\_m \cdot {\sin k}^{2}}\right)\right)\\ \mathbf{elif}\;t\_m \leq 6 \cdot 10^{+184}:\\ \;\;\;\;\frac{2}{\left(1 + \left(t\_2 + 1\right)\right) \cdot \left(\tan k \cdot \left(t\_3 \cdot \left(\sin k \cdot t\_3\right)\right)\right)}\\ \mathbf{else}:\\ \;\;\;\;\ell \cdot \frac{\ell \cdot \frac{2}{2 + t\_2}}{{\left(t\_m \cdot {\left(\sqrt[3]{k}\right)}^{2}\right)}^{3}}\\ \end{array} \end{array} \end{array} \]
t\_m = (fabs.f64 t)
t\_s = (copysign.f64 #s(literal 1 binary64) t)
(FPCore (t_s t_m l k)
 :precision binary64
 (let* ((t_2 (pow (/ k t_m) 2.0)) (t_3 (/ (pow t_m 1.5) l)))
   (*
    t_s
    (if (<= t_m 2.3e-54)
      (*
       l
       (* 2.0 (* (* l (pow k -2.0)) (/ (cos k) (* t_m (pow (sin k) 2.0))))))
      (if (<= t_m 6e+184)
        (/ 2.0 (* (+ 1.0 (+ t_2 1.0)) (* (tan k) (* t_3 (* (sin k) t_3)))))
        (*
         l
         (/
          (* l (/ 2.0 (+ 2.0 t_2)))
          (pow (* t_m (pow (cbrt k) 2.0)) 3.0))))))))
t\_m = fabs(t);
t\_s = copysign(1.0, t);
double code(double t_s, double t_m, double l, double k) {
	double t_2 = pow((k / t_m), 2.0);
	double t_3 = pow(t_m, 1.5) / l;
	double tmp;
	if (t_m <= 2.3e-54) {
		tmp = l * (2.0 * ((l * pow(k, -2.0)) * (cos(k) / (t_m * pow(sin(k), 2.0)))));
	} else if (t_m <= 6e+184) {
		tmp = 2.0 / ((1.0 + (t_2 + 1.0)) * (tan(k) * (t_3 * (sin(k) * t_3))));
	} else {
		tmp = l * ((l * (2.0 / (2.0 + t_2))) / pow((t_m * pow(cbrt(k), 2.0)), 3.0));
	}
	return t_s * tmp;
}
t\_m = Math.abs(t);
t\_s = Math.copySign(1.0, t);
public static double code(double t_s, double t_m, double l, double k) {
	double t_2 = Math.pow((k / t_m), 2.0);
	double t_3 = Math.pow(t_m, 1.5) / l;
	double tmp;
	if (t_m <= 2.3e-54) {
		tmp = l * (2.0 * ((l * Math.pow(k, -2.0)) * (Math.cos(k) / (t_m * Math.pow(Math.sin(k), 2.0)))));
	} else if (t_m <= 6e+184) {
		tmp = 2.0 / ((1.0 + (t_2 + 1.0)) * (Math.tan(k) * (t_3 * (Math.sin(k) * t_3))));
	} else {
		tmp = l * ((l * (2.0 / (2.0 + t_2))) / Math.pow((t_m * Math.pow(Math.cbrt(k), 2.0)), 3.0));
	}
	return t_s * tmp;
}
t\_m = abs(t)
t\_s = copysign(1.0, t)
function code(t_s, t_m, l, k)
	t_2 = Float64(k / t_m) ^ 2.0
	t_3 = Float64((t_m ^ 1.5) / l)
	tmp = 0.0
	if (t_m <= 2.3e-54)
		tmp = Float64(l * Float64(2.0 * Float64(Float64(l * (k ^ -2.0)) * Float64(cos(k) / Float64(t_m * (sin(k) ^ 2.0))))));
	elseif (t_m <= 6e+184)
		tmp = Float64(2.0 / Float64(Float64(1.0 + Float64(t_2 + 1.0)) * Float64(tan(k) * Float64(t_3 * Float64(sin(k) * t_3)))));
	else
		tmp = Float64(l * Float64(Float64(l * Float64(2.0 / Float64(2.0 + t_2))) / (Float64(t_m * (cbrt(k) ^ 2.0)) ^ 3.0)));
	end
	return Float64(t_s * tmp)
end
t\_m = N[Abs[t], $MachinePrecision]
t\_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[t]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
code[t$95$s_, t$95$m_, l_, k_] := Block[{t$95$2 = N[Power[N[(k / t$95$m), $MachinePrecision], 2.0], $MachinePrecision]}, Block[{t$95$3 = N[(N[Power[t$95$m, 1.5], $MachinePrecision] / l), $MachinePrecision]}, N[(t$95$s * If[LessEqual[t$95$m, 2.3e-54], N[(l * N[(2.0 * N[(N[(l * N[Power[k, -2.0], $MachinePrecision]), $MachinePrecision] * N[(N[Cos[k], $MachinePrecision] / N[(t$95$m * N[Power[N[Sin[k], $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$m, 6e+184], N[(2.0 / N[(N[(1.0 + N[(t$95$2 + 1.0), $MachinePrecision]), $MachinePrecision] * N[(N[Tan[k], $MachinePrecision] * N[(t$95$3 * N[(N[Sin[k], $MachinePrecision] * t$95$3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(l * N[(N[(l * N[(2.0 / N[(2.0 + t$95$2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[Power[N[(t$95$m * N[Power[N[Power[k, 1/3], $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision], 3.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]), $MachinePrecision]]]
\begin{array}{l}
t\_m = \left|t\right|
\\
t\_s = \mathsf{copysign}\left(1, t\right)

\\
\begin{array}{l}
t_2 := {\left(\frac{k}{t\_m}\right)}^{2}\\
t_3 := \frac{{t\_m}^{1.5}}{\ell}\\
t\_s \cdot \begin{array}{l}
\mathbf{if}\;t\_m \leq 2.3 \cdot 10^{-54}:\\
\;\;\;\;\ell \cdot \left(2 \cdot \left(\left(\ell \cdot {k}^{-2}\right) \cdot \frac{\cos k}{t\_m \cdot {\sin k}^{2}}\right)\right)\\

\mathbf{elif}\;t\_m \leq 6 \cdot 10^{+184}:\\
\;\;\;\;\frac{2}{\left(1 + \left(t\_2 + 1\right)\right) \cdot \left(\tan k \cdot \left(t\_3 \cdot \left(\sin k \cdot t\_3\right)\right)\right)}\\

\mathbf{else}:\\
\;\;\;\;\ell \cdot \frac{\ell \cdot \frac{2}{2 + t\_2}}{{\left(t\_m \cdot {\left(\sqrt[3]{k}\right)}^{2}\right)}^{3}}\\


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

    1. Initial program 51.2%

      \[\frac{2}{\left(\left(\frac{{t}^{3}}{\ell \cdot \ell} \cdot \sin k\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
    2. Simplified49.3%

      \[\leadsto \color{blue}{\frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}}}{{t}^{3} \cdot \left(\sin k \cdot \tan k\right)} \cdot \left(\ell \cdot \ell\right)} \]
    3. Add Preprocessing
    4. Step-by-step derivation
      1. associate-*r*57.1%

        \[\leadsto \color{blue}{\left(\frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}}}{{t}^{3} \cdot \left(\sin k \cdot \tan k\right)} \cdot \ell\right) \cdot \ell} \]
      2. associate-*l/55.8%

        \[\leadsto \color{blue}{\frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{{t}^{3} \cdot \left(\sin k \cdot \tan k\right)}} \cdot \ell \]
    5. Applied egg-rr55.8%

      \[\leadsto \color{blue}{\frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{{t}^{3} \cdot \left(\sin k \cdot \tan k\right)} \cdot \ell} \]
    6. Taylor expanded in k around inf 71.0%

      \[\leadsto \color{blue}{\left(2 \cdot \frac{\ell \cdot \cos k}{{k}^{2} \cdot \left(t \cdot {\sin k}^{2}\right)}\right)} \cdot \ell \]
    7. Step-by-step derivation
      1. times-frac71.6%

        \[\leadsto \left(2 \cdot \color{blue}{\left(\frac{\ell}{{k}^{2}} \cdot \frac{\cos k}{t \cdot {\sin k}^{2}}\right)}\right) \cdot \ell \]
    8. Simplified71.6%

      \[\leadsto \color{blue}{\left(2 \cdot \left(\frac{\ell}{{k}^{2}} \cdot \frac{\cos k}{t \cdot {\sin k}^{2}}\right)\right)} \cdot \ell \]
    9. Step-by-step derivation
      1. *-un-lft-identity71.6%

        \[\leadsto \left(2 \cdot \left(\color{blue}{\left(1 \cdot \frac{\ell}{{k}^{2}}\right)} \cdot \frac{\cos k}{t \cdot {\sin k}^{2}}\right)\right) \cdot \ell \]
      2. div-inv71.6%

        \[\leadsto \left(2 \cdot \left(\left(1 \cdot \color{blue}{\left(\ell \cdot \frac{1}{{k}^{2}}\right)}\right) \cdot \frac{\cos k}{t \cdot {\sin k}^{2}}\right)\right) \cdot \ell \]
      3. pow-flip71.8%

        \[\leadsto \left(2 \cdot \left(\left(1 \cdot \left(\ell \cdot \color{blue}{{k}^{\left(-2\right)}}\right)\right) \cdot \frac{\cos k}{t \cdot {\sin k}^{2}}\right)\right) \cdot \ell \]
      4. metadata-eval71.8%

        \[\leadsto \left(2 \cdot \left(\left(1 \cdot \left(\ell \cdot {k}^{\color{blue}{-2}}\right)\right) \cdot \frac{\cos k}{t \cdot {\sin k}^{2}}\right)\right) \cdot \ell \]
    10. Applied egg-rr71.8%

      \[\leadsto \left(2 \cdot \left(\color{blue}{\left(1 \cdot \left(\ell \cdot {k}^{-2}\right)\right)} \cdot \frac{\cos k}{t \cdot {\sin k}^{2}}\right)\right) \cdot \ell \]
    11. Step-by-step derivation
      1. *-lft-identity71.8%

        \[\leadsto \left(2 \cdot \left(\color{blue}{\left(\ell \cdot {k}^{-2}\right)} \cdot \frac{\cos k}{t \cdot {\sin k}^{2}}\right)\right) \cdot \ell \]
    12. Simplified71.8%

      \[\leadsto \left(2 \cdot \left(\color{blue}{\left(\ell \cdot {k}^{-2}\right)} \cdot \frac{\cos k}{t \cdot {\sin k}^{2}}\right)\right) \cdot \ell \]

    if 2.2999999999999999e-54 < t < 5.99999999999999973e184

    1. Initial program 62.8%

      \[\frac{2}{\left(\left(\frac{{t}^{3}}{\ell \cdot \ell} \cdot \sin k\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
    2. Add Preprocessing
    3. Step-by-step derivation
      1. add-sqr-sqrt62.8%

        \[\leadsto \frac{2}{\left(\left(\color{blue}{\left(\sqrt{\frac{{t}^{3}}{\ell \cdot \ell}} \cdot \sqrt{\frac{{t}^{3}}{\ell \cdot \ell}}\right)} \cdot \sin k\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
      2. associate-*l*62.8%

        \[\leadsto \frac{2}{\left(\color{blue}{\left(\sqrt{\frac{{t}^{3}}{\ell \cdot \ell}} \cdot \left(\sqrt{\frac{{t}^{3}}{\ell \cdot \ell}} \cdot \sin k\right)\right)} \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
      3. sqrt-div62.8%

        \[\leadsto \frac{2}{\left(\left(\color{blue}{\frac{\sqrt{{t}^{3}}}{\sqrt{\ell \cdot \ell}}} \cdot \left(\sqrt{\frac{{t}^{3}}{\ell \cdot \ell}} \cdot \sin k\right)\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
      4. sqrt-pow162.8%

        \[\leadsto \frac{2}{\left(\left(\frac{\color{blue}{{t}^{\left(\frac{3}{2}\right)}}}{\sqrt{\ell \cdot \ell}} \cdot \left(\sqrt{\frac{{t}^{3}}{\ell \cdot \ell}} \cdot \sin k\right)\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
      5. metadata-eval62.8%

        \[\leadsto \frac{2}{\left(\left(\frac{{t}^{\color{blue}{1.5}}}{\sqrt{\ell \cdot \ell}} \cdot \left(\sqrt{\frac{{t}^{3}}{\ell \cdot \ell}} \cdot \sin k\right)\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
      6. sqrt-prod31.5%

        \[\leadsto \frac{2}{\left(\left(\frac{{t}^{1.5}}{\color{blue}{\sqrt{\ell} \cdot \sqrt{\ell}}} \cdot \left(\sqrt{\frac{{t}^{3}}{\ell \cdot \ell}} \cdot \sin k\right)\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
      7. add-sqr-sqrt48.3%

        \[\leadsto \frac{2}{\left(\left(\frac{{t}^{1.5}}{\color{blue}{\ell}} \cdot \left(\sqrt{\frac{{t}^{3}}{\ell \cdot \ell}} \cdot \sin k\right)\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
      8. sqrt-div48.4%

        \[\leadsto \frac{2}{\left(\left(\frac{{t}^{1.5}}{\ell} \cdot \left(\color{blue}{\frac{\sqrt{{t}^{3}}}{\sqrt{\ell \cdot \ell}}} \cdot \sin k\right)\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
      9. sqrt-pow151.7%

        \[\leadsto \frac{2}{\left(\left(\frac{{t}^{1.5}}{\ell} \cdot \left(\frac{\color{blue}{{t}^{\left(\frac{3}{2}\right)}}}{\sqrt{\ell \cdot \ell}} \cdot \sin k\right)\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
      10. metadata-eval51.7%

        \[\leadsto \frac{2}{\left(\left(\frac{{t}^{1.5}}{\ell} \cdot \left(\frac{{t}^{\color{blue}{1.5}}}{\sqrt{\ell \cdot \ell}} \cdot \sin k\right)\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
      11. sqrt-prod40.2%

        \[\leadsto \frac{2}{\left(\left(\frac{{t}^{1.5}}{\ell} \cdot \left(\frac{{t}^{1.5}}{\color{blue}{\sqrt{\ell} \cdot \sqrt{\ell}}} \cdot \sin k\right)\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
      12. add-sqr-sqrt85.6%

        \[\leadsto \frac{2}{\left(\left(\frac{{t}^{1.5}}{\ell} \cdot \left(\frac{{t}^{1.5}}{\color{blue}{\ell}} \cdot \sin k\right)\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
    4. Applied egg-rr85.6%

      \[\leadsto \frac{2}{\left(\color{blue}{\left(\frac{{t}^{1.5}}{\ell} \cdot \left(\frac{{t}^{1.5}}{\ell} \cdot \sin k\right)\right)} \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]

    if 5.99999999999999973e184 < t

    1. Initial program 68.9%

      \[\frac{2}{\left(\left(\frac{{t}^{3}}{\ell \cdot \ell} \cdot \sin k\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
    2. Simplified56.0%

      \[\leadsto \color{blue}{\frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}}}{{t}^{3} \cdot \left(\sin k \cdot \tan k\right)} \cdot \left(\ell \cdot \ell\right)} \]
    3. Add Preprocessing
    4. Step-by-step derivation
      1. associate-*r*56.4%

        \[\leadsto \color{blue}{\left(\frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}}}{{t}^{3} \cdot \left(\sin k \cdot \tan k\right)} \cdot \ell\right) \cdot \ell} \]
      2. associate-*l/56.4%

        \[\leadsto \color{blue}{\frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{{t}^{3} \cdot \left(\sin k \cdot \tan k\right)}} \cdot \ell \]
    5. Applied egg-rr56.4%

      \[\leadsto \color{blue}{\frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{{t}^{3} \cdot \left(\sin k \cdot \tan k\right)} \cdot \ell} \]
    6. Taylor expanded in k around 0 56.4%

      \[\leadsto \frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{\color{blue}{{k}^{2} \cdot {t}^{3}}} \cdot \ell \]
    7. Step-by-step derivation
      1. add-cube-cbrt56.4%

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

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

        \[\leadsto \frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{{\left(\sqrt[3]{\color{blue}{{t}^{3} \cdot {k}^{2}}}\right)}^{2} \cdot \sqrt[3]{{k}^{2} \cdot {t}^{3}}} \cdot \ell \]
      4. cbrt-prod56.4%

        \[\leadsto \frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{{\color{blue}{\left(\sqrt[3]{{t}^{3}} \cdot \sqrt[3]{{k}^{2}}\right)}}^{2} \cdot \sqrt[3]{{k}^{2} \cdot {t}^{3}}} \cdot \ell \]
      5. unpow356.4%

        \[\leadsto \frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{{\left(\sqrt[3]{\color{blue}{\left(t \cdot t\right) \cdot t}} \cdot \sqrt[3]{{k}^{2}}\right)}^{2} \cdot \sqrt[3]{{k}^{2} \cdot {t}^{3}}} \cdot \ell \]
      6. add-cbrt-cube56.4%

        \[\leadsto \frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{{\left(\color{blue}{t} \cdot \sqrt[3]{{k}^{2}}\right)}^{2} \cdot \sqrt[3]{{k}^{2} \cdot {t}^{3}}} \cdot \ell \]
      7. unpow256.4%

        \[\leadsto \frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{{\left(t \cdot \sqrt[3]{\color{blue}{k \cdot k}}\right)}^{2} \cdot \sqrt[3]{{k}^{2} \cdot {t}^{3}}} \cdot \ell \]
      8. cbrt-prod56.4%

        \[\leadsto \frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{{\left(t \cdot \color{blue}{\left(\sqrt[3]{k} \cdot \sqrt[3]{k}\right)}\right)}^{2} \cdot \sqrt[3]{{k}^{2} \cdot {t}^{3}}} \cdot \ell \]
      9. pow256.4%

        \[\leadsto \frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{{\left(t \cdot \color{blue}{{\left(\sqrt[3]{k}\right)}^{2}}\right)}^{2} \cdot \sqrt[3]{{k}^{2} \cdot {t}^{3}}} \cdot \ell \]
      10. *-commutative56.4%

        \[\leadsto \frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{{\left(t \cdot {\left(\sqrt[3]{k}\right)}^{2}\right)}^{2} \cdot \sqrt[3]{\color{blue}{{t}^{3} \cdot {k}^{2}}}} \cdot \ell \]
      11. cbrt-prod56.4%

        \[\leadsto \frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{{\left(t \cdot {\left(\sqrt[3]{k}\right)}^{2}\right)}^{2} \cdot \color{blue}{\left(\sqrt[3]{{t}^{3}} \cdot \sqrt[3]{{k}^{2}}\right)}} \cdot \ell \]
      12. unpow356.4%

        \[\leadsto \frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{{\left(t \cdot {\left(\sqrt[3]{k}\right)}^{2}\right)}^{2} \cdot \left(\sqrt[3]{\color{blue}{\left(t \cdot t\right) \cdot t}} \cdot \sqrt[3]{{k}^{2}}\right)} \cdot \ell \]
      13. add-cbrt-cube61.2%

        \[\leadsto \frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{{\left(t \cdot {\left(\sqrt[3]{k}\right)}^{2}\right)}^{2} \cdot \left(\color{blue}{t} \cdot \sqrt[3]{{k}^{2}}\right)} \cdot \ell \]
      14. unpow261.2%

        \[\leadsto \frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{{\left(t \cdot {\left(\sqrt[3]{k}\right)}^{2}\right)}^{2} \cdot \left(t \cdot \sqrt[3]{\color{blue}{k \cdot k}}\right)} \cdot \ell \]
      15. cbrt-prod88.3%

        \[\leadsto \frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{{\left(t \cdot {\left(\sqrt[3]{k}\right)}^{2}\right)}^{2} \cdot \left(t \cdot \color{blue}{\left(\sqrt[3]{k} \cdot \sqrt[3]{k}\right)}\right)} \cdot \ell \]
      16. pow288.3%

        \[\leadsto \frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{{\left(t \cdot {\left(\sqrt[3]{k}\right)}^{2}\right)}^{2} \cdot \left(t \cdot \color{blue}{{\left(\sqrt[3]{k}\right)}^{2}}\right)} \cdot \ell \]
    8. Applied egg-rr88.3%

      \[\leadsto \frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{\color{blue}{{\left(t \cdot {\left(\sqrt[3]{k}\right)}^{2}\right)}^{2} \cdot \left(t \cdot {\left(\sqrt[3]{k}\right)}^{2}\right)}} \cdot \ell \]
    9. Step-by-step derivation
      1. unpow288.3%

        \[\leadsto \frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{\color{blue}{\left(\left(t \cdot {\left(\sqrt[3]{k}\right)}^{2}\right) \cdot \left(t \cdot {\left(\sqrt[3]{k}\right)}^{2}\right)\right)} \cdot \left(t \cdot {\left(\sqrt[3]{k}\right)}^{2}\right)} \cdot \ell \]
      2. unpow388.2%

        \[\leadsto \frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{\color{blue}{{\left(t \cdot {\left(\sqrt[3]{k}\right)}^{2}\right)}^{3}}} \cdot \ell \]
    10. Simplified88.2%

      \[\leadsto \frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{\color{blue}{{\left(t \cdot {\left(\sqrt[3]{k}\right)}^{2}\right)}^{3}}} \cdot \ell \]
  3. Recombined 3 regimes into one program.
  4. Final simplification76.4%

    \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq 2.3 \cdot 10^{-54}:\\ \;\;\;\;\ell \cdot \left(2 \cdot \left(\left(\ell \cdot {k}^{-2}\right) \cdot \frac{\cos k}{t \cdot {\sin k}^{2}}\right)\right)\\ \mathbf{elif}\;t \leq 6 \cdot 10^{+184}:\\ \;\;\;\;\frac{2}{\left(1 + \left({\left(\frac{k}{t}\right)}^{2} + 1\right)\right) \cdot \left(\tan k \cdot \left(\frac{{t}^{1.5}}{\ell} \cdot \left(\sin k \cdot \frac{{t}^{1.5}}{\ell}\right)\right)\right)}\\ \mathbf{else}:\\ \;\;\;\;\ell \cdot \frac{\ell \cdot \frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}}}{{\left(t \cdot {\left(\sqrt[3]{k}\right)}^{2}\right)}^{3}}\\ \end{array} \]
  5. Add Preprocessing

Alternative 9: 82.9% accurate, 1.0× speedup?

\[\begin{array}{l} t\_m = \left|t\right| \\ t\_s = \mathsf{copysign}\left(1, t\right) \\ \begin{array}{l} t_2 := {\left(\frac{k}{t\_m}\right)}^{2}\\ t\_s \cdot \begin{array}{l} \mathbf{if}\;t\_m \leq 8 \cdot 10^{-55}:\\ \;\;\;\;\ell \cdot \left(2 \cdot \left(\left(\ell \cdot {k}^{-2}\right) \cdot \frac{\cos k}{t\_m \cdot {\sin k}^{2}}\right)\right)\\ \mathbf{elif}\;t\_m \leq 2.2 \cdot 10^{+149}:\\ \;\;\;\;\frac{2}{\left(1 + \left(t\_2 + 1\right)\right) \cdot \left(\tan k \cdot \left(\frac{{t\_m}^{2}}{\ell} \cdot \left(\sin k \cdot \frac{t\_m}{\ell}\right)\right)\right)}\\ \mathbf{else}:\\ \;\;\;\;\ell \cdot \frac{\ell \cdot \frac{2}{2 + t\_2}}{{\left(t\_m \cdot {\left(\sqrt[3]{k}\right)}^{2}\right)}^{3}}\\ \end{array} \end{array} \end{array} \]
t\_m = (fabs.f64 t)
t\_s = (copysign.f64 #s(literal 1 binary64) t)
(FPCore (t_s t_m l k)
 :precision binary64
 (let* ((t_2 (pow (/ k t_m) 2.0)))
   (*
    t_s
    (if (<= t_m 8e-55)
      (*
       l
       (* 2.0 (* (* l (pow k -2.0)) (/ (cos k) (* t_m (pow (sin k) 2.0))))))
      (if (<= t_m 2.2e+149)
        (/
         2.0
         (*
          (+ 1.0 (+ t_2 1.0))
          (* (tan k) (* (/ (pow t_m 2.0) l) (* (sin k) (/ t_m l))))))
        (*
         l
         (/
          (* l (/ 2.0 (+ 2.0 t_2)))
          (pow (* t_m (pow (cbrt k) 2.0)) 3.0))))))))
t\_m = fabs(t);
t\_s = copysign(1.0, t);
double code(double t_s, double t_m, double l, double k) {
	double t_2 = pow((k / t_m), 2.0);
	double tmp;
	if (t_m <= 8e-55) {
		tmp = l * (2.0 * ((l * pow(k, -2.0)) * (cos(k) / (t_m * pow(sin(k), 2.0)))));
	} else if (t_m <= 2.2e+149) {
		tmp = 2.0 / ((1.0 + (t_2 + 1.0)) * (tan(k) * ((pow(t_m, 2.0) / l) * (sin(k) * (t_m / l)))));
	} else {
		tmp = l * ((l * (2.0 / (2.0 + t_2))) / pow((t_m * pow(cbrt(k), 2.0)), 3.0));
	}
	return t_s * tmp;
}
t\_m = Math.abs(t);
t\_s = Math.copySign(1.0, t);
public static double code(double t_s, double t_m, double l, double k) {
	double t_2 = Math.pow((k / t_m), 2.0);
	double tmp;
	if (t_m <= 8e-55) {
		tmp = l * (2.0 * ((l * Math.pow(k, -2.0)) * (Math.cos(k) / (t_m * Math.pow(Math.sin(k), 2.0)))));
	} else if (t_m <= 2.2e+149) {
		tmp = 2.0 / ((1.0 + (t_2 + 1.0)) * (Math.tan(k) * ((Math.pow(t_m, 2.0) / l) * (Math.sin(k) * (t_m / l)))));
	} else {
		tmp = l * ((l * (2.0 / (2.0 + t_2))) / Math.pow((t_m * Math.pow(Math.cbrt(k), 2.0)), 3.0));
	}
	return t_s * tmp;
}
t\_m = abs(t)
t\_s = copysign(1.0, t)
function code(t_s, t_m, l, k)
	t_2 = Float64(k / t_m) ^ 2.0
	tmp = 0.0
	if (t_m <= 8e-55)
		tmp = Float64(l * Float64(2.0 * Float64(Float64(l * (k ^ -2.0)) * Float64(cos(k) / Float64(t_m * (sin(k) ^ 2.0))))));
	elseif (t_m <= 2.2e+149)
		tmp = Float64(2.0 / Float64(Float64(1.0 + Float64(t_2 + 1.0)) * Float64(tan(k) * Float64(Float64((t_m ^ 2.0) / l) * Float64(sin(k) * Float64(t_m / l))))));
	else
		tmp = Float64(l * Float64(Float64(l * Float64(2.0 / Float64(2.0 + t_2))) / (Float64(t_m * (cbrt(k) ^ 2.0)) ^ 3.0)));
	end
	return Float64(t_s * tmp)
end
t\_m = N[Abs[t], $MachinePrecision]
t\_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[t]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
code[t$95$s_, t$95$m_, l_, k_] := Block[{t$95$2 = N[Power[N[(k / t$95$m), $MachinePrecision], 2.0], $MachinePrecision]}, N[(t$95$s * If[LessEqual[t$95$m, 8e-55], N[(l * N[(2.0 * N[(N[(l * N[Power[k, -2.0], $MachinePrecision]), $MachinePrecision] * N[(N[Cos[k], $MachinePrecision] / N[(t$95$m * N[Power[N[Sin[k], $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$m, 2.2e+149], N[(2.0 / N[(N[(1.0 + N[(t$95$2 + 1.0), $MachinePrecision]), $MachinePrecision] * N[(N[Tan[k], $MachinePrecision] * N[(N[(N[Power[t$95$m, 2.0], $MachinePrecision] / l), $MachinePrecision] * N[(N[Sin[k], $MachinePrecision] * N[(t$95$m / l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(l * N[(N[(l * N[(2.0 / N[(2.0 + t$95$2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[Power[N[(t$95$m * N[Power[N[Power[k, 1/3], $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision], 3.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]), $MachinePrecision]]
\begin{array}{l}
t\_m = \left|t\right|
\\
t\_s = \mathsf{copysign}\left(1, t\right)

\\
\begin{array}{l}
t_2 := {\left(\frac{k}{t\_m}\right)}^{2}\\
t\_s \cdot \begin{array}{l}
\mathbf{if}\;t\_m \leq 8 \cdot 10^{-55}:\\
\;\;\;\;\ell \cdot \left(2 \cdot \left(\left(\ell \cdot {k}^{-2}\right) \cdot \frac{\cos k}{t\_m \cdot {\sin k}^{2}}\right)\right)\\

\mathbf{elif}\;t\_m \leq 2.2 \cdot 10^{+149}:\\
\;\;\;\;\frac{2}{\left(1 + \left(t\_2 + 1\right)\right) \cdot \left(\tan k \cdot \left(\frac{{t\_m}^{2}}{\ell} \cdot \left(\sin k \cdot \frac{t\_m}{\ell}\right)\right)\right)}\\

\mathbf{else}:\\
\;\;\;\;\ell \cdot \frac{\ell \cdot \frac{2}{2 + t\_2}}{{\left(t\_m \cdot {\left(\sqrt[3]{k}\right)}^{2}\right)}^{3}}\\


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

    1. Initial program 51.2%

      \[\frac{2}{\left(\left(\frac{{t}^{3}}{\ell \cdot \ell} \cdot \sin k\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
    2. Simplified49.3%

      \[\leadsto \color{blue}{\frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}}}{{t}^{3} \cdot \left(\sin k \cdot \tan k\right)} \cdot \left(\ell \cdot \ell\right)} \]
    3. Add Preprocessing
    4. Step-by-step derivation
      1. associate-*r*57.1%

        \[\leadsto \color{blue}{\left(\frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}}}{{t}^{3} \cdot \left(\sin k \cdot \tan k\right)} \cdot \ell\right) \cdot \ell} \]
      2. associate-*l/55.8%

        \[\leadsto \color{blue}{\frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{{t}^{3} \cdot \left(\sin k \cdot \tan k\right)}} \cdot \ell \]
    5. Applied egg-rr55.8%

      \[\leadsto \color{blue}{\frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{{t}^{3} \cdot \left(\sin k \cdot \tan k\right)} \cdot \ell} \]
    6. Taylor expanded in k around inf 71.0%

      \[\leadsto \color{blue}{\left(2 \cdot \frac{\ell \cdot \cos k}{{k}^{2} \cdot \left(t \cdot {\sin k}^{2}\right)}\right)} \cdot \ell \]
    7. Step-by-step derivation
      1. times-frac71.6%

        \[\leadsto \left(2 \cdot \color{blue}{\left(\frac{\ell}{{k}^{2}} \cdot \frac{\cos k}{t \cdot {\sin k}^{2}}\right)}\right) \cdot \ell \]
    8. Simplified71.6%

      \[\leadsto \color{blue}{\left(2 \cdot \left(\frac{\ell}{{k}^{2}} \cdot \frac{\cos k}{t \cdot {\sin k}^{2}}\right)\right)} \cdot \ell \]
    9. Step-by-step derivation
      1. *-un-lft-identity71.6%

        \[\leadsto \left(2 \cdot \left(\color{blue}{\left(1 \cdot \frac{\ell}{{k}^{2}}\right)} \cdot \frac{\cos k}{t \cdot {\sin k}^{2}}\right)\right) \cdot \ell \]
      2. div-inv71.6%

        \[\leadsto \left(2 \cdot \left(\left(1 \cdot \color{blue}{\left(\ell \cdot \frac{1}{{k}^{2}}\right)}\right) \cdot \frac{\cos k}{t \cdot {\sin k}^{2}}\right)\right) \cdot \ell \]
      3. pow-flip71.8%

        \[\leadsto \left(2 \cdot \left(\left(1 \cdot \left(\ell \cdot \color{blue}{{k}^{\left(-2\right)}}\right)\right) \cdot \frac{\cos k}{t \cdot {\sin k}^{2}}\right)\right) \cdot \ell \]
      4. metadata-eval71.8%

        \[\leadsto \left(2 \cdot \left(\left(1 \cdot \left(\ell \cdot {k}^{\color{blue}{-2}}\right)\right) \cdot \frac{\cos k}{t \cdot {\sin k}^{2}}\right)\right) \cdot \ell \]
    10. Applied egg-rr71.8%

      \[\leadsto \left(2 \cdot \left(\color{blue}{\left(1 \cdot \left(\ell \cdot {k}^{-2}\right)\right)} \cdot \frac{\cos k}{t \cdot {\sin k}^{2}}\right)\right) \cdot \ell \]
    11. Step-by-step derivation
      1. *-lft-identity71.8%

        \[\leadsto \left(2 \cdot \left(\color{blue}{\left(\ell \cdot {k}^{-2}\right)} \cdot \frac{\cos k}{t \cdot {\sin k}^{2}}\right)\right) \cdot \ell \]
    12. Simplified71.8%

      \[\leadsto \left(2 \cdot \left(\color{blue}{\left(\ell \cdot {k}^{-2}\right)} \cdot \frac{\cos k}{t \cdot {\sin k}^{2}}\right)\right) \cdot \ell \]

    if 7.99999999999999996e-55 < t < 2.2e149

    1. Initial program 67.7%

      \[\frac{2}{\left(\left(\frac{{t}^{3}}{\ell \cdot \ell} \cdot \sin k\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
    2. Add Preprocessing
    3. Step-by-step derivation
      1. unpow367.7%

        \[\leadsto \frac{2}{\left(\left(\frac{\color{blue}{\left(t \cdot t\right) \cdot t}}{\ell \cdot \ell} \cdot \sin k\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
      2. times-frac82.5%

        \[\leadsto \frac{2}{\left(\left(\color{blue}{\left(\frac{t \cdot t}{\ell} \cdot \frac{t}{\ell}\right)} \cdot \sin k\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
      3. pow282.5%

        \[\leadsto \frac{2}{\left(\left(\left(\frac{\color{blue}{{t}^{2}}}{\ell} \cdot \frac{t}{\ell}\right) \cdot \sin k\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
    4. Applied egg-rr82.5%

      \[\leadsto \frac{2}{\left(\left(\color{blue}{\left(\frac{{t}^{2}}{\ell} \cdot \frac{t}{\ell}\right)} \cdot \sin k\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
    5. Step-by-step derivation
      1. associate-*l*84.6%

        \[\leadsto \frac{2}{\left(\color{blue}{\left(\frac{{t}^{2}}{\ell} \cdot \left(\frac{t}{\ell} \cdot \sin k\right)\right)} \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
    6. Applied egg-rr84.6%

      \[\leadsto \frac{2}{\left(\color{blue}{\left(\frac{{t}^{2}}{\ell} \cdot \left(\frac{t}{\ell} \cdot \sin k\right)\right)} \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]

    if 2.2e149 < t

    1. Initial program 61.0%

      \[\frac{2}{\left(\left(\frac{{t}^{3}}{\ell \cdot \ell} \cdot \sin k\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
    2. Simplified51.4%

      \[\leadsto \color{blue}{\frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}}}{{t}^{3} \cdot \left(\sin k \cdot \tan k\right)} \cdot \left(\ell \cdot \ell\right)} \]
    3. Add Preprocessing
    4. Step-by-step derivation
      1. associate-*r*54.8%

        \[\leadsto \color{blue}{\left(\frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}}}{{t}^{3} \cdot \left(\sin k \cdot \tan k\right)} \cdot \ell\right) \cdot \ell} \]
      2. associate-*l/54.8%

        \[\leadsto \color{blue}{\frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{{t}^{3} \cdot \left(\sin k \cdot \tan k\right)}} \cdot \ell \]
    5. Applied egg-rr54.8%

      \[\leadsto \color{blue}{\frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{{t}^{3} \cdot \left(\sin k \cdot \tan k\right)} \cdot \ell} \]
    6. Taylor expanded in k around 0 54.8%

      \[\leadsto \frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{\color{blue}{{k}^{2} \cdot {t}^{3}}} \cdot \ell \]
    7. Step-by-step derivation
      1. add-cube-cbrt54.8%

        \[\leadsto \frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{\color{blue}{\left(\sqrt[3]{{k}^{2} \cdot {t}^{3}} \cdot \sqrt[3]{{k}^{2} \cdot {t}^{3}}\right) \cdot \sqrt[3]{{k}^{2} \cdot {t}^{3}}}} \cdot \ell \]
      2. pow254.8%

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

        \[\leadsto \frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{{\left(\sqrt[3]{\color{blue}{{t}^{3} \cdot {k}^{2}}}\right)}^{2} \cdot \sqrt[3]{{k}^{2} \cdot {t}^{3}}} \cdot \ell \]
      4. cbrt-prod54.8%

        \[\leadsto \frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{{\color{blue}{\left(\sqrt[3]{{t}^{3}} \cdot \sqrt[3]{{k}^{2}}\right)}}^{2} \cdot \sqrt[3]{{k}^{2} \cdot {t}^{3}}} \cdot \ell \]
      5. unpow354.8%

        \[\leadsto \frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{{\left(\sqrt[3]{\color{blue}{\left(t \cdot t\right) \cdot t}} \cdot \sqrt[3]{{k}^{2}}\right)}^{2} \cdot \sqrt[3]{{k}^{2} \cdot {t}^{3}}} \cdot \ell \]
      6. add-cbrt-cube54.8%

        \[\leadsto \frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{{\left(\color{blue}{t} \cdot \sqrt[3]{{k}^{2}}\right)}^{2} \cdot \sqrt[3]{{k}^{2} \cdot {t}^{3}}} \cdot \ell \]
      7. unpow254.8%

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

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

        \[\leadsto \frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{{\left(t \cdot \color{blue}{{\left(\sqrt[3]{k}\right)}^{2}}\right)}^{2} \cdot \sqrt[3]{{k}^{2} \cdot {t}^{3}}} \cdot \ell \]
      10. *-commutative54.8%

        \[\leadsto \frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{{\left(t \cdot {\left(\sqrt[3]{k}\right)}^{2}\right)}^{2} \cdot \sqrt[3]{\color{blue}{{t}^{3} \cdot {k}^{2}}}} \cdot \ell \]
      11. cbrt-prod54.8%

        \[\leadsto \frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{{\left(t \cdot {\left(\sqrt[3]{k}\right)}^{2}\right)}^{2} \cdot \color{blue}{\left(\sqrt[3]{{t}^{3}} \cdot \sqrt[3]{{k}^{2}}\right)}} \cdot \ell \]
      12. unpow354.8%

        \[\leadsto \frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{{\left(t \cdot {\left(\sqrt[3]{k}\right)}^{2}\right)}^{2} \cdot \left(\sqrt[3]{\color{blue}{\left(t \cdot t\right) \cdot t}} \cdot \sqrt[3]{{k}^{2}}\right)} \cdot \ell \]
      13. add-cbrt-cube58.6%

        \[\leadsto \frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{{\left(t \cdot {\left(\sqrt[3]{k}\right)}^{2}\right)}^{2} \cdot \left(\color{blue}{t} \cdot \sqrt[3]{{k}^{2}}\right)} \cdot \ell \]
      14. unpow258.6%

        \[\leadsto \frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{{\left(t \cdot {\left(\sqrt[3]{k}\right)}^{2}\right)}^{2} \cdot \left(t \cdot \sqrt[3]{\color{blue}{k \cdot k}}\right)} \cdot \ell \]
      15. cbrt-prod86.0%

        \[\leadsto \frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{{\left(t \cdot {\left(\sqrt[3]{k}\right)}^{2}\right)}^{2} \cdot \left(t \cdot \color{blue}{\left(\sqrt[3]{k} \cdot \sqrt[3]{k}\right)}\right)} \cdot \ell \]
      16. pow286.0%

        \[\leadsto \frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{{\left(t \cdot {\left(\sqrt[3]{k}\right)}^{2}\right)}^{2} \cdot \left(t \cdot \color{blue}{{\left(\sqrt[3]{k}\right)}^{2}}\right)} \cdot \ell \]
    8. Applied egg-rr86.0%

      \[\leadsto \frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{\color{blue}{{\left(t \cdot {\left(\sqrt[3]{k}\right)}^{2}\right)}^{2} \cdot \left(t \cdot {\left(\sqrt[3]{k}\right)}^{2}\right)}} \cdot \ell \]
    9. Step-by-step derivation
      1. unpow286.0%

        \[\leadsto \frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{\color{blue}{\left(\left(t \cdot {\left(\sqrt[3]{k}\right)}^{2}\right) \cdot \left(t \cdot {\left(\sqrt[3]{k}\right)}^{2}\right)\right)} \cdot \left(t \cdot {\left(\sqrt[3]{k}\right)}^{2}\right)} \cdot \ell \]
      2. unpow386.0%

        \[\leadsto \frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{\color{blue}{{\left(t \cdot {\left(\sqrt[3]{k}\right)}^{2}\right)}^{3}}} \cdot \ell \]
    10. Simplified86.0%

      \[\leadsto \frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{\color{blue}{{\left(t \cdot {\left(\sqrt[3]{k}\right)}^{2}\right)}^{3}}} \cdot \ell \]
  3. Recombined 3 regimes into one program.
  4. Final simplification76.0%

    \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq 8 \cdot 10^{-55}:\\ \;\;\;\;\ell \cdot \left(2 \cdot \left(\left(\ell \cdot {k}^{-2}\right) \cdot \frac{\cos k}{t \cdot {\sin k}^{2}}\right)\right)\\ \mathbf{elif}\;t \leq 2.2 \cdot 10^{+149}:\\ \;\;\;\;\frac{2}{\left(1 + \left({\left(\frac{k}{t}\right)}^{2} + 1\right)\right) \cdot \left(\tan k \cdot \left(\frac{{t}^{2}}{\ell} \cdot \left(\sin k \cdot \frac{t}{\ell}\right)\right)\right)}\\ \mathbf{else}:\\ \;\;\;\;\ell \cdot \frac{\ell \cdot \frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}}}{{\left(t \cdot {\left(\sqrt[3]{k}\right)}^{2}\right)}^{3}}\\ \end{array} \]
  5. Add Preprocessing

Alternative 10: 81.3% accurate, 1.0× speedup?

\[\begin{array}{l} t\_m = \left|t\right| \\ t\_s = \mathsf{copysign}\left(1, t\right) \\ \begin{array}{l} t_2 := \ell \cdot \frac{2}{2 + {\left(\frac{k}{t\_m}\right)}^{2}}\\ t\_s \cdot \begin{array}{l} \mathbf{if}\;t\_m \leq 1.7 \cdot 10^{-26}:\\ \;\;\;\;\ell \cdot \left(2 \cdot \left(\left(\ell \cdot {k}^{-2}\right) \cdot \frac{\cos k}{t\_m \cdot {\sin k}^{2}}\right)\right)\\ \mathbf{elif}\;t\_m \leq 3.9 \cdot 10^{+96}:\\ \;\;\;\;\ell \cdot \frac{t\_2}{\sin k \cdot \left(\tan k \cdot {t\_m}^{3}\right)}\\ \mathbf{else}:\\ \;\;\;\;\ell \cdot \frac{t\_2}{{\left(t\_m \cdot {\left(\sqrt[3]{k}\right)}^{2}\right)}^{3}}\\ \end{array} \end{array} \end{array} \]
t\_m = (fabs.f64 t)
t\_s = (copysign.f64 #s(literal 1 binary64) t)
(FPCore (t_s t_m l k)
 :precision binary64
 (let* ((t_2 (* l (/ 2.0 (+ 2.0 (pow (/ k t_m) 2.0))))))
   (*
    t_s
    (if (<= t_m 1.7e-26)
      (*
       l
       (* 2.0 (* (* l (pow k -2.0)) (/ (cos k) (* t_m (pow (sin k) 2.0))))))
      (if (<= t_m 3.9e+96)
        (* l (/ t_2 (* (sin k) (* (tan k) (pow t_m 3.0)))))
        (* l (/ t_2 (pow (* t_m (pow (cbrt k) 2.0)) 3.0))))))))
t\_m = fabs(t);
t\_s = copysign(1.0, t);
double code(double t_s, double t_m, double l, double k) {
	double t_2 = l * (2.0 / (2.0 + pow((k / t_m), 2.0)));
	double tmp;
	if (t_m <= 1.7e-26) {
		tmp = l * (2.0 * ((l * pow(k, -2.0)) * (cos(k) / (t_m * pow(sin(k), 2.0)))));
	} else if (t_m <= 3.9e+96) {
		tmp = l * (t_2 / (sin(k) * (tan(k) * pow(t_m, 3.0))));
	} else {
		tmp = l * (t_2 / pow((t_m * pow(cbrt(k), 2.0)), 3.0));
	}
	return t_s * tmp;
}
t\_m = Math.abs(t);
t\_s = Math.copySign(1.0, t);
public static double code(double t_s, double t_m, double l, double k) {
	double t_2 = l * (2.0 / (2.0 + Math.pow((k / t_m), 2.0)));
	double tmp;
	if (t_m <= 1.7e-26) {
		tmp = l * (2.0 * ((l * Math.pow(k, -2.0)) * (Math.cos(k) / (t_m * Math.pow(Math.sin(k), 2.0)))));
	} else if (t_m <= 3.9e+96) {
		tmp = l * (t_2 / (Math.sin(k) * (Math.tan(k) * Math.pow(t_m, 3.0))));
	} else {
		tmp = l * (t_2 / Math.pow((t_m * Math.pow(Math.cbrt(k), 2.0)), 3.0));
	}
	return t_s * tmp;
}
t\_m = abs(t)
t\_s = copysign(1.0, t)
function code(t_s, t_m, l, k)
	t_2 = Float64(l * Float64(2.0 / Float64(2.0 + (Float64(k / t_m) ^ 2.0))))
	tmp = 0.0
	if (t_m <= 1.7e-26)
		tmp = Float64(l * Float64(2.0 * Float64(Float64(l * (k ^ -2.0)) * Float64(cos(k) / Float64(t_m * (sin(k) ^ 2.0))))));
	elseif (t_m <= 3.9e+96)
		tmp = Float64(l * Float64(t_2 / Float64(sin(k) * Float64(tan(k) * (t_m ^ 3.0)))));
	else
		tmp = Float64(l * Float64(t_2 / (Float64(t_m * (cbrt(k) ^ 2.0)) ^ 3.0)));
	end
	return Float64(t_s * tmp)
end
t\_m = N[Abs[t], $MachinePrecision]
t\_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[t]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
code[t$95$s_, t$95$m_, l_, k_] := Block[{t$95$2 = N[(l * N[(2.0 / N[(2.0 + N[Power[N[(k / t$95$m), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, N[(t$95$s * If[LessEqual[t$95$m, 1.7e-26], N[(l * N[(2.0 * N[(N[(l * N[Power[k, -2.0], $MachinePrecision]), $MachinePrecision] * N[(N[Cos[k], $MachinePrecision] / N[(t$95$m * N[Power[N[Sin[k], $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$m, 3.9e+96], N[(l * N[(t$95$2 / N[(N[Sin[k], $MachinePrecision] * N[(N[Tan[k], $MachinePrecision] * N[Power[t$95$m, 3.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(l * N[(t$95$2 / N[Power[N[(t$95$m * N[Power[N[Power[k, 1/3], $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision], 3.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]), $MachinePrecision]]
\begin{array}{l}
t\_m = \left|t\right|
\\
t\_s = \mathsf{copysign}\left(1, t\right)

\\
\begin{array}{l}
t_2 := \ell \cdot \frac{2}{2 + {\left(\frac{k}{t\_m}\right)}^{2}}\\
t\_s \cdot \begin{array}{l}
\mathbf{if}\;t\_m \leq 1.7 \cdot 10^{-26}:\\
\;\;\;\;\ell \cdot \left(2 \cdot \left(\left(\ell \cdot {k}^{-2}\right) \cdot \frac{\cos k}{t\_m \cdot {\sin k}^{2}}\right)\right)\\

\mathbf{elif}\;t\_m \leq 3.9 \cdot 10^{+96}:\\
\;\;\;\;\ell \cdot \frac{t\_2}{\sin k \cdot \left(\tan k \cdot {t\_m}^{3}\right)}\\

\mathbf{else}:\\
\;\;\;\;\ell \cdot \frac{t\_2}{{\left(t\_m \cdot {\left(\sqrt[3]{k}\right)}^{2}\right)}^{3}}\\


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

    1. Initial program 51.9%

      \[\frac{2}{\left(\left(\frac{{t}^{3}}{\ell \cdot \ell} \cdot \sin k\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
    2. Simplified50.1%

      \[\leadsto \color{blue}{\frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}}}{{t}^{3} \cdot \left(\sin k \cdot \tan k\right)} \cdot \left(\ell \cdot \ell\right)} \]
    3. Add Preprocessing
    4. Step-by-step derivation
      1. associate-*r*57.7%

        \[\leadsto \color{blue}{\left(\frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}}}{{t}^{3} \cdot \left(\sin k \cdot \tan k\right)} \cdot \ell\right) \cdot \ell} \]
      2. associate-*l/56.5%

        \[\leadsto \color{blue}{\frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{{t}^{3} \cdot \left(\sin k \cdot \tan k\right)}} \cdot \ell \]
    5. Applied egg-rr56.5%

      \[\leadsto \color{blue}{\frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{{t}^{3} \cdot \left(\sin k \cdot \tan k\right)} \cdot \ell} \]
    6. Taylor expanded in k around inf 71.3%

      \[\leadsto \color{blue}{\left(2 \cdot \frac{\ell \cdot \cos k}{{k}^{2} \cdot \left(t \cdot {\sin k}^{2}\right)}\right)} \cdot \ell \]
    7. Step-by-step derivation
      1. times-frac71.8%

        \[\leadsto \left(2 \cdot \color{blue}{\left(\frac{\ell}{{k}^{2}} \cdot \frac{\cos k}{t \cdot {\sin k}^{2}}\right)}\right) \cdot \ell \]
    8. Simplified71.8%

      \[\leadsto \color{blue}{\left(2 \cdot \left(\frac{\ell}{{k}^{2}} \cdot \frac{\cos k}{t \cdot {\sin k}^{2}}\right)\right)} \cdot \ell \]
    9. Step-by-step derivation
      1. *-un-lft-identity71.8%

        \[\leadsto \left(2 \cdot \left(\color{blue}{\left(1 \cdot \frac{\ell}{{k}^{2}}\right)} \cdot \frac{\cos k}{t \cdot {\sin k}^{2}}\right)\right) \cdot \ell \]
      2. div-inv71.8%

        \[\leadsto \left(2 \cdot \left(\left(1 \cdot \color{blue}{\left(\ell \cdot \frac{1}{{k}^{2}}\right)}\right) \cdot \frac{\cos k}{t \cdot {\sin k}^{2}}\right)\right) \cdot \ell \]
      3. pow-flip72.1%

        \[\leadsto \left(2 \cdot \left(\left(1 \cdot \left(\ell \cdot \color{blue}{{k}^{\left(-2\right)}}\right)\right) \cdot \frac{\cos k}{t \cdot {\sin k}^{2}}\right)\right) \cdot \ell \]
      4. metadata-eval72.1%

        \[\leadsto \left(2 \cdot \left(\left(1 \cdot \left(\ell \cdot {k}^{\color{blue}{-2}}\right)\right) \cdot \frac{\cos k}{t \cdot {\sin k}^{2}}\right)\right) \cdot \ell \]
    10. Applied egg-rr72.1%

      \[\leadsto \left(2 \cdot \left(\color{blue}{\left(1 \cdot \left(\ell \cdot {k}^{-2}\right)\right)} \cdot \frac{\cos k}{t \cdot {\sin k}^{2}}\right)\right) \cdot \ell \]
    11. Step-by-step derivation
      1. *-lft-identity72.1%

        \[\leadsto \left(2 \cdot \left(\color{blue}{\left(\ell \cdot {k}^{-2}\right)} \cdot \frac{\cos k}{t \cdot {\sin k}^{2}}\right)\right) \cdot \ell \]
    12. Simplified72.1%

      \[\leadsto \left(2 \cdot \left(\color{blue}{\left(\ell \cdot {k}^{-2}\right)} \cdot \frac{\cos k}{t \cdot {\sin k}^{2}}\right)\right) \cdot \ell \]

    if 1.70000000000000007e-26 < t < 3.9e96

    1. Initial program 77.6%

      \[\frac{2}{\left(\left(\frac{{t}^{3}}{\ell \cdot \ell} \cdot \sin k\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
    2. Simplified77.2%

      \[\leadsto \color{blue}{\frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}}}{{t}^{3} \cdot \left(\sin k \cdot \tan k\right)} \cdot \left(\ell \cdot \ell\right)} \]
    3. Add Preprocessing
    4. Step-by-step derivation
      1. associate-*r*84.7%

        \[\leadsto \color{blue}{\left(\frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}}}{{t}^{3} \cdot \left(\sin k \cdot \tan k\right)} \cdot \ell\right) \cdot \ell} \]
      2. associate-*l/93.3%

        \[\leadsto \color{blue}{\frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{{t}^{3} \cdot \left(\sin k \cdot \tan k\right)}} \cdot \ell \]
    5. Applied egg-rr93.3%

      \[\leadsto \color{blue}{\frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{{t}^{3} \cdot \left(\sin k \cdot \tan k\right)} \cdot \ell} \]
    6. Step-by-step derivation
      1. *-commutative93.3%

        \[\leadsto \frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{{t}^{3} \cdot \color{blue}{\left(\tan k \cdot \sin k\right)}} \cdot \ell \]
      2. associate-*r*93.3%

        \[\leadsto \frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{\color{blue}{\left({t}^{3} \cdot \tan k\right) \cdot \sin k}} \cdot \ell \]
    7. Applied egg-rr93.3%

      \[\leadsto \frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{\color{blue}{\left({t}^{3} \cdot \tan k\right) \cdot \sin k}} \cdot \ell \]

    if 3.9e96 < t

    1. Initial program 54.7%

      \[\frac{2}{\left(\left(\frac{{t}^{3}}{\ell \cdot \ell} \cdot \sin k\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
    2. Simplified47.3%

      \[\leadsto \color{blue}{\frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}}}{{t}^{3} \cdot \left(\sin k \cdot \tan k\right)} \cdot \left(\ell \cdot \ell\right)} \]
    3. Add Preprocessing
    4. Step-by-step derivation
      1. associate-*r*50.1%

        \[\leadsto \color{blue}{\left(\frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}}}{{t}^{3} \cdot \left(\sin k \cdot \tan k\right)} \cdot \ell\right) \cdot \ell} \]
      2. associate-*l/50.1%

        \[\leadsto \color{blue}{\frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{{t}^{3} \cdot \left(\sin k \cdot \tan k\right)}} \cdot \ell \]
    5. Applied egg-rr50.1%

      \[\leadsto \color{blue}{\frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{{t}^{3} \cdot \left(\sin k \cdot \tan k\right)} \cdot \ell} \]
    6. Taylor expanded in k around 0 50.1%

      \[\leadsto \frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{\color{blue}{{k}^{2} \cdot {t}^{3}}} \cdot \ell \]
    7. Step-by-step derivation
      1. add-cube-cbrt50.1%

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

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

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

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

        \[\leadsto \frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{{\left(\sqrt[3]{\color{blue}{\left(t \cdot t\right) \cdot t}} \cdot \sqrt[3]{{k}^{2}}\right)}^{2} \cdot \sqrt[3]{{k}^{2} \cdot {t}^{3}}} \cdot \ell \]
      6. add-cbrt-cube50.1%

        \[\leadsto \frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{{\left(\color{blue}{t} \cdot \sqrt[3]{{k}^{2}}\right)}^{2} \cdot \sqrt[3]{{k}^{2} \cdot {t}^{3}}} \cdot \ell \]
      7. unpow250.1%

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

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

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

        \[\leadsto \frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{{\left(t \cdot {\left(\sqrt[3]{k}\right)}^{2}\right)}^{2} \cdot \sqrt[3]{\color{blue}{{t}^{3} \cdot {k}^{2}}}} \cdot \ell \]
      11. cbrt-prod50.1%

        \[\leadsto \frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{{\left(t \cdot {\left(\sqrt[3]{k}\right)}^{2}\right)}^{2} \cdot \color{blue}{\left(\sqrt[3]{{t}^{3}} \cdot \sqrt[3]{{k}^{2}}\right)}} \cdot \ell \]
      12. unpow350.1%

        \[\leadsto \frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{{\left(t \cdot {\left(\sqrt[3]{k}\right)}^{2}\right)}^{2} \cdot \left(\sqrt[3]{\color{blue}{\left(t \cdot t\right) \cdot t}} \cdot \sqrt[3]{{k}^{2}}\right)} \cdot \ell \]
      13. add-cbrt-cube57.2%

        \[\leadsto \frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{{\left(t \cdot {\left(\sqrt[3]{k}\right)}^{2}\right)}^{2} \cdot \left(\color{blue}{t} \cdot \sqrt[3]{{k}^{2}}\right)} \cdot \ell \]
      14. unpow257.2%

        \[\leadsto \frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{{\left(t \cdot {\left(\sqrt[3]{k}\right)}^{2}\right)}^{2} \cdot \left(t \cdot \sqrt[3]{\color{blue}{k \cdot k}}\right)} \cdot \ell \]
      15. cbrt-prod78.5%

        \[\leadsto \frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{{\left(t \cdot {\left(\sqrt[3]{k}\right)}^{2}\right)}^{2} \cdot \left(t \cdot \color{blue}{\left(\sqrt[3]{k} \cdot \sqrt[3]{k}\right)}\right)} \cdot \ell \]
      16. pow278.5%

        \[\leadsto \frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{{\left(t \cdot {\left(\sqrt[3]{k}\right)}^{2}\right)}^{2} \cdot \left(t \cdot \color{blue}{{\left(\sqrt[3]{k}\right)}^{2}}\right)} \cdot \ell \]
    8. Applied egg-rr78.5%

      \[\leadsto \frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{\color{blue}{{\left(t \cdot {\left(\sqrt[3]{k}\right)}^{2}\right)}^{2} \cdot \left(t \cdot {\left(\sqrt[3]{k}\right)}^{2}\right)}} \cdot \ell \]
    9. Step-by-step derivation
      1. unpow278.5%

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

        \[\leadsto \frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{\color{blue}{{\left(t \cdot {\left(\sqrt[3]{k}\right)}^{2}\right)}^{3}}} \cdot \ell \]
    10. Simplified78.4%

      \[\leadsto \frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{\color{blue}{{\left(t \cdot {\left(\sqrt[3]{k}\right)}^{2}\right)}^{3}}} \cdot \ell \]
  3. Recombined 3 regimes into one program.
  4. Final simplification75.7%

    \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq 1.7 \cdot 10^{-26}:\\ \;\;\;\;\ell \cdot \left(2 \cdot \left(\left(\ell \cdot {k}^{-2}\right) \cdot \frac{\cos k}{t \cdot {\sin k}^{2}}\right)\right)\\ \mathbf{elif}\;t \leq 3.9 \cdot 10^{+96}:\\ \;\;\;\;\ell \cdot \frac{\ell \cdot \frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}}}{\sin k \cdot \left(\tan k \cdot {t}^{3}\right)}\\ \mathbf{else}:\\ \;\;\;\;\ell \cdot \frac{\ell \cdot \frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}}}{{\left(t \cdot {\left(\sqrt[3]{k}\right)}^{2}\right)}^{3}}\\ \end{array} \]
  5. Add Preprocessing

Alternative 11: 79.9% accurate, 1.0× speedup?

\[\begin{array}{l} t\_m = \left|t\right| \\ t\_s = \mathsf{copysign}\left(1, t\right) \\ \begin{array}{l} t_2 := \frac{2}{2 + {\left(\frac{k}{t\_m}\right)}^{2}}\\ t\_s \cdot \begin{array}{l} \mathbf{if}\;t\_m \leq 2.4 \cdot 10^{-60}:\\ \;\;\;\;\ell \cdot \left(2 \cdot \left(\left(\ell \cdot {k}^{-2}\right) \cdot \frac{\cos k}{t\_m \cdot {\sin k}^{2}}\right)\right)\\ \mathbf{elif}\;t\_m \leq 9.2 \cdot 10^{+77}:\\ \;\;\;\;\ell \cdot \left(\frac{t\_2}{{t\_m}^{3}} \cdot \frac{\ell}{\sin k \cdot \tan k}\right)\\ \mathbf{else}:\\ \;\;\;\;\ell \cdot \frac{\ell \cdot t\_2}{{\left(t\_m \cdot {\left(\sqrt[3]{k}\right)}^{2}\right)}^{3}}\\ \end{array} \end{array} \end{array} \]
t\_m = (fabs.f64 t)
t\_s = (copysign.f64 #s(literal 1 binary64) t)
(FPCore (t_s t_m l k)
 :precision binary64
 (let* ((t_2 (/ 2.0 (+ 2.0 (pow (/ k t_m) 2.0)))))
   (*
    t_s
    (if (<= t_m 2.4e-60)
      (*
       l
       (* 2.0 (* (* l (pow k -2.0)) (/ (cos k) (* t_m (pow (sin k) 2.0))))))
      (if (<= t_m 9.2e+77)
        (* l (* (/ t_2 (pow t_m 3.0)) (/ l (* (sin k) (tan k)))))
        (* l (/ (* l t_2) (pow (* t_m (pow (cbrt k) 2.0)) 3.0))))))))
t\_m = fabs(t);
t\_s = copysign(1.0, t);
double code(double t_s, double t_m, double l, double k) {
	double t_2 = 2.0 / (2.0 + pow((k / t_m), 2.0));
	double tmp;
	if (t_m <= 2.4e-60) {
		tmp = l * (2.0 * ((l * pow(k, -2.0)) * (cos(k) / (t_m * pow(sin(k), 2.0)))));
	} else if (t_m <= 9.2e+77) {
		tmp = l * ((t_2 / pow(t_m, 3.0)) * (l / (sin(k) * tan(k))));
	} else {
		tmp = l * ((l * t_2) / pow((t_m * pow(cbrt(k), 2.0)), 3.0));
	}
	return t_s * tmp;
}
t\_m = Math.abs(t);
t\_s = Math.copySign(1.0, t);
public static double code(double t_s, double t_m, double l, double k) {
	double t_2 = 2.0 / (2.0 + Math.pow((k / t_m), 2.0));
	double tmp;
	if (t_m <= 2.4e-60) {
		tmp = l * (2.0 * ((l * Math.pow(k, -2.0)) * (Math.cos(k) / (t_m * Math.pow(Math.sin(k), 2.0)))));
	} else if (t_m <= 9.2e+77) {
		tmp = l * ((t_2 / Math.pow(t_m, 3.0)) * (l / (Math.sin(k) * Math.tan(k))));
	} else {
		tmp = l * ((l * t_2) / Math.pow((t_m * Math.pow(Math.cbrt(k), 2.0)), 3.0));
	}
	return t_s * tmp;
}
t\_m = abs(t)
t\_s = copysign(1.0, t)
function code(t_s, t_m, l, k)
	t_2 = Float64(2.0 / Float64(2.0 + (Float64(k / t_m) ^ 2.0)))
	tmp = 0.0
	if (t_m <= 2.4e-60)
		tmp = Float64(l * Float64(2.0 * Float64(Float64(l * (k ^ -2.0)) * Float64(cos(k) / Float64(t_m * (sin(k) ^ 2.0))))));
	elseif (t_m <= 9.2e+77)
		tmp = Float64(l * Float64(Float64(t_2 / (t_m ^ 3.0)) * Float64(l / Float64(sin(k) * tan(k)))));
	else
		tmp = Float64(l * Float64(Float64(l * t_2) / (Float64(t_m * (cbrt(k) ^ 2.0)) ^ 3.0)));
	end
	return Float64(t_s * tmp)
end
t\_m = N[Abs[t], $MachinePrecision]
t\_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[t]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
code[t$95$s_, t$95$m_, l_, k_] := Block[{t$95$2 = N[(2.0 / N[(2.0 + N[Power[N[(k / t$95$m), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, N[(t$95$s * If[LessEqual[t$95$m, 2.4e-60], N[(l * N[(2.0 * N[(N[(l * N[Power[k, -2.0], $MachinePrecision]), $MachinePrecision] * N[(N[Cos[k], $MachinePrecision] / N[(t$95$m * N[Power[N[Sin[k], $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$m, 9.2e+77], N[(l * N[(N[(t$95$2 / N[Power[t$95$m, 3.0], $MachinePrecision]), $MachinePrecision] * N[(l / N[(N[Sin[k], $MachinePrecision] * N[Tan[k], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(l * N[(N[(l * t$95$2), $MachinePrecision] / N[Power[N[(t$95$m * N[Power[N[Power[k, 1/3], $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision], 3.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]), $MachinePrecision]]
\begin{array}{l}
t\_m = \left|t\right|
\\
t\_s = \mathsf{copysign}\left(1, t\right)

\\
\begin{array}{l}
t_2 := \frac{2}{2 + {\left(\frac{k}{t\_m}\right)}^{2}}\\
t\_s \cdot \begin{array}{l}
\mathbf{if}\;t\_m \leq 2.4 \cdot 10^{-60}:\\
\;\;\;\;\ell \cdot \left(2 \cdot \left(\left(\ell \cdot {k}^{-2}\right) \cdot \frac{\cos k}{t\_m \cdot {\sin k}^{2}}\right)\right)\\

\mathbf{elif}\;t\_m \leq 9.2 \cdot 10^{+77}:\\
\;\;\;\;\ell \cdot \left(\frac{t\_2}{{t\_m}^{3}} \cdot \frac{\ell}{\sin k \cdot \tan k}\right)\\

\mathbf{else}:\\
\;\;\;\;\ell \cdot \frac{\ell \cdot t\_2}{{\left(t\_m \cdot {\left(\sqrt[3]{k}\right)}^{2}\right)}^{3}}\\


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

    1. Initial program 50.7%

      \[\frac{2}{\left(\left(\frac{{t}^{3}}{\ell \cdot \ell} \cdot \sin k\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
    2. Simplified48.7%

      \[\leadsto \color{blue}{\frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}}}{{t}^{3} \cdot \left(\sin k \cdot \tan k\right)} \cdot \left(\ell \cdot \ell\right)} \]
    3. Add Preprocessing
    4. Step-by-step derivation
      1. associate-*r*56.6%

        \[\leadsto \color{blue}{\left(\frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}}}{{t}^{3} \cdot \left(\sin k \cdot \tan k\right)} \cdot \ell\right) \cdot \ell} \]
      2. associate-*l/55.3%

        \[\leadsto \color{blue}{\frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{{t}^{3} \cdot \left(\sin k \cdot \tan k\right)}} \cdot \ell \]
    5. Applied egg-rr55.3%

      \[\leadsto \color{blue}{\frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{{t}^{3} \cdot \left(\sin k \cdot \tan k\right)} \cdot \ell} \]
    6. Taylor expanded in k around inf 70.7%

      \[\leadsto \color{blue}{\left(2 \cdot \frac{\ell \cdot \cos k}{{k}^{2} \cdot \left(t \cdot {\sin k}^{2}\right)}\right)} \cdot \ell \]
    7. Step-by-step derivation
      1. times-frac71.2%

        \[\leadsto \left(2 \cdot \color{blue}{\left(\frac{\ell}{{k}^{2}} \cdot \frac{\cos k}{t \cdot {\sin k}^{2}}\right)}\right) \cdot \ell \]
    8. Simplified71.2%

      \[\leadsto \color{blue}{\left(2 \cdot \left(\frac{\ell}{{k}^{2}} \cdot \frac{\cos k}{t \cdot {\sin k}^{2}}\right)\right)} \cdot \ell \]
    9. Step-by-step derivation
      1. *-un-lft-identity71.2%

        \[\leadsto \left(2 \cdot \left(\color{blue}{\left(1 \cdot \frac{\ell}{{k}^{2}}\right)} \cdot \frac{\cos k}{t \cdot {\sin k}^{2}}\right)\right) \cdot \ell \]
      2. div-inv71.3%

        \[\leadsto \left(2 \cdot \left(\left(1 \cdot \color{blue}{\left(\ell \cdot \frac{1}{{k}^{2}}\right)}\right) \cdot \frac{\cos k}{t \cdot {\sin k}^{2}}\right)\right) \cdot \ell \]
      3. pow-flip71.5%

        \[\leadsto \left(2 \cdot \left(\left(1 \cdot \left(\ell \cdot \color{blue}{{k}^{\left(-2\right)}}\right)\right) \cdot \frac{\cos k}{t \cdot {\sin k}^{2}}\right)\right) \cdot \ell \]
      4. metadata-eval71.5%

        \[\leadsto \left(2 \cdot \left(\left(1 \cdot \left(\ell \cdot {k}^{\color{blue}{-2}}\right)\right) \cdot \frac{\cos k}{t \cdot {\sin k}^{2}}\right)\right) \cdot \ell \]
    10. Applied egg-rr71.5%

      \[\leadsto \left(2 \cdot \left(\color{blue}{\left(1 \cdot \left(\ell \cdot {k}^{-2}\right)\right)} \cdot \frac{\cos k}{t \cdot {\sin k}^{2}}\right)\right) \cdot \ell \]
    11. Step-by-step derivation
      1. *-lft-identity71.5%

        \[\leadsto \left(2 \cdot \left(\color{blue}{\left(\ell \cdot {k}^{-2}\right)} \cdot \frac{\cos k}{t \cdot {\sin k}^{2}}\right)\right) \cdot \ell \]
    12. Simplified71.5%

      \[\leadsto \left(2 \cdot \left(\color{blue}{\left(\ell \cdot {k}^{-2}\right)} \cdot \frac{\cos k}{t \cdot {\sin k}^{2}}\right)\right) \cdot \ell \]

    if 2.40000000000000009e-60 < t < 9.19999999999999979e77

    1. Initial program 80.1%

      \[\frac{2}{\left(\left(\frac{{t}^{3}}{\ell \cdot \ell} \cdot \sin k\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
    2. Simplified80.1%

      \[\leadsto \color{blue}{\frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}}}{{t}^{3} \cdot \left(\sin k \cdot \tan k\right)} \cdot \left(\ell \cdot \ell\right)} \]
    3. Add Preprocessing
    4. Step-by-step derivation
      1. associate-*r*84.2%

        \[\leadsto \color{blue}{\left(\frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}}}{{t}^{3} \cdot \left(\sin k \cdot \tan k\right)} \cdot \ell\right) \cdot \ell} \]
      2. *-commutative84.2%

        \[\leadsto \color{blue}{\ell \cdot \left(\frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}}}{{t}^{3} \cdot \left(\sin k \cdot \tan k\right)} \cdot \ell\right)} \]
      3. associate-*l/91.6%

        \[\leadsto \ell \cdot \color{blue}{\frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{{t}^{3} \cdot \left(\sin k \cdot \tan k\right)}} \]
    5. Applied egg-rr91.6%

      \[\leadsto \color{blue}{\ell \cdot \frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{{t}^{3} \cdot \left(\sin k \cdot \tan k\right)}} \]
    6. Step-by-step derivation
      1. times-frac84.2%

        \[\leadsto \ell \cdot \color{blue}{\left(\frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}}}{{t}^{3}} \cdot \frac{\ell}{\sin k \cdot \tan k}\right)} \]
    7. Simplified84.2%

      \[\leadsto \color{blue}{\ell \cdot \left(\frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}}}{{t}^{3}} \cdot \frac{\ell}{\sin k \cdot \tan k}\right)} \]

    if 9.19999999999999979e77 < t

    1. Initial program 54.7%

      \[\frac{2}{\left(\left(\frac{{t}^{3}}{\ell \cdot \ell} \cdot \sin k\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
    2. Simplified47.5%

      \[\leadsto \color{blue}{\frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}}}{{t}^{3} \cdot \left(\sin k \cdot \tan k\right)} \cdot \left(\ell \cdot \ell\right)} \]
    3. Add Preprocessing
    4. Step-by-step derivation
      1. associate-*r*52.2%

        \[\leadsto \color{blue}{\left(\frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}}}{{t}^{3} \cdot \left(\sin k \cdot \tan k\right)} \cdot \ell\right) \cdot \ell} \]
      2. associate-*l/52.2%

        \[\leadsto \color{blue}{\frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{{t}^{3} \cdot \left(\sin k \cdot \tan k\right)}} \cdot \ell \]
    5. Applied egg-rr52.2%

      \[\leadsto \color{blue}{\frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{{t}^{3} \cdot \left(\sin k \cdot \tan k\right)} \cdot \ell} \]
    6. Taylor expanded in k around 0 50.3%

      \[\leadsto \frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{\color{blue}{{k}^{2} \cdot {t}^{3}}} \cdot \ell \]
    7. Step-by-step derivation
      1. add-cube-cbrt50.3%

        \[\leadsto \frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{\color{blue}{\left(\sqrt[3]{{k}^{2} \cdot {t}^{3}} \cdot \sqrt[3]{{k}^{2} \cdot {t}^{3}}\right) \cdot \sqrt[3]{{k}^{2} \cdot {t}^{3}}}} \cdot \ell \]
      2. pow250.3%

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

        \[\leadsto \frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{{\left(\sqrt[3]{\color{blue}{{t}^{3} \cdot {k}^{2}}}\right)}^{2} \cdot \sqrt[3]{{k}^{2} \cdot {t}^{3}}} \cdot \ell \]
      4. cbrt-prod50.2%

        \[\leadsto \frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{{\color{blue}{\left(\sqrt[3]{{t}^{3}} \cdot \sqrt[3]{{k}^{2}}\right)}}^{2} \cdot \sqrt[3]{{k}^{2} \cdot {t}^{3}}} \cdot \ell \]
      5. unpow350.2%

        \[\leadsto \frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{{\left(\sqrt[3]{\color{blue}{\left(t \cdot t\right) \cdot t}} \cdot \sqrt[3]{{k}^{2}}\right)}^{2} \cdot \sqrt[3]{{k}^{2} \cdot {t}^{3}}} \cdot \ell \]
      6. add-cbrt-cube50.2%

        \[\leadsto \frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{{\left(\color{blue}{t} \cdot \sqrt[3]{{k}^{2}}\right)}^{2} \cdot \sqrt[3]{{k}^{2} \cdot {t}^{3}}} \cdot \ell \]
      7. unpow250.2%

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

        \[\leadsto \frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{{\left(t \cdot \color{blue}{\left(\sqrt[3]{k} \cdot \sqrt[3]{k}\right)}\right)}^{2} \cdot \sqrt[3]{{k}^{2} \cdot {t}^{3}}} \cdot \ell \]
      9. pow250.3%

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

        \[\leadsto \frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{{\left(t \cdot {\left(\sqrt[3]{k}\right)}^{2}\right)}^{2} \cdot \sqrt[3]{\color{blue}{{t}^{3} \cdot {k}^{2}}}} \cdot \ell \]
      11. cbrt-prod50.2%

        \[\leadsto \frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{{\left(t \cdot {\left(\sqrt[3]{k}\right)}^{2}\right)}^{2} \cdot \color{blue}{\left(\sqrt[3]{{t}^{3}} \cdot \sqrt[3]{{k}^{2}}\right)}} \cdot \ell \]
      12. unpow350.2%

        \[\leadsto \frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{{\left(t \cdot {\left(\sqrt[3]{k}\right)}^{2}\right)}^{2} \cdot \left(\sqrt[3]{\color{blue}{\left(t \cdot t\right) \cdot t}} \cdot \sqrt[3]{{k}^{2}}\right)} \cdot \ell \]
      13. add-cbrt-cube57.0%

        \[\leadsto \frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{{\left(t \cdot {\left(\sqrt[3]{k}\right)}^{2}\right)}^{2} \cdot \left(\color{blue}{t} \cdot \sqrt[3]{{k}^{2}}\right)} \cdot \ell \]
      14. unpow257.0%

        \[\leadsto \frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{{\left(t \cdot {\left(\sqrt[3]{k}\right)}^{2}\right)}^{2} \cdot \left(t \cdot \sqrt[3]{\color{blue}{k \cdot k}}\right)} \cdot \ell \]
      15. cbrt-prod77.4%

        \[\leadsto \frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{{\left(t \cdot {\left(\sqrt[3]{k}\right)}^{2}\right)}^{2} \cdot \left(t \cdot \color{blue}{\left(\sqrt[3]{k} \cdot \sqrt[3]{k}\right)}\right)} \cdot \ell \]
      16. pow277.4%

        \[\leadsto \frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{{\left(t \cdot {\left(\sqrt[3]{k}\right)}^{2}\right)}^{2} \cdot \left(t \cdot \color{blue}{{\left(\sqrt[3]{k}\right)}^{2}}\right)} \cdot \ell \]
    8. Applied egg-rr77.4%

      \[\leadsto \frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{\color{blue}{{\left(t \cdot {\left(\sqrt[3]{k}\right)}^{2}\right)}^{2} \cdot \left(t \cdot {\left(\sqrt[3]{k}\right)}^{2}\right)}} \cdot \ell \]
    9. Step-by-step derivation
      1. unpow277.4%

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

        \[\leadsto \frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{\color{blue}{{\left(t \cdot {\left(\sqrt[3]{k}\right)}^{2}\right)}^{3}}} \cdot \ell \]
    10. Simplified77.4%

      \[\leadsto \frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{\color{blue}{{\left(t \cdot {\left(\sqrt[3]{k}\right)}^{2}\right)}^{3}}} \cdot \ell \]
  3. Recombined 3 regimes into one program.
  4. Final simplification74.3%

    \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq 2.4 \cdot 10^{-60}:\\ \;\;\;\;\ell \cdot \left(2 \cdot \left(\left(\ell \cdot {k}^{-2}\right) \cdot \frac{\cos k}{t \cdot {\sin k}^{2}}\right)\right)\\ \mathbf{elif}\;t \leq 9.2 \cdot 10^{+77}:\\ \;\;\;\;\ell \cdot \left(\frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}}}{{t}^{3}} \cdot \frac{\ell}{\sin k \cdot \tan k}\right)\\ \mathbf{else}:\\ \;\;\;\;\ell \cdot \frac{\ell \cdot \frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}}}{{\left(t \cdot {\left(\sqrt[3]{k}\right)}^{2}\right)}^{3}}\\ \end{array} \]
  5. Add Preprocessing

Alternative 12: 78.0% accurate, 1.0× speedup?

\[\begin{array}{l} t\_m = \left|t\right| \\ t\_s = \mathsf{copysign}\left(1, t\right) \\ t\_s \cdot \begin{array}{l} \mathbf{if}\;t\_m \leq 840000000000:\\ \;\;\;\;\ell \cdot \left(2 \cdot \left(\left(\ell \cdot {k}^{-2}\right) \cdot \frac{\cos k}{t\_m \cdot {\sin k}^{2}}\right)\right)\\ \mathbf{else}:\\ \;\;\;\;\ell \cdot \frac{\ell \cdot \frac{2}{2 + {\left(\frac{k}{t\_m}\right)}^{2}}}{{\left(t\_m \cdot {\left(\sqrt[3]{k}\right)}^{2}\right)}^{3}}\\ \end{array} \end{array} \]
t\_m = (fabs.f64 t)
t\_s = (copysign.f64 #s(literal 1 binary64) t)
(FPCore (t_s t_m l k)
 :precision binary64
 (*
  t_s
  (if (<= t_m 840000000000.0)
    (* l (* 2.0 (* (* l (pow k -2.0)) (/ (cos k) (* t_m (pow (sin k) 2.0))))))
    (*
     l
     (/
      (* l (/ 2.0 (+ 2.0 (pow (/ k t_m) 2.0))))
      (pow (* t_m (pow (cbrt k) 2.0)) 3.0))))))
t\_m = fabs(t);
t\_s = copysign(1.0, t);
double code(double t_s, double t_m, double l, double k) {
	double tmp;
	if (t_m <= 840000000000.0) {
		tmp = l * (2.0 * ((l * pow(k, -2.0)) * (cos(k) / (t_m * pow(sin(k), 2.0)))));
	} else {
		tmp = l * ((l * (2.0 / (2.0 + pow((k / t_m), 2.0)))) / pow((t_m * pow(cbrt(k), 2.0)), 3.0));
	}
	return t_s * tmp;
}
t\_m = Math.abs(t);
t\_s = Math.copySign(1.0, t);
public static double code(double t_s, double t_m, double l, double k) {
	double tmp;
	if (t_m <= 840000000000.0) {
		tmp = l * (2.0 * ((l * Math.pow(k, -2.0)) * (Math.cos(k) / (t_m * Math.pow(Math.sin(k), 2.0)))));
	} else {
		tmp = l * ((l * (2.0 / (2.0 + Math.pow((k / t_m), 2.0)))) / Math.pow((t_m * Math.pow(Math.cbrt(k), 2.0)), 3.0));
	}
	return t_s * tmp;
}
t\_m = abs(t)
t\_s = copysign(1.0, t)
function code(t_s, t_m, l, k)
	tmp = 0.0
	if (t_m <= 840000000000.0)
		tmp = Float64(l * Float64(2.0 * Float64(Float64(l * (k ^ -2.0)) * Float64(cos(k) / Float64(t_m * (sin(k) ^ 2.0))))));
	else
		tmp = Float64(l * Float64(Float64(l * Float64(2.0 / Float64(2.0 + (Float64(k / t_m) ^ 2.0)))) / (Float64(t_m * (cbrt(k) ^ 2.0)) ^ 3.0)));
	end
	return Float64(t_s * tmp)
end
t\_m = N[Abs[t], $MachinePrecision]
t\_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[t]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
code[t$95$s_, t$95$m_, l_, k_] := N[(t$95$s * If[LessEqual[t$95$m, 840000000000.0], N[(l * N[(2.0 * N[(N[(l * N[Power[k, -2.0], $MachinePrecision]), $MachinePrecision] * N[(N[Cos[k], $MachinePrecision] / N[(t$95$m * N[Power[N[Sin[k], $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(l * N[(N[(l * N[(2.0 / N[(2.0 + N[Power[N[(k / t$95$m), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[Power[N[(t$95$m * N[Power[N[Power[k, 1/3], $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision], 3.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]), $MachinePrecision]
\begin{array}{l}
t\_m = \left|t\right|
\\
t\_s = \mathsf{copysign}\left(1, t\right)

\\
t\_s \cdot \begin{array}{l}
\mathbf{if}\;t\_m \leq 840000000000:\\
\;\;\;\;\ell \cdot \left(2 \cdot \left(\left(\ell \cdot {k}^{-2}\right) \cdot \frac{\cos k}{t\_m \cdot {\sin k}^{2}}\right)\right)\\

\mathbf{else}:\\
\;\;\;\;\ell \cdot \frac{\ell \cdot \frac{2}{2 + {\left(\frac{k}{t\_m}\right)}^{2}}}{{\left(t\_m \cdot {\left(\sqrt[3]{k}\right)}^{2}\right)}^{3}}\\


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if t < 8.4e11

    1. Initial program 53.4%

      \[\frac{2}{\left(\left(\frac{{t}^{3}}{\ell \cdot \ell} \cdot \sin k\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
    2. Simplified51.7%

      \[\leadsto \color{blue}{\frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}}}{{t}^{3} \cdot \left(\sin k \cdot \tan k\right)} \cdot \left(\ell \cdot \ell\right)} \]
    3. Add Preprocessing
    4. Step-by-step derivation
      1. associate-*r*59.4%

        \[\leadsto \color{blue}{\left(\frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}}}{{t}^{3} \cdot \left(\sin k \cdot \tan k\right)} \cdot \ell\right) \cdot \ell} \]
      2. associate-*l/58.3%

        \[\leadsto \color{blue}{\frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{{t}^{3} \cdot \left(\sin k \cdot \tan k\right)}} \cdot \ell \]
    5. Applied egg-rr58.3%

      \[\leadsto \color{blue}{\frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{{t}^{3} \cdot \left(\sin k \cdot \tan k\right)} \cdot \ell} \]
    6. Taylor expanded in k around inf 71.8%

      \[\leadsto \color{blue}{\left(2 \cdot \frac{\ell \cdot \cos k}{{k}^{2} \cdot \left(t \cdot {\sin k}^{2}\right)}\right)} \cdot \ell \]
    7. Step-by-step derivation
      1. times-frac72.3%

        \[\leadsto \left(2 \cdot \color{blue}{\left(\frac{\ell}{{k}^{2}} \cdot \frac{\cos k}{t \cdot {\sin k}^{2}}\right)}\right) \cdot \ell \]
    8. Simplified72.3%

      \[\leadsto \color{blue}{\left(2 \cdot \left(\frac{\ell}{{k}^{2}} \cdot \frac{\cos k}{t \cdot {\sin k}^{2}}\right)\right)} \cdot \ell \]
    9. Step-by-step derivation
      1. *-un-lft-identity72.3%

        \[\leadsto \left(2 \cdot \left(\color{blue}{\left(1 \cdot \frac{\ell}{{k}^{2}}\right)} \cdot \frac{\cos k}{t \cdot {\sin k}^{2}}\right)\right) \cdot \ell \]
      2. div-inv72.3%

        \[\leadsto \left(2 \cdot \left(\left(1 \cdot \color{blue}{\left(\ell \cdot \frac{1}{{k}^{2}}\right)}\right) \cdot \frac{\cos k}{t \cdot {\sin k}^{2}}\right)\right) \cdot \ell \]
      3. pow-flip72.5%

        \[\leadsto \left(2 \cdot \left(\left(1 \cdot \left(\ell \cdot \color{blue}{{k}^{\left(-2\right)}}\right)\right) \cdot \frac{\cos k}{t \cdot {\sin k}^{2}}\right)\right) \cdot \ell \]
      4. metadata-eval72.5%

        \[\leadsto \left(2 \cdot \left(\left(1 \cdot \left(\ell \cdot {k}^{\color{blue}{-2}}\right)\right) \cdot \frac{\cos k}{t \cdot {\sin k}^{2}}\right)\right) \cdot \ell \]
    10. Applied egg-rr72.5%

      \[\leadsto \left(2 \cdot \left(\color{blue}{\left(1 \cdot \left(\ell \cdot {k}^{-2}\right)\right)} \cdot \frac{\cos k}{t \cdot {\sin k}^{2}}\right)\right) \cdot \ell \]
    11. Step-by-step derivation
      1. *-lft-identity72.5%

        \[\leadsto \left(2 \cdot \left(\color{blue}{\left(\ell \cdot {k}^{-2}\right)} \cdot \frac{\cos k}{t \cdot {\sin k}^{2}}\right)\right) \cdot \ell \]
    12. Simplified72.5%

      \[\leadsto \left(2 \cdot \left(\color{blue}{\left(\ell \cdot {k}^{-2}\right)} \cdot \frac{\cos k}{t \cdot {\sin k}^{2}}\right)\right) \cdot \ell \]

    if 8.4e11 < t

    1. Initial program 61.3%

      \[\frac{2}{\left(\left(\frac{{t}^{3}}{\ell \cdot \ell} \cdot \sin k\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
    2. Simplified56.0%

      \[\leadsto \color{blue}{\frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}}}{{t}^{3} \cdot \left(\sin k \cdot \tan k\right)} \cdot \left(\ell \cdot \ell\right)} \]
    3. Add Preprocessing
    4. Step-by-step derivation
      1. associate-*r*59.9%

        \[\leadsto \color{blue}{\left(\frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}}}{{t}^{3} \cdot \left(\sin k \cdot \tan k\right)} \cdot \ell\right) \cdot \ell} \]
      2. associate-*l/63.9%

        \[\leadsto \color{blue}{\frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{{t}^{3} \cdot \left(\sin k \cdot \tan k\right)}} \cdot \ell \]
    5. Applied egg-rr63.9%

      \[\leadsto \color{blue}{\frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{{t}^{3} \cdot \left(\sin k \cdot \tan k\right)} \cdot \ell} \]
    6. Taylor expanded in k around 0 53.8%

      \[\leadsto \frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{\color{blue}{{k}^{2} \cdot {t}^{3}}} \cdot \ell \]
    7. Step-by-step derivation
      1. add-cube-cbrt53.8%

        \[\leadsto \frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{\color{blue}{\left(\sqrt[3]{{k}^{2} \cdot {t}^{3}} \cdot \sqrt[3]{{k}^{2} \cdot {t}^{3}}\right) \cdot \sqrt[3]{{k}^{2} \cdot {t}^{3}}}} \cdot \ell \]
      2. pow253.8%

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

        \[\leadsto \frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{{\left(\sqrt[3]{\color{blue}{{t}^{3} \cdot {k}^{2}}}\right)}^{2} \cdot \sqrt[3]{{k}^{2} \cdot {t}^{3}}} \cdot \ell \]
      4. cbrt-prod53.7%

        \[\leadsto \frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{{\color{blue}{\left(\sqrt[3]{{t}^{3}} \cdot \sqrt[3]{{k}^{2}}\right)}}^{2} \cdot \sqrt[3]{{k}^{2} \cdot {t}^{3}}} \cdot \ell \]
      5. unpow353.7%

        \[\leadsto \frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{{\left(\sqrt[3]{\color{blue}{\left(t \cdot t\right) \cdot t}} \cdot \sqrt[3]{{k}^{2}}\right)}^{2} \cdot \sqrt[3]{{k}^{2} \cdot {t}^{3}}} \cdot \ell \]
      6. add-cbrt-cube53.7%

        \[\leadsto \frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{{\left(\color{blue}{t} \cdot \sqrt[3]{{k}^{2}}\right)}^{2} \cdot \sqrt[3]{{k}^{2} \cdot {t}^{3}}} \cdot \ell \]
      7. unpow253.7%

        \[\leadsto \frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{{\left(t \cdot \sqrt[3]{\color{blue}{k \cdot k}}\right)}^{2} \cdot \sqrt[3]{{k}^{2} \cdot {t}^{3}}} \cdot \ell \]
      8. cbrt-prod53.7%

        \[\leadsto \frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{{\left(t \cdot \color{blue}{\left(\sqrt[3]{k} \cdot \sqrt[3]{k}\right)}\right)}^{2} \cdot \sqrt[3]{{k}^{2} \cdot {t}^{3}}} \cdot \ell \]
      9. pow253.7%

        \[\leadsto \frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{{\left(t \cdot \color{blue}{{\left(\sqrt[3]{k}\right)}^{2}}\right)}^{2} \cdot \sqrt[3]{{k}^{2} \cdot {t}^{3}}} \cdot \ell \]
      10. *-commutative53.7%

        \[\leadsto \frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{{\left(t \cdot {\left(\sqrt[3]{k}\right)}^{2}\right)}^{2} \cdot \sqrt[3]{\color{blue}{{t}^{3} \cdot {k}^{2}}}} \cdot \ell \]
      11. cbrt-prod53.7%

        \[\leadsto \frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{{\left(t \cdot {\left(\sqrt[3]{k}\right)}^{2}\right)}^{2} \cdot \color{blue}{\left(\sqrt[3]{{t}^{3}} \cdot \sqrt[3]{{k}^{2}}\right)}} \cdot \ell \]
      12. unpow353.7%

        \[\leadsto \frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{{\left(t \cdot {\left(\sqrt[3]{k}\right)}^{2}\right)}^{2} \cdot \left(\sqrt[3]{\color{blue}{\left(t \cdot t\right) \cdot t}} \cdot \sqrt[3]{{k}^{2}}\right)} \cdot \ell \]
      13. add-cbrt-cube58.5%

        \[\leadsto \frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{{\left(t \cdot {\left(\sqrt[3]{k}\right)}^{2}\right)}^{2} \cdot \left(\color{blue}{t} \cdot \sqrt[3]{{k}^{2}}\right)} \cdot \ell \]
      14. unpow258.5%

        \[\leadsto \frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{{\left(t \cdot {\left(\sqrt[3]{k}\right)}^{2}\right)}^{2} \cdot \left(t \cdot \sqrt[3]{\color{blue}{k \cdot k}}\right)} \cdot \ell \]
      15. cbrt-prod73.3%

        \[\leadsto \frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{{\left(t \cdot {\left(\sqrt[3]{k}\right)}^{2}\right)}^{2} \cdot \left(t \cdot \color{blue}{\left(\sqrt[3]{k} \cdot \sqrt[3]{k}\right)}\right)} \cdot \ell \]
      16. pow273.3%

        \[\leadsto \frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{{\left(t \cdot {\left(\sqrt[3]{k}\right)}^{2}\right)}^{2} \cdot \left(t \cdot \color{blue}{{\left(\sqrt[3]{k}\right)}^{2}}\right)} \cdot \ell \]
    8. Applied egg-rr73.3%

      \[\leadsto \frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{\color{blue}{{\left(t \cdot {\left(\sqrt[3]{k}\right)}^{2}\right)}^{2} \cdot \left(t \cdot {\left(\sqrt[3]{k}\right)}^{2}\right)}} \cdot \ell \]
    9. Step-by-step derivation
      1. unpow273.3%

        \[\leadsto \frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{\color{blue}{\left(\left(t \cdot {\left(\sqrt[3]{k}\right)}^{2}\right) \cdot \left(t \cdot {\left(\sqrt[3]{k}\right)}^{2}\right)\right)} \cdot \left(t \cdot {\left(\sqrt[3]{k}\right)}^{2}\right)} \cdot \ell \]
      2. unpow373.3%

        \[\leadsto \frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{\color{blue}{{\left(t \cdot {\left(\sqrt[3]{k}\right)}^{2}\right)}^{3}}} \cdot \ell \]
    10. Simplified73.3%

      \[\leadsto \frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{\color{blue}{{\left(t \cdot {\left(\sqrt[3]{k}\right)}^{2}\right)}^{3}}} \cdot \ell \]
  3. Recombined 2 regimes into one program.
  4. Final simplification72.7%

    \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq 840000000000:\\ \;\;\;\;\ell \cdot \left(2 \cdot \left(\left(\ell \cdot {k}^{-2}\right) \cdot \frac{\cos k}{t \cdot {\sin k}^{2}}\right)\right)\\ \mathbf{else}:\\ \;\;\;\;\ell \cdot \frac{\ell \cdot \frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}}}{{\left(t \cdot {\left(\sqrt[3]{k}\right)}^{2}\right)}^{3}}\\ \end{array} \]
  5. Add Preprocessing

Alternative 13: 74.8% accurate, 1.0× speedup?

\[\begin{array}{l} t\_m = \left|t\right| \\ t\_s = \mathsf{copysign}\left(1, t\right) \\ t\_s \cdot \begin{array}{l} \mathbf{if}\;t\_m \leq 2.9 \cdot 10^{+35}:\\ \;\;\;\;\ell \cdot \left(2 \cdot \left(\left(\ell \cdot {k}^{-2}\right) \cdot \frac{\cos k}{t\_m \cdot {\sin k}^{2}}\right)\right)\\ \mathbf{else}:\\ \;\;\;\;\frac{1}{{\left(t\_m \cdot {\left(\sqrt[3]{k}\right)}^{2}\right)}^{3}} \cdot \left(\ell \cdot \ell\right)\\ \end{array} \end{array} \]
t\_m = (fabs.f64 t)
t\_s = (copysign.f64 #s(literal 1 binary64) t)
(FPCore (t_s t_m l k)
 :precision binary64
 (*
  t_s
  (if (<= t_m 2.9e+35)
    (* l (* 2.0 (* (* l (pow k -2.0)) (/ (cos k) (* t_m (pow (sin k) 2.0))))))
    (* (/ 1.0 (pow (* t_m (pow (cbrt k) 2.0)) 3.0)) (* l l)))))
t\_m = fabs(t);
t\_s = copysign(1.0, t);
double code(double t_s, double t_m, double l, double k) {
	double tmp;
	if (t_m <= 2.9e+35) {
		tmp = l * (2.0 * ((l * pow(k, -2.0)) * (cos(k) / (t_m * pow(sin(k), 2.0)))));
	} else {
		tmp = (1.0 / pow((t_m * pow(cbrt(k), 2.0)), 3.0)) * (l * l);
	}
	return t_s * tmp;
}
t\_m = Math.abs(t);
t\_s = Math.copySign(1.0, t);
public static double code(double t_s, double t_m, double l, double k) {
	double tmp;
	if (t_m <= 2.9e+35) {
		tmp = l * (2.0 * ((l * Math.pow(k, -2.0)) * (Math.cos(k) / (t_m * Math.pow(Math.sin(k), 2.0)))));
	} else {
		tmp = (1.0 / Math.pow((t_m * Math.pow(Math.cbrt(k), 2.0)), 3.0)) * (l * l);
	}
	return t_s * tmp;
}
t\_m = abs(t)
t\_s = copysign(1.0, t)
function code(t_s, t_m, l, k)
	tmp = 0.0
	if (t_m <= 2.9e+35)
		tmp = Float64(l * Float64(2.0 * Float64(Float64(l * (k ^ -2.0)) * Float64(cos(k) / Float64(t_m * (sin(k) ^ 2.0))))));
	else
		tmp = Float64(Float64(1.0 / (Float64(t_m * (cbrt(k) ^ 2.0)) ^ 3.0)) * Float64(l * l));
	end
	return Float64(t_s * tmp)
end
t\_m = N[Abs[t], $MachinePrecision]
t\_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[t]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
code[t$95$s_, t$95$m_, l_, k_] := N[(t$95$s * If[LessEqual[t$95$m, 2.9e+35], N[(l * N[(2.0 * N[(N[(l * N[Power[k, -2.0], $MachinePrecision]), $MachinePrecision] * N[(N[Cos[k], $MachinePrecision] / N[(t$95$m * N[Power[N[Sin[k], $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(1.0 / N[Power[N[(t$95$m * N[Power[N[Power[k, 1/3], $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision], 3.0], $MachinePrecision]), $MachinePrecision] * N[(l * l), $MachinePrecision]), $MachinePrecision]]), $MachinePrecision]
\begin{array}{l}
t\_m = \left|t\right|
\\
t\_s = \mathsf{copysign}\left(1, t\right)

\\
t\_s \cdot \begin{array}{l}
\mathbf{if}\;t\_m \leq 2.9 \cdot 10^{+35}:\\
\;\;\;\;\ell \cdot \left(2 \cdot \left(\left(\ell \cdot {k}^{-2}\right) \cdot \frac{\cos k}{t\_m \cdot {\sin k}^{2}}\right)\right)\\

\mathbf{else}:\\
\;\;\;\;\frac{1}{{\left(t\_m \cdot {\left(\sqrt[3]{k}\right)}^{2}\right)}^{3}} \cdot \left(\ell \cdot \ell\right)\\


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if t < 2.89999999999999995e35

    1. Initial program 53.6%

      \[\frac{2}{\left(\left(\frac{{t}^{3}}{\ell \cdot \ell} \cdot \sin k\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
    2. Simplified51.4%

      \[\leadsto \color{blue}{\frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}}}{{t}^{3} \cdot \left(\sin k \cdot \tan k\right)} \cdot \left(\ell \cdot \ell\right)} \]
    3. Add Preprocessing
    4. Step-by-step derivation
      1. associate-*r*59.1%

        \[\leadsto \color{blue}{\left(\frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}}}{{t}^{3} \cdot \left(\sin k \cdot \tan k\right)} \cdot \ell\right) \cdot \ell} \]
      2. associate-*l/58.8%

        \[\leadsto \color{blue}{\frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{{t}^{3} \cdot \left(\sin k \cdot \tan k\right)}} \cdot \ell \]
    5. Applied egg-rr58.8%

      \[\leadsto \color{blue}{\frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{{t}^{3} \cdot \left(\sin k \cdot \tan k\right)} \cdot \ell} \]
    6. Taylor expanded in k around inf 71.0%

      \[\leadsto \color{blue}{\left(2 \cdot \frac{\ell \cdot \cos k}{{k}^{2} \cdot \left(t \cdot {\sin k}^{2}\right)}\right)} \cdot \ell \]
    7. Step-by-step derivation
      1. times-frac72.0%

        \[\leadsto \left(2 \cdot \color{blue}{\left(\frac{\ell}{{k}^{2}} \cdot \frac{\cos k}{t \cdot {\sin k}^{2}}\right)}\right) \cdot \ell \]
    8. Simplified72.0%

      \[\leadsto \color{blue}{\left(2 \cdot \left(\frac{\ell}{{k}^{2}} \cdot \frac{\cos k}{t \cdot {\sin k}^{2}}\right)\right)} \cdot \ell \]
    9. Step-by-step derivation
      1. *-un-lft-identity72.0%

        \[\leadsto \left(2 \cdot \left(\color{blue}{\left(1 \cdot \frac{\ell}{{k}^{2}}\right)} \cdot \frac{\cos k}{t \cdot {\sin k}^{2}}\right)\right) \cdot \ell \]
      2. div-inv72.0%

        \[\leadsto \left(2 \cdot \left(\left(1 \cdot \color{blue}{\left(\ell \cdot \frac{1}{{k}^{2}}\right)}\right) \cdot \frac{\cos k}{t \cdot {\sin k}^{2}}\right)\right) \cdot \ell \]
      3. pow-flip72.5%

        \[\leadsto \left(2 \cdot \left(\left(1 \cdot \left(\ell \cdot \color{blue}{{k}^{\left(-2\right)}}\right)\right) \cdot \frac{\cos k}{t \cdot {\sin k}^{2}}\right)\right) \cdot \ell \]
      4. metadata-eval72.5%

        \[\leadsto \left(2 \cdot \left(\left(1 \cdot \left(\ell \cdot {k}^{\color{blue}{-2}}\right)\right) \cdot \frac{\cos k}{t \cdot {\sin k}^{2}}\right)\right) \cdot \ell \]
    10. Applied egg-rr72.5%

      \[\leadsto \left(2 \cdot \left(\color{blue}{\left(1 \cdot \left(\ell \cdot {k}^{-2}\right)\right)} \cdot \frac{\cos k}{t \cdot {\sin k}^{2}}\right)\right) \cdot \ell \]
    11. Step-by-step derivation
      1. *-lft-identity72.5%

        \[\leadsto \left(2 \cdot \left(\color{blue}{\left(\ell \cdot {k}^{-2}\right)} \cdot \frac{\cos k}{t \cdot {\sin k}^{2}}\right)\right) \cdot \ell \]
    12. Simplified72.5%

      \[\leadsto \left(2 \cdot \left(\color{blue}{\left(\ell \cdot {k}^{-2}\right)} \cdot \frac{\cos k}{t \cdot {\sin k}^{2}}\right)\right) \cdot \ell \]

    if 2.89999999999999995e35 < t

    1. Initial program 61.3%

      \[\frac{2}{\left(\left(\frac{{t}^{3}}{\ell \cdot \ell} \cdot \sin k\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
    2. Simplified57.2%

      \[\leadsto \color{blue}{\frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}}}{{t}^{3} \cdot \left(\sin k \cdot \tan k\right)} \cdot \left(\ell \cdot \ell\right)} \]
    3. Add Preprocessing
    4. Taylor expanded in k around 0 52.6%

      \[\leadsto \color{blue}{\frac{1}{{k}^{2} \cdot {t}^{3}}} \cdot \left(\ell \cdot \ell\right) \]
    5. Step-by-step derivation
      1. add-cube-cbrt54.7%

        \[\leadsto \frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{\color{blue}{\left(\sqrt[3]{{k}^{2} \cdot {t}^{3}} \cdot \sqrt[3]{{k}^{2} \cdot {t}^{3}}\right) \cdot \sqrt[3]{{k}^{2} \cdot {t}^{3}}}} \cdot \ell \]
      2. pow254.7%

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

        \[\leadsto \frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{{\left(\sqrt[3]{\color{blue}{{t}^{3} \cdot {k}^{2}}}\right)}^{2} \cdot \sqrt[3]{{k}^{2} \cdot {t}^{3}}} \cdot \ell \]
      4. cbrt-prod54.7%

        \[\leadsto \frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{{\color{blue}{\left(\sqrt[3]{{t}^{3}} \cdot \sqrt[3]{{k}^{2}}\right)}}^{2} \cdot \sqrt[3]{{k}^{2} \cdot {t}^{3}}} \cdot \ell \]
      5. unpow354.7%

        \[\leadsto \frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{{\left(\sqrt[3]{\color{blue}{\left(t \cdot t\right) \cdot t}} \cdot \sqrt[3]{{k}^{2}}\right)}^{2} \cdot \sqrt[3]{{k}^{2} \cdot {t}^{3}}} \cdot \ell \]
      6. add-cbrt-cube54.7%

        \[\leadsto \frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{{\left(\color{blue}{t} \cdot \sqrt[3]{{k}^{2}}\right)}^{2} \cdot \sqrt[3]{{k}^{2} \cdot {t}^{3}}} \cdot \ell \]
      7. unpow254.7%

        \[\leadsto \frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{{\left(t \cdot \sqrt[3]{\color{blue}{k \cdot k}}\right)}^{2} \cdot \sqrt[3]{{k}^{2} \cdot {t}^{3}}} \cdot \ell \]
      8. cbrt-prod54.7%

        \[\leadsto \frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{{\left(t \cdot \color{blue}{\left(\sqrt[3]{k} \cdot \sqrt[3]{k}\right)}\right)}^{2} \cdot \sqrt[3]{{k}^{2} \cdot {t}^{3}}} \cdot \ell \]
      9. pow254.7%

        \[\leadsto \frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{{\left(t \cdot \color{blue}{{\left(\sqrt[3]{k}\right)}^{2}}\right)}^{2} \cdot \sqrt[3]{{k}^{2} \cdot {t}^{3}}} \cdot \ell \]
      10. *-commutative54.7%

        \[\leadsto \frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{{\left(t \cdot {\left(\sqrt[3]{k}\right)}^{2}\right)}^{2} \cdot \sqrt[3]{\color{blue}{{t}^{3} \cdot {k}^{2}}}} \cdot \ell \]
      11. cbrt-prod54.6%

        \[\leadsto \frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{{\left(t \cdot {\left(\sqrt[3]{k}\right)}^{2}\right)}^{2} \cdot \color{blue}{\left(\sqrt[3]{{t}^{3}} \cdot \sqrt[3]{{k}^{2}}\right)}} \cdot \ell \]
      12. unpow354.6%

        \[\leadsto \frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{{\left(t \cdot {\left(\sqrt[3]{k}\right)}^{2}\right)}^{2} \cdot \left(\sqrt[3]{\color{blue}{\left(t \cdot t\right) \cdot t}} \cdot \sqrt[3]{{k}^{2}}\right)} \cdot \ell \]
      13. add-cbrt-cube59.9%

        \[\leadsto \frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{{\left(t \cdot {\left(\sqrt[3]{k}\right)}^{2}\right)}^{2} \cdot \left(\color{blue}{t} \cdot \sqrt[3]{{k}^{2}}\right)} \cdot \ell \]
      14. unpow259.9%

        \[\leadsto \frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{{\left(t \cdot {\left(\sqrt[3]{k}\right)}^{2}\right)}^{2} \cdot \left(t \cdot \sqrt[3]{\color{blue}{k \cdot k}}\right)} \cdot \ell \]
      15. cbrt-prod75.9%

        \[\leadsto \frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{{\left(t \cdot {\left(\sqrt[3]{k}\right)}^{2}\right)}^{2} \cdot \left(t \cdot \color{blue}{\left(\sqrt[3]{k} \cdot \sqrt[3]{k}\right)}\right)} \cdot \ell \]
      16. pow275.9%

        \[\leadsto \frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{{\left(t \cdot {\left(\sqrt[3]{k}\right)}^{2}\right)}^{2} \cdot \left(t \cdot \color{blue}{{\left(\sqrt[3]{k}\right)}^{2}}\right)} \cdot \ell \]
    6. Applied egg-rr70.7%

      \[\leadsto \frac{1}{\color{blue}{{\left(t \cdot {\left(\sqrt[3]{k}\right)}^{2}\right)}^{2} \cdot \left(t \cdot {\left(\sqrt[3]{k}\right)}^{2}\right)}} \cdot \left(\ell \cdot \ell\right) \]
    7. Step-by-step derivation
      1. unpow275.9%

        \[\leadsto \frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{\color{blue}{\left(\left(t \cdot {\left(\sqrt[3]{k}\right)}^{2}\right) \cdot \left(t \cdot {\left(\sqrt[3]{k}\right)}^{2}\right)\right)} \cdot \left(t \cdot {\left(\sqrt[3]{k}\right)}^{2}\right)} \cdot \ell \]
      2. unpow375.9%

        \[\leadsto \frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{\color{blue}{{\left(t \cdot {\left(\sqrt[3]{k}\right)}^{2}\right)}^{3}}} \cdot \ell \]
    8. Simplified70.7%

      \[\leadsto \frac{1}{\color{blue}{{\left(t \cdot {\left(\sqrt[3]{k}\right)}^{2}\right)}^{3}}} \cdot \left(\ell \cdot \ell\right) \]
  3. Recombined 2 regimes into one program.
  4. Final simplification72.1%

    \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq 2.9 \cdot 10^{+35}:\\ \;\;\;\;\ell \cdot \left(2 \cdot \left(\left(\ell \cdot {k}^{-2}\right) \cdot \frac{\cos k}{t \cdot {\sin k}^{2}}\right)\right)\\ \mathbf{else}:\\ \;\;\;\;\frac{1}{{\left(t \cdot {\left(\sqrt[3]{k}\right)}^{2}\right)}^{3}} \cdot \left(\ell \cdot \ell\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 14: 74.2% accurate, 1.0× speedup?

\[\begin{array}{l} t\_m = \left|t\right| \\ t\_s = \mathsf{copysign}\left(1, t\right) \\ t\_s \cdot \begin{array}{l} \mathbf{if}\;t\_m \leq 3.4 \cdot 10^{+35}:\\ \;\;\;\;2 \cdot \left(\left(\ell \cdot {k}^{-2}\right) \cdot \left(\ell \cdot \frac{\frac{\cos k}{t\_m}}{{\sin k}^{2}}\right)\right)\\ \mathbf{else}:\\ \;\;\;\;\frac{1}{{\left(t\_m \cdot {\left(\sqrt[3]{k}\right)}^{2}\right)}^{3}} \cdot \left(\ell \cdot \ell\right)\\ \end{array} \end{array} \]
t\_m = (fabs.f64 t)
t\_s = (copysign.f64 #s(literal 1 binary64) t)
(FPCore (t_s t_m l k)
 :precision binary64
 (*
  t_s
  (if (<= t_m 3.4e+35)
    (* 2.0 (* (* l (pow k -2.0)) (* l (/ (/ (cos k) t_m) (pow (sin k) 2.0)))))
    (* (/ 1.0 (pow (* t_m (pow (cbrt k) 2.0)) 3.0)) (* l l)))))
t\_m = fabs(t);
t\_s = copysign(1.0, t);
double code(double t_s, double t_m, double l, double k) {
	double tmp;
	if (t_m <= 3.4e+35) {
		tmp = 2.0 * ((l * pow(k, -2.0)) * (l * ((cos(k) / t_m) / pow(sin(k), 2.0))));
	} else {
		tmp = (1.0 / pow((t_m * pow(cbrt(k), 2.0)), 3.0)) * (l * l);
	}
	return t_s * tmp;
}
t\_m = Math.abs(t);
t\_s = Math.copySign(1.0, t);
public static double code(double t_s, double t_m, double l, double k) {
	double tmp;
	if (t_m <= 3.4e+35) {
		tmp = 2.0 * ((l * Math.pow(k, -2.0)) * (l * ((Math.cos(k) / t_m) / Math.pow(Math.sin(k), 2.0))));
	} else {
		tmp = (1.0 / Math.pow((t_m * Math.pow(Math.cbrt(k), 2.0)), 3.0)) * (l * l);
	}
	return t_s * tmp;
}
t\_m = abs(t)
t\_s = copysign(1.0, t)
function code(t_s, t_m, l, k)
	tmp = 0.0
	if (t_m <= 3.4e+35)
		tmp = Float64(2.0 * Float64(Float64(l * (k ^ -2.0)) * Float64(l * Float64(Float64(cos(k) / t_m) / (sin(k) ^ 2.0)))));
	else
		tmp = Float64(Float64(1.0 / (Float64(t_m * (cbrt(k) ^ 2.0)) ^ 3.0)) * Float64(l * l));
	end
	return Float64(t_s * tmp)
end
t\_m = N[Abs[t], $MachinePrecision]
t\_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[t]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
code[t$95$s_, t$95$m_, l_, k_] := N[(t$95$s * If[LessEqual[t$95$m, 3.4e+35], N[(2.0 * N[(N[(l * N[Power[k, -2.0], $MachinePrecision]), $MachinePrecision] * N[(l * N[(N[(N[Cos[k], $MachinePrecision] / t$95$m), $MachinePrecision] / N[Power[N[Sin[k], $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(1.0 / N[Power[N[(t$95$m * N[Power[N[Power[k, 1/3], $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision], 3.0], $MachinePrecision]), $MachinePrecision] * N[(l * l), $MachinePrecision]), $MachinePrecision]]), $MachinePrecision]
\begin{array}{l}
t\_m = \left|t\right|
\\
t\_s = \mathsf{copysign}\left(1, t\right)

\\
t\_s \cdot \begin{array}{l}
\mathbf{if}\;t\_m \leq 3.4 \cdot 10^{+35}:\\
\;\;\;\;2 \cdot \left(\left(\ell \cdot {k}^{-2}\right) \cdot \left(\ell \cdot \frac{\frac{\cos k}{t\_m}}{{\sin k}^{2}}\right)\right)\\

\mathbf{else}:\\
\;\;\;\;\frac{1}{{\left(t\_m \cdot {\left(\sqrt[3]{k}\right)}^{2}\right)}^{3}} \cdot \left(\ell \cdot \ell\right)\\


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if t < 3.4000000000000001e35

    1. Initial program 53.6%

      \[\frac{2}{\left(\left(\frac{{t}^{3}}{\ell \cdot \ell} \cdot \sin k\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
    2. Simplified51.4%

      \[\leadsto \color{blue}{\frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}}}{{t}^{3} \cdot \left(\sin k \cdot \tan k\right)} \cdot \left(\ell \cdot \ell\right)} \]
    3. Add Preprocessing
    4. Step-by-step derivation
      1. associate-*r*59.1%

        \[\leadsto \color{blue}{\left(\frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}}}{{t}^{3} \cdot \left(\sin k \cdot \tan k\right)} \cdot \ell\right) \cdot \ell} \]
      2. associate-*l/58.8%

        \[\leadsto \color{blue}{\frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{{t}^{3} \cdot \left(\sin k \cdot \tan k\right)}} \cdot \ell \]
    5. Applied egg-rr58.8%

      \[\leadsto \color{blue}{\frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{{t}^{3} \cdot \left(\sin k \cdot \tan k\right)} \cdot \ell} \]
    6. Taylor expanded in k around inf 71.0%

      \[\leadsto \color{blue}{\left(2 \cdot \frac{\ell \cdot \cos k}{{k}^{2} \cdot \left(t \cdot {\sin k}^{2}\right)}\right)} \cdot \ell \]
    7. Step-by-step derivation
      1. times-frac72.0%

        \[\leadsto \left(2 \cdot \color{blue}{\left(\frac{\ell}{{k}^{2}} \cdot \frac{\cos k}{t \cdot {\sin k}^{2}}\right)}\right) \cdot \ell \]
    8. Simplified72.0%

      \[\leadsto \color{blue}{\left(2 \cdot \left(\frac{\ell}{{k}^{2}} \cdot \frac{\cos k}{t \cdot {\sin k}^{2}}\right)\right)} \cdot \ell \]
    9. Step-by-step derivation
      1. *-un-lft-identity72.0%

        \[\leadsto \color{blue}{1 \cdot \left(\left(2 \cdot \left(\frac{\ell}{{k}^{2}} \cdot \frac{\cos k}{t \cdot {\sin k}^{2}}\right)\right) \cdot \ell\right)} \]
      2. *-commutative72.0%

        \[\leadsto 1 \cdot \color{blue}{\left(\ell \cdot \left(2 \cdot \left(\frac{\ell}{{k}^{2}} \cdot \frac{\cos k}{t \cdot {\sin k}^{2}}\right)\right)\right)} \]
      3. div-inv72.0%

        \[\leadsto 1 \cdot \left(\ell \cdot \left(2 \cdot \left(\color{blue}{\left(\ell \cdot \frac{1}{{k}^{2}}\right)} \cdot \frac{\cos k}{t \cdot {\sin k}^{2}}\right)\right)\right) \]
      4. pow-flip72.5%

        \[\leadsto 1 \cdot \left(\ell \cdot \left(2 \cdot \left(\left(\ell \cdot \color{blue}{{k}^{\left(-2\right)}}\right) \cdot \frac{\cos k}{t \cdot {\sin k}^{2}}\right)\right)\right) \]
      5. metadata-eval72.5%

        \[\leadsto 1 \cdot \left(\ell \cdot \left(2 \cdot \left(\left(\ell \cdot {k}^{\color{blue}{-2}}\right) \cdot \frac{\cos k}{t \cdot {\sin k}^{2}}\right)\right)\right) \]
      6. associate-/r*72.5%

        \[\leadsto 1 \cdot \left(\ell \cdot \left(2 \cdot \left(\left(\ell \cdot {k}^{-2}\right) \cdot \color{blue}{\frac{\frac{\cos k}{t}}{{\sin k}^{2}}}\right)\right)\right) \]
    10. Applied egg-rr72.5%

      \[\leadsto \color{blue}{1 \cdot \left(\ell \cdot \left(2 \cdot \left(\left(\ell \cdot {k}^{-2}\right) \cdot \frac{\frac{\cos k}{t}}{{\sin k}^{2}}\right)\right)\right)} \]
    11. Step-by-step derivation
      1. *-lft-identity72.5%

        \[\leadsto \color{blue}{\ell \cdot \left(2 \cdot \left(\left(\ell \cdot {k}^{-2}\right) \cdot \frac{\frac{\cos k}{t}}{{\sin k}^{2}}\right)\right)} \]
      2. *-commutative72.5%

        \[\leadsto \color{blue}{\left(2 \cdot \left(\left(\ell \cdot {k}^{-2}\right) \cdot \frac{\frac{\cos k}{t}}{{\sin k}^{2}}\right)\right) \cdot \ell} \]
      3. associate-*r*72.5%

        \[\leadsto \color{blue}{2 \cdot \left(\left(\left(\ell \cdot {k}^{-2}\right) \cdot \frac{\frac{\cos k}{t}}{{\sin k}^{2}}\right) \cdot \ell\right)} \]
      4. associate-*l*71.2%

        \[\leadsto 2 \cdot \color{blue}{\left(\left(\ell \cdot {k}^{-2}\right) \cdot \left(\frac{\frac{\cos k}{t}}{{\sin k}^{2}} \cdot \ell\right)\right)} \]
      5. *-commutative71.2%

        \[\leadsto 2 \cdot \left(\left(\ell \cdot {k}^{-2}\right) \cdot \color{blue}{\left(\ell \cdot \frac{\frac{\cos k}{t}}{{\sin k}^{2}}\right)}\right) \]
    12. Simplified71.2%

      \[\leadsto \color{blue}{2 \cdot \left(\left(\ell \cdot {k}^{-2}\right) \cdot \left(\ell \cdot \frac{\frac{\cos k}{t}}{{\sin k}^{2}}\right)\right)} \]

    if 3.4000000000000001e35 < t

    1. Initial program 61.3%

      \[\frac{2}{\left(\left(\frac{{t}^{3}}{\ell \cdot \ell} \cdot \sin k\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
    2. Simplified57.2%

      \[\leadsto \color{blue}{\frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}}}{{t}^{3} \cdot \left(\sin k \cdot \tan k\right)} \cdot \left(\ell \cdot \ell\right)} \]
    3. Add Preprocessing
    4. Taylor expanded in k around 0 52.6%

      \[\leadsto \color{blue}{\frac{1}{{k}^{2} \cdot {t}^{3}}} \cdot \left(\ell \cdot \ell\right) \]
    5. Step-by-step derivation
      1. add-cube-cbrt54.7%

        \[\leadsto \frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{\color{blue}{\left(\sqrt[3]{{k}^{2} \cdot {t}^{3}} \cdot \sqrt[3]{{k}^{2} \cdot {t}^{3}}\right) \cdot \sqrt[3]{{k}^{2} \cdot {t}^{3}}}} \cdot \ell \]
      2. pow254.7%

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

        \[\leadsto \frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{{\left(\sqrt[3]{\color{blue}{{t}^{3} \cdot {k}^{2}}}\right)}^{2} \cdot \sqrt[3]{{k}^{2} \cdot {t}^{3}}} \cdot \ell \]
      4. cbrt-prod54.7%

        \[\leadsto \frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{{\color{blue}{\left(\sqrt[3]{{t}^{3}} \cdot \sqrt[3]{{k}^{2}}\right)}}^{2} \cdot \sqrt[3]{{k}^{2} \cdot {t}^{3}}} \cdot \ell \]
      5. unpow354.7%

        \[\leadsto \frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{{\left(\sqrt[3]{\color{blue}{\left(t \cdot t\right) \cdot t}} \cdot \sqrt[3]{{k}^{2}}\right)}^{2} \cdot \sqrt[3]{{k}^{2} \cdot {t}^{3}}} \cdot \ell \]
      6. add-cbrt-cube54.7%

        \[\leadsto \frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{{\left(\color{blue}{t} \cdot \sqrt[3]{{k}^{2}}\right)}^{2} \cdot \sqrt[3]{{k}^{2} \cdot {t}^{3}}} \cdot \ell \]
      7. unpow254.7%

        \[\leadsto \frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{{\left(t \cdot \sqrt[3]{\color{blue}{k \cdot k}}\right)}^{2} \cdot \sqrt[3]{{k}^{2} \cdot {t}^{3}}} \cdot \ell \]
      8. cbrt-prod54.7%

        \[\leadsto \frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{{\left(t \cdot \color{blue}{\left(\sqrt[3]{k} \cdot \sqrt[3]{k}\right)}\right)}^{2} \cdot \sqrt[3]{{k}^{2} \cdot {t}^{3}}} \cdot \ell \]
      9. pow254.7%

        \[\leadsto \frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{{\left(t \cdot \color{blue}{{\left(\sqrt[3]{k}\right)}^{2}}\right)}^{2} \cdot \sqrt[3]{{k}^{2} \cdot {t}^{3}}} \cdot \ell \]
      10. *-commutative54.7%

        \[\leadsto \frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{{\left(t \cdot {\left(\sqrt[3]{k}\right)}^{2}\right)}^{2} \cdot \sqrt[3]{\color{blue}{{t}^{3} \cdot {k}^{2}}}} \cdot \ell \]
      11. cbrt-prod54.6%

        \[\leadsto \frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{{\left(t \cdot {\left(\sqrt[3]{k}\right)}^{2}\right)}^{2} \cdot \color{blue}{\left(\sqrt[3]{{t}^{3}} \cdot \sqrt[3]{{k}^{2}}\right)}} \cdot \ell \]
      12. unpow354.6%

        \[\leadsto \frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{{\left(t \cdot {\left(\sqrt[3]{k}\right)}^{2}\right)}^{2} \cdot \left(\sqrt[3]{\color{blue}{\left(t \cdot t\right) \cdot t}} \cdot \sqrt[3]{{k}^{2}}\right)} \cdot \ell \]
      13. add-cbrt-cube59.9%

        \[\leadsto \frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{{\left(t \cdot {\left(\sqrt[3]{k}\right)}^{2}\right)}^{2} \cdot \left(\color{blue}{t} \cdot \sqrt[3]{{k}^{2}}\right)} \cdot \ell \]
      14. unpow259.9%

        \[\leadsto \frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{{\left(t \cdot {\left(\sqrt[3]{k}\right)}^{2}\right)}^{2} \cdot \left(t \cdot \sqrt[3]{\color{blue}{k \cdot k}}\right)} \cdot \ell \]
      15. cbrt-prod75.9%

        \[\leadsto \frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{{\left(t \cdot {\left(\sqrt[3]{k}\right)}^{2}\right)}^{2} \cdot \left(t \cdot \color{blue}{\left(\sqrt[3]{k} \cdot \sqrt[3]{k}\right)}\right)} \cdot \ell \]
      16. pow275.9%

        \[\leadsto \frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{{\left(t \cdot {\left(\sqrt[3]{k}\right)}^{2}\right)}^{2} \cdot \left(t \cdot \color{blue}{{\left(\sqrt[3]{k}\right)}^{2}}\right)} \cdot \ell \]
    6. Applied egg-rr70.7%

      \[\leadsto \frac{1}{\color{blue}{{\left(t \cdot {\left(\sqrt[3]{k}\right)}^{2}\right)}^{2} \cdot \left(t \cdot {\left(\sqrt[3]{k}\right)}^{2}\right)}} \cdot \left(\ell \cdot \ell\right) \]
    7. Step-by-step derivation
      1. unpow275.9%

        \[\leadsto \frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{\color{blue}{\left(\left(t \cdot {\left(\sqrt[3]{k}\right)}^{2}\right) \cdot \left(t \cdot {\left(\sqrt[3]{k}\right)}^{2}\right)\right)} \cdot \left(t \cdot {\left(\sqrt[3]{k}\right)}^{2}\right)} \cdot \ell \]
      2. unpow375.9%

        \[\leadsto \frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{\color{blue}{{\left(t \cdot {\left(\sqrt[3]{k}\right)}^{2}\right)}^{3}}} \cdot \ell \]
    8. Simplified70.7%

      \[\leadsto \frac{1}{\color{blue}{{\left(t \cdot {\left(\sqrt[3]{k}\right)}^{2}\right)}^{3}}} \cdot \left(\ell \cdot \ell\right) \]
  3. Recombined 2 regimes into one program.
  4. Add Preprocessing

Alternative 15: 67.9% accurate, 1.3× speedup?

\[\begin{array}{l} t\_m = \left|t\right| \\ t\_s = \mathsf{copysign}\left(1, t\right) \\ t\_s \cdot \begin{array}{l} \mathbf{if}\;t\_m \leq 1.7 \cdot 10^{-70}:\\ \;\;\;\;\ell \cdot \left(2 \cdot \left(\frac{\ell}{{k}^{2}} \cdot \frac{\cos k}{t\_m \cdot {k}^{2}}\right)\right)\\ \mathbf{else}:\\ \;\;\;\;\frac{1}{{\left(t\_m \cdot {\left(\sqrt[3]{k}\right)}^{2}\right)}^{3}} \cdot \left(\ell \cdot \ell\right)\\ \end{array} \end{array} \]
t\_m = (fabs.f64 t)
t\_s = (copysign.f64 #s(literal 1 binary64) t)
(FPCore (t_s t_m l k)
 :precision binary64
 (*
  t_s
  (if (<= t_m 1.7e-70)
    (* l (* 2.0 (* (/ l (pow k 2.0)) (/ (cos k) (* t_m (pow k 2.0))))))
    (* (/ 1.0 (pow (* t_m (pow (cbrt k) 2.0)) 3.0)) (* l l)))))
t\_m = fabs(t);
t\_s = copysign(1.0, t);
double code(double t_s, double t_m, double l, double k) {
	double tmp;
	if (t_m <= 1.7e-70) {
		tmp = l * (2.0 * ((l / pow(k, 2.0)) * (cos(k) / (t_m * pow(k, 2.0)))));
	} else {
		tmp = (1.0 / pow((t_m * pow(cbrt(k), 2.0)), 3.0)) * (l * l);
	}
	return t_s * tmp;
}
t\_m = Math.abs(t);
t\_s = Math.copySign(1.0, t);
public static double code(double t_s, double t_m, double l, double k) {
	double tmp;
	if (t_m <= 1.7e-70) {
		tmp = l * (2.0 * ((l / Math.pow(k, 2.0)) * (Math.cos(k) / (t_m * Math.pow(k, 2.0)))));
	} else {
		tmp = (1.0 / Math.pow((t_m * Math.pow(Math.cbrt(k), 2.0)), 3.0)) * (l * l);
	}
	return t_s * tmp;
}
t\_m = abs(t)
t\_s = copysign(1.0, t)
function code(t_s, t_m, l, k)
	tmp = 0.0
	if (t_m <= 1.7e-70)
		tmp = Float64(l * Float64(2.0 * Float64(Float64(l / (k ^ 2.0)) * Float64(cos(k) / Float64(t_m * (k ^ 2.0))))));
	else
		tmp = Float64(Float64(1.0 / (Float64(t_m * (cbrt(k) ^ 2.0)) ^ 3.0)) * Float64(l * l));
	end
	return Float64(t_s * tmp)
end
t\_m = N[Abs[t], $MachinePrecision]
t\_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[t]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
code[t$95$s_, t$95$m_, l_, k_] := N[(t$95$s * If[LessEqual[t$95$m, 1.7e-70], N[(l * N[(2.0 * N[(N[(l / N[Power[k, 2.0], $MachinePrecision]), $MachinePrecision] * N[(N[Cos[k], $MachinePrecision] / N[(t$95$m * N[Power[k, 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(1.0 / N[Power[N[(t$95$m * N[Power[N[Power[k, 1/3], $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision], 3.0], $MachinePrecision]), $MachinePrecision] * N[(l * l), $MachinePrecision]), $MachinePrecision]]), $MachinePrecision]
\begin{array}{l}
t\_m = \left|t\right|
\\
t\_s = \mathsf{copysign}\left(1, t\right)

\\
t\_s \cdot \begin{array}{l}
\mathbf{if}\;t\_m \leq 1.7 \cdot 10^{-70}:\\
\;\;\;\;\ell \cdot \left(2 \cdot \left(\frac{\ell}{{k}^{2}} \cdot \frac{\cos k}{t\_m \cdot {k}^{2}}\right)\right)\\

\mathbf{else}:\\
\;\;\;\;\frac{1}{{\left(t\_m \cdot {\left(\sqrt[3]{k}\right)}^{2}\right)}^{3}} \cdot \left(\ell \cdot \ell\right)\\


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

    1. Initial program 50.7%

      \[\frac{2}{\left(\left(\frac{{t}^{3}}{\ell \cdot \ell} \cdot \sin k\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
    2. Simplified48.7%

      \[\leadsto \color{blue}{\frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}}}{{t}^{3} \cdot \left(\sin k \cdot \tan k\right)} \cdot \left(\ell \cdot \ell\right)} \]
    3. Add Preprocessing
    4. Step-by-step derivation
      1. associate-*r*56.6%

        \[\leadsto \color{blue}{\left(\frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}}}{{t}^{3} \cdot \left(\sin k \cdot \tan k\right)} \cdot \ell\right) \cdot \ell} \]
      2. associate-*l/55.3%

        \[\leadsto \color{blue}{\frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{{t}^{3} \cdot \left(\sin k \cdot \tan k\right)}} \cdot \ell \]
    5. Applied egg-rr55.3%

      \[\leadsto \color{blue}{\frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{{t}^{3} \cdot \left(\sin k \cdot \tan k\right)} \cdot \ell} \]
    6. Taylor expanded in k around inf 70.7%

      \[\leadsto \color{blue}{\left(2 \cdot \frac{\ell \cdot \cos k}{{k}^{2} \cdot \left(t \cdot {\sin k}^{2}\right)}\right)} \cdot \ell \]
    7. Step-by-step derivation
      1. times-frac71.2%

        \[\leadsto \left(2 \cdot \color{blue}{\left(\frac{\ell}{{k}^{2}} \cdot \frac{\cos k}{t \cdot {\sin k}^{2}}\right)}\right) \cdot \ell \]
    8. Simplified71.2%

      \[\leadsto \color{blue}{\left(2 \cdot \left(\frac{\ell}{{k}^{2}} \cdot \frac{\cos k}{t \cdot {\sin k}^{2}}\right)\right)} \cdot \ell \]
    9. Taylor expanded in k around 0 61.7%

      \[\leadsto \left(2 \cdot \left(\frac{\ell}{{k}^{2}} \cdot \frac{\cos k}{\color{blue}{{k}^{2} \cdot t}}\right)\right) \cdot \ell \]

    if 1.69999999999999998e-70 < t

    1. Initial program 65.6%

      \[\frac{2}{\left(\left(\frac{{t}^{3}}{\ell \cdot \ell} \cdot \sin k\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
    2. Simplified61.4%

      \[\leadsto \color{blue}{\frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}}}{{t}^{3} \cdot \left(\sin k \cdot \tan k\right)} \cdot \left(\ell \cdot \ell\right)} \]
    3. Add Preprocessing
    4. Taylor expanded in k around 0 55.8%

      \[\leadsto \color{blue}{\frac{1}{{k}^{2} \cdot {t}^{3}}} \cdot \left(\ell \cdot \ell\right) \]
    5. Step-by-step derivation
      1. add-cube-cbrt58.7%

        \[\leadsto \frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{\color{blue}{\left(\sqrt[3]{{k}^{2} \cdot {t}^{3}} \cdot \sqrt[3]{{k}^{2} \cdot {t}^{3}}\right) \cdot \sqrt[3]{{k}^{2} \cdot {t}^{3}}}} \cdot \ell \]
      2. pow258.7%

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

        \[\leadsto \frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{{\left(\sqrt[3]{\color{blue}{{t}^{3} \cdot {k}^{2}}}\right)}^{2} \cdot \sqrt[3]{{k}^{2} \cdot {t}^{3}}} \cdot \ell \]
      4. cbrt-prod58.7%

        \[\leadsto \frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{{\color{blue}{\left(\sqrt[3]{{t}^{3}} \cdot \sqrt[3]{{k}^{2}}\right)}}^{2} \cdot \sqrt[3]{{k}^{2} \cdot {t}^{3}}} \cdot \ell \]
      5. unpow358.7%

        \[\leadsto \frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{{\left(\sqrt[3]{\color{blue}{\left(t \cdot t\right) \cdot t}} \cdot \sqrt[3]{{k}^{2}}\right)}^{2} \cdot \sqrt[3]{{k}^{2} \cdot {t}^{3}}} \cdot \ell \]
      6. add-cbrt-cube58.7%

        \[\leadsto \frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{{\left(\color{blue}{t} \cdot \sqrt[3]{{k}^{2}}\right)}^{2} \cdot \sqrt[3]{{k}^{2} \cdot {t}^{3}}} \cdot \ell \]
      7. unpow258.7%

        \[\leadsto \frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{{\left(t \cdot \sqrt[3]{\color{blue}{k \cdot k}}\right)}^{2} \cdot \sqrt[3]{{k}^{2} \cdot {t}^{3}}} \cdot \ell \]
      8. cbrt-prod58.6%

        \[\leadsto \frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{{\left(t \cdot \color{blue}{\left(\sqrt[3]{k} \cdot \sqrt[3]{k}\right)}\right)}^{2} \cdot \sqrt[3]{{k}^{2} \cdot {t}^{3}}} \cdot \ell \]
      9. pow258.6%

        \[\leadsto \frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{{\left(t \cdot \color{blue}{{\left(\sqrt[3]{k}\right)}^{2}}\right)}^{2} \cdot \sqrt[3]{{k}^{2} \cdot {t}^{3}}} \cdot \ell \]
      10. *-commutative58.6%

        \[\leadsto \frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{{\left(t \cdot {\left(\sqrt[3]{k}\right)}^{2}\right)}^{2} \cdot \sqrt[3]{\color{blue}{{t}^{3} \cdot {k}^{2}}}} \cdot \ell \]
      11. cbrt-prod58.6%

        \[\leadsto \frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{{\left(t \cdot {\left(\sqrt[3]{k}\right)}^{2}\right)}^{2} \cdot \color{blue}{\left(\sqrt[3]{{t}^{3}} \cdot \sqrt[3]{{k}^{2}}\right)}} \cdot \ell \]
      12. unpow358.6%

        \[\leadsto \frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{{\left(t \cdot {\left(\sqrt[3]{k}\right)}^{2}\right)}^{2} \cdot \left(\sqrt[3]{\color{blue}{\left(t \cdot t\right) \cdot t}} \cdot \sqrt[3]{{k}^{2}}\right)} \cdot \ell \]
      13. add-cbrt-cube62.5%

        \[\leadsto \frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{{\left(t \cdot {\left(\sqrt[3]{k}\right)}^{2}\right)}^{2} \cdot \left(\color{blue}{t} \cdot \sqrt[3]{{k}^{2}}\right)} \cdot \ell \]
      14. unpow262.5%

        \[\leadsto \frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{{\left(t \cdot {\left(\sqrt[3]{k}\right)}^{2}\right)}^{2} \cdot \left(t \cdot \sqrt[3]{\color{blue}{k \cdot k}}\right)} \cdot \ell \]
      15. cbrt-prod74.1%

        \[\leadsto \frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{{\left(t \cdot {\left(\sqrt[3]{k}\right)}^{2}\right)}^{2} \cdot \left(t \cdot \color{blue}{\left(\sqrt[3]{k} \cdot \sqrt[3]{k}\right)}\right)} \cdot \ell \]
      16. pow274.1%

        \[\leadsto \frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{{\left(t \cdot {\left(\sqrt[3]{k}\right)}^{2}\right)}^{2} \cdot \left(t \cdot \color{blue}{{\left(\sqrt[3]{k}\right)}^{2}}\right)} \cdot \ell \]
    6. Applied egg-rr69.0%

      \[\leadsto \frac{1}{\color{blue}{{\left(t \cdot {\left(\sqrt[3]{k}\right)}^{2}\right)}^{2} \cdot \left(t \cdot {\left(\sqrt[3]{k}\right)}^{2}\right)}} \cdot \left(\ell \cdot \ell\right) \]
    7. Step-by-step derivation
      1. unpow274.1%

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

        \[\leadsto \frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{\color{blue}{{\left(t \cdot {\left(\sqrt[3]{k}\right)}^{2}\right)}^{3}}} \cdot \ell \]
    8. Simplified69.0%

      \[\leadsto \frac{1}{\color{blue}{{\left(t \cdot {\left(\sqrt[3]{k}\right)}^{2}\right)}^{3}}} \cdot \left(\ell \cdot \ell\right) \]
  3. Recombined 2 regimes into one program.
  4. Final simplification64.0%

    \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq 1.7 \cdot 10^{-70}:\\ \;\;\;\;\ell \cdot \left(2 \cdot \left(\frac{\ell}{{k}^{2}} \cdot \frac{\cos k}{t \cdot {k}^{2}}\right)\right)\\ \mathbf{else}:\\ \;\;\;\;\frac{1}{{\left(t \cdot {\left(\sqrt[3]{k}\right)}^{2}\right)}^{3}} \cdot \left(\ell \cdot \ell\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 16: 67.2% accurate, 1.3× speedup?

\[\begin{array}{l} t\_m = \left|t\right| \\ t\_s = \mathsf{copysign}\left(1, t\right) \\ t\_s \cdot \begin{array}{l} \mathbf{if}\;t\_m \leq 10^{-70}:\\ \;\;\;\;\ell \cdot \left(2 \cdot \frac{\frac{\ell}{t\_m}}{{k}^{4}}\right)\\ \mathbf{else}:\\ \;\;\;\;\frac{1}{{\left(t\_m \cdot {\left(\sqrt[3]{k}\right)}^{2}\right)}^{3}} \cdot \left(\ell \cdot \ell\right)\\ \end{array} \end{array} \]
t\_m = (fabs.f64 t)
t\_s = (copysign.f64 #s(literal 1 binary64) t)
(FPCore (t_s t_m l k)
 :precision binary64
 (*
  t_s
  (if (<= t_m 1e-70)
    (* l (* 2.0 (/ (/ l t_m) (pow k 4.0))))
    (* (/ 1.0 (pow (* t_m (pow (cbrt k) 2.0)) 3.0)) (* l l)))))
t\_m = fabs(t);
t\_s = copysign(1.0, t);
double code(double t_s, double t_m, double l, double k) {
	double tmp;
	if (t_m <= 1e-70) {
		tmp = l * (2.0 * ((l / t_m) / pow(k, 4.0)));
	} else {
		tmp = (1.0 / pow((t_m * pow(cbrt(k), 2.0)), 3.0)) * (l * l);
	}
	return t_s * tmp;
}
t\_m = Math.abs(t);
t\_s = Math.copySign(1.0, t);
public static double code(double t_s, double t_m, double l, double k) {
	double tmp;
	if (t_m <= 1e-70) {
		tmp = l * (2.0 * ((l / t_m) / Math.pow(k, 4.0)));
	} else {
		tmp = (1.0 / Math.pow((t_m * Math.pow(Math.cbrt(k), 2.0)), 3.0)) * (l * l);
	}
	return t_s * tmp;
}
t\_m = abs(t)
t\_s = copysign(1.0, t)
function code(t_s, t_m, l, k)
	tmp = 0.0
	if (t_m <= 1e-70)
		tmp = Float64(l * Float64(2.0 * Float64(Float64(l / t_m) / (k ^ 4.0))));
	else
		tmp = Float64(Float64(1.0 / (Float64(t_m * (cbrt(k) ^ 2.0)) ^ 3.0)) * Float64(l * l));
	end
	return Float64(t_s * tmp)
end
t\_m = N[Abs[t], $MachinePrecision]
t\_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[t]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
code[t$95$s_, t$95$m_, l_, k_] := N[(t$95$s * If[LessEqual[t$95$m, 1e-70], N[(l * N[(2.0 * N[(N[(l / t$95$m), $MachinePrecision] / N[Power[k, 4.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(1.0 / N[Power[N[(t$95$m * N[Power[N[Power[k, 1/3], $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision], 3.0], $MachinePrecision]), $MachinePrecision] * N[(l * l), $MachinePrecision]), $MachinePrecision]]), $MachinePrecision]
\begin{array}{l}
t\_m = \left|t\right|
\\
t\_s = \mathsf{copysign}\left(1, t\right)

\\
t\_s \cdot \begin{array}{l}
\mathbf{if}\;t\_m \leq 10^{-70}:\\
\;\;\;\;\ell \cdot \left(2 \cdot \frac{\frac{\ell}{t\_m}}{{k}^{4}}\right)\\

\mathbf{else}:\\
\;\;\;\;\frac{1}{{\left(t\_m \cdot {\left(\sqrt[3]{k}\right)}^{2}\right)}^{3}} \cdot \left(\ell \cdot \ell\right)\\


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

    1. Initial program 50.7%

      \[\frac{2}{\left(\left(\frac{{t}^{3}}{\ell \cdot \ell} \cdot \sin k\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
    2. Simplified48.7%

      \[\leadsto \color{blue}{\frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}}}{{t}^{3} \cdot \left(\sin k \cdot \tan k\right)} \cdot \left(\ell \cdot \ell\right)} \]
    3. Add Preprocessing
    4. Step-by-step derivation
      1. associate-*r*56.6%

        \[\leadsto \color{blue}{\left(\frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}}}{{t}^{3} \cdot \left(\sin k \cdot \tan k\right)} \cdot \ell\right) \cdot \ell} \]
      2. associate-*l/55.3%

        \[\leadsto \color{blue}{\frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{{t}^{3} \cdot \left(\sin k \cdot \tan k\right)}} \cdot \ell \]
    5. Applied egg-rr55.3%

      \[\leadsto \color{blue}{\frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{{t}^{3} \cdot \left(\sin k \cdot \tan k\right)} \cdot \ell} \]
    6. Taylor expanded in k around 0 52.0%

      \[\leadsto \frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{\color{blue}{{k}^{2} \cdot {t}^{3}}} \cdot \ell \]
    7. Taylor expanded in k around inf 59.2%

      \[\leadsto \color{blue}{\left(2 \cdot \frac{\ell}{{k}^{4} \cdot t}\right)} \cdot \ell \]
    8. Step-by-step derivation
      1. *-commutative59.2%

        \[\leadsto \left(2 \cdot \frac{\ell}{\color{blue}{t \cdot {k}^{4}}}\right) \cdot \ell \]
      2. associate-/r*60.6%

        \[\leadsto \left(2 \cdot \color{blue}{\frac{\frac{\ell}{t}}{{k}^{4}}}\right) \cdot \ell \]
    9. Simplified60.6%

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

    if 9.99999999999999996e-71 < t

    1. Initial program 65.6%

      \[\frac{2}{\left(\left(\frac{{t}^{3}}{\ell \cdot \ell} \cdot \sin k\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
    2. Simplified61.4%

      \[\leadsto \color{blue}{\frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}}}{{t}^{3} \cdot \left(\sin k \cdot \tan k\right)} \cdot \left(\ell \cdot \ell\right)} \]
    3. Add Preprocessing
    4. Taylor expanded in k around 0 55.8%

      \[\leadsto \color{blue}{\frac{1}{{k}^{2} \cdot {t}^{3}}} \cdot \left(\ell \cdot \ell\right) \]
    5. Step-by-step derivation
      1. add-cube-cbrt58.7%

        \[\leadsto \frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{\color{blue}{\left(\sqrt[3]{{k}^{2} \cdot {t}^{3}} \cdot \sqrt[3]{{k}^{2} \cdot {t}^{3}}\right) \cdot \sqrt[3]{{k}^{2} \cdot {t}^{3}}}} \cdot \ell \]
      2. pow258.7%

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

        \[\leadsto \frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{{\left(\sqrt[3]{\color{blue}{{t}^{3} \cdot {k}^{2}}}\right)}^{2} \cdot \sqrt[3]{{k}^{2} \cdot {t}^{3}}} \cdot \ell \]
      4. cbrt-prod58.7%

        \[\leadsto \frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{{\color{blue}{\left(\sqrt[3]{{t}^{3}} \cdot \sqrt[3]{{k}^{2}}\right)}}^{2} \cdot \sqrt[3]{{k}^{2} \cdot {t}^{3}}} \cdot \ell \]
      5. unpow358.7%

        \[\leadsto \frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{{\left(\sqrt[3]{\color{blue}{\left(t \cdot t\right) \cdot t}} \cdot \sqrt[3]{{k}^{2}}\right)}^{2} \cdot \sqrt[3]{{k}^{2} \cdot {t}^{3}}} \cdot \ell \]
      6. add-cbrt-cube58.7%

        \[\leadsto \frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{{\left(\color{blue}{t} \cdot \sqrt[3]{{k}^{2}}\right)}^{2} \cdot \sqrt[3]{{k}^{2} \cdot {t}^{3}}} \cdot \ell \]
      7. unpow258.7%

        \[\leadsto \frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{{\left(t \cdot \sqrt[3]{\color{blue}{k \cdot k}}\right)}^{2} \cdot \sqrt[3]{{k}^{2} \cdot {t}^{3}}} \cdot \ell \]
      8. cbrt-prod58.6%

        \[\leadsto \frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{{\left(t \cdot \color{blue}{\left(\sqrt[3]{k} \cdot \sqrt[3]{k}\right)}\right)}^{2} \cdot \sqrt[3]{{k}^{2} \cdot {t}^{3}}} \cdot \ell \]
      9. pow258.6%

        \[\leadsto \frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{{\left(t \cdot \color{blue}{{\left(\sqrt[3]{k}\right)}^{2}}\right)}^{2} \cdot \sqrt[3]{{k}^{2} \cdot {t}^{3}}} \cdot \ell \]
      10. *-commutative58.6%

        \[\leadsto \frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{{\left(t \cdot {\left(\sqrt[3]{k}\right)}^{2}\right)}^{2} \cdot \sqrt[3]{\color{blue}{{t}^{3} \cdot {k}^{2}}}} \cdot \ell \]
      11. cbrt-prod58.6%

        \[\leadsto \frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{{\left(t \cdot {\left(\sqrt[3]{k}\right)}^{2}\right)}^{2} \cdot \color{blue}{\left(\sqrt[3]{{t}^{3}} \cdot \sqrt[3]{{k}^{2}}\right)}} \cdot \ell \]
      12. unpow358.6%

        \[\leadsto \frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{{\left(t \cdot {\left(\sqrt[3]{k}\right)}^{2}\right)}^{2} \cdot \left(\sqrt[3]{\color{blue}{\left(t \cdot t\right) \cdot t}} \cdot \sqrt[3]{{k}^{2}}\right)} \cdot \ell \]
      13. add-cbrt-cube62.5%

        \[\leadsto \frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{{\left(t \cdot {\left(\sqrt[3]{k}\right)}^{2}\right)}^{2} \cdot \left(\color{blue}{t} \cdot \sqrt[3]{{k}^{2}}\right)} \cdot \ell \]
      14. unpow262.5%

        \[\leadsto \frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{{\left(t \cdot {\left(\sqrt[3]{k}\right)}^{2}\right)}^{2} \cdot \left(t \cdot \sqrt[3]{\color{blue}{k \cdot k}}\right)} \cdot \ell \]
      15. cbrt-prod74.1%

        \[\leadsto \frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{{\left(t \cdot {\left(\sqrt[3]{k}\right)}^{2}\right)}^{2} \cdot \left(t \cdot \color{blue}{\left(\sqrt[3]{k} \cdot \sqrt[3]{k}\right)}\right)} \cdot \ell \]
      16. pow274.1%

        \[\leadsto \frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{{\left(t \cdot {\left(\sqrt[3]{k}\right)}^{2}\right)}^{2} \cdot \left(t \cdot \color{blue}{{\left(\sqrt[3]{k}\right)}^{2}}\right)} \cdot \ell \]
    6. Applied egg-rr69.0%

      \[\leadsto \frac{1}{\color{blue}{{\left(t \cdot {\left(\sqrt[3]{k}\right)}^{2}\right)}^{2} \cdot \left(t \cdot {\left(\sqrt[3]{k}\right)}^{2}\right)}} \cdot \left(\ell \cdot \ell\right) \]
    7. Step-by-step derivation
      1. unpow274.1%

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

        \[\leadsto \frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{\color{blue}{{\left(t \cdot {\left(\sqrt[3]{k}\right)}^{2}\right)}^{3}}} \cdot \ell \]
    8. Simplified69.0%

      \[\leadsto \frac{1}{\color{blue}{{\left(t \cdot {\left(\sqrt[3]{k}\right)}^{2}\right)}^{3}}} \cdot \left(\ell \cdot \ell\right) \]
  3. Recombined 2 regimes into one program.
  4. Final simplification63.3%

    \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq 10^{-70}:\\ \;\;\;\;\ell \cdot \left(2 \cdot \frac{\frac{\ell}{t}}{{k}^{4}}\right)\\ \mathbf{else}:\\ \;\;\;\;\frac{1}{{\left(t \cdot {\left(\sqrt[3]{k}\right)}^{2}\right)}^{3}} \cdot \left(\ell \cdot \ell\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 17: 63.8% accurate, 1.3× speedup?

\[\begin{array}{l} t\_m = \left|t\right| \\ t\_s = \mathsf{copysign}\left(1, t\right) \\ t\_s \cdot \begin{array}{l} \mathbf{if}\;t\_m \leq 1.25 \cdot 10^{-70}:\\ \;\;\;\;\ell \cdot \left(2 \cdot \frac{\frac{\ell}{t\_m}}{{k}^{4}}\right)\\ \mathbf{else}:\\ \;\;\;\;\ell \cdot \left(\ell \cdot {\left(\frac{\sqrt[3]{{k}^{-2}}}{t\_m}\right)}^{3}\right)\\ \end{array} \end{array} \]
t\_m = (fabs.f64 t)
t\_s = (copysign.f64 #s(literal 1 binary64) t)
(FPCore (t_s t_m l k)
 :precision binary64
 (*
  t_s
  (if (<= t_m 1.25e-70)
    (* l (* 2.0 (/ (/ l t_m) (pow k 4.0))))
    (* l (* l (pow (/ (cbrt (pow k -2.0)) t_m) 3.0))))))
t\_m = fabs(t);
t\_s = copysign(1.0, t);
double code(double t_s, double t_m, double l, double k) {
	double tmp;
	if (t_m <= 1.25e-70) {
		tmp = l * (2.0 * ((l / t_m) / pow(k, 4.0)));
	} else {
		tmp = l * (l * pow((cbrt(pow(k, -2.0)) / t_m), 3.0));
	}
	return t_s * tmp;
}
t\_m = Math.abs(t);
t\_s = Math.copySign(1.0, t);
public static double code(double t_s, double t_m, double l, double k) {
	double tmp;
	if (t_m <= 1.25e-70) {
		tmp = l * (2.0 * ((l / t_m) / Math.pow(k, 4.0)));
	} else {
		tmp = l * (l * Math.pow((Math.cbrt(Math.pow(k, -2.0)) / t_m), 3.0));
	}
	return t_s * tmp;
}
t\_m = abs(t)
t\_s = copysign(1.0, t)
function code(t_s, t_m, l, k)
	tmp = 0.0
	if (t_m <= 1.25e-70)
		tmp = Float64(l * Float64(2.0 * Float64(Float64(l / t_m) / (k ^ 4.0))));
	else
		tmp = Float64(l * Float64(l * (Float64(cbrt((k ^ -2.0)) / t_m) ^ 3.0)));
	end
	return Float64(t_s * tmp)
end
t\_m = N[Abs[t], $MachinePrecision]
t\_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[t]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
code[t$95$s_, t$95$m_, l_, k_] := N[(t$95$s * If[LessEqual[t$95$m, 1.25e-70], N[(l * N[(2.0 * N[(N[(l / t$95$m), $MachinePrecision] / N[Power[k, 4.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(l * N[(l * N[Power[N[(N[Power[N[Power[k, -2.0], $MachinePrecision], 1/3], $MachinePrecision] / t$95$m), $MachinePrecision], 3.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]), $MachinePrecision]
\begin{array}{l}
t\_m = \left|t\right|
\\
t\_s = \mathsf{copysign}\left(1, t\right)

\\
t\_s \cdot \begin{array}{l}
\mathbf{if}\;t\_m \leq 1.25 \cdot 10^{-70}:\\
\;\;\;\;\ell \cdot \left(2 \cdot \frac{\frac{\ell}{t\_m}}{{k}^{4}}\right)\\

\mathbf{else}:\\
\;\;\;\;\ell \cdot \left(\ell \cdot {\left(\frac{\sqrt[3]{{k}^{-2}}}{t\_m}\right)}^{3}\right)\\


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

    1. Initial program 50.7%

      \[\frac{2}{\left(\left(\frac{{t}^{3}}{\ell \cdot \ell} \cdot \sin k\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
    2. Simplified48.7%

      \[\leadsto \color{blue}{\frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}}}{{t}^{3} \cdot \left(\sin k \cdot \tan k\right)} \cdot \left(\ell \cdot \ell\right)} \]
    3. Add Preprocessing
    4. Step-by-step derivation
      1. associate-*r*56.6%

        \[\leadsto \color{blue}{\left(\frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}}}{{t}^{3} \cdot \left(\sin k \cdot \tan k\right)} \cdot \ell\right) \cdot \ell} \]
      2. associate-*l/55.3%

        \[\leadsto \color{blue}{\frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{{t}^{3} \cdot \left(\sin k \cdot \tan k\right)}} \cdot \ell \]
    5. Applied egg-rr55.3%

      \[\leadsto \color{blue}{\frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{{t}^{3} \cdot \left(\sin k \cdot \tan k\right)} \cdot \ell} \]
    6. Taylor expanded in k around 0 52.0%

      \[\leadsto \frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{\color{blue}{{k}^{2} \cdot {t}^{3}}} \cdot \ell \]
    7. Taylor expanded in k around inf 59.2%

      \[\leadsto \color{blue}{\left(2 \cdot \frac{\ell}{{k}^{4} \cdot t}\right)} \cdot \ell \]
    8. Step-by-step derivation
      1. *-commutative59.2%

        \[\leadsto \left(2 \cdot \frac{\ell}{\color{blue}{t \cdot {k}^{4}}}\right) \cdot \ell \]
      2. associate-/r*60.6%

        \[\leadsto \left(2 \cdot \color{blue}{\frac{\frac{\ell}{t}}{{k}^{4}}}\right) \cdot \ell \]
    9. Simplified60.6%

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

    if 1.25e-70 < t

    1. Initial program 65.6%

      \[\frac{2}{\left(\left(\frac{{t}^{3}}{\ell \cdot \ell} \cdot \sin k\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
    2. Simplified61.4%

      \[\leadsto \color{blue}{\frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}}}{{t}^{3} \cdot \left(\sin k \cdot \tan k\right)} \cdot \left(\ell \cdot \ell\right)} \]
    3. Add Preprocessing
    4. Taylor expanded in k around 0 55.8%

      \[\leadsto \color{blue}{\frac{1}{{k}^{2} \cdot {t}^{3}}} \cdot \left(\ell \cdot \ell\right) \]
    5. Step-by-step derivation
      1. associate-*r*58.8%

        \[\leadsto \color{blue}{\left(\frac{1}{{k}^{2} \cdot {t}^{3}} \cdot \ell\right) \cdot \ell} \]
      2. associate-/r*58.8%

        \[\leadsto \left(\color{blue}{\frac{\frac{1}{{k}^{2}}}{{t}^{3}}} \cdot \ell\right) \cdot \ell \]
      3. pow-flip58.8%

        \[\leadsto \left(\frac{\color{blue}{{k}^{\left(-2\right)}}}{{t}^{3}} \cdot \ell\right) \cdot \ell \]
      4. metadata-eval58.8%

        \[\leadsto \left(\frac{{k}^{\color{blue}{-2}}}{{t}^{3}} \cdot \ell\right) \cdot \ell \]
    6. Applied egg-rr58.8%

      \[\leadsto \color{blue}{\left(\frac{{k}^{-2}}{{t}^{3}} \cdot \ell\right) \cdot \ell} \]
    7. Step-by-step derivation
      1. add-cube-cbrt58.7%

        \[\leadsto \left(\color{blue}{\left(\left(\sqrt[3]{\frac{{k}^{-2}}{{t}^{3}}} \cdot \sqrt[3]{\frac{{k}^{-2}}{{t}^{3}}}\right) \cdot \sqrt[3]{\frac{{k}^{-2}}{{t}^{3}}}\right)} \cdot \ell\right) \cdot \ell \]
      2. pow358.7%

        \[\leadsto \left(\color{blue}{{\left(\sqrt[3]{\frac{{k}^{-2}}{{t}^{3}}}\right)}^{3}} \cdot \ell\right) \cdot \ell \]
      3. cbrt-div58.7%

        \[\leadsto \left({\color{blue}{\left(\frac{\sqrt[3]{{k}^{-2}}}{\sqrt[3]{{t}^{3}}}\right)}}^{3} \cdot \ell\right) \cdot \ell \]
      4. unpow358.7%

        \[\leadsto \left({\left(\frac{\sqrt[3]{{k}^{-2}}}{\sqrt[3]{\color{blue}{\left(t \cdot t\right) \cdot t}}}\right)}^{3} \cdot \ell\right) \cdot \ell \]
      5. add-cbrt-cube62.5%

        \[\leadsto \left({\left(\frac{\sqrt[3]{{k}^{-2}}}{\color{blue}{t}}\right)}^{3} \cdot \ell\right) \cdot \ell \]
    8. Applied egg-rr62.5%

      \[\leadsto \left(\color{blue}{{\left(\frac{\sqrt[3]{{k}^{-2}}}{t}\right)}^{3}} \cdot \ell\right) \cdot \ell \]
  3. Recombined 2 regimes into one program.
  4. Final simplification61.2%

    \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq 1.25 \cdot 10^{-70}:\\ \;\;\;\;\ell \cdot \left(2 \cdot \frac{\frac{\ell}{t}}{{k}^{4}}\right)\\ \mathbf{else}:\\ \;\;\;\;\ell \cdot \left(\ell \cdot {\left(\frac{\sqrt[3]{{k}^{-2}}}{t}\right)}^{3}\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 18: 61.5% accurate, 2.0× speedup?

\[\begin{array}{l} t\_m = \left|t\right| \\ t\_s = \mathsf{copysign}\left(1, t\right) \\ t\_s \cdot \begin{array}{l} \mathbf{if}\;t\_m \leq 8 \cdot 10^{-73}:\\ \;\;\;\;\ell \cdot \left(2 \cdot \frac{\frac{\ell}{t\_m}}{{k}^{4}}\right)\\ \mathbf{else}:\\ \;\;\;\;\ell \cdot \frac{\ell}{{t\_m}^{3} \cdot {k}^{2}}\\ \end{array} \end{array} \]
t\_m = (fabs.f64 t)
t\_s = (copysign.f64 #s(literal 1 binary64) t)
(FPCore (t_s t_m l k)
 :precision binary64
 (*
  t_s
  (if (<= t_m 8e-73)
    (* l (* 2.0 (/ (/ l t_m) (pow k 4.0))))
    (* l (/ l (* (pow t_m 3.0) (pow k 2.0)))))))
t\_m = fabs(t);
t\_s = copysign(1.0, t);
double code(double t_s, double t_m, double l, double k) {
	double tmp;
	if (t_m <= 8e-73) {
		tmp = l * (2.0 * ((l / t_m) / pow(k, 4.0)));
	} else {
		tmp = l * (l / (pow(t_m, 3.0) * pow(k, 2.0)));
	}
	return t_s * tmp;
}
t\_m = abs(t)
t\_s = copysign(1.0d0, t)
real(8) function code(t_s, t_m, l, k)
    real(8), intent (in) :: t_s
    real(8), intent (in) :: t_m
    real(8), intent (in) :: l
    real(8), intent (in) :: k
    real(8) :: tmp
    if (t_m <= 8d-73) then
        tmp = l * (2.0d0 * ((l / t_m) / (k ** 4.0d0)))
    else
        tmp = l * (l / ((t_m ** 3.0d0) * (k ** 2.0d0)))
    end if
    code = t_s * tmp
end function
t\_m = Math.abs(t);
t\_s = Math.copySign(1.0, t);
public static double code(double t_s, double t_m, double l, double k) {
	double tmp;
	if (t_m <= 8e-73) {
		tmp = l * (2.0 * ((l / t_m) / Math.pow(k, 4.0)));
	} else {
		tmp = l * (l / (Math.pow(t_m, 3.0) * Math.pow(k, 2.0)));
	}
	return t_s * tmp;
}
t\_m = math.fabs(t)
t\_s = math.copysign(1.0, t)
def code(t_s, t_m, l, k):
	tmp = 0
	if t_m <= 8e-73:
		tmp = l * (2.0 * ((l / t_m) / math.pow(k, 4.0)))
	else:
		tmp = l * (l / (math.pow(t_m, 3.0) * math.pow(k, 2.0)))
	return t_s * tmp
t\_m = abs(t)
t\_s = copysign(1.0, t)
function code(t_s, t_m, l, k)
	tmp = 0.0
	if (t_m <= 8e-73)
		tmp = Float64(l * Float64(2.0 * Float64(Float64(l / t_m) / (k ^ 4.0))));
	else
		tmp = Float64(l * Float64(l / Float64((t_m ^ 3.0) * (k ^ 2.0))));
	end
	return Float64(t_s * tmp)
end
t\_m = abs(t);
t\_s = sign(t) * abs(1.0);
function tmp_2 = code(t_s, t_m, l, k)
	tmp = 0.0;
	if (t_m <= 8e-73)
		tmp = l * (2.0 * ((l / t_m) / (k ^ 4.0)));
	else
		tmp = l * (l / ((t_m ^ 3.0) * (k ^ 2.0)));
	end
	tmp_2 = t_s * tmp;
end
t\_m = N[Abs[t], $MachinePrecision]
t\_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[t]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
code[t$95$s_, t$95$m_, l_, k_] := N[(t$95$s * If[LessEqual[t$95$m, 8e-73], N[(l * N[(2.0 * N[(N[(l / t$95$m), $MachinePrecision] / N[Power[k, 4.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(l * N[(l / N[(N[Power[t$95$m, 3.0], $MachinePrecision] * N[Power[k, 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]), $MachinePrecision]
\begin{array}{l}
t\_m = \left|t\right|
\\
t\_s = \mathsf{copysign}\left(1, t\right)

\\
t\_s \cdot \begin{array}{l}
\mathbf{if}\;t\_m \leq 8 \cdot 10^{-73}:\\
\;\;\;\;\ell \cdot \left(2 \cdot \frac{\frac{\ell}{t\_m}}{{k}^{4}}\right)\\

\mathbf{else}:\\
\;\;\;\;\ell \cdot \frac{\ell}{{t\_m}^{3} \cdot {k}^{2}}\\


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

    1. Initial program 50.7%

      \[\frac{2}{\left(\left(\frac{{t}^{3}}{\ell \cdot \ell} \cdot \sin k\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
    2. Simplified48.7%

      \[\leadsto \color{blue}{\frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}}}{{t}^{3} \cdot \left(\sin k \cdot \tan k\right)} \cdot \left(\ell \cdot \ell\right)} \]
    3. Add Preprocessing
    4. Step-by-step derivation
      1. associate-*r*56.6%

        \[\leadsto \color{blue}{\left(\frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}}}{{t}^{3} \cdot \left(\sin k \cdot \tan k\right)} \cdot \ell\right) \cdot \ell} \]
      2. associate-*l/55.3%

        \[\leadsto \color{blue}{\frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{{t}^{3} \cdot \left(\sin k \cdot \tan k\right)}} \cdot \ell \]
    5. Applied egg-rr55.3%

      \[\leadsto \color{blue}{\frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{{t}^{3} \cdot \left(\sin k \cdot \tan k\right)} \cdot \ell} \]
    6. Taylor expanded in k around 0 52.0%

      \[\leadsto \frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{\color{blue}{{k}^{2} \cdot {t}^{3}}} \cdot \ell \]
    7. Taylor expanded in k around inf 59.2%

      \[\leadsto \color{blue}{\left(2 \cdot \frac{\ell}{{k}^{4} \cdot t}\right)} \cdot \ell \]
    8. Step-by-step derivation
      1. *-commutative59.2%

        \[\leadsto \left(2 \cdot \frac{\ell}{\color{blue}{t \cdot {k}^{4}}}\right) \cdot \ell \]
      2. associate-/r*60.6%

        \[\leadsto \left(2 \cdot \color{blue}{\frac{\frac{\ell}{t}}{{k}^{4}}}\right) \cdot \ell \]
    9. Simplified60.6%

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

    if 7.99999999999999998e-73 < t

    1. Initial program 65.6%

      \[\frac{2}{\left(\left(\frac{{t}^{3}}{\ell \cdot \ell} \cdot \sin k\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
    2. Simplified61.4%

      \[\leadsto \color{blue}{\frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}}}{{t}^{3} \cdot \left(\sin k \cdot \tan k\right)} \cdot \left(\ell \cdot \ell\right)} \]
    3. Add Preprocessing
    4. Step-by-step derivation
      1. associate-*r*65.8%

        \[\leadsto \color{blue}{\left(\frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}}}{{t}^{3} \cdot \left(\sin k \cdot \tan k\right)} \cdot \ell\right) \cdot \ell} \]
      2. associate-*l/69.0%

        \[\leadsto \color{blue}{\frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{{t}^{3} \cdot \left(\sin k \cdot \tan k\right)}} \cdot \ell \]
    5. Applied egg-rr69.0%

      \[\leadsto \color{blue}{\frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{{t}^{3} \cdot \left(\sin k \cdot \tan k\right)} \cdot \ell} \]
    6. Taylor expanded in k around 0 58.8%

      \[\leadsto \color{blue}{\frac{\ell}{{k}^{2} \cdot {t}^{3}}} \cdot \ell \]
  3. Recombined 2 regimes into one program.
  4. Final simplification60.0%

    \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq 8 \cdot 10^{-73}:\\ \;\;\;\;\ell \cdot \left(2 \cdot \frac{\frac{\ell}{t}}{{k}^{4}}\right)\\ \mathbf{else}:\\ \;\;\;\;\ell \cdot \frac{\ell}{{t}^{3} \cdot {k}^{2}}\\ \end{array} \]
  5. Add Preprocessing

Alternative 19: 61.4% accurate, 2.0× speedup?

\[\begin{array}{l} t\_m = \left|t\right| \\ t\_s = \mathsf{copysign}\left(1, t\right) \\ t\_s \cdot \begin{array}{l} \mathbf{if}\;t\_m \leq 1.5 \cdot 10^{-70}:\\ \;\;\;\;\ell \cdot \left(2 \cdot \frac{\frac{\ell}{t\_m}}{{k}^{4}}\right)\\ \mathbf{else}:\\ \;\;\;\;\ell \cdot \left(\ell \cdot \frac{{k}^{-2}}{{t\_m}^{3}}\right)\\ \end{array} \end{array} \]
t\_m = (fabs.f64 t)
t\_s = (copysign.f64 #s(literal 1 binary64) t)
(FPCore (t_s t_m l k)
 :precision binary64
 (*
  t_s
  (if (<= t_m 1.5e-70)
    (* l (* 2.0 (/ (/ l t_m) (pow k 4.0))))
    (* l (* l (/ (pow k -2.0) (pow t_m 3.0)))))))
t\_m = fabs(t);
t\_s = copysign(1.0, t);
double code(double t_s, double t_m, double l, double k) {
	double tmp;
	if (t_m <= 1.5e-70) {
		tmp = l * (2.0 * ((l / t_m) / pow(k, 4.0)));
	} else {
		tmp = l * (l * (pow(k, -2.0) / pow(t_m, 3.0)));
	}
	return t_s * tmp;
}
t\_m = abs(t)
t\_s = copysign(1.0d0, t)
real(8) function code(t_s, t_m, l, k)
    real(8), intent (in) :: t_s
    real(8), intent (in) :: t_m
    real(8), intent (in) :: l
    real(8), intent (in) :: k
    real(8) :: tmp
    if (t_m <= 1.5d-70) then
        tmp = l * (2.0d0 * ((l / t_m) / (k ** 4.0d0)))
    else
        tmp = l * (l * ((k ** (-2.0d0)) / (t_m ** 3.0d0)))
    end if
    code = t_s * tmp
end function
t\_m = Math.abs(t);
t\_s = Math.copySign(1.0, t);
public static double code(double t_s, double t_m, double l, double k) {
	double tmp;
	if (t_m <= 1.5e-70) {
		tmp = l * (2.0 * ((l / t_m) / Math.pow(k, 4.0)));
	} else {
		tmp = l * (l * (Math.pow(k, -2.0) / Math.pow(t_m, 3.0)));
	}
	return t_s * tmp;
}
t\_m = math.fabs(t)
t\_s = math.copysign(1.0, t)
def code(t_s, t_m, l, k):
	tmp = 0
	if t_m <= 1.5e-70:
		tmp = l * (2.0 * ((l / t_m) / math.pow(k, 4.0)))
	else:
		tmp = l * (l * (math.pow(k, -2.0) / math.pow(t_m, 3.0)))
	return t_s * tmp
t\_m = abs(t)
t\_s = copysign(1.0, t)
function code(t_s, t_m, l, k)
	tmp = 0.0
	if (t_m <= 1.5e-70)
		tmp = Float64(l * Float64(2.0 * Float64(Float64(l / t_m) / (k ^ 4.0))));
	else
		tmp = Float64(l * Float64(l * Float64((k ^ -2.0) / (t_m ^ 3.0))));
	end
	return Float64(t_s * tmp)
end
t\_m = abs(t);
t\_s = sign(t) * abs(1.0);
function tmp_2 = code(t_s, t_m, l, k)
	tmp = 0.0;
	if (t_m <= 1.5e-70)
		tmp = l * (2.0 * ((l / t_m) / (k ^ 4.0)));
	else
		tmp = l * (l * ((k ^ -2.0) / (t_m ^ 3.0)));
	end
	tmp_2 = t_s * tmp;
end
t\_m = N[Abs[t], $MachinePrecision]
t\_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[t]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
code[t$95$s_, t$95$m_, l_, k_] := N[(t$95$s * If[LessEqual[t$95$m, 1.5e-70], N[(l * N[(2.0 * N[(N[(l / t$95$m), $MachinePrecision] / N[Power[k, 4.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(l * N[(l * N[(N[Power[k, -2.0], $MachinePrecision] / N[Power[t$95$m, 3.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]), $MachinePrecision]
\begin{array}{l}
t\_m = \left|t\right|
\\
t\_s = \mathsf{copysign}\left(1, t\right)

\\
t\_s \cdot \begin{array}{l}
\mathbf{if}\;t\_m \leq 1.5 \cdot 10^{-70}:\\
\;\;\;\;\ell \cdot \left(2 \cdot \frac{\frac{\ell}{t\_m}}{{k}^{4}}\right)\\

\mathbf{else}:\\
\;\;\;\;\ell \cdot \left(\ell \cdot \frac{{k}^{-2}}{{t\_m}^{3}}\right)\\


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

    1. Initial program 50.7%

      \[\frac{2}{\left(\left(\frac{{t}^{3}}{\ell \cdot \ell} \cdot \sin k\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
    2. Simplified48.7%

      \[\leadsto \color{blue}{\frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}}}{{t}^{3} \cdot \left(\sin k \cdot \tan k\right)} \cdot \left(\ell \cdot \ell\right)} \]
    3. Add Preprocessing
    4. Step-by-step derivation
      1. associate-*r*56.6%

        \[\leadsto \color{blue}{\left(\frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}}}{{t}^{3} \cdot \left(\sin k \cdot \tan k\right)} \cdot \ell\right) \cdot \ell} \]
      2. associate-*l/55.3%

        \[\leadsto \color{blue}{\frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{{t}^{3} \cdot \left(\sin k \cdot \tan k\right)}} \cdot \ell \]
    5. Applied egg-rr55.3%

      \[\leadsto \color{blue}{\frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{{t}^{3} \cdot \left(\sin k \cdot \tan k\right)} \cdot \ell} \]
    6. Taylor expanded in k around 0 52.0%

      \[\leadsto \frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{\color{blue}{{k}^{2} \cdot {t}^{3}}} \cdot \ell \]
    7. Taylor expanded in k around inf 59.2%

      \[\leadsto \color{blue}{\left(2 \cdot \frac{\ell}{{k}^{4} \cdot t}\right)} \cdot \ell \]
    8. Step-by-step derivation
      1. *-commutative59.2%

        \[\leadsto \left(2 \cdot \frac{\ell}{\color{blue}{t \cdot {k}^{4}}}\right) \cdot \ell \]
      2. associate-/r*60.6%

        \[\leadsto \left(2 \cdot \color{blue}{\frac{\frac{\ell}{t}}{{k}^{4}}}\right) \cdot \ell \]
    9. Simplified60.6%

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

    if 1.5000000000000001e-70 < t

    1. Initial program 65.6%

      \[\frac{2}{\left(\left(\frac{{t}^{3}}{\ell \cdot \ell} \cdot \sin k\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
    2. Simplified61.4%

      \[\leadsto \color{blue}{\frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}}}{{t}^{3} \cdot \left(\sin k \cdot \tan k\right)} \cdot \left(\ell \cdot \ell\right)} \]
    3. Add Preprocessing
    4. Taylor expanded in k around 0 55.8%

      \[\leadsto \color{blue}{\frac{1}{{k}^{2} \cdot {t}^{3}}} \cdot \left(\ell \cdot \ell\right) \]
    5. Step-by-step derivation
      1. associate-*r*58.8%

        \[\leadsto \color{blue}{\left(\frac{1}{{k}^{2} \cdot {t}^{3}} \cdot \ell\right) \cdot \ell} \]
      2. associate-/r*58.8%

        \[\leadsto \left(\color{blue}{\frac{\frac{1}{{k}^{2}}}{{t}^{3}}} \cdot \ell\right) \cdot \ell \]
      3. pow-flip58.8%

        \[\leadsto \left(\frac{\color{blue}{{k}^{\left(-2\right)}}}{{t}^{3}} \cdot \ell\right) \cdot \ell \]
      4. metadata-eval58.8%

        \[\leadsto \left(\frac{{k}^{\color{blue}{-2}}}{{t}^{3}} \cdot \ell\right) \cdot \ell \]
    6. Applied egg-rr58.8%

      \[\leadsto \color{blue}{\left(\frac{{k}^{-2}}{{t}^{3}} \cdot \ell\right) \cdot \ell} \]
  3. Recombined 2 regimes into one program.
  4. Final simplification60.0%

    \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq 1.5 \cdot 10^{-70}:\\ \;\;\;\;\ell \cdot \left(2 \cdot \frac{\frac{\ell}{t}}{{k}^{4}}\right)\\ \mathbf{else}:\\ \;\;\;\;\ell \cdot \left(\ell \cdot \frac{{k}^{-2}}{{t}^{3}}\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 20: 61.3% accurate, 3.5× speedup?

\[\begin{array}{l} t\_m = \left|t\right| \\ t\_s = \mathsf{copysign}\left(1, t\right) \\ t\_s \cdot \begin{array}{l} \mathbf{if}\;t\_m \leq 2 \cdot 10^{-72}:\\ \;\;\;\;\ell \cdot \left(2 \cdot \frac{\frac{\ell}{t\_m}}{{k}^{4}}\right)\\ \mathbf{else}:\\ \;\;\;\;\ell \cdot \left(\ell \cdot \frac{\frac{1}{k} \cdot \frac{1}{k}}{{t\_m}^{3}}\right)\\ \end{array} \end{array} \]
t\_m = (fabs.f64 t)
t\_s = (copysign.f64 #s(literal 1 binary64) t)
(FPCore (t_s t_m l k)
 :precision binary64
 (*
  t_s
  (if (<= t_m 2e-72)
    (* l (* 2.0 (/ (/ l t_m) (pow k 4.0))))
    (* l (* l (/ (* (/ 1.0 k) (/ 1.0 k)) (pow t_m 3.0)))))))
t\_m = fabs(t);
t\_s = copysign(1.0, t);
double code(double t_s, double t_m, double l, double k) {
	double tmp;
	if (t_m <= 2e-72) {
		tmp = l * (2.0 * ((l / t_m) / pow(k, 4.0)));
	} else {
		tmp = l * (l * (((1.0 / k) * (1.0 / k)) / pow(t_m, 3.0)));
	}
	return t_s * tmp;
}
t\_m = abs(t)
t\_s = copysign(1.0d0, t)
real(8) function code(t_s, t_m, l, k)
    real(8), intent (in) :: t_s
    real(8), intent (in) :: t_m
    real(8), intent (in) :: l
    real(8), intent (in) :: k
    real(8) :: tmp
    if (t_m <= 2d-72) then
        tmp = l * (2.0d0 * ((l / t_m) / (k ** 4.0d0)))
    else
        tmp = l * (l * (((1.0d0 / k) * (1.0d0 / k)) / (t_m ** 3.0d0)))
    end if
    code = t_s * tmp
end function
t\_m = Math.abs(t);
t\_s = Math.copySign(1.0, t);
public static double code(double t_s, double t_m, double l, double k) {
	double tmp;
	if (t_m <= 2e-72) {
		tmp = l * (2.0 * ((l / t_m) / Math.pow(k, 4.0)));
	} else {
		tmp = l * (l * (((1.0 / k) * (1.0 / k)) / Math.pow(t_m, 3.0)));
	}
	return t_s * tmp;
}
t\_m = math.fabs(t)
t\_s = math.copysign(1.0, t)
def code(t_s, t_m, l, k):
	tmp = 0
	if t_m <= 2e-72:
		tmp = l * (2.0 * ((l / t_m) / math.pow(k, 4.0)))
	else:
		tmp = l * (l * (((1.0 / k) * (1.0 / k)) / math.pow(t_m, 3.0)))
	return t_s * tmp
t\_m = abs(t)
t\_s = copysign(1.0, t)
function code(t_s, t_m, l, k)
	tmp = 0.0
	if (t_m <= 2e-72)
		tmp = Float64(l * Float64(2.0 * Float64(Float64(l / t_m) / (k ^ 4.0))));
	else
		tmp = Float64(l * Float64(l * Float64(Float64(Float64(1.0 / k) * Float64(1.0 / k)) / (t_m ^ 3.0))));
	end
	return Float64(t_s * tmp)
end
t\_m = abs(t);
t\_s = sign(t) * abs(1.0);
function tmp_2 = code(t_s, t_m, l, k)
	tmp = 0.0;
	if (t_m <= 2e-72)
		tmp = l * (2.0 * ((l / t_m) / (k ^ 4.0)));
	else
		tmp = l * (l * (((1.0 / k) * (1.0 / k)) / (t_m ^ 3.0)));
	end
	tmp_2 = t_s * tmp;
end
t\_m = N[Abs[t], $MachinePrecision]
t\_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[t]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
code[t$95$s_, t$95$m_, l_, k_] := N[(t$95$s * If[LessEqual[t$95$m, 2e-72], N[(l * N[(2.0 * N[(N[(l / t$95$m), $MachinePrecision] / N[Power[k, 4.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(l * N[(l * N[(N[(N[(1.0 / k), $MachinePrecision] * N[(1.0 / k), $MachinePrecision]), $MachinePrecision] / N[Power[t$95$m, 3.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]), $MachinePrecision]
\begin{array}{l}
t\_m = \left|t\right|
\\
t\_s = \mathsf{copysign}\left(1, t\right)

\\
t\_s \cdot \begin{array}{l}
\mathbf{if}\;t\_m \leq 2 \cdot 10^{-72}:\\
\;\;\;\;\ell \cdot \left(2 \cdot \frac{\frac{\ell}{t\_m}}{{k}^{4}}\right)\\

\mathbf{else}:\\
\;\;\;\;\ell \cdot \left(\ell \cdot \frac{\frac{1}{k} \cdot \frac{1}{k}}{{t\_m}^{3}}\right)\\


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

    1. Initial program 50.7%

      \[\frac{2}{\left(\left(\frac{{t}^{3}}{\ell \cdot \ell} \cdot \sin k\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
    2. Simplified48.7%

      \[\leadsto \color{blue}{\frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}}}{{t}^{3} \cdot \left(\sin k \cdot \tan k\right)} \cdot \left(\ell \cdot \ell\right)} \]
    3. Add Preprocessing
    4. Step-by-step derivation
      1. associate-*r*56.6%

        \[\leadsto \color{blue}{\left(\frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}}}{{t}^{3} \cdot \left(\sin k \cdot \tan k\right)} \cdot \ell\right) \cdot \ell} \]
      2. associate-*l/55.3%

        \[\leadsto \color{blue}{\frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{{t}^{3} \cdot \left(\sin k \cdot \tan k\right)}} \cdot \ell \]
    5. Applied egg-rr55.3%

      \[\leadsto \color{blue}{\frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{{t}^{3} \cdot \left(\sin k \cdot \tan k\right)} \cdot \ell} \]
    6. Taylor expanded in k around 0 52.0%

      \[\leadsto \frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{\color{blue}{{k}^{2} \cdot {t}^{3}}} \cdot \ell \]
    7. Taylor expanded in k around inf 59.2%

      \[\leadsto \color{blue}{\left(2 \cdot \frac{\ell}{{k}^{4} \cdot t}\right)} \cdot \ell \]
    8. Step-by-step derivation
      1. *-commutative59.2%

        \[\leadsto \left(2 \cdot \frac{\ell}{\color{blue}{t \cdot {k}^{4}}}\right) \cdot \ell \]
      2. associate-/r*60.6%

        \[\leadsto \left(2 \cdot \color{blue}{\frac{\frac{\ell}{t}}{{k}^{4}}}\right) \cdot \ell \]
    9. Simplified60.6%

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

    if 1.9999999999999999e-72 < t

    1. Initial program 65.6%

      \[\frac{2}{\left(\left(\frac{{t}^{3}}{\ell \cdot \ell} \cdot \sin k\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
    2. Simplified61.4%

      \[\leadsto \color{blue}{\frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}}}{{t}^{3} \cdot \left(\sin k \cdot \tan k\right)} \cdot \left(\ell \cdot \ell\right)} \]
    3. Add Preprocessing
    4. Taylor expanded in k around 0 55.8%

      \[\leadsto \color{blue}{\frac{1}{{k}^{2} \cdot {t}^{3}}} \cdot \left(\ell \cdot \ell\right) \]
    5. Step-by-step derivation
      1. associate-*r*58.8%

        \[\leadsto \color{blue}{\left(\frac{1}{{k}^{2} \cdot {t}^{3}} \cdot \ell\right) \cdot \ell} \]
      2. associate-/r*58.8%

        \[\leadsto \left(\color{blue}{\frac{\frac{1}{{k}^{2}}}{{t}^{3}}} \cdot \ell\right) \cdot \ell \]
      3. pow-flip58.8%

        \[\leadsto \left(\frac{\color{blue}{{k}^{\left(-2\right)}}}{{t}^{3}} \cdot \ell\right) \cdot \ell \]
      4. metadata-eval58.8%

        \[\leadsto \left(\frac{{k}^{\color{blue}{-2}}}{{t}^{3}} \cdot \ell\right) \cdot \ell \]
    6. Applied egg-rr58.8%

      \[\leadsto \color{blue}{\left(\frac{{k}^{-2}}{{t}^{3}} \cdot \ell\right) \cdot \ell} \]
    7. Step-by-step derivation
      1. sqr-pow58.8%

        \[\leadsto \left(\frac{\color{blue}{{k}^{\left(\frac{-2}{2}\right)} \cdot {k}^{\left(\frac{-2}{2}\right)}}}{{t}^{3}} \cdot \ell\right) \cdot \ell \]
      2. metadata-eval58.8%

        \[\leadsto \left(\frac{{k}^{\color{blue}{-1}} \cdot {k}^{\left(\frac{-2}{2}\right)}}{{t}^{3}} \cdot \ell\right) \cdot \ell \]
      3. unpow-158.8%

        \[\leadsto \left(\frac{\color{blue}{\frac{1}{k}} \cdot {k}^{\left(\frac{-2}{2}\right)}}{{t}^{3}} \cdot \ell\right) \cdot \ell \]
      4. metadata-eval58.8%

        \[\leadsto \left(\frac{\frac{1}{k} \cdot {k}^{\color{blue}{-1}}}{{t}^{3}} \cdot \ell\right) \cdot \ell \]
      5. unpow-158.8%

        \[\leadsto \left(\frac{\frac{1}{k} \cdot \color{blue}{\frac{1}{k}}}{{t}^{3}} \cdot \ell\right) \cdot \ell \]
    8. Applied egg-rr58.8%

      \[\leadsto \left(\frac{\color{blue}{\frac{1}{k} \cdot \frac{1}{k}}}{{t}^{3}} \cdot \ell\right) \cdot \ell \]
  3. Recombined 2 regimes into one program.
  4. Final simplification60.0%

    \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq 2 \cdot 10^{-72}:\\ \;\;\;\;\ell \cdot \left(2 \cdot \frac{\frac{\ell}{t}}{{k}^{4}}\right)\\ \mathbf{else}:\\ \;\;\;\;\ell \cdot \left(\ell \cdot \frac{\frac{1}{k} \cdot \frac{1}{k}}{{t}^{3}}\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 21: 55.4% accurate, 3.8× speedup?

\[\begin{array}{l} t\_m = \left|t\right| \\ t\_s = \mathsf{copysign}\left(1, t\right) \\ t\_s \cdot \left(\ell \cdot \left(2 \cdot \frac{\frac{\ell}{t\_m}}{{k}^{4}}\right)\right) \end{array} \]
t\_m = (fabs.f64 t)
t\_s = (copysign.f64 #s(literal 1 binary64) t)
(FPCore (t_s t_m l k)
 :precision binary64
 (* t_s (* l (* 2.0 (/ (/ l t_m) (pow k 4.0))))))
t\_m = fabs(t);
t\_s = copysign(1.0, t);
double code(double t_s, double t_m, double l, double k) {
	return t_s * (l * (2.0 * ((l / t_m) / pow(k, 4.0))));
}
t\_m = abs(t)
t\_s = copysign(1.0d0, t)
real(8) function code(t_s, t_m, l, k)
    real(8), intent (in) :: t_s
    real(8), intent (in) :: t_m
    real(8), intent (in) :: l
    real(8), intent (in) :: k
    code = t_s * (l * (2.0d0 * ((l / t_m) / (k ** 4.0d0))))
end function
t\_m = Math.abs(t);
t\_s = Math.copySign(1.0, t);
public static double code(double t_s, double t_m, double l, double k) {
	return t_s * (l * (2.0 * ((l / t_m) / Math.pow(k, 4.0))));
}
t\_m = math.fabs(t)
t\_s = math.copysign(1.0, t)
def code(t_s, t_m, l, k):
	return t_s * (l * (2.0 * ((l / t_m) / math.pow(k, 4.0))))
t\_m = abs(t)
t\_s = copysign(1.0, t)
function code(t_s, t_m, l, k)
	return Float64(t_s * Float64(l * Float64(2.0 * Float64(Float64(l / t_m) / (k ^ 4.0)))))
end
t\_m = abs(t);
t\_s = sign(t) * abs(1.0);
function tmp = code(t_s, t_m, l, k)
	tmp = t_s * (l * (2.0 * ((l / t_m) / (k ^ 4.0))));
end
t\_m = N[Abs[t], $MachinePrecision]
t\_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[t]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
code[t$95$s_, t$95$m_, l_, k_] := N[(t$95$s * N[(l * N[(2.0 * N[(N[(l / t$95$m), $MachinePrecision] / N[Power[k, 4.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
t\_m = \left|t\right|
\\
t\_s = \mathsf{copysign}\left(1, t\right)

\\
t\_s \cdot \left(\ell \cdot \left(2 \cdot \frac{\frac{\ell}{t\_m}}{{k}^{4}}\right)\right)
\end{array}
Derivation
  1. Initial program 55.4%

    \[\frac{2}{\left(\left(\frac{{t}^{3}}{\ell \cdot \ell} \cdot \sin k\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
  2. Simplified52.8%

    \[\leadsto \color{blue}{\frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}}}{{t}^{3} \cdot \left(\sin k \cdot \tan k\right)} \cdot \left(\ell \cdot \ell\right)} \]
  3. Add Preprocessing
  4. Step-by-step derivation
    1. associate-*r*59.5%

      \[\leadsto \color{blue}{\left(\frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}}}{{t}^{3} \cdot \left(\sin k \cdot \tan k\right)} \cdot \ell\right) \cdot \ell} \]
    2. associate-*l/59.7%

      \[\leadsto \color{blue}{\frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{{t}^{3} \cdot \left(\sin k \cdot \tan k\right)}} \cdot \ell \]
  5. Applied egg-rr59.7%

    \[\leadsto \color{blue}{\frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{{t}^{3} \cdot \left(\sin k \cdot \tan k\right)} \cdot \ell} \]
  6. Taylor expanded in k around 0 54.2%

    \[\leadsto \frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{\color{blue}{{k}^{2} \cdot {t}^{3}}} \cdot \ell \]
  7. Taylor expanded in k around inf 54.6%

    \[\leadsto \color{blue}{\left(2 \cdot \frac{\ell}{{k}^{4} \cdot t}\right)} \cdot \ell \]
  8. Step-by-step derivation
    1. *-commutative54.6%

      \[\leadsto \left(2 \cdot \frac{\ell}{\color{blue}{t \cdot {k}^{4}}}\right) \cdot \ell \]
    2. associate-/r*55.9%

      \[\leadsto \left(2 \cdot \color{blue}{\frac{\frac{\ell}{t}}{{k}^{4}}}\right) \cdot \ell \]
  9. Simplified55.9%

    \[\leadsto \color{blue}{\left(2 \cdot \frac{\frac{\ell}{t}}{{k}^{4}}\right)} \cdot \ell \]
  10. Final simplification55.9%

    \[\leadsto \ell \cdot \left(2 \cdot \frac{\frac{\ell}{t}}{{k}^{4}}\right) \]
  11. Add Preprocessing

Alternative 22: 54.7% accurate, 3.8× speedup?

\[\begin{array}{l} t\_m = \left|t\right| \\ t\_s = \mathsf{copysign}\left(1, t\right) \\ t\_s \cdot \left(\ell \cdot \left(2 \cdot \frac{\ell}{t\_m \cdot {k}^{4}}\right)\right) \end{array} \]
t\_m = (fabs.f64 t)
t\_s = (copysign.f64 #s(literal 1 binary64) t)
(FPCore (t_s t_m l k)
 :precision binary64
 (* t_s (* l (* 2.0 (/ l (* t_m (pow k 4.0)))))))
t\_m = fabs(t);
t\_s = copysign(1.0, t);
double code(double t_s, double t_m, double l, double k) {
	return t_s * (l * (2.0 * (l / (t_m * pow(k, 4.0)))));
}
t\_m = abs(t)
t\_s = copysign(1.0d0, t)
real(8) function code(t_s, t_m, l, k)
    real(8), intent (in) :: t_s
    real(8), intent (in) :: t_m
    real(8), intent (in) :: l
    real(8), intent (in) :: k
    code = t_s * (l * (2.0d0 * (l / (t_m * (k ** 4.0d0)))))
end function
t\_m = Math.abs(t);
t\_s = Math.copySign(1.0, t);
public static double code(double t_s, double t_m, double l, double k) {
	return t_s * (l * (2.0 * (l / (t_m * Math.pow(k, 4.0)))));
}
t\_m = math.fabs(t)
t\_s = math.copysign(1.0, t)
def code(t_s, t_m, l, k):
	return t_s * (l * (2.0 * (l / (t_m * math.pow(k, 4.0)))))
t\_m = abs(t)
t\_s = copysign(1.0, t)
function code(t_s, t_m, l, k)
	return Float64(t_s * Float64(l * Float64(2.0 * Float64(l / Float64(t_m * (k ^ 4.0))))))
end
t\_m = abs(t);
t\_s = sign(t) * abs(1.0);
function tmp = code(t_s, t_m, l, k)
	tmp = t_s * (l * (2.0 * (l / (t_m * (k ^ 4.0)))));
end
t\_m = N[Abs[t], $MachinePrecision]
t\_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[t]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
code[t$95$s_, t$95$m_, l_, k_] := N[(t$95$s * N[(l * N[(2.0 * N[(l / N[(t$95$m * N[Power[k, 4.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
t\_m = \left|t\right|
\\
t\_s = \mathsf{copysign}\left(1, t\right)

\\
t\_s \cdot \left(\ell \cdot \left(2 \cdot \frac{\ell}{t\_m \cdot {k}^{4}}\right)\right)
\end{array}
Derivation
  1. Initial program 55.4%

    \[\frac{2}{\left(\left(\frac{{t}^{3}}{\ell \cdot \ell} \cdot \sin k\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
  2. Simplified52.8%

    \[\leadsto \color{blue}{\frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}}}{{t}^{3} \cdot \left(\sin k \cdot \tan k\right)} \cdot \left(\ell \cdot \ell\right)} \]
  3. Add Preprocessing
  4. Step-by-step derivation
    1. associate-*r*59.5%

      \[\leadsto \color{blue}{\left(\frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}}}{{t}^{3} \cdot \left(\sin k \cdot \tan k\right)} \cdot \ell\right) \cdot \ell} \]
    2. associate-*l/59.7%

      \[\leadsto \color{blue}{\frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{{t}^{3} \cdot \left(\sin k \cdot \tan k\right)}} \cdot \ell \]
  5. Applied egg-rr59.7%

    \[\leadsto \color{blue}{\frac{\frac{2}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \ell}{{t}^{3} \cdot \left(\sin k \cdot \tan k\right)} \cdot \ell} \]
  6. Taylor expanded in k around inf 64.0%

    \[\leadsto \color{blue}{\left(2 \cdot \frac{\ell \cdot \cos k}{{k}^{2} \cdot \left(t \cdot {\sin k}^{2}\right)}\right)} \cdot \ell \]
  7. Step-by-step derivation
    1. times-frac65.2%

      \[\leadsto \left(2 \cdot \color{blue}{\left(\frac{\ell}{{k}^{2}} \cdot \frac{\cos k}{t \cdot {\sin k}^{2}}\right)}\right) \cdot \ell \]
  8. Simplified65.2%

    \[\leadsto \color{blue}{\left(2 \cdot \left(\frac{\ell}{{k}^{2}} \cdot \frac{\cos k}{t \cdot {\sin k}^{2}}\right)\right)} \cdot \ell \]
  9. Taylor expanded in k around 0 54.6%

    \[\leadsto \left(2 \cdot \color{blue}{\frac{\ell}{{k}^{4} \cdot t}}\right) \cdot \ell \]
  10. Final simplification54.6%

    \[\leadsto \ell \cdot \left(2 \cdot \frac{\ell}{t \cdot {k}^{4}}\right) \]
  11. Add Preprocessing

Reproduce

?
herbie shell --seed 2024096 
(FPCore (t l k)
  :name "Toniolo and Linder, Equation (10+)"
  :precision binary64
  (/ 2.0 (* (* (* (/ (pow t 3.0) (* l l)) (sin k)) (tan k)) (+ (+ 1.0 (pow (/ k t) 2.0)) 1.0))))