Toniolo and Linder, Equation (10+)

Percentage Accurate: 55.1% → 85.9%
Time: 13.3s
Alternatives: 28
Speedup: 12.5×

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 28 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: 55.1% 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: 85.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 := \frac{{t\_m}^{1.5}}{\ell}\\ t\_s \cdot \begin{array}{l} \mathbf{if}\;t\_m \leq 2.3 \cdot 10^{-23}:\\ \;\;\;\;\frac{2}{\frac{\left(k \cdot k\right) \cdot t\_m}{\cos k \cdot \ell} \cdot \frac{{\sin k}^{2}}{\ell}}\\ \mathbf{elif}\;t\_m \leq 1.35 \cdot 10^{+205}:\\ \;\;\;\;\frac{2}{\left(\left(t\_2 \cdot \left(t\_2 \cdot \sin k\right)\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t\_m}\right)}^{2}\right) + 1\right)}\\ \mathbf{else}:\\ \;\;\;\;\frac{\ell}{\left(k \cdot t\_m\right) \cdot \left(k \cdot t\_m\right)} \cdot \frac{\ell}{t\_m}\\ \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 t_m 1.5) l)))
   (*
    t_s
    (if (<= t_m 2.3e-23)
      (/ 2.0 (* (/ (* (* k k) t_m) (* (cos k) l)) (/ (pow (sin k) 2.0) l)))
      (if (<= t_m 1.35e+205)
        (/
         2.0
         (*
          (* (* t_2 (* t_2 (sin k))) (tan k))
          (+ (+ 1.0 (pow (/ k t_m) 2.0)) 1.0)))
        (* (/ l (* (* k t_m) (* k t_m))) (/ l t_m)))))))
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(t_m, 1.5) / l;
	double tmp;
	if (t_m <= 2.3e-23) {
		tmp = 2.0 / ((((k * k) * t_m) / (cos(k) * l)) * (pow(sin(k), 2.0) / l));
	} else if (t_m <= 1.35e+205) {
		tmp = 2.0 / (((t_2 * (t_2 * sin(k))) * tan(k)) * ((1.0 + pow((k / t_m), 2.0)) + 1.0));
	} else {
		tmp = (l / ((k * t_m) * (k * t_m))) * (l / t_m);
	}
	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) :: t_2
    real(8) :: tmp
    t_2 = (t_m ** 1.5d0) / l
    if (t_m <= 2.3d-23) then
        tmp = 2.0d0 / ((((k * k) * t_m) / (cos(k) * l)) * ((sin(k) ** 2.0d0) / l))
    else if (t_m <= 1.35d+205) then
        tmp = 2.0d0 / (((t_2 * (t_2 * sin(k))) * tan(k)) * ((1.0d0 + ((k / t_m) ** 2.0d0)) + 1.0d0))
    else
        tmp = (l / ((k * t_m) * (k * t_m))) * (l / t_m)
    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 t_2 = Math.pow(t_m, 1.5) / l;
	double tmp;
	if (t_m <= 2.3e-23) {
		tmp = 2.0 / ((((k * k) * t_m) / (Math.cos(k) * l)) * (Math.pow(Math.sin(k), 2.0) / l));
	} else if (t_m <= 1.35e+205) {
		tmp = 2.0 / (((t_2 * (t_2 * Math.sin(k))) * Math.tan(k)) * ((1.0 + Math.pow((k / t_m), 2.0)) + 1.0));
	} else {
		tmp = (l / ((k * t_m) * (k * t_m))) * (l / t_m);
	}
	return t_s * tmp;
}
t\_m = math.fabs(t)
t\_s = math.copysign(1.0, t)
def code(t_s, t_m, l, k):
	t_2 = math.pow(t_m, 1.5) / l
	tmp = 0
	if t_m <= 2.3e-23:
		tmp = 2.0 / ((((k * k) * t_m) / (math.cos(k) * l)) * (math.pow(math.sin(k), 2.0) / l))
	elif t_m <= 1.35e+205:
		tmp = 2.0 / (((t_2 * (t_2 * math.sin(k))) * math.tan(k)) * ((1.0 + math.pow((k / t_m), 2.0)) + 1.0))
	else:
		tmp = (l / ((k * t_m) * (k * t_m))) * (l / t_m)
	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((t_m ^ 1.5) / l)
	tmp = 0.0
	if (t_m <= 2.3e-23)
		tmp = Float64(2.0 / Float64(Float64(Float64(Float64(k * k) * t_m) / Float64(cos(k) * l)) * Float64((sin(k) ^ 2.0) / l)));
	elseif (t_m <= 1.35e+205)
		tmp = Float64(2.0 / Float64(Float64(Float64(t_2 * Float64(t_2 * sin(k))) * tan(k)) * Float64(Float64(1.0 + (Float64(k / t_m) ^ 2.0)) + 1.0)));
	else
		tmp = Float64(Float64(l / Float64(Float64(k * t_m) * Float64(k * t_m))) * Float64(l / t_m));
	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)
	t_2 = (t_m ^ 1.5) / l;
	tmp = 0.0;
	if (t_m <= 2.3e-23)
		tmp = 2.0 / ((((k * k) * t_m) / (cos(k) * l)) * ((sin(k) ^ 2.0) / l));
	elseif (t_m <= 1.35e+205)
		tmp = 2.0 / (((t_2 * (t_2 * sin(k))) * tan(k)) * ((1.0 + ((k / t_m) ^ 2.0)) + 1.0));
	else
		tmp = (l / ((k * t_m) * (k * t_m))) * (l / t_m);
	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_] := Block[{t$95$2 = N[(N[Power[t$95$m, 1.5], $MachinePrecision] / l), $MachinePrecision]}, N[(t$95$s * If[LessEqual[t$95$m, 2.3e-23], N[(2.0 / N[(N[(N[(N[(k * k), $MachinePrecision] * t$95$m), $MachinePrecision] / N[(N[Cos[k], $MachinePrecision] * l), $MachinePrecision]), $MachinePrecision] * N[(N[Power[N[Sin[k], $MachinePrecision], 2.0], $MachinePrecision] / l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$m, 1.35e+205], N[(2.0 / N[(N[(N[(t$95$2 * N[(t$95$2 * N[Sin[k], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[Tan[k], $MachinePrecision]), $MachinePrecision] * N[(N[(1.0 + N[Power[N[(k / t$95$m), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(l / N[(N[(k * t$95$m), $MachinePrecision] * N[(k * t$95$m), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(l / t$95$m), $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{{t\_m}^{1.5}}{\ell}\\
t\_s \cdot \begin{array}{l}
\mathbf{if}\;t\_m \leq 2.3 \cdot 10^{-23}:\\
\;\;\;\;\frac{2}{\frac{\left(k \cdot k\right) \cdot t\_m}{\cos k \cdot \ell} \cdot \frac{{\sin k}^{2}}{\ell}}\\

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

\mathbf{else}:\\
\;\;\;\;\frac{\ell}{\left(k \cdot t\_m\right) \cdot \left(k \cdot t\_m\right)} \cdot \frac{\ell}{t\_m}\\


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

    1. Initial program 49.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. lift-*.f64N/A

        \[\leadsto \frac{2}{\left(\color{blue}{\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. lift-/.f64N/A

        \[\leadsto \frac{2}{\left(\left(\color{blue}{\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)} \]
      3. lift-pow.f64N/A

        \[\leadsto \frac{2}{\left(\left(\frac{\color{blue}{{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)} \]
      4. sqr-powN/A

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

        \[\leadsto \frac{2}{\left(\left(\frac{{t}^{\left(\frac{3}{2}\right)} \cdot {t}^{\left(\frac{3}{2}\right)}}{\color{blue}{\ell \cdot \ell}} \cdot \sin k\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
      6. times-fracN/A

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

        \[\leadsto \frac{2}{\left(\color{blue}{\left(\frac{{t}^{\left(\frac{3}{2}\right)}}{\ell} \cdot \left(\frac{{t}^{\left(\frac{3}{2}\right)}}{\ell} \cdot \sin k\right)\right)} \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
      8. lower-*.f64N/A

        \[\leadsto \frac{2}{\left(\color{blue}{\left(\frac{{t}^{\left(\frac{3}{2}\right)}}{\ell} \cdot \left(\frac{{t}^{\left(\frac{3}{2}\right)}}{\ell} \cdot \sin k\right)\right)} \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
      9. lower-/.f64N/A

        \[\leadsto \frac{2}{\left(\left(\color{blue}{\frac{{t}^{\left(\frac{3}{2}\right)}}{\ell}} \cdot \left(\frac{{t}^{\left(\frac{3}{2}\right)}}{\ell} \cdot \sin k\right)\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
      10. lower-pow.f64N/A

        \[\leadsto \frac{2}{\left(\left(\frac{\color{blue}{{t}^{\left(\frac{3}{2}\right)}}}{\ell} \cdot \left(\frac{{t}^{\left(\frac{3}{2}\right)}}{\ell} \cdot \sin k\right)\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
      11. metadata-evalN/A

        \[\leadsto \frac{2}{\left(\left(\frac{{t}^{\color{blue}{\frac{3}{2}}}}{\ell} \cdot \left(\frac{{t}^{\left(\frac{3}{2}\right)}}{\ell} \cdot \sin k\right)\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
      12. lower-*.f64N/A

        \[\leadsto \frac{2}{\left(\left(\frac{{t}^{\frac{3}{2}}}{\ell} \cdot \color{blue}{\left(\frac{{t}^{\left(\frac{3}{2}\right)}}{\ell} \cdot \sin k\right)}\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
      13. lower-/.f64N/A

        \[\leadsto \frac{2}{\left(\left(\frac{{t}^{\frac{3}{2}}}{\ell} \cdot \left(\color{blue}{\frac{{t}^{\left(\frac{3}{2}\right)}}{\ell}} \cdot \sin k\right)\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
      14. lower-pow.f64N/A

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

        \[\leadsto \frac{2}{\left(\left(\frac{{t}^{1.5}}{\ell} \cdot \left(\frac{{t}^{\color{blue}{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)} \]
    4. Applied rewrites22.5%

      \[\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. Taylor expanded in t around 0

      \[\leadsto \frac{2}{\color{blue}{\frac{{k}^{2} \cdot \left(t \cdot {\sin k}^{2}\right)}{{\ell}^{2} \cdot \cos k}}} \]
    6. Step-by-step derivation
      1. *-commutativeN/A

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

        \[\leadsto \frac{2}{\frac{\color{blue}{t \cdot \left({\sin k}^{2} \cdot {k}^{2}\right)}}{{\ell}^{2} \cdot \cos k}} \]
      3. *-commutativeN/A

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

        \[\leadsto \frac{2}{\color{blue}{t \cdot \frac{{k}^{2} \cdot {\sin k}^{2}}{{\ell}^{2} \cdot \cos k}}} \]
      5. associate-/l*N/A

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

        \[\leadsto \frac{2}{\color{blue}{\left(t \cdot {k}^{2}\right) \cdot \frac{{\sin k}^{2}}{{\ell}^{2} \cdot \cos k}}} \]
      7. lower-*.f64N/A

        \[\leadsto \frac{2}{\color{blue}{\left(t \cdot {k}^{2}\right) \cdot \frac{{\sin k}^{2}}{{\ell}^{2} \cdot \cos k}}} \]
      8. lower-*.f64N/A

        \[\leadsto \frac{2}{\color{blue}{\left(t \cdot {k}^{2}\right)} \cdot \frac{{\sin k}^{2}}{{\ell}^{2} \cdot \cos k}} \]
      9. unpow2N/A

        \[\leadsto \frac{2}{\left(t \cdot \color{blue}{\left(k \cdot k\right)}\right) \cdot \frac{{\sin k}^{2}}{{\ell}^{2} \cdot \cos k}} \]
      10. lower-*.f64N/A

        \[\leadsto \frac{2}{\left(t \cdot \color{blue}{\left(k \cdot k\right)}\right) \cdot \frac{{\sin k}^{2}}{{\ell}^{2} \cdot \cos k}} \]
      11. lower-/.f64N/A

        \[\leadsto \frac{2}{\left(t \cdot \left(k \cdot k\right)\right) \cdot \color{blue}{\frac{{\sin k}^{2}}{{\ell}^{2} \cdot \cos k}}} \]
      12. lower-pow.f64N/A

        \[\leadsto \frac{2}{\left(t \cdot \left(k \cdot k\right)\right) \cdot \frac{\color{blue}{{\sin k}^{2}}}{{\ell}^{2} \cdot \cos k}} \]
      13. lower-sin.f64N/A

        \[\leadsto \frac{2}{\left(t \cdot \left(k \cdot k\right)\right) \cdot \frac{{\color{blue}{\sin k}}^{2}}{{\ell}^{2} \cdot \cos k}} \]
      14. *-commutativeN/A

        \[\leadsto \frac{2}{\left(t \cdot \left(k \cdot k\right)\right) \cdot \frac{{\sin k}^{2}}{\color{blue}{\cos k \cdot {\ell}^{2}}}} \]
      15. unpow2N/A

        \[\leadsto \frac{2}{\left(t \cdot \left(k \cdot k\right)\right) \cdot \frac{{\sin k}^{2}}{\cos k \cdot \color{blue}{\left(\ell \cdot \ell\right)}}} \]
      16. associate-*r*N/A

        \[\leadsto \frac{2}{\left(t \cdot \left(k \cdot k\right)\right) \cdot \frac{{\sin k}^{2}}{\color{blue}{\left(\cos k \cdot \ell\right) \cdot \ell}}} \]
      17. *-commutativeN/A

        \[\leadsto \frac{2}{\left(t \cdot \left(k \cdot k\right)\right) \cdot \frac{{\sin k}^{2}}{\color{blue}{\left(\ell \cdot \cos k\right)} \cdot \ell}} \]
      18. lower-*.f64N/A

        \[\leadsto \frac{2}{\left(t \cdot \left(k \cdot k\right)\right) \cdot \frac{{\sin k}^{2}}{\color{blue}{\left(\ell \cdot \cos k\right) \cdot \ell}}} \]
      19. *-commutativeN/A

        \[\leadsto \frac{2}{\left(t \cdot \left(k \cdot k\right)\right) \cdot \frac{{\sin k}^{2}}{\color{blue}{\left(\cos k \cdot \ell\right)} \cdot \ell}} \]
      20. lower-*.f64N/A

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

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

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

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

      if 2.3000000000000001e-23 < t < 1.35000000000000006e205

      1. Initial program 63.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. lift-*.f64N/A

          \[\leadsto \frac{2}{\left(\color{blue}{\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. lift-/.f64N/A

          \[\leadsto \frac{2}{\left(\left(\color{blue}{\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)} \]
        3. lift-pow.f64N/A

          \[\leadsto \frac{2}{\left(\left(\frac{\color{blue}{{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)} \]
        4. sqr-powN/A

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

          \[\leadsto \frac{2}{\left(\left(\frac{{t}^{\left(\frac{3}{2}\right)} \cdot {t}^{\left(\frac{3}{2}\right)}}{\color{blue}{\ell \cdot \ell}} \cdot \sin k\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
        6. times-fracN/A

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

          \[\leadsto \frac{2}{\left(\color{blue}{\left(\frac{{t}^{\left(\frac{3}{2}\right)}}{\ell} \cdot \left(\frac{{t}^{\left(\frac{3}{2}\right)}}{\ell} \cdot \sin k\right)\right)} \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
        8. lower-*.f64N/A

          \[\leadsto \frac{2}{\left(\color{blue}{\left(\frac{{t}^{\left(\frac{3}{2}\right)}}{\ell} \cdot \left(\frac{{t}^{\left(\frac{3}{2}\right)}}{\ell} \cdot \sin k\right)\right)} \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
        9. lower-/.f64N/A

          \[\leadsto \frac{2}{\left(\left(\color{blue}{\frac{{t}^{\left(\frac{3}{2}\right)}}{\ell}} \cdot \left(\frac{{t}^{\left(\frac{3}{2}\right)}}{\ell} \cdot \sin k\right)\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
        10. lower-pow.f64N/A

          \[\leadsto \frac{2}{\left(\left(\frac{\color{blue}{{t}^{\left(\frac{3}{2}\right)}}}{\ell} \cdot \left(\frac{{t}^{\left(\frac{3}{2}\right)}}{\ell} \cdot \sin k\right)\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
        11. metadata-evalN/A

          \[\leadsto \frac{2}{\left(\left(\frac{{t}^{\color{blue}{\frac{3}{2}}}}{\ell} \cdot \left(\frac{{t}^{\left(\frac{3}{2}\right)}}{\ell} \cdot \sin k\right)\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
        12. lower-*.f64N/A

          \[\leadsto \frac{2}{\left(\left(\frac{{t}^{\frac{3}{2}}}{\ell} \cdot \color{blue}{\left(\frac{{t}^{\left(\frac{3}{2}\right)}}{\ell} \cdot \sin k\right)}\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
        13. lower-/.f64N/A

          \[\leadsto \frac{2}{\left(\left(\frac{{t}^{\frac{3}{2}}}{\ell} \cdot \left(\color{blue}{\frac{{t}^{\left(\frac{3}{2}\right)}}{\ell}} \cdot \sin k\right)\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
        14. lower-pow.f64N/A

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

          \[\leadsto \frac{2}{\left(\left(\frac{{t}^{1.5}}{\ell} \cdot \left(\frac{{t}^{\color{blue}{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)} \]
      4. Applied rewrites93.1%

        \[\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 1.35000000000000006e205 < t

      1. Initial program 43.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. Taylor expanded in k around 0

        \[\leadsto \color{blue}{\frac{{\ell}^{2}}{{k}^{2} \cdot {t}^{3}}} \]
      4. Step-by-step derivation
        1. unpow2N/A

          \[\leadsto \frac{\color{blue}{\ell \cdot \ell}}{{k}^{2} \cdot {t}^{3}} \]
        2. *-commutativeN/A

          \[\leadsto \frac{\ell \cdot \ell}{\color{blue}{{t}^{3} \cdot {k}^{2}}} \]
        3. times-fracN/A

          \[\leadsto \color{blue}{\frac{\ell}{{t}^{3}} \cdot \frac{\ell}{{k}^{2}}} \]
        4. lower-*.f64N/A

          \[\leadsto \color{blue}{\frac{\ell}{{t}^{3}} \cdot \frac{\ell}{{k}^{2}}} \]
        5. lower-/.f64N/A

          \[\leadsto \color{blue}{\frac{\ell}{{t}^{3}}} \cdot \frac{\ell}{{k}^{2}} \]
        6. lower-pow.f64N/A

          \[\leadsto \frac{\ell}{\color{blue}{{t}^{3}}} \cdot \frac{\ell}{{k}^{2}} \]
        7. lower-/.f64N/A

          \[\leadsto \frac{\ell}{{t}^{3}} \cdot \color{blue}{\frac{\ell}{{k}^{2}}} \]
        8. unpow2N/A

          \[\leadsto \frac{\ell}{{t}^{3}} \cdot \frac{\ell}{\color{blue}{k \cdot k}} \]
        9. lower-*.f6450.3

          \[\leadsto \frac{\ell}{{t}^{3}} \cdot \frac{\ell}{\color{blue}{k \cdot k}} \]
      5. Applied rewrites50.3%

        \[\leadsto \color{blue}{\frac{\ell}{{t}^{3}} \cdot \frac{\ell}{k \cdot k}} \]
      6. Step-by-step derivation
        1. Applied rewrites50.8%

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

            \[\leadsto \frac{\left(-\ell\right) \cdot \ell}{\color{blue}{\left(\left(k \cdot k\right) \cdot t\right) \cdot \left(\left(-t\right) \cdot t\right)}} \]
          2. Step-by-step derivation
            1. Applied rewrites88.5%

              \[\leadsto \frac{-\ell}{\left(k \cdot t\right) \cdot \left(\left(-k\right) \cdot t\right)} \cdot \color{blue}{\frac{\ell}{t}} \]
          3. Recombined 3 regimes into one program.
          4. Final simplification78.3%

            \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq 2.3 \cdot 10^{-23}:\\ \;\;\;\;\frac{2}{\frac{\left(k \cdot k\right) \cdot t}{\cos k \cdot \ell} \cdot \frac{{\sin k}^{2}}{\ell}}\\ \mathbf{elif}\;t \leq 1.35 \cdot 10^{+205}:\\ \;\;\;\;\frac{2}{\left(\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)}\\ \mathbf{else}:\\ \;\;\;\;\frac{\ell}{\left(k \cdot t\right) \cdot \left(k \cdot t\right)} \cdot \frac{\ell}{t}\\ \end{array} \]
          5. Add Preprocessing

          Alternative 2: 84.9% accurate, 1.2× 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.25 \cdot 10^{-23}:\\ \;\;\;\;\frac{2}{\frac{\left(k \cdot k\right) \cdot t\_m}{\cos k \cdot \ell} \cdot \frac{{\sin k}^{2}}{\ell}}\\ \mathbf{elif}\;t\_m \leq 8 \cdot 10^{+203}:\\ \;\;\;\;\frac{\frac{2}{t\_m}}{\left(\frac{t\_m}{\ell} \cdot t\_m\right) \cdot \tan k} \cdot \frac{\ell}{\left({\left(\frac{k}{t\_m}\right)}^{2} + 2\right) \cdot \sin k}\\ \mathbf{else}:\\ \;\;\;\;\frac{\ell}{\left(k \cdot t\_m\right) \cdot \left(k \cdot t\_m\right)} \cdot \frac{\ell}{t\_m}\\ \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.25e-23)
              (/ 2.0 (* (/ (* (* k k) t_m) (* (cos k) l)) (/ (pow (sin k) 2.0) l)))
              (if (<= t_m 8e+203)
                (*
                 (/ (/ 2.0 t_m) (* (* (/ t_m l) t_m) (tan k)))
                 (/ l (* (+ (pow (/ k t_m) 2.0) 2.0) (sin k))))
                (* (/ l (* (* k t_m) (* k t_m))) (/ l t_m))))))
          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.25e-23) {
          		tmp = 2.0 / ((((k * k) * t_m) / (cos(k) * l)) * (pow(sin(k), 2.0) / l));
          	} else if (t_m <= 8e+203) {
          		tmp = ((2.0 / t_m) / (((t_m / l) * t_m) * tan(k))) * (l / ((pow((k / t_m), 2.0) + 2.0) * sin(k)));
          	} else {
          		tmp = (l / ((k * t_m) * (k * t_m))) * (l / t_m);
          	}
          	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 <= 2.25d-23) then
                  tmp = 2.0d0 / ((((k * k) * t_m) / (cos(k) * l)) * ((sin(k) ** 2.0d0) / l))
              else if (t_m <= 8d+203) then
                  tmp = ((2.0d0 / t_m) / (((t_m / l) * t_m) * tan(k))) * (l / ((((k / t_m) ** 2.0d0) + 2.0d0) * sin(k)))
              else
                  tmp = (l / ((k * t_m) * (k * t_m))) * (l / t_m)
              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 <= 2.25e-23) {
          		tmp = 2.0 / ((((k * k) * t_m) / (Math.cos(k) * l)) * (Math.pow(Math.sin(k), 2.0) / l));
          	} else if (t_m <= 8e+203) {
          		tmp = ((2.0 / t_m) / (((t_m / l) * t_m) * Math.tan(k))) * (l / ((Math.pow((k / t_m), 2.0) + 2.0) * Math.sin(k)));
          	} else {
          		tmp = (l / ((k * t_m) * (k * t_m))) * (l / t_m);
          	}
          	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 <= 2.25e-23:
          		tmp = 2.0 / ((((k * k) * t_m) / (math.cos(k) * l)) * (math.pow(math.sin(k), 2.0) / l))
          	elif t_m <= 8e+203:
          		tmp = ((2.0 / t_m) / (((t_m / l) * t_m) * math.tan(k))) * (l / ((math.pow((k / t_m), 2.0) + 2.0) * math.sin(k)))
          	else:
          		tmp = (l / ((k * t_m) * (k * t_m))) * (l / t_m)
          	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.25e-23)
          		tmp = Float64(2.0 / Float64(Float64(Float64(Float64(k * k) * t_m) / Float64(cos(k) * l)) * Float64((sin(k) ^ 2.0) / l)));
          	elseif (t_m <= 8e+203)
          		tmp = Float64(Float64(Float64(2.0 / t_m) / Float64(Float64(Float64(t_m / l) * t_m) * tan(k))) * Float64(l / Float64(Float64((Float64(k / t_m) ^ 2.0) + 2.0) * sin(k))));
          	else
          		tmp = Float64(Float64(l / Float64(Float64(k * t_m) * Float64(k * t_m))) * Float64(l / t_m));
          	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 <= 2.25e-23)
          		tmp = 2.0 / ((((k * k) * t_m) / (cos(k) * l)) * ((sin(k) ^ 2.0) / l));
          	elseif (t_m <= 8e+203)
          		tmp = ((2.0 / t_m) / (((t_m / l) * t_m) * tan(k))) * (l / ((((k / t_m) ^ 2.0) + 2.0) * sin(k)));
          	else
          		tmp = (l / ((k * t_m) * (k * t_m))) * (l / t_m);
          	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, 2.25e-23], N[(2.0 / N[(N[(N[(N[(k * k), $MachinePrecision] * t$95$m), $MachinePrecision] / N[(N[Cos[k], $MachinePrecision] * l), $MachinePrecision]), $MachinePrecision] * N[(N[Power[N[Sin[k], $MachinePrecision], 2.0], $MachinePrecision] / l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$m, 8e+203], N[(N[(N[(2.0 / t$95$m), $MachinePrecision] / N[(N[(N[(t$95$m / l), $MachinePrecision] * t$95$m), $MachinePrecision] * N[Tan[k], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(l / N[(N[(N[Power[N[(k / t$95$m), $MachinePrecision], 2.0], $MachinePrecision] + 2.0), $MachinePrecision] * N[Sin[k], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(l / N[(N[(k * t$95$m), $MachinePrecision] * N[(k * t$95$m), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(l / t$95$m), $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.25 \cdot 10^{-23}:\\
          \;\;\;\;\frac{2}{\frac{\left(k \cdot k\right) \cdot t\_m}{\cos k \cdot \ell} \cdot \frac{{\sin k}^{2}}{\ell}}\\
          
          \mathbf{elif}\;t\_m \leq 8 \cdot 10^{+203}:\\
          \;\;\;\;\frac{\frac{2}{t\_m}}{\left(\frac{t\_m}{\ell} \cdot t\_m\right) \cdot \tan k} \cdot \frac{\ell}{\left({\left(\frac{k}{t\_m}\right)}^{2} + 2\right) \cdot \sin k}\\
          
          \mathbf{else}:\\
          \;\;\;\;\frac{\ell}{\left(k \cdot t\_m\right) \cdot \left(k \cdot t\_m\right)} \cdot \frac{\ell}{t\_m}\\
          
          
          \end{array}
          \end{array}
          
          Derivation
          1. Split input into 3 regimes
          2. if t < 2.24999999999999987e-23

            1. Initial program 49.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. lift-*.f64N/A

                \[\leadsto \frac{2}{\left(\color{blue}{\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. lift-/.f64N/A

                \[\leadsto \frac{2}{\left(\left(\color{blue}{\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)} \]
              3. lift-pow.f64N/A

                \[\leadsto \frac{2}{\left(\left(\frac{\color{blue}{{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)} \]
              4. sqr-powN/A

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

                \[\leadsto \frac{2}{\left(\left(\frac{{t}^{\left(\frac{3}{2}\right)} \cdot {t}^{\left(\frac{3}{2}\right)}}{\color{blue}{\ell \cdot \ell}} \cdot \sin k\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
              6. times-fracN/A

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

                \[\leadsto \frac{2}{\left(\color{blue}{\left(\frac{{t}^{\left(\frac{3}{2}\right)}}{\ell} \cdot \left(\frac{{t}^{\left(\frac{3}{2}\right)}}{\ell} \cdot \sin k\right)\right)} \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
              8. lower-*.f64N/A

                \[\leadsto \frac{2}{\left(\color{blue}{\left(\frac{{t}^{\left(\frac{3}{2}\right)}}{\ell} \cdot \left(\frac{{t}^{\left(\frac{3}{2}\right)}}{\ell} \cdot \sin k\right)\right)} \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
              9. lower-/.f64N/A

                \[\leadsto \frac{2}{\left(\left(\color{blue}{\frac{{t}^{\left(\frac{3}{2}\right)}}{\ell}} \cdot \left(\frac{{t}^{\left(\frac{3}{2}\right)}}{\ell} \cdot \sin k\right)\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
              10. lower-pow.f64N/A

                \[\leadsto \frac{2}{\left(\left(\frac{\color{blue}{{t}^{\left(\frac{3}{2}\right)}}}{\ell} \cdot \left(\frac{{t}^{\left(\frac{3}{2}\right)}}{\ell} \cdot \sin k\right)\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
              11. metadata-evalN/A

                \[\leadsto \frac{2}{\left(\left(\frac{{t}^{\color{blue}{\frac{3}{2}}}}{\ell} \cdot \left(\frac{{t}^{\left(\frac{3}{2}\right)}}{\ell} \cdot \sin k\right)\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
              12. lower-*.f64N/A

                \[\leadsto \frac{2}{\left(\left(\frac{{t}^{\frac{3}{2}}}{\ell} \cdot \color{blue}{\left(\frac{{t}^{\left(\frac{3}{2}\right)}}{\ell} \cdot \sin k\right)}\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
              13. lower-/.f64N/A

                \[\leadsto \frac{2}{\left(\left(\frac{{t}^{\frac{3}{2}}}{\ell} \cdot \left(\color{blue}{\frac{{t}^{\left(\frac{3}{2}\right)}}{\ell}} \cdot \sin k\right)\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
              14. lower-pow.f64N/A

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

                \[\leadsto \frac{2}{\left(\left(\frac{{t}^{1.5}}{\ell} \cdot \left(\frac{{t}^{\color{blue}{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)} \]
            4. Applied rewrites22.5%

              \[\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. Taylor expanded in t around 0

              \[\leadsto \frac{2}{\color{blue}{\frac{{k}^{2} \cdot \left(t \cdot {\sin k}^{2}\right)}{{\ell}^{2} \cdot \cos k}}} \]
            6. Step-by-step derivation
              1. *-commutativeN/A

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

                \[\leadsto \frac{2}{\frac{\color{blue}{t \cdot \left({\sin k}^{2} \cdot {k}^{2}\right)}}{{\ell}^{2} \cdot \cos k}} \]
              3. *-commutativeN/A

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

                \[\leadsto \frac{2}{\color{blue}{t \cdot \frac{{k}^{2} \cdot {\sin k}^{2}}{{\ell}^{2} \cdot \cos k}}} \]
              5. associate-/l*N/A

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

                \[\leadsto \frac{2}{\color{blue}{\left(t \cdot {k}^{2}\right) \cdot \frac{{\sin k}^{2}}{{\ell}^{2} \cdot \cos k}}} \]
              7. lower-*.f64N/A

                \[\leadsto \frac{2}{\color{blue}{\left(t \cdot {k}^{2}\right) \cdot \frac{{\sin k}^{2}}{{\ell}^{2} \cdot \cos k}}} \]
              8. lower-*.f64N/A

                \[\leadsto \frac{2}{\color{blue}{\left(t \cdot {k}^{2}\right)} \cdot \frac{{\sin k}^{2}}{{\ell}^{2} \cdot \cos k}} \]
              9. unpow2N/A

                \[\leadsto \frac{2}{\left(t \cdot \color{blue}{\left(k \cdot k\right)}\right) \cdot \frac{{\sin k}^{2}}{{\ell}^{2} \cdot \cos k}} \]
              10. lower-*.f64N/A

                \[\leadsto \frac{2}{\left(t \cdot \color{blue}{\left(k \cdot k\right)}\right) \cdot \frac{{\sin k}^{2}}{{\ell}^{2} \cdot \cos k}} \]
              11. lower-/.f64N/A

                \[\leadsto \frac{2}{\left(t \cdot \left(k \cdot k\right)\right) \cdot \color{blue}{\frac{{\sin k}^{2}}{{\ell}^{2} \cdot \cos k}}} \]
              12. lower-pow.f64N/A

                \[\leadsto \frac{2}{\left(t \cdot \left(k \cdot k\right)\right) \cdot \frac{\color{blue}{{\sin k}^{2}}}{{\ell}^{2} \cdot \cos k}} \]
              13. lower-sin.f64N/A

                \[\leadsto \frac{2}{\left(t \cdot \left(k \cdot k\right)\right) \cdot \frac{{\color{blue}{\sin k}}^{2}}{{\ell}^{2} \cdot \cos k}} \]
              14. *-commutativeN/A

                \[\leadsto \frac{2}{\left(t \cdot \left(k \cdot k\right)\right) \cdot \frac{{\sin k}^{2}}{\color{blue}{\cos k \cdot {\ell}^{2}}}} \]
              15. unpow2N/A

                \[\leadsto \frac{2}{\left(t \cdot \left(k \cdot k\right)\right) \cdot \frac{{\sin k}^{2}}{\cos k \cdot \color{blue}{\left(\ell \cdot \ell\right)}}} \]
              16. associate-*r*N/A

                \[\leadsto \frac{2}{\left(t \cdot \left(k \cdot k\right)\right) \cdot \frac{{\sin k}^{2}}{\color{blue}{\left(\cos k \cdot \ell\right) \cdot \ell}}} \]
              17. *-commutativeN/A

                \[\leadsto \frac{2}{\left(t \cdot \left(k \cdot k\right)\right) \cdot \frac{{\sin k}^{2}}{\color{blue}{\left(\ell \cdot \cos k\right)} \cdot \ell}} \]
              18. lower-*.f64N/A

                \[\leadsto \frac{2}{\left(t \cdot \left(k \cdot k\right)\right) \cdot \frac{{\sin k}^{2}}{\color{blue}{\left(\ell \cdot \cos k\right) \cdot \ell}}} \]
              19. *-commutativeN/A

                \[\leadsto \frac{2}{\left(t \cdot \left(k \cdot k\right)\right) \cdot \frac{{\sin k}^{2}}{\color{blue}{\left(\cos k \cdot \ell\right)} \cdot \ell}} \]
              20. lower-*.f64N/A

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

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

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

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

              if 2.24999999999999987e-23 < t < 7.9999999999999999e203

              1. Initial program 63.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. lift-*.f64N/A

                  \[\leadsto \frac{2}{\left(\color{blue}{\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. lift-/.f64N/A

                  \[\leadsto \frac{2}{\left(\left(\color{blue}{\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)} \]
                3. lift-pow.f64N/A

                  \[\leadsto \frac{2}{\left(\left(\frac{\color{blue}{{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)} \]
                4. sqr-powN/A

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

                  \[\leadsto \frac{2}{\left(\left(\frac{{t}^{\left(\frac{3}{2}\right)} \cdot {t}^{\left(\frac{3}{2}\right)}}{\color{blue}{\ell \cdot \ell}} \cdot \sin k\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
                6. times-fracN/A

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

                  \[\leadsto \frac{2}{\left(\color{blue}{\left(\frac{{t}^{\left(\frac{3}{2}\right)}}{\ell} \cdot \left(\frac{{t}^{\left(\frac{3}{2}\right)}}{\ell} \cdot \sin k\right)\right)} \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
                8. lower-*.f64N/A

                  \[\leadsto \frac{2}{\left(\color{blue}{\left(\frac{{t}^{\left(\frac{3}{2}\right)}}{\ell} \cdot \left(\frac{{t}^{\left(\frac{3}{2}\right)}}{\ell} \cdot \sin k\right)\right)} \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
                9. lower-/.f64N/A

                  \[\leadsto \frac{2}{\left(\left(\color{blue}{\frac{{t}^{\left(\frac{3}{2}\right)}}{\ell}} \cdot \left(\frac{{t}^{\left(\frac{3}{2}\right)}}{\ell} \cdot \sin k\right)\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
                10. lower-pow.f64N/A

                  \[\leadsto \frac{2}{\left(\left(\frac{\color{blue}{{t}^{\left(\frac{3}{2}\right)}}}{\ell} \cdot \left(\frac{{t}^{\left(\frac{3}{2}\right)}}{\ell} \cdot \sin k\right)\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
                11. metadata-evalN/A

                  \[\leadsto \frac{2}{\left(\left(\frac{{t}^{\color{blue}{\frac{3}{2}}}}{\ell} \cdot \left(\frac{{t}^{\left(\frac{3}{2}\right)}}{\ell} \cdot \sin k\right)\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
                12. lower-*.f64N/A

                  \[\leadsto \frac{2}{\left(\left(\frac{{t}^{\frac{3}{2}}}{\ell} \cdot \color{blue}{\left(\frac{{t}^{\left(\frac{3}{2}\right)}}{\ell} \cdot \sin k\right)}\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
                13. lower-/.f64N/A

                  \[\leadsto \frac{2}{\left(\left(\frac{{t}^{\frac{3}{2}}}{\ell} \cdot \left(\color{blue}{\frac{{t}^{\left(\frac{3}{2}\right)}}{\ell}} \cdot \sin k\right)\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
                14. lower-pow.f64N/A

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

                  \[\leadsto \frac{2}{\left(\left(\frac{{t}^{1.5}}{\ell} \cdot \left(\frac{{t}^{\color{blue}{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)} \]
              4. Applied rewrites93.1%

                \[\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. Applied rewrites91.0%

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

              if 7.9999999999999999e203 < t

              1. Initial program 43.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. Taylor expanded in k around 0

                \[\leadsto \color{blue}{\frac{{\ell}^{2}}{{k}^{2} \cdot {t}^{3}}} \]
              4. Step-by-step derivation
                1. unpow2N/A

                  \[\leadsto \frac{\color{blue}{\ell \cdot \ell}}{{k}^{2} \cdot {t}^{3}} \]
                2. *-commutativeN/A

                  \[\leadsto \frac{\ell \cdot \ell}{\color{blue}{{t}^{3} \cdot {k}^{2}}} \]
                3. times-fracN/A

                  \[\leadsto \color{blue}{\frac{\ell}{{t}^{3}} \cdot \frac{\ell}{{k}^{2}}} \]
                4. lower-*.f64N/A

                  \[\leadsto \color{blue}{\frac{\ell}{{t}^{3}} \cdot \frac{\ell}{{k}^{2}}} \]
                5. lower-/.f64N/A

                  \[\leadsto \color{blue}{\frac{\ell}{{t}^{3}}} \cdot \frac{\ell}{{k}^{2}} \]
                6. lower-pow.f64N/A

                  \[\leadsto \frac{\ell}{\color{blue}{{t}^{3}}} \cdot \frac{\ell}{{k}^{2}} \]
                7. lower-/.f64N/A

                  \[\leadsto \frac{\ell}{{t}^{3}} \cdot \color{blue}{\frac{\ell}{{k}^{2}}} \]
                8. unpow2N/A

                  \[\leadsto \frac{\ell}{{t}^{3}} \cdot \frac{\ell}{\color{blue}{k \cdot k}} \]
                9. lower-*.f6450.3

                  \[\leadsto \frac{\ell}{{t}^{3}} \cdot \frac{\ell}{\color{blue}{k \cdot k}} \]
              5. Applied rewrites50.3%

                \[\leadsto \color{blue}{\frac{\ell}{{t}^{3}} \cdot \frac{\ell}{k \cdot k}} \]
              6. Step-by-step derivation
                1. Applied rewrites50.8%

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

                    \[\leadsto \frac{\left(-\ell\right) \cdot \ell}{\color{blue}{\left(\left(k \cdot k\right) \cdot t\right) \cdot \left(\left(-t\right) \cdot t\right)}} \]
                  2. Step-by-step derivation
                    1. Applied rewrites88.5%

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

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

                  Alternative 3: 84.5% accurate, 1.2× 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.3 \cdot 10^{-23}:\\ \;\;\;\;\frac{2}{\frac{\left(k \cdot k\right) \cdot t\_m}{\cos k \cdot \ell} \cdot \frac{{\sin k}^{2}}{\ell}}\\ \mathbf{elif}\;t\_m \leq 5 \cdot 10^{+149}:\\ \;\;\;\;\frac{2}{\left(\left(\frac{t\_m \cdot t\_m}{\ell} \cdot \left(\frac{t\_m}{\ell} \cdot \sin k\right)\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t\_m}\right)}^{2}\right) + 1\right)}\\ \mathbf{else}:\\ \;\;\;\;\frac{2}{\left(\left(\left(\frac{t\_m}{\ell} \cdot \left(\frac{t\_m}{\ell} \cdot t\_m\right)\right) \cdot \sin k\right) \cdot \tan k\right) \cdot \mathsf{fma}\left(\frac{k}{t\_m}, \frac{k}{t\_m}, 2\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.3e-23)
                      (/ 2.0 (* (/ (* (* k k) t_m) (* (cos k) l)) (/ (pow (sin k) 2.0) l)))
                      (if (<= t_m 5e+149)
                        (/
                         2.0
                         (*
                          (* (* (/ (* t_m t_m) l) (* (/ t_m l) (sin k))) (tan k))
                          (+ (+ 1.0 (pow (/ k t_m) 2.0)) 1.0)))
                        (/
                         2.0
                         (*
                          (* (* (* (/ t_m l) (* (/ t_m l) t_m)) (sin k)) (tan k))
                          (fma (/ k t_m) (/ k t_m) 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 <= 2.3e-23) {
                  		tmp = 2.0 / ((((k * k) * t_m) / (cos(k) * l)) * (pow(sin(k), 2.0) / l));
                  	} else if (t_m <= 5e+149) {
                  		tmp = 2.0 / (((((t_m * t_m) / l) * ((t_m / l) * sin(k))) * tan(k)) * ((1.0 + pow((k / t_m), 2.0)) + 1.0));
                  	} else {
                  		tmp = 2.0 / (((((t_m / l) * ((t_m / l) * t_m)) * sin(k)) * tan(k)) * fma((k / t_m), (k / t_m), 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 <= 2.3e-23)
                  		tmp = Float64(2.0 / Float64(Float64(Float64(Float64(k * k) * t_m) / Float64(cos(k) * l)) * Float64((sin(k) ^ 2.0) / l)));
                  	elseif (t_m <= 5e+149)
                  		tmp = Float64(2.0 / Float64(Float64(Float64(Float64(Float64(t_m * t_m) / l) * Float64(Float64(t_m / l) * sin(k))) * tan(k)) * Float64(Float64(1.0 + (Float64(k / t_m) ^ 2.0)) + 1.0)));
                  	else
                  		tmp = Float64(2.0 / Float64(Float64(Float64(Float64(Float64(t_m / l) * Float64(Float64(t_m / l) * t_m)) * sin(k)) * tan(k)) * fma(Float64(k / t_m), Float64(k / t_m), 2.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, 2.3e-23], N[(2.0 / N[(N[(N[(N[(k * k), $MachinePrecision] * t$95$m), $MachinePrecision] / N[(N[Cos[k], $MachinePrecision] * l), $MachinePrecision]), $MachinePrecision] * N[(N[Power[N[Sin[k], $MachinePrecision], 2.0], $MachinePrecision] / l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$m, 5e+149], N[(2.0 / N[(N[(N[(N[(N[(t$95$m * t$95$m), $MachinePrecision] / l), $MachinePrecision] * N[(N[(t$95$m / l), $MachinePrecision] * N[Sin[k], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[Tan[k], $MachinePrecision]), $MachinePrecision] * N[(N[(1.0 + N[Power[N[(k / t$95$m), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(2.0 / N[(N[(N[(N[(N[(t$95$m / l), $MachinePrecision] * N[(N[(t$95$m / l), $MachinePrecision] * t$95$m), $MachinePrecision]), $MachinePrecision] * N[Sin[k], $MachinePrecision]), $MachinePrecision] * N[Tan[k], $MachinePrecision]), $MachinePrecision] * N[(N[(k / t$95$m), $MachinePrecision] * N[(k / t$95$m), $MachinePrecision] + 2.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 2.3 \cdot 10^{-23}:\\
                  \;\;\;\;\frac{2}{\frac{\left(k \cdot k\right) \cdot t\_m}{\cos k \cdot \ell} \cdot \frac{{\sin k}^{2}}{\ell}}\\
                  
                  \mathbf{elif}\;t\_m \leq 5 \cdot 10^{+149}:\\
                  \;\;\;\;\frac{2}{\left(\left(\frac{t\_m \cdot t\_m}{\ell} \cdot \left(\frac{t\_m}{\ell} \cdot \sin k\right)\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t\_m}\right)}^{2}\right) + 1\right)}\\
                  
                  \mathbf{else}:\\
                  \;\;\;\;\frac{2}{\left(\left(\left(\frac{t\_m}{\ell} \cdot \left(\frac{t\_m}{\ell} \cdot t\_m\right)\right) \cdot \sin k\right) \cdot \tan k\right) \cdot \mathsf{fma}\left(\frac{k}{t\_m}, \frac{k}{t\_m}, 2\right)}\\
                  
                  
                  \end{array}
                  \end{array}
                  
                  Derivation
                  1. Split input into 3 regimes
                  2. if t < 2.3000000000000001e-23

                    1. Initial program 49.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. lift-*.f64N/A

                        \[\leadsto \frac{2}{\left(\color{blue}{\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. lift-/.f64N/A

                        \[\leadsto \frac{2}{\left(\left(\color{blue}{\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)} \]
                      3. lift-pow.f64N/A

                        \[\leadsto \frac{2}{\left(\left(\frac{\color{blue}{{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)} \]
                      4. sqr-powN/A

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

                        \[\leadsto \frac{2}{\left(\left(\frac{{t}^{\left(\frac{3}{2}\right)} \cdot {t}^{\left(\frac{3}{2}\right)}}{\color{blue}{\ell \cdot \ell}} \cdot \sin k\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
                      6. times-fracN/A

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

                        \[\leadsto \frac{2}{\left(\color{blue}{\left(\frac{{t}^{\left(\frac{3}{2}\right)}}{\ell} \cdot \left(\frac{{t}^{\left(\frac{3}{2}\right)}}{\ell} \cdot \sin k\right)\right)} \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
                      8. lower-*.f64N/A

                        \[\leadsto \frac{2}{\left(\color{blue}{\left(\frac{{t}^{\left(\frac{3}{2}\right)}}{\ell} \cdot \left(\frac{{t}^{\left(\frac{3}{2}\right)}}{\ell} \cdot \sin k\right)\right)} \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
                      9. lower-/.f64N/A

                        \[\leadsto \frac{2}{\left(\left(\color{blue}{\frac{{t}^{\left(\frac{3}{2}\right)}}{\ell}} \cdot \left(\frac{{t}^{\left(\frac{3}{2}\right)}}{\ell} \cdot \sin k\right)\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
                      10. lower-pow.f64N/A

                        \[\leadsto \frac{2}{\left(\left(\frac{\color{blue}{{t}^{\left(\frac{3}{2}\right)}}}{\ell} \cdot \left(\frac{{t}^{\left(\frac{3}{2}\right)}}{\ell} \cdot \sin k\right)\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
                      11. metadata-evalN/A

                        \[\leadsto \frac{2}{\left(\left(\frac{{t}^{\color{blue}{\frac{3}{2}}}}{\ell} \cdot \left(\frac{{t}^{\left(\frac{3}{2}\right)}}{\ell} \cdot \sin k\right)\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
                      12. lower-*.f64N/A

                        \[\leadsto \frac{2}{\left(\left(\frac{{t}^{\frac{3}{2}}}{\ell} \cdot \color{blue}{\left(\frac{{t}^{\left(\frac{3}{2}\right)}}{\ell} \cdot \sin k\right)}\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
                      13. lower-/.f64N/A

                        \[\leadsto \frac{2}{\left(\left(\frac{{t}^{\frac{3}{2}}}{\ell} \cdot \left(\color{blue}{\frac{{t}^{\left(\frac{3}{2}\right)}}{\ell}} \cdot \sin k\right)\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
                      14. lower-pow.f64N/A

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

                        \[\leadsto \frac{2}{\left(\left(\frac{{t}^{1.5}}{\ell} \cdot \left(\frac{{t}^{\color{blue}{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)} \]
                    4. Applied rewrites22.5%

                      \[\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. Taylor expanded in t around 0

                      \[\leadsto \frac{2}{\color{blue}{\frac{{k}^{2} \cdot \left(t \cdot {\sin k}^{2}\right)}{{\ell}^{2} \cdot \cos k}}} \]
                    6. Step-by-step derivation
                      1. *-commutativeN/A

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

                        \[\leadsto \frac{2}{\frac{\color{blue}{t \cdot \left({\sin k}^{2} \cdot {k}^{2}\right)}}{{\ell}^{2} \cdot \cos k}} \]
                      3. *-commutativeN/A

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

                        \[\leadsto \frac{2}{\color{blue}{t \cdot \frac{{k}^{2} \cdot {\sin k}^{2}}{{\ell}^{2} \cdot \cos k}}} \]
                      5. associate-/l*N/A

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

                        \[\leadsto \frac{2}{\color{blue}{\left(t \cdot {k}^{2}\right) \cdot \frac{{\sin k}^{2}}{{\ell}^{2} \cdot \cos k}}} \]
                      7. lower-*.f64N/A

                        \[\leadsto \frac{2}{\color{blue}{\left(t \cdot {k}^{2}\right) \cdot \frac{{\sin k}^{2}}{{\ell}^{2} \cdot \cos k}}} \]
                      8. lower-*.f64N/A

                        \[\leadsto \frac{2}{\color{blue}{\left(t \cdot {k}^{2}\right)} \cdot \frac{{\sin k}^{2}}{{\ell}^{2} \cdot \cos k}} \]
                      9. unpow2N/A

                        \[\leadsto \frac{2}{\left(t \cdot \color{blue}{\left(k \cdot k\right)}\right) \cdot \frac{{\sin k}^{2}}{{\ell}^{2} \cdot \cos k}} \]
                      10. lower-*.f64N/A

                        \[\leadsto \frac{2}{\left(t \cdot \color{blue}{\left(k \cdot k\right)}\right) \cdot \frac{{\sin k}^{2}}{{\ell}^{2} \cdot \cos k}} \]
                      11. lower-/.f64N/A

                        \[\leadsto \frac{2}{\left(t \cdot \left(k \cdot k\right)\right) \cdot \color{blue}{\frac{{\sin k}^{2}}{{\ell}^{2} \cdot \cos k}}} \]
                      12. lower-pow.f64N/A

                        \[\leadsto \frac{2}{\left(t \cdot \left(k \cdot k\right)\right) \cdot \frac{\color{blue}{{\sin k}^{2}}}{{\ell}^{2} \cdot \cos k}} \]
                      13. lower-sin.f64N/A

                        \[\leadsto \frac{2}{\left(t \cdot \left(k \cdot k\right)\right) \cdot \frac{{\color{blue}{\sin k}}^{2}}{{\ell}^{2} \cdot \cos k}} \]
                      14. *-commutativeN/A

                        \[\leadsto \frac{2}{\left(t \cdot \left(k \cdot k\right)\right) \cdot \frac{{\sin k}^{2}}{\color{blue}{\cos k \cdot {\ell}^{2}}}} \]
                      15. unpow2N/A

                        \[\leadsto \frac{2}{\left(t \cdot \left(k \cdot k\right)\right) \cdot \frac{{\sin k}^{2}}{\cos k \cdot \color{blue}{\left(\ell \cdot \ell\right)}}} \]
                      16. associate-*r*N/A

                        \[\leadsto \frac{2}{\left(t \cdot \left(k \cdot k\right)\right) \cdot \frac{{\sin k}^{2}}{\color{blue}{\left(\cos k \cdot \ell\right) \cdot \ell}}} \]
                      17. *-commutativeN/A

                        \[\leadsto \frac{2}{\left(t \cdot \left(k \cdot k\right)\right) \cdot \frac{{\sin k}^{2}}{\color{blue}{\left(\ell \cdot \cos k\right)} \cdot \ell}} \]
                      18. lower-*.f64N/A

                        \[\leadsto \frac{2}{\left(t \cdot \left(k \cdot k\right)\right) \cdot \frac{{\sin k}^{2}}{\color{blue}{\left(\ell \cdot \cos k\right) \cdot \ell}}} \]
                      19. *-commutativeN/A

                        \[\leadsto \frac{2}{\left(t \cdot \left(k \cdot k\right)\right) \cdot \frac{{\sin k}^{2}}{\color{blue}{\left(\cos k \cdot \ell\right)} \cdot \ell}} \]
                      20. lower-*.f64N/A

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

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

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

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

                      if 2.3000000000000001e-23 < t < 4.9999999999999999e149

                      1. Initial program 65.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. Add Preprocessing
                      3. Step-by-step derivation
                        1. lift-*.f64N/A

                          \[\leadsto \frac{2}{\left(\color{blue}{\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. lift-/.f64N/A

                          \[\leadsto \frac{2}{\left(\left(\color{blue}{\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)} \]
                        3. lift-pow.f64N/A

                          \[\leadsto \frac{2}{\left(\left(\frac{\color{blue}{{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)} \]
                        4. unpow3N/A

                          \[\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)} \]
                        5. lift-*.f64N/A

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

                          \[\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)} \]
                        7. associate-*l*N/A

                          \[\leadsto \frac{2}{\left(\color{blue}{\left(\frac{t \cdot t}{\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)} \]
                        8. lower-*.f64N/A

                          \[\leadsto \frac{2}{\left(\color{blue}{\left(\frac{t \cdot t}{\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)} \]
                        9. lower-/.f64N/A

                          \[\leadsto \frac{2}{\left(\left(\color{blue}{\frac{t \cdot t}{\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)} \]
                        10. lower-*.f64N/A

                          \[\leadsto \frac{2}{\left(\left(\frac{\color{blue}{t \cdot t}}{\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)} \]
                        11. lower-*.f64N/A

                          \[\leadsto \frac{2}{\left(\left(\frac{t \cdot t}{\ell} \cdot \color{blue}{\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)} \]
                        12. lower-/.f6491.0

                          \[\leadsto \frac{2}{\left(\left(\frac{t \cdot t}{\ell} \cdot \left(\color{blue}{\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)} \]
                      4. Applied rewrites91.0%

                        \[\leadsto \frac{2}{\left(\color{blue}{\left(\frac{t \cdot t}{\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 4.9999999999999999e149 < t

                      1. Initial program 49.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. Taylor expanded in t around inf

                        \[\leadsto \frac{2}{\left(\left(\frac{{t}^{3}}{\ell \cdot \ell} \cdot \sin k\right) \cdot \tan k\right) \cdot \color{blue}{2}} \]
                      4. Step-by-step derivation
                        1. Applied rewrites49.0%

                          \[\leadsto \frac{2}{\left(\left(\frac{{t}^{3}}{\ell \cdot \ell} \cdot \sin k\right) \cdot \tan k\right) \cdot \color{blue}{2}} \]
                        2. Step-by-step derivation
                          1. lift-/.f64N/A

                            \[\leadsto \frac{2}{\left(\left(\color{blue}{\frac{{t}^{3}}{\ell \cdot \ell}} \cdot \sin k\right) \cdot \tan k\right) \cdot 2} \]
                          2. lift-pow.f64N/A

                            \[\leadsto \frac{2}{\left(\left(\frac{\color{blue}{{t}^{3}}}{\ell \cdot \ell} \cdot \sin k\right) \cdot \tan k\right) \cdot 2} \]
                          3. lift-*.f64N/A

                            \[\leadsto \frac{2}{\left(\left(\frac{{t}^{3}}{\color{blue}{\ell \cdot \ell}} \cdot \sin k\right) \cdot \tan k\right) \cdot 2} \]
                          4. cube-multN/A

                            \[\leadsto \frac{2}{\left(\left(\frac{\color{blue}{t \cdot \left(t \cdot t\right)}}{\ell \cdot \ell} \cdot \sin k\right) \cdot \tan k\right) \cdot 2} \]
                          5. lift-*.f64N/A

                            \[\leadsto \frac{2}{\left(\left(\frac{t \cdot \color{blue}{\left(t \cdot t\right)}}{\ell \cdot \ell} \cdot \sin k\right) \cdot \tan k\right) \cdot 2} \]
                          6. frac-timesN/A

                            \[\leadsto \frac{2}{\left(\left(\color{blue}{\left(\frac{t}{\ell} \cdot \frac{t \cdot t}{\ell}\right)} \cdot \sin k\right) \cdot \tan k\right) \cdot 2} \]
                          7. lift-/.f64N/A

                            \[\leadsto \frac{2}{\left(\left(\left(\color{blue}{\frac{t}{\ell}} \cdot \frac{t \cdot t}{\ell}\right) \cdot \sin k\right) \cdot \tan k\right) \cdot 2} \]
                          8. lift-/.f64N/A

                            \[\leadsto \frac{2}{\left(\left(\left(\frac{t}{\ell} \cdot \color{blue}{\frac{t \cdot t}{\ell}}\right) \cdot \sin k\right) \cdot \tan k\right) \cdot 2} \]
                          9. lower-*.f6461.4

                            \[\leadsto \frac{2}{\left(\left(\color{blue}{\left(\frac{t}{\ell} \cdot \frac{t \cdot t}{\ell}\right)} \cdot \sin k\right) \cdot \tan k\right) \cdot 2} \]
                          10. lift-/.f64N/A

                            \[\leadsto \frac{2}{\left(\left(\left(\frac{t}{\ell} \cdot \color{blue}{\frac{t \cdot t}{\ell}}\right) \cdot \sin k\right) \cdot \tan k\right) \cdot 2} \]
                          11. lift-*.f64N/A

                            \[\leadsto \frac{2}{\left(\left(\left(\frac{t}{\ell} \cdot \frac{\color{blue}{t \cdot t}}{\ell}\right) \cdot \sin k\right) \cdot \tan k\right) \cdot 2} \]
                          12. associate-/l*N/A

                            \[\leadsto \frac{2}{\left(\left(\left(\frac{t}{\ell} \cdot \color{blue}{\left(t \cdot \frac{t}{\ell}\right)}\right) \cdot \sin k\right) \cdot \tan k\right) \cdot 2} \]
                          13. lift-/.f64N/A

                            \[\leadsto \frac{2}{\left(\left(\left(\frac{t}{\ell} \cdot \left(t \cdot \color{blue}{\frac{t}{\ell}}\right)\right) \cdot \sin k\right) \cdot \tan k\right) \cdot 2} \]
                          14. *-commutativeN/A

                            \[\leadsto \frac{2}{\left(\left(\left(\frac{t}{\ell} \cdot \color{blue}{\left(\frac{t}{\ell} \cdot t\right)}\right) \cdot \sin k\right) \cdot \tan k\right) \cdot 2} \]
                          15. lower-*.f6477.3

                            \[\leadsto \frac{2}{\left(\left(\left(\frac{t}{\ell} \cdot \color{blue}{\left(\frac{t}{\ell} \cdot t\right)}\right) \cdot \sin k\right) \cdot \tan k\right) \cdot 2} \]
                        3. Applied rewrites77.3%

                          \[\leadsto \frac{2}{\left(\left(\color{blue}{\left(\frac{t}{\ell} \cdot \left(\frac{t}{\ell} \cdot t\right)\right)} \cdot \sin k\right) \cdot \tan k\right) \cdot 2} \]
                        4. Taylor expanded in t around inf

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

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

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

                            \[\leadsto \frac{2}{\left(\left(\left(\frac{t}{\ell} \cdot \left(\frac{t}{\ell} \cdot t\right)\right) \cdot \sin k\right) \cdot \tan k\right) \cdot \left(\frac{k \cdot k}{\color{blue}{t \cdot t}} + 2\right)} \]
                          4. times-fracN/A

                            \[\leadsto \frac{2}{\left(\left(\left(\frac{t}{\ell} \cdot \left(\frac{t}{\ell} \cdot t\right)\right) \cdot \sin k\right) \cdot \tan k\right) \cdot \left(\color{blue}{\frac{k}{t} \cdot \frac{k}{t}} + 2\right)} \]
                          5. lower-fma.f64N/A

                            \[\leadsto \frac{2}{\left(\left(\left(\frac{t}{\ell} \cdot \left(\frac{t}{\ell} \cdot t\right)\right) \cdot \sin k\right) \cdot \tan k\right) \cdot \color{blue}{\mathsf{fma}\left(\frac{k}{t}, \frac{k}{t}, 2\right)}} \]
                          6. lower-/.f64N/A

                            \[\leadsto \frac{2}{\left(\left(\left(\frac{t}{\ell} \cdot \left(\frac{t}{\ell} \cdot t\right)\right) \cdot \sin k\right) \cdot \tan k\right) \cdot \mathsf{fma}\left(\color{blue}{\frac{k}{t}}, \frac{k}{t}, 2\right)} \]
                          7. lower-/.f6486.1

                            \[\leadsto \frac{2}{\left(\left(\left(\frac{t}{\ell} \cdot \left(\frac{t}{\ell} \cdot t\right)\right) \cdot \sin k\right) \cdot \tan k\right) \cdot \mathsf{fma}\left(\frac{k}{t}, \color{blue}{\frac{k}{t}}, 2\right)} \]
                        6. Applied rewrites86.1%

                          \[\leadsto \frac{2}{\left(\left(\left(\frac{t}{\ell} \cdot \left(\frac{t}{\ell} \cdot t\right)\right) \cdot \sin k\right) \cdot \tan k\right) \cdot \color{blue}{\mathsf{fma}\left(\frac{k}{t}, \frac{k}{t}, 2\right)}} \]
                      5. Recombined 3 regimes into one program.
                      6. Add Preprocessing

                      Alternative 4: 83.1% 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 6.5 \cdot 10^{-23}:\\ \;\;\;\;\frac{2}{\frac{\left(k \cdot k\right) \cdot t\_m}{\cos k \cdot \ell} \cdot \frac{{\sin k}^{2}}{\ell}}\\ \mathbf{else}:\\ \;\;\;\;\frac{2}{\left(\left(\left(\frac{t\_m}{\ell} \cdot \left(\frac{t\_m}{\ell} \cdot t\_m\right)\right) \cdot \sin k\right) \cdot \tan k\right) \cdot \mathsf{fma}\left(\frac{k}{t\_m}, \frac{k}{t\_m}, 2\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-23)
                          (/ 2.0 (* (/ (* (* k k) t_m) (* (cos k) l)) (/ (pow (sin k) 2.0) l)))
                          (/
                           2.0
                           (*
                            (* (* (* (/ t_m l) (* (/ t_m l) t_m)) (sin k)) (tan k))
                            (fma (/ k t_m) (/ k t_m) 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 <= 6.5e-23) {
                      		tmp = 2.0 / ((((k * k) * t_m) / (cos(k) * l)) * (pow(sin(k), 2.0) / l));
                      	} else {
                      		tmp = 2.0 / (((((t_m / l) * ((t_m / l) * t_m)) * sin(k)) * tan(k)) * fma((k / t_m), (k / t_m), 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 <= 6.5e-23)
                      		tmp = Float64(2.0 / Float64(Float64(Float64(Float64(k * k) * t_m) / Float64(cos(k) * l)) * Float64((sin(k) ^ 2.0) / l)));
                      	else
                      		tmp = Float64(2.0 / Float64(Float64(Float64(Float64(Float64(t_m / l) * Float64(Float64(t_m / l) * t_m)) * sin(k)) * tan(k)) * fma(Float64(k / t_m), Float64(k / t_m), 2.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-23], N[(2.0 / N[(N[(N[(N[(k * k), $MachinePrecision] * t$95$m), $MachinePrecision] / N[(N[Cos[k], $MachinePrecision] * l), $MachinePrecision]), $MachinePrecision] * N[(N[Power[N[Sin[k], $MachinePrecision], 2.0], $MachinePrecision] / l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(2.0 / N[(N[(N[(N[(N[(t$95$m / l), $MachinePrecision] * N[(N[(t$95$m / l), $MachinePrecision] * t$95$m), $MachinePrecision]), $MachinePrecision] * N[Sin[k], $MachinePrecision]), $MachinePrecision] * N[Tan[k], $MachinePrecision]), $MachinePrecision] * N[(N[(k / t$95$m), $MachinePrecision] * N[(k / t$95$m), $MachinePrecision] + 2.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 6.5 \cdot 10^{-23}:\\
                      \;\;\;\;\frac{2}{\frac{\left(k \cdot k\right) \cdot t\_m}{\cos k \cdot \ell} \cdot \frac{{\sin k}^{2}}{\ell}}\\
                      
                      \mathbf{else}:\\
                      \;\;\;\;\frac{2}{\left(\left(\left(\frac{t\_m}{\ell} \cdot \left(\frac{t\_m}{\ell} \cdot t\_m\right)\right) \cdot \sin k\right) \cdot \tan k\right) \cdot \mathsf{fma}\left(\frac{k}{t\_m}, \frac{k}{t\_m}, 2\right)}\\
                      
                      
                      \end{array}
                      \end{array}
                      
                      Derivation
                      1. Split input into 2 regimes
                      2. if t < 6.5e-23

                        1. Initial program 49.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. lift-*.f64N/A

                            \[\leadsto \frac{2}{\left(\color{blue}{\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. lift-/.f64N/A

                            \[\leadsto \frac{2}{\left(\left(\color{blue}{\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)} \]
                          3. lift-pow.f64N/A

                            \[\leadsto \frac{2}{\left(\left(\frac{\color{blue}{{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)} \]
                          4. sqr-powN/A

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

                            \[\leadsto \frac{2}{\left(\left(\frac{{t}^{\left(\frac{3}{2}\right)} \cdot {t}^{\left(\frac{3}{2}\right)}}{\color{blue}{\ell \cdot \ell}} \cdot \sin k\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
                          6. times-fracN/A

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

                            \[\leadsto \frac{2}{\left(\color{blue}{\left(\frac{{t}^{\left(\frac{3}{2}\right)}}{\ell} \cdot \left(\frac{{t}^{\left(\frac{3}{2}\right)}}{\ell} \cdot \sin k\right)\right)} \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
                          8. lower-*.f64N/A

                            \[\leadsto \frac{2}{\left(\color{blue}{\left(\frac{{t}^{\left(\frac{3}{2}\right)}}{\ell} \cdot \left(\frac{{t}^{\left(\frac{3}{2}\right)}}{\ell} \cdot \sin k\right)\right)} \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
                          9. lower-/.f64N/A

                            \[\leadsto \frac{2}{\left(\left(\color{blue}{\frac{{t}^{\left(\frac{3}{2}\right)}}{\ell}} \cdot \left(\frac{{t}^{\left(\frac{3}{2}\right)}}{\ell} \cdot \sin k\right)\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
                          10. lower-pow.f64N/A

                            \[\leadsto \frac{2}{\left(\left(\frac{\color{blue}{{t}^{\left(\frac{3}{2}\right)}}}{\ell} \cdot \left(\frac{{t}^{\left(\frac{3}{2}\right)}}{\ell} \cdot \sin k\right)\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
                          11. metadata-evalN/A

                            \[\leadsto \frac{2}{\left(\left(\frac{{t}^{\color{blue}{\frac{3}{2}}}}{\ell} \cdot \left(\frac{{t}^{\left(\frac{3}{2}\right)}}{\ell} \cdot \sin k\right)\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
                          12. lower-*.f64N/A

                            \[\leadsto \frac{2}{\left(\left(\frac{{t}^{\frac{3}{2}}}{\ell} \cdot \color{blue}{\left(\frac{{t}^{\left(\frac{3}{2}\right)}}{\ell} \cdot \sin k\right)}\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
                          13. lower-/.f64N/A

                            \[\leadsto \frac{2}{\left(\left(\frac{{t}^{\frac{3}{2}}}{\ell} \cdot \left(\color{blue}{\frac{{t}^{\left(\frac{3}{2}\right)}}{\ell}} \cdot \sin k\right)\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
                          14. lower-pow.f64N/A

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

                            \[\leadsto \frac{2}{\left(\left(\frac{{t}^{1.5}}{\ell} \cdot \left(\frac{{t}^{\color{blue}{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)} \]
                        4. Applied rewrites22.5%

                          \[\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. Taylor expanded in t around 0

                          \[\leadsto \frac{2}{\color{blue}{\frac{{k}^{2} \cdot \left(t \cdot {\sin k}^{2}\right)}{{\ell}^{2} \cdot \cos k}}} \]
                        6. Step-by-step derivation
                          1. *-commutativeN/A

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

                            \[\leadsto \frac{2}{\frac{\color{blue}{t \cdot \left({\sin k}^{2} \cdot {k}^{2}\right)}}{{\ell}^{2} \cdot \cos k}} \]
                          3. *-commutativeN/A

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

                            \[\leadsto \frac{2}{\color{blue}{t \cdot \frac{{k}^{2} \cdot {\sin k}^{2}}{{\ell}^{2} \cdot \cos k}}} \]
                          5. associate-/l*N/A

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

                            \[\leadsto \frac{2}{\color{blue}{\left(t \cdot {k}^{2}\right) \cdot \frac{{\sin k}^{2}}{{\ell}^{2} \cdot \cos k}}} \]
                          7. lower-*.f64N/A

                            \[\leadsto \frac{2}{\color{blue}{\left(t \cdot {k}^{2}\right) \cdot \frac{{\sin k}^{2}}{{\ell}^{2} \cdot \cos k}}} \]
                          8. lower-*.f64N/A

                            \[\leadsto \frac{2}{\color{blue}{\left(t \cdot {k}^{2}\right)} \cdot \frac{{\sin k}^{2}}{{\ell}^{2} \cdot \cos k}} \]
                          9. unpow2N/A

                            \[\leadsto \frac{2}{\left(t \cdot \color{blue}{\left(k \cdot k\right)}\right) \cdot \frac{{\sin k}^{2}}{{\ell}^{2} \cdot \cos k}} \]
                          10. lower-*.f64N/A

                            \[\leadsto \frac{2}{\left(t \cdot \color{blue}{\left(k \cdot k\right)}\right) \cdot \frac{{\sin k}^{2}}{{\ell}^{2} \cdot \cos k}} \]
                          11. lower-/.f64N/A

                            \[\leadsto \frac{2}{\left(t \cdot \left(k \cdot k\right)\right) \cdot \color{blue}{\frac{{\sin k}^{2}}{{\ell}^{2} \cdot \cos k}}} \]
                          12. lower-pow.f64N/A

                            \[\leadsto \frac{2}{\left(t \cdot \left(k \cdot k\right)\right) \cdot \frac{\color{blue}{{\sin k}^{2}}}{{\ell}^{2} \cdot \cos k}} \]
                          13. lower-sin.f64N/A

                            \[\leadsto \frac{2}{\left(t \cdot \left(k \cdot k\right)\right) \cdot \frac{{\color{blue}{\sin k}}^{2}}{{\ell}^{2} \cdot \cos k}} \]
                          14. *-commutativeN/A

                            \[\leadsto \frac{2}{\left(t \cdot \left(k \cdot k\right)\right) \cdot \frac{{\sin k}^{2}}{\color{blue}{\cos k \cdot {\ell}^{2}}}} \]
                          15. unpow2N/A

                            \[\leadsto \frac{2}{\left(t \cdot \left(k \cdot k\right)\right) \cdot \frac{{\sin k}^{2}}{\cos k \cdot \color{blue}{\left(\ell \cdot \ell\right)}}} \]
                          16. associate-*r*N/A

                            \[\leadsto \frac{2}{\left(t \cdot \left(k \cdot k\right)\right) \cdot \frac{{\sin k}^{2}}{\color{blue}{\left(\cos k \cdot \ell\right) \cdot \ell}}} \]
                          17. *-commutativeN/A

                            \[\leadsto \frac{2}{\left(t \cdot \left(k \cdot k\right)\right) \cdot \frac{{\sin k}^{2}}{\color{blue}{\left(\ell \cdot \cos k\right)} \cdot \ell}} \]
                          18. lower-*.f64N/A

                            \[\leadsto \frac{2}{\left(t \cdot \left(k \cdot k\right)\right) \cdot \frac{{\sin k}^{2}}{\color{blue}{\left(\ell \cdot \cos k\right) \cdot \ell}}} \]
                          19. *-commutativeN/A

                            \[\leadsto \frac{2}{\left(t \cdot \left(k \cdot k\right)\right) \cdot \frac{{\sin k}^{2}}{\color{blue}{\left(\cos k \cdot \ell\right)} \cdot \ell}} \]
                          20. lower-*.f64N/A

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

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

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

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

                          if 6.5e-23 < t

                          1. Initial program 57.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. Add Preprocessing
                          3. Taylor expanded in t around inf

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

                              \[\leadsto \frac{2}{\left(\left(\frac{{t}^{3}}{\ell \cdot \ell} \cdot \sin k\right) \cdot \tan k\right) \cdot \color{blue}{2}} \]
                            2. Step-by-step derivation
                              1. lift-/.f64N/A

                                \[\leadsto \frac{2}{\left(\left(\color{blue}{\frac{{t}^{3}}{\ell \cdot \ell}} \cdot \sin k\right) \cdot \tan k\right) \cdot 2} \]
                              2. lift-pow.f64N/A

                                \[\leadsto \frac{2}{\left(\left(\frac{\color{blue}{{t}^{3}}}{\ell \cdot \ell} \cdot \sin k\right) \cdot \tan k\right) \cdot 2} \]
                              3. lift-*.f64N/A

                                \[\leadsto \frac{2}{\left(\left(\frac{{t}^{3}}{\color{blue}{\ell \cdot \ell}} \cdot \sin k\right) \cdot \tan k\right) \cdot 2} \]
                              4. cube-multN/A

                                \[\leadsto \frac{2}{\left(\left(\frac{\color{blue}{t \cdot \left(t \cdot t\right)}}{\ell \cdot \ell} \cdot \sin k\right) \cdot \tan k\right) \cdot 2} \]
                              5. lift-*.f64N/A

                                \[\leadsto \frac{2}{\left(\left(\frac{t \cdot \color{blue}{\left(t \cdot t\right)}}{\ell \cdot \ell} \cdot \sin k\right) \cdot \tan k\right) \cdot 2} \]
                              6. frac-timesN/A

                                \[\leadsto \frac{2}{\left(\left(\color{blue}{\left(\frac{t}{\ell} \cdot \frac{t \cdot t}{\ell}\right)} \cdot \sin k\right) \cdot \tan k\right) \cdot 2} \]
                              7. lift-/.f64N/A

                                \[\leadsto \frac{2}{\left(\left(\left(\color{blue}{\frac{t}{\ell}} \cdot \frac{t \cdot t}{\ell}\right) \cdot \sin k\right) \cdot \tan k\right) \cdot 2} \]
                              8. lift-/.f64N/A

                                \[\leadsto \frac{2}{\left(\left(\left(\frac{t}{\ell} \cdot \color{blue}{\frac{t \cdot t}{\ell}}\right) \cdot \sin k\right) \cdot \tan k\right) \cdot 2} \]
                              9. lower-*.f6463.8

                                \[\leadsto \frac{2}{\left(\left(\color{blue}{\left(\frac{t}{\ell} \cdot \frac{t \cdot t}{\ell}\right)} \cdot \sin k\right) \cdot \tan k\right) \cdot 2} \]
                              10. lift-/.f64N/A

                                \[\leadsto \frac{2}{\left(\left(\left(\frac{t}{\ell} \cdot \color{blue}{\frac{t \cdot t}{\ell}}\right) \cdot \sin k\right) \cdot \tan k\right) \cdot 2} \]
                              11. lift-*.f64N/A

                                \[\leadsto \frac{2}{\left(\left(\left(\frac{t}{\ell} \cdot \frac{\color{blue}{t \cdot t}}{\ell}\right) \cdot \sin k\right) \cdot \tan k\right) \cdot 2} \]
                              12. associate-/l*N/A

                                \[\leadsto \frac{2}{\left(\left(\left(\frac{t}{\ell} \cdot \color{blue}{\left(t \cdot \frac{t}{\ell}\right)}\right) \cdot \sin k\right) \cdot \tan k\right) \cdot 2} \]
                              13. lift-/.f64N/A

                                \[\leadsto \frac{2}{\left(\left(\left(\frac{t}{\ell} \cdot \left(t \cdot \color{blue}{\frac{t}{\ell}}\right)\right) \cdot \sin k\right) \cdot \tan k\right) \cdot 2} \]
                              14. *-commutativeN/A

                                \[\leadsto \frac{2}{\left(\left(\left(\frac{t}{\ell} \cdot \color{blue}{\left(\frac{t}{\ell} \cdot t\right)}\right) \cdot \sin k\right) \cdot \tan k\right) \cdot 2} \]
                              15. lower-*.f6471.3

                                \[\leadsto \frac{2}{\left(\left(\left(\frac{t}{\ell} \cdot \color{blue}{\left(\frac{t}{\ell} \cdot t\right)}\right) \cdot \sin k\right) \cdot \tan k\right) \cdot 2} \]
                            3. Applied rewrites71.3%

                              \[\leadsto \frac{2}{\left(\left(\color{blue}{\left(\frac{t}{\ell} \cdot \left(\frac{t}{\ell} \cdot t\right)\right)} \cdot \sin k\right) \cdot \tan k\right) \cdot 2} \]
                            4. Taylor expanded in t around inf

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

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

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

                                \[\leadsto \frac{2}{\left(\left(\left(\frac{t}{\ell} \cdot \left(\frac{t}{\ell} \cdot t\right)\right) \cdot \sin k\right) \cdot \tan k\right) \cdot \left(\frac{k \cdot k}{\color{blue}{t \cdot t}} + 2\right)} \]
                              4. times-fracN/A

                                \[\leadsto \frac{2}{\left(\left(\left(\frac{t}{\ell} \cdot \left(\frac{t}{\ell} \cdot t\right)\right) \cdot \sin k\right) \cdot \tan k\right) \cdot \left(\color{blue}{\frac{k}{t} \cdot \frac{k}{t}} + 2\right)} \]
                              5. lower-fma.f64N/A

                                \[\leadsto \frac{2}{\left(\left(\left(\frac{t}{\ell} \cdot \left(\frac{t}{\ell} \cdot t\right)\right) \cdot \sin k\right) \cdot \tan k\right) \cdot \color{blue}{\mathsf{fma}\left(\frac{k}{t}, \frac{k}{t}, 2\right)}} \]
                              6. lower-/.f64N/A

                                \[\leadsto \frac{2}{\left(\left(\left(\frac{t}{\ell} \cdot \left(\frac{t}{\ell} \cdot t\right)\right) \cdot \sin k\right) \cdot \tan k\right) \cdot \mathsf{fma}\left(\color{blue}{\frac{k}{t}}, \frac{k}{t}, 2\right)} \]
                              7. lower-/.f6485.8

                                \[\leadsto \frac{2}{\left(\left(\left(\frac{t}{\ell} \cdot \left(\frac{t}{\ell} \cdot t\right)\right) \cdot \sin k\right) \cdot \tan k\right) \cdot \mathsf{fma}\left(\frac{k}{t}, \color{blue}{\frac{k}{t}}, 2\right)} \]
                            6. Applied rewrites85.8%

                              \[\leadsto \frac{2}{\left(\left(\left(\frac{t}{\ell} \cdot \left(\frac{t}{\ell} \cdot t\right)\right) \cdot \sin k\right) \cdot \tan k\right) \cdot \color{blue}{\mathsf{fma}\left(\frac{k}{t}, \frac{k}{t}, 2\right)}} \]
                          5. Recombined 2 regimes into one program.
                          6. Add Preprocessing

                          Alternative 5: 79.2% accurate, 1.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 2.25 \cdot 10^{-23}:\\ \;\;\;\;\frac{2}{\frac{\left(\frac{\sin k}{\ell} \cdot \tan k\right) \cdot \left(\left(k \cdot k\right) \cdot t\_m\right)}{\ell}}\\ \mathbf{elif}\;t\_m \leq 1.06 \cdot 10^{+207}:\\ \;\;\;\;\frac{2 \cdot \frac{\ell}{t\_m}}{\left(\frac{t\_m}{\ell} \cdot t\_m\right) \cdot \left(\left(\frac{k \cdot k}{t\_m \cdot t\_m} + 2\right) \cdot \left(\sin k \cdot \tan k\right)\right)}\\ \mathbf{else}:\\ \;\;\;\;{\left(\frac{\left(\left(t\_m \cdot k\right) \cdot k\right) \cdot t\_m}{\ell \cdot \frac{\ell}{t\_m}}\right)}^{-1}\\ \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.25e-23)
                              (/ 2.0 (/ (* (* (/ (sin k) l) (tan k)) (* (* k k) t_m)) l))
                              (if (<= t_m 1.06e+207)
                                (/
                                 (* 2.0 (/ l t_m))
                                 (*
                                  (* (/ t_m l) t_m)
                                  (* (+ (/ (* k k) (* t_m t_m)) 2.0) (* (sin k) (tan k)))))
                                (pow (/ (* (* (* t_m k) k) t_m) (* l (/ l t_m))) -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 <= 2.25e-23) {
                          		tmp = 2.0 / ((((sin(k) / l) * tan(k)) * ((k * k) * t_m)) / l);
                          	} else if (t_m <= 1.06e+207) {
                          		tmp = (2.0 * (l / t_m)) / (((t_m / l) * t_m) * ((((k * k) / (t_m * t_m)) + 2.0) * (sin(k) * tan(k))));
                          	} else {
                          		tmp = pow(((((t_m * k) * k) * t_m) / (l * (l / t_m))), -1.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 <= 2.25d-23) then
                                  tmp = 2.0d0 / ((((sin(k) / l) * tan(k)) * ((k * k) * t_m)) / l)
                              else if (t_m <= 1.06d+207) then
                                  tmp = (2.0d0 * (l / t_m)) / (((t_m / l) * t_m) * ((((k * k) / (t_m * t_m)) + 2.0d0) * (sin(k) * tan(k))))
                              else
                                  tmp = ((((t_m * k) * k) * t_m) / (l * (l / t_m))) ** (-1.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 <= 2.25e-23) {
                          		tmp = 2.0 / ((((Math.sin(k) / l) * Math.tan(k)) * ((k * k) * t_m)) / l);
                          	} else if (t_m <= 1.06e+207) {
                          		tmp = (2.0 * (l / t_m)) / (((t_m / l) * t_m) * ((((k * k) / (t_m * t_m)) + 2.0) * (Math.sin(k) * Math.tan(k))));
                          	} else {
                          		tmp = Math.pow(((((t_m * k) * k) * t_m) / (l * (l / t_m))), -1.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 <= 2.25e-23:
                          		tmp = 2.0 / ((((math.sin(k) / l) * math.tan(k)) * ((k * k) * t_m)) / l)
                          	elif t_m <= 1.06e+207:
                          		tmp = (2.0 * (l / t_m)) / (((t_m / l) * t_m) * ((((k * k) / (t_m * t_m)) + 2.0) * (math.sin(k) * math.tan(k))))
                          	else:
                          		tmp = math.pow(((((t_m * k) * k) * t_m) / (l * (l / t_m))), -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 <= 2.25e-23)
                          		tmp = Float64(2.0 / Float64(Float64(Float64(Float64(sin(k) / l) * tan(k)) * Float64(Float64(k * k) * t_m)) / l));
                          	elseif (t_m <= 1.06e+207)
                          		tmp = Float64(Float64(2.0 * Float64(l / t_m)) / Float64(Float64(Float64(t_m / l) * t_m) * Float64(Float64(Float64(Float64(k * k) / Float64(t_m * t_m)) + 2.0) * Float64(sin(k) * tan(k)))));
                          	else
                          		tmp = Float64(Float64(Float64(Float64(t_m * k) * k) * t_m) / Float64(l * Float64(l / t_m))) ^ -1.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 <= 2.25e-23)
                          		tmp = 2.0 / ((((sin(k) / l) * tan(k)) * ((k * k) * t_m)) / l);
                          	elseif (t_m <= 1.06e+207)
                          		tmp = (2.0 * (l / t_m)) / (((t_m / l) * t_m) * ((((k * k) / (t_m * t_m)) + 2.0) * (sin(k) * tan(k))));
                          	else
                          		tmp = ((((t_m * k) * k) * t_m) / (l * (l / t_m))) ^ -1.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, 2.25e-23], N[(2.0 / N[(N[(N[(N[(N[Sin[k], $MachinePrecision] / l), $MachinePrecision] * N[Tan[k], $MachinePrecision]), $MachinePrecision] * N[(N[(k * k), $MachinePrecision] * t$95$m), $MachinePrecision]), $MachinePrecision] / l), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$m, 1.06e+207], N[(N[(2.0 * N[(l / t$95$m), $MachinePrecision]), $MachinePrecision] / N[(N[(N[(t$95$m / l), $MachinePrecision] * t$95$m), $MachinePrecision] * N[(N[(N[(N[(k * k), $MachinePrecision] / N[(t$95$m * t$95$m), $MachinePrecision]), $MachinePrecision] + 2.0), $MachinePrecision] * N[(N[Sin[k], $MachinePrecision] * N[Tan[k], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[Power[N[(N[(N[(N[(t$95$m * k), $MachinePrecision] * k), $MachinePrecision] * t$95$m), $MachinePrecision] / N[(l * N[(l / t$95$m), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], -1.0], $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.25 \cdot 10^{-23}:\\
                          \;\;\;\;\frac{2}{\frac{\left(\frac{\sin k}{\ell} \cdot \tan k\right) \cdot \left(\left(k \cdot k\right) \cdot t\_m\right)}{\ell}}\\
                          
                          \mathbf{elif}\;t\_m \leq 1.06 \cdot 10^{+207}:\\
                          \;\;\;\;\frac{2 \cdot \frac{\ell}{t\_m}}{\left(\frac{t\_m}{\ell} \cdot t\_m\right) \cdot \left(\left(\frac{k \cdot k}{t\_m \cdot t\_m} + 2\right) \cdot \left(\sin k \cdot \tan k\right)\right)}\\
                          
                          \mathbf{else}:\\
                          \;\;\;\;{\left(\frac{\left(\left(t\_m \cdot k\right) \cdot k\right) \cdot t\_m}{\ell \cdot \frac{\ell}{t\_m}}\right)}^{-1}\\
                          
                          
                          \end{array}
                          \end{array}
                          
                          Derivation
                          1. Split input into 3 regimes
                          2. if t < 2.24999999999999987e-23

                            1. Initial program 49.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. lift-*.f64N/A

                                \[\leadsto \frac{2}{\left(\color{blue}{\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. lift-/.f64N/A

                                \[\leadsto \frac{2}{\left(\left(\color{blue}{\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)} \]
                              3. lift-pow.f64N/A

                                \[\leadsto \frac{2}{\left(\left(\frac{\color{blue}{{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)} \]
                              4. sqr-powN/A

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

                                \[\leadsto \frac{2}{\left(\left(\frac{{t}^{\left(\frac{3}{2}\right)} \cdot {t}^{\left(\frac{3}{2}\right)}}{\color{blue}{\ell \cdot \ell}} \cdot \sin k\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
                              6. times-fracN/A

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

                                \[\leadsto \frac{2}{\left(\color{blue}{\left(\frac{{t}^{\left(\frac{3}{2}\right)}}{\ell} \cdot \left(\frac{{t}^{\left(\frac{3}{2}\right)}}{\ell} \cdot \sin k\right)\right)} \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
                              8. lower-*.f64N/A

                                \[\leadsto \frac{2}{\left(\color{blue}{\left(\frac{{t}^{\left(\frac{3}{2}\right)}}{\ell} \cdot \left(\frac{{t}^{\left(\frac{3}{2}\right)}}{\ell} \cdot \sin k\right)\right)} \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
                              9. lower-/.f64N/A

                                \[\leadsto \frac{2}{\left(\left(\color{blue}{\frac{{t}^{\left(\frac{3}{2}\right)}}{\ell}} \cdot \left(\frac{{t}^{\left(\frac{3}{2}\right)}}{\ell} \cdot \sin k\right)\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
                              10. lower-pow.f64N/A

                                \[\leadsto \frac{2}{\left(\left(\frac{\color{blue}{{t}^{\left(\frac{3}{2}\right)}}}{\ell} \cdot \left(\frac{{t}^{\left(\frac{3}{2}\right)}}{\ell} \cdot \sin k\right)\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
                              11. metadata-evalN/A

                                \[\leadsto \frac{2}{\left(\left(\frac{{t}^{\color{blue}{\frac{3}{2}}}}{\ell} \cdot \left(\frac{{t}^{\left(\frac{3}{2}\right)}}{\ell} \cdot \sin k\right)\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
                              12. lower-*.f64N/A

                                \[\leadsto \frac{2}{\left(\left(\frac{{t}^{\frac{3}{2}}}{\ell} \cdot \color{blue}{\left(\frac{{t}^{\left(\frac{3}{2}\right)}}{\ell} \cdot \sin k\right)}\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
                              13. lower-/.f64N/A

                                \[\leadsto \frac{2}{\left(\left(\frac{{t}^{\frac{3}{2}}}{\ell} \cdot \left(\color{blue}{\frac{{t}^{\left(\frac{3}{2}\right)}}{\ell}} \cdot \sin k\right)\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
                              14. lower-pow.f64N/A

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

                                \[\leadsto \frac{2}{\left(\left(\frac{{t}^{1.5}}{\ell} \cdot \left(\frac{{t}^{\color{blue}{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)} \]
                            4. Applied rewrites22.5%

                              \[\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. Taylor expanded in t around 0

                              \[\leadsto \frac{2}{\color{blue}{\frac{{k}^{2} \cdot \left(t \cdot {\sin k}^{2}\right)}{{\ell}^{2} \cdot \cos k}}} \]
                            6. Step-by-step derivation
                              1. *-commutativeN/A

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

                                \[\leadsto \frac{2}{\frac{\color{blue}{t \cdot \left({\sin k}^{2} \cdot {k}^{2}\right)}}{{\ell}^{2} \cdot \cos k}} \]
                              3. *-commutativeN/A

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

                                \[\leadsto \frac{2}{\color{blue}{t \cdot \frac{{k}^{2} \cdot {\sin k}^{2}}{{\ell}^{2} \cdot \cos k}}} \]
                              5. associate-/l*N/A

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

                                \[\leadsto \frac{2}{\color{blue}{\left(t \cdot {k}^{2}\right) \cdot \frac{{\sin k}^{2}}{{\ell}^{2} \cdot \cos k}}} \]
                              7. lower-*.f64N/A

                                \[\leadsto \frac{2}{\color{blue}{\left(t \cdot {k}^{2}\right) \cdot \frac{{\sin k}^{2}}{{\ell}^{2} \cdot \cos k}}} \]
                              8. lower-*.f64N/A

                                \[\leadsto \frac{2}{\color{blue}{\left(t \cdot {k}^{2}\right)} \cdot \frac{{\sin k}^{2}}{{\ell}^{2} \cdot \cos k}} \]
                              9. unpow2N/A

                                \[\leadsto \frac{2}{\left(t \cdot \color{blue}{\left(k \cdot k\right)}\right) \cdot \frac{{\sin k}^{2}}{{\ell}^{2} \cdot \cos k}} \]
                              10. lower-*.f64N/A

                                \[\leadsto \frac{2}{\left(t \cdot \color{blue}{\left(k \cdot k\right)}\right) \cdot \frac{{\sin k}^{2}}{{\ell}^{2} \cdot \cos k}} \]
                              11. lower-/.f64N/A

                                \[\leadsto \frac{2}{\left(t \cdot \left(k \cdot k\right)\right) \cdot \color{blue}{\frac{{\sin k}^{2}}{{\ell}^{2} \cdot \cos k}}} \]
                              12. lower-pow.f64N/A

                                \[\leadsto \frac{2}{\left(t \cdot \left(k \cdot k\right)\right) \cdot \frac{\color{blue}{{\sin k}^{2}}}{{\ell}^{2} \cdot \cos k}} \]
                              13. lower-sin.f64N/A

                                \[\leadsto \frac{2}{\left(t \cdot \left(k \cdot k\right)\right) \cdot \frac{{\color{blue}{\sin k}}^{2}}{{\ell}^{2} \cdot \cos k}} \]
                              14. *-commutativeN/A

                                \[\leadsto \frac{2}{\left(t \cdot \left(k \cdot k\right)\right) \cdot \frac{{\sin k}^{2}}{\color{blue}{\cos k \cdot {\ell}^{2}}}} \]
                              15. unpow2N/A

                                \[\leadsto \frac{2}{\left(t \cdot \left(k \cdot k\right)\right) \cdot \frac{{\sin k}^{2}}{\cos k \cdot \color{blue}{\left(\ell \cdot \ell\right)}}} \]
                              16. associate-*r*N/A

                                \[\leadsto \frac{2}{\left(t \cdot \left(k \cdot k\right)\right) \cdot \frac{{\sin k}^{2}}{\color{blue}{\left(\cos k \cdot \ell\right) \cdot \ell}}} \]
                              17. *-commutativeN/A

                                \[\leadsto \frac{2}{\left(t \cdot \left(k \cdot k\right)\right) \cdot \frac{{\sin k}^{2}}{\color{blue}{\left(\ell \cdot \cos k\right)} \cdot \ell}} \]
                              18. lower-*.f64N/A

                                \[\leadsto \frac{2}{\left(t \cdot \left(k \cdot k\right)\right) \cdot \frac{{\sin k}^{2}}{\color{blue}{\left(\ell \cdot \cos k\right) \cdot \ell}}} \]
                              19. *-commutativeN/A

                                \[\leadsto \frac{2}{\left(t \cdot \left(k \cdot k\right)\right) \cdot \frac{{\sin k}^{2}}{\color{blue}{\left(\cos k \cdot \ell\right)} \cdot \ell}} \]
                              20. lower-*.f64N/A

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

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

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

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

                              if 2.24999999999999987e-23 < t < 1.05999999999999998e207

                              1. Initial program 62.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. lift-*.f64N/A

                                  \[\leadsto \frac{2}{\left(\color{blue}{\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. lift-/.f64N/A

                                  \[\leadsto \frac{2}{\left(\left(\color{blue}{\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)} \]
                                3. lift-pow.f64N/A

                                  \[\leadsto \frac{2}{\left(\left(\frac{\color{blue}{{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)} \]
                                4. sqr-powN/A

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

                                  \[\leadsto \frac{2}{\left(\left(\frac{{t}^{\left(\frac{3}{2}\right)} \cdot {t}^{\left(\frac{3}{2}\right)}}{\color{blue}{\ell \cdot \ell}} \cdot \sin k\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
                                6. times-fracN/A

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

                                  \[\leadsto \frac{2}{\left(\color{blue}{\left(\frac{{t}^{\left(\frac{3}{2}\right)}}{\ell} \cdot \left(\frac{{t}^{\left(\frac{3}{2}\right)}}{\ell} \cdot \sin k\right)\right)} \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
                                8. lower-*.f64N/A

                                  \[\leadsto \frac{2}{\left(\color{blue}{\left(\frac{{t}^{\left(\frac{3}{2}\right)}}{\ell} \cdot \left(\frac{{t}^{\left(\frac{3}{2}\right)}}{\ell} \cdot \sin k\right)\right)} \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
                                9. lower-/.f64N/A

                                  \[\leadsto \frac{2}{\left(\left(\color{blue}{\frac{{t}^{\left(\frac{3}{2}\right)}}{\ell}} \cdot \left(\frac{{t}^{\left(\frac{3}{2}\right)}}{\ell} \cdot \sin k\right)\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
                                10. lower-pow.f64N/A

                                  \[\leadsto \frac{2}{\left(\left(\frac{\color{blue}{{t}^{\left(\frac{3}{2}\right)}}}{\ell} \cdot \left(\frac{{t}^{\left(\frac{3}{2}\right)}}{\ell} \cdot \sin k\right)\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
                                11. metadata-evalN/A

                                  \[\leadsto \frac{2}{\left(\left(\frac{{t}^{\color{blue}{\frac{3}{2}}}}{\ell} \cdot \left(\frac{{t}^{\left(\frac{3}{2}\right)}}{\ell} \cdot \sin k\right)\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
                                12. lower-*.f64N/A

                                  \[\leadsto \frac{2}{\left(\left(\frac{{t}^{\frac{3}{2}}}{\ell} \cdot \color{blue}{\left(\frac{{t}^{\left(\frac{3}{2}\right)}}{\ell} \cdot \sin k\right)}\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
                                13. lower-/.f64N/A

                                  \[\leadsto \frac{2}{\left(\left(\frac{{t}^{\frac{3}{2}}}{\ell} \cdot \left(\color{blue}{\frac{{t}^{\left(\frac{3}{2}\right)}}{\ell}} \cdot \sin k\right)\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
                                14. lower-pow.f64N/A

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

                                  \[\leadsto \frac{2}{\left(\left(\frac{{t}^{1.5}}{\ell} \cdot \left(\frac{{t}^{\color{blue}{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)} \]
                              4. Applied rewrites91.1%

                                \[\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. Applied rewrites89.0%

                                \[\leadsto \color{blue}{\frac{\frac{2}{\left(\left(\tan k \cdot \sin k\right) \cdot \left({\left(\frac{k}{t}\right)}^{2} + 2\right)\right) \cdot \left(\frac{t}{\ell} \cdot t\right)}}{\frac{t}{\ell}}} \]
                              6. Step-by-step derivation
                                1. lift-/.f64N/A

                                  \[\leadsto \color{blue}{\frac{\frac{2}{\left(\left(\tan k \cdot \sin k\right) \cdot \left({\left(\frac{k}{t}\right)}^{2} + 2\right)\right) \cdot \left(\frac{t}{\ell} \cdot t\right)}}{\frac{t}{\ell}}} \]
                                2. div-invN/A

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

                                  \[\leadsto \color{blue}{\frac{2}{\left(\left(\tan k \cdot \sin k\right) \cdot \left({\left(\frac{k}{t}\right)}^{2} + 2\right)\right) \cdot \left(\frac{t}{\ell} \cdot t\right)}} \cdot \frac{1}{\frac{t}{\ell}} \]
                                4. lift-/.f64N/A

                                  \[\leadsto \frac{2}{\left(\left(\tan k \cdot \sin k\right) \cdot \left({\left(\frac{k}{t}\right)}^{2} + 2\right)\right) \cdot \left(\frac{t}{\ell} \cdot t\right)} \cdot \frac{1}{\color{blue}{\frac{t}{\ell}}} \]
                                5. clear-numN/A

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

                                  \[\leadsto \color{blue}{\frac{2 \cdot \frac{\ell}{t}}{\left(\left(\tan k \cdot \sin k\right) \cdot \left({\left(\frac{k}{t}\right)}^{2} + 2\right)\right) \cdot \left(\frac{t}{\ell} \cdot t\right)}} \]
                                7. lower-/.f64N/A

                                  \[\leadsto \color{blue}{\frac{2 \cdot \frac{\ell}{t}}{\left(\left(\tan k \cdot \sin k\right) \cdot \left({\left(\frac{k}{t}\right)}^{2} + 2\right)\right) \cdot \left(\frac{t}{\ell} \cdot t\right)}} \]
                                8. lower-*.f64N/A

                                  \[\leadsto \frac{\color{blue}{2 \cdot \frac{\ell}{t}}}{\left(\left(\tan k \cdot \sin k\right) \cdot \left({\left(\frac{k}{t}\right)}^{2} + 2\right)\right) \cdot \left(\frac{t}{\ell} \cdot t\right)} \]
                                9. lower-/.f6488.9

                                  \[\leadsto \frac{2 \cdot \color{blue}{\frac{\ell}{t}}}{\left(\left(\tan k \cdot \sin k\right) \cdot \left({\left(\frac{k}{t}\right)}^{2} + 2\right)\right) \cdot \left(\frac{t}{\ell} \cdot t\right)} \]
                                10. lift-*.f64N/A

                                  \[\leadsto \frac{2 \cdot \frac{\ell}{t}}{\color{blue}{\left(\left(\tan k \cdot \sin k\right) \cdot \left({\left(\frac{k}{t}\right)}^{2} + 2\right)\right) \cdot \left(\frac{t}{\ell} \cdot t\right)}} \]
                                11. *-commutativeN/A

                                  \[\leadsto \frac{2 \cdot \frac{\ell}{t}}{\color{blue}{\left(\frac{t}{\ell} \cdot t\right) \cdot \left(\left(\tan k \cdot \sin k\right) \cdot \left({\left(\frac{k}{t}\right)}^{2} + 2\right)\right)}} \]
                                12. lower-*.f6488.9

                                  \[\leadsto \frac{2 \cdot \frac{\ell}{t}}{\color{blue}{\left(\frac{t}{\ell} \cdot t\right) \cdot \left(\left(\tan k \cdot \sin k\right) \cdot \left({\left(\frac{k}{t}\right)}^{2} + 2\right)\right)}} \]
                                13. lift-*.f64N/A

                                  \[\leadsto \frac{2 \cdot \frac{\ell}{t}}{\left(\frac{t}{\ell} \cdot t\right) \cdot \color{blue}{\left(\left(\tan k \cdot \sin k\right) \cdot \left({\left(\frac{k}{t}\right)}^{2} + 2\right)\right)}} \]
                                14. *-commutativeN/A

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

                                \[\leadsto \color{blue}{\frac{2 \cdot \frac{\ell}{t}}{\left(\frac{t}{\ell} \cdot t\right) \cdot \left(\left({\left(\frac{k}{t}\right)}^{2} + 2\right) \cdot \left(\sin k \cdot \tan k\right)\right)}} \]
                              8. Step-by-step derivation
                                1. lift-pow.f64N/A

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

                                  \[\leadsto \frac{2 \cdot \frac{\ell}{t}}{\left(\frac{t}{\ell} \cdot t\right) \cdot \left(\left(\color{blue}{\frac{k}{t} \cdot \frac{k}{t}} + 2\right) \cdot \left(\sin k \cdot \tan k\right)\right)} \]
                                3. lift-/.f64N/A

                                  \[\leadsto \frac{2 \cdot \frac{\ell}{t}}{\left(\frac{t}{\ell} \cdot t\right) \cdot \left(\left(\color{blue}{\frac{k}{t}} \cdot \frac{k}{t} + 2\right) \cdot \left(\sin k \cdot \tan k\right)\right)} \]
                                4. lift-/.f64N/A

                                  \[\leadsto \frac{2 \cdot \frac{\ell}{t}}{\left(\frac{t}{\ell} \cdot t\right) \cdot \left(\left(\frac{k}{t} \cdot \color{blue}{\frac{k}{t}} + 2\right) \cdot \left(\sin k \cdot \tan k\right)\right)} \]
                                5. frac-timesN/A

                                  \[\leadsto \frac{2 \cdot \frac{\ell}{t}}{\left(\frac{t}{\ell} \cdot t\right) \cdot \left(\left(\color{blue}{\frac{k \cdot k}{t \cdot t}} + 2\right) \cdot \left(\sin k \cdot \tan k\right)\right)} \]
                                6. lift-*.f64N/A

                                  \[\leadsto \frac{2 \cdot \frac{\ell}{t}}{\left(\frac{t}{\ell} \cdot t\right) \cdot \left(\left(\frac{\color{blue}{k \cdot k}}{t \cdot t} + 2\right) \cdot \left(\sin k \cdot \tan k\right)\right)} \]
                                7. lift-*.f64N/A

                                  \[\leadsto \frac{2 \cdot \frac{\ell}{t}}{\left(\frac{t}{\ell} \cdot t\right) \cdot \left(\left(\frac{k \cdot k}{\color{blue}{t \cdot t}} + 2\right) \cdot \left(\sin k \cdot \tan k\right)\right)} \]
                                8. lower-/.f6480.2

                                  \[\leadsto \frac{2 \cdot \frac{\ell}{t}}{\left(\frac{t}{\ell} \cdot t\right) \cdot \left(\left(\color{blue}{\frac{k \cdot k}{t \cdot t}} + 2\right) \cdot \left(\sin k \cdot \tan k\right)\right)} \]
                              9. Applied rewrites80.2%

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

                              if 1.05999999999999998e207 < t

                              1. Initial program 45.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. Taylor expanded in k around 0

                                \[\leadsto \color{blue}{\frac{{\ell}^{2}}{{k}^{2} \cdot {t}^{3}}} \]
                              4. Step-by-step derivation
                                1. unpow2N/A

                                  \[\leadsto \frac{\color{blue}{\ell \cdot \ell}}{{k}^{2} \cdot {t}^{3}} \]
                                2. *-commutativeN/A

                                  \[\leadsto \frac{\ell \cdot \ell}{\color{blue}{{t}^{3} \cdot {k}^{2}}} \]
                                3. times-fracN/A

                                  \[\leadsto \color{blue}{\frac{\ell}{{t}^{3}} \cdot \frac{\ell}{{k}^{2}}} \]
                                4. lower-*.f64N/A

                                  \[\leadsto \color{blue}{\frac{\ell}{{t}^{3}} \cdot \frac{\ell}{{k}^{2}}} \]
                                5. lower-/.f64N/A

                                  \[\leadsto \color{blue}{\frac{\ell}{{t}^{3}}} \cdot \frac{\ell}{{k}^{2}} \]
                                6. lower-pow.f64N/A

                                  \[\leadsto \frac{\ell}{\color{blue}{{t}^{3}}} \cdot \frac{\ell}{{k}^{2}} \]
                                7. lower-/.f64N/A

                                  \[\leadsto \frac{\ell}{{t}^{3}} \cdot \color{blue}{\frac{\ell}{{k}^{2}}} \]
                                8. unpow2N/A

                                  \[\leadsto \frac{\ell}{{t}^{3}} \cdot \frac{\ell}{\color{blue}{k \cdot k}} \]
                                9. lower-*.f6452.8

                                  \[\leadsto \frac{\ell}{{t}^{3}} \cdot \frac{\ell}{\color{blue}{k \cdot k}} \]
                              5. Applied rewrites52.8%

                                \[\leadsto \color{blue}{\frac{\ell}{{t}^{3}} \cdot \frac{\ell}{k \cdot k}} \]
                              6. Step-by-step derivation
                                1. Applied rewrites53.2%

                                  \[\leadsto \frac{\ell}{t \cdot t} \cdot \color{blue}{\frac{\ell}{t \cdot \left(k \cdot k\right)}} \]
                                2. Step-by-step derivation
                                  1. Applied rewrites88.2%

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

                                  \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq 2.25 \cdot 10^{-23}:\\ \;\;\;\;\frac{2}{\frac{\left(\frac{\sin k}{\ell} \cdot \tan k\right) \cdot \left(\left(k \cdot k\right) \cdot t\right)}{\ell}}\\ \mathbf{elif}\;t \leq 1.06 \cdot 10^{+207}:\\ \;\;\;\;\frac{2 \cdot \frac{\ell}{t}}{\left(\frac{t}{\ell} \cdot t\right) \cdot \left(\left(\frac{k \cdot k}{t \cdot t} + 2\right) \cdot \left(\sin k \cdot \tan k\right)\right)}\\ \mathbf{else}:\\ \;\;\;\;{\left(\frac{\left(\left(t \cdot k\right) \cdot k\right) \cdot t}{\ell \cdot \frac{\ell}{t}}\right)}^{-1}\\ \end{array} \]
                                5. Add Preprocessing

                                Alternative 6: 83.1% accurate, 1.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 7.6 \cdot 10^{-23}:\\ \;\;\;\;\frac{2}{\frac{\left(\frac{\sin k}{\ell} \cdot \tan k\right) \cdot \left(\left(k \cdot k\right) \cdot t\_m\right)}{\ell}}\\ \mathbf{else}:\\ \;\;\;\;\frac{2}{\left(\left(\left(\frac{t\_m}{\ell} \cdot \left(\frac{t\_m}{\ell} \cdot t\_m\right)\right) \cdot \sin k\right) \cdot \tan k\right) \cdot \mathsf{fma}\left(\frac{k}{t\_m}, \frac{k}{t\_m}, 2\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 7.6e-23)
                                    (/ 2.0 (/ (* (* (/ (sin k) l) (tan k)) (* (* k k) t_m)) l))
                                    (/
                                     2.0
                                     (*
                                      (* (* (* (/ t_m l) (* (/ t_m l) t_m)) (sin k)) (tan k))
                                      (fma (/ k t_m) (/ k t_m) 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 <= 7.6e-23) {
                                		tmp = 2.0 / ((((sin(k) / l) * tan(k)) * ((k * k) * t_m)) / l);
                                	} else {
                                		tmp = 2.0 / (((((t_m / l) * ((t_m / l) * t_m)) * sin(k)) * tan(k)) * fma((k / t_m), (k / t_m), 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 <= 7.6e-23)
                                		tmp = Float64(2.0 / Float64(Float64(Float64(Float64(sin(k) / l) * tan(k)) * Float64(Float64(k * k) * t_m)) / l));
                                	else
                                		tmp = Float64(2.0 / Float64(Float64(Float64(Float64(Float64(t_m / l) * Float64(Float64(t_m / l) * t_m)) * sin(k)) * tan(k)) * fma(Float64(k / t_m), Float64(k / t_m), 2.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, 7.6e-23], N[(2.0 / N[(N[(N[(N[(N[Sin[k], $MachinePrecision] / l), $MachinePrecision] * N[Tan[k], $MachinePrecision]), $MachinePrecision] * N[(N[(k * k), $MachinePrecision] * t$95$m), $MachinePrecision]), $MachinePrecision] / l), $MachinePrecision]), $MachinePrecision], N[(2.0 / N[(N[(N[(N[(N[(t$95$m / l), $MachinePrecision] * N[(N[(t$95$m / l), $MachinePrecision] * t$95$m), $MachinePrecision]), $MachinePrecision] * N[Sin[k], $MachinePrecision]), $MachinePrecision] * N[Tan[k], $MachinePrecision]), $MachinePrecision] * N[(N[(k / t$95$m), $MachinePrecision] * N[(k / t$95$m), $MachinePrecision] + 2.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 7.6 \cdot 10^{-23}:\\
                                \;\;\;\;\frac{2}{\frac{\left(\frac{\sin k}{\ell} \cdot \tan k\right) \cdot \left(\left(k \cdot k\right) \cdot t\_m\right)}{\ell}}\\
                                
                                \mathbf{else}:\\
                                \;\;\;\;\frac{2}{\left(\left(\left(\frac{t\_m}{\ell} \cdot \left(\frac{t\_m}{\ell} \cdot t\_m\right)\right) \cdot \sin k\right) \cdot \tan k\right) \cdot \mathsf{fma}\left(\frac{k}{t\_m}, \frac{k}{t\_m}, 2\right)}\\
                                
                                
                                \end{array}
                                \end{array}
                                
                                Derivation
                                1. Split input into 2 regimes
                                2. if t < 7.60000000000000023e-23

                                  1. Initial program 49.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. lift-*.f64N/A

                                      \[\leadsto \frac{2}{\left(\color{blue}{\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. lift-/.f64N/A

                                      \[\leadsto \frac{2}{\left(\left(\color{blue}{\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)} \]
                                    3. lift-pow.f64N/A

                                      \[\leadsto \frac{2}{\left(\left(\frac{\color{blue}{{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)} \]
                                    4. sqr-powN/A

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

                                      \[\leadsto \frac{2}{\left(\left(\frac{{t}^{\left(\frac{3}{2}\right)} \cdot {t}^{\left(\frac{3}{2}\right)}}{\color{blue}{\ell \cdot \ell}} \cdot \sin k\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
                                    6. times-fracN/A

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

                                      \[\leadsto \frac{2}{\left(\color{blue}{\left(\frac{{t}^{\left(\frac{3}{2}\right)}}{\ell} \cdot \left(\frac{{t}^{\left(\frac{3}{2}\right)}}{\ell} \cdot \sin k\right)\right)} \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
                                    8. lower-*.f64N/A

                                      \[\leadsto \frac{2}{\left(\color{blue}{\left(\frac{{t}^{\left(\frac{3}{2}\right)}}{\ell} \cdot \left(\frac{{t}^{\left(\frac{3}{2}\right)}}{\ell} \cdot \sin k\right)\right)} \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
                                    9. lower-/.f64N/A

                                      \[\leadsto \frac{2}{\left(\left(\color{blue}{\frac{{t}^{\left(\frac{3}{2}\right)}}{\ell}} \cdot \left(\frac{{t}^{\left(\frac{3}{2}\right)}}{\ell} \cdot \sin k\right)\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
                                    10. lower-pow.f64N/A

                                      \[\leadsto \frac{2}{\left(\left(\frac{\color{blue}{{t}^{\left(\frac{3}{2}\right)}}}{\ell} \cdot \left(\frac{{t}^{\left(\frac{3}{2}\right)}}{\ell} \cdot \sin k\right)\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
                                    11. metadata-evalN/A

                                      \[\leadsto \frac{2}{\left(\left(\frac{{t}^{\color{blue}{\frac{3}{2}}}}{\ell} \cdot \left(\frac{{t}^{\left(\frac{3}{2}\right)}}{\ell} \cdot \sin k\right)\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
                                    12. lower-*.f64N/A

                                      \[\leadsto \frac{2}{\left(\left(\frac{{t}^{\frac{3}{2}}}{\ell} \cdot \color{blue}{\left(\frac{{t}^{\left(\frac{3}{2}\right)}}{\ell} \cdot \sin k\right)}\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
                                    13. lower-/.f64N/A

                                      \[\leadsto \frac{2}{\left(\left(\frac{{t}^{\frac{3}{2}}}{\ell} \cdot \left(\color{blue}{\frac{{t}^{\left(\frac{3}{2}\right)}}{\ell}} \cdot \sin k\right)\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
                                    14. lower-pow.f64N/A

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

                                      \[\leadsto \frac{2}{\left(\left(\frac{{t}^{1.5}}{\ell} \cdot \left(\frac{{t}^{\color{blue}{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)} \]
                                  4. Applied rewrites22.5%

                                    \[\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. Taylor expanded in t around 0

                                    \[\leadsto \frac{2}{\color{blue}{\frac{{k}^{2} \cdot \left(t \cdot {\sin k}^{2}\right)}{{\ell}^{2} \cdot \cos k}}} \]
                                  6. Step-by-step derivation
                                    1. *-commutativeN/A

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

                                      \[\leadsto \frac{2}{\frac{\color{blue}{t \cdot \left({\sin k}^{2} \cdot {k}^{2}\right)}}{{\ell}^{2} \cdot \cos k}} \]
                                    3. *-commutativeN/A

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

                                      \[\leadsto \frac{2}{\color{blue}{t \cdot \frac{{k}^{2} \cdot {\sin k}^{2}}{{\ell}^{2} \cdot \cos k}}} \]
                                    5. associate-/l*N/A

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

                                      \[\leadsto \frac{2}{\color{blue}{\left(t \cdot {k}^{2}\right) \cdot \frac{{\sin k}^{2}}{{\ell}^{2} \cdot \cos k}}} \]
                                    7. lower-*.f64N/A

                                      \[\leadsto \frac{2}{\color{blue}{\left(t \cdot {k}^{2}\right) \cdot \frac{{\sin k}^{2}}{{\ell}^{2} \cdot \cos k}}} \]
                                    8. lower-*.f64N/A

                                      \[\leadsto \frac{2}{\color{blue}{\left(t \cdot {k}^{2}\right)} \cdot \frac{{\sin k}^{2}}{{\ell}^{2} \cdot \cos k}} \]
                                    9. unpow2N/A

                                      \[\leadsto \frac{2}{\left(t \cdot \color{blue}{\left(k \cdot k\right)}\right) \cdot \frac{{\sin k}^{2}}{{\ell}^{2} \cdot \cos k}} \]
                                    10. lower-*.f64N/A

                                      \[\leadsto \frac{2}{\left(t \cdot \color{blue}{\left(k \cdot k\right)}\right) \cdot \frac{{\sin k}^{2}}{{\ell}^{2} \cdot \cos k}} \]
                                    11. lower-/.f64N/A

                                      \[\leadsto \frac{2}{\left(t \cdot \left(k \cdot k\right)\right) \cdot \color{blue}{\frac{{\sin k}^{2}}{{\ell}^{2} \cdot \cos k}}} \]
                                    12. lower-pow.f64N/A

                                      \[\leadsto \frac{2}{\left(t \cdot \left(k \cdot k\right)\right) \cdot \frac{\color{blue}{{\sin k}^{2}}}{{\ell}^{2} \cdot \cos k}} \]
                                    13. lower-sin.f64N/A

                                      \[\leadsto \frac{2}{\left(t \cdot \left(k \cdot k\right)\right) \cdot \frac{{\color{blue}{\sin k}}^{2}}{{\ell}^{2} \cdot \cos k}} \]
                                    14. *-commutativeN/A

                                      \[\leadsto \frac{2}{\left(t \cdot \left(k \cdot k\right)\right) \cdot \frac{{\sin k}^{2}}{\color{blue}{\cos k \cdot {\ell}^{2}}}} \]
                                    15. unpow2N/A

                                      \[\leadsto \frac{2}{\left(t \cdot \left(k \cdot k\right)\right) \cdot \frac{{\sin k}^{2}}{\cos k \cdot \color{blue}{\left(\ell \cdot \ell\right)}}} \]
                                    16. associate-*r*N/A

                                      \[\leadsto \frac{2}{\left(t \cdot \left(k \cdot k\right)\right) \cdot \frac{{\sin k}^{2}}{\color{blue}{\left(\cos k \cdot \ell\right) \cdot \ell}}} \]
                                    17. *-commutativeN/A

                                      \[\leadsto \frac{2}{\left(t \cdot \left(k \cdot k\right)\right) \cdot \frac{{\sin k}^{2}}{\color{blue}{\left(\ell \cdot \cos k\right)} \cdot \ell}} \]
                                    18. lower-*.f64N/A

                                      \[\leadsto \frac{2}{\left(t \cdot \left(k \cdot k\right)\right) \cdot \frac{{\sin k}^{2}}{\color{blue}{\left(\ell \cdot \cos k\right) \cdot \ell}}} \]
                                    19. *-commutativeN/A

                                      \[\leadsto \frac{2}{\left(t \cdot \left(k \cdot k\right)\right) \cdot \frac{{\sin k}^{2}}{\color{blue}{\left(\cos k \cdot \ell\right)} \cdot \ell}} \]
                                    20. lower-*.f64N/A

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

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

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

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

                                    if 7.60000000000000023e-23 < t

                                    1. Initial program 57.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. Add Preprocessing
                                    3. Taylor expanded in t around inf

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

                                        \[\leadsto \frac{2}{\left(\left(\frac{{t}^{3}}{\ell \cdot \ell} \cdot \sin k\right) \cdot \tan k\right) \cdot \color{blue}{2}} \]
                                      2. Step-by-step derivation
                                        1. lift-/.f64N/A

                                          \[\leadsto \frac{2}{\left(\left(\color{blue}{\frac{{t}^{3}}{\ell \cdot \ell}} \cdot \sin k\right) \cdot \tan k\right) \cdot 2} \]
                                        2. lift-pow.f64N/A

                                          \[\leadsto \frac{2}{\left(\left(\frac{\color{blue}{{t}^{3}}}{\ell \cdot \ell} \cdot \sin k\right) \cdot \tan k\right) \cdot 2} \]
                                        3. lift-*.f64N/A

                                          \[\leadsto \frac{2}{\left(\left(\frac{{t}^{3}}{\color{blue}{\ell \cdot \ell}} \cdot \sin k\right) \cdot \tan k\right) \cdot 2} \]
                                        4. cube-multN/A

                                          \[\leadsto \frac{2}{\left(\left(\frac{\color{blue}{t \cdot \left(t \cdot t\right)}}{\ell \cdot \ell} \cdot \sin k\right) \cdot \tan k\right) \cdot 2} \]
                                        5. lift-*.f64N/A

                                          \[\leadsto \frac{2}{\left(\left(\frac{t \cdot \color{blue}{\left(t \cdot t\right)}}{\ell \cdot \ell} \cdot \sin k\right) \cdot \tan k\right) \cdot 2} \]
                                        6. frac-timesN/A

                                          \[\leadsto \frac{2}{\left(\left(\color{blue}{\left(\frac{t}{\ell} \cdot \frac{t \cdot t}{\ell}\right)} \cdot \sin k\right) \cdot \tan k\right) \cdot 2} \]
                                        7. lift-/.f64N/A

                                          \[\leadsto \frac{2}{\left(\left(\left(\color{blue}{\frac{t}{\ell}} \cdot \frac{t \cdot t}{\ell}\right) \cdot \sin k\right) \cdot \tan k\right) \cdot 2} \]
                                        8. lift-/.f64N/A

                                          \[\leadsto \frac{2}{\left(\left(\left(\frac{t}{\ell} \cdot \color{blue}{\frac{t \cdot t}{\ell}}\right) \cdot \sin k\right) \cdot \tan k\right) \cdot 2} \]
                                        9. lower-*.f6463.8

                                          \[\leadsto \frac{2}{\left(\left(\color{blue}{\left(\frac{t}{\ell} \cdot \frac{t \cdot t}{\ell}\right)} \cdot \sin k\right) \cdot \tan k\right) \cdot 2} \]
                                        10. lift-/.f64N/A

                                          \[\leadsto \frac{2}{\left(\left(\left(\frac{t}{\ell} \cdot \color{blue}{\frac{t \cdot t}{\ell}}\right) \cdot \sin k\right) \cdot \tan k\right) \cdot 2} \]
                                        11. lift-*.f64N/A

                                          \[\leadsto \frac{2}{\left(\left(\left(\frac{t}{\ell} \cdot \frac{\color{blue}{t \cdot t}}{\ell}\right) \cdot \sin k\right) \cdot \tan k\right) \cdot 2} \]
                                        12. associate-/l*N/A

                                          \[\leadsto \frac{2}{\left(\left(\left(\frac{t}{\ell} \cdot \color{blue}{\left(t \cdot \frac{t}{\ell}\right)}\right) \cdot \sin k\right) \cdot \tan k\right) \cdot 2} \]
                                        13. lift-/.f64N/A

                                          \[\leadsto \frac{2}{\left(\left(\left(\frac{t}{\ell} \cdot \left(t \cdot \color{blue}{\frac{t}{\ell}}\right)\right) \cdot \sin k\right) \cdot \tan k\right) \cdot 2} \]
                                        14. *-commutativeN/A

                                          \[\leadsto \frac{2}{\left(\left(\left(\frac{t}{\ell} \cdot \color{blue}{\left(\frac{t}{\ell} \cdot t\right)}\right) \cdot \sin k\right) \cdot \tan k\right) \cdot 2} \]
                                        15. lower-*.f6471.3

                                          \[\leadsto \frac{2}{\left(\left(\left(\frac{t}{\ell} \cdot \color{blue}{\left(\frac{t}{\ell} \cdot t\right)}\right) \cdot \sin k\right) \cdot \tan k\right) \cdot 2} \]
                                      3. Applied rewrites71.3%

                                        \[\leadsto \frac{2}{\left(\left(\color{blue}{\left(\frac{t}{\ell} \cdot \left(\frac{t}{\ell} \cdot t\right)\right)} \cdot \sin k\right) \cdot \tan k\right) \cdot 2} \]
                                      4. Taylor expanded in t around inf

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

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

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

                                          \[\leadsto \frac{2}{\left(\left(\left(\frac{t}{\ell} \cdot \left(\frac{t}{\ell} \cdot t\right)\right) \cdot \sin k\right) \cdot \tan k\right) \cdot \left(\frac{k \cdot k}{\color{blue}{t \cdot t}} + 2\right)} \]
                                        4. times-fracN/A

                                          \[\leadsto \frac{2}{\left(\left(\left(\frac{t}{\ell} \cdot \left(\frac{t}{\ell} \cdot t\right)\right) \cdot \sin k\right) \cdot \tan k\right) \cdot \left(\color{blue}{\frac{k}{t} \cdot \frac{k}{t}} + 2\right)} \]
                                        5. lower-fma.f64N/A

                                          \[\leadsto \frac{2}{\left(\left(\left(\frac{t}{\ell} \cdot \left(\frac{t}{\ell} \cdot t\right)\right) \cdot \sin k\right) \cdot \tan k\right) \cdot \color{blue}{\mathsf{fma}\left(\frac{k}{t}, \frac{k}{t}, 2\right)}} \]
                                        6. lower-/.f64N/A

                                          \[\leadsto \frac{2}{\left(\left(\left(\frac{t}{\ell} \cdot \left(\frac{t}{\ell} \cdot t\right)\right) \cdot \sin k\right) \cdot \tan k\right) \cdot \mathsf{fma}\left(\color{blue}{\frac{k}{t}}, \frac{k}{t}, 2\right)} \]
                                        7. lower-/.f6485.8

                                          \[\leadsto \frac{2}{\left(\left(\left(\frac{t}{\ell} \cdot \left(\frac{t}{\ell} \cdot t\right)\right) \cdot \sin k\right) \cdot \tan k\right) \cdot \mathsf{fma}\left(\frac{k}{t}, \color{blue}{\frac{k}{t}}, 2\right)} \]
                                      6. Applied rewrites85.8%

                                        \[\leadsto \frac{2}{\left(\left(\left(\frac{t}{\ell} \cdot \left(\frac{t}{\ell} \cdot t\right)\right) \cdot \sin k\right) \cdot \tan k\right) \cdot \color{blue}{\mathsf{fma}\left(\frac{k}{t}, \frac{k}{t}, 2\right)}} \]
                                    5. Recombined 2 regimes into one program.
                                    6. Add Preprocessing

                                    Alternative 7: 77.8% accurate, 1.7× 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}\;k \leq 2.3 \cdot 10^{-167}:\\ \;\;\;\;\frac{\frac{\frac{\ell}{k} \cdot \frac{\frac{\ell}{k}}{t\_m}}{t\_m}}{t\_m}\\ \mathbf{elif}\;k \leq 1.96:\\ \;\;\;\;\frac{\frac{2}{\mathsf{fma}\left(\frac{\mathsf{fma}\left(0.3333333333333333, t\_m \cdot t\_m, 1\right)}{\ell} \cdot k, k, \frac{t\_m \cdot t\_m}{\ell} \cdot 2\right) \cdot \left(k \cdot k\right)}}{\frac{t\_m}{\ell}}\\ \mathbf{elif}\;k \leq 5 \cdot 10^{+120}:\\ \;\;\;\;\frac{2}{\frac{\left(\frac{\sin k}{\ell} \cdot \tan k\right) \cdot \left(\left(k \cdot k\right) \cdot t\_m\right)}{\ell}}\\ \mathbf{else}:\\ \;\;\;\;\frac{2}{\left(\frac{\tan k \cdot \sin k}{\ell \cdot \ell} \cdot \left(k \cdot t\_m\right)\right) \cdot k}\\ \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 (<= k 2.3e-167)
                                        (/ (/ (* (/ l k) (/ (/ l k) t_m)) t_m) t_m)
                                        (if (<= k 1.96)
                                          (/
                                           (/
                                            2.0
                                            (*
                                             (fma
                                              (* (/ (fma 0.3333333333333333 (* t_m t_m) 1.0) l) k)
                                              k
                                              (* (/ (* t_m t_m) l) 2.0))
                                             (* k k)))
                                           (/ t_m l))
                                          (if (<= k 5e+120)
                                            (/ 2.0 (/ (* (* (/ (sin k) l) (tan k)) (* (* k k) t_m)) l))
                                            (/ 2.0 (* (* (/ (* (tan k) (sin k)) (* l l)) (* k t_m)) k)))))))
                                    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 (k <= 2.3e-167) {
                                    		tmp = (((l / k) * ((l / k) / t_m)) / t_m) / t_m;
                                    	} else if (k <= 1.96) {
                                    		tmp = (2.0 / (fma(((fma(0.3333333333333333, (t_m * t_m), 1.0) / l) * k), k, (((t_m * t_m) / l) * 2.0)) * (k * k))) / (t_m / l);
                                    	} else if (k <= 5e+120) {
                                    		tmp = 2.0 / ((((sin(k) / l) * tan(k)) * ((k * k) * t_m)) / l);
                                    	} else {
                                    		tmp = 2.0 / ((((tan(k) * sin(k)) / (l * l)) * (k * t_m)) * k);
                                    	}
                                    	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 (k <= 2.3e-167)
                                    		tmp = Float64(Float64(Float64(Float64(l / k) * Float64(Float64(l / k) / t_m)) / t_m) / t_m);
                                    	elseif (k <= 1.96)
                                    		tmp = Float64(Float64(2.0 / Float64(fma(Float64(Float64(fma(0.3333333333333333, Float64(t_m * t_m), 1.0) / l) * k), k, Float64(Float64(Float64(t_m * t_m) / l) * 2.0)) * Float64(k * k))) / Float64(t_m / l));
                                    	elseif (k <= 5e+120)
                                    		tmp = Float64(2.0 / Float64(Float64(Float64(Float64(sin(k) / l) * tan(k)) * Float64(Float64(k * k) * t_m)) / l));
                                    	else
                                    		tmp = Float64(2.0 / Float64(Float64(Float64(Float64(tan(k) * sin(k)) / Float64(l * l)) * Float64(k * t_m)) * k));
                                    	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[k, 2.3e-167], N[(N[(N[(N[(l / k), $MachinePrecision] * N[(N[(l / k), $MachinePrecision] / t$95$m), $MachinePrecision]), $MachinePrecision] / t$95$m), $MachinePrecision] / t$95$m), $MachinePrecision], If[LessEqual[k, 1.96], N[(N[(2.0 / N[(N[(N[(N[(N[(0.3333333333333333 * N[(t$95$m * t$95$m), $MachinePrecision] + 1.0), $MachinePrecision] / l), $MachinePrecision] * k), $MachinePrecision] * k + N[(N[(N[(t$95$m * t$95$m), $MachinePrecision] / l), $MachinePrecision] * 2.0), $MachinePrecision]), $MachinePrecision] * N[(k * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(t$95$m / l), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, 5e+120], N[(2.0 / N[(N[(N[(N[(N[Sin[k], $MachinePrecision] / l), $MachinePrecision] * N[Tan[k], $MachinePrecision]), $MachinePrecision] * N[(N[(k * k), $MachinePrecision] * t$95$m), $MachinePrecision]), $MachinePrecision] / l), $MachinePrecision]), $MachinePrecision], N[(2.0 / N[(N[(N[(N[(N[Tan[k], $MachinePrecision] * N[Sin[k], $MachinePrecision]), $MachinePrecision] / N[(l * l), $MachinePrecision]), $MachinePrecision] * N[(k * t$95$m), $MachinePrecision]), $MachinePrecision] * k), $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}\;k \leq 2.3 \cdot 10^{-167}:\\
                                    \;\;\;\;\frac{\frac{\frac{\ell}{k} \cdot \frac{\frac{\ell}{k}}{t\_m}}{t\_m}}{t\_m}\\
                                    
                                    \mathbf{elif}\;k \leq 1.96:\\
                                    \;\;\;\;\frac{\frac{2}{\mathsf{fma}\left(\frac{\mathsf{fma}\left(0.3333333333333333, t\_m \cdot t\_m, 1\right)}{\ell} \cdot k, k, \frac{t\_m \cdot t\_m}{\ell} \cdot 2\right) \cdot \left(k \cdot k\right)}}{\frac{t\_m}{\ell}}\\
                                    
                                    \mathbf{elif}\;k \leq 5 \cdot 10^{+120}:\\
                                    \;\;\;\;\frac{2}{\frac{\left(\frac{\sin k}{\ell} \cdot \tan k\right) \cdot \left(\left(k \cdot k\right) \cdot t\_m\right)}{\ell}}\\
                                    
                                    \mathbf{else}:\\
                                    \;\;\;\;\frac{2}{\left(\frac{\tan k \cdot \sin k}{\ell \cdot \ell} \cdot \left(k \cdot t\_m\right)\right) \cdot k}\\
                                    
                                    
                                    \end{array}
                                    \end{array}
                                    
                                    Derivation
                                    1. Split input into 4 regimes
                                    2. if k < 2.3000000000000001e-167

                                      1. Initial program 55.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. Add Preprocessing
                                      3. Taylor expanded in k around 0

                                        \[\leadsto \color{blue}{\frac{{\ell}^{2}}{{k}^{2} \cdot {t}^{3}}} \]
                                      4. Step-by-step derivation
                                        1. unpow2N/A

                                          \[\leadsto \frac{\color{blue}{\ell \cdot \ell}}{{k}^{2} \cdot {t}^{3}} \]
                                        2. *-commutativeN/A

                                          \[\leadsto \frac{\ell \cdot \ell}{\color{blue}{{t}^{3} \cdot {k}^{2}}} \]
                                        3. times-fracN/A

                                          \[\leadsto \color{blue}{\frac{\ell}{{t}^{3}} \cdot \frac{\ell}{{k}^{2}}} \]
                                        4. lower-*.f64N/A

                                          \[\leadsto \color{blue}{\frac{\ell}{{t}^{3}} \cdot \frac{\ell}{{k}^{2}}} \]
                                        5. lower-/.f64N/A

                                          \[\leadsto \color{blue}{\frac{\ell}{{t}^{3}}} \cdot \frac{\ell}{{k}^{2}} \]
                                        6. lower-pow.f64N/A

                                          \[\leadsto \frac{\ell}{\color{blue}{{t}^{3}}} \cdot \frac{\ell}{{k}^{2}} \]
                                        7. lower-/.f64N/A

                                          \[\leadsto \frac{\ell}{{t}^{3}} \cdot \color{blue}{\frac{\ell}{{k}^{2}}} \]
                                        8. unpow2N/A

                                          \[\leadsto \frac{\ell}{{t}^{3}} \cdot \frac{\ell}{\color{blue}{k \cdot k}} \]
                                        9. lower-*.f6455.5

                                          \[\leadsto \frac{\ell}{{t}^{3}} \cdot \frac{\ell}{\color{blue}{k \cdot k}} \]
                                      5. Applied rewrites55.5%

                                        \[\leadsto \color{blue}{\frac{\ell}{{t}^{3}} \cdot \frac{\ell}{k \cdot k}} \]
                                      6. Step-by-step derivation
                                        1. Applied rewrites57.8%

                                          \[\leadsto \frac{\ell}{t \cdot t} \cdot \color{blue}{\frac{\ell}{t \cdot \left(k \cdot k\right)}} \]
                                        2. Step-by-step derivation
                                          1. Applied rewrites49.6%

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

                                              \[\leadsto \frac{\frac{\frac{-\ell}{k} \cdot \frac{\frac{\ell}{k}}{t}}{-t}}{\color{blue}{t}} \]

                                            if 2.3000000000000001e-167 < k < 1.96

                                            1. Initial program 62.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. Add Preprocessing
                                            3. Step-by-step derivation
                                              1. lift-*.f64N/A

                                                \[\leadsto \frac{2}{\left(\color{blue}{\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. lift-/.f64N/A

                                                \[\leadsto \frac{2}{\left(\left(\color{blue}{\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)} \]
                                              3. lift-pow.f64N/A

                                                \[\leadsto \frac{2}{\left(\left(\frac{\color{blue}{{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)} \]
                                              4. sqr-powN/A

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

                                                \[\leadsto \frac{2}{\left(\left(\frac{{t}^{\left(\frac{3}{2}\right)} \cdot {t}^{\left(\frac{3}{2}\right)}}{\color{blue}{\ell \cdot \ell}} \cdot \sin k\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
                                              6. times-fracN/A

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

                                                \[\leadsto \frac{2}{\left(\color{blue}{\left(\frac{{t}^{\left(\frac{3}{2}\right)}}{\ell} \cdot \left(\frac{{t}^{\left(\frac{3}{2}\right)}}{\ell} \cdot \sin k\right)\right)} \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
                                              8. lower-*.f64N/A

                                                \[\leadsto \frac{2}{\left(\color{blue}{\left(\frac{{t}^{\left(\frac{3}{2}\right)}}{\ell} \cdot \left(\frac{{t}^{\left(\frac{3}{2}\right)}}{\ell} \cdot \sin k\right)\right)} \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
                                              9. lower-/.f64N/A

                                                \[\leadsto \frac{2}{\left(\left(\color{blue}{\frac{{t}^{\left(\frac{3}{2}\right)}}{\ell}} \cdot \left(\frac{{t}^{\left(\frac{3}{2}\right)}}{\ell} \cdot \sin k\right)\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
                                              10. lower-pow.f64N/A

                                                \[\leadsto \frac{2}{\left(\left(\frac{\color{blue}{{t}^{\left(\frac{3}{2}\right)}}}{\ell} \cdot \left(\frac{{t}^{\left(\frac{3}{2}\right)}}{\ell} \cdot \sin k\right)\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
                                              11. metadata-evalN/A

                                                \[\leadsto \frac{2}{\left(\left(\frac{{t}^{\color{blue}{\frac{3}{2}}}}{\ell} \cdot \left(\frac{{t}^{\left(\frac{3}{2}\right)}}{\ell} \cdot \sin k\right)\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
                                              12. lower-*.f64N/A

                                                \[\leadsto \frac{2}{\left(\left(\frac{{t}^{\frac{3}{2}}}{\ell} \cdot \color{blue}{\left(\frac{{t}^{\left(\frac{3}{2}\right)}}{\ell} \cdot \sin k\right)}\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
                                              13. lower-/.f64N/A

                                                \[\leadsto \frac{2}{\left(\left(\frac{{t}^{\frac{3}{2}}}{\ell} \cdot \left(\color{blue}{\frac{{t}^{\left(\frac{3}{2}\right)}}{\ell}} \cdot \sin k\right)\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
                                              14. lower-pow.f64N/A

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

                                                \[\leadsto \frac{2}{\left(\left(\frac{{t}^{1.5}}{\ell} \cdot \left(\frac{{t}^{\color{blue}{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)} \]
                                            4. Applied rewrites32.7%

                                              \[\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. Applied rewrites86.3%

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

                                              \[\leadsto \frac{\frac{2}{\color{blue}{{k}^{2} \cdot \left(2 \cdot \frac{{t}^{2}}{\ell} + \frac{{k}^{2} \cdot \left({t}^{2} \cdot \left(\frac{1}{3} + \frac{1}{{t}^{2}}\right)\right)}{\ell}\right)}}}{\frac{t}{\ell}} \]
                                            7. Step-by-step derivation
                                              1. *-commutativeN/A

                                                \[\leadsto \frac{\frac{2}{\color{blue}{\left(2 \cdot \frac{{t}^{2}}{\ell} + \frac{{k}^{2} \cdot \left({t}^{2} \cdot \left(\frac{1}{3} + \frac{1}{{t}^{2}}\right)\right)}{\ell}\right) \cdot {k}^{2}}}}{\frac{t}{\ell}} \]
                                              2. lower-*.f64N/A

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

                                              \[\leadsto \frac{\frac{2}{\color{blue}{\mathsf{fma}\left(\frac{\mathsf{fma}\left(0.3333333333333333, t \cdot t, 1\right)}{\ell} \cdot k, k, \frac{t \cdot t}{\ell} \cdot 2\right) \cdot \left(k \cdot k\right)}}}{\frac{t}{\ell}} \]

                                            if 1.96 < k < 5.00000000000000019e120

                                            1. Initial program 34.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. lift-*.f64N/A

                                                \[\leadsto \frac{2}{\left(\color{blue}{\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. lift-/.f64N/A

                                                \[\leadsto \frac{2}{\left(\left(\color{blue}{\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)} \]
                                              3. lift-pow.f64N/A

                                                \[\leadsto \frac{2}{\left(\left(\frac{\color{blue}{{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)} \]
                                              4. sqr-powN/A

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

                                                \[\leadsto \frac{2}{\left(\left(\frac{{t}^{\left(\frac{3}{2}\right)} \cdot {t}^{\left(\frac{3}{2}\right)}}{\color{blue}{\ell \cdot \ell}} \cdot \sin k\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
                                              6. times-fracN/A

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

                                                \[\leadsto \frac{2}{\left(\color{blue}{\left(\frac{{t}^{\left(\frac{3}{2}\right)}}{\ell} \cdot \left(\frac{{t}^{\left(\frac{3}{2}\right)}}{\ell} \cdot \sin k\right)\right)} \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
                                              8. lower-*.f64N/A

                                                \[\leadsto \frac{2}{\left(\color{blue}{\left(\frac{{t}^{\left(\frac{3}{2}\right)}}{\ell} \cdot \left(\frac{{t}^{\left(\frac{3}{2}\right)}}{\ell} \cdot \sin k\right)\right)} \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
                                              9. lower-/.f64N/A

                                                \[\leadsto \frac{2}{\left(\left(\color{blue}{\frac{{t}^{\left(\frac{3}{2}\right)}}{\ell}} \cdot \left(\frac{{t}^{\left(\frac{3}{2}\right)}}{\ell} \cdot \sin k\right)\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
                                              10. lower-pow.f64N/A

                                                \[\leadsto \frac{2}{\left(\left(\frac{\color{blue}{{t}^{\left(\frac{3}{2}\right)}}}{\ell} \cdot \left(\frac{{t}^{\left(\frac{3}{2}\right)}}{\ell} \cdot \sin k\right)\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
                                              11. metadata-evalN/A

                                                \[\leadsto \frac{2}{\left(\left(\frac{{t}^{\color{blue}{\frac{3}{2}}}}{\ell} \cdot \left(\frac{{t}^{\left(\frac{3}{2}\right)}}{\ell} \cdot \sin k\right)\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
                                              12. lower-*.f64N/A

                                                \[\leadsto \frac{2}{\left(\left(\frac{{t}^{\frac{3}{2}}}{\ell} \cdot \color{blue}{\left(\frac{{t}^{\left(\frac{3}{2}\right)}}{\ell} \cdot \sin k\right)}\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
                                              13. lower-/.f64N/A

                                                \[\leadsto \frac{2}{\left(\left(\frac{{t}^{\frac{3}{2}}}{\ell} \cdot \left(\color{blue}{\frac{{t}^{\left(\frac{3}{2}\right)}}{\ell}} \cdot \sin k\right)\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
                                              14. lower-pow.f64N/A

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

                                                \[\leadsto \frac{2}{\left(\left(\frac{{t}^{1.5}}{\ell} \cdot \left(\frac{{t}^{\color{blue}{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)} \]
                                            4. Applied rewrites19.8%

                                              \[\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. Taylor expanded in t around 0

                                              \[\leadsto \frac{2}{\color{blue}{\frac{{k}^{2} \cdot \left(t \cdot {\sin k}^{2}\right)}{{\ell}^{2} \cdot \cos k}}} \]
                                            6. Step-by-step derivation
                                              1. *-commutativeN/A

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

                                                \[\leadsto \frac{2}{\frac{\color{blue}{t \cdot \left({\sin k}^{2} \cdot {k}^{2}\right)}}{{\ell}^{2} \cdot \cos k}} \]
                                              3. *-commutativeN/A

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

                                                \[\leadsto \frac{2}{\color{blue}{t \cdot \frac{{k}^{2} \cdot {\sin k}^{2}}{{\ell}^{2} \cdot \cos k}}} \]
                                              5. associate-/l*N/A

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

                                                \[\leadsto \frac{2}{\color{blue}{\left(t \cdot {k}^{2}\right) \cdot \frac{{\sin k}^{2}}{{\ell}^{2} \cdot \cos k}}} \]
                                              7. lower-*.f64N/A

                                                \[\leadsto \frac{2}{\color{blue}{\left(t \cdot {k}^{2}\right) \cdot \frac{{\sin k}^{2}}{{\ell}^{2} \cdot \cos k}}} \]
                                              8. lower-*.f64N/A

                                                \[\leadsto \frac{2}{\color{blue}{\left(t \cdot {k}^{2}\right)} \cdot \frac{{\sin k}^{2}}{{\ell}^{2} \cdot \cos k}} \]
                                              9. unpow2N/A

                                                \[\leadsto \frac{2}{\left(t \cdot \color{blue}{\left(k \cdot k\right)}\right) \cdot \frac{{\sin k}^{2}}{{\ell}^{2} \cdot \cos k}} \]
                                              10. lower-*.f64N/A

                                                \[\leadsto \frac{2}{\left(t \cdot \color{blue}{\left(k \cdot k\right)}\right) \cdot \frac{{\sin k}^{2}}{{\ell}^{2} \cdot \cos k}} \]
                                              11. lower-/.f64N/A

                                                \[\leadsto \frac{2}{\left(t \cdot \left(k \cdot k\right)\right) \cdot \color{blue}{\frac{{\sin k}^{2}}{{\ell}^{2} \cdot \cos k}}} \]
                                              12. lower-pow.f64N/A

                                                \[\leadsto \frac{2}{\left(t \cdot \left(k \cdot k\right)\right) \cdot \frac{\color{blue}{{\sin k}^{2}}}{{\ell}^{2} \cdot \cos k}} \]
                                              13. lower-sin.f64N/A

                                                \[\leadsto \frac{2}{\left(t \cdot \left(k \cdot k\right)\right) \cdot \frac{{\color{blue}{\sin k}}^{2}}{{\ell}^{2} \cdot \cos k}} \]
                                              14. *-commutativeN/A

                                                \[\leadsto \frac{2}{\left(t \cdot \left(k \cdot k\right)\right) \cdot \frac{{\sin k}^{2}}{\color{blue}{\cos k \cdot {\ell}^{2}}}} \]
                                              15. unpow2N/A

                                                \[\leadsto \frac{2}{\left(t \cdot \left(k \cdot k\right)\right) \cdot \frac{{\sin k}^{2}}{\cos k \cdot \color{blue}{\left(\ell \cdot \ell\right)}}} \]
                                              16. associate-*r*N/A

                                                \[\leadsto \frac{2}{\left(t \cdot \left(k \cdot k\right)\right) \cdot \frac{{\sin k}^{2}}{\color{blue}{\left(\cos k \cdot \ell\right) \cdot \ell}}} \]
                                              17. *-commutativeN/A

                                                \[\leadsto \frac{2}{\left(t \cdot \left(k \cdot k\right)\right) \cdot \frac{{\sin k}^{2}}{\color{blue}{\left(\ell \cdot \cos k\right)} \cdot \ell}} \]
                                              18. lower-*.f64N/A

                                                \[\leadsto \frac{2}{\left(t \cdot \left(k \cdot k\right)\right) \cdot \frac{{\sin k}^{2}}{\color{blue}{\left(\ell \cdot \cos k\right) \cdot \ell}}} \]
                                              19. *-commutativeN/A

                                                \[\leadsto \frac{2}{\left(t \cdot \left(k \cdot k\right)\right) \cdot \frac{{\sin k}^{2}}{\color{blue}{\left(\cos k \cdot \ell\right)} \cdot \ell}} \]
                                              20. lower-*.f64N/A

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

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

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

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

                                              if 5.00000000000000019e120 < k

                                              1. Initial program 32.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. Add Preprocessing
                                              3. Step-by-step derivation
                                                1. lift-*.f64N/A

                                                  \[\leadsto \frac{2}{\left(\color{blue}{\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. lift-/.f64N/A

                                                  \[\leadsto \frac{2}{\left(\left(\color{blue}{\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)} \]
                                                3. lift-pow.f64N/A

                                                  \[\leadsto \frac{2}{\left(\left(\frac{\color{blue}{{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)} \]
                                                4. sqr-powN/A

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

                                                  \[\leadsto \frac{2}{\left(\left(\frac{{t}^{\left(\frac{3}{2}\right)} \cdot {t}^{\left(\frac{3}{2}\right)}}{\color{blue}{\ell \cdot \ell}} \cdot \sin k\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
                                                6. times-fracN/A

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

                                                  \[\leadsto \frac{2}{\left(\color{blue}{\left(\frac{{t}^{\left(\frac{3}{2}\right)}}{\ell} \cdot \left(\frac{{t}^{\left(\frac{3}{2}\right)}}{\ell} \cdot \sin k\right)\right)} \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
                                                8. lower-*.f64N/A

                                                  \[\leadsto \frac{2}{\left(\color{blue}{\left(\frac{{t}^{\left(\frac{3}{2}\right)}}{\ell} \cdot \left(\frac{{t}^{\left(\frac{3}{2}\right)}}{\ell} \cdot \sin k\right)\right)} \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
                                                9. lower-/.f64N/A

                                                  \[\leadsto \frac{2}{\left(\left(\color{blue}{\frac{{t}^{\left(\frac{3}{2}\right)}}{\ell}} \cdot \left(\frac{{t}^{\left(\frac{3}{2}\right)}}{\ell} \cdot \sin k\right)\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
                                                10. lower-pow.f64N/A

                                                  \[\leadsto \frac{2}{\left(\left(\frac{\color{blue}{{t}^{\left(\frac{3}{2}\right)}}}{\ell} \cdot \left(\frac{{t}^{\left(\frac{3}{2}\right)}}{\ell} \cdot \sin k\right)\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
                                                11. metadata-evalN/A

                                                  \[\leadsto \frac{2}{\left(\left(\frac{{t}^{\color{blue}{\frac{3}{2}}}}{\ell} \cdot \left(\frac{{t}^{\left(\frac{3}{2}\right)}}{\ell} \cdot \sin k\right)\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
                                                12. lower-*.f64N/A

                                                  \[\leadsto \frac{2}{\left(\left(\frac{{t}^{\frac{3}{2}}}{\ell} \cdot \color{blue}{\left(\frac{{t}^{\left(\frac{3}{2}\right)}}{\ell} \cdot \sin k\right)}\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
                                                13. lower-/.f64N/A

                                                  \[\leadsto \frac{2}{\left(\left(\frac{{t}^{\frac{3}{2}}}{\ell} \cdot \left(\color{blue}{\frac{{t}^{\left(\frac{3}{2}\right)}}{\ell}} \cdot \sin k\right)\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
                                                14. lower-pow.f64N/A

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

                                                  \[\leadsto \frac{2}{\left(\left(\frac{{t}^{1.5}}{\ell} \cdot \left(\frac{{t}^{\color{blue}{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)} \]
                                              4. Applied rewrites37.7%

                                                \[\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. Taylor expanded in t around 0

                                                \[\leadsto \frac{2}{\color{blue}{\frac{{k}^{2} \cdot \left(t \cdot {\sin k}^{2}\right)}{{\ell}^{2} \cdot \cos k}}} \]
                                              6. Step-by-step derivation
                                                1. *-commutativeN/A

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

                                                  \[\leadsto \frac{2}{\frac{\color{blue}{t \cdot \left({\sin k}^{2} \cdot {k}^{2}\right)}}{{\ell}^{2} \cdot \cos k}} \]
                                                3. *-commutativeN/A

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

                                                  \[\leadsto \frac{2}{\color{blue}{t \cdot \frac{{k}^{2} \cdot {\sin k}^{2}}{{\ell}^{2} \cdot \cos k}}} \]
                                                5. associate-/l*N/A

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

                                                  \[\leadsto \frac{2}{\color{blue}{\left(t \cdot {k}^{2}\right) \cdot \frac{{\sin k}^{2}}{{\ell}^{2} \cdot \cos k}}} \]
                                                7. lower-*.f64N/A

                                                  \[\leadsto \frac{2}{\color{blue}{\left(t \cdot {k}^{2}\right) \cdot \frac{{\sin k}^{2}}{{\ell}^{2} \cdot \cos k}}} \]
                                                8. lower-*.f64N/A

                                                  \[\leadsto \frac{2}{\color{blue}{\left(t \cdot {k}^{2}\right)} \cdot \frac{{\sin k}^{2}}{{\ell}^{2} \cdot \cos k}} \]
                                                9. unpow2N/A

                                                  \[\leadsto \frac{2}{\left(t \cdot \color{blue}{\left(k \cdot k\right)}\right) \cdot \frac{{\sin k}^{2}}{{\ell}^{2} \cdot \cos k}} \]
                                                10. lower-*.f64N/A

                                                  \[\leadsto \frac{2}{\left(t \cdot \color{blue}{\left(k \cdot k\right)}\right) \cdot \frac{{\sin k}^{2}}{{\ell}^{2} \cdot \cos k}} \]
                                                11. lower-/.f64N/A

                                                  \[\leadsto \frac{2}{\left(t \cdot \left(k \cdot k\right)\right) \cdot \color{blue}{\frac{{\sin k}^{2}}{{\ell}^{2} \cdot \cos k}}} \]
                                                12. lower-pow.f64N/A

                                                  \[\leadsto \frac{2}{\left(t \cdot \left(k \cdot k\right)\right) \cdot \frac{\color{blue}{{\sin k}^{2}}}{{\ell}^{2} \cdot \cos k}} \]
                                                13. lower-sin.f64N/A

                                                  \[\leadsto \frac{2}{\left(t \cdot \left(k \cdot k\right)\right) \cdot \frac{{\color{blue}{\sin k}}^{2}}{{\ell}^{2} \cdot \cos k}} \]
                                                14. *-commutativeN/A

                                                  \[\leadsto \frac{2}{\left(t \cdot \left(k \cdot k\right)\right) \cdot \frac{{\sin k}^{2}}{\color{blue}{\cos k \cdot {\ell}^{2}}}} \]
                                                15. unpow2N/A

                                                  \[\leadsto \frac{2}{\left(t \cdot \left(k \cdot k\right)\right) \cdot \frac{{\sin k}^{2}}{\cos k \cdot \color{blue}{\left(\ell \cdot \ell\right)}}} \]
                                                16. associate-*r*N/A

                                                  \[\leadsto \frac{2}{\left(t \cdot \left(k \cdot k\right)\right) \cdot \frac{{\sin k}^{2}}{\color{blue}{\left(\cos k \cdot \ell\right) \cdot \ell}}} \]
                                                17. *-commutativeN/A

                                                  \[\leadsto \frac{2}{\left(t \cdot \left(k \cdot k\right)\right) \cdot \frac{{\sin k}^{2}}{\color{blue}{\left(\ell \cdot \cos k\right)} \cdot \ell}} \]
                                                18. lower-*.f64N/A

                                                  \[\leadsto \frac{2}{\left(t \cdot \left(k \cdot k\right)\right) \cdot \frac{{\sin k}^{2}}{\color{blue}{\left(\ell \cdot \cos k\right) \cdot \ell}}} \]
                                                19. *-commutativeN/A

                                                  \[\leadsto \frac{2}{\left(t \cdot \left(k \cdot k\right)\right) \cdot \frac{{\sin k}^{2}}{\color{blue}{\left(\cos k \cdot \ell\right)} \cdot \ell}} \]
                                                20. lower-*.f64N/A

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

                                                  \[\leadsto \frac{2}{\left(t \cdot \left(k \cdot k\right)\right) \cdot \frac{{\sin k}^{2}}{\left(\color{blue}{\cos k} \cdot \ell\right) \cdot \ell}} \]
                                              7. Applied rewrites61.9%

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

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

                                                \[\leadsto \begin{array}{l} \mathbf{if}\;k \leq 2.3 \cdot 10^{-167}:\\ \;\;\;\;\frac{\frac{\frac{\ell}{k} \cdot \frac{\frac{\ell}{k}}{t}}{t}}{t}\\ \mathbf{elif}\;k \leq 1.96:\\ \;\;\;\;\frac{\frac{2}{\mathsf{fma}\left(\frac{\mathsf{fma}\left(0.3333333333333333, t \cdot t, 1\right)}{\ell} \cdot k, k, \frac{t \cdot t}{\ell} \cdot 2\right) \cdot \left(k \cdot k\right)}}{\frac{t}{\ell}}\\ \mathbf{elif}\;k \leq 5 \cdot 10^{+120}:\\ \;\;\;\;\frac{2}{\frac{\left(\frac{\sin k}{\ell} \cdot \tan k\right) \cdot \left(\left(k \cdot k\right) \cdot t\right)}{\ell}}\\ \mathbf{else}:\\ \;\;\;\;\frac{2}{\left(\frac{\tan k \cdot \sin k}{\ell \cdot \ell} \cdot \left(k \cdot t\right)\right) \cdot k}\\ \end{array} \]
                                              11. Add Preprocessing

                                              Alternative 8: 77.0% accurate, 1.8× 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}\;k \leq 2.3 \cdot 10^{-167}:\\ \;\;\;\;\frac{\frac{\frac{\ell}{k} \cdot \frac{\frac{\ell}{k}}{t\_m}}{t\_m}}{t\_m}\\ \mathbf{elif}\;k \leq 1.96:\\ \;\;\;\;\frac{\frac{2}{\mathsf{fma}\left(\frac{\mathsf{fma}\left(0.3333333333333333, t\_m \cdot t\_m, 1\right)}{\ell} \cdot k, k, \frac{t\_m \cdot t\_m}{\ell} \cdot 2\right) \cdot \left(k \cdot k\right)}}{\frac{t\_m}{\ell}}\\ \mathbf{else}:\\ \;\;\;\;\frac{2}{\left(\frac{\tan k \cdot \sin k}{\ell \cdot \ell} \cdot \left(k \cdot t\_m\right)\right) \cdot k}\\ \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 (<= k 2.3e-167)
                                                  (/ (/ (* (/ l k) (/ (/ l k) t_m)) t_m) t_m)
                                                  (if (<= k 1.96)
                                                    (/
                                                     (/
                                                      2.0
                                                      (*
                                                       (fma
                                                        (* (/ (fma 0.3333333333333333 (* t_m t_m) 1.0) l) k)
                                                        k
                                                        (* (/ (* t_m t_m) l) 2.0))
                                                       (* k k)))
                                                     (/ t_m l))
                                                    (/ 2.0 (* (* (/ (* (tan k) (sin k)) (* l l)) (* k t_m)) k))))))
                                              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 (k <= 2.3e-167) {
                                              		tmp = (((l / k) * ((l / k) / t_m)) / t_m) / t_m;
                                              	} else if (k <= 1.96) {
                                              		tmp = (2.0 / (fma(((fma(0.3333333333333333, (t_m * t_m), 1.0) / l) * k), k, (((t_m * t_m) / l) * 2.0)) * (k * k))) / (t_m / l);
                                              	} else {
                                              		tmp = 2.0 / ((((tan(k) * sin(k)) / (l * l)) * (k * t_m)) * k);
                                              	}
                                              	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 (k <= 2.3e-167)
                                              		tmp = Float64(Float64(Float64(Float64(l / k) * Float64(Float64(l / k) / t_m)) / t_m) / t_m);
                                              	elseif (k <= 1.96)
                                              		tmp = Float64(Float64(2.0 / Float64(fma(Float64(Float64(fma(0.3333333333333333, Float64(t_m * t_m), 1.0) / l) * k), k, Float64(Float64(Float64(t_m * t_m) / l) * 2.0)) * Float64(k * k))) / Float64(t_m / l));
                                              	else
                                              		tmp = Float64(2.0 / Float64(Float64(Float64(Float64(tan(k) * sin(k)) / Float64(l * l)) * Float64(k * t_m)) * k));
                                              	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[k, 2.3e-167], N[(N[(N[(N[(l / k), $MachinePrecision] * N[(N[(l / k), $MachinePrecision] / t$95$m), $MachinePrecision]), $MachinePrecision] / t$95$m), $MachinePrecision] / t$95$m), $MachinePrecision], If[LessEqual[k, 1.96], N[(N[(2.0 / N[(N[(N[(N[(N[(0.3333333333333333 * N[(t$95$m * t$95$m), $MachinePrecision] + 1.0), $MachinePrecision] / l), $MachinePrecision] * k), $MachinePrecision] * k + N[(N[(N[(t$95$m * t$95$m), $MachinePrecision] / l), $MachinePrecision] * 2.0), $MachinePrecision]), $MachinePrecision] * N[(k * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(t$95$m / l), $MachinePrecision]), $MachinePrecision], N[(2.0 / N[(N[(N[(N[(N[Tan[k], $MachinePrecision] * N[Sin[k], $MachinePrecision]), $MachinePrecision] / N[(l * l), $MachinePrecision]), $MachinePrecision] * N[(k * t$95$m), $MachinePrecision]), $MachinePrecision] * k), $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}\;k \leq 2.3 \cdot 10^{-167}:\\
                                              \;\;\;\;\frac{\frac{\frac{\ell}{k} \cdot \frac{\frac{\ell}{k}}{t\_m}}{t\_m}}{t\_m}\\
                                              
                                              \mathbf{elif}\;k \leq 1.96:\\
                                              \;\;\;\;\frac{\frac{2}{\mathsf{fma}\left(\frac{\mathsf{fma}\left(0.3333333333333333, t\_m \cdot t\_m, 1\right)}{\ell} \cdot k, k, \frac{t\_m \cdot t\_m}{\ell} \cdot 2\right) \cdot \left(k \cdot k\right)}}{\frac{t\_m}{\ell}}\\
                                              
                                              \mathbf{else}:\\
                                              \;\;\;\;\frac{2}{\left(\frac{\tan k \cdot \sin k}{\ell \cdot \ell} \cdot \left(k \cdot t\_m\right)\right) \cdot k}\\
                                              
                                              
                                              \end{array}
                                              \end{array}
                                              
                                              Derivation
                                              1. Split input into 3 regimes
                                              2. if k < 2.3000000000000001e-167

                                                1. Initial program 55.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. Add Preprocessing
                                                3. Taylor expanded in k around 0

                                                  \[\leadsto \color{blue}{\frac{{\ell}^{2}}{{k}^{2} \cdot {t}^{3}}} \]
                                                4. Step-by-step derivation
                                                  1. unpow2N/A

                                                    \[\leadsto \frac{\color{blue}{\ell \cdot \ell}}{{k}^{2} \cdot {t}^{3}} \]
                                                  2. *-commutativeN/A

                                                    \[\leadsto \frac{\ell \cdot \ell}{\color{blue}{{t}^{3} \cdot {k}^{2}}} \]
                                                  3. times-fracN/A

                                                    \[\leadsto \color{blue}{\frac{\ell}{{t}^{3}} \cdot \frac{\ell}{{k}^{2}}} \]
                                                  4. lower-*.f64N/A

                                                    \[\leadsto \color{blue}{\frac{\ell}{{t}^{3}} \cdot \frac{\ell}{{k}^{2}}} \]
                                                  5. lower-/.f64N/A

                                                    \[\leadsto \color{blue}{\frac{\ell}{{t}^{3}}} \cdot \frac{\ell}{{k}^{2}} \]
                                                  6. lower-pow.f64N/A

                                                    \[\leadsto \frac{\ell}{\color{blue}{{t}^{3}}} \cdot \frac{\ell}{{k}^{2}} \]
                                                  7. lower-/.f64N/A

                                                    \[\leadsto \frac{\ell}{{t}^{3}} \cdot \color{blue}{\frac{\ell}{{k}^{2}}} \]
                                                  8. unpow2N/A

                                                    \[\leadsto \frac{\ell}{{t}^{3}} \cdot \frac{\ell}{\color{blue}{k \cdot k}} \]
                                                  9. lower-*.f6455.5

                                                    \[\leadsto \frac{\ell}{{t}^{3}} \cdot \frac{\ell}{\color{blue}{k \cdot k}} \]
                                                5. Applied rewrites55.5%

                                                  \[\leadsto \color{blue}{\frac{\ell}{{t}^{3}} \cdot \frac{\ell}{k \cdot k}} \]
                                                6. Step-by-step derivation
                                                  1. Applied rewrites57.8%

                                                    \[\leadsto \frac{\ell}{t \cdot t} \cdot \color{blue}{\frac{\ell}{t \cdot \left(k \cdot k\right)}} \]
                                                  2. Step-by-step derivation
                                                    1. Applied rewrites49.6%

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

                                                        \[\leadsto \frac{\frac{\frac{-\ell}{k} \cdot \frac{\frac{\ell}{k}}{t}}{-t}}{\color{blue}{t}} \]

                                                      if 2.3000000000000001e-167 < k < 1.96

                                                      1. Initial program 62.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. Add Preprocessing
                                                      3. Step-by-step derivation
                                                        1. lift-*.f64N/A

                                                          \[\leadsto \frac{2}{\left(\color{blue}{\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. lift-/.f64N/A

                                                          \[\leadsto \frac{2}{\left(\left(\color{blue}{\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)} \]
                                                        3. lift-pow.f64N/A

                                                          \[\leadsto \frac{2}{\left(\left(\frac{\color{blue}{{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)} \]
                                                        4. sqr-powN/A

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

                                                          \[\leadsto \frac{2}{\left(\left(\frac{{t}^{\left(\frac{3}{2}\right)} \cdot {t}^{\left(\frac{3}{2}\right)}}{\color{blue}{\ell \cdot \ell}} \cdot \sin k\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
                                                        6. times-fracN/A

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

                                                          \[\leadsto \frac{2}{\left(\color{blue}{\left(\frac{{t}^{\left(\frac{3}{2}\right)}}{\ell} \cdot \left(\frac{{t}^{\left(\frac{3}{2}\right)}}{\ell} \cdot \sin k\right)\right)} \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
                                                        8. lower-*.f64N/A

                                                          \[\leadsto \frac{2}{\left(\color{blue}{\left(\frac{{t}^{\left(\frac{3}{2}\right)}}{\ell} \cdot \left(\frac{{t}^{\left(\frac{3}{2}\right)}}{\ell} \cdot \sin k\right)\right)} \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
                                                        9. lower-/.f64N/A

                                                          \[\leadsto \frac{2}{\left(\left(\color{blue}{\frac{{t}^{\left(\frac{3}{2}\right)}}{\ell}} \cdot \left(\frac{{t}^{\left(\frac{3}{2}\right)}}{\ell} \cdot \sin k\right)\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
                                                        10. lower-pow.f64N/A

                                                          \[\leadsto \frac{2}{\left(\left(\frac{\color{blue}{{t}^{\left(\frac{3}{2}\right)}}}{\ell} \cdot \left(\frac{{t}^{\left(\frac{3}{2}\right)}}{\ell} \cdot \sin k\right)\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
                                                        11. metadata-evalN/A

                                                          \[\leadsto \frac{2}{\left(\left(\frac{{t}^{\color{blue}{\frac{3}{2}}}}{\ell} \cdot \left(\frac{{t}^{\left(\frac{3}{2}\right)}}{\ell} \cdot \sin k\right)\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
                                                        12. lower-*.f64N/A

                                                          \[\leadsto \frac{2}{\left(\left(\frac{{t}^{\frac{3}{2}}}{\ell} \cdot \color{blue}{\left(\frac{{t}^{\left(\frac{3}{2}\right)}}{\ell} \cdot \sin k\right)}\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
                                                        13. lower-/.f64N/A

                                                          \[\leadsto \frac{2}{\left(\left(\frac{{t}^{\frac{3}{2}}}{\ell} \cdot \left(\color{blue}{\frac{{t}^{\left(\frac{3}{2}\right)}}{\ell}} \cdot \sin k\right)\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
                                                        14. lower-pow.f64N/A

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

                                                          \[\leadsto \frac{2}{\left(\left(\frac{{t}^{1.5}}{\ell} \cdot \left(\frac{{t}^{\color{blue}{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)} \]
                                                      4. Applied rewrites32.7%

                                                        \[\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. Applied rewrites86.3%

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

                                                        \[\leadsto \frac{\frac{2}{\color{blue}{{k}^{2} \cdot \left(2 \cdot \frac{{t}^{2}}{\ell} + \frac{{k}^{2} \cdot \left({t}^{2} \cdot \left(\frac{1}{3} + \frac{1}{{t}^{2}}\right)\right)}{\ell}\right)}}}{\frac{t}{\ell}} \]
                                                      7. Step-by-step derivation
                                                        1. *-commutativeN/A

                                                          \[\leadsto \frac{\frac{2}{\color{blue}{\left(2 \cdot \frac{{t}^{2}}{\ell} + \frac{{k}^{2} \cdot \left({t}^{2} \cdot \left(\frac{1}{3} + \frac{1}{{t}^{2}}\right)\right)}{\ell}\right) \cdot {k}^{2}}}}{\frac{t}{\ell}} \]
                                                        2. lower-*.f64N/A

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

                                                        \[\leadsto \frac{\frac{2}{\color{blue}{\mathsf{fma}\left(\frac{\mathsf{fma}\left(0.3333333333333333, t \cdot t, 1\right)}{\ell} \cdot k, k, \frac{t \cdot t}{\ell} \cdot 2\right) \cdot \left(k \cdot k\right)}}}{\frac{t}{\ell}} \]

                                                      if 1.96 < k

                                                      1. Initial program 32.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. lift-*.f64N/A

                                                          \[\leadsto \frac{2}{\left(\color{blue}{\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. lift-/.f64N/A

                                                          \[\leadsto \frac{2}{\left(\left(\color{blue}{\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)} \]
                                                        3. lift-pow.f64N/A

                                                          \[\leadsto \frac{2}{\left(\left(\frac{\color{blue}{{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)} \]
                                                        4. sqr-powN/A

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

                                                          \[\leadsto \frac{2}{\left(\left(\frac{{t}^{\left(\frac{3}{2}\right)} \cdot {t}^{\left(\frac{3}{2}\right)}}{\color{blue}{\ell \cdot \ell}} \cdot \sin k\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
                                                        6. times-fracN/A

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

                                                          \[\leadsto \frac{2}{\left(\color{blue}{\left(\frac{{t}^{\left(\frac{3}{2}\right)}}{\ell} \cdot \left(\frac{{t}^{\left(\frac{3}{2}\right)}}{\ell} \cdot \sin k\right)\right)} \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
                                                        8. lower-*.f64N/A

                                                          \[\leadsto \frac{2}{\left(\color{blue}{\left(\frac{{t}^{\left(\frac{3}{2}\right)}}{\ell} \cdot \left(\frac{{t}^{\left(\frac{3}{2}\right)}}{\ell} \cdot \sin k\right)\right)} \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
                                                        9. lower-/.f64N/A

                                                          \[\leadsto \frac{2}{\left(\left(\color{blue}{\frac{{t}^{\left(\frac{3}{2}\right)}}{\ell}} \cdot \left(\frac{{t}^{\left(\frac{3}{2}\right)}}{\ell} \cdot \sin k\right)\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
                                                        10. lower-pow.f64N/A

                                                          \[\leadsto \frac{2}{\left(\left(\frac{\color{blue}{{t}^{\left(\frac{3}{2}\right)}}}{\ell} \cdot \left(\frac{{t}^{\left(\frac{3}{2}\right)}}{\ell} \cdot \sin k\right)\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
                                                        11. metadata-evalN/A

                                                          \[\leadsto \frac{2}{\left(\left(\frac{{t}^{\color{blue}{\frac{3}{2}}}}{\ell} \cdot \left(\frac{{t}^{\left(\frac{3}{2}\right)}}{\ell} \cdot \sin k\right)\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
                                                        12. lower-*.f64N/A

                                                          \[\leadsto \frac{2}{\left(\left(\frac{{t}^{\frac{3}{2}}}{\ell} \cdot \color{blue}{\left(\frac{{t}^{\left(\frac{3}{2}\right)}}{\ell} \cdot \sin k\right)}\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
                                                        13. lower-/.f64N/A

                                                          \[\leadsto \frac{2}{\left(\left(\frac{{t}^{\frac{3}{2}}}{\ell} \cdot \left(\color{blue}{\frac{{t}^{\left(\frac{3}{2}\right)}}{\ell}} \cdot \sin k\right)\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
                                                        14. lower-pow.f64N/A

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

                                                          \[\leadsto \frac{2}{\left(\left(\frac{{t}^{1.5}}{\ell} \cdot \left(\frac{{t}^{\color{blue}{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)} \]
                                                      4. Applied rewrites31.5%

                                                        \[\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. Taylor expanded in t around 0

                                                        \[\leadsto \frac{2}{\color{blue}{\frac{{k}^{2} \cdot \left(t \cdot {\sin k}^{2}\right)}{{\ell}^{2} \cdot \cos k}}} \]
                                                      6. Step-by-step derivation
                                                        1. *-commutativeN/A

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

                                                          \[\leadsto \frac{2}{\frac{\color{blue}{t \cdot \left({\sin k}^{2} \cdot {k}^{2}\right)}}{{\ell}^{2} \cdot \cos k}} \]
                                                        3. *-commutativeN/A

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

                                                          \[\leadsto \frac{2}{\color{blue}{t \cdot \frac{{k}^{2} \cdot {\sin k}^{2}}{{\ell}^{2} \cdot \cos k}}} \]
                                                        5. associate-/l*N/A

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

                                                          \[\leadsto \frac{2}{\color{blue}{\left(t \cdot {k}^{2}\right) \cdot \frac{{\sin k}^{2}}{{\ell}^{2} \cdot \cos k}}} \]
                                                        7. lower-*.f64N/A

                                                          \[\leadsto \frac{2}{\color{blue}{\left(t \cdot {k}^{2}\right) \cdot \frac{{\sin k}^{2}}{{\ell}^{2} \cdot \cos k}}} \]
                                                        8. lower-*.f64N/A

                                                          \[\leadsto \frac{2}{\color{blue}{\left(t \cdot {k}^{2}\right)} \cdot \frac{{\sin k}^{2}}{{\ell}^{2} \cdot \cos k}} \]
                                                        9. unpow2N/A

                                                          \[\leadsto \frac{2}{\left(t \cdot \color{blue}{\left(k \cdot k\right)}\right) \cdot \frac{{\sin k}^{2}}{{\ell}^{2} \cdot \cos k}} \]
                                                        10. lower-*.f64N/A

                                                          \[\leadsto \frac{2}{\left(t \cdot \color{blue}{\left(k \cdot k\right)}\right) \cdot \frac{{\sin k}^{2}}{{\ell}^{2} \cdot \cos k}} \]
                                                        11. lower-/.f64N/A

                                                          \[\leadsto \frac{2}{\left(t \cdot \left(k \cdot k\right)\right) \cdot \color{blue}{\frac{{\sin k}^{2}}{{\ell}^{2} \cdot \cos k}}} \]
                                                        12. lower-pow.f64N/A

                                                          \[\leadsto \frac{2}{\left(t \cdot \left(k \cdot k\right)\right) \cdot \frac{\color{blue}{{\sin k}^{2}}}{{\ell}^{2} \cdot \cos k}} \]
                                                        13. lower-sin.f64N/A

                                                          \[\leadsto \frac{2}{\left(t \cdot \left(k \cdot k\right)\right) \cdot \frac{{\color{blue}{\sin k}}^{2}}{{\ell}^{2} \cdot \cos k}} \]
                                                        14. *-commutativeN/A

                                                          \[\leadsto \frac{2}{\left(t \cdot \left(k \cdot k\right)\right) \cdot \frac{{\sin k}^{2}}{\color{blue}{\cos k \cdot {\ell}^{2}}}} \]
                                                        15. unpow2N/A

                                                          \[\leadsto \frac{2}{\left(t \cdot \left(k \cdot k\right)\right) \cdot \frac{{\sin k}^{2}}{\cos k \cdot \color{blue}{\left(\ell \cdot \ell\right)}}} \]
                                                        16. associate-*r*N/A

                                                          \[\leadsto \frac{2}{\left(t \cdot \left(k \cdot k\right)\right) \cdot \frac{{\sin k}^{2}}{\color{blue}{\left(\cos k \cdot \ell\right) \cdot \ell}}} \]
                                                        17. *-commutativeN/A

                                                          \[\leadsto \frac{2}{\left(t \cdot \left(k \cdot k\right)\right) \cdot \frac{{\sin k}^{2}}{\color{blue}{\left(\ell \cdot \cos k\right)} \cdot \ell}} \]
                                                        18. lower-*.f64N/A

                                                          \[\leadsto \frac{2}{\left(t \cdot \left(k \cdot k\right)\right) \cdot \frac{{\sin k}^{2}}{\color{blue}{\left(\ell \cdot \cos k\right) \cdot \ell}}} \]
                                                        19. *-commutativeN/A

                                                          \[\leadsto \frac{2}{\left(t \cdot \left(k \cdot k\right)\right) \cdot \frac{{\sin k}^{2}}{\color{blue}{\left(\cos k \cdot \ell\right)} \cdot \ell}} \]
                                                        20. lower-*.f64N/A

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

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

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

                                                          \[\leadsto \frac{2}{\left(\frac{\tan k \cdot \sin k}{\ell \cdot \ell} \cdot \left(k \cdot t\right)\right) \cdot \color{blue}{k}} \]
                                                      9. Recombined 3 regimes into one program.
                                                      10. Final simplification75.6%

                                                        \[\leadsto \begin{array}{l} \mathbf{if}\;k \leq 2.3 \cdot 10^{-167}:\\ \;\;\;\;\frac{\frac{\frac{\ell}{k} \cdot \frac{\frac{\ell}{k}}{t}}{t}}{t}\\ \mathbf{elif}\;k \leq 1.96:\\ \;\;\;\;\frac{\frac{2}{\mathsf{fma}\left(\frac{\mathsf{fma}\left(0.3333333333333333, t \cdot t, 1\right)}{\ell} \cdot k, k, \frac{t \cdot t}{\ell} \cdot 2\right) \cdot \left(k \cdot k\right)}}{\frac{t}{\ell}}\\ \mathbf{else}:\\ \;\;\;\;\frac{2}{\left(\frac{\tan k \cdot \sin k}{\ell \cdot \ell} \cdot \left(k \cdot t\right)\right) \cdot k}\\ \end{array} \]
                                                      11. Add Preprocessing

                                                      Alternative 9: 77.1% accurate, 1.8× 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}\;k \leq 2.3 \cdot 10^{-167}:\\ \;\;\;\;\frac{\frac{\frac{\ell}{k} \cdot \frac{\frac{\ell}{k}}{t\_m}}{t\_m}}{t\_m}\\ \mathbf{elif}\;k \leq 1.96:\\ \;\;\;\;\frac{\frac{2}{\mathsf{fma}\left(\frac{\mathsf{fma}\left(0.3333333333333333, t\_m \cdot t\_m, 1\right)}{\ell} \cdot k, k, \frac{t\_m \cdot t\_m}{\ell} \cdot 2\right) \cdot \left(k \cdot k\right)}}{\frac{t\_m}{\ell}}\\ \mathbf{else}:\\ \;\;\;\;\frac{2}{\left(\frac{\tan k \cdot \sin k}{\ell \cdot \ell} \cdot k\right) \cdot \left(k \cdot t\_m\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 (<= k 2.3e-167)
                                                          (/ (/ (* (/ l k) (/ (/ l k) t_m)) t_m) t_m)
                                                          (if (<= k 1.96)
                                                            (/
                                                             (/
                                                              2.0
                                                              (*
                                                               (fma
                                                                (* (/ (fma 0.3333333333333333 (* t_m t_m) 1.0) l) k)
                                                                k
                                                                (* (/ (* t_m t_m) l) 2.0))
                                                               (* k k)))
                                                             (/ t_m l))
                                                            (/ 2.0 (* (* (/ (* (tan k) (sin k)) (* l l)) k) (* k t_m)))))))
                                                      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 (k <= 2.3e-167) {
                                                      		tmp = (((l / k) * ((l / k) / t_m)) / t_m) / t_m;
                                                      	} else if (k <= 1.96) {
                                                      		tmp = (2.0 / (fma(((fma(0.3333333333333333, (t_m * t_m), 1.0) / l) * k), k, (((t_m * t_m) / l) * 2.0)) * (k * k))) / (t_m / l);
                                                      	} else {
                                                      		tmp = 2.0 / ((((tan(k) * sin(k)) / (l * l)) * k) * (k * t_m));
                                                      	}
                                                      	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 (k <= 2.3e-167)
                                                      		tmp = Float64(Float64(Float64(Float64(l / k) * Float64(Float64(l / k) / t_m)) / t_m) / t_m);
                                                      	elseif (k <= 1.96)
                                                      		tmp = Float64(Float64(2.0 / Float64(fma(Float64(Float64(fma(0.3333333333333333, Float64(t_m * t_m), 1.0) / l) * k), k, Float64(Float64(Float64(t_m * t_m) / l) * 2.0)) * Float64(k * k))) / Float64(t_m / l));
                                                      	else
                                                      		tmp = Float64(2.0 / Float64(Float64(Float64(Float64(tan(k) * sin(k)) / Float64(l * l)) * k) * Float64(k * t_m)));
                                                      	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[k, 2.3e-167], N[(N[(N[(N[(l / k), $MachinePrecision] * N[(N[(l / k), $MachinePrecision] / t$95$m), $MachinePrecision]), $MachinePrecision] / t$95$m), $MachinePrecision] / t$95$m), $MachinePrecision], If[LessEqual[k, 1.96], N[(N[(2.0 / N[(N[(N[(N[(N[(0.3333333333333333 * N[(t$95$m * t$95$m), $MachinePrecision] + 1.0), $MachinePrecision] / l), $MachinePrecision] * k), $MachinePrecision] * k + N[(N[(N[(t$95$m * t$95$m), $MachinePrecision] / l), $MachinePrecision] * 2.0), $MachinePrecision]), $MachinePrecision] * N[(k * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(t$95$m / l), $MachinePrecision]), $MachinePrecision], N[(2.0 / N[(N[(N[(N[(N[Tan[k], $MachinePrecision] * N[Sin[k], $MachinePrecision]), $MachinePrecision] / N[(l * l), $MachinePrecision]), $MachinePrecision] * k), $MachinePrecision] * N[(k * t$95$m), $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}\;k \leq 2.3 \cdot 10^{-167}:\\
                                                      \;\;\;\;\frac{\frac{\frac{\ell}{k} \cdot \frac{\frac{\ell}{k}}{t\_m}}{t\_m}}{t\_m}\\
                                                      
                                                      \mathbf{elif}\;k \leq 1.96:\\
                                                      \;\;\;\;\frac{\frac{2}{\mathsf{fma}\left(\frac{\mathsf{fma}\left(0.3333333333333333, t\_m \cdot t\_m, 1\right)}{\ell} \cdot k, k, \frac{t\_m \cdot t\_m}{\ell} \cdot 2\right) \cdot \left(k \cdot k\right)}}{\frac{t\_m}{\ell}}\\
                                                      
                                                      \mathbf{else}:\\
                                                      \;\;\;\;\frac{2}{\left(\frac{\tan k \cdot \sin k}{\ell \cdot \ell} \cdot k\right) \cdot \left(k \cdot t\_m\right)}\\
                                                      
                                                      
                                                      \end{array}
                                                      \end{array}
                                                      
                                                      Derivation
                                                      1. Split input into 3 regimes
                                                      2. if k < 2.3000000000000001e-167

                                                        1. Initial program 55.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. Add Preprocessing
                                                        3. Taylor expanded in k around 0

                                                          \[\leadsto \color{blue}{\frac{{\ell}^{2}}{{k}^{2} \cdot {t}^{3}}} \]
                                                        4. Step-by-step derivation
                                                          1. unpow2N/A

                                                            \[\leadsto \frac{\color{blue}{\ell \cdot \ell}}{{k}^{2} \cdot {t}^{3}} \]
                                                          2. *-commutativeN/A

                                                            \[\leadsto \frac{\ell \cdot \ell}{\color{blue}{{t}^{3} \cdot {k}^{2}}} \]
                                                          3. times-fracN/A

                                                            \[\leadsto \color{blue}{\frac{\ell}{{t}^{3}} \cdot \frac{\ell}{{k}^{2}}} \]
                                                          4. lower-*.f64N/A

                                                            \[\leadsto \color{blue}{\frac{\ell}{{t}^{3}} \cdot \frac{\ell}{{k}^{2}}} \]
                                                          5. lower-/.f64N/A

                                                            \[\leadsto \color{blue}{\frac{\ell}{{t}^{3}}} \cdot \frac{\ell}{{k}^{2}} \]
                                                          6. lower-pow.f64N/A

                                                            \[\leadsto \frac{\ell}{\color{blue}{{t}^{3}}} \cdot \frac{\ell}{{k}^{2}} \]
                                                          7. lower-/.f64N/A

                                                            \[\leadsto \frac{\ell}{{t}^{3}} \cdot \color{blue}{\frac{\ell}{{k}^{2}}} \]
                                                          8. unpow2N/A

                                                            \[\leadsto \frac{\ell}{{t}^{3}} \cdot \frac{\ell}{\color{blue}{k \cdot k}} \]
                                                          9. lower-*.f6455.5

                                                            \[\leadsto \frac{\ell}{{t}^{3}} \cdot \frac{\ell}{\color{blue}{k \cdot k}} \]
                                                        5. Applied rewrites55.5%

                                                          \[\leadsto \color{blue}{\frac{\ell}{{t}^{3}} \cdot \frac{\ell}{k \cdot k}} \]
                                                        6. Step-by-step derivation
                                                          1. Applied rewrites57.8%

                                                            \[\leadsto \frac{\ell}{t \cdot t} \cdot \color{blue}{\frac{\ell}{t \cdot \left(k \cdot k\right)}} \]
                                                          2. Step-by-step derivation
                                                            1. Applied rewrites49.6%

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

                                                                \[\leadsto \frac{\frac{\frac{-\ell}{k} \cdot \frac{\frac{\ell}{k}}{t}}{-t}}{\color{blue}{t}} \]

                                                              if 2.3000000000000001e-167 < k < 1.96

                                                              1. Initial program 62.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. Add Preprocessing
                                                              3. Step-by-step derivation
                                                                1. lift-*.f64N/A

                                                                  \[\leadsto \frac{2}{\left(\color{blue}{\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. lift-/.f64N/A

                                                                  \[\leadsto \frac{2}{\left(\left(\color{blue}{\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)} \]
                                                                3. lift-pow.f64N/A

                                                                  \[\leadsto \frac{2}{\left(\left(\frac{\color{blue}{{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)} \]
                                                                4. sqr-powN/A

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

                                                                  \[\leadsto \frac{2}{\left(\left(\frac{{t}^{\left(\frac{3}{2}\right)} \cdot {t}^{\left(\frac{3}{2}\right)}}{\color{blue}{\ell \cdot \ell}} \cdot \sin k\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
                                                                6. times-fracN/A

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

                                                                  \[\leadsto \frac{2}{\left(\color{blue}{\left(\frac{{t}^{\left(\frac{3}{2}\right)}}{\ell} \cdot \left(\frac{{t}^{\left(\frac{3}{2}\right)}}{\ell} \cdot \sin k\right)\right)} \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
                                                                8. lower-*.f64N/A

                                                                  \[\leadsto \frac{2}{\left(\color{blue}{\left(\frac{{t}^{\left(\frac{3}{2}\right)}}{\ell} \cdot \left(\frac{{t}^{\left(\frac{3}{2}\right)}}{\ell} \cdot \sin k\right)\right)} \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
                                                                9. lower-/.f64N/A

                                                                  \[\leadsto \frac{2}{\left(\left(\color{blue}{\frac{{t}^{\left(\frac{3}{2}\right)}}{\ell}} \cdot \left(\frac{{t}^{\left(\frac{3}{2}\right)}}{\ell} \cdot \sin k\right)\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
                                                                10. lower-pow.f64N/A

                                                                  \[\leadsto \frac{2}{\left(\left(\frac{\color{blue}{{t}^{\left(\frac{3}{2}\right)}}}{\ell} \cdot \left(\frac{{t}^{\left(\frac{3}{2}\right)}}{\ell} \cdot \sin k\right)\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
                                                                11. metadata-evalN/A

                                                                  \[\leadsto \frac{2}{\left(\left(\frac{{t}^{\color{blue}{\frac{3}{2}}}}{\ell} \cdot \left(\frac{{t}^{\left(\frac{3}{2}\right)}}{\ell} \cdot \sin k\right)\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
                                                                12. lower-*.f64N/A

                                                                  \[\leadsto \frac{2}{\left(\left(\frac{{t}^{\frac{3}{2}}}{\ell} \cdot \color{blue}{\left(\frac{{t}^{\left(\frac{3}{2}\right)}}{\ell} \cdot \sin k\right)}\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
                                                                13. lower-/.f64N/A

                                                                  \[\leadsto \frac{2}{\left(\left(\frac{{t}^{\frac{3}{2}}}{\ell} \cdot \left(\color{blue}{\frac{{t}^{\left(\frac{3}{2}\right)}}{\ell}} \cdot \sin k\right)\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
                                                                14. lower-pow.f64N/A

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

                                                                  \[\leadsto \frac{2}{\left(\left(\frac{{t}^{1.5}}{\ell} \cdot \left(\frac{{t}^{\color{blue}{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)} \]
                                                              4. Applied rewrites32.7%

                                                                \[\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. Applied rewrites86.3%

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

                                                                \[\leadsto \frac{\frac{2}{\color{blue}{{k}^{2} \cdot \left(2 \cdot \frac{{t}^{2}}{\ell} + \frac{{k}^{2} \cdot \left({t}^{2} \cdot \left(\frac{1}{3} + \frac{1}{{t}^{2}}\right)\right)}{\ell}\right)}}}{\frac{t}{\ell}} \]
                                                              7. Step-by-step derivation
                                                                1. *-commutativeN/A

                                                                  \[\leadsto \frac{\frac{2}{\color{blue}{\left(2 \cdot \frac{{t}^{2}}{\ell} + \frac{{k}^{2} \cdot \left({t}^{2} \cdot \left(\frac{1}{3} + \frac{1}{{t}^{2}}\right)\right)}{\ell}\right) \cdot {k}^{2}}}}{\frac{t}{\ell}} \]
                                                                2. lower-*.f64N/A

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

                                                                \[\leadsto \frac{\frac{2}{\color{blue}{\mathsf{fma}\left(\frac{\mathsf{fma}\left(0.3333333333333333, t \cdot t, 1\right)}{\ell} \cdot k, k, \frac{t \cdot t}{\ell} \cdot 2\right) \cdot \left(k \cdot k\right)}}}{\frac{t}{\ell}} \]

                                                              if 1.96 < k

                                                              1. Initial program 32.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. lift-*.f64N/A

                                                                  \[\leadsto \frac{2}{\left(\color{blue}{\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. lift-/.f64N/A

                                                                  \[\leadsto \frac{2}{\left(\left(\color{blue}{\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)} \]
                                                                3. lift-pow.f64N/A

                                                                  \[\leadsto \frac{2}{\left(\left(\frac{\color{blue}{{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)} \]
                                                                4. sqr-powN/A

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

                                                                  \[\leadsto \frac{2}{\left(\left(\frac{{t}^{\left(\frac{3}{2}\right)} \cdot {t}^{\left(\frac{3}{2}\right)}}{\color{blue}{\ell \cdot \ell}} \cdot \sin k\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
                                                                6. times-fracN/A

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

                                                                  \[\leadsto \frac{2}{\left(\color{blue}{\left(\frac{{t}^{\left(\frac{3}{2}\right)}}{\ell} \cdot \left(\frac{{t}^{\left(\frac{3}{2}\right)}}{\ell} \cdot \sin k\right)\right)} \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
                                                                8. lower-*.f64N/A

                                                                  \[\leadsto \frac{2}{\left(\color{blue}{\left(\frac{{t}^{\left(\frac{3}{2}\right)}}{\ell} \cdot \left(\frac{{t}^{\left(\frac{3}{2}\right)}}{\ell} \cdot \sin k\right)\right)} \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
                                                                9. lower-/.f64N/A

                                                                  \[\leadsto \frac{2}{\left(\left(\color{blue}{\frac{{t}^{\left(\frac{3}{2}\right)}}{\ell}} \cdot \left(\frac{{t}^{\left(\frac{3}{2}\right)}}{\ell} \cdot \sin k\right)\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
                                                                10. lower-pow.f64N/A

                                                                  \[\leadsto \frac{2}{\left(\left(\frac{\color{blue}{{t}^{\left(\frac{3}{2}\right)}}}{\ell} \cdot \left(\frac{{t}^{\left(\frac{3}{2}\right)}}{\ell} \cdot \sin k\right)\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
                                                                11. metadata-evalN/A

                                                                  \[\leadsto \frac{2}{\left(\left(\frac{{t}^{\color{blue}{\frac{3}{2}}}}{\ell} \cdot \left(\frac{{t}^{\left(\frac{3}{2}\right)}}{\ell} \cdot \sin k\right)\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
                                                                12. lower-*.f64N/A

                                                                  \[\leadsto \frac{2}{\left(\left(\frac{{t}^{\frac{3}{2}}}{\ell} \cdot \color{blue}{\left(\frac{{t}^{\left(\frac{3}{2}\right)}}{\ell} \cdot \sin k\right)}\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
                                                                13. lower-/.f64N/A

                                                                  \[\leadsto \frac{2}{\left(\left(\frac{{t}^{\frac{3}{2}}}{\ell} \cdot \left(\color{blue}{\frac{{t}^{\left(\frac{3}{2}\right)}}{\ell}} \cdot \sin k\right)\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
                                                                14. lower-pow.f64N/A

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

                                                                  \[\leadsto \frac{2}{\left(\left(\frac{{t}^{1.5}}{\ell} \cdot \left(\frac{{t}^{\color{blue}{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)} \]
                                                              4. Applied rewrites31.5%

                                                                \[\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. Taylor expanded in t around 0

                                                                \[\leadsto \frac{2}{\color{blue}{\frac{{k}^{2} \cdot \left(t \cdot {\sin k}^{2}\right)}{{\ell}^{2} \cdot \cos k}}} \]
                                                              6. Step-by-step derivation
                                                                1. *-commutativeN/A

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

                                                                  \[\leadsto \frac{2}{\frac{\color{blue}{t \cdot \left({\sin k}^{2} \cdot {k}^{2}\right)}}{{\ell}^{2} \cdot \cos k}} \]
                                                                3. *-commutativeN/A

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

                                                                  \[\leadsto \frac{2}{\color{blue}{t \cdot \frac{{k}^{2} \cdot {\sin k}^{2}}{{\ell}^{2} \cdot \cos k}}} \]
                                                                5. associate-/l*N/A

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

                                                                  \[\leadsto \frac{2}{\color{blue}{\left(t \cdot {k}^{2}\right) \cdot \frac{{\sin k}^{2}}{{\ell}^{2} \cdot \cos k}}} \]
                                                                7. lower-*.f64N/A

                                                                  \[\leadsto \frac{2}{\color{blue}{\left(t \cdot {k}^{2}\right) \cdot \frac{{\sin k}^{2}}{{\ell}^{2} \cdot \cos k}}} \]
                                                                8. lower-*.f64N/A

                                                                  \[\leadsto \frac{2}{\color{blue}{\left(t \cdot {k}^{2}\right)} \cdot \frac{{\sin k}^{2}}{{\ell}^{2} \cdot \cos k}} \]
                                                                9. unpow2N/A

                                                                  \[\leadsto \frac{2}{\left(t \cdot \color{blue}{\left(k \cdot k\right)}\right) \cdot \frac{{\sin k}^{2}}{{\ell}^{2} \cdot \cos k}} \]
                                                                10. lower-*.f64N/A

                                                                  \[\leadsto \frac{2}{\left(t \cdot \color{blue}{\left(k \cdot k\right)}\right) \cdot \frac{{\sin k}^{2}}{{\ell}^{2} \cdot \cos k}} \]
                                                                11. lower-/.f64N/A

                                                                  \[\leadsto \frac{2}{\left(t \cdot \left(k \cdot k\right)\right) \cdot \color{blue}{\frac{{\sin k}^{2}}{{\ell}^{2} \cdot \cos k}}} \]
                                                                12. lower-pow.f64N/A

                                                                  \[\leadsto \frac{2}{\left(t \cdot \left(k \cdot k\right)\right) \cdot \frac{\color{blue}{{\sin k}^{2}}}{{\ell}^{2} \cdot \cos k}} \]
                                                                13. lower-sin.f64N/A

                                                                  \[\leadsto \frac{2}{\left(t \cdot \left(k \cdot k\right)\right) \cdot \frac{{\color{blue}{\sin k}}^{2}}{{\ell}^{2} \cdot \cos k}} \]
                                                                14. *-commutativeN/A

                                                                  \[\leadsto \frac{2}{\left(t \cdot \left(k \cdot k\right)\right) \cdot \frac{{\sin k}^{2}}{\color{blue}{\cos k \cdot {\ell}^{2}}}} \]
                                                                15. unpow2N/A

                                                                  \[\leadsto \frac{2}{\left(t \cdot \left(k \cdot k\right)\right) \cdot \frac{{\sin k}^{2}}{\cos k \cdot \color{blue}{\left(\ell \cdot \ell\right)}}} \]
                                                                16. associate-*r*N/A

                                                                  \[\leadsto \frac{2}{\left(t \cdot \left(k \cdot k\right)\right) \cdot \frac{{\sin k}^{2}}{\color{blue}{\left(\cos k \cdot \ell\right) \cdot \ell}}} \]
                                                                17. *-commutativeN/A

                                                                  \[\leadsto \frac{2}{\left(t \cdot \left(k \cdot k\right)\right) \cdot \frac{{\sin k}^{2}}{\color{blue}{\left(\ell \cdot \cos k\right)} \cdot \ell}} \]
                                                                18. lower-*.f64N/A

                                                                  \[\leadsto \frac{2}{\left(t \cdot \left(k \cdot k\right)\right) \cdot \frac{{\sin k}^{2}}{\color{blue}{\left(\ell \cdot \cos k\right) \cdot \ell}}} \]
                                                                19. *-commutativeN/A

                                                                  \[\leadsto \frac{2}{\left(t \cdot \left(k \cdot k\right)\right) \cdot \frac{{\sin k}^{2}}{\color{blue}{\left(\cos k \cdot \ell\right)} \cdot \ell}} \]
                                                                20. lower-*.f64N/A

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

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

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

                                                                  \[\leadsto \frac{2}{\left(\frac{\tan k \cdot \sin k}{\ell \cdot \ell} \cdot k\right) \cdot \color{blue}{\left(k \cdot t\right)}} \]
                                                              9. Recombined 3 regimes into one program.
                                                              10. Final simplification75.7%

                                                                \[\leadsto \begin{array}{l} \mathbf{if}\;k \leq 2.3 \cdot 10^{-167}:\\ \;\;\;\;\frac{\frac{\frac{\ell}{k} \cdot \frac{\frac{\ell}{k}}{t}}{t}}{t}\\ \mathbf{elif}\;k \leq 1.96:\\ \;\;\;\;\frac{\frac{2}{\mathsf{fma}\left(\frac{\mathsf{fma}\left(0.3333333333333333, t \cdot t, 1\right)}{\ell} \cdot k, k, \frac{t \cdot t}{\ell} \cdot 2\right) \cdot \left(k \cdot k\right)}}{\frac{t}{\ell}}\\ \mathbf{else}:\\ \;\;\;\;\frac{2}{\left(\frac{\tan k \cdot \sin k}{\ell \cdot \ell} \cdot k\right) \cdot \left(k \cdot t\right)}\\ \end{array} \]
                                                              11. Add Preprocessing

                                                              Alternative 10: 75.1% accurate, 1.8× 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}\;k \leq 2.3 \cdot 10^{-167}:\\ \;\;\;\;\frac{\frac{\frac{\ell}{k} \cdot \frac{\frac{\ell}{k}}{t\_m}}{t\_m}}{t\_m}\\ \mathbf{elif}\;k \leq 1.96:\\ \;\;\;\;\frac{\frac{2}{\mathsf{fma}\left(\frac{\mathsf{fma}\left(0.3333333333333333, t\_m \cdot t\_m, 1\right)}{\ell} \cdot k, k, \frac{t\_m \cdot t\_m}{\ell} \cdot 2\right) \cdot \left(k \cdot k\right)}}{\frac{t\_m}{\ell}}\\ \mathbf{else}:\\ \;\;\;\;\frac{2}{\left(t\_m \cdot \left(k \cdot k\right)\right) \cdot \left(\tan k \cdot \frac{\sin k}{\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 (<= k 2.3e-167)
                                                                  (/ (/ (* (/ l k) (/ (/ l k) t_m)) t_m) t_m)
                                                                  (if (<= k 1.96)
                                                                    (/
                                                                     (/
                                                                      2.0
                                                                      (*
                                                                       (fma
                                                                        (* (/ (fma 0.3333333333333333 (* t_m t_m) 1.0) l) k)
                                                                        k
                                                                        (* (/ (* t_m t_m) l) 2.0))
                                                                       (* k k)))
                                                                     (/ t_m l))
                                                                    (/ 2.0 (* (* t_m (* k k)) (* (tan k) (/ (sin k) (* 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 (k <= 2.3e-167) {
                                                              		tmp = (((l / k) * ((l / k) / t_m)) / t_m) / t_m;
                                                              	} else if (k <= 1.96) {
                                                              		tmp = (2.0 / (fma(((fma(0.3333333333333333, (t_m * t_m), 1.0) / l) * k), k, (((t_m * t_m) / l) * 2.0)) * (k * k))) / (t_m / l);
                                                              	} else {
                                                              		tmp = 2.0 / ((t_m * (k * k)) * (tan(k) * (sin(k) / (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 (k <= 2.3e-167)
                                                              		tmp = Float64(Float64(Float64(Float64(l / k) * Float64(Float64(l / k) / t_m)) / t_m) / t_m);
                                                              	elseif (k <= 1.96)
                                                              		tmp = Float64(Float64(2.0 / Float64(fma(Float64(Float64(fma(0.3333333333333333, Float64(t_m * t_m), 1.0) / l) * k), k, Float64(Float64(Float64(t_m * t_m) / l) * 2.0)) * Float64(k * k))) / Float64(t_m / l));
                                                              	else
                                                              		tmp = Float64(2.0 / Float64(Float64(t_m * Float64(k * k)) * Float64(tan(k) * Float64(sin(k) / 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[k, 2.3e-167], N[(N[(N[(N[(l / k), $MachinePrecision] * N[(N[(l / k), $MachinePrecision] / t$95$m), $MachinePrecision]), $MachinePrecision] / t$95$m), $MachinePrecision] / t$95$m), $MachinePrecision], If[LessEqual[k, 1.96], N[(N[(2.0 / N[(N[(N[(N[(N[(0.3333333333333333 * N[(t$95$m * t$95$m), $MachinePrecision] + 1.0), $MachinePrecision] / l), $MachinePrecision] * k), $MachinePrecision] * k + N[(N[(N[(t$95$m * t$95$m), $MachinePrecision] / l), $MachinePrecision] * 2.0), $MachinePrecision]), $MachinePrecision] * N[(k * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(t$95$m / l), $MachinePrecision]), $MachinePrecision], N[(2.0 / N[(N[(t$95$m * N[(k * k), $MachinePrecision]), $MachinePrecision] * N[(N[Tan[k], $MachinePrecision] * N[(N[Sin[k], $MachinePrecision] / N[(l * l), $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 \begin{array}{l}
                                                              \mathbf{if}\;k \leq 2.3 \cdot 10^{-167}:\\
                                                              \;\;\;\;\frac{\frac{\frac{\ell}{k} \cdot \frac{\frac{\ell}{k}}{t\_m}}{t\_m}}{t\_m}\\
                                                              
                                                              \mathbf{elif}\;k \leq 1.96:\\
                                                              \;\;\;\;\frac{\frac{2}{\mathsf{fma}\left(\frac{\mathsf{fma}\left(0.3333333333333333, t\_m \cdot t\_m, 1\right)}{\ell} \cdot k, k, \frac{t\_m \cdot t\_m}{\ell} \cdot 2\right) \cdot \left(k \cdot k\right)}}{\frac{t\_m}{\ell}}\\
                                                              
                                                              \mathbf{else}:\\
                                                              \;\;\;\;\frac{2}{\left(t\_m \cdot \left(k \cdot k\right)\right) \cdot \left(\tan k \cdot \frac{\sin k}{\ell \cdot \ell}\right)}\\
                                                              
                                                              
                                                              \end{array}
                                                              \end{array}
                                                              
                                                              Derivation
                                                              1. Split input into 3 regimes
                                                              2. if k < 2.3000000000000001e-167

                                                                1. Initial program 55.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. Add Preprocessing
                                                                3. Taylor expanded in k around 0

                                                                  \[\leadsto \color{blue}{\frac{{\ell}^{2}}{{k}^{2} \cdot {t}^{3}}} \]
                                                                4. Step-by-step derivation
                                                                  1. unpow2N/A

                                                                    \[\leadsto \frac{\color{blue}{\ell \cdot \ell}}{{k}^{2} \cdot {t}^{3}} \]
                                                                  2. *-commutativeN/A

                                                                    \[\leadsto \frac{\ell \cdot \ell}{\color{blue}{{t}^{3} \cdot {k}^{2}}} \]
                                                                  3. times-fracN/A

                                                                    \[\leadsto \color{blue}{\frac{\ell}{{t}^{3}} \cdot \frac{\ell}{{k}^{2}}} \]
                                                                  4. lower-*.f64N/A

                                                                    \[\leadsto \color{blue}{\frac{\ell}{{t}^{3}} \cdot \frac{\ell}{{k}^{2}}} \]
                                                                  5. lower-/.f64N/A

                                                                    \[\leadsto \color{blue}{\frac{\ell}{{t}^{3}}} \cdot \frac{\ell}{{k}^{2}} \]
                                                                  6. lower-pow.f64N/A

                                                                    \[\leadsto \frac{\ell}{\color{blue}{{t}^{3}}} \cdot \frac{\ell}{{k}^{2}} \]
                                                                  7. lower-/.f64N/A

                                                                    \[\leadsto \frac{\ell}{{t}^{3}} \cdot \color{blue}{\frac{\ell}{{k}^{2}}} \]
                                                                  8. unpow2N/A

                                                                    \[\leadsto \frac{\ell}{{t}^{3}} \cdot \frac{\ell}{\color{blue}{k \cdot k}} \]
                                                                  9. lower-*.f6455.5

                                                                    \[\leadsto \frac{\ell}{{t}^{3}} \cdot \frac{\ell}{\color{blue}{k \cdot k}} \]
                                                                5. Applied rewrites55.5%

                                                                  \[\leadsto \color{blue}{\frac{\ell}{{t}^{3}} \cdot \frac{\ell}{k \cdot k}} \]
                                                                6. Step-by-step derivation
                                                                  1. Applied rewrites57.8%

                                                                    \[\leadsto \frac{\ell}{t \cdot t} \cdot \color{blue}{\frac{\ell}{t \cdot \left(k \cdot k\right)}} \]
                                                                  2. Step-by-step derivation
                                                                    1. Applied rewrites49.6%

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

                                                                        \[\leadsto \frac{\frac{\frac{-\ell}{k} \cdot \frac{\frac{\ell}{k}}{t}}{-t}}{\color{blue}{t}} \]

                                                                      if 2.3000000000000001e-167 < k < 1.96

                                                                      1. Initial program 62.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. Add Preprocessing
                                                                      3. Step-by-step derivation
                                                                        1. lift-*.f64N/A

                                                                          \[\leadsto \frac{2}{\left(\color{blue}{\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. lift-/.f64N/A

                                                                          \[\leadsto \frac{2}{\left(\left(\color{blue}{\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)} \]
                                                                        3. lift-pow.f64N/A

                                                                          \[\leadsto \frac{2}{\left(\left(\frac{\color{blue}{{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)} \]
                                                                        4. sqr-powN/A

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

                                                                          \[\leadsto \frac{2}{\left(\left(\frac{{t}^{\left(\frac{3}{2}\right)} \cdot {t}^{\left(\frac{3}{2}\right)}}{\color{blue}{\ell \cdot \ell}} \cdot \sin k\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
                                                                        6. times-fracN/A

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

                                                                          \[\leadsto \frac{2}{\left(\color{blue}{\left(\frac{{t}^{\left(\frac{3}{2}\right)}}{\ell} \cdot \left(\frac{{t}^{\left(\frac{3}{2}\right)}}{\ell} \cdot \sin k\right)\right)} \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
                                                                        8. lower-*.f64N/A

                                                                          \[\leadsto \frac{2}{\left(\color{blue}{\left(\frac{{t}^{\left(\frac{3}{2}\right)}}{\ell} \cdot \left(\frac{{t}^{\left(\frac{3}{2}\right)}}{\ell} \cdot \sin k\right)\right)} \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
                                                                        9. lower-/.f64N/A

                                                                          \[\leadsto \frac{2}{\left(\left(\color{blue}{\frac{{t}^{\left(\frac{3}{2}\right)}}{\ell}} \cdot \left(\frac{{t}^{\left(\frac{3}{2}\right)}}{\ell} \cdot \sin k\right)\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
                                                                        10. lower-pow.f64N/A

                                                                          \[\leadsto \frac{2}{\left(\left(\frac{\color{blue}{{t}^{\left(\frac{3}{2}\right)}}}{\ell} \cdot \left(\frac{{t}^{\left(\frac{3}{2}\right)}}{\ell} \cdot \sin k\right)\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
                                                                        11. metadata-evalN/A

                                                                          \[\leadsto \frac{2}{\left(\left(\frac{{t}^{\color{blue}{\frac{3}{2}}}}{\ell} \cdot \left(\frac{{t}^{\left(\frac{3}{2}\right)}}{\ell} \cdot \sin k\right)\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
                                                                        12. lower-*.f64N/A

                                                                          \[\leadsto \frac{2}{\left(\left(\frac{{t}^{\frac{3}{2}}}{\ell} \cdot \color{blue}{\left(\frac{{t}^{\left(\frac{3}{2}\right)}}{\ell} \cdot \sin k\right)}\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
                                                                        13. lower-/.f64N/A

                                                                          \[\leadsto \frac{2}{\left(\left(\frac{{t}^{\frac{3}{2}}}{\ell} \cdot \left(\color{blue}{\frac{{t}^{\left(\frac{3}{2}\right)}}{\ell}} \cdot \sin k\right)\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
                                                                        14. lower-pow.f64N/A

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

                                                                          \[\leadsto \frac{2}{\left(\left(\frac{{t}^{1.5}}{\ell} \cdot \left(\frac{{t}^{\color{blue}{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)} \]
                                                                      4. Applied rewrites32.7%

                                                                        \[\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. Applied rewrites86.3%

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

                                                                        \[\leadsto \frac{\frac{2}{\color{blue}{{k}^{2} \cdot \left(2 \cdot \frac{{t}^{2}}{\ell} + \frac{{k}^{2} \cdot \left({t}^{2} \cdot \left(\frac{1}{3} + \frac{1}{{t}^{2}}\right)\right)}{\ell}\right)}}}{\frac{t}{\ell}} \]
                                                                      7. Step-by-step derivation
                                                                        1. *-commutativeN/A

                                                                          \[\leadsto \frac{\frac{2}{\color{blue}{\left(2 \cdot \frac{{t}^{2}}{\ell} + \frac{{k}^{2} \cdot \left({t}^{2} \cdot \left(\frac{1}{3} + \frac{1}{{t}^{2}}\right)\right)}{\ell}\right) \cdot {k}^{2}}}}{\frac{t}{\ell}} \]
                                                                        2. lower-*.f64N/A

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

                                                                        \[\leadsto \frac{\frac{2}{\color{blue}{\mathsf{fma}\left(\frac{\mathsf{fma}\left(0.3333333333333333, t \cdot t, 1\right)}{\ell} \cdot k, k, \frac{t \cdot t}{\ell} \cdot 2\right) \cdot \left(k \cdot k\right)}}}{\frac{t}{\ell}} \]

                                                                      if 1.96 < k

                                                                      1. Initial program 32.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. lift-*.f64N/A

                                                                          \[\leadsto \frac{2}{\left(\color{blue}{\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. lift-/.f64N/A

                                                                          \[\leadsto \frac{2}{\left(\left(\color{blue}{\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)} \]
                                                                        3. lift-pow.f64N/A

                                                                          \[\leadsto \frac{2}{\left(\left(\frac{\color{blue}{{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)} \]
                                                                        4. sqr-powN/A

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

                                                                          \[\leadsto \frac{2}{\left(\left(\frac{{t}^{\left(\frac{3}{2}\right)} \cdot {t}^{\left(\frac{3}{2}\right)}}{\color{blue}{\ell \cdot \ell}} \cdot \sin k\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
                                                                        6. times-fracN/A

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

                                                                          \[\leadsto \frac{2}{\left(\color{blue}{\left(\frac{{t}^{\left(\frac{3}{2}\right)}}{\ell} \cdot \left(\frac{{t}^{\left(\frac{3}{2}\right)}}{\ell} \cdot \sin k\right)\right)} \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
                                                                        8. lower-*.f64N/A

                                                                          \[\leadsto \frac{2}{\left(\color{blue}{\left(\frac{{t}^{\left(\frac{3}{2}\right)}}{\ell} \cdot \left(\frac{{t}^{\left(\frac{3}{2}\right)}}{\ell} \cdot \sin k\right)\right)} \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
                                                                        9. lower-/.f64N/A

                                                                          \[\leadsto \frac{2}{\left(\left(\color{blue}{\frac{{t}^{\left(\frac{3}{2}\right)}}{\ell}} \cdot \left(\frac{{t}^{\left(\frac{3}{2}\right)}}{\ell} \cdot \sin k\right)\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
                                                                        10. lower-pow.f64N/A

                                                                          \[\leadsto \frac{2}{\left(\left(\frac{\color{blue}{{t}^{\left(\frac{3}{2}\right)}}}{\ell} \cdot \left(\frac{{t}^{\left(\frac{3}{2}\right)}}{\ell} \cdot \sin k\right)\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
                                                                        11. metadata-evalN/A

                                                                          \[\leadsto \frac{2}{\left(\left(\frac{{t}^{\color{blue}{\frac{3}{2}}}}{\ell} \cdot \left(\frac{{t}^{\left(\frac{3}{2}\right)}}{\ell} \cdot \sin k\right)\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
                                                                        12. lower-*.f64N/A

                                                                          \[\leadsto \frac{2}{\left(\left(\frac{{t}^{\frac{3}{2}}}{\ell} \cdot \color{blue}{\left(\frac{{t}^{\left(\frac{3}{2}\right)}}{\ell} \cdot \sin k\right)}\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
                                                                        13. lower-/.f64N/A

                                                                          \[\leadsto \frac{2}{\left(\left(\frac{{t}^{\frac{3}{2}}}{\ell} \cdot \left(\color{blue}{\frac{{t}^{\left(\frac{3}{2}\right)}}{\ell}} \cdot \sin k\right)\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
                                                                        14. lower-pow.f64N/A

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

                                                                          \[\leadsto \frac{2}{\left(\left(\frac{{t}^{1.5}}{\ell} \cdot \left(\frac{{t}^{\color{blue}{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)} \]
                                                                      4. Applied rewrites31.5%

                                                                        \[\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. Taylor expanded in t around 0

                                                                        \[\leadsto \frac{2}{\color{blue}{\frac{{k}^{2} \cdot \left(t \cdot {\sin k}^{2}\right)}{{\ell}^{2} \cdot \cos k}}} \]
                                                                      6. Step-by-step derivation
                                                                        1. *-commutativeN/A

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

                                                                          \[\leadsto \frac{2}{\frac{\color{blue}{t \cdot \left({\sin k}^{2} \cdot {k}^{2}\right)}}{{\ell}^{2} \cdot \cos k}} \]
                                                                        3. *-commutativeN/A

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

                                                                          \[\leadsto \frac{2}{\color{blue}{t \cdot \frac{{k}^{2} \cdot {\sin k}^{2}}{{\ell}^{2} \cdot \cos k}}} \]
                                                                        5. associate-/l*N/A

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

                                                                          \[\leadsto \frac{2}{\color{blue}{\left(t \cdot {k}^{2}\right) \cdot \frac{{\sin k}^{2}}{{\ell}^{2} \cdot \cos k}}} \]
                                                                        7. lower-*.f64N/A

                                                                          \[\leadsto \frac{2}{\color{blue}{\left(t \cdot {k}^{2}\right) \cdot \frac{{\sin k}^{2}}{{\ell}^{2} \cdot \cos k}}} \]
                                                                        8. lower-*.f64N/A

                                                                          \[\leadsto \frac{2}{\color{blue}{\left(t \cdot {k}^{2}\right)} \cdot \frac{{\sin k}^{2}}{{\ell}^{2} \cdot \cos k}} \]
                                                                        9. unpow2N/A

                                                                          \[\leadsto \frac{2}{\left(t \cdot \color{blue}{\left(k \cdot k\right)}\right) \cdot \frac{{\sin k}^{2}}{{\ell}^{2} \cdot \cos k}} \]
                                                                        10. lower-*.f64N/A

                                                                          \[\leadsto \frac{2}{\left(t \cdot \color{blue}{\left(k \cdot k\right)}\right) \cdot \frac{{\sin k}^{2}}{{\ell}^{2} \cdot \cos k}} \]
                                                                        11. lower-/.f64N/A

                                                                          \[\leadsto \frac{2}{\left(t \cdot \left(k \cdot k\right)\right) \cdot \color{blue}{\frac{{\sin k}^{2}}{{\ell}^{2} \cdot \cos k}}} \]
                                                                        12. lower-pow.f64N/A

                                                                          \[\leadsto \frac{2}{\left(t \cdot \left(k \cdot k\right)\right) \cdot \frac{\color{blue}{{\sin k}^{2}}}{{\ell}^{2} \cdot \cos k}} \]
                                                                        13. lower-sin.f64N/A

                                                                          \[\leadsto \frac{2}{\left(t \cdot \left(k \cdot k\right)\right) \cdot \frac{{\color{blue}{\sin k}}^{2}}{{\ell}^{2} \cdot \cos k}} \]
                                                                        14. *-commutativeN/A

                                                                          \[\leadsto \frac{2}{\left(t \cdot \left(k \cdot k\right)\right) \cdot \frac{{\sin k}^{2}}{\color{blue}{\cos k \cdot {\ell}^{2}}}} \]
                                                                        15. unpow2N/A

                                                                          \[\leadsto \frac{2}{\left(t \cdot \left(k \cdot k\right)\right) \cdot \frac{{\sin k}^{2}}{\cos k \cdot \color{blue}{\left(\ell \cdot \ell\right)}}} \]
                                                                        16. associate-*r*N/A

                                                                          \[\leadsto \frac{2}{\left(t \cdot \left(k \cdot k\right)\right) \cdot \frac{{\sin k}^{2}}{\color{blue}{\left(\cos k \cdot \ell\right) \cdot \ell}}} \]
                                                                        17. *-commutativeN/A

                                                                          \[\leadsto \frac{2}{\left(t \cdot \left(k \cdot k\right)\right) \cdot \frac{{\sin k}^{2}}{\color{blue}{\left(\ell \cdot \cos k\right)} \cdot \ell}} \]
                                                                        18. lower-*.f64N/A

                                                                          \[\leadsto \frac{2}{\left(t \cdot \left(k \cdot k\right)\right) \cdot \frac{{\sin k}^{2}}{\color{blue}{\left(\ell \cdot \cos k\right) \cdot \ell}}} \]
                                                                        19. *-commutativeN/A

                                                                          \[\leadsto \frac{2}{\left(t \cdot \left(k \cdot k\right)\right) \cdot \frac{{\sin k}^{2}}{\color{blue}{\left(\cos k \cdot \ell\right)} \cdot \ell}} \]
                                                                        20. lower-*.f64N/A

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

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

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

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

                                                                        \[\leadsto \begin{array}{l} \mathbf{if}\;k \leq 2.3 \cdot 10^{-167}:\\ \;\;\;\;\frac{\frac{\frac{\ell}{k} \cdot \frac{\frac{\ell}{k}}{t}}{t}}{t}\\ \mathbf{elif}\;k \leq 1.96:\\ \;\;\;\;\frac{\frac{2}{\mathsf{fma}\left(\frac{\mathsf{fma}\left(0.3333333333333333, t \cdot t, 1\right)}{\ell} \cdot k, k, \frac{t \cdot t}{\ell} \cdot 2\right) \cdot \left(k \cdot k\right)}}{\frac{t}{\ell}}\\ \mathbf{else}:\\ \;\;\;\;\frac{2}{\left(t \cdot \left(k \cdot k\right)\right) \cdot \left(\tan k \cdot \frac{\sin k}{\ell \cdot \ell}\right)}\\ \end{array} \]
                                                                      11. Add Preprocessing

                                                                      Alternative 11: 77.2% accurate, 1.8× speedup?

                                                                      \[\begin{array}{l} t\_m = \left|t\right| \\ t\_s = \mathsf{copysign}\left(1, t\right) \\ \begin{array}{l} t_2 := \frac{\ell}{{t\_m}^{1.5} \cdot k}\\ t\_s \cdot \begin{array}{l} \mathbf{if}\;t\_m \leq 3.9 \cdot 10^{-50}:\\ \;\;\;\;\frac{2}{\frac{t\_m}{\ell} \cdot \left(\mathsf{fma}\left(\frac{\mathsf{fma}\left(0.3333333333333333, t\_m \cdot t\_m, 1\right)}{\ell} \cdot k, k, \left(t\_m \cdot \frac{t\_m}{\ell}\right) \cdot 2\right) \cdot \left(k \cdot k\right)\right)}\\ \mathbf{elif}\;t\_m \leq 3 \cdot 10^{+195}:\\ \;\;\;\;t\_2 \cdot t\_2\\ \mathbf{else}:\\ \;\;\;\;\frac{\ell}{\left(k \cdot t\_m\right) \cdot \left(k \cdot t\_m\right)} \cdot \frac{\ell}{t\_m}\\ \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 (* (pow t_m 1.5) k))))
                                                                         (*
                                                                          t_s
                                                                          (if (<= t_m 3.9e-50)
                                                                            (/
                                                                             2.0
                                                                             (*
                                                                              (/ t_m l)
                                                                              (*
                                                                               (fma
                                                                                (* (/ (fma 0.3333333333333333 (* t_m t_m) 1.0) l) k)
                                                                                k
                                                                                (* (* t_m (/ t_m l)) 2.0))
                                                                               (* k k))))
                                                                            (if (<= t_m 3e+195)
                                                                              (* t_2 t_2)
                                                                              (* (/ l (* (* k t_m) (* k t_m))) (/ l t_m)))))))
                                                                      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 / (pow(t_m, 1.5) * k);
                                                                      	double tmp;
                                                                      	if (t_m <= 3.9e-50) {
                                                                      		tmp = 2.0 / ((t_m / l) * (fma(((fma(0.3333333333333333, (t_m * t_m), 1.0) / l) * k), k, ((t_m * (t_m / l)) * 2.0)) * (k * k)));
                                                                      	} else if (t_m <= 3e+195) {
                                                                      		tmp = t_2 * t_2;
                                                                      	} else {
                                                                      		tmp = (l / ((k * t_m) * (k * t_m))) * (l / t_m);
                                                                      	}
                                                                      	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((t_m ^ 1.5) * k))
                                                                      	tmp = 0.0
                                                                      	if (t_m <= 3.9e-50)
                                                                      		tmp = Float64(2.0 / Float64(Float64(t_m / l) * Float64(fma(Float64(Float64(fma(0.3333333333333333, Float64(t_m * t_m), 1.0) / l) * k), k, Float64(Float64(t_m * Float64(t_m / l)) * 2.0)) * Float64(k * k))));
                                                                      	elseif (t_m <= 3e+195)
                                                                      		tmp = Float64(t_2 * t_2);
                                                                      	else
                                                                      		tmp = Float64(Float64(l / Float64(Float64(k * t_m) * Float64(k * t_m))) * Float64(l / t_m));
                                                                      	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[(N[Power[t$95$m, 1.5], $MachinePrecision] * k), $MachinePrecision]), $MachinePrecision]}, N[(t$95$s * If[LessEqual[t$95$m, 3.9e-50], N[(2.0 / N[(N[(t$95$m / l), $MachinePrecision] * N[(N[(N[(N[(N[(0.3333333333333333 * N[(t$95$m * t$95$m), $MachinePrecision] + 1.0), $MachinePrecision] / l), $MachinePrecision] * k), $MachinePrecision] * k + N[(N[(t$95$m * N[(t$95$m / l), $MachinePrecision]), $MachinePrecision] * 2.0), $MachinePrecision]), $MachinePrecision] * N[(k * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$m, 3e+195], N[(t$95$2 * t$95$2), $MachinePrecision], N[(N[(l / N[(N[(k * t$95$m), $MachinePrecision] * N[(k * t$95$m), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(l / t$95$m), $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{\ell}{{t\_m}^{1.5} \cdot k}\\
                                                                      t\_s \cdot \begin{array}{l}
                                                                      \mathbf{if}\;t\_m \leq 3.9 \cdot 10^{-50}:\\
                                                                      \;\;\;\;\frac{2}{\frac{t\_m}{\ell} \cdot \left(\mathsf{fma}\left(\frac{\mathsf{fma}\left(0.3333333333333333, t\_m \cdot t\_m, 1\right)}{\ell} \cdot k, k, \left(t\_m \cdot \frac{t\_m}{\ell}\right) \cdot 2\right) \cdot \left(k \cdot k\right)\right)}\\
                                                                      
                                                                      \mathbf{elif}\;t\_m \leq 3 \cdot 10^{+195}:\\
                                                                      \;\;\;\;t\_2 \cdot t\_2\\
                                                                      
                                                                      \mathbf{else}:\\
                                                                      \;\;\;\;\frac{\ell}{\left(k \cdot t\_m\right) \cdot \left(k \cdot t\_m\right)} \cdot \frac{\ell}{t\_m}\\
                                                                      
                                                                      
                                                                      \end{array}
                                                                      \end{array}
                                                                      \end{array}
                                                                      
                                                                      Derivation
                                                                      1. Split input into 3 regimes
                                                                      2. if t < 3.90000000000000021e-50

                                                                        1. Initial program 48.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. lift-*.f64N/A

                                                                            \[\leadsto \frac{2}{\color{blue}{\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. lift-*.f64N/A

                                                                            \[\leadsto \frac{2}{\color{blue}{\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)} \]
                                                                          3. associate-*l*N/A

                                                                            \[\leadsto \frac{2}{\color{blue}{\left(\frac{{t}^{3}}{\ell \cdot \ell} \cdot \sin k\right) \cdot \left(\tan k \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)\right)}} \]
                                                                          4. lift-*.f64N/A

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

                                                                            \[\leadsto \frac{2}{\color{blue}{\frac{{t}^{3}}{\ell \cdot \ell} \cdot \left(\sin k \cdot \left(\tan k \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)\right)\right)}} \]
                                                                          6. lift-/.f64N/A

                                                                            \[\leadsto \frac{2}{\color{blue}{\frac{{t}^{3}}{\ell \cdot \ell}} \cdot \left(\sin k \cdot \left(\tan k \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)\right)\right)} \]
                                                                          7. lift-pow.f64N/A

                                                                            \[\leadsto \frac{2}{\frac{\color{blue}{{t}^{3}}}{\ell \cdot \ell} \cdot \left(\sin k \cdot \left(\tan k \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)\right)\right)} \]
                                                                          8. cube-multN/A

                                                                            \[\leadsto \frac{2}{\frac{\color{blue}{t \cdot \left(t \cdot t\right)}}{\ell \cdot \ell} \cdot \left(\sin k \cdot \left(\tan k \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)\right)\right)} \]
                                                                          9. lift-*.f64N/A

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

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

                                                                            \[\leadsto \frac{2}{\color{blue}{\frac{t}{\ell} \cdot \left(\frac{t \cdot t}{\ell} \cdot \left(\sin k \cdot \left(\tan k \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)\right)\right)\right)}} \]
                                                                          12. lower-*.f64N/A

                                                                            \[\leadsto \frac{2}{\color{blue}{\frac{t}{\ell} \cdot \left(\frac{t \cdot t}{\ell} \cdot \left(\sin k \cdot \left(\tan k \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)\right)\right)\right)}} \]
                                                                          13. lower-/.f64N/A

                                                                            \[\leadsto \frac{2}{\color{blue}{\frac{t}{\ell}} \cdot \left(\frac{t \cdot t}{\ell} \cdot \left(\sin k \cdot \left(\tan k \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)\right)\right)\right)} \]
                                                                          14. lower-*.f64N/A

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

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

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

                                                                            \[\leadsto \frac{2}{\frac{t}{\ell} \cdot \color{blue}{\left(\left(2 \cdot \frac{{t}^{2}}{\ell} + \frac{{k}^{2} \cdot \left({t}^{2} \cdot \left(\frac{1}{3} + \frac{1}{{t}^{2}}\right)\right)}{\ell}\right) \cdot {k}^{2}\right)}} \]
                                                                          2. lower-*.f64N/A

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

                                                                          \[\leadsto \frac{2}{\frac{t}{\ell} \cdot \color{blue}{\left(\mathsf{fma}\left(\frac{\mathsf{fma}\left(0.3333333333333333, t \cdot t, 1\right)}{\ell} \cdot k, k, \left(t \cdot \frac{t}{\ell}\right) \cdot 2\right) \cdot \left(k \cdot k\right)\right)}} \]

                                                                        if 3.90000000000000021e-50 < t < 3.0000000000000001e195

                                                                        1. Initial program 64.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. Taylor expanded in k around 0

                                                                          \[\leadsto \color{blue}{\frac{{\ell}^{2}}{{k}^{2} \cdot {t}^{3}}} \]
                                                                        4. Step-by-step derivation
                                                                          1. unpow2N/A

                                                                            \[\leadsto \frac{\color{blue}{\ell \cdot \ell}}{{k}^{2} \cdot {t}^{3}} \]
                                                                          2. *-commutativeN/A

                                                                            \[\leadsto \frac{\ell \cdot \ell}{\color{blue}{{t}^{3} \cdot {k}^{2}}} \]
                                                                          3. times-fracN/A

                                                                            \[\leadsto \color{blue}{\frac{\ell}{{t}^{3}} \cdot \frac{\ell}{{k}^{2}}} \]
                                                                          4. lower-*.f64N/A

                                                                            \[\leadsto \color{blue}{\frac{\ell}{{t}^{3}} \cdot \frac{\ell}{{k}^{2}}} \]
                                                                          5. lower-/.f64N/A

                                                                            \[\leadsto \color{blue}{\frac{\ell}{{t}^{3}}} \cdot \frac{\ell}{{k}^{2}} \]
                                                                          6. lower-pow.f64N/A

                                                                            \[\leadsto \frac{\ell}{\color{blue}{{t}^{3}}} \cdot \frac{\ell}{{k}^{2}} \]
                                                                          7. lower-/.f64N/A

                                                                            \[\leadsto \frac{\ell}{{t}^{3}} \cdot \color{blue}{\frac{\ell}{{k}^{2}}} \]
                                                                          8. unpow2N/A

                                                                            \[\leadsto \frac{\ell}{{t}^{3}} \cdot \frac{\ell}{\color{blue}{k \cdot k}} \]
                                                                          9. lower-*.f6455.6

                                                                            \[\leadsto \frac{\ell}{{t}^{3}} \cdot \frac{\ell}{\color{blue}{k \cdot k}} \]
                                                                        5. Applied rewrites55.6%

                                                                          \[\leadsto \color{blue}{\frac{\ell}{{t}^{3}} \cdot \frac{\ell}{k \cdot k}} \]
                                                                        6. Step-by-step derivation
                                                                          1. Applied rewrites71.7%

                                                                            \[\leadsto \frac{\ell}{{t}^{1.5} \cdot k} \cdot \color{blue}{\frac{\ell}{{t}^{1.5} \cdot k}} \]

                                                                          if 3.0000000000000001e195 < t

                                                                          1. Initial program 46.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. Taylor expanded in k around 0

                                                                            \[\leadsto \color{blue}{\frac{{\ell}^{2}}{{k}^{2} \cdot {t}^{3}}} \]
                                                                          4. Step-by-step derivation
                                                                            1. unpow2N/A

                                                                              \[\leadsto \frac{\color{blue}{\ell \cdot \ell}}{{k}^{2} \cdot {t}^{3}} \]
                                                                            2. *-commutativeN/A

                                                                              \[\leadsto \frac{\ell \cdot \ell}{\color{blue}{{t}^{3} \cdot {k}^{2}}} \]
                                                                            3. times-fracN/A

                                                                              \[\leadsto \color{blue}{\frac{\ell}{{t}^{3}} \cdot \frac{\ell}{{k}^{2}}} \]
                                                                            4. lower-*.f64N/A

                                                                              \[\leadsto \color{blue}{\frac{\ell}{{t}^{3}} \cdot \frac{\ell}{{k}^{2}}} \]
                                                                            5. lower-/.f64N/A

                                                                              \[\leadsto \color{blue}{\frac{\ell}{{t}^{3}}} \cdot \frac{\ell}{{k}^{2}} \]
                                                                            6. lower-pow.f64N/A

                                                                              \[\leadsto \frac{\ell}{\color{blue}{{t}^{3}}} \cdot \frac{\ell}{{k}^{2}} \]
                                                                            7. lower-/.f64N/A

                                                                              \[\leadsto \frac{\ell}{{t}^{3}} \cdot \color{blue}{\frac{\ell}{{k}^{2}}} \]
                                                                            8. unpow2N/A

                                                                              \[\leadsto \frac{\ell}{{t}^{3}} \cdot \frac{\ell}{\color{blue}{k \cdot k}} \]
                                                                            9. lower-*.f6452.6

                                                                              \[\leadsto \frac{\ell}{{t}^{3}} \cdot \frac{\ell}{\color{blue}{k \cdot k}} \]
                                                                          5. Applied rewrites52.6%

                                                                            \[\leadsto \color{blue}{\frac{\ell}{{t}^{3}} \cdot \frac{\ell}{k \cdot k}} \]
                                                                          6. Step-by-step derivation
                                                                            1. Applied rewrites53.0%

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

                                                                                \[\leadsto \frac{\left(-\ell\right) \cdot \ell}{\color{blue}{\left(\left(k \cdot k\right) \cdot t\right) \cdot \left(\left(-t\right) \cdot t\right)}} \]
                                                                              2. Step-by-step derivation
                                                                                1. Applied rewrites89.1%

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

                                                                                \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq 3.9 \cdot 10^{-50}:\\ \;\;\;\;\frac{2}{\frac{t}{\ell} \cdot \left(\mathsf{fma}\left(\frac{\mathsf{fma}\left(0.3333333333333333, t \cdot t, 1\right)}{\ell} \cdot k, k, \left(t \cdot \frac{t}{\ell}\right) \cdot 2\right) \cdot \left(k \cdot k\right)\right)}\\ \mathbf{elif}\;t \leq 3 \cdot 10^{+195}:\\ \;\;\;\;\frac{\ell}{{t}^{1.5} \cdot k} \cdot \frac{\ell}{{t}^{1.5} \cdot k}\\ \mathbf{else}:\\ \;\;\;\;\frac{\ell}{\left(k \cdot t\right) \cdot \left(k \cdot t\right)} \cdot \frac{\ell}{t}\\ \end{array} \]
                                                                              5. Add Preprocessing

                                                                              Alternative 12: 74.8% accurate, 1.9× 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.32 \cdot 10^{-49}:\\ \;\;\;\;\frac{2}{\frac{t\_m}{\ell} \cdot \left(\mathsf{fma}\left(\frac{\mathsf{fma}\left(0.3333333333333333, t\_m \cdot t\_m, 1\right)}{\ell} \cdot k, k, \left(t\_m \cdot \frac{t\_m}{\ell}\right) \cdot 2\right) \cdot \left(k \cdot k\right)\right)}\\ \mathbf{elif}\;t\_m \leq 6.5 \cdot 10^{+102}:\\ \;\;\;\;\frac{\ell}{\left(t\_m \cdot t\_m\right) \cdot \left(t\_m \cdot k\right)} \cdot \frac{\ell}{k}\\ \mathbf{else}:\\ \;\;\;\;{\left(\frac{t\_m}{\ell}\right)}^{-2} \cdot \frac{{\left(k \cdot t\_m\right)}^{-1}}{k}\\ \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.32e-49)
                                                                                  (/
                                                                                   2.0
                                                                                   (*
                                                                                    (/ t_m l)
                                                                                    (*
                                                                                     (fma
                                                                                      (* (/ (fma 0.3333333333333333 (* t_m t_m) 1.0) l) k)
                                                                                      k
                                                                                      (* (* t_m (/ t_m l)) 2.0))
                                                                                     (* k k))))
                                                                                  (if (<= t_m 6.5e+102)
                                                                                    (* (/ l (* (* t_m t_m) (* t_m k))) (/ l k))
                                                                                    (* (pow (/ t_m l) -2.0) (/ (pow (* k t_m) -1.0) k))))))
                                                                              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.32e-49) {
                                                                              		tmp = 2.0 / ((t_m / l) * (fma(((fma(0.3333333333333333, (t_m * t_m), 1.0) / l) * k), k, ((t_m * (t_m / l)) * 2.0)) * (k * k)));
                                                                              	} else if (t_m <= 6.5e+102) {
                                                                              		tmp = (l / ((t_m * t_m) * (t_m * k))) * (l / k);
                                                                              	} else {
                                                                              		tmp = pow((t_m / l), -2.0) * (pow((k * t_m), -1.0) / k);
                                                                              	}
                                                                              	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.32e-49)
                                                                              		tmp = Float64(2.0 / Float64(Float64(t_m / l) * Float64(fma(Float64(Float64(fma(0.3333333333333333, Float64(t_m * t_m), 1.0) / l) * k), k, Float64(Float64(t_m * Float64(t_m / l)) * 2.0)) * Float64(k * k))));
                                                                              	elseif (t_m <= 6.5e+102)
                                                                              		tmp = Float64(Float64(l / Float64(Float64(t_m * t_m) * Float64(t_m * k))) * Float64(l / k));
                                                                              	else
                                                                              		tmp = Float64((Float64(t_m / l) ^ -2.0) * Float64((Float64(k * t_m) ^ -1.0) / k));
                                                                              	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.32e-49], N[(2.0 / N[(N[(t$95$m / l), $MachinePrecision] * N[(N[(N[(N[(N[(0.3333333333333333 * N[(t$95$m * t$95$m), $MachinePrecision] + 1.0), $MachinePrecision] / l), $MachinePrecision] * k), $MachinePrecision] * k + N[(N[(t$95$m * N[(t$95$m / l), $MachinePrecision]), $MachinePrecision] * 2.0), $MachinePrecision]), $MachinePrecision] * N[(k * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$m, 6.5e+102], N[(N[(l / N[(N[(t$95$m * t$95$m), $MachinePrecision] * N[(t$95$m * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(l / k), $MachinePrecision]), $MachinePrecision], N[(N[Power[N[(t$95$m / l), $MachinePrecision], -2.0], $MachinePrecision] * N[(N[Power[N[(k * t$95$m), $MachinePrecision], -1.0], $MachinePrecision] / k), $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.32 \cdot 10^{-49}:\\
                                                                              \;\;\;\;\frac{2}{\frac{t\_m}{\ell} \cdot \left(\mathsf{fma}\left(\frac{\mathsf{fma}\left(0.3333333333333333, t\_m \cdot t\_m, 1\right)}{\ell} \cdot k, k, \left(t\_m \cdot \frac{t\_m}{\ell}\right) \cdot 2\right) \cdot \left(k \cdot k\right)\right)}\\
                                                                              
                                                                              \mathbf{elif}\;t\_m \leq 6.5 \cdot 10^{+102}:\\
                                                                              \;\;\;\;\frac{\ell}{\left(t\_m \cdot t\_m\right) \cdot \left(t\_m \cdot k\right)} \cdot \frac{\ell}{k}\\
                                                                              
                                                                              \mathbf{else}:\\
                                                                              \;\;\;\;{\left(\frac{t\_m}{\ell}\right)}^{-2} \cdot \frac{{\left(k \cdot t\_m\right)}^{-1}}{k}\\
                                                                              
                                                                              
                                                                              \end{array}
                                                                              \end{array}
                                                                              
                                                                              Derivation
                                                                              1. Split input into 3 regimes
                                                                              2. if t < 1.3199999999999999e-49

                                                                                1. Initial program 48.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. lift-*.f64N/A

                                                                                    \[\leadsto \frac{2}{\color{blue}{\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. lift-*.f64N/A

                                                                                    \[\leadsto \frac{2}{\color{blue}{\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)} \]
                                                                                  3. associate-*l*N/A

                                                                                    \[\leadsto \frac{2}{\color{blue}{\left(\frac{{t}^{3}}{\ell \cdot \ell} \cdot \sin k\right) \cdot \left(\tan k \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)\right)}} \]
                                                                                  4. lift-*.f64N/A

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

                                                                                    \[\leadsto \frac{2}{\color{blue}{\frac{{t}^{3}}{\ell \cdot \ell} \cdot \left(\sin k \cdot \left(\tan k \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)\right)\right)}} \]
                                                                                  6. lift-/.f64N/A

                                                                                    \[\leadsto \frac{2}{\color{blue}{\frac{{t}^{3}}{\ell \cdot \ell}} \cdot \left(\sin k \cdot \left(\tan k \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)\right)\right)} \]
                                                                                  7. lift-pow.f64N/A

                                                                                    \[\leadsto \frac{2}{\frac{\color{blue}{{t}^{3}}}{\ell \cdot \ell} \cdot \left(\sin k \cdot \left(\tan k \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)\right)\right)} \]
                                                                                  8. cube-multN/A

                                                                                    \[\leadsto \frac{2}{\frac{\color{blue}{t \cdot \left(t \cdot t\right)}}{\ell \cdot \ell} \cdot \left(\sin k \cdot \left(\tan k \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)\right)\right)} \]
                                                                                  9. lift-*.f64N/A

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

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

                                                                                    \[\leadsto \frac{2}{\color{blue}{\frac{t}{\ell} \cdot \left(\frac{t \cdot t}{\ell} \cdot \left(\sin k \cdot \left(\tan k \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)\right)\right)\right)}} \]
                                                                                  12. lower-*.f64N/A

                                                                                    \[\leadsto \frac{2}{\color{blue}{\frac{t}{\ell} \cdot \left(\frac{t \cdot t}{\ell} \cdot \left(\sin k \cdot \left(\tan k \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)\right)\right)\right)}} \]
                                                                                  13. lower-/.f64N/A

                                                                                    \[\leadsto \frac{2}{\color{blue}{\frac{t}{\ell}} \cdot \left(\frac{t \cdot t}{\ell} \cdot \left(\sin k \cdot \left(\tan k \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)\right)\right)\right)} \]
                                                                                  14. lower-*.f64N/A

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

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

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

                                                                                    \[\leadsto \frac{2}{\frac{t}{\ell} \cdot \color{blue}{\left(\left(2 \cdot \frac{{t}^{2}}{\ell} + \frac{{k}^{2} \cdot \left({t}^{2} \cdot \left(\frac{1}{3} + \frac{1}{{t}^{2}}\right)\right)}{\ell}\right) \cdot {k}^{2}\right)}} \]
                                                                                  2. lower-*.f64N/A

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

                                                                                  \[\leadsto \frac{2}{\frac{t}{\ell} \cdot \color{blue}{\left(\mathsf{fma}\left(\frac{\mathsf{fma}\left(0.3333333333333333, t \cdot t, 1\right)}{\ell} \cdot k, k, \left(t \cdot \frac{t}{\ell}\right) \cdot 2\right) \cdot \left(k \cdot k\right)\right)}} \]

                                                                                if 1.3199999999999999e-49 < t < 6.5000000000000004e102

                                                                                1. Initial program 72.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. Add Preprocessing
                                                                                3. Taylor expanded in k around 0

                                                                                  \[\leadsto \color{blue}{\frac{{\ell}^{2}}{{k}^{2} \cdot {t}^{3}}} \]
                                                                                4. Step-by-step derivation
                                                                                  1. unpow2N/A

                                                                                    \[\leadsto \frac{\color{blue}{\ell \cdot \ell}}{{k}^{2} \cdot {t}^{3}} \]
                                                                                  2. *-commutativeN/A

                                                                                    \[\leadsto \frac{\ell \cdot \ell}{\color{blue}{{t}^{3} \cdot {k}^{2}}} \]
                                                                                  3. times-fracN/A

                                                                                    \[\leadsto \color{blue}{\frac{\ell}{{t}^{3}} \cdot \frac{\ell}{{k}^{2}}} \]
                                                                                  4. lower-*.f64N/A

                                                                                    \[\leadsto \color{blue}{\frac{\ell}{{t}^{3}} \cdot \frac{\ell}{{k}^{2}}} \]
                                                                                  5. lower-/.f64N/A

                                                                                    \[\leadsto \color{blue}{\frac{\ell}{{t}^{3}}} \cdot \frac{\ell}{{k}^{2}} \]
                                                                                  6. lower-pow.f64N/A

                                                                                    \[\leadsto \frac{\ell}{\color{blue}{{t}^{3}}} \cdot \frac{\ell}{{k}^{2}} \]
                                                                                  7. lower-/.f64N/A

                                                                                    \[\leadsto \frac{\ell}{{t}^{3}} \cdot \color{blue}{\frac{\ell}{{k}^{2}}} \]
                                                                                  8. unpow2N/A

                                                                                    \[\leadsto \frac{\ell}{{t}^{3}} \cdot \frac{\ell}{\color{blue}{k \cdot k}} \]
                                                                                  9. lower-*.f6453.7

                                                                                    \[\leadsto \frac{\ell}{{t}^{3}} \cdot \frac{\ell}{\color{blue}{k \cdot k}} \]
                                                                                5. Applied rewrites53.7%

                                                                                  \[\leadsto \color{blue}{\frac{\ell}{{t}^{3}} \cdot \frac{\ell}{k \cdot k}} \]
                                                                                6. Step-by-step derivation
                                                                                  1. Applied rewrites68.7%

                                                                                    \[\leadsto \frac{\ell}{{t}^{3} \cdot k} \cdot \color{blue}{\frac{\ell}{k}} \]
                                                                                  2. Step-by-step derivation
                                                                                    1. Applied rewrites68.8%

                                                                                      \[\leadsto \frac{\ell}{\left(t \cdot t\right) \cdot \left(t \cdot k\right)} \cdot \frac{\ell}{k} \]

                                                                                    if 6.5000000000000004e102 < t

                                                                                    1. Initial program 51.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. Taylor expanded in k around 0

                                                                                      \[\leadsto \color{blue}{\frac{{\ell}^{2}}{{k}^{2} \cdot {t}^{3}}} \]
                                                                                    4. Step-by-step derivation
                                                                                      1. unpow2N/A

                                                                                        \[\leadsto \frac{\color{blue}{\ell \cdot \ell}}{{k}^{2} \cdot {t}^{3}} \]
                                                                                      2. *-commutativeN/A

                                                                                        \[\leadsto \frac{\ell \cdot \ell}{\color{blue}{{t}^{3} \cdot {k}^{2}}} \]
                                                                                      3. times-fracN/A

                                                                                        \[\leadsto \color{blue}{\frac{\ell}{{t}^{3}} \cdot \frac{\ell}{{k}^{2}}} \]
                                                                                      4. lower-*.f64N/A

                                                                                        \[\leadsto \color{blue}{\frac{\ell}{{t}^{3}} \cdot \frac{\ell}{{k}^{2}}} \]
                                                                                      5. lower-/.f64N/A

                                                                                        \[\leadsto \color{blue}{\frac{\ell}{{t}^{3}}} \cdot \frac{\ell}{{k}^{2}} \]
                                                                                      6. lower-pow.f64N/A

                                                                                        \[\leadsto \frac{\ell}{\color{blue}{{t}^{3}}} \cdot \frac{\ell}{{k}^{2}} \]
                                                                                      7. lower-/.f64N/A

                                                                                        \[\leadsto \frac{\ell}{{t}^{3}} \cdot \color{blue}{\frac{\ell}{{k}^{2}}} \]
                                                                                      8. unpow2N/A

                                                                                        \[\leadsto \frac{\ell}{{t}^{3}} \cdot \frac{\ell}{\color{blue}{k \cdot k}} \]
                                                                                      9. lower-*.f6455.2

                                                                                        \[\leadsto \frac{\ell}{{t}^{3}} \cdot \frac{\ell}{\color{blue}{k \cdot k}} \]
                                                                                    5. Applied rewrites55.2%

                                                                                      \[\leadsto \color{blue}{\frac{\ell}{{t}^{3}} \cdot \frac{\ell}{k \cdot k}} \]
                                                                                    6. Step-by-step derivation
                                                                                      1. Applied rewrites59.8%

                                                                                        \[\leadsto \frac{\ell}{t \cdot t} \cdot \color{blue}{\frac{\ell}{t \cdot \left(k \cdot k\right)}} \]
                                                                                      2. Step-by-step derivation
                                                                                        1. Applied rewrites49.0%

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

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

                                                                                        Alternative 13: 76.8% accurate, 4.7× 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.32 \cdot 10^{-49}:\\ \;\;\;\;\frac{2}{\frac{t\_m}{\ell} \cdot \left(\mathsf{fma}\left(\frac{\mathsf{fma}\left(0.3333333333333333, t\_m \cdot t\_m, 1\right)}{\ell} \cdot k, k, \left(t\_m \cdot \frac{t\_m}{\ell}\right) \cdot 2\right) \cdot \left(k \cdot k\right)\right)}\\ \mathbf{elif}\;t\_m \leq 10^{+94}:\\ \;\;\;\;\frac{\ell}{\left(t\_m \cdot t\_m\right) \cdot \left(t\_m \cdot k\right)} \cdot \frac{\ell}{k}\\ \mathbf{else}:\\ \;\;\;\;\frac{\ell}{\left(k \cdot t\_m\right) \cdot \left(k \cdot t\_m\right)} \cdot \frac{\ell}{t\_m}\\ \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.32e-49)
                                                                                            (/
                                                                                             2.0
                                                                                             (*
                                                                                              (/ t_m l)
                                                                                              (*
                                                                                               (fma
                                                                                                (* (/ (fma 0.3333333333333333 (* t_m t_m) 1.0) l) k)
                                                                                                k
                                                                                                (* (* t_m (/ t_m l)) 2.0))
                                                                                               (* k k))))
                                                                                            (if (<= t_m 1e+94)
                                                                                              (* (/ l (* (* t_m t_m) (* t_m k))) (/ l k))
                                                                                              (* (/ l (* (* k t_m) (* k t_m))) (/ l t_m))))))
                                                                                        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.32e-49) {
                                                                                        		tmp = 2.0 / ((t_m / l) * (fma(((fma(0.3333333333333333, (t_m * t_m), 1.0) / l) * k), k, ((t_m * (t_m / l)) * 2.0)) * (k * k)));
                                                                                        	} else if (t_m <= 1e+94) {
                                                                                        		tmp = (l / ((t_m * t_m) * (t_m * k))) * (l / k);
                                                                                        	} else {
                                                                                        		tmp = (l / ((k * t_m) * (k * t_m))) * (l / t_m);
                                                                                        	}
                                                                                        	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.32e-49)
                                                                                        		tmp = Float64(2.0 / Float64(Float64(t_m / l) * Float64(fma(Float64(Float64(fma(0.3333333333333333, Float64(t_m * t_m), 1.0) / l) * k), k, Float64(Float64(t_m * Float64(t_m / l)) * 2.0)) * Float64(k * k))));
                                                                                        	elseif (t_m <= 1e+94)
                                                                                        		tmp = Float64(Float64(l / Float64(Float64(t_m * t_m) * Float64(t_m * k))) * Float64(l / k));
                                                                                        	else
                                                                                        		tmp = Float64(Float64(l / Float64(Float64(k * t_m) * Float64(k * t_m))) * Float64(l / t_m));
                                                                                        	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.32e-49], N[(2.0 / N[(N[(t$95$m / l), $MachinePrecision] * N[(N[(N[(N[(N[(0.3333333333333333 * N[(t$95$m * t$95$m), $MachinePrecision] + 1.0), $MachinePrecision] / l), $MachinePrecision] * k), $MachinePrecision] * k + N[(N[(t$95$m * N[(t$95$m / l), $MachinePrecision]), $MachinePrecision] * 2.0), $MachinePrecision]), $MachinePrecision] * N[(k * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$m, 1e+94], N[(N[(l / N[(N[(t$95$m * t$95$m), $MachinePrecision] * N[(t$95$m * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(l / k), $MachinePrecision]), $MachinePrecision], N[(N[(l / N[(N[(k * t$95$m), $MachinePrecision] * N[(k * t$95$m), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(l / t$95$m), $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.32 \cdot 10^{-49}:\\
                                                                                        \;\;\;\;\frac{2}{\frac{t\_m}{\ell} \cdot \left(\mathsf{fma}\left(\frac{\mathsf{fma}\left(0.3333333333333333, t\_m \cdot t\_m, 1\right)}{\ell} \cdot k, k, \left(t\_m \cdot \frac{t\_m}{\ell}\right) \cdot 2\right) \cdot \left(k \cdot k\right)\right)}\\
                                                                                        
                                                                                        \mathbf{elif}\;t\_m \leq 10^{+94}:\\
                                                                                        \;\;\;\;\frac{\ell}{\left(t\_m \cdot t\_m\right) \cdot \left(t\_m \cdot k\right)} \cdot \frac{\ell}{k}\\
                                                                                        
                                                                                        \mathbf{else}:\\
                                                                                        \;\;\;\;\frac{\ell}{\left(k \cdot t\_m\right) \cdot \left(k \cdot t\_m\right)} \cdot \frac{\ell}{t\_m}\\
                                                                                        
                                                                                        
                                                                                        \end{array}
                                                                                        \end{array}
                                                                                        
                                                                                        Derivation
                                                                                        1. Split input into 3 regimes
                                                                                        2. if t < 1.3199999999999999e-49

                                                                                          1. Initial program 48.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. lift-*.f64N/A

                                                                                              \[\leadsto \frac{2}{\color{blue}{\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. lift-*.f64N/A

                                                                                              \[\leadsto \frac{2}{\color{blue}{\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)} \]
                                                                                            3. associate-*l*N/A

                                                                                              \[\leadsto \frac{2}{\color{blue}{\left(\frac{{t}^{3}}{\ell \cdot \ell} \cdot \sin k\right) \cdot \left(\tan k \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)\right)}} \]
                                                                                            4. lift-*.f64N/A

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

                                                                                              \[\leadsto \frac{2}{\color{blue}{\frac{{t}^{3}}{\ell \cdot \ell} \cdot \left(\sin k \cdot \left(\tan k \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)\right)\right)}} \]
                                                                                            6. lift-/.f64N/A

                                                                                              \[\leadsto \frac{2}{\color{blue}{\frac{{t}^{3}}{\ell \cdot \ell}} \cdot \left(\sin k \cdot \left(\tan k \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)\right)\right)} \]
                                                                                            7. lift-pow.f64N/A

                                                                                              \[\leadsto \frac{2}{\frac{\color{blue}{{t}^{3}}}{\ell \cdot \ell} \cdot \left(\sin k \cdot \left(\tan k \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)\right)\right)} \]
                                                                                            8. cube-multN/A

                                                                                              \[\leadsto \frac{2}{\frac{\color{blue}{t \cdot \left(t \cdot t\right)}}{\ell \cdot \ell} \cdot \left(\sin k \cdot \left(\tan k \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)\right)\right)} \]
                                                                                            9. lift-*.f64N/A

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

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

                                                                                              \[\leadsto \frac{2}{\color{blue}{\frac{t}{\ell} \cdot \left(\frac{t \cdot t}{\ell} \cdot \left(\sin k \cdot \left(\tan k \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)\right)\right)\right)}} \]
                                                                                            12. lower-*.f64N/A

                                                                                              \[\leadsto \frac{2}{\color{blue}{\frac{t}{\ell} \cdot \left(\frac{t \cdot t}{\ell} \cdot \left(\sin k \cdot \left(\tan k \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)\right)\right)\right)}} \]
                                                                                            13. lower-/.f64N/A

                                                                                              \[\leadsto \frac{2}{\color{blue}{\frac{t}{\ell}} \cdot \left(\frac{t \cdot t}{\ell} \cdot \left(\sin k \cdot \left(\tan k \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)\right)\right)\right)} \]
                                                                                            14. lower-*.f64N/A

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

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

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

                                                                                              \[\leadsto \frac{2}{\frac{t}{\ell} \cdot \color{blue}{\left(\left(2 \cdot \frac{{t}^{2}}{\ell} + \frac{{k}^{2} \cdot \left({t}^{2} \cdot \left(\frac{1}{3} + \frac{1}{{t}^{2}}\right)\right)}{\ell}\right) \cdot {k}^{2}\right)}} \]
                                                                                            2. lower-*.f64N/A

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

                                                                                            \[\leadsto \frac{2}{\frac{t}{\ell} \cdot \color{blue}{\left(\mathsf{fma}\left(\frac{\mathsf{fma}\left(0.3333333333333333, t \cdot t, 1\right)}{\ell} \cdot k, k, \left(t \cdot \frac{t}{\ell}\right) \cdot 2\right) \cdot \left(k \cdot k\right)\right)}} \]

                                                                                          if 1.3199999999999999e-49 < t < 1e94

                                                                                          1. Initial program 71.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. Add Preprocessing
                                                                                          3. Taylor expanded in k around 0

                                                                                            \[\leadsto \color{blue}{\frac{{\ell}^{2}}{{k}^{2} \cdot {t}^{3}}} \]
                                                                                          4. Step-by-step derivation
                                                                                            1. unpow2N/A

                                                                                              \[\leadsto \frac{\color{blue}{\ell \cdot \ell}}{{k}^{2} \cdot {t}^{3}} \]
                                                                                            2. *-commutativeN/A

                                                                                              \[\leadsto \frac{\ell \cdot \ell}{\color{blue}{{t}^{3} \cdot {k}^{2}}} \]
                                                                                            3. times-fracN/A

                                                                                              \[\leadsto \color{blue}{\frac{\ell}{{t}^{3}} \cdot \frac{\ell}{{k}^{2}}} \]
                                                                                            4. lower-*.f64N/A

                                                                                              \[\leadsto \color{blue}{\frac{\ell}{{t}^{3}} \cdot \frac{\ell}{{k}^{2}}} \]
                                                                                            5. lower-/.f64N/A

                                                                                              \[\leadsto \color{blue}{\frac{\ell}{{t}^{3}}} \cdot \frac{\ell}{{k}^{2}} \]
                                                                                            6. lower-pow.f64N/A

                                                                                              \[\leadsto \frac{\ell}{\color{blue}{{t}^{3}}} \cdot \frac{\ell}{{k}^{2}} \]
                                                                                            7. lower-/.f64N/A

                                                                                              \[\leadsto \frac{\ell}{{t}^{3}} \cdot \color{blue}{\frac{\ell}{{k}^{2}}} \]
                                                                                            8. unpow2N/A

                                                                                              \[\leadsto \frac{\ell}{{t}^{3}} \cdot \frac{\ell}{\color{blue}{k \cdot k}} \]
                                                                                            9. lower-*.f6454.1

                                                                                              \[\leadsto \frac{\ell}{{t}^{3}} \cdot \frac{\ell}{\color{blue}{k \cdot k}} \]
                                                                                          5. Applied rewrites54.1%

                                                                                            \[\leadsto \color{blue}{\frac{\ell}{{t}^{3}} \cdot \frac{\ell}{k \cdot k}} \]
                                                                                          6. Step-by-step derivation
                                                                                            1. Applied rewrites72.0%

                                                                                              \[\leadsto \frac{\ell}{{t}^{3} \cdot k} \cdot \color{blue}{\frac{\ell}{k}} \]
                                                                                            2. Step-by-step derivation
                                                                                              1. Applied rewrites72.1%

                                                                                                \[\leadsto \frac{\ell}{\left(t \cdot t\right) \cdot \left(t \cdot k\right)} \cdot \frac{\ell}{k} \]

                                                                                              if 1e94 < t

                                                                                              1. Initial program 53.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. Taylor expanded in k around 0

                                                                                                \[\leadsto \color{blue}{\frac{{\ell}^{2}}{{k}^{2} \cdot {t}^{3}}} \]
                                                                                              4. Step-by-step derivation
                                                                                                1. unpow2N/A

                                                                                                  \[\leadsto \frac{\color{blue}{\ell \cdot \ell}}{{k}^{2} \cdot {t}^{3}} \]
                                                                                                2. *-commutativeN/A

                                                                                                  \[\leadsto \frac{\ell \cdot \ell}{\color{blue}{{t}^{3} \cdot {k}^{2}}} \]
                                                                                                3. times-fracN/A

                                                                                                  \[\leadsto \color{blue}{\frac{\ell}{{t}^{3}} \cdot \frac{\ell}{{k}^{2}}} \]
                                                                                                4. lower-*.f64N/A

                                                                                                  \[\leadsto \color{blue}{\frac{\ell}{{t}^{3}} \cdot \frac{\ell}{{k}^{2}}} \]
                                                                                                5. lower-/.f64N/A

                                                                                                  \[\leadsto \color{blue}{\frac{\ell}{{t}^{3}}} \cdot \frac{\ell}{{k}^{2}} \]
                                                                                                6. lower-pow.f64N/A

                                                                                                  \[\leadsto \frac{\ell}{\color{blue}{{t}^{3}}} \cdot \frac{\ell}{{k}^{2}} \]
                                                                                                7. lower-/.f64N/A

                                                                                                  \[\leadsto \frac{\ell}{{t}^{3}} \cdot \color{blue}{\frac{\ell}{{k}^{2}}} \]
                                                                                                8. unpow2N/A

                                                                                                  \[\leadsto \frac{\ell}{{t}^{3}} \cdot \frac{\ell}{\color{blue}{k \cdot k}} \]
                                                                                                9. lower-*.f6454.9

                                                                                                  \[\leadsto \frac{\ell}{{t}^{3}} \cdot \frac{\ell}{\color{blue}{k \cdot k}} \]
                                                                                              5. Applied rewrites54.9%

                                                                                                \[\leadsto \color{blue}{\frac{\ell}{{t}^{3}} \cdot \frac{\ell}{k \cdot k}} \]
                                                                                              6. Step-by-step derivation
                                                                                                1. Applied rewrites59.1%

                                                                                                  \[\leadsto \frac{\ell}{t \cdot t} \cdot \color{blue}{\frac{\ell}{t \cdot \left(k \cdot k\right)}} \]
                                                                                                2. Step-by-step derivation
                                                                                                  1. Applied rewrites49.2%

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

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

                                                                                                    \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq 1.32 \cdot 10^{-49}:\\ \;\;\;\;\frac{2}{\frac{t}{\ell} \cdot \left(\mathsf{fma}\left(\frac{\mathsf{fma}\left(0.3333333333333333, t \cdot t, 1\right)}{\ell} \cdot k, k, \left(t \cdot \frac{t}{\ell}\right) \cdot 2\right) \cdot \left(k \cdot k\right)\right)}\\ \mathbf{elif}\;t \leq 10^{+94}:\\ \;\;\;\;\frac{\ell}{\left(t \cdot t\right) \cdot \left(t \cdot k\right)} \cdot \frac{\ell}{k}\\ \mathbf{else}:\\ \;\;\;\;\frac{\ell}{\left(k \cdot t\right) \cdot \left(k \cdot t\right)} \cdot \frac{\ell}{t}\\ \end{array} \]
                                                                                                  5. Add Preprocessing

                                                                                                  Alternative 14: 74.4% accurate, 6.4× 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}\;\ell \cdot \ell \leq 2 \cdot 10^{-11}:\\ \;\;\;\;\frac{\frac{\frac{\ell}{k} \cdot \frac{\frac{\ell}{k}}{t\_m}}{t\_m}}{t\_m}\\ \mathbf{else}:\\ \;\;\;\;\frac{\ell}{\left(k \cdot t\_m\right) \cdot \left(k \cdot t\_m\right)} \cdot \frac{\ell}{t\_m}\\ \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 (<= (* l l) 2e-11)
                                                                                                      (/ (/ (* (/ l k) (/ (/ l k) t_m)) t_m) t_m)
                                                                                                      (* (/ l (* (* k t_m) (* k t_m))) (/ l t_m)))))
                                                                                                  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 ((l * l) <= 2e-11) {
                                                                                                  		tmp = (((l / k) * ((l / k) / t_m)) / t_m) / t_m;
                                                                                                  	} else {
                                                                                                  		tmp = (l / ((k * t_m) * (k * t_m))) * (l / t_m);
                                                                                                  	}
                                                                                                  	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 ((l * l) <= 2d-11) then
                                                                                                          tmp = (((l / k) * ((l / k) / t_m)) / t_m) / t_m
                                                                                                      else
                                                                                                          tmp = (l / ((k * t_m) * (k * t_m))) * (l / t_m)
                                                                                                      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 ((l * l) <= 2e-11) {
                                                                                                  		tmp = (((l / k) * ((l / k) / t_m)) / t_m) / t_m;
                                                                                                  	} else {
                                                                                                  		tmp = (l / ((k * t_m) * (k * t_m))) * (l / t_m);
                                                                                                  	}
                                                                                                  	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 (l * l) <= 2e-11:
                                                                                                  		tmp = (((l / k) * ((l / k) / t_m)) / t_m) / t_m
                                                                                                  	else:
                                                                                                  		tmp = (l / ((k * t_m) * (k * t_m))) * (l / t_m)
                                                                                                  	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 (Float64(l * l) <= 2e-11)
                                                                                                  		tmp = Float64(Float64(Float64(Float64(l / k) * Float64(Float64(l / k) / t_m)) / t_m) / t_m);
                                                                                                  	else
                                                                                                  		tmp = Float64(Float64(l / Float64(Float64(k * t_m) * Float64(k * t_m))) * Float64(l / t_m));
                                                                                                  	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 ((l * l) <= 2e-11)
                                                                                                  		tmp = (((l / k) * ((l / k) / t_m)) / t_m) / t_m;
                                                                                                  	else
                                                                                                  		tmp = (l / ((k * t_m) * (k * t_m))) * (l / t_m);
                                                                                                  	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[N[(l * l), $MachinePrecision], 2e-11], N[(N[(N[(N[(l / k), $MachinePrecision] * N[(N[(l / k), $MachinePrecision] / t$95$m), $MachinePrecision]), $MachinePrecision] / t$95$m), $MachinePrecision] / t$95$m), $MachinePrecision], N[(N[(l / N[(N[(k * t$95$m), $MachinePrecision] * N[(k * t$95$m), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(l / t$95$m), $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}\;\ell \cdot \ell \leq 2 \cdot 10^{-11}:\\
                                                                                                  \;\;\;\;\frac{\frac{\frac{\ell}{k} \cdot \frac{\frac{\ell}{k}}{t\_m}}{t\_m}}{t\_m}\\
                                                                                                  
                                                                                                  \mathbf{else}:\\
                                                                                                  \;\;\;\;\frac{\ell}{\left(k \cdot t\_m\right) \cdot \left(k \cdot t\_m\right)} \cdot \frac{\ell}{t\_m}\\
                                                                                                  
                                                                                                  
                                                                                                  \end{array}
                                                                                                  \end{array}
                                                                                                  
                                                                                                  Derivation
                                                                                                  1. Split input into 2 regimes
                                                                                                  2. if (*.f64 l l) < 1.99999999999999988e-11

                                                                                                    1. Initial program 59.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. Taylor expanded in k around 0

                                                                                                      \[\leadsto \color{blue}{\frac{{\ell}^{2}}{{k}^{2} \cdot {t}^{3}}} \]
                                                                                                    4. Step-by-step derivation
                                                                                                      1. unpow2N/A

                                                                                                        \[\leadsto \frac{\color{blue}{\ell \cdot \ell}}{{k}^{2} \cdot {t}^{3}} \]
                                                                                                      2. *-commutativeN/A

                                                                                                        \[\leadsto \frac{\ell \cdot \ell}{\color{blue}{{t}^{3} \cdot {k}^{2}}} \]
                                                                                                      3. times-fracN/A

                                                                                                        \[\leadsto \color{blue}{\frac{\ell}{{t}^{3}} \cdot \frac{\ell}{{k}^{2}}} \]
                                                                                                      4. lower-*.f64N/A

                                                                                                        \[\leadsto \color{blue}{\frac{\ell}{{t}^{3}} \cdot \frac{\ell}{{k}^{2}}} \]
                                                                                                      5. lower-/.f64N/A

                                                                                                        \[\leadsto \color{blue}{\frac{\ell}{{t}^{3}}} \cdot \frac{\ell}{{k}^{2}} \]
                                                                                                      6. lower-pow.f64N/A

                                                                                                        \[\leadsto \frac{\ell}{\color{blue}{{t}^{3}}} \cdot \frac{\ell}{{k}^{2}} \]
                                                                                                      7. lower-/.f64N/A

                                                                                                        \[\leadsto \frac{\ell}{{t}^{3}} \cdot \color{blue}{\frac{\ell}{{k}^{2}}} \]
                                                                                                      8. unpow2N/A

                                                                                                        \[\leadsto \frac{\ell}{{t}^{3}} \cdot \frac{\ell}{\color{blue}{k \cdot k}} \]
                                                                                                      9. lower-*.f6462.3

                                                                                                        \[\leadsto \frac{\ell}{{t}^{3}} \cdot \frac{\ell}{\color{blue}{k \cdot k}} \]
                                                                                                    5. Applied rewrites62.3%

                                                                                                      \[\leadsto \color{blue}{\frac{\ell}{{t}^{3}} \cdot \frac{\ell}{k \cdot k}} \]
                                                                                                    6. Step-by-step derivation
                                                                                                      1. Applied rewrites65.5%

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

                                                                                                          \[\leadsto \frac{\left(-\ell\right) \cdot \ell}{\color{blue}{\left(\left(k \cdot k\right) \cdot t\right) \cdot \left(\left(-t\right) \cdot t\right)}} \]
                                                                                                        2. Step-by-step derivation
                                                                                                          1. Applied rewrites85.6%

                                                                                                            \[\leadsto \frac{\frac{\frac{-\ell}{k} \cdot \frac{\frac{\ell}{k}}{t}}{-t}}{\color{blue}{t}} \]

                                                                                                          if 1.99999999999999988e-11 < (*.f64 l l)

                                                                                                          1. Initial program 43.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. Taylor expanded in k around 0

                                                                                                            \[\leadsto \color{blue}{\frac{{\ell}^{2}}{{k}^{2} \cdot {t}^{3}}} \]
                                                                                                          4. Step-by-step derivation
                                                                                                            1. unpow2N/A

                                                                                                              \[\leadsto \frac{\color{blue}{\ell \cdot \ell}}{{k}^{2} \cdot {t}^{3}} \]
                                                                                                            2. *-commutativeN/A

                                                                                                              \[\leadsto \frac{\ell \cdot \ell}{\color{blue}{{t}^{3} \cdot {k}^{2}}} \]
                                                                                                            3. times-fracN/A

                                                                                                              \[\leadsto \color{blue}{\frac{\ell}{{t}^{3}} \cdot \frac{\ell}{{k}^{2}}} \]
                                                                                                            4. lower-*.f64N/A

                                                                                                              \[\leadsto \color{blue}{\frac{\ell}{{t}^{3}} \cdot \frac{\ell}{{k}^{2}}} \]
                                                                                                            5. lower-/.f64N/A

                                                                                                              \[\leadsto \color{blue}{\frac{\ell}{{t}^{3}}} \cdot \frac{\ell}{{k}^{2}} \]
                                                                                                            6. lower-pow.f64N/A

                                                                                                              \[\leadsto \frac{\ell}{\color{blue}{{t}^{3}}} \cdot \frac{\ell}{{k}^{2}} \]
                                                                                                            7. lower-/.f64N/A

                                                                                                              \[\leadsto \frac{\ell}{{t}^{3}} \cdot \color{blue}{\frac{\ell}{{k}^{2}}} \]
                                                                                                            8. unpow2N/A

                                                                                                              \[\leadsto \frac{\ell}{{t}^{3}} \cdot \frac{\ell}{\color{blue}{k \cdot k}} \]
                                                                                                            9. lower-*.f6446.8

                                                                                                              \[\leadsto \frac{\ell}{{t}^{3}} \cdot \frac{\ell}{\color{blue}{k \cdot k}} \]
                                                                                                          5. Applied rewrites46.8%

                                                                                                            \[\leadsto \color{blue}{\frac{\ell}{{t}^{3}} \cdot \frac{\ell}{k \cdot k}} \]
                                                                                                          6. Step-by-step derivation
                                                                                                            1. Applied rewrites50.9%

                                                                                                              \[\leadsto \frac{\ell}{t \cdot t} \cdot \color{blue}{\frac{\ell}{t \cdot \left(k \cdot k\right)}} \]
                                                                                                            2. Step-by-step derivation
                                                                                                              1. Applied rewrites45.1%

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

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

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

                                                                                                              Alternative 15: 74.1% accurate, 7.7× 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.25 \cdot 10^{-23}:\\ \;\;\;\;\frac{2}{\left(t\_m \cdot \left(k \cdot k\right)\right) \cdot \left(\frac{k}{\ell} \cdot \frac{k}{\ell}\right)}\\ \mathbf{elif}\;t\_m \leq 10^{+94}:\\ \;\;\;\;\frac{\ell}{\left(t\_m \cdot t\_m\right) \cdot \left(t\_m \cdot k\right)} \cdot \frac{\ell}{k}\\ \mathbf{else}:\\ \;\;\;\;\frac{\ell}{\left(k \cdot t\_m\right) \cdot \left(k \cdot t\_m\right)} \cdot \frac{\ell}{t\_m}\\ \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.25e-23)
                                                                                                                  (/ 2.0 (* (* t_m (* k k)) (* (/ k l) (/ k l))))
                                                                                                                  (if (<= t_m 1e+94)
                                                                                                                    (* (/ l (* (* t_m t_m) (* t_m k))) (/ l k))
                                                                                                                    (* (/ l (* (* k t_m) (* k t_m))) (/ l t_m))))))
                                                                                                              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.25e-23) {
                                                                                                              		tmp = 2.0 / ((t_m * (k * k)) * ((k / l) * (k / l)));
                                                                                                              	} else if (t_m <= 1e+94) {
                                                                                                              		tmp = (l / ((t_m * t_m) * (t_m * k))) * (l / k);
                                                                                                              	} else {
                                                                                                              		tmp = (l / ((k * t_m) * (k * t_m))) * (l / t_m);
                                                                                                              	}
                                                                                                              	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 <= 2.25d-23) then
                                                                                                                      tmp = 2.0d0 / ((t_m * (k * k)) * ((k / l) * (k / l)))
                                                                                                                  else if (t_m <= 1d+94) then
                                                                                                                      tmp = (l / ((t_m * t_m) * (t_m * k))) * (l / k)
                                                                                                                  else
                                                                                                                      tmp = (l / ((k * t_m) * (k * t_m))) * (l / t_m)
                                                                                                                  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 <= 2.25e-23) {
                                                                                                              		tmp = 2.0 / ((t_m * (k * k)) * ((k / l) * (k / l)));
                                                                                                              	} else if (t_m <= 1e+94) {
                                                                                                              		tmp = (l / ((t_m * t_m) * (t_m * k))) * (l / k);
                                                                                                              	} else {
                                                                                                              		tmp = (l / ((k * t_m) * (k * t_m))) * (l / t_m);
                                                                                                              	}
                                                                                                              	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 <= 2.25e-23:
                                                                                                              		tmp = 2.0 / ((t_m * (k * k)) * ((k / l) * (k / l)))
                                                                                                              	elif t_m <= 1e+94:
                                                                                                              		tmp = (l / ((t_m * t_m) * (t_m * k))) * (l / k)
                                                                                                              	else:
                                                                                                              		tmp = (l / ((k * t_m) * (k * t_m))) * (l / t_m)
                                                                                                              	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.25e-23)
                                                                                                              		tmp = Float64(2.0 / Float64(Float64(t_m * Float64(k * k)) * Float64(Float64(k / l) * Float64(k / l))));
                                                                                                              	elseif (t_m <= 1e+94)
                                                                                                              		tmp = Float64(Float64(l / Float64(Float64(t_m * t_m) * Float64(t_m * k))) * Float64(l / k));
                                                                                                              	else
                                                                                                              		tmp = Float64(Float64(l / Float64(Float64(k * t_m) * Float64(k * t_m))) * Float64(l / t_m));
                                                                                                              	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 <= 2.25e-23)
                                                                                                              		tmp = 2.0 / ((t_m * (k * k)) * ((k / l) * (k / l)));
                                                                                                              	elseif (t_m <= 1e+94)
                                                                                                              		tmp = (l / ((t_m * t_m) * (t_m * k))) * (l / k);
                                                                                                              	else
                                                                                                              		tmp = (l / ((k * t_m) * (k * t_m))) * (l / t_m);
                                                                                                              	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, 2.25e-23], N[(2.0 / N[(N[(t$95$m * N[(k * k), $MachinePrecision]), $MachinePrecision] * N[(N[(k / l), $MachinePrecision] * N[(k / l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$m, 1e+94], N[(N[(l / N[(N[(t$95$m * t$95$m), $MachinePrecision] * N[(t$95$m * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(l / k), $MachinePrecision]), $MachinePrecision], N[(N[(l / N[(N[(k * t$95$m), $MachinePrecision] * N[(k * t$95$m), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(l / t$95$m), $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.25 \cdot 10^{-23}:\\
                                                                                                              \;\;\;\;\frac{2}{\left(t\_m \cdot \left(k \cdot k\right)\right) \cdot \left(\frac{k}{\ell} \cdot \frac{k}{\ell}\right)}\\
                                                                                                              
                                                                                                              \mathbf{elif}\;t\_m \leq 10^{+94}:\\
                                                                                                              \;\;\;\;\frac{\ell}{\left(t\_m \cdot t\_m\right) \cdot \left(t\_m \cdot k\right)} \cdot \frac{\ell}{k}\\
                                                                                                              
                                                                                                              \mathbf{else}:\\
                                                                                                              \;\;\;\;\frac{\ell}{\left(k \cdot t\_m\right) \cdot \left(k \cdot t\_m\right)} \cdot \frac{\ell}{t\_m}\\
                                                                                                              
                                                                                                              
                                                                                                              \end{array}
                                                                                                              \end{array}
                                                                                                              
                                                                                                              Derivation
                                                                                                              1. Split input into 3 regimes
                                                                                                              2. if t < 2.24999999999999987e-23

                                                                                                                1. Initial program 49.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. lift-*.f64N/A

                                                                                                                    \[\leadsto \frac{2}{\left(\color{blue}{\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. lift-/.f64N/A

                                                                                                                    \[\leadsto \frac{2}{\left(\left(\color{blue}{\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)} \]
                                                                                                                  3. lift-pow.f64N/A

                                                                                                                    \[\leadsto \frac{2}{\left(\left(\frac{\color{blue}{{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)} \]
                                                                                                                  4. sqr-powN/A

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

                                                                                                                    \[\leadsto \frac{2}{\left(\left(\frac{{t}^{\left(\frac{3}{2}\right)} \cdot {t}^{\left(\frac{3}{2}\right)}}{\color{blue}{\ell \cdot \ell}} \cdot \sin k\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
                                                                                                                  6. times-fracN/A

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

                                                                                                                    \[\leadsto \frac{2}{\left(\color{blue}{\left(\frac{{t}^{\left(\frac{3}{2}\right)}}{\ell} \cdot \left(\frac{{t}^{\left(\frac{3}{2}\right)}}{\ell} \cdot \sin k\right)\right)} \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
                                                                                                                  8. lower-*.f64N/A

                                                                                                                    \[\leadsto \frac{2}{\left(\color{blue}{\left(\frac{{t}^{\left(\frac{3}{2}\right)}}{\ell} \cdot \left(\frac{{t}^{\left(\frac{3}{2}\right)}}{\ell} \cdot \sin k\right)\right)} \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
                                                                                                                  9. lower-/.f64N/A

                                                                                                                    \[\leadsto \frac{2}{\left(\left(\color{blue}{\frac{{t}^{\left(\frac{3}{2}\right)}}{\ell}} \cdot \left(\frac{{t}^{\left(\frac{3}{2}\right)}}{\ell} \cdot \sin k\right)\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
                                                                                                                  10. lower-pow.f64N/A

                                                                                                                    \[\leadsto \frac{2}{\left(\left(\frac{\color{blue}{{t}^{\left(\frac{3}{2}\right)}}}{\ell} \cdot \left(\frac{{t}^{\left(\frac{3}{2}\right)}}{\ell} \cdot \sin k\right)\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
                                                                                                                  11. metadata-evalN/A

                                                                                                                    \[\leadsto \frac{2}{\left(\left(\frac{{t}^{\color{blue}{\frac{3}{2}}}}{\ell} \cdot \left(\frac{{t}^{\left(\frac{3}{2}\right)}}{\ell} \cdot \sin k\right)\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
                                                                                                                  12. lower-*.f64N/A

                                                                                                                    \[\leadsto \frac{2}{\left(\left(\frac{{t}^{\frac{3}{2}}}{\ell} \cdot \color{blue}{\left(\frac{{t}^{\left(\frac{3}{2}\right)}}{\ell} \cdot \sin k\right)}\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
                                                                                                                  13. lower-/.f64N/A

                                                                                                                    \[\leadsto \frac{2}{\left(\left(\frac{{t}^{\frac{3}{2}}}{\ell} \cdot \left(\color{blue}{\frac{{t}^{\left(\frac{3}{2}\right)}}{\ell}} \cdot \sin k\right)\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
                                                                                                                  14. lower-pow.f64N/A

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

                                                                                                                    \[\leadsto \frac{2}{\left(\left(\frac{{t}^{1.5}}{\ell} \cdot \left(\frac{{t}^{\color{blue}{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)} \]
                                                                                                                4. Applied rewrites22.5%

                                                                                                                  \[\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. Taylor expanded in t around 0

                                                                                                                  \[\leadsto \frac{2}{\color{blue}{\frac{{k}^{2} \cdot \left(t \cdot {\sin k}^{2}\right)}{{\ell}^{2} \cdot \cos k}}} \]
                                                                                                                6. Step-by-step derivation
                                                                                                                  1. *-commutativeN/A

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

                                                                                                                    \[\leadsto \frac{2}{\frac{\color{blue}{t \cdot \left({\sin k}^{2} \cdot {k}^{2}\right)}}{{\ell}^{2} \cdot \cos k}} \]
                                                                                                                  3. *-commutativeN/A

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

                                                                                                                    \[\leadsto \frac{2}{\color{blue}{t \cdot \frac{{k}^{2} \cdot {\sin k}^{2}}{{\ell}^{2} \cdot \cos k}}} \]
                                                                                                                  5. associate-/l*N/A

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

                                                                                                                    \[\leadsto \frac{2}{\color{blue}{\left(t \cdot {k}^{2}\right) \cdot \frac{{\sin k}^{2}}{{\ell}^{2} \cdot \cos k}}} \]
                                                                                                                  7. lower-*.f64N/A

                                                                                                                    \[\leadsto \frac{2}{\color{blue}{\left(t \cdot {k}^{2}\right) \cdot \frac{{\sin k}^{2}}{{\ell}^{2} \cdot \cos k}}} \]
                                                                                                                  8. lower-*.f64N/A

                                                                                                                    \[\leadsto \frac{2}{\color{blue}{\left(t \cdot {k}^{2}\right)} \cdot \frac{{\sin k}^{2}}{{\ell}^{2} \cdot \cos k}} \]
                                                                                                                  9. unpow2N/A

                                                                                                                    \[\leadsto \frac{2}{\left(t \cdot \color{blue}{\left(k \cdot k\right)}\right) \cdot \frac{{\sin k}^{2}}{{\ell}^{2} \cdot \cos k}} \]
                                                                                                                  10. lower-*.f64N/A

                                                                                                                    \[\leadsto \frac{2}{\left(t \cdot \color{blue}{\left(k \cdot k\right)}\right) \cdot \frac{{\sin k}^{2}}{{\ell}^{2} \cdot \cos k}} \]
                                                                                                                  11. lower-/.f64N/A

                                                                                                                    \[\leadsto \frac{2}{\left(t \cdot \left(k \cdot k\right)\right) \cdot \color{blue}{\frac{{\sin k}^{2}}{{\ell}^{2} \cdot \cos k}}} \]
                                                                                                                  12. lower-pow.f64N/A

                                                                                                                    \[\leadsto \frac{2}{\left(t \cdot \left(k \cdot k\right)\right) \cdot \frac{\color{blue}{{\sin k}^{2}}}{{\ell}^{2} \cdot \cos k}} \]
                                                                                                                  13. lower-sin.f64N/A

                                                                                                                    \[\leadsto \frac{2}{\left(t \cdot \left(k \cdot k\right)\right) \cdot \frac{{\color{blue}{\sin k}}^{2}}{{\ell}^{2} \cdot \cos k}} \]
                                                                                                                  14. *-commutativeN/A

                                                                                                                    \[\leadsto \frac{2}{\left(t \cdot \left(k \cdot k\right)\right) \cdot \frac{{\sin k}^{2}}{\color{blue}{\cos k \cdot {\ell}^{2}}}} \]
                                                                                                                  15. unpow2N/A

                                                                                                                    \[\leadsto \frac{2}{\left(t \cdot \left(k \cdot k\right)\right) \cdot \frac{{\sin k}^{2}}{\cos k \cdot \color{blue}{\left(\ell \cdot \ell\right)}}} \]
                                                                                                                  16. associate-*r*N/A

                                                                                                                    \[\leadsto \frac{2}{\left(t \cdot \left(k \cdot k\right)\right) \cdot \frac{{\sin k}^{2}}{\color{blue}{\left(\cos k \cdot \ell\right) \cdot \ell}}} \]
                                                                                                                  17. *-commutativeN/A

                                                                                                                    \[\leadsto \frac{2}{\left(t \cdot \left(k \cdot k\right)\right) \cdot \frac{{\sin k}^{2}}{\color{blue}{\left(\ell \cdot \cos k\right)} \cdot \ell}} \]
                                                                                                                  18. lower-*.f64N/A

                                                                                                                    \[\leadsto \frac{2}{\left(t \cdot \left(k \cdot k\right)\right) \cdot \frac{{\sin k}^{2}}{\color{blue}{\left(\ell \cdot \cos k\right) \cdot \ell}}} \]
                                                                                                                  19. *-commutativeN/A

                                                                                                                    \[\leadsto \frac{2}{\left(t \cdot \left(k \cdot k\right)\right) \cdot \frac{{\sin k}^{2}}{\color{blue}{\left(\cos k \cdot \ell\right)} \cdot \ell}} \]
                                                                                                                  20. lower-*.f64N/A

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

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

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

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

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

                                                                                                                  if 2.24999999999999987e-23 < t < 1e94

                                                                                                                  1. Initial program 68.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. Taylor expanded in k around 0

                                                                                                                    \[\leadsto \color{blue}{\frac{{\ell}^{2}}{{k}^{2} \cdot {t}^{3}}} \]
                                                                                                                  4. Step-by-step derivation
                                                                                                                    1. unpow2N/A

                                                                                                                      \[\leadsto \frac{\color{blue}{\ell \cdot \ell}}{{k}^{2} \cdot {t}^{3}} \]
                                                                                                                    2. *-commutativeN/A

                                                                                                                      \[\leadsto \frac{\ell \cdot \ell}{\color{blue}{{t}^{3} \cdot {k}^{2}}} \]
                                                                                                                    3. times-fracN/A

                                                                                                                      \[\leadsto \color{blue}{\frac{\ell}{{t}^{3}} \cdot \frac{\ell}{{k}^{2}}} \]
                                                                                                                    4. lower-*.f64N/A

                                                                                                                      \[\leadsto \color{blue}{\frac{\ell}{{t}^{3}} \cdot \frac{\ell}{{k}^{2}}} \]
                                                                                                                    5. lower-/.f64N/A

                                                                                                                      \[\leadsto \color{blue}{\frac{\ell}{{t}^{3}}} \cdot \frac{\ell}{{k}^{2}} \]
                                                                                                                    6. lower-pow.f64N/A

                                                                                                                      \[\leadsto \frac{\ell}{\color{blue}{{t}^{3}}} \cdot \frac{\ell}{{k}^{2}} \]
                                                                                                                    7. lower-/.f64N/A

                                                                                                                      \[\leadsto \frac{\ell}{{t}^{3}} \cdot \color{blue}{\frac{\ell}{{k}^{2}}} \]
                                                                                                                    8. unpow2N/A

                                                                                                                      \[\leadsto \frac{\ell}{{t}^{3}} \cdot \frac{\ell}{\color{blue}{k \cdot k}} \]
                                                                                                                    9. lower-*.f6445.9

                                                                                                                      \[\leadsto \frac{\ell}{{t}^{3}} \cdot \frac{\ell}{\color{blue}{k \cdot k}} \]
                                                                                                                  5. Applied rewrites45.9%

                                                                                                                    \[\leadsto \color{blue}{\frac{\ell}{{t}^{3}} \cdot \frac{\ell}{k \cdot k}} \]
                                                                                                                  6. Step-by-step derivation
                                                                                                                    1. Applied rewrites69.5%

                                                                                                                      \[\leadsto \frac{\ell}{{t}^{3} \cdot k} \cdot \color{blue}{\frac{\ell}{k}} \]
                                                                                                                    2. Step-by-step derivation
                                                                                                                      1. Applied rewrites69.7%

                                                                                                                        \[\leadsto \frac{\ell}{\left(t \cdot t\right) \cdot \left(t \cdot k\right)} \cdot \frac{\ell}{k} \]

                                                                                                                      if 1e94 < t

                                                                                                                      1. Initial program 53.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. Taylor expanded in k around 0

                                                                                                                        \[\leadsto \color{blue}{\frac{{\ell}^{2}}{{k}^{2} \cdot {t}^{3}}} \]
                                                                                                                      4. Step-by-step derivation
                                                                                                                        1. unpow2N/A

                                                                                                                          \[\leadsto \frac{\color{blue}{\ell \cdot \ell}}{{k}^{2} \cdot {t}^{3}} \]
                                                                                                                        2. *-commutativeN/A

                                                                                                                          \[\leadsto \frac{\ell \cdot \ell}{\color{blue}{{t}^{3} \cdot {k}^{2}}} \]
                                                                                                                        3. times-fracN/A

                                                                                                                          \[\leadsto \color{blue}{\frac{\ell}{{t}^{3}} \cdot \frac{\ell}{{k}^{2}}} \]
                                                                                                                        4. lower-*.f64N/A

                                                                                                                          \[\leadsto \color{blue}{\frac{\ell}{{t}^{3}} \cdot \frac{\ell}{{k}^{2}}} \]
                                                                                                                        5. lower-/.f64N/A

                                                                                                                          \[\leadsto \color{blue}{\frac{\ell}{{t}^{3}}} \cdot \frac{\ell}{{k}^{2}} \]
                                                                                                                        6. lower-pow.f64N/A

                                                                                                                          \[\leadsto \frac{\ell}{\color{blue}{{t}^{3}}} \cdot \frac{\ell}{{k}^{2}} \]
                                                                                                                        7. lower-/.f64N/A

                                                                                                                          \[\leadsto \frac{\ell}{{t}^{3}} \cdot \color{blue}{\frac{\ell}{{k}^{2}}} \]
                                                                                                                        8. unpow2N/A

                                                                                                                          \[\leadsto \frac{\ell}{{t}^{3}} \cdot \frac{\ell}{\color{blue}{k \cdot k}} \]
                                                                                                                        9. lower-*.f6454.9

                                                                                                                          \[\leadsto \frac{\ell}{{t}^{3}} \cdot \frac{\ell}{\color{blue}{k \cdot k}} \]
                                                                                                                      5. Applied rewrites54.9%

                                                                                                                        \[\leadsto \color{blue}{\frac{\ell}{{t}^{3}} \cdot \frac{\ell}{k \cdot k}} \]
                                                                                                                      6. Step-by-step derivation
                                                                                                                        1. Applied rewrites59.1%

                                                                                                                          \[\leadsto \frac{\ell}{t \cdot t} \cdot \color{blue}{\frac{\ell}{t \cdot \left(k \cdot k\right)}} \]
                                                                                                                        2. Step-by-step derivation
                                                                                                                          1. Applied rewrites49.2%

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

                                                                                                                              \[\leadsto \frac{-\ell}{\left(k \cdot t\right) \cdot \left(\left(-k\right) \cdot t\right)} \cdot \color{blue}{\frac{\ell}{t}} \]
                                                                                                                          3. Recombined 3 regimes into one program.
                                                                                                                          4. Final simplification66.4%

                                                                                                                            \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq 2.25 \cdot 10^{-23}:\\ \;\;\;\;\frac{2}{\left(t \cdot \left(k \cdot k\right)\right) \cdot \left(\frac{k}{\ell} \cdot \frac{k}{\ell}\right)}\\ \mathbf{elif}\;t \leq 10^{+94}:\\ \;\;\;\;\frac{\ell}{\left(t \cdot t\right) \cdot \left(t \cdot k\right)} \cdot \frac{\ell}{k}\\ \mathbf{else}:\\ \;\;\;\;\frac{\ell}{\left(k \cdot t\right) \cdot \left(k \cdot t\right)} \cdot \frac{\ell}{t}\\ \end{array} \]
                                                                                                                          5. Add Preprocessing

                                                                                                                          Alternative 16: 73.6% accurate, 8.4× 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.25 \cdot 10^{-23}:\\ \;\;\;\;\frac{\frac{\frac{\ell}{\left(k \cdot k\right) \cdot t\_m} \cdot \ell}{t\_m}}{t\_m}\\ \mathbf{elif}\;t\_m \leq 10^{+94}:\\ \;\;\;\;\frac{\ell}{\left(t\_m \cdot t\_m\right) \cdot \left(t\_m \cdot k\right)} \cdot \frac{\ell}{k}\\ \mathbf{else}:\\ \;\;\;\;\frac{\ell}{\left(k \cdot t\_m\right) \cdot \left(k \cdot t\_m\right)} \cdot \frac{\ell}{t\_m}\\ \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.25e-23)
                                                                                                                              (/ (/ (* (/ l (* (* k k) t_m)) l) t_m) t_m)
                                                                                                                              (if (<= t_m 1e+94)
                                                                                                                                (* (/ l (* (* t_m t_m) (* t_m k))) (/ l k))
                                                                                                                                (* (/ l (* (* k t_m) (* k t_m))) (/ l t_m))))))
                                                                                                                          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.25e-23) {
                                                                                                                          		tmp = (((l / ((k * k) * t_m)) * l) / t_m) / t_m;
                                                                                                                          	} else if (t_m <= 1e+94) {
                                                                                                                          		tmp = (l / ((t_m * t_m) * (t_m * k))) * (l / k);
                                                                                                                          	} else {
                                                                                                                          		tmp = (l / ((k * t_m) * (k * t_m))) * (l / t_m);
                                                                                                                          	}
                                                                                                                          	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 <= 2.25d-23) then
                                                                                                                                  tmp = (((l / ((k * k) * t_m)) * l) / t_m) / t_m
                                                                                                                              else if (t_m <= 1d+94) then
                                                                                                                                  tmp = (l / ((t_m * t_m) * (t_m * k))) * (l / k)
                                                                                                                              else
                                                                                                                                  tmp = (l / ((k * t_m) * (k * t_m))) * (l / t_m)
                                                                                                                              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 <= 2.25e-23) {
                                                                                                                          		tmp = (((l / ((k * k) * t_m)) * l) / t_m) / t_m;
                                                                                                                          	} else if (t_m <= 1e+94) {
                                                                                                                          		tmp = (l / ((t_m * t_m) * (t_m * k))) * (l / k);
                                                                                                                          	} else {
                                                                                                                          		tmp = (l / ((k * t_m) * (k * t_m))) * (l / t_m);
                                                                                                                          	}
                                                                                                                          	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 <= 2.25e-23:
                                                                                                                          		tmp = (((l / ((k * k) * t_m)) * l) / t_m) / t_m
                                                                                                                          	elif t_m <= 1e+94:
                                                                                                                          		tmp = (l / ((t_m * t_m) * (t_m * k))) * (l / k)
                                                                                                                          	else:
                                                                                                                          		tmp = (l / ((k * t_m) * (k * t_m))) * (l / t_m)
                                                                                                                          	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.25e-23)
                                                                                                                          		tmp = Float64(Float64(Float64(Float64(l / Float64(Float64(k * k) * t_m)) * l) / t_m) / t_m);
                                                                                                                          	elseif (t_m <= 1e+94)
                                                                                                                          		tmp = Float64(Float64(l / Float64(Float64(t_m * t_m) * Float64(t_m * k))) * Float64(l / k));
                                                                                                                          	else
                                                                                                                          		tmp = Float64(Float64(l / Float64(Float64(k * t_m) * Float64(k * t_m))) * Float64(l / t_m));
                                                                                                                          	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 <= 2.25e-23)
                                                                                                                          		tmp = (((l / ((k * k) * t_m)) * l) / t_m) / t_m;
                                                                                                                          	elseif (t_m <= 1e+94)
                                                                                                                          		tmp = (l / ((t_m * t_m) * (t_m * k))) * (l / k);
                                                                                                                          	else
                                                                                                                          		tmp = (l / ((k * t_m) * (k * t_m))) * (l / t_m);
                                                                                                                          	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, 2.25e-23], N[(N[(N[(N[(l / N[(N[(k * k), $MachinePrecision] * t$95$m), $MachinePrecision]), $MachinePrecision] * l), $MachinePrecision] / t$95$m), $MachinePrecision] / t$95$m), $MachinePrecision], If[LessEqual[t$95$m, 1e+94], N[(N[(l / N[(N[(t$95$m * t$95$m), $MachinePrecision] * N[(t$95$m * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(l / k), $MachinePrecision]), $MachinePrecision], N[(N[(l / N[(N[(k * t$95$m), $MachinePrecision] * N[(k * t$95$m), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(l / t$95$m), $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.25 \cdot 10^{-23}:\\
                                                                                                                          \;\;\;\;\frac{\frac{\frac{\ell}{\left(k \cdot k\right) \cdot t\_m} \cdot \ell}{t\_m}}{t\_m}\\
                                                                                                                          
                                                                                                                          \mathbf{elif}\;t\_m \leq 10^{+94}:\\
                                                                                                                          \;\;\;\;\frac{\ell}{\left(t\_m \cdot t\_m\right) \cdot \left(t\_m \cdot k\right)} \cdot \frac{\ell}{k}\\
                                                                                                                          
                                                                                                                          \mathbf{else}:\\
                                                                                                                          \;\;\;\;\frac{\ell}{\left(k \cdot t\_m\right) \cdot \left(k \cdot t\_m\right)} \cdot \frac{\ell}{t\_m}\\
                                                                                                                          
                                                                                                                          
                                                                                                                          \end{array}
                                                                                                                          \end{array}
                                                                                                                          
                                                                                                                          Derivation
                                                                                                                          1. Split input into 3 regimes
                                                                                                                          2. if t < 2.24999999999999987e-23

                                                                                                                            1. Initial program 49.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. Taylor expanded in k around 0

                                                                                                                              \[\leadsto \color{blue}{\frac{{\ell}^{2}}{{k}^{2} \cdot {t}^{3}}} \]
                                                                                                                            4. Step-by-step derivation
                                                                                                                              1. unpow2N/A

                                                                                                                                \[\leadsto \frac{\color{blue}{\ell \cdot \ell}}{{k}^{2} \cdot {t}^{3}} \]
                                                                                                                              2. *-commutativeN/A

                                                                                                                                \[\leadsto \frac{\ell \cdot \ell}{\color{blue}{{t}^{3} \cdot {k}^{2}}} \]
                                                                                                                              3. times-fracN/A

                                                                                                                                \[\leadsto \color{blue}{\frac{\ell}{{t}^{3}} \cdot \frac{\ell}{{k}^{2}}} \]
                                                                                                                              4. lower-*.f64N/A

                                                                                                                                \[\leadsto \color{blue}{\frac{\ell}{{t}^{3}} \cdot \frac{\ell}{{k}^{2}}} \]
                                                                                                                              5. lower-/.f64N/A

                                                                                                                                \[\leadsto \color{blue}{\frac{\ell}{{t}^{3}}} \cdot \frac{\ell}{{k}^{2}} \]
                                                                                                                              6. lower-pow.f64N/A

                                                                                                                                \[\leadsto \frac{\ell}{\color{blue}{{t}^{3}}} \cdot \frac{\ell}{{k}^{2}} \]
                                                                                                                              7. lower-/.f64N/A

                                                                                                                                \[\leadsto \frac{\ell}{{t}^{3}} \cdot \color{blue}{\frac{\ell}{{k}^{2}}} \]
                                                                                                                              8. unpow2N/A

                                                                                                                                \[\leadsto \frac{\ell}{{t}^{3}} \cdot \frac{\ell}{\color{blue}{k \cdot k}} \]
                                                                                                                              9. lower-*.f6455.6

                                                                                                                                \[\leadsto \frac{\ell}{{t}^{3}} \cdot \frac{\ell}{\color{blue}{k \cdot k}} \]
                                                                                                                            5. Applied rewrites55.6%

                                                                                                                              \[\leadsto \color{blue}{\frac{\ell}{{t}^{3}} \cdot \frac{\ell}{k \cdot k}} \]
                                                                                                                            6. Step-by-step derivation
                                                                                                                              1. Applied rewrites59.0%

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

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

                                                                                                                                if 2.24999999999999987e-23 < t < 1e94

                                                                                                                                1. Initial program 68.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. Taylor expanded in k around 0

                                                                                                                                  \[\leadsto \color{blue}{\frac{{\ell}^{2}}{{k}^{2} \cdot {t}^{3}}} \]
                                                                                                                                4. Step-by-step derivation
                                                                                                                                  1. unpow2N/A

                                                                                                                                    \[\leadsto \frac{\color{blue}{\ell \cdot \ell}}{{k}^{2} \cdot {t}^{3}} \]
                                                                                                                                  2. *-commutativeN/A

                                                                                                                                    \[\leadsto \frac{\ell \cdot \ell}{\color{blue}{{t}^{3} \cdot {k}^{2}}} \]
                                                                                                                                  3. times-fracN/A

                                                                                                                                    \[\leadsto \color{blue}{\frac{\ell}{{t}^{3}} \cdot \frac{\ell}{{k}^{2}}} \]
                                                                                                                                  4. lower-*.f64N/A

                                                                                                                                    \[\leadsto \color{blue}{\frac{\ell}{{t}^{3}} \cdot \frac{\ell}{{k}^{2}}} \]
                                                                                                                                  5. lower-/.f64N/A

                                                                                                                                    \[\leadsto \color{blue}{\frac{\ell}{{t}^{3}}} \cdot \frac{\ell}{{k}^{2}} \]
                                                                                                                                  6. lower-pow.f64N/A

                                                                                                                                    \[\leadsto \frac{\ell}{\color{blue}{{t}^{3}}} \cdot \frac{\ell}{{k}^{2}} \]
                                                                                                                                  7. lower-/.f64N/A

                                                                                                                                    \[\leadsto \frac{\ell}{{t}^{3}} \cdot \color{blue}{\frac{\ell}{{k}^{2}}} \]
                                                                                                                                  8. unpow2N/A

                                                                                                                                    \[\leadsto \frac{\ell}{{t}^{3}} \cdot \frac{\ell}{\color{blue}{k \cdot k}} \]
                                                                                                                                  9. lower-*.f6445.9

                                                                                                                                    \[\leadsto \frac{\ell}{{t}^{3}} \cdot \frac{\ell}{\color{blue}{k \cdot k}} \]
                                                                                                                                5. Applied rewrites45.9%

                                                                                                                                  \[\leadsto \color{blue}{\frac{\ell}{{t}^{3}} \cdot \frac{\ell}{k \cdot k}} \]
                                                                                                                                6. Step-by-step derivation
                                                                                                                                  1. Applied rewrites69.5%

                                                                                                                                    \[\leadsto \frac{\ell}{{t}^{3} \cdot k} \cdot \color{blue}{\frac{\ell}{k}} \]
                                                                                                                                  2. Step-by-step derivation
                                                                                                                                    1. Applied rewrites69.7%

                                                                                                                                      \[\leadsto \frac{\ell}{\left(t \cdot t\right) \cdot \left(t \cdot k\right)} \cdot \frac{\ell}{k} \]

                                                                                                                                    if 1e94 < t

                                                                                                                                    1. Initial program 53.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. Taylor expanded in k around 0

                                                                                                                                      \[\leadsto \color{blue}{\frac{{\ell}^{2}}{{k}^{2} \cdot {t}^{3}}} \]
                                                                                                                                    4. Step-by-step derivation
                                                                                                                                      1. unpow2N/A

                                                                                                                                        \[\leadsto \frac{\color{blue}{\ell \cdot \ell}}{{k}^{2} \cdot {t}^{3}} \]
                                                                                                                                      2. *-commutativeN/A

                                                                                                                                        \[\leadsto \frac{\ell \cdot \ell}{\color{blue}{{t}^{3} \cdot {k}^{2}}} \]
                                                                                                                                      3. times-fracN/A

                                                                                                                                        \[\leadsto \color{blue}{\frac{\ell}{{t}^{3}} \cdot \frac{\ell}{{k}^{2}}} \]
                                                                                                                                      4. lower-*.f64N/A

                                                                                                                                        \[\leadsto \color{blue}{\frac{\ell}{{t}^{3}} \cdot \frac{\ell}{{k}^{2}}} \]
                                                                                                                                      5. lower-/.f64N/A

                                                                                                                                        \[\leadsto \color{blue}{\frac{\ell}{{t}^{3}}} \cdot \frac{\ell}{{k}^{2}} \]
                                                                                                                                      6. lower-pow.f64N/A

                                                                                                                                        \[\leadsto \frac{\ell}{\color{blue}{{t}^{3}}} \cdot \frac{\ell}{{k}^{2}} \]
                                                                                                                                      7. lower-/.f64N/A

                                                                                                                                        \[\leadsto \frac{\ell}{{t}^{3}} \cdot \color{blue}{\frac{\ell}{{k}^{2}}} \]
                                                                                                                                      8. unpow2N/A

                                                                                                                                        \[\leadsto \frac{\ell}{{t}^{3}} \cdot \frac{\ell}{\color{blue}{k \cdot k}} \]
                                                                                                                                      9. lower-*.f6454.9

                                                                                                                                        \[\leadsto \frac{\ell}{{t}^{3}} \cdot \frac{\ell}{\color{blue}{k \cdot k}} \]
                                                                                                                                    5. Applied rewrites54.9%

                                                                                                                                      \[\leadsto \color{blue}{\frac{\ell}{{t}^{3}} \cdot \frac{\ell}{k \cdot k}} \]
                                                                                                                                    6. Step-by-step derivation
                                                                                                                                      1. Applied rewrites59.1%

                                                                                                                                        \[\leadsto \frac{\ell}{t \cdot t} \cdot \color{blue}{\frac{\ell}{t \cdot \left(k \cdot k\right)}} \]
                                                                                                                                      2. Step-by-step derivation
                                                                                                                                        1. Applied rewrites49.2%

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

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

                                                                                                                                          \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq 2.25 \cdot 10^{-23}:\\ \;\;\;\;\frac{\frac{\frac{\ell}{\left(k \cdot k\right) \cdot t} \cdot \ell}{t}}{t}\\ \mathbf{elif}\;t \leq 10^{+94}:\\ \;\;\;\;\frac{\ell}{\left(t \cdot t\right) \cdot \left(t \cdot k\right)} \cdot \frac{\ell}{k}\\ \mathbf{else}:\\ \;\;\;\;\frac{\ell}{\left(k \cdot t\right) \cdot \left(k \cdot t\right)} \cdot \frac{\ell}{t}\\ \end{array} \]
                                                                                                                                        5. Add Preprocessing

                                                                                                                                        Alternative 17: 70.7% accurate, 8.4× 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.7 \cdot 10^{-21}:\\ \;\;\;\;\frac{\ell}{\left(\left(k \cdot k\right) \cdot t\_m\right) \cdot \left(\frac{t\_m}{\ell} \cdot t\_m\right)}\\ \mathbf{elif}\;t\_m \leq 10^{+94}:\\ \;\;\;\;\frac{\ell}{\left(t\_m \cdot t\_m\right) \cdot \left(t\_m \cdot k\right)} \cdot \frac{\ell}{k}\\ \mathbf{else}:\\ \;\;\;\;\frac{\ell}{\left(k \cdot t\_m\right) \cdot \left(k \cdot t\_m\right)} \cdot \frac{\ell}{t\_m}\\ \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.7e-21)
                                                                                                                                            (/ l (* (* (* k k) t_m) (* (/ t_m l) t_m)))
                                                                                                                                            (if (<= t_m 1e+94)
                                                                                                                                              (* (/ l (* (* t_m t_m) (* t_m k))) (/ l k))
                                                                                                                                              (* (/ l (* (* k t_m) (* k t_m))) (/ l t_m))))))
                                                                                                                                        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.7e-21) {
                                                                                                                                        		tmp = l / (((k * k) * t_m) * ((t_m / l) * t_m));
                                                                                                                                        	} else if (t_m <= 1e+94) {
                                                                                                                                        		tmp = (l / ((t_m * t_m) * (t_m * k))) * (l / k);
                                                                                                                                        	} else {
                                                                                                                                        		tmp = (l / ((k * t_m) * (k * t_m))) * (l / t_m);
                                                                                                                                        	}
                                                                                                                                        	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 <= 3.7d-21) then
                                                                                                                                                tmp = l / (((k * k) * t_m) * ((t_m / l) * t_m))
                                                                                                                                            else if (t_m <= 1d+94) then
                                                                                                                                                tmp = (l / ((t_m * t_m) * (t_m * k))) * (l / k)
                                                                                                                                            else
                                                                                                                                                tmp = (l / ((k * t_m) * (k * t_m))) * (l / t_m)
                                                                                                                                            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 <= 3.7e-21) {
                                                                                                                                        		tmp = l / (((k * k) * t_m) * ((t_m / l) * t_m));
                                                                                                                                        	} else if (t_m <= 1e+94) {
                                                                                                                                        		tmp = (l / ((t_m * t_m) * (t_m * k))) * (l / k);
                                                                                                                                        	} else {
                                                                                                                                        		tmp = (l / ((k * t_m) * (k * t_m))) * (l / t_m);
                                                                                                                                        	}
                                                                                                                                        	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 <= 3.7e-21:
                                                                                                                                        		tmp = l / (((k * k) * t_m) * ((t_m / l) * t_m))
                                                                                                                                        	elif t_m <= 1e+94:
                                                                                                                                        		tmp = (l / ((t_m * t_m) * (t_m * k))) * (l / k)
                                                                                                                                        	else:
                                                                                                                                        		tmp = (l / ((k * t_m) * (k * t_m))) * (l / t_m)
                                                                                                                                        	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.7e-21)
                                                                                                                                        		tmp = Float64(l / Float64(Float64(Float64(k * k) * t_m) * Float64(Float64(t_m / l) * t_m)));
                                                                                                                                        	elseif (t_m <= 1e+94)
                                                                                                                                        		tmp = Float64(Float64(l / Float64(Float64(t_m * t_m) * Float64(t_m * k))) * Float64(l / k));
                                                                                                                                        	else
                                                                                                                                        		tmp = Float64(Float64(l / Float64(Float64(k * t_m) * Float64(k * t_m))) * Float64(l / t_m));
                                                                                                                                        	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 <= 3.7e-21)
                                                                                                                                        		tmp = l / (((k * k) * t_m) * ((t_m / l) * t_m));
                                                                                                                                        	elseif (t_m <= 1e+94)
                                                                                                                                        		tmp = (l / ((t_m * t_m) * (t_m * k))) * (l / k);
                                                                                                                                        	else
                                                                                                                                        		tmp = (l / ((k * t_m) * (k * t_m))) * (l / t_m);
                                                                                                                                        	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, 3.7e-21], N[(l / N[(N[(N[(k * k), $MachinePrecision] * t$95$m), $MachinePrecision] * N[(N[(t$95$m / l), $MachinePrecision] * t$95$m), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$m, 1e+94], N[(N[(l / N[(N[(t$95$m * t$95$m), $MachinePrecision] * N[(t$95$m * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(l / k), $MachinePrecision]), $MachinePrecision], N[(N[(l / N[(N[(k * t$95$m), $MachinePrecision] * N[(k * t$95$m), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(l / t$95$m), $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.7 \cdot 10^{-21}:\\
                                                                                                                                        \;\;\;\;\frac{\ell}{\left(\left(k \cdot k\right) \cdot t\_m\right) \cdot \left(\frac{t\_m}{\ell} \cdot t\_m\right)}\\
                                                                                                                                        
                                                                                                                                        \mathbf{elif}\;t\_m \leq 10^{+94}:\\
                                                                                                                                        \;\;\;\;\frac{\ell}{\left(t\_m \cdot t\_m\right) \cdot \left(t\_m \cdot k\right)} \cdot \frac{\ell}{k}\\
                                                                                                                                        
                                                                                                                                        \mathbf{else}:\\
                                                                                                                                        \;\;\;\;\frac{\ell}{\left(k \cdot t\_m\right) \cdot \left(k \cdot t\_m\right)} \cdot \frac{\ell}{t\_m}\\
                                                                                                                                        
                                                                                                                                        
                                                                                                                                        \end{array}
                                                                                                                                        \end{array}
                                                                                                                                        
                                                                                                                                        Derivation
                                                                                                                                        1. Split input into 3 regimes
                                                                                                                                        2. if t < 3.7000000000000002e-21

                                                                                                                                          1. Initial program 49.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. Taylor expanded in k around 0

                                                                                                                                            \[\leadsto \color{blue}{\frac{{\ell}^{2}}{{k}^{2} \cdot {t}^{3}}} \]
                                                                                                                                          4. Step-by-step derivation
                                                                                                                                            1. unpow2N/A

                                                                                                                                              \[\leadsto \frac{\color{blue}{\ell \cdot \ell}}{{k}^{2} \cdot {t}^{3}} \]
                                                                                                                                            2. *-commutativeN/A

                                                                                                                                              \[\leadsto \frac{\ell \cdot \ell}{\color{blue}{{t}^{3} \cdot {k}^{2}}} \]
                                                                                                                                            3. times-fracN/A

                                                                                                                                              \[\leadsto \color{blue}{\frac{\ell}{{t}^{3}} \cdot \frac{\ell}{{k}^{2}}} \]
                                                                                                                                            4. lower-*.f64N/A

                                                                                                                                              \[\leadsto \color{blue}{\frac{\ell}{{t}^{3}} \cdot \frac{\ell}{{k}^{2}}} \]
                                                                                                                                            5. lower-/.f64N/A

                                                                                                                                              \[\leadsto \color{blue}{\frac{\ell}{{t}^{3}}} \cdot \frac{\ell}{{k}^{2}} \]
                                                                                                                                            6. lower-pow.f64N/A

                                                                                                                                              \[\leadsto \frac{\ell}{\color{blue}{{t}^{3}}} \cdot \frac{\ell}{{k}^{2}} \]
                                                                                                                                            7. lower-/.f64N/A

                                                                                                                                              \[\leadsto \frac{\ell}{{t}^{3}} \cdot \color{blue}{\frac{\ell}{{k}^{2}}} \]
                                                                                                                                            8. unpow2N/A

                                                                                                                                              \[\leadsto \frac{\ell}{{t}^{3}} \cdot \frac{\ell}{\color{blue}{k \cdot k}} \]
                                                                                                                                            9. lower-*.f6455.6

                                                                                                                                              \[\leadsto \frac{\ell}{{t}^{3}} \cdot \frac{\ell}{\color{blue}{k \cdot k}} \]
                                                                                                                                          5. Applied rewrites55.6%

                                                                                                                                            \[\leadsto \color{blue}{\frac{\ell}{{t}^{3}} \cdot \frac{\ell}{k \cdot k}} \]
                                                                                                                                          6. Step-by-step derivation
                                                                                                                                            1. Applied rewrites59.0%

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

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

                                                                                                                                              if 3.7000000000000002e-21 < t < 1e94

                                                                                                                                              1. Initial program 68.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. Taylor expanded in k around 0

                                                                                                                                                \[\leadsto \color{blue}{\frac{{\ell}^{2}}{{k}^{2} \cdot {t}^{3}}} \]
                                                                                                                                              4. Step-by-step derivation
                                                                                                                                                1. unpow2N/A

                                                                                                                                                  \[\leadsto \frac{\color{blue}{\ell \cdot \ell}}{{k}^{2} \cdot {t}^{3}} \]
                                                                                                                                                2. *-commutativeN/A

                                                                                                                                                  \[\leadsto \frac{\ell \cdot \ell}{\color{blue}{{t}^{3} \cdot {k}^{2}}} \]
                                                                                                                                                3. times-fracN/A

                                                                                                                                                  \[\leadsto \color{blue}{\frac{\ell}{{t}^{3}} \cdot \frac{\ell}{{k}^{2}}} \]
                                                                                                                                                4. lower-*.f64N/A

                                                                                                                                                  \[\leadsto \color{blue}{\frac{\ell}{{t}^{3}} \cdot \frac{\ell}{{k}^{2}}} \]
                                                                                                                                                5. lower-/.f64N/A

                                                                                                                                                  \[\leadsto \color{blue}{\frac{\ell}{{t}^{3}}} \cdot \frac{\ell}{{k}^{2}} \]
                                                                                                                                                6. lower-pow.f64N/A

                                                                                                                                                  \[\leadsto \frac{\ell}{\color{blue}{{t}^{3}}} \cdot \frac{\ell}{{k}^{2}} \]
                                                                                                                                                7. lower-/.f64N/A

                                                                                                                                                  \[\leadsto \frac{\ell}{{t}^{3}} \cdot \color{blue}{\frac{\ell}{{k}^{2}}} \]
                                                                                                                                                8. unpow2N/A

                                                                                                                                                  \[\leadsto \frac{\ell}{{t}^{3}} \cdot \frac{\ell}{\color{blue}{k \cdot k}} \]
                                                                                                                                                9. lower-*.f6445.9

                                                                                                                                                  \[\leadsto \frac{\ell}{{t}^{3}} \cdot \frac{\ell}{\color{blue}{k \cdot k}} \]
                                                                                                                                              5. Applied rewrites45.9%

                                                                                                                                                \[\leadsto \color{blue}{\frac{\ell}{{t}^{3}} \cdot \frac{\ell}{k \cdot k}} \]
                                                                                                                                              6. Step-by-step derivation
                                                                                                                                                1. Applied rewrites69.5%

                                                                                                                                                  \[\leadsto \frac{\ell}{{t}^{3} \cdot k} \cdot \color{blue}{\frac{\ell}{k}} \]
                                                                                                                                                2. Step-by-step derivation
                                                                                                                                                  1. Applied rewrites69.7%

                                                                                                                                                    \[\leadsto \frac{\ell}{\left(t \cdot t\right) \cdot \left(t \cdot k\right)} \cdot \frac{\ell}{k} \]

                                                                                                                                                  if 1e94 < t

                                                                                                                                                  1. Initial program 53.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. Taylor expanded in k around 0

                                                                                                                                                    \[\leadsto \color{blue}{\frac{{\ell}^{2}}{{k}^{2} \cdot {t}^{3}}} \]
                                                                                                                                                  4. Step-by-step derivation
                                                                                                                                                    1. unpow2N/A

                                                                                                                                                      \[\leadsto \frac{\color{blue}{\ell \cdot \ell}}{{k}^{2} \cdot {t}^{3}} \]
                                                                                                                                                    2. *-commutativeN/A

                                                                                                                                                      \[\leadsto \frac{\ell \cdot \ell}{\color{blue}{{t}^{3} \cdot {k}^{2}}} \]
                                                                                                                                                    3. times-fracN/A

                                                                                                                                                      \[\leadsto \color{blue}{\frac{\ell}{{t}^{3}} \cdot \frac{\ell}{{k}^{2}}} \]
                                                                                                                                                    4. lower-*.f64N/A

                                                                                                                                                      \[\leadsto \color{blue}{\frac{\ell}{{t}^{3}} \cdot \frac{\ell}{{k}^{2}}} \]
                                                                                                                                                    5. lower-/.f64N/A

                                                                                                                                                      \[\leadsto \color{blue}{\frac{\ell}{{t}^{3}}} \cdot \frac{\ell}{{k}^{2}} \]
                                                                                                                                                    6. lower-pow.f64N/A

                                                                                                                                                      \[\leadsto \frac{\ell}{\color{blue}{{t}^{3}}} \cdot \frac{\ell}{{k}^{2}} \]
                                                                                                                                                    7. lower-/.f64N/A

                                                                                                                                                      \[\leadsto \frac{\ell}{{t}^{3}} \cdot \color{blue}{\frac{\ell}{{k}^{2}}} \]
                                                                                                                                                    8. unpow2N/A

                                                                                                                                                      \[\leadsto \frac{\ell}{{t}^{3}} \cdot \frac{\ell}{\color{blue}{k \cdot k}} \]
                                                                                                                                                    9. lower-*.f6454.9

                                                                                                                                                      \[\leadsto \frac{\ell}{{t}^{3}} \cdot \frac{\ell}{\color{blue}{k \cdot k}} \]
                                                                                                                                                  5. Applied rewrites54.9%

                                                                                                                                                    \[\leadsto \color{blue}{\frac{\ell}{{t}^{3}} \cdot \frac{\ell}{k \cdot k}} \]
                                                                                                                                                  6. Step-by-step derivation
                                                                                                                                                    1. Applied rewrites59.1%

                                                                                                                                                      \[\leadsto \frac{\ell}{t \cdot t} \cdot \color{blue}{\frac{\ell}{t \cdot \left(k \cdot k\right)}} \]
                                                                                                                                                    2. Step-by-step derivation
                                                                                                                                                      1. Applied rewrites49.2%

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

                                                                                                                                                          \[\leadsto \frac{-\ell}{\left(k \cdot t\right) \cdot \left(\left(-k\right) \cdot t\right)} \cdot \color{blue}{\frac{\ell}{t}} \]
                                                                                                                                                      3. Recombined 3 regimes into one program.
                                                                                                                                                      4. Final simplification68.3%

                                                                                                                                                        \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq 3.7 \cdot 10^{-21}:\\ \;\;\;\;\frac{\ell}{\left(\left(k \cdot k\right) \cdot t\right) \cdot \left(\frac{t}{\ell} \cdot t\right)}\\ \mathbf{elif}\;t \leq 10^{+94}:\\ \;\;\;\;\frac{\ell}{\left(t \cdot t\right) \cdot \left(t \cdot k\right)} \cdot \frac{\ell}{k}\\ \mathbf{else}:\\ \;\;\;\;\frac{\ell}{\left(k \cdot t\right) \cdot \left(k \cdot t\right)} \cdot \frac{\ell}{t}\\ \end{array} \]
                                                                                                                                                      5. Add Preprocessing

                                                                                                                                                      Alternative 18: 71.6% accurate, 8.4× 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.2 \cdot 10^{-52}:\\ \;\;\;\;\frac{\frac{\ell}{t\_m} \cdot \ell}{t\_m \cdot \left(\left(k \cdot k\right) \cdot t\_m\right)}\\ \mathbf{elif}\;t\_m \leq 10^{+94}:\\ \;\;\;\;\frac{\ell}{\left(t\_m \cdot t\_m\right) \cdot \left(t\_m \cdot k\right)} \cdot \frac{\ell}{k}\\ \mathbf{else}:\\ \;\;\;\;\frac{\ell}{\left(k \cdot t\_m\right) \cdot \left(k \cdot t\_m\right)} \cdot \frac{\ell}{t\_m}\\ \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.2e-52)
                                                                                                                                                          (/ (* (/ l t_m) l) (* t_m (* (* k k) t_m)))
                                                                                                                                                          (if (<= t_m 1e+94)
                                                                                                                                                            (* (/ l (* (* t_m t_m) (* t_m k))) (/ l k))
                                                                                                                                                            (* (/ l (* (* k t_m) (* k t_m))) (/ l t_m))))))
                                                                                                                                                      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.2e-52) {
                                                                                                                                                      		tmp = ((l / t_m) * l) / (t_m * ((k * k) * t_m));
                                                                                                                                                      	} else if (t_m <= 1e+94) {
                                                                                                                                                      		tmp = (l / ((t_m * t_m) * (t_m * k))) * (l / k);
                                                                                                                                                      	} else {
                                                                                                                                                      		tmp = (l / ((k * t_m) * (k * t_m))) * (l / t_m);
                                                                                                                                                      	}
                                                                                                                                                      	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 <= 3.2d-52) then
                                                                                                                                                              tmp = ((l / t_m) * l) / (t_m * ((k * k) * t_m))
                                                                                                                                                          else if (t_m <= 1d+94) then
                                                                                                                                                              tmp = (l / ((t_m * t_m) * (t_m * k))) * (l / k)
                                                                                                                                                          else
                                                                                                                                                              tmp = (l / ((k * t_m) * (k * t_m))) * (l / t_m)
                                                                                                                                                          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 <= 3.2e-52) {
                                                                                                                                                      		tmp = ((l / t_m) * l) / (t_m * ((k * k) * t_m));
                                                                                                                                                      	} else if (t_m <= 1e+94) {
                                                                                                                                                      		tmp = (l / ((t_m * t_m) * (t_m * k))) * (l / k);
                                                                                                                                                      	} else {
                                                                                                                                                      		tmp = (l / ((k * t_m) * (k * t_m))) * (l / t_m);
                                                                                                                                                      	}
                                                                                                                                                      	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 <= 3.2e-52:
                                                                                                                                                      		tmp = ((l / t_m) * l) / (t_m * ((k * k) * t_m))
                                                                                                                                                      	elif t_m <= 1e+94:
                                                                                                                                                      		tmp = (l / ((t_m * t_m) * (t_m * k))) * (l / k)
                                                                                                                                                      	else:
                                                                                                                                                      		tmp = (l / ((k * t_m) * (k * t_m))) * (l / t_m)
                                                                                                                                                      	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.2e-52)
                                                                                                                                                      		tmp = Float64(Float64(Float64(l / t_m) * l) / Float64(t_m * Float64(Float64(k * k) * t_m)));
                                                                                                                                                      	elseif (t_m <= 1e+94)
                                                                                                                                                      		tmp = Float64(Float64(l / Float64(Float64(t_m * t_m) * Float64(t_m * k))) * Float64(l / k));
                                                                                                                                                      	else
                                                                                                                                                      		tmp = Float64(Float64(l / Float64(Float64(k * t_m) * Float64(k * t_m))) * Float64(l / t_m));
                                                                                                                                                      	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 <= 3.2e-52)
                                                                                                                                                      		tmp = ((l / t_m) * l) / (t_m * ((k * k) * t_m));
                                                                                                                                                      	elseif (t_m <= 1e+94)
                                                                                                                                                      		tmp = (l / ((t_m * t_m) * (t_m * k))) * (l / k);
                                                                                                                                                      	else
                                                                                                                                                      		tmp = (l / ((k * t_m) * (k * t_m))) * (l / t_m);
                                                                                                                                                      	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, 3.2e-52], N[(N[(N[(l / t$95$m), $MachinePrecision] * l), $MachinePrecision] / N[(t$95$m * N[(N[(k * k), $MachinePrecision] * t$95$m), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$m, 1e+94], N[(N[(l / N[(N[(t$95$m * t$95$m), $MachinePrecision] * N[(t$95$m * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(l / k), $MachinePrecision]), $MachinePrecision], N[(N[(l / N[(N[(k * t$95$m), $MachinePrecision] * N[(k * t$95$m), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(l / t$95$m), $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.2 \cdot 10^{-52}:\\
                                                                                                                                                      \;\;\;\;\frac{\frac{\ell}{t\_m} \cdot \ell}{t\_m \cdot \left(\left(k \cdot k\right) \cdot t\_m\right)}\\
                                                                                                                                                      
                                                                                                                                                      \mathbf{elif}\;t\_m \leq 10^{+94}:\\
                                                                                                                                                      \;\;\;\;\frac{\ell}{\left(t\_m \cdot t\_m\right) \cdot \left(t\_m \cdot k\right)} \cdot \frac{\ell}{k}\\
                                                                                                                                                      
                                                                                                                                                      \mathbf{else}:\\
                                                                                                                                                      \;\;\;\;\frac{\ell}{\left(k \cdot t\_m\right) \cdot \left(k \cdot t\_m\right)} \cdot \frac{\ell}{t\_m}\\
                                                                                                                                                      
                                                                                                                                                      
                                                                                                                                                      \end{array}
                                                                                                                                                      \end{array}
                                                                                                                                                      
                                                                                                                                                      Derivation
                                                                                                                                                      1. Split input into 3 regimes
                                                                                                                                                      2. if t < 3.2000000000000001e-52

                                                                                                                                                        1. Initial program 48.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. Taylor expanded in k around 0

                                                                                                                                                          \[\leadsto \color{blue}{\frac{{\ell}^{2}}{{k}^{2} \cdot {t}^{3}}} \]
                                                                                                                                                        4. Step-by-step derivation
                                                                                                                                                          1. unpow2N/A

                                                                                                                                                            \[\leadsto \frac{\color{blue}{\ell \cdot \ell}}{{k}^{2} \cdot {t}^{3}} \]
                                                                                                                                                          2. *-commutativeN/A

                                                                                                                                                            \[\leadsto \frac{\ell \cdot \ell}{\color{blue}{{t}^{3} \cdot {k}^{2}}} \]
                                                                                                                                                          3. times-fracN/A

                                                                                                                                                            \[\leadsto \color{blue}{\frac{\ell}{{t}^{3}} \cdot \frac{\ell}{{k}^{2}}} \]
                                                                                                                                                          4. lower-*.f64N/A

                                                                                                                                                            \[\leadsto \color{blue}{\frac{\ell}{{t}^{3}} \cdot \frac{\ell}{{k}^{2}}} \]
                                                                                                                                                          5. lower-/.f64N/A

                                                                                                                                                            \[\leadsto \color{blue}{\frac{\ell}{{t}^{3}}} \cdot \frac{\ell}{{k}^{2}} \]
                                                                                                                                                          6. lower-pow.f64N/A

                                                                                                                                                            \[\leadsto \frac{\ell}{\color{blue}{{t}^{3}}} \cdot \frac{\ell}{{k}^{2}} \]
                                                                                                                                                          7. lower-/.f64N/A

                                                                                                                                                            \[\leadsto \frac{\ell}{{t}^{3}} \cdot \color{blue}{\frac{\ell}{{k}^{2}}} \]
                                                                                                                                                          8. unpow2N/A

                                                                                                                                                            \[\leadsto \frac{\ell}{{t}^{3}} \cdot \frac{\ell}{\color{blue}{k \cdot k}} \]
                                                                                                                                                          9. lower-*.f6455.0

                                                                                                                                                            \[\leadsto \frac{\ell}{{t}^{3}} \cdot \frac{\ell}{\color{blue}{k \cdot k}} \]
                                                                                                                                                        5. Applied rewrites55.0%

                                                                                                                                                          \[\leadsto \color{blue}{\frac{\ell}{{t}^{3}} \cdot \frac{\ell}{k \cdot k}} \]
                                                                                                                                                        6. Step-by-step derivation
                                                                                                                                                          1. Applied rewrites58.4%

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

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

                                                                                                                                                            if 3.2000000000000001e-52 < t < 1e94

                                                                                                                                                            1. Initial program 71.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. Add Preprocessing
                                                                                                                                                            3. Taylor expanded in k around 0

                                                                                                                                                              \[\leadsto \color{blue}{\frac{{\ell}^{2}}{{k}^{2} \cdot {t}^{3}}} \]
                                                                                                                                                            4. Step-by-step derivation
                                                                                                                                                              1. unpow2N/A

                                                                                                                                                                \[\leadsto \frac{\color{blue}{\ell \cdot \ell}}{{k}^{2} \cdot {t}^{3}} \]
                                                                                                                                                              2. *-commutativeN/A

                                                                                                                                                                \[\leadsto \frac{\ell \cdot \ell}{\color{blue}{{t}^{3} \cdot {k}^{2}}} \]
                                                                                                                                                              3. times-fracN/A

                                                                                                                                                                \[\leadsto \color{blue}{\frac{\ell}{{t}^{3}} \cdot \frac{\ell}{{k}^{2}}} \]
                                                                                                                                                              4. lower-*.f64N/A

                                                                                                                                                                \[\leadsto \color{blue}{\frac{\ell}{{t}^{3}} \cdot \frac{\ell}{{k}^{2}}} \]
                                                                                                                                                              5. lower-/.f64N/A

                                                                                                                                                                \[\leadsto \color{blue}{\frac{\ell}{{t}^{3}}} \cdot \frac{\ell}{{k}^{2}} \]
                                                                                                                                                              6. lower-pow.f64N/A

                                                                                                                                                                \[\leadsto \frac{\ell}{\color{blue}{{t}^{3}}} \cdot \frac{\ell}{{k}^{2}} \]
                                                                                                                                                              7. lower-/.f64N/A

                                                                                                                                                                \[\leadsto \frac{\ell}{{t}^{3}} \cdot \color{blue}{\frac{\ell}{{k}^{2}}} \]
                                                                                                                                                              8. unpow2N/A

                                                                                                                                                                \[\leadsto \frac{\ell}{{t}^{3}} \cdot \frac{\ell}{\color{blue}{k \cdot k}} \]
                                                                                                                                                              9. lower-*.f6454.1

                                                                                                                                                                \[\leadsto \frac{\ell}{{t}^{3}} \cdot \frac{\ell}{\color{blue}{k \cdot k}} \]
                                                                                                                                                            5. Applied rewrites54.1%

                                                                                                                                                              \[\leadsto \color{blue}{\frac{\ell}{{t}^{3}} \cdot \frac{\ell}{k \cdot k}} \]
                                                                                                                                                            6. Step-by-step derivation
                                                                                                                                                              1. Applied rewrites72.0%

                                                                                                                                                                \[\leadsto \frac{\ell}{{t}^{3} \cdot k} \cdot \color{blue}{\frac{\ell}{k}} \]
                                                                                                                                                              2. Step-by-step derivation
                                                                                                                                                                1. Applied rewrites72.1%

                                                                                                                                                                  \[\leadsto \frac{\ell}{\left(t \cdot t\right) \cdot \left(t \cdot k\right)} \cdot \frac{\ell}{k} \]

                                                                                                                                                                if 1e94 < t

                                                                                                                                                                1. Initial program 53.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. Taylor expanded in k around 0

                                                                                                                                                                  \[\leadsto \color{blue}{\frac{{\ell}^{2}}{{k}^{2} \cdot {t}^{3}}} \]
                                                                                                                                                                4. Step-by-step derivation
                                                                                                                                                                  1. unpow2N/A

                                                                                                                                                                    \[\leadsto \frac{\color{blue}{\ell \cdot \ell}}{{k}^{2} \cdot {t}^{3}} \]
                                                                                                                                                                  2. *-commutativeN/A

                                                                                                                                                                    \[\leadsto \frac{\ell \cdot \ell}{\color{blue}{{t}^{3} \cdot {k}^{2}}} \]
                                                                                                                                                                  3. times-fracN/A

                                                                                                                                                                    \[\leadsto \color{blue}{\frac{\ell}{{t}^{3}} \cdot \frac{\ell}{{k}^{2}}} \]
                                                                                                                                                                  4. lower-*.f64N/A

                                                                                                                                                                    \[\leadsto \color{blue}{\frac{\ell}{{t}^{3}} \cdot \frac{\ell}{{k}^{2}}} \]
                                                                                                                                                                  5. lower-/.f64N/A

                                                                                                                                                                    \[\leadsto \color{blue}{\frac{\ell}{{t}^{3}}} \cdot \frac{\ell}{{k}^{2}} \]
                                                                                                                                                                  6. lower-pow.f64N/A

                                                                                                                                                                    \[\leadsto \frac{\ell}{\color{blue}{{t}^{3}}} \cdot \frac{\ell}{{k}^{2}} \]
                                                                                                                                                                  7. lower-/.f64N/A

                                                                                                                                                                    \[\leadsto \frac{\ell}{{t}^{3}} \cdot \color{blue}{\frac{\ell}{{k}^{2}}} \]
                                                                                                                                                                  8. unpow2N/A

                                                                                                                                                                    \[\leadsto \frac{\ell}{{t}^{3}} \cdot \frac{\ell}{\color{blue}{k \cdot k}} \]
                                                                                                                                                                  9. lower-*.f6454.9

                                                                                                                                                                    \[\leadsto \frac{\ell}{{t}^{3}} \cdot \frac{\ell}{\color{blue}{k \cdot k}} \]
                                                                                                                                                                5. Applied rewrites54.9%

                                                                                                                                                                  \[\leadsto \color{blue}{\frac{\ell}{{t}^{3}} \cdot \frac{\ell}{k \cdot k}} \]
                                                                                                                                                                6. Step-by-step derivation
                                                                                                                                                                  1. Applied rewrites59.1%

                                                                                                                                                                    \[\leadsto \frac{\ell}{t \cdot t} \cdot \color{blue}{\frac{\ell}{t \cdot \left(k \cdot k\right)}} \]
                                                                                                                                                                  2. Step-by-step derivation
                                                                                                                                                                    1. Applied rewrites49.2%

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

                                                                                                                                                                        \[\leadsto \frac{-\ell}{\left(k \cdot t\right) \cdot \left(\left(-k\right) \cdot t\right)} \cdot \color{blue}{\frac{\ell}{t}} \]
                                                                                                                                                                    3. Recombined 3 regimes into one program.
                                                                                                                                                                    4. Final simplification66.6%

                                                                                                                                                                      \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq 3.2 \cdot 10^{-52}:\\ \;\;\;\;\frac{\frac{\ell}{t} \cdot \ell}{t \cdot \left(\left(k \cdot k\right) \cdot t\right)}\\ \mathbf{elif}\;t \leq 10^{+94}:\\ \;\;\;\;\frac{\ell}{\left(t \cdot t\right) \cdot \left(t \cdot k\right)} \cdot \frac{\ell}{k}\\ \mathbf{else}:\\ \;\;\;\;\frac{\ell}{\left(k \cdot t\right) \cdot \left(k \cdot t\right)} \cdot \frac{\ell}{t}\\ \end{array} \]
                                                                                                                                                                    5. Add Preprocessing

                                                                                                                                                                    Alternative 19: 62.9% accurate, 8.4× speedup?

                                                                                                                                                                    \[\begin{array}{l} t\_m = \left|t\right| \\ t\_s = \mathsf{copysign}\left(1, t\right) \\ \begin{array}{l} t_2 := \left(k \cdot k\right) \cdot t\_m\\ t\_s \cdot \begin{array}{l} \mathbf{if}\;t\_m \leq 2.8 \cdot 10^{-163}:\\ \;\;\;\;\frac{\ell \cdot \ell}{\left(t\_2 \cdot t\_m\right) \cdot t\_m}\\ \mathbf{elif}\;t\_m \leq 7.2 \cdot 10^{+163}:\\ \;\;\;\;\ell \cdot \frac{\frac{\ell}{t\_2}}{t\_m \cdot t\_m}\\ \mathbf{else}:\\ \;\;\;\;\frac{\ell \cdot \ell}{\left(\left(k \cdot t\_m\right) \cdot \left(k \cdot t\_m\right)\right) \cdot t\_m}\\ \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 (* (* k k) t_m)))
                                                                                                                                                                       (*
                                                                                                                                                                        t_s
                                                                                                                                                                        (if (<= t_m 2.8e-163)
                                                                                                                                                                          (/ (* l l) (* (* t_2 t_m) t_m))
                                                                                                                                                                          (if (<= t_m 7.2e+163)
                                                                                                                                                                            (* l (/ (/ l t_2) (* t_m t_m)))
                                                                                                                                                                            (/ (* l l) (* (* (* k t_m) (* k t_m)) t_m)))))))
                                                                                                                                                                    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 = (k * k) * t_m;
                                                                                                                                                                    	double tmp;
                                                                                                                                                                    	if (t_m <= 2.8e-163) {
                                                                                                                                                                    		tmp = (l * l) / ((t_2 * t_m) * t_m);
                                                                                                                                                                    	} else if (t_m <= 7.2e+163) {
                                                                                                                                                                    		tmp = l * ((l / t_2) / (t_m * t_m));
                                                                                                                                                                    	} else {
                                                                                                                                                                    		tmp = (l * l) / (((k * t_m) * (k * t_m)) * t_m);
                                                                                                                                                                    	}
                                                                                                                                                                    	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) :: t_2
                                                                                                                                                                        real(8) :: tmp
                                                                                                                                                                        t_2 = (k * k) * t_m
                                                                                                                                                                        if (t_m <= 2.8d-163) then
                                                                                                                                                                            tmp = (l * l) / ((t_2 * t_m) * t_m)
                                                                                                                                                                        else if (t_m <= 7.2d+163) then
                                                                                                                                                                            tmp = l * ((l / t_2) / (t_m * t_m))
                                                                                                                                                                        else
                                                                                                                                                                            tmp = (l * l) / (((k * t_m) * (k * t_m)) * t_m)
                                                                                                                                                                        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 t_2 = (k * k) * t_m;
                                                                                                                                                                    	double tmp;
                                                                                                                                                                    	if (t_m <= 2.8e-163) {
                                                                                                                                                                    		tmp = (l * l) / ((t_2 * t_m) * t_m);
                                                                                                                                                                    	} else if (t_m <= 7.2e+163) {
                                                                                                                                                                    		tmp = l * ((l / t_2) / (t_m * t_m));
                                                                                                                                                                    	} else {
                                                                                                                                                                    		tmp = (l * l) / (((k * t_m) * (k * t_m)) * t_m);
                                                                                                                                                                    	}
                                                                                                                                                                    	return t_s * tmp;
                                                                                                                                                                    }
                                                                                                                                                                    
                                                                                                                                                                    t\_m = math.fabs(t)
                                                                                                                                                                    t\_s = math.copysign(1.0, t)
                                                                                                                                                                    def code(t_s, t_m, l, k):
                                                                                                                                                                    	t_2 = (k * k) * t_m
                                                                                                                                                                    	tmp = 0
                                                                                                                                                                    	if t_m <= 2.8e-163:
                                                                                                                                                                    		tmp = (l * l) / ((t_2 * t_m) * t_m)
                                                                                                                                                                    	elif t_m <= 7.2e+163:
                                                                                                                                                                    		tmp = l * ((l / t_2) / (t_m * t_m))
                                                                                                                                                                    	else:
                                                                                                                                                                    		tmp = (l * l) / (((k * t_m) * (k * t_m)) * t_m)
                                                                                                                                                                    	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(Float64(k * k) * t_m)
                                                                                                                                                                    	tmp = 0.0
                                                                                                                                                                    	if (t_m <= 2.8e-163)
                                                                                                                                                                    		tmp = Float64(Float64(l * l) / Float64(Float64(t_2 * t_m) * t_m));
                                                                                                                                                                    	elseif (t_m <= 7.2e+163)
                                                                                                                                                                    		tmp = Float64(l * Float64(Float64(l / t_2) / Float64(t_m * t_m)));
                                                                                                                                                                    	else
                                                                                                                                                                    		tmp = Float64(Float64(l * l) / Float64(Float64(Float64(k * t_m) * Float64(k * t_m)) * t_m));
                                                                                                                                                                    	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)
                                                                                                                                                                    	t_2 = (k * k) * t_m;
                                                                                                                                                                    	tmp = 0.0;
                                                                                                                                                                    	if (t_m <= 2.8e-163)
                                                                                                                                                                    		tmp = (l * l) / ((t_2 * t_m) * t_m);
                                                                                                                                                                    	elseif (t_m <= 7.2e+163)
                                                                                                                                                                    		tmp = l * ((l / t_2) / (t_m * t_m));
                                                                                                                                                                    	else
                                                                                                                                                                    		tmp = (l * l) / (((k * t_m) * (k * t_m)) * t_m);
                                                                                                                                                                    	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_] := Block[{t$95$2 = N[(N[(k * k), $MachinePrecision] * t$95$m), $MachinePrecision]}, N[(t$95$s * If[LessEqual[t$95$m, 2.8e-163], N[(N[(l * l), $MachinePrecision] / N[(N[(t$95$2 * t$95$m), $MachinePrecision] * t$95$m), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$m, 7.2e+163], N[(l * N[(N[(l / t$95$2), $MachinePrecision] / N[(t$95$m * t$95$m), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(l * l), $MachinePrecision] / N[(N[(N[(k * t$95$m), $MachinePrecision] * N[(k * t$95$m), $MachinePrecision]), $MachinePrecision] * t$95$m), $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(k \cdot k\right) \cdot t\_m\\
                                                                                                                                                                    t\_s \cdot \begin{array}{l}
                                                                                                                                                                    \mathbf{if}\;t\_m \leq 2.8 \cdot 10^{-163}:\\
                                                                                                                                                                    \;\;\;\;\frac{\ell \cdot \ell}{\left(t\_2 \cdot t\_m\right) \cdot t\_m}\\
                                                                                                                                                                    
                                                                                                                                                                    \mathbf{elif}\;t\_m \leq 7.2 \cdot 10^{+163}:\\
                                                                                                                                                                    \;\;\;\;\ell \cdot \frac{\frac{\ell}{t\_2}}{t\_m \cdot t\_m}\\
                                                                                                                                                                    
                                                                                                                                                                    \mathbf{else}:\\
                                                                                                                                                                    \;\;\;\;\frac{\ell \cdot \ell}{\left(\left(k \cdot t\_m\right) \cdot \left(k \cdot t\_m\right)\right) \cdot t\_m}\\
                                                                                                                                                                    
                                                                                                                                                                    
                                                                                                                                                                    \end{array}
                                                                                                                                                                    \end{array}
                                                                                                                                                                    \end{array}
                                                                                                                                                                    
                                                                                                                                                                    Derivation
                                                                                                                                                                    1. Split input into 3 regimes
                                                                                                                                                                    2. if t < 2.8e-163

                                                                                                                                                                      1. Initial program 50.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. Add Preprocessing
                                                                                                                                                                      3. Taylor expanded in k around 0

                                                                                                                                                                        \[\leadsto \color{blue}{\frac{{\ell}^{2}}{{k}^{2} \cdot {t}^{3}}} \]
                                                                                                                                                                      4. Step-by-step derivation
                                                                                                                                                                        1. unpow2N/A

                                                                                                                                                                          \[\leadsto \frac{\color{blue}{\ell \cdot \ell}}{{k}^{2} \cdot {t}^{3}} \]
                                                                                                                                                                        2. *-commutativeN/A

                                                                                                                                                                          \[\leadsto \frac{\ell \cdot \ell}{\color{blue}{{t}^{3} \cdot {k}^{2}}} \]
                                                                                                                                                                        3. times-fracN/A

                                                                                                                                                                          \[\leadsto \color{blue}{\frac{\ell}{{t}^{3}} \cdot \frac{\ell}{{k}^{2}}} \]
                                                                                                                                                                        4. lower-*.f64N/A

                                                                                                                                                                          \[\leadsto \color{blue}{\frac{\ell}{{t}^{3}} \cdot \frac{\ell}{{k}^{2}}} \]
                                                                                                                                                                        5. lower-/.f64N/A

                                                                                                                                                                          \[\leadsto \color{blue}{\frac{\ell}{{t}^{3}}} \cdot \frac{\ell}{{k}^{2}} \]
                                                                                                                                                                        6. lower-pow.f64N/A

                                                                                                                                                                          \[\leadsto \frac{\ell}{\color{blue}{{t}^{3}}} \cdot \frac{\ell}{{k}^{2}} \]
                                                                                                                                                                        7. lower-/.f64N/A

                                                                                                                                                                          \[\leadsto \frac{\ell}{{t}^{3}} \cdot \color{blue}{\frac{\ell}{{k}^{2}}} \]
                                                                                                                                                                        8. unpow2N/A

                                                                                                                                                                          \[\leadsto \frac{\ell}{{t}^{3}} \cdot \frac{\ell}{\color{blue}{k \cdot k}} \]
                                                                                                                                                                        9. lower-*.f6454.2

                                                                                                                                                                          \[\leadsto \frac{\ell}{{t}^{3}} \cdot \frac{\ell}{\color{blue}{k \cdot k}} \]
                                                                                                                                                                      5. Applied rewrites54.2%

                                                                                                                                                                        \[\leadsto \color{blue}{\frac{\ell}{{t}^{3}} \cdot \frac{\ell}{k \cdot k}} \]
                                                                                                                                                                      6. Step-by-step derivation
                                                                                                                                                                        1. Applied rewrites56.3%

                                                                                                                                                                          \[\leadsto \frac{\ell}{t \cdot t} \cdot \color{blue}{\frac{\ell}{t \cdot \left(k \cdot k\right)}} \]
                                                                                                                                                                        2. Step-by-step derivation
                                                                                                                                                                          1. Applied rewrites51.5%

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

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

                                                                                                                                                                            if 2.8e-163 < t < 7.19999999999999955e163

                                                                                                                                                                            1. Initial program 55.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. Add Preprocessing
                                                                                                                                                                            3. Taylor expanded in k around 0

                                                                                                                                                                              \[\leadsto \color{blue}{\frac{{\ell}^{2}}{{k}^{2} \cdot {t}^{3}}} \]
                                                                                                                                                                            4. Step-by-step derivation
                                                                                                                                                                              1. unpow2N/A

                                                                                                                                                                                \[\leadsto \frac{\color{blue}{\ell \cdot \ell}}{{k}^{2} \cdot {t}^{3}} \]
                                                                                                                                                                              2. *-commutativeN/A

                                                                                                                                                                                \[\leadsto \frac{\ell \cdot \ell}{\color{blue}{{t}^{3} \cdot {k}^{2}}} \]
                                                                                                                                                                              3. times-fracN/A

                                                                                                                                                                                \[\leadsto \color{blue}{\frac{\ell}{{t}^{3}} \cdot \frac{\ell}{{k}^{2}}} \]
                                                                                                                                                                              4. lower-*.f64N/A

                                                                                                                                                                                \[\leadsto \color{blue}{\frac{\ell}{{t}^{3}} \cdot \frac{\ell}{{k}^{2}}} \]
                                                                                                                                                                              5. lower-/.f64N/A

                                                                                                                                                                                \[\leadsto \color{blue}{\frac{\ell}{{t}^{3}}} \cdot \frac{\ell}{{k}^{2}} \]
                                                                                                                                                                              6. lower-pow.f64N/A

                                                                                                                                                                                \[\leadsto \frac{\ell}{\color{blue}{{t}^{3}}} \cdot \frac{\ell}{{k}^{2}} \]
                                                                                                                                                                              7. lower-/.f64N/A

                                                                                                                                                                                \[\leadsto \frac{\ell}{{t}^{3}} \cdot \color{blue}{\frac{\ell}{{k}^{2}}} \]
                                                                                                                                                                              8. unpow2N/A

                                                                                                                                                                                \[\leadsto \frac{\ell}{{t}^{3}} \cdot \frac{\ell}{\color{blue}{k \cdot k}} \]
                                                                                                                                                                              9. lower-*.f6456.1

                                                                                                                                                                                \[\leadsto \frac{\ell}{{t}^{3}} \cdot \frac{\ell}{\color{blue}{k \cdot k}} \]
                                                                                                                                                                            5. Applied rewrites56.1%

                                                                                                                                                                              \[\leadsto \color{blue}{\frac{\ell}{{t}^{3}} \cdot \frac{\ell}{k \cdot k}} \]
                                                                                                                                                                            6. Step-by-step derivation
                                                                                                                                                                              1. Applied rewrites64.8%

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

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

                                                                                                                                                                                if 7.19999999999999955e163 < t

                                                                                                                                                                                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. Add Preprocessing
                                                                                                                                                                                3. Taylor expanded in k around 0

                                                                                                                                                                                  \[\leadsto \color{blue}{\frac{{\ell}^{2}}{{k}^{2} \cdot {t}^{3}}} \]
                                                                                                                                                                                4. Step-by-step derivation
                                                                                                                                                                                  1. unpow2N/A

                                                                                                                                                                                    \[\leadsto \frac{\color{blue}{\ell \cdot \ell}}{{k}^{2} \cdot {t}^{3}} \]
                                                                                                                                                                                  2. *-commutativeN/A

                                                                                                                                                                                    \[\leadsto \frac{\ell \cdot \ell}{\color{blue}{{t}^{3} \cdot {k}^{2}}} \]
                                                                                                                                                                                  3. times-fracN/A

                                                                                                                                                                                    \[\leadsto \color{blue}{\frac{\ell}{{t}^{3}} \cdot \frac{\ell}{{k}^{2}}} \]
                                                                                                                                                                                  4. lower-*.f64N/A

                                                                                                                                                                                    \[\leadsto \color{blue}{\frac{\ell}{{t}^{3}} \cdot \frac{\ell}{{k}^{2}}} \]
                                                                                                                                                                                  5. lower-/.f64N/A

                                                                                                                                                                                    \[\leadsto \color{blue}{\frac{\ell}{{t}^{3}}} \cdot \frac{\ell}{{k}^{2}} \]
                                                                                                                                                                                  6. lower-pow.f64N/A

                                                                                                                                                                                    \[\leadsto \frac{\ell}{\color{blue}{{t}^{3}}} \cdot \frac{\ell}{{k}^{2}} \]
                                                                                                                                                                                  7. lower-/.f64N/A

                                                                                                                                                                                    \[\leadsto \frac{\ell}{{t}^{3}} \cdot \color{blue}{\frac{\ell}{{k}^{2}}} \]
                                                                                                                                                                                  8. unpow2N/A

                                                                                                                                                                                    \[\leadsto \frac{\ell}{{t}^{3}} \cdot \frac{\ell}{\color{blue}{k \cdot k}} \]
                                                                                                                                                                                  9. lower-*.f6455.6

                                                                                                                                                                                    \[\leadsto \frac{\ell}{{t}^{3}} \cdot \frac{\ell}{\color{blue}{k \cdot k}} \]
                                                                                                                                                                                5. Applied rewrites55.6%

                                                                                                                                                                                  \[\leadsto \color{blue}{\frac{\ell}{{t}^{3}} \cdot \frac{\ell}{k \cdot k}} \]
                                                                                                                                                                                6. Step-by-step derivation
                                                                                                                                                                                  1. Applied rewrites56.1%

                                                                                                                                                                                    \[\leadsto \frac{\ell}{t \cdot t} \cdot \color{blue}{\frac{\ell}{t \cdot \left(k \cdot k\right)}} \]
                                                                                                                                                                                  2. Step-by-step derivation
                                                                                                                                                                                    1. Applied rewrites42.9%

                                                                                                                                                                                      \[\leadsto \frac{\left(-\ell\right) \cdot \ell}{\color{blue}{\left(\left(k \cdot k\right) \cdot t\right) \cdot \left(\left(-t\right) \cdot t\right)}} \]
                                                                                                                                                                                    2. Step-by-step derivation
                                                                                                                                                                                      1. Applied rewrites54.5%

                                                                                                                                                                                        \[\leadsto \frac{\left(-\ell\right) \cdot \ell}{\left(\left(k \cdot t\right) \cdot \left(\left(-k\right) \cdot t\right)\right) \cdot \color{blue}{t}} \]
                                                                                                                                                                                    3. Recombined 3 regimes into one program.
                                                                                                                                                                                    4. Final simplification59.9%

                                                                                                                                                                                      \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq 2.8 \cdot 10^{-163}:\\ \;\;\;\;\frac{\ell \cdot \ell}{\left(\left(\left(k \cdot k\right) \cdot t\right) \cdot t\right) \cdot t}\\ \mathbf{elif}\;t \leq 7.2 \cdot 10^{+163}:\\ \;\;\;\;\ell \cdot \frac{\frac{\ell}{\left(k \cdot k\right) \cdot t}}{t \cdot t}\\ \mathbf{else}:\\ \;\;\;\;\frac{\ell \cdot \ell}{\left(\left(k \cdot t\right) \cdot \left(k \cdot t\right)\right) \cdot t}\\ \end{array} \]
                                                                                                                                                                                    5. Add Preprocessing

                                                                                                                                                                                    Alternative 20: 69.3% accurate, 8.4× 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}\;k \leq 1.42 \cdot 10^{-173}:\\ \;\;\;\;\frac{\ell}{\left(k \cdot t\_m\right) \cdot \left(k \cdot t\_m\right)} \cdot \frac{\ell}{t\_m}\\ \mathbf{else}:\\ \;\;\;\;\frac{\frac{\ell}{t\_m}}{\frac{\left(k \cdot k\right) \cdot t\_m}{\ell} \cdot t\_m}\\ \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 (<= k 1.42e-173)
                                                                                                                                                                                        (* (/ l (* (* k t_m) (* k t_m))) (/ l t_m))
                                                                                                                                                                                        (/ (/ l t_m) (* (/ (* (* k k) t_m) l) t_m)))))
                                                                                                                                                                                    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 (k <= 1.42e-173) {
                                                                                                                                                                                    		tmp = (l / ((k * t_m) * (k * t_m))) * (l / t_m);
                                                                                                                                                                                    	} else {
                                                                                                                                                                                    		tmp = (l / t_m) / ((((k * k) * t_m) / l) * t_m);
                                                                                                                                                                                    	}
                                                                                                                                                                                    	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 (k <= 1.42d-173) then
                                                                                                                                                                                            tmp = (l / ((k * t_m) * (k * t_m))) * (l / t_m)
                                                                                                                                                                                        else
                                                                                                                                                                                            tmp = (l / t_m) / ((((k * k) * t_m) / l) * t_m)
                                                                                                                                                                                        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 (k <= 1.42e-173) {
                                                                                                                                                                                    		tmp = (l / ((k * t_m) * (k * t_m))) * (l / t_m);
                                                                                                                                                                                    	} else {
                                                                                                                                                                                    		tmp = (l / t_m) / ((((k * k) * t_m) / l) * t_m);
                                                                                                                                                                                    	}
                                                                                                                                                                                    	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 k <= 1.42e-173:
                                                                                                                                                                                    		tmp = (l / ((k * t_m) * (k * t_m))) * (l / t_m)
                                                                                                                                                                                    	else:
                                                                                                                                                                                    		tmp = (l / t_m) / ((((k * k) * t_m) / l) * t_m)
                                                                                                                                                                                    	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 (k <= 1.42e-173)
                                                                                                                                                                                    		tmp = Float64(Float64(l / Float64(Float64(k * t_m) * Float64(k * t_m))) * Float64(l / t_m));
                                                                                                                                                                                    	else
                                                                                                                                                                                    		tmp = Float64(Float64(l / t_m) / Float64(Float64(Float64(Float64(k * k) * t_m) / l) * t_m));
                                                                                                                                                                                    	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 (k <= 1.42e-173)
                                                                                                                                                                                    		tmp = (l / ((k * t_m) * (k * t_m))) * (l / t_m);
                                                                                                                                                                                    	else
                                                                                                                                                                                    		tmp = (l / t_m) / ((((k * k) * t_m) / l) * t_m);
                                                                                                                                                                                    	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[k, 1.42e-173], N[(N[(l / N[(N[(k * t$95$m), $MachinePrecision] * N[(k * t$95$m), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(l / t$95$m), $MachinePrecision]), $MachinePrecision], N[(N[(l / t$95$m), $MachinePrecision] / N[(N[(N[(N[(k * k), $MachinePrecision] * t$95$m), $MachinePrecision] / l), $MachinePrecision] * t$95$m), $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}\;k \leq 1.42 \cdot 10^{-173}:\\
                                                                                                                                                                                    \;\;\;\;\frac{\ell}{\left(k \cdot t\_m\right) \cdot \left(k \cdot t\_m\right)} \cdot \frac{\ell}{t\_m}\\
                                                                                                                                                                                    
                                                                                                                                                                                    \mathbf{else}:\\
                                                                                                                                                                                    \;\;\;\;\frac{\frac{\ell}{t\_m}}{\frac{\left(k \cdot k\right) \cdot t\_m}{\ell} \cdot t\_m}\\
                                                                                                                                                                                    
                                                                                                                                                                                    
                                                                                                                                                                                    \end{array}
                                                                                                                                                                                    \end{array}
                                                                                                                                                                                    
                                                                                                                                                                                    Derivation
                                                                                                                                                                                    1. Split input into 2 regimes
                                                                                                                                                                                    2. if k < 1.42e-173

                                                                                                                                                                                      1. Initial program 55.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. Taylor expanded in k around 0

                                                                                                                                                                                        \[\leadsto \color{blue}{\frac{{\ell}^{2}}{{k}^{2} \cdot {t}^{3}}} \]
                                                                                                                                                                                      4. Step-by-step derivation
                                                                                                                                                                                        1. unpow2N/A

                                                                                                                                                                                          \[\leadsto \frac{\color{blue}{\ell \cdot \ell}}{{k}^{2} \cdot {t}^{3}} \]
                                                                                                                                                                                        2. *-commutativeN/A

                                                                                                                                                                                          \[\leadsto \frac{\ell \cdot \ell}{\color{blue}{{t}^{3} \cdot {k}^{2}}} \]
                                                                                                                                                                                        3. times-fracN/A

                                                                                                                                                                                          \[\leadsto \color{blue}{\frac{\ell}{{t}^{3}} \cdot \frac{\ell}{{k}^{2}}} \]
                                                                                                                                                                                        4. lower-*.f64N/A

                                                                                                                                                                                          \[\leadsto \color{blue}{\frac{\ell}{{t}^{3}} \cdot \frac{\ell}{{k}^{2}}} \]
                                                                                                                                                                                        5. lower-/.f64N/A

                                                                                                                                                                                          \[\leadsto \color{blue}{\frac{\ell}{{t}^{3}}} \cdot \frac{\ell}{{k}^{2}} \]
                                                                                                                                                                                        6. lower-pow.f64N/A

                                                                                                                                                                                          \[\leadsto \frac{\ell}{\color{blue}{{t}^{3}}} \cdot \frac{\ell}{{k}^{2}} \]
                                                                                                                                                                                        7. lower-/.f64N/A

                                                                                                                                                                                          \[\leadsto \frac{\ell}{{t}^{3}} \cdot \color{blue}{\frac{\ell}{{k}^{2}}} \]
                                                                                                                                                                                        8. unpow2N/A

                                                                                                                                                                                          \[\leadsto \frac{\ell}{{t}^{3}} \cdot \frac{\ell}{\color{blue}{k \cdot k}} \]
                                                                                                                                                                                        9. lower-*.f6455.5

                                                                                                                                                                                          \[\leadsto \frac{\ell}{{t}^{3}} \cdot \frac{\ell}{\color{blue}{k \cdot k}} \]
                                                                                                                                                                                      5. Applied rewrites55.5%

                                                                                                                                                                                        \[\leadsto \color{blue}{\frac{\ell}{{t}^{3}} \cdot \frac{\ell}{k \cdot k}} \]
                                                                                                                                                                                      6. Step-by-step derivation
                                                                                                                                                                                        1. Applied rewrites57.9%

                                                                                                                                                                                          \[\leadsto \frac{\ell}{t \cdot t} \cdot \color{blue}{\frac{\ell}{t \cdot \left(k \cdot k\right)}} \]
                                                                                                                                                                                        2. Step-by-step derivation
                                                                                                                                                                                          1. Applied rewrites49.6%

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

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

                                                                                                                                                                                            if 1.42e-173 < k

                                                                                                                                                                                            1. Initial program 45.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. Add Preprocessing
                                                                                                                                                                                            3. Taylor expanded in k around 0

                                                                                                                                                                                              \[\leadsto \color{blue}{\frac{{\ell}^{2}}{{k}^{2} \cdot {t}^{3}}} \]
                                                                                                                                                                                            4. Step-by-step derivation
                                                                                                                                                                                              1. unpow2N/A

                                                                                                                                                                                                \[\leadsto \frac{\color{blue}{\ell \cdot \ell}}{{k}^{2} \cdot {t}^{3}} \]
                                                                                                                                                                                              2. *-commutativeN/A

                                                                                                                                                                                                \[\leadsto \frac{\ell \cdot \ell}{\color{blue}{{t}^{3} \cdot {k}^{2}}} \]
                                                                                                                                                                                              3. times-fracN/A

                                                                                                                                                                                                \[\leadsto \color{blue}{\frac{\ell}{{t}^{3}} \cdot \frac{\ell}{{k}^{2}}} \]
                                                                                                                                                                                              4. lower-*.f64N/A

                                                                                                                                                                                                \[\leadsto \color{blue}{\frac{\ell}{{t}^{3}} \cdot \frac{\ell}{{k}^{2}}} \]
                                                                                                                                                                                              5. lower-/.f64N/A

                                                                                                                                                                                                \[\leadsto \color{blue}{\frac{\ell}{{t}^{3}}} \cdot \frac{\ell}{{k}^{2}} \]
                                                                                                                                                                                              6. lower-pow.f64N/A

                                                                                                                                                                                                \[\leadsto \frac{\ell}{\color{blue}{{t}^{3}}} \cdot \frac{\ell}{{k}^{2}} \]
                                                                                                                                                                                              7. lower-/.f64N/A

                                                                                                                                                                                                \[\leadsto \frac{\ell}{{t}^{3}} \cdot \color{blue}{\frac{\ell}{{k}^{2}}} \]
                                                                                                                                                                                              8. unpow2N/A

                                                                                                                                                                                                \[\leadsto \frac{\ell}{{t}^{3}} \cdot \frac{\ell}{\color{blue}{k \cdot k}} \]
                                                                                                                                                                                              9. lower-*.f6453.8

                                                                                                                                                                                                \[\leadsto \frac{\ell}{{t}^{3}} \cdot \frac{\ell}{\color{blue}{k \cdot k}} \]
                                                                                                                                                                                            5. Applied rewrites53.8%

                                                                                                                                                                                              \[\leadsto \color{blue}{\frac{\ell}{{t}^{3}} \cdot \frac{\ell}{k \cdot k}} \]
                                                                                                                                                                                            6. Step-by-step derivation
                                                                                                                                                                                              1. Applied rewrites59.8%

                                                                                                                                                                                                \[\leadsto \frac{\ell}{t \cdot t} \cdot \color{blue}{\frac{\ell}{t \cdot \left(k \cdot k\right)}} \]
                                                                                                                                                                                              2. Step-by-step derivation
                                                                                                                                                                                                1. Applied rewrites68.5%

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

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

                                                                                                                                                                                              Alternative 21: 68.8% accurate, 8.4× 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}\;k \leq 2.3 \cdot 10^{-167}:\\ \;\;\;\;\frac{\ell}{\left(k \cdot t\_m\right) \cdot \left(k \cdot t\_m\right)} \cdot \frac{\ell}{t\_m}\\ \mathbf{else}:\\ \;\;\;\;\frac{\frac{\ell}{t\_m}}{\left(\frac{t\_m}{\ell} \cdot t\_m\right) \cdot \left(k \cdot k\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 (<= k 2.3e-167)
                                                                                                                                                                                                  (* (/ l (* (* k t_m) (* k t_m))) (/ l t_m))
                                                                                                                                                                                                  (/ (/ l t_m) (* (* (/ t_m l) t_m) (* k k))))))
                                                                                                                                                                                              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 (k <= 2.3e-167) {
                                                                                                                                                                                              		tmp = (l / ((k * t_m) * (k * t_m))) * (l / t_m);
                                                                                                                                                                                              	} else {
                                                                                                                                                                                              		tmp = (l / t_m) / (((t_m / l) * t_m) * (k * k));
                                                                                                                                                                                              	}
                                                                                                                                                                                              	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 (k <= 2.3d-167) then
                                                                                                                                                                                                      tmp = (l / ((k * t_m) * (k * t_m))) * (l / t_m)
                                                                                                                                                                                                  else
                                                                                                                                                                                                      tmp = (l / t_m) / (((t_m / l) * t_m) * (k * k))
                                                                                                                                                                                                  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 (k <= 2.3e-167) {
                                                                                                                                                                                              		tmp = (l / ((k * t_m) * (k * t_m))) * (l / t_m);
                                                                                                                                                                                              	} else {
                                                                                                                                                                                              		tmp = (l / t_m) / (((t_m / l) * t_m) * (k * k));
                                                                                                                                                                                              	}
                                                                                                                                                                                              	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 k <= 2.3e-167:
                                                                                                                                                                                              		tmp = (l / ((k * t_m) * (k * t_m))) * (l / t_m)
                                                                                                                                                                                              	else:
                                                                                                                                                                                              		tmp = (l / t_m) / (((t_m / l) * t_m) * (k * k))
                                                                                                                                                                                              	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 (k <= 2.3e-167)
                                                                                                                                                                                              		tmp = Float64(Float64(l / Float64(Float64(k * t_m) * Float64(k * t_m))) * Float64(l / t_m));
                                                                                                                                                                                              	else
                                                                                                                                                                                              		tmp = Float64(Float64(l / t_m) / Float64(Float64(Float64(t_m / l) * t_m) * Float64(k * k)));
                                                                                                                                                                                              	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 (k <= 2.3e-167)
                                                                                                                                                                                              		tmp = (l / ((k * t_m) * (k * t_m))) * (l / t_m);
                                                                                                                                                                                              	else
                                                                                                                                                                                              		tmp = (l / t_m) / (((t_m / l) * t_m) * (k * k));
                                                                                                                                                                                              	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[k, 2.3e-167], N[(N[(l / N[(N[(k * t$95$m), $MachinePrecision] * N[(k * t$95$m), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(l / t$95$m), $MachinePrecision]), $MachinePrecision], N[(N[(l / t$95$m), $MachinePrecision] / N[(N[(N[(t$95$m / l), $MachinePrecision] * t$95$m), $MachinePrecision] * N[(k * k), $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}\;k \leq 2.3 \cdot 10^{-167}:\\
                                                                                                                                                                                              \;\;\;\;\frac{\ell}{\left(k \cdot t\_m\right) \cdot \left(k \cdot t\_m\right)} \cdot \frac{\ell}{t\_m}\\
                                                                                                                                                                                              
                                                                                                                                                                                              \mathbf{else}:\\
                                                                                                                                                                                              \;\;\;\;\frac{\frac{\ell}{t\_m}}{\left(\frac{t\_m}{\ell} \cdot t\_m\right) \cdot \left(k \cdot k\right)}\\
                                                                                                                                                                                              
                                                                                                                                                                                              
                                                                                                                                                                                              \end{array}
                                                                                                                                                                                              \end{array}
                                                                                                                                                                                              
                                                                                                                                                                                              Derivation
                                                                                                                                                                                              1. Split input into 2 regimes
                                                                                                                                                                                              2. if k < 2.3000000000000001e-167

                                                                                                                                                                                                1. Initial program 55.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. Add Preprocessing
                                                                                                                                                                                                3. Taylor expanded in k around 0

                                                                                                                                                                                                  \[\leadsto \color{blue}{\frac{{\ell}^{2}}{{k}^{2} \cdot {t}^{3}}} \]
                                                                                                                                                                                                4. Step-by-step derivation
                                                                                                                                                                                                  1. unpow2N/A

                                                                                                                                                                                                    \[\leadsto \frac{\color{blue}{\ell \cdot \ell}}{{k}^{2} \cdot {t}^{3}} \]
                                                                                                                                                                                                  2. *-commutativeN/A

                                                                                                                                                                                                    \[\leadsto \frac{\ell \cdot \ell}{\color{blue}{{t}^{3} \cdot {k}^{2}}} \]
                                                                                                                                                                                                  3. times-fracN/A

                                                                                                                                                                                                    \[\leadsto \color{blue}{\frac{\ell}{{t}^{3}} \cdot \frac{\ell}{{k}^{2}}} \]
                                                                                                                                                                                                  4. lower-*.f64N/A

                                                                                                                                                                                                    \[\leadsto \color{blue}{\frac{\ell}{{t}^{3}} \cdot \frac{\ell}{{k}^{2}}} \]
                                                                                                                                                                                                  5. lower-/.f64N/A

                                                                                                                                                                                                    \[\leadsto \color{blue}{\frac{\ell}{{t}^{3}}} \cdot \frac{\ell}{{k}^{2}} \]
                                                                                                                                                                                                  6. lower-pow.f64N/A

                                                                                                                                                                                                    \[\leadsto \frac{\ell}{\color{blue}{{t}^{3}}} \cdot \frac{\ell}{{k}^{2}} \]
                                                                                                                                                                                                  7. lower-/.f64N/A

                                                                                                                                                                                                    \[\leadsto \frac{\ell}{{t}^{3}} \cdot \color{blue}{\frac{\ell}{{k}^{2}}} \]
                                                                                                                                                                                                  8. unpow2N/A

                                                                                                                                                                                                    \[\leadsto \frac{\ell}{{t}^{3}} \cdot \frac{\ell}{\color{blue}{k \cdot k}} \]
                                                                                                                                                                                                  9. lower-*.f6455.5

                                                                                                                                                                                                    \[\leadsto \frac{\ell}{{t}^{3}} \cdot \frac{\ell}{\color{blue}{k \cdot k}} \]
                                                                                                                                                                                                5. Applied rewrites55.5%

                                                                                                                                                                                                  \[\leadsto \color{blue}{\frac{\ell}{{t}^{3}} \cdot \frac{\ell}{k \cdot k}} \]
                                                                                                                                                                                                6. Step-by-step derivation
                                                                                                                                                                                                  1. Applied rewrites57.8%

                                                                                                                                                                                                    \[\leadsto \frac{\ell}{t \cdot t} \cdot \color{blue}{\frac{\ell}{t \cdot \left(k \cdot k\right)}} \]
                                                                                                                                                                                                  2. Step-by-step derivation
                                                                                                                                                                                                    1. Applied rewrites49.6%

                                                                                                                                                                                                      \[\leadsto \frac{\left(-\ell\right) \cdot \ell}{\color{blue}{\left(\left(k \cdot k\right) \cdot t\right) \cdot \left(\left(-t\right) \cdot t\right)}} \]
                                                                                                                                                                                                    2. Step-by-step derivation
                                                                                                                                                                                                      1. Applied rewrites67.2%

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

                                                                                                                                                                                                      if 2.3000000000000001e-167 < k

                                                                                                                                                                                                      1. Initial program 45.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. Add Preprocessing
                                                                                                                                                                                                      3. Taylor expanded in k around 0

                                                                                                                                                                                                        \[\leadsto \color{blue}{\frac{{\ell}^{2}}{{k}^{2} \cdot {t}^{3}}} \]
                                                                                                                                                                                                      4. Step-by-step derivation
                                                                                                                                                                                                        1. unpow2N/A

                                                                                                                                                                                                          \[\leadsto \frac{\color{blue}{\ell \cdot \ell}}{{k}^{2} \cdot {t}^{3}} \]
                                                                                                                                                                                                        2. *-commutativeN/A

                                                                                                                                                                                                          \[\leadsto \frac{\ell \cdot \ell}{\color{blue}{{t}^{3} \cdot {k}^{2}}} \]
                                                                                                                                                                                                        3. times-fracN/A

                                                                                                                                                                                                          \[\leadsto \color{blue}{\frac{\ell}{{t}^{3}} \cdot \frac{\ell}{{k}^{2}}} \]
                                                                                                                                                                                                        4. lower-*.f64N/A

                                                                                                                                                                                                          \[\leadsto \color{blue}{\frac{\ell}{{t}^{3}} \cdot \frac{\ell}{{k}^{2}}} \]
                                                                                                                                                                                                        5. lower-/.f64N/A

                                                                                                                                                                                                          \[\leadsto \color{blue}{\frac{\ell}{{t}^{3}}} \cdot \frac{\ell}{{k}^{2}} \]
                                                                                                                                                                                                        6. lower-pow.f64N/A

                                                                                                                                                                                                          \[\leadsto \frac{\ell}{\color{blue}{{t}^{3}}} \cdot \frac{\ell}{{k}^{2}} \]
                                                                                                                                                                                                        7. lower-/.f64N/A

                                                                                                                                                                                                          \[\leadsto \frac{\ell}{{t}^{3}} \cdot \color{blue}{\frac{\ell}{{k}^{2}}} \]
                                                                                                                                                                                                        8. unpow2N/A

                                                                                                                                                                                                          \[\leadsto \frac{\ell}{{t}^{3}} \cdot \frac{\ell}{\color{blue}{k \cdot k}} \]
                                                                                                                                                                                                        9. lower-*.f6453.8

                                                                                                                                                                                                          \[\leadsto \frac{\ell}{{t}^{3}} \cdot \frac{\ell}{\color{blue}{k \cdot k}} \]
                                                                                                                                                                                                      5. Applied rewrites53.8%

                                                                                                                                                                                                        \[\leadsto \color{blue}{\frac{\ell}{{t}^{3}} \cdot \frac{\ell}{k \cdot k}} \]
                                                                                                                                                                                                      6. Step-by-step derivation
                                                                                                                                                                                                        1. Applied rewrites60.0%

                                                                                                                                                                                                          \[\leadsto \frac{\ell}{t \cdot t} \cdot \color{blue}{\frac{\ell}{t \cdot \left(k \cdot k\right)}} \]
                                                                                                                                                                                                        2. Step-by-step derivation
                                                                                                                                                                                                          1. Applied rewrites68.9%

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

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

                                                                                                                                                                                                        Alternative 22: 65.8% accurate, 9.4× 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}\;k \leq 3.25 \cdot 10^{-142}:\\ \;\;\;\;\frac{\ell}{\left(k \cdot \left(t\_m \cdot t\_m\right)\right) \cdot t\_m} \cdot \frac{\ell}{k}\\ \mathbf{else}:\\ \;\;\;\;\frac{\frac{\ell}{t\_m} \cdot \ell}{t\_m \cdot \left(\left(k \cdot k\right) \cdot t\_m\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 (<= k 3.25e-142)
                                                                                                                                                                                                            (* (/ l (* (* k (* t_m t_m)) t_m)) (/ l k))
                                                                                                                                                                                                            (/ (* (/ l t_m) l) (* t_m (* (* k k) t_m))))))
                                                                                                                                                                                                        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 (k <= 3.25e-142) {
                                                                                                                                                                                                        		tmp = (l / ((k * (t_m * t_m)) * t_m)) * (l / k);
                                                                                                                                                                                                        	} else {
                                                                                                                                                                                                        		tmp = ((l / t_m) * l) / (t_m * ((k * k) * t_m));
                                                                                                                                                                                                        	}
                                                                                                                                                                                                        	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 (k <= 3.25d-142) then
                                                                                                                                                                                                                tmp = (l / ((k * (t_m * t_m)) * t_m)) * (l / k)
                                                                                                                                                                                                            else
                                                                                                                                                                                                                tmp = ((l / t_m) * l) / (t_m * ((k * k) * t_m))
                                                                                                                                                                                                            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 (k <= 3.25e-142) {
                                                                                                                                                                                                        		tmp = (l / ((k * (t_m * t_m)) * t_m)) * (l / k);
                                                                                                                                                                                                        	} else {
                                                                                                                                                                                                        		tmp = ((l / t_m) * l) / (t_m * ((k * k) * t_m));
                                                                                                                                                                                                        	}
                                                                                                                                                                                                        	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 k <= 3.25e-142:
                                                                                                                                                                                                        		tmp = (l / ((k * (t_m * t_m)) * t_m)) * (l / k)
                                                                                                                                                                                                        	else:
                                                                                                                                                                                                        		tmp = ((l / t_m) * l) / (t_m * ((k * k) * t_m))
                                                                                                                                                                                                        	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 (k <= 3.25e-142)
                                                                                                                                                                                                        		tmp = Float64(Float64(l / Float64(Float64(k * Float64(t_m * t_m)) * t_m)) * Float64(l / k));
                                                                                                                                                                                                        	else
                                                                                                                                                                                                        		tmp = Float64(Float64(Float64(l / t_m) * l) / Float64(t_m * Float64(Float64(k * k) * t_m)));
                                                                                                                                                                                                        	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 (k <= 3.25e-142)
                                                                                                                                                                                                        		tmp = (l / ((k * (t_m * t_m)) * t_m)) * (l / k);
                                                                                                                                                                                                        	else
                                                                                                                                                                                                        		tmp = ((l / t_m) * l) / (t_m * ((k * k) * t_m));
                                                                                                                                                                                                        	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[k, 3.25e-142], N[(N[(l / N[(N[(k * N[(t$95$m * t$95$m), $MachinePrecision]), $MachinePrecision] * t$95$m), $MachinePrecision]), $MachinePrecision] * N[(l / k), $MachinePrecision]), $MachinePrecision], N[(N[(N[(l / t$95$m), $MachinePrecision] * l), $MachinePrecision] / N[(t$95$m * N[(N[(k * k), $MachinePrecision] * t$95$m), $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}\;k \leq 3.25 \cdot 10^{-142}:\\
                                                                                                                                                                                                        \;\;\;\;\frac{\ell}{\left(k \cdot \left(t\_m \cdot t\_m\right)\right) \cdot t\_m} \cdot \frac{\ell}{k}\\
                                                                                                                                                                                                        
                                                                                                                                                                                                        \mathbf{else}:\\
                                                                                                                                                                                                        \;\;\;\;\frac{\frac{\ell}{t\_m} \cdot \ell}{t\_m \cdot \left(\left(k \cdot k\right) \cdot t\_m\right)}\\
                                                                                                                                                                                                        
                                                                                                                                                                                                        
                                                                                                                                                                                                        \end{array}
                                                                                                                                                                                                        \end{array}
                                                                                                                                                                                                        
                                                                                                                                                                                                        Derivation
                                                                                                                                                                                                        1. Split input into 2 regimes
                                                                                                                                                                                                        2. if k < 3.25000000000000013e-142

                                                                                                                                                                                                          1. Initial program 56.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. Taylor expanded in k around 0

                                                                                                                                                                                                            \[\leadsto \color{blue}{\frac{{\ell}^{2}}{{k}^{2} \cdot {t}^{3}}} \]
                                                                                                                                                                                                          4. Step-by-step derivation
                                                                                                                                                                                                            1. unpow2N/A

                                                                                                                                                                                                              \[\leadsto \frac{\color{blue}{\ell \cdot \ell}}{{k}^{2} \cdot {t}^{3}} \]
                                                                                                                                                                                                            2. *-commutativeN/A

                                                                                                                                                                                                              \[\leadsto \frac{\ell \cdot \ell}{\color{blue}{{t}^{3} \cdot {k}^{2}}} \]
                                                                                                                                                                                                            3. times-fracN/A

                                                                                                                                                                                                              \[\leadsto \color{blue}{\frac{\ell}{{t}^{3}} \cdot \frac{\ell}{{k}^{2}}} \]
                                                                                                                                                                                                            4. lower-*.f64N/A

                                                                                                                                                                                                              \[\leadsto \color{blue}{\frac{\ell}{{t}^{3}} \cdot \frac{\ell}{{k}^{2}}} \]
                                                                                                                                                                                                            5. lower-/.f64N/A

                                                                                                                                                                                                              \[\leadsto \color{blue}{\frac{\ell}{{t}^{3}}} \cdot \frac{\ell}{{k}^{2}} \]
                                                                                                                                                                                                            6. lower-pow.f64N/A

                                                                                                                                                                                                              \[\leadsto \frac{\ell}{\color{blue}{{t}^{3}}} \cdot \frac{\ell}{{k}^{2}} \]
                                                                                                                                                                                                            7. lower-/.f64N/A

                                                                                                                                                                                                              \[\leadsto \frac{\ell}{{t}^{3}} \cdot \color{blue}{\frac{\ell}{{k}^{2}}} \]
                                                                                                                                                                                                            8. unpow2N/A

                                                                                                                                                                                                              \[\leadsto \frac{\ell}{{t}^{3}} \cdot \frac{\ell}{\color{blue}{k \cdot k}} \]
                                                                                                                                                                                                            9. lower-*.f6456.2

                                                                                                                                                                                                              \[\leadsto \frac{\ell}{{t}^{3}} \cdot \frac{\ell}{\color{blue}{k \cdot k}} \]
                                                                                                                                                                                                          5. Applied rewrites56.2%

                                                                                                                                                                                                            \[\leadsto \color{blue}{\frac{\ell}{{t}^{3}} \cdot \frac{\ell}{k \cdot k}} \]
                                                                                                                                                                                                          6. Step-by-step derivation
                                                                                                                                                                                                            1. Applied rewrites64.5%

                                                                                                                                                                                                              \[\leadsto \frac{\ell}{{t}^{3} \cdot k} \cdot \color{blue}{\frac{\ell}{k}} \]
                                                                                                                                                                                                            2. Step-by-step derivation
                                                                                                                                                                                                              1. Applied rewrites65.7%

                                                                                                                                                                                                                \[\leadsto \frac{\ell}{\left(k \cdot \left(t \cdot t\right)\right) \cdot t} \cdot \frac{\ell}{k} \]

                                                                                                                                                                                                              if 3.25000000000000013e-142 < k

                                                                                                                                                                                                              1. Initial program 43.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. Add Preprocessing
                                                                                                                                                                                                              3. Taylor expanded in k around 0

                                                                                                                                                                                                                \[\leadsto \color{blue}{\frac{{\ell}^{2}}{{k}^{2} \cdot {t}^{3}}} \]
                                                                                                                                                                                                              4. Step-by-step derivation
                                                                                                                                                                                                                1. unpow2N/A

                                                                                                                                                                                                                  \[\leadsto \frac{\color{blue}{\ell \cdot \ell}}{{k}^{2} \cdot {t}^{3}} \]
                                                                                                                                                                                                                2. *-commutativeN/A

                                                                                                                                                                                                                  \[\leadsto \frac{\ell \cdot \ell}{\color{blue}{{t}^{3} \cdot {k}^{2}}} \]
                                                                                                                                                                                                                3. times-fracN/A

                                                                                                                                                                                                                  \[\leadsto \color{blue}{\frac{\ell}{{t}^{3}} \cdot \frac{\ell}{{k}^{2}}} \]
                                                                                                                                                                                                                4. lower-*.f64N/A

                                                                                                                                                                                                                  \[\leadsto \color{blue}{\frac{\ell}{{t}^{3}} \cdot \frac{\ell}{{k}^{2}}} \]
                                                                                                                                                                                                                5. lower-/.f64N/A

                                                                                                                                                                                                                  \[\leadsto \color{blue}{\frac{\ell}{{t}^{3}}} \cdot \frac{\ell}{{k}^{2}} \]
                                                                                                                                                                                                                6. lower-pow.f64N/A

                                                                                                                                                                                                                  \[\leadsto \frac{\ell}{\color{blue}{{t}^{3}}} \cdot \frac{\ell}{{k}^{2}} \]
                                                                                                                                                                                                                7. lower-/.f64N/A

                                                                                                                                                                                                                  \[\leadsto \frac{\ell}{{t}^{3}} \cdot \color{blue}{\frac{\ell}{{k}^{2}}} \]
                                                                                                                                                                                                                8. unpow2N/A

                                                                                                                                                                                                                  \[\leadsto \frac{\ell}{{t}^{3}} \cdot \frac{\ell}{\color{blue}{k \cdot k}} \]
                                                                                                                                                                                                                9. lower-*.f6452.2

                                                                                                                                                                                                                  \[\leadsto \frac{\ell}{{t}^{3}} \cdot \frac{\ell}{\color{blue}{k \cdot k}} \]
                                                                                                                                                                                                              5. Applied rewrites52.2%

                                                                                                                                                                                                                \[\leadsto \color{blue}{\frac{\ell}{{t}^{3}} \cdot \frac{\ell}{k \cdot k}} \]
                                                                                                                                                                                                              6. Step-by-step derivation
                                                                                                                                                                                                                1. Applied rewrites58.6%

                                                                                                                                                                                                                  \[\leadsto \frac{\ell}{t \cdot t} \cdot \color{blue}{\frac{\ell}{t \cdot \left(k \cdot k\right)}} \]
                                                                                                                                                                                                                2. Step-by-step derivation
                                                                                                                                                                                                                  1. Applied rewrites64.0%

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

                                                                                                                                                                                                                Alternative 23: 64.8% accurate, 9.4× 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}\;k \leq 2.85 \cdot 10^{+156}:\\ \;\;\;\;\frac{\ell}{\left(t\_m \cdot t\_m\right) \cdot \left(t\_m \cdot k\right)} \cdot \frac{\ell}{k}\\ \mathbf{else}:\\ \;\;\;\;\frac{\ell \cdot \ell}{\left(\left(\left(k \cdot k\right) \cdot t\_m\right) \cdot t\_m\right) \cdot t\_m}\\ \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 (<= k 2.85e+156)
                                                                                                                                                                                                                    (* (/ l (* (* t_m t_m) (* t_m k))) (/ l k))
                                                                                                                                                                                                                    (/ (* l l) (* (* (* (* k k) t_m) t_m) t_m)))))
                                                                                                                                                                                                                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 (k <= 2.85e+156) {
                                                                                                                                                                                                                		tmp = (l / ((t_m * t_m) * (t_m * k))) * (l / k);
                                                                                                                                                                                                                	} else {
                                                                                                                                                                                                                		tmp = (l * l) / ((((k * k) * t_m) * t_m) * t_m);
                                                                                                                                                                                                                	}
                                                                                                                                                                                                                	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 (k <= 2.85d+156) then
                                                                                                                                                                                                                        tmp = (l / ((t_m * t_m) * (t_m * k))) * (l / k)
                                                                                                                                                                                                                    else
                                                                                                                                                                                                                        tmp = (l * l) / ((((k * k) * t_m) * t_m) * t_m)
                                                                                                                                                                                                                    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 (k <= 2.85e+156) {
                                                                                                                                                                                                                		tmp = (l / ((t_m * t_m) * (t_m * k))) * (l / k);
                                                                                                                                                                                                                	} else {
                                                                                                                                                                                                                		tmp = (l * l) / ((((k * k) * t_m) * t_m) * t_m);
                                                                                                                                                                                                                	}
                                                                                                                                                                                                                	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 k <= 2.85e+156:
                                                                                                                                                                                                                		tmp = (l / ((t_m * t_m) * (t_m * k))) * (l / k)
                                                                                                                                                                                                                	else:
                                                                                                                                                                                                                		tmp = (l * l) / ((((k * k) * t_m) * t_m) * t_m)
                                                                                                                                                                                                                	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 (k <= 2.85e+156)
                                                                                                                                                                                                                		tmp = Float64(Float64(l / Float64(Float64(t_m * t_m) * Float64(t_m * k))) * Float64(l / k));
                                                                                                                                                                                                                	else
                                                                                                                                                                                                                		tmp = Float64(Float64(l * l) / Float64(Float64(Float64(Float64(k * k) * t_m) * t_m) * t_m));
                                                                                                                                                                                                                	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 (k <= 2.85e+156)
                                                                                                                                                                                                                		tmp = (l / ((t_m * t_m) * (t_m * k))) * (l / k);
                                                                                                                                                                                                                	else
                                                                                                                                                                                                                		tmp = (l * l) / ((((k * k) * t_m) * t_m) * t_m);
                                                                                                                                                                                                                	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[k, 2.85e+156], N[(N[(l / N[(N[(t$95$m * t$95$m), $MachinePrecision] * N[(t$95$m * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(l / k), $MachinePrecision]), $MachinePrecision], N[(N[(l * l), $MachinePrecision] / N[(N[(N[(N[(k * k), $MachinePrecision] * t$95$m), $MachinePrecision] * t$95$m), $MachinePrecision] * t$95$m), $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}\;k \leq 2.85 \cdot 10^{+156}:\\
                                                                                                                                                                                                                \;\;\;\;\frac{\ell}{\left(t\_m \cdot t\_m\right) \cdot \left(t\_m \cdot k\right)} \cdot \frac{\ell}{k}\\
                                                                                                                                                                                                                
                                                                                                                                                                                                                \mathbf{else}:\\
                                                                                                                                                                                                                \;\;\;\;\frac{\ell \cdot \ell}{\left(\left(\left(k \cdot k\right) \cdot t\_m\right) \cdot t\_m\right) \cdot t\_m}\\
                                                                                                                                                                                                                
                                                                                                                                                                                                                
                                                                                                                                                                                                                \end{array}
                                                                                                                                                                                                                \end{array}
                                                                                                                                                                                                                
                                                                                                                                                                                                                Derivation
                                                                                                                                                                                                                1. Split input into 2 regimes
                                                                                                                                                                                                                2. if k < 2.84999999999999999e156

                                                                                                                                                                                                                  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. Add Preprocessing
                                                                                                                                                                                                                  3. Taylor expanded in k around 0

                                                                                                                                                                                                                    \[\leadsto \color{blue}{\frac{{\ell}^{2}}{{k}^{2} \cdot {t}^{3}}} \]
                                                                                                                                                                                                                  4. Step-by-step derivation
                                                                                                                                                                                                                    1. unpow2N/A

                                                                                                                                                                                                                      \[\leadsto \frac{\color{blue}{\ell \cdot \ell}}{{k}^{2} \cdot {t}^{3}} \]
                                                                                                                                                                                                                    2. *-commutativeN/A

                                                                                                                                                                                                                      \[\leadsto \frac{\ell \cdot \ell}{\color{blue}{{t}^{3} \cdot {k}^{2}}} \]
                                                                                                                                                                                                                    3. times-fracN/A

                                                                                                                                                                                                                      \[\leadsto \color{blue}{\frac{\ell}{{t}^{3}} \cdot \frac{\ell}{{k}^{2}}} \]
                                                                                                                                                                                                                    4. lower-*.f64N/A

                                                                                                                                                                                                                      \[\leadsto \color{blue}{\frac{\ell}{{t}^{3}} \cdot \frac{\ell}{{k}^{2}}} \]
                                                                                                                                                                                                                    5. lower-/.f64N/A

                                                                                                                                                                                                                      \[\leadsto \color{blue}{\frac{\ell}{{t}^{3}}} \cdot \frac{\ell}{{k}^{2}} \]
                                                                                                                                                                                                                    6. lower-pow.f64N/A

                                                                                                                                                                                                                      \[\leadsto \frac{\ell}{\color{blue}{{t}^{3}}} \cdot \frac{\ell}{{k}^{2}} \]
                                                                                                                                                                                                                    7. lower-/.f64N/A

                                                                                                                                                                                                                      \[\leadsto \frac{\ell}{{t}^{3}} \cdot \color{blue}{\frac{\ell}{{k}^{2}}} \]
                                                                                                                                                                                                                    8. unpow2N/A

                                                                                                                                                                                                                      \[\leadsto \frac{\ell}{{t}^{3}} \cdot \frac{\ell}{\color{blue}{k \cdot k}} \]
                                                                                                                                                                                                                    9. lower-*.f6456.5

                                                                                                                                                                                                                      \[\leadsto \frac{\ell}{{t}^{3}} \cdot \frac{\ell}{\color{blue}{k \cdot k}} \]
                                                                                                                                                                                                                  5. Applied rewrites56.5%

                                                                                                                                                                                                                    \[\leadsto \color{blue}{\frac{\ell}{{t}^{3}} \cdot \frac{\ell}{k \cdot k}} \]
                                                                                                                                                                                                                  6. Step-by-step derivation
                                                                                                                                                                                                                    1. Applied rewrites63.2%

                                                                                                                                                                                                                      \[\leadsto \frac{\ell}{{t}^{3} \cdot k} \cdot \color{blue}{\frac{\ell}{k}} \]
                                                                                                                                                                                                                    2. Step-by-step derivation
                                                                                                                                                                                                                      1. Applied rewrites64.1%

                                                                                                                                                                                                                        \[\leadsto \frac{\ell}{\left(t \cdot t\right) \cdot \left(t \cdot k\right)} \cdot \frac{\ell}{k} \]

                                                                                                                                                                                                                      if 2.84999999999999999e156 < k

                                                                                                                                                                                                                      1. Initial program 37.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. Taylor expanded in k around 0

                                                                                                                                                                                                                        \[\leadsto \color{blue}{\frac{{\ell}^{2}}{{k}^{2} \cdot {t}^{3}}} \]
                                                                                                                                                                                                                      4. Step-by-step derivation
                                                                                                                                                                                                                        1. unpow2N/A

                                                                                                                                                                                                                          \[\leadsto \frac{\color{blue}{\ell \cdot \ell}}{{k}^{2} \cdot {t}^{3}} \]
                                                                                                                                                                                                                        2. *-commutativeN/A

                                                                                                                                                                                                                          \[\leadsto \frac{\ell \cdot \ell}{\color{blue}{{t}^{3} \cdot {k}^{2}}} \]
                                                                                                                                                                                                                        3. times-fracN/A

                                                                                                                                                                                                                          \[\leadsto \color{blue}{\frac{\ell}{{t}^{3}} \cdot \frac{\ell}{{k}^{2}}} \]
                                                                                                                                                                                                                        4. lower-*.f64N/A

                                                                                                                                                                                                                          \[\leadsto \color{blue}{\frac{\ell}{{t}^{3}} \cdot \frac{\ell}{{k}^{2}}} \]
                                                                                                                                                                                                                        5. lower-/.f64N/A

                                                                                                                                                                                                                          \[\leadsto \color{blue}{\frac{\ell}{{t}^{3}}} \cdot \frac{\ell}{{k}^{2}} \]
                                                                                                                                                                                                                        6. lower-pow.f64N/A

                                                                                                                                                                                                                          \[\leadsto \frac{\ell}{\color{blue}{{t}^{3}}} \cdot \frac{\ell}{{k}^{2}} \]
                                                                                                                                                                                                                        7. lower-/.f64N/A

                                                                                                                                                                                                                          \[\leadsto \frac{\ell}{{t}^{3}} \cdot \color{blue}{\frac{\ell}{{k}^{2}}} \]
                                                                                                                                                                                                                        8. unpow2N/A

                                                                                                                                                                                                                          \[\leadsto \frac{\ell}{{t}^{3}} \cdot \frac{\ell}{\color{blue}{k \cdot k}} \]
                                                                                                                                                                                                                        9. lower-*.f6441.3

                                                                                                                                                                                                                          \[\leadsto \frac{\ell}{{t}^{3}} \cdot \frac{\ell}{\color{blue}{k \cdot k}} \]
                                                                                                                                                                                                                      5. Applied rewrites41.3%

                                                                                                                                                                                                                        \[\leadsto \color{blue}{\frac{\ell}{{t}^{3}} \cdot \frac{\ell}{k \cdot k}} \]
                                                                                                                                                                                                                      6. Step-by-step derivation
                                                                                                                                                                                                                        1. Applied rewrites52.9%

                                                                                                                                                                                                                          \[\leadsto \frac{\ell}{t \cdot t} \cdot \color{blue}{\frac{\ell}{t \cdot \left(k \cdot k\right)}} \]
                                                                                                                                                                                                                        2. Step-by-step derivation
                                                                                                                                                                                                                          1. Applied rewrites52.6%

                                                                                                                                                                                                                            \[\leadsto \frac{\left(-\ell\right) \cdot \ell}{\color{blue}{\left(\left(k \cdot k\right) \cdot t\right) \cdot \left(\left(-t\right) \cdot t\right)}} \]
                                                                                                                                                                                                                          2. Step-by-step derivation
                                                                                                                                                                                                                            1. Applied rewrites67.5%

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

                                                                                                                                                                                                                            \[\leadsto \begin{array}{l} \mathbf{if}\;k \leq 2.85 \cdot 10^{+156}:\\ \;\;\;\;\frac{\ell}{\left(t \cdot t\right) \cdot \left(t \cdot k\right)} \cdot \frac{\ell}{k}\\ \mathbf{else}:\\ \;\;\;\;\frac{\ell \cdot \ell}{\left(\left(\left(k \cdot k\right) \cdot t\right) \cdot t\right) \cdot t}\\ \end{array} \]
                                                                                                                                                                                                                          5. Add Preprocessing

                                                                                                                                                                                                                          Alternative 24: 64.8% accurate, 9.4× 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}\;k \leq 2.85 \cdot 10^{+156}:\\ \;\;\;\;\frac{\ell}{\left(k \cdot \left(t\_m \cdot t\_m\right)\right) \cdot t\_m} \cdot \frac{\ell}{k}\\ \mathbf{else}:\\ \;\;\;\;\frac{\ell \cdot \ell}{\left(\left(\left(k \cdot k\right) \cdot t\_m\right) \cdot t\_m\right) \cdot t\_m}\\ \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 (<= k 2.85e+156)
                                                                                                                                                                                                                              (* (/ l (* (* k (* t_m t_m)) t_m)) (/ l k))
                                                                                                                                                                                                                              (/ (* l l) (* (* (* (* k k) t_m) t_m) t_m)))))
                                                                                                                                                                                                                          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 (k <= 2.85e+156) {
                                                                                                                                                                                                                          		tmp = (l / ((k * (t_m * t_m)) * t_m)) * (l / k);
                                                                                                                                                                                                                          	} else {
                                                                                                                                                                                                                          		tmp = (l * l) / ((((k * k) * t_m) * t_m) * t_m);
                                                                                                                                                                                                                          	}
                                                                                                                                                                                                                          	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 (k <= 2.85d+156) then
                                                                                                                                                                                                                                  tmp = (l / ((k * (t_m * t_m)) * t_m)) * (l / k)
                                                                                                                                                                                                                              else
                                                                                                                                                                                                                                  tmp = (l * l) / ((((k * k) * t_m) * t_m) * t_m)
                                                                                                                                                                                                                              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 (k <= 2.85e+156) {
                                                                                                                                                                                                                          		tmp = (l / ((k * (t_m * t_m)) * t_m)) * (l / k);
                                                                                                                                                                                                                          	} else {
                                                                                                                                                                                                                          		tmp = (l * l) / ((((k * k) * t_m) * t_m) * t_m);
                                                                                                                                                                                                                          	}
                                                                                                                                                                                                                          	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 k <= 2.85e+156:
                                                                                                                                                                                                                          		tmp = (l / ((k * (t_m * t_m)) * t_m)) * (l / k)
                                                                                                                                                                                                                          	else:
                                                                                                                                                                                                                          		tmp = (l * l) / ((((k * k) * t_m) * t_m) * t_m)
                                                                                                                                                                                                                          	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 (k <= 2.85e+156)
                                                                                                                                                                                                                          		tmp = Float64(Float64(l / Float64(Float64(k * Float64(t_m * t_m)) * t_m)) * Float64(l / k));
                                                                                                                                                                                                                          	else
                                                                                                                                                                                                                          		tmp = Float64(Float64(l * l) / Float64(Float64(Float64(Float64(k * k) * t_m) * t_m) * t_m));
                                                                                                                                                                                                                          	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 (k <= 2.85e+156)
                                                                                                                                                                                                                          		tmp = (l / ((k * (t_m * t_m)) * t_m)) * (l / k);
                                                                                                                                                                                                                          	else
                                                                                                                                                                                                                          		tmp = (l * l) / ((((k * k) * t_m) * t_m) * t_m);
                                                                                                                                                                                                                          	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[k, 2.85e+156], N[(N[(l / N[(N[(k * N[(t$95$m * t$95$m), $MachinePrecision]), $MachinePrecision] * t$95$m), $MachinePrecision]), $MachinePrecision] * N[(l / k), $MachinePrecision]), $MachinePrecision], N[(N[(l * l), $MachinePrecision] / N[(N[(N[(N[(k * k), $MachinePrecision] * t$95$m), $MachinePrecision] * t$95$m), $MachinePrecision] * t$95$m), $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}\;k \leq 2.85 \cdot 10^{+156}:\\
                                                                                                                                                                                                                          \;\;\;\;\frac{\ell}{\left(k \cdot \left(t\_m \cdot t\_m\right)\right) \cdot t\_m} \cdot \frac{\ell}{k}\\
                                                                                                                                                                                                                          
                                                                                                                                                                                                                          \mathbf{else}:\\
                                                                                                                                                                                                                          \;\;\;\;\frac{\ell \cdot \ell}{\left(\left(\left(k \cdot k\right) \cdot t\_m\right) \cdot t\_m\right) \cdot t\_m}\\
                                                                                                                                                                                                                          
                                                                                                                                                                                                                          
                                                                                                                                                                                                                          \end{array}
                                                                                                                                                                                                                          \end{array}
                                                                                                                                                                                                                          
                                                                                                                                                                                                                          Derivation
                                                                                                                                                                                                                          1. Split input into 2 regimes
                                                                                                                                                                                                                          2. if k < 2.84999999999999999e156

                                                                                                                                                                                                                            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. Add Preprocessing
                                                                                                                                                                                                                            3. Taylor expanded in k around 0

                                                                                                                                                                                                                              \[\leadsto \color{blue}{\frac{{\ell}^{2}}{{k}^{2} \cdot {t}^{3}}} \]
                                                                                                                                                                                                                            4. Step-by-step derivation
                                                                                                                                                                                                                              1. unpow2N/A

                                                                                                                                                                                                                                \[\leadsto \frac{\color{blue}{\ell \cdot \ell}}{{k}^{2} \cdot {t}^{3}} \]
                                                                                                                                                                                                                              2. *-commutativeN/A

                                                                                                                                                                                                                                \[\leadsto \frac{\ell \cdot \ell}{\color{blue}{{t}^{3} \cdot {k}^{2}}} \]
                                                                                                                                                                                                                              3. times-fracN/A

                                                                                                                                                                                                                                \[\leadsto \color{blue}{\frac{\ell}{{t}^{3}} \cdot \frac{\ell}{{k}^{2}}} \]
                                                                                                                                                                                                                              4. lower-*.f64N/A

                                                                                                                                                                                                                                \[\leadsto \color{blue}{\frac{\ell}{{t}^{3}} \cdot \frac{\ell}{{k}^{2}}} \]
                                                                                                                                                                                                                              5. lower-/.f64N/A

                                                                                                                                                                                                                                \[\leadsto \color{blue}{\frac{\ell}{{t}^{3}}} \cdot \frac{\ell}{{k}^{2}} \]
                                                                                                                                                                                                                              6. lower-pow.f64N/A

                                                                                                                                                                                                                                \[\leadsto \frac{\ell}{\color{blue}{{t}^{3}}} \cdot \frac{\ell}{{k}^{2}} \]
                                                                                                                                                                                                                              7. lower-/.f64N/A

                                                                                                                                                                                                                                \[\leadsto \frac{\ell}{{t}^{3}} \cdot \color{blue}{\frac{\ell}{{k}^{2}}} \]
                                                                                                                                                                                                                              8. unpow2N/A

                                                                                                                                                                                                                                \[\leadsto \frac{\ell}{{t}^{3}} \cdot \frac{\ell}{\color{blue}{k \cdot k}} \]
                                                                                                                                                                                                                              9. lower-*.f6456.5

                                                                                                                                                                                                                                \[\leadsto \frac{\ell}{{t}^{3}} \cdot \frac{\ell}{\color{blue}{k \cdot k}} \]
                                                                                                                                                                                                                            5. Applied rewrites56.5%

                                                                                                                                                                                                                              \[\leadsto \color{blue}{\frac{\ell}{{t}^{3}} \cdot \frac{\ell}{k \cdot k}} \]
                                                                                                                                                                                                                            6. Step-by-step derivation
                                                                                                                                                                                                                              1. Applied rewrites63.2%

                                                                                                                                                                                                                                \[\leadsto \frac{\ell}{{t}^{3} \cdot k} \cdot \color{blue}{\frac{\ell}{k}} \]
                                                                                                                                                                                                                              2. Step-by-step derivation
                                                                                                                                                                                                                                1. Applied rewrites64.1%

                                                                                                                                                                                                                                  \[\leadsto \frac{\ell}{\left(k \cdot \left(t \cdot t\right)\right) \cdot t} \cdot \frac{\ell}{k} \]

                                                                                                                                                                                                                                if 2.84999999999999999e156 < k

                                                                                                                                                                                                                                1. Initial program 37.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. Taylor expanded in k around 0

                                                                                                                                                                                                                                  \[\leadsto \color{blue}{\frac{{\ell}^{2}}{{k}^{2} \cdot {t}^{3}}} \]
                                                                                                                                                                                                                                4. Step-by-step derivation
                                                                                                                                                                                                                                  1. unpow2N/A

                                                                                                                                                                                                                                    \[\leadsto \frac{\color{blue}{\ell \cdot \ell}}{{k}^{2} \cdot {t}^{3}} \]
                                                                                                                                                                                                                                  2. *-commutativeN/A

                                                                                                                                                                                                                                    \[\leadsto \frac{\ell \cdot \ell}{\color{blue}{{t}^{3} \cdot {k}^{2}}} \]
                                                                                                                                                                                                                                  3. times-fracN/A

                                                                                                                                                                                                                                    \[\leadsto \color{blue}{\frac{\ell}{{t}^{3}} \cdot \frac{\ell}{{k}^{2}}} \]
                                                                                                                                                                                                                                  4. lower-*.f64N/A

                                                                                                                                                                                                                                    \[\leadsto \color{blue}{\frac{\ell}{{t}^{3}} \cdot \frac{\ell}{{k}^{2}}} \]
                                                                                                                                                                                                                                  5. lower-/.f64N/A

                                                                                                                                                                                                                                    \[\leadsto \color{blue}{\frac{\ell}{{t}^{3}}} \cdot \frac{\ell}{{k}^{2}} \]
                                                                                                                                                                                                                                  6. lower-pow.f64N/A

                                                                                                                                                                                                                                    \[\leadsto \frac{\ell}{\color{blue}{{t}^{3}}} \cdot \frac{\ell}{{k}^{2}} \]
                                                                                                                                                                                                                                  7. lower-/.f64N/A

                                                                                                                                                                                                                                    \[\leadsto \frac{\ell}{{t}^{3}} \cdot \color{blue}{\frac{\ell}{{k}^{2}}} \]
                                                                                                                                                                                                                                  8. unpow2N/A

                                                                                                                                                                                                                                    \[\leadsto \frac{\ell}{{t}^{3}} \cdot \frac{\ell}{\color{blue}{k \cdot k}} \]
                                                                                                                                                                                                                                  9. lower-*.f6441.3

                                                                                                                                                                                                                                    \[\leadsto \frac{\ell}{{t}^{3}} \cdot \frac{\ell}{\color{blue}{k \cdot k}} \]
                                                                                                                                                                                                                                5. Applied rewrites41.3%

                                                                                                                                                                                                                                  \[\leadsto \color{blue}{\frac{\ell}{{t}^{3}} \cdot \frac{\ell}{k \cdot k}} \]
                                                                                                                                                                                                                                6. Step-by-step derivation
                                                                                                                                                                                                                                  1. Applied rewrites52.9%

                                                                                                                                                                                                                                    \[\leadsto \frac{\ell}{t \cdot t} \cdot \color{blue}{\frac{\ell}{t \cdot \left(k \cdot k\right)}} \]
                                                                                                                                                                                                                                  2. Step-by-step derivation
                                                                                                                                                                                                                                    1. Applied rewrites52.6%

                                                                                                                                                                                                                                      \[\leadsto \frac{\left(-\ell\right) \cdot \ell}{\color{blue}{\left(\left(k \cdot k\right) \cdot t\right) \cdot \left(\left(-t\right) \cdot t\right)}} \]
                                                                                                                                                                                                                                    2. Step-by-step derivation
                                                                                                                                                                                                                                      1. Applied rewrites67.5%

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

                                                                                                                                                                                                                                      \[\leadsto \begin{array}{l} \mathbf{if}\;k \leq 2.85 \cdot 10^{+156}:\\ \;\;\;\;\frac{\ell}{\left(k \cdot \left(t \cdot t\right)\right) \cdot t} \cdot \frac{\ell}{k}\\ \mathbf{else}:\\ \;\;\;\;\frac{\ell \cdot \ell}{\left(\left(\left(k \cdot k\right) \cdot t\right) \cdot t\right) \cdot t}\\ \end{array} \]
                                                                                                                                                                                                                                    5. Add Preprocessing

                                                                                                                                                                                                                                    Alternative 25: 62.6% accurate, 9.4× 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}\;k \leq 2.85 \cdot 10^{+156}:\\ \;\;\;\;\frac{\ell}{t\_m \cdot t\_m} \cdot \frac{\ell}{\left(t\_m \cdot k\right) \cdot k}\\ \mathbf{else}:\\ \;\;\;\;\frac{\ell \cdot \ell}{\left(\left(\left(k \cdot k\right) \cdot t\_m\right) \cdot t\_m\right) \cdot t\_m}\\ \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 (<= k 2.85e+156)
                                                                                                                                                                                                                                        (* (/ l (* t_m t_m)) (/ l (* (* t_m k) k)))
                                                                                                                                                                                                                                        (/ (* l l) (* (* (* (* k k) t_m) t_m) t_m)))))
                                                                                                                                                                                                                                    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 (k <= 2.85e+156) {
                                                                                                                                                                                                                                    		tmp = (l / (t_m * t_m)) * (l / ((t_m * k) * k));
                                                                                                                                                                                                                                    	} else {
                                                                                                                                                                                                                                    		tmp = (l * l) / ((((k * k) * t_m) * t_m) * t_m);
                                                                                                                                                                                                                                    	}
                                                                                                                                                                                                                                    	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 (k <= 2.85d+156) then
                                                                                                                                                                                                                                            tmp = (l / (t_m * t_m)) * (l / ((t_m * k) * k))
                                                                                                                                                                                                                                        else
                                                                                                                                                                                                                                            tmp = (l * l) / ((((k * k) * t_m) * t_m) * t_m)
                                                                                                                                                                                                                                        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 (k <= 2.85e+156) {
                                                                                                                                                                                                                                    		tmp = (l / (t_m * t_m)) * (l / ((t_m * k) * k));
                                                                                                                                                                                                                                    	} else {
                                                                                                                                                                                                                                    		tmp = (l * l) / ((((k * k) * t_m) * t_m) * t_m);
                                                                                                                                                                                                                                    	}
                                                                                                                                                                                                                                    	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 k <= 2.85e+156:
                                                                                                                                                                                                                                    		tmp = (l / (t_m * t_m)) * (l / ((t_m * k) * k))
                                                                                                                                                                                                                                    	else:
                                                                                                                                                                                                                                    		tmp = (l * l) / ((((k * k) * t_m) * t_m) * t_m)
                                                                                                                                                                                                                                    	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 (k <= 2.85e+156)
                                                                                                                                                                                                                                    		tmp = Float64(Float64(l / Float64(t_m * t_m)) * Float64(l / Float64(Float64(t_m * k) * k)));
                                                                                                                                                                                                                                    	else
                                                                                                                                                                                                                                    		tmp = Float64(Float64(l * l) / Float64(Float64(Float64(Float64(k * k) * t_m) * t_m) * t_m));
                                                                                                                                                                                                                                    	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 (k <= 2.85e+156)
                                                                                                                                                                                                                                    		tmp = (l / (t_m * t_m)) * (l / ((t_m * k) * k));
                                                                                                                                                                                                                                    	else
                                                                                                                                                                                                                                    		tmp = (l * l) / ((((k * k) * t_m) * t_m) * t_m);
                                                                                                                                                                                                                                    	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[k, 2.85e+156], N[(N[(l / N[(t$95$m * t$95$m), $MachinePrecision]), $MachinePrecision] * N[(l / N[(N[(t$95$m * k), $MachinePrecision] * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(l * l), $MachinePrecision] / N[(N[(N[(N[(k * k), $MachinePrecision] * t$95$m), $MachinePrecision] * t$95$m), $MachinePrecision] * t$95$m), $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}\;k \leq 2.85 \cdot 10^{+156}:\\
                                                                                                                                                                                                                                    \;\;\;\;\frac{\ell}{t\_m \cdot t\_m} \cdot \frac{\ell}{\left(t\_m \cdot k\right) \cdot k}\\
                                                                                                                                                                                                                                    
                                                                                                                                                                                                                                    \mathbf{else}:\\
                                                                                                                                                                                                                                    \;\;\;\;\frac{\ell \cdot \ell}{\left(\left(\left(k \cdot k\right) \cdot t\_m\right) \cdot t\_m\right) \cdot t\_m}\\
                                                                                                                                                                                                                                    
                                                                                                                                                                                                                                    
                                                                                                                                                                                                                                    \end{array}
                                                                                                                                                                                                                                    \end{array}
                                                                                                                                                                                                                                    
                                                                                                                                                                                                                                    Derivation
                                                                                                                                                                                                                                    1. Split input into 2 regimes
                                                                                                                                                                                                                                    2. if k < 2.84999999999999999e156

                                                                                                                                                                                                                                      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. Add Preprocessing
                                                                                                                                                                                                                                      3. Taylor expanded in k around 0

                                                                                                                                                                                                                                        \[\leadsto \color{blue}{\frac{{\ell}^{2}}{{k}^{2} \cdot {t}^{3}}} \]
                                                                                                                                                                                                                                      4. Step-by-step derivation
                                                                                                                                                                                                                                        1. unpow2N/A

                                                                                                                                                                                                                                          \[\leadsto \frac{\color{blue}{\ell \cdot \ell}}{{k}^{2} \cdot {t}^{3}} \]
                                                                                                                                                                                                                                        2. *-commutativeN/A

                                                                                                                                                                                                                                          \[\leadsto \frac{\ell \cdot \ell}{\color{blue}{{t}^{3} \cdot {k}^{2}}} \]
                                                                                                                                                                                                                                        3. times-fracN/A

                                                                                                                                                                                                                                          \[\leadsto \color{blue}{\frac{\ell}{{t}^{3}} \cdot \frac{\ell}{{k}^{2}}} \]
                                                                                                                                                                                                                                        4. lower-*.f64N/A

                                                                                                                                                                                                                                          \[\leadsto \color{blue}{\frac{\ell}{{t}^{3}} \cdot \frac{\ell}{{k}^{2}}} \]
                                                                                                                                                                                                                                        5. lower-/.f64N/A

                                                                                                                                                                                                                                          \[\leadsto \color{blue}{\frac{\ell}{{t}^{3}}} \cdot \frac{\ell}{{k}^{2}} \]
                                                                                                                                                                                                                                        6. lower-pow.f64N/A

                                                                                                                                                                                                                                          \[\leadsto \frac{\ell}{\color{blue}{{t}^{3}}} \cdot \frac{\ell}{{k}^{2}} \]
                                                                                                                                                                                                                                        7. lower-/.f64N/A

                                                                                                                                                                                                                                          \[\leadsto \frac{\ell}{{t}^{3}} \cdot \color{blue}{\frac{\ell}{{k}^{2}}} \]
                                                                                                                                                                                                                                        8. unpow2N/A

                                                                                                                                                                                                                                          \[\leadsto \frac{\ell}{{t}^{3}} \cdot \frac{\ell}{\color{blue}{k \cdot k}} \]
                                                                                                                                                                                                                                        9. lower-*.f6456.5

                                                                                                                                                                                                                                          \[\leadsto \frac{\ell}{{t}^{3}} \cdot \frac{\ell}{\color{blue}{k \cdot k}} \]
                                                                                                                                                                                                                                      5. Applied rewrites56.5%

                                                                                                                                                                                                                                        \[\leadsto \color{blue}{\frac{\ell}{{t}^{3}} \cdot \frac{\ell}{k \cdot k}} \]
                                                                                                                                                                                                                                      6. Step-by-step derivation
                                                                                                                                                                                                                                        1. Applied rewrites59.2%

                                                                                                                                                                                                                                          \[\leadsto \frac{\ell}{t \cdot t} \cdot \color{blue}{\frac{\ell}{t \cdot \left(k \cdot k\right)}} \]
                                                                                                                                                                                                                                        2. Step-by-step derivation
                                                                                                                                                                                                                                          1. Applied rewrites62.1%

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

                                                                                                                                                                                                                                          if 2.84999999999999999e156 < k

                                                                                                                                                                                                                                          1. Initial program 37.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. Taylor expanded in k around 0

                                                                                                                                                                                                                                            \[\leadsto \color{blue}{\frac{{\ell}^{2}}{{k}^{2} \cdot {t}^{3}}} \]
                                                                                                                                                                                                                                          4. Step-by-step derivation
                                                                                                                                                                                                                                            1. unpow2N/A

                                                                                                                                                                                                                                              \[\leadsto \frac{\color{blue}{\ell \cdot \ell}}{{k}^{2} \cdot {t}^{3}} \]
                                                                                                                                                                                                                                            2. *-commutativeN/A

                                                                                                                                                                                                                                              \[\leadsto \frac{\ell \cdot \ell}{\color{blue}{{t}^{3} \cdot {k}^{2}}} \]
                                                                                                                                                                                                                                            3. times-fracN/A

                                                                                                                                                                                                                                              \[\leadsto \color{blue}{\frac{\ell}{{t}^{3}} \cdot \frac{\ell}{{k}^{2}}} \]
                                                                                                                                                                                                                                            4. lower-*.f64N/A

                                                                                                                                                                                                                                              \[\leadsto \color{blue}{\frac{\ell}{{t}^{3}} \cdot \frac{\ell}{{k}^{2}}} \]
                                                                                                                                                                                                                                            5. lower-/.f64N/A

                                                                                                                                                                                                                                              \[\leadsto \color{blue}{\frac{\ell}{{t}^{3}}} \cdot \frac{\ell}{{k}^{2}} \]
                                                                                                                                                                                                                                            6. lower-pow.f64N/A

                                                                                                                                                                                                                                              \[\leadsto \frac{\ell}{\color{blue}{{t}^{3}}} \cdot \frac{\ell}{{k}^{2}} \]
                                                                                                                                                                                                                                            7. lower-/.f64N/A

                                                                                                                                                                                                                                              \[\leadsto \frac{\ell}{{t}^{3}} \cdot \color{blue}{\frac{\ell}{{k}^{2}}} \]
                                                                                                                                                                                                                                            8. unpow2N/A

                                                                                                                                                                                                                                              \[\leadsto \frac{\ell}{{t}^{3}} \cdot \frac{\ell}{\color{blue}{k \cdot k}} \]
                                                                                                                                                                                                                                            9. lower-*.f6441.3

                                                                                                                                                                                                                                              \[\leadsto \frac{\ell}{{t}^{3}} \cdot \frac{\ell}{\color{blue}{k \cdot k}} \]
                                                                                                                                                                                                                                          5. Applied rewrites41.3%

                                                                                                                                                                                                                                            \[\leadsto \color{blue}{\frac{\ell}{{t}^{3}} \cdot \frac{\ell}{k \cdot k}} \]
                                                                                                                                                                                                                                          6. Step-by-step derivation
                                                                                                                                                                                                                                            1. Applied rewrites52.9%

                                                                                                                                                                                                                                              \[\leadsto \frac{\ell}{t \cdot t} \cdot \color{blue}{\frac{\ell}{t \cdot \left(k \cdot k\right)}} \]
                                                                                                                                                                                                                                            2. Step-by-step derivation
                                                                                                                                                                                                                                              1. Applied rewrites52.6%

                                                                                                                                                                                                                                                \[\leadsto \frac{\left(-\ell\right) \cdot \ell}{\color{blue}{\left(\left(k \cdot k\right) \cdot t\right) \cdot \left(\left(-t\right) \cdot t\right)}} \]
                                                                                                                                                                                                                                              2. Step-by-step derivation
                                                                                                                                                                                                                                                1. Applied rewrites67.5%

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

                                                                                                                                                                                                                                                \[\leadsto \begin{array}{l} \mathbf{if}\;k \leq 2.85 \cdot 10^{+156}:\\ \;\;\;\;\frac{\ell}{t \cdot t} \cdot \frac{\ell}{\left(t \cdot k\right) \cdot k}\\ \mathbf{else}:\\ \;\;\;\;\frac{\ell \cdot \ell}{\left(\left(\left(k \cdot k\right) \cdot t\right) \cdot t\right) \cdot t}\\ \end{array} \]
                                                                                                                                                                                                                                              5. Add Preprocessing

                                                                                                                                                                                                                                              Alternative 26: 62.3% accurate, 10.7× 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}\;k \leq 5.2 \cdot 10^{+166}:\\ \;\;\;\;\frac{\ell \cdot \ell}{\left(\left(k \cdot t\_m\right) \cdot \left(k \cdot t\_m\right)\right) \cdot t\_m}\\ \mathbf{else}:\\ \;\;\;\;\frac{\ell \cdot \ell}{\left(\left(\left(k \cdot k\right) \cdot t\_m\right) \cdot t\_m\right) \cdot t\_m}\\ \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 (<= k 5.2e+166)
                                                                                                                                                                                                                                                  (/ (* l l) (* (* (* k t_m) (* k t_m)) t_m))
                                                                                                                                                                                                                                                  (/ (* l l) (* (* (* (* k k) t_m) t_m) t_m)))))
                                                                                                                                                                                                                                              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 (k <= 5.2e+166) {
                                                                                                                                                                                                                                              		tmp = (l * l) / (((k * t_m) * (k * t_m)) * t_m);
                                                                                                                                                                                                                                              	} else {
                                                                                                                                                                                                                                              		tmp = (l * l) / ((((k * k) * t_m) * t_m) * t_m);
                                                                                                                                                                                                                                              	}
                                                                                                                                                                                                                                              	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 (k <= 5.2d+166) then
                                                                                                                                                                                                                                                      tmp = (l * l) / (((k * t_m) * (k * t_m)) * t_m)
                                                                                                                                                                                                                                                  else
                                                                                                                                                                                                                                                      tmp = (l * l) / ((((k * k) * t_m) * t_m) * t_m)
                                                                                                                                                                                                                                                  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 (k <= 5.2e+166) {
                                                                                                                                                                                                                                              		tmp = (l * l) / (((k * t_m) * (k * t_m)) * t_m);
                                                                                                                                                                                                                                              	} else {
                                                                                                                                                                                                                                              		tmp = (l * l) / ((((k * k) * t_m) * t_m) * t_m);
                                                                                                                                                                                                                                              	}
                                                                                                                                                                                                                                              	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 k <= 5.2e+166:
                                                                                                                                                                                                                                              		tmp = (l * l) / (((k * t_m) * (k * t_m)) * t_m)
                                                                                                                                                                                                                                              	else:
                                                                                                                                                                                                                                              		tmp = (l * l) / ((((k * k) * t_m) * t_m) * t_m)
                                                                                                                                                                                                                                              	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 (k <= 5.2e+166)
                                                                                                                                                                                                                                              		tmp = Float64(Float64(l * l) / Float64(Float64(Float64(k * t_m) * Float64(k * t_m)) * t_m));
                                                                                                                                                                                                                                              	else
                                                                                                                                                                                                                                              		tmp = Float64(Float64(l * l) / Float64(Float64(Float64(Float64(k * k) * t_m) * t_m) * t_m));
                                                                                                                                                                                                                                              	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 (k <= 5.2e+166)
                                                                                                                                                                                                                                              		tmp = (l * l) / (((k * t_m) * (k * t_m)) * t_m);
                                                                                                                                                                                                                                              	else
                                                                                                                                                                                                                                              		tmp = (l * l) / ((((k * k) * t_m) * t_m) * t_m);
                                                                                                                                                                                                                                              	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[k, 5.2e+166], N[(N[(l * l), $MachinePrecision] / N[(N[(N[(k * t$95$m), $MachinePrecision] * N[(k * t$95$m), $MachinePrecision]), $MachinePrecision] * t$95$m), $MachinePrecision]), $MachinePrecision], N[(N[(l * l), $MachinePrecision] / N[(N[(N[(N[(k * k), $MachinePrecision] * t$95$m), $MachinePrecision] * t$95$m), $MachinePrecision] * t$95$m), $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}\;k \leq 5.2 \cdot 10^{+166}:\\
                                                                                                                                                                                                                                              \;\;\;\;\frac{\ell \cdot \ell}{\left(\left(k \cdot t\_m\right) \cdot \left(k \cdot t\_m\right)\right) \cdot t\_m}\\
                                                                                                                                                                                                                                              
                                                                                                                                                                                                                                              \mathbf{else}:\\
                                                                                                                                                                                                                                              \;\;\;\;\frac{\ell \cdot \ell}{\left(\left(\left(k \cdot k\right) \cdot t\_m\right) \cdot t\_m\right) \cdot t\_m}\\
                                                                                                                                                                                                                                              
                                                                                                                                                                                                                                              
                                                                                                                                                                                                                                              \end{array}
                                                                                                                                                                                                                                              \end{array}
                                                                                                                                                                                                                                              
                                                                                                                                                                                                                                              Derivation
                                                                                                                                                                                                                                              1. Split input into 2 regimes
                                                                                                                                                                                                                                              2. if k < 5.1999999999999999e166

                                                                                                                                                                                                                                                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. Add Preprocessing
                                                                                                                                                                                                                                                3. Taylor expanded in k around 0

                                                                                                                                                                                                                                                  \[\leadsto \color{blue}{\frac{{\ell}^{2}}{{k}^{2} \cdot {t}^{3}}} \]
                                                                                                                                                                                                                                                4. Step-by-step derivation
                                                                                                                                                                                                                                                  1. unpow2N/A

                                                                                                                                                                                                                                                    \[\leadsto \frac{\color{blue}{\ell \cdot \ell}}{{k}^{2} \cdot {t}^{3}} \]
                                                                                                                                                                                                                                                  2. *-commutativeN/A

                                                                                                                                                                                                                                                    \[\leadsto \frac{\ell \cdot \ell}{\color{blue}{{t}^{3} \cdot {k}^{2}}} \]
                                                                                                                                                                                                                                                  3. times-fracN/A

                                                                                                                                                                                                                                                    \[\leadsto \color{blue}{\frac{\ell}{{t}^{3}} \cdot \frac{\ell}{{k}^{2}}} \]
                                                                                                                                                                                                                                                  4. lower-*.f64N/A

                                                                                                                                                                                                                                                    \[\leadsto \color{blue}{\frac{\ell}{{t}^{3}} \cdot \frac{\ell}{{k}^{2}}} \]
                                                                                                                                                                                                                                                  5. lower-/.f64N/A

                                                                                                                                                                                                                                                    \[\leadsto \color{blue}{\frac{\ell}{{t}^{3}}} \cdot \frac{\ell}{{k}^{2}} \]
                                                                                                                                                                                                                                                  6. lower-pow.f64N/A

                                                                                                                                                                                                                                                    \[\leadsto \frac{\ell}{\color{blue}{{t}^{3}}} \cdot \frac{\ell}{{k}^{2}} \]
                                                                                                                                                                                                                                                  7. lower-/.f64N/A

                                                                                                                                                                                                                                                    \[\leadsto \frac{\ell}{{t}^{3}} \cdot \color{blue}{\frac{\ell}{{k}^{2}}} \]
                                                                                                                                                                                                                                                  8. unpow2N/A

                                                                                                                                                                                                                                                    \[\leadsto \frac{\ell}{{t}^{3}} \cdot \frac{\ell}{\color{blue}{k \cdot k}} \]
                                                                                                                                                                                                                                                  9. lower-*.f6456.4

                                                                                                                                                                                                                                                    \[\leadsto \frac{\ell}{{t}^{3}} \cdot \frac{\ell}{\color{blue}{k \cdot k}} \]
                                                                                                                                                                                                                                                5. Applied rewrites56.4%

                                                                                                                                                                                                                                                  \[\leadsto \color{blue}{\frac{\ell}{{t}^{3}} \cdot \frac{\ell}{k \cdot k}} \]
                                                                                                                                                                                                                                                6. Step-by-step derivation
                                                                                                                                                                                                                                                  1. Applied rewrites59.1%

                                                                                                                                                                                                                                                    \[\leadsto \frac{\ell}{t \cdot t} \cdot \color{blue}{\frac{\ell}{t \cdot \left(k \cdot k\right)}} \]
                                                                                                                                                                                                                                                  2. Step-by-step derivation
                                                                                                                                                                                                                                                    1. Applied rewrites51.9%

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

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

                                                                                                                                                                                                                                                      if 5.1999999999999999e166 < k

                                                                                                                                                                                                                                                      1. Initial program 36.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. Taylor expanded in k around 0

                                                                                                                                                                                                                                                        \[\leadsto \color{blue}{\frac{{\ell}^{2}}{{k}^{2} \cdot {t}^{3}}} \]
                                                                                                                                                                                                                                                      4. Step-by-step derivation
                                                                                                                                                                                                                                                        1. unpow2N/A

                                                                                                                                                                                                                                                          \[\leadsto \frac{\color{blue}{\ell \cdot \ell}}{{k}^{2} \cdot {t}^{3}} \]
                                                                                                                                                                                                                                                        2. *-commutativeN/A

                                                                                                                                                                                                                                                          \[\leadsto \frac{\ell \cdot \ell}{\color{blue}{{t}^{3} \cdot {k}^{2}}} \]
                                                                                                                                                                                                                                                        3. times-fracN/A

                                                                                                                                                                                                                                                          \[\leadsto \color{blue}{\frac{\ell}{{t}^{3}} \cdot \frac{\ell}{{k}^{2}}} \]
                                                                                                                                                                                                                                                        4. lower-*.f64N/A

                                                                                                                                                                                                                                                          \[\leadsto \color{blue}{\frac{\ell}{{t}^{3}} \cdot \frac{\ell}{{k}^{2}}} \]
                                                                                                                                                                                                                                                        5. lower-/.f64N/A

                                                                                                                                                                                                                                                          \[\leadsto \color{blue}{\frac{\ell}{{t}^{3}}} \cdot \frac{\ell}{{k}^{2}} \]
                                                                                                                                                                                                                                                        6. lower-pow.f64N/A

                                                                                                                                                                                                                                                          \[\leadsto \frac{\ell}{\color{blue}{{t}^{3}}} \cdot \frac{\ell}{{k}^{2}} \]
                                                                                                                                                                                                                                                        7. lower-/.f64N/A

                                                                                                                                                                                                                                                          \[\leadsto \frac{\ell}{{t}^{3}} \cdot \color{blue}{\frac{\ell}{{k}^{2}}} \]
                                                                                                                                                                                                                                                        8. unpow2N/A

                                                                                                                                                                                                                                                          \[\leadsto \frac{\ell}{{t}^{3}} \cdot \frac{\ell}{\color{blue}{k \cdot k}} \]
                                                                                                                                                                                                                                                        9. lower-*.f6440.6

                                                                                                                                                                                                                                                          \[\leadsto \frac{\ell}{{t}^{3}} \cdot \frac{\ell}{\color{blue}{k \cdot k}} \]
                                                                                                                                                                                                                                                      5. Applied rewrites40.6%

                                                                                                                                                                                                                                                        \[\leadsto \color{blue}{\frac{\ell}{{t}^{3}} \cdot \frac{\ell}{k \cdot k}} \]
                                                                                                                                                                                                                                                      6. Step-by-step derivation
                                                                                                                                                                                                                                                        1. Applied rewrites53.1%

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

                                                                                                                                                                                                                                                            \[\leadsto \frac{\left(-\ell\right) \cdot \ell}{\color{blue}{\left(\left(k \cdot k\right) \cdot t\right) \cdot \left(\left(-t\right) \cdot t\right)}} \]
                                                                                                                                                                                                                                                          2. Step-by-step derivation
                                                                                                                                                                                                                                                            1. Applied rewrites64.9%

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

                                                                                                                                                                                                                                                            \[\leadsto \begin{array}{l} \mathbf{if}\;k \leq 5.2 \cdot 10^{+166}:\\ \;\;\;\;\frac{\ell \cdot \ell}{\left(\left(k \cdot t\right) \cdot \left(k \cdot t\right)\right) \cdot t}\\ \mathbf{else}:\\ \;\;\;\;\frac{\ell \cdot \ell}{\left(\left(\left(k \cdot k\right) \cdot t\right) \cdot t\right) \cdot t}\\ \end{array} \]
                                                                                                                                                                                                                                                          5. Add Preprocessing

                                                                                                                                                                                                                                                          Alternative 27: 61.2% accurate, 12.5× speedup?

                                                                                                                                                                                                                                                          \[\begin{array}{l} t\_m = \left|t\right| \\ t\_s = \mathsf{copysign}\left(1, t\right) \\ t\_s \cdot \frac{\ell \cdot \ell}{\left(\left(k \cdot t\_m\right) \cdot \left(k \cdot t\_m\right)\right) \cdot t\_m} \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 l) (* (* (* k t_m) (* k t_m)) t_m))))
                                                                                                                                                                                                                                                          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 * l) / (((k * t_m) * (k * t_m)) * t_m));
                                                                                                                                                                                                                                                          }
                                                                                                                                                                                                                                                          
                                                                                                                                                                                                                                                          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 * l) / (((k * t_m) * (k * t_m)) * t_m))
                                                                                                                                                                                                                                                          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 * l) / (((k * t_m) * (k * t_m)) * t_m));
                                                                                                                                                                                                                                                          }
                                                                                                                                                                                                                                                          
                                                                                                                                                                                                                                                          t\_m = math.fabs(t)
                                                                                                                                                                                                                                                          t\_s = math.copysign(1.0, t)
                                                                                                                                                                                                                                                          def code(t_s, t_m, l, k):
                                                                                                                                                                                                                                                          	return t_s * ((l * l) / (((k * t_m) * (k * t_m)) * t_m))
                                                                                                                                                                                                                                                          
                                                                                                                                                                                                                                                          t\_m = abs(t)
                                                                                                                                                                                                                                                          t\_s = copysign(1.0, t)
                                                                                                                                                                                                                                                          function code(t_s, t_m, l, k)
                                                                                                                                                                                                                                                          	return Float64(t_s * Float64(Float64(l * l) / Float64(Float64(Float64(k * t_m) * Float64(k * t_m)) * t_m)))
                                                                                                                                                                                                                                                          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 * l) / (((k * t_m) * (k * t_m)) * t_m));
                                                                                                                                                                                                                                                          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[(N[(l * l), $MachinePrecision] / N[(N[(N[(k * t$95$m), $MachinePrecision] * N[(k * t$95$m), $MachinePrecision]), $MachinePrecision] * t$95$m), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
                                                                                                                                                                                                                                                          
                                                                                                                                                                                                                                                          \begin{array}{l}
                                                                                                                                                                                                                                                          t\_m = \left|t\right|
                                                                                                                                                                                                                                                          \\
                                                                                                                                                                                                                                                          t\_s = \mathsf{copysign}\left(1, t\right)
                                                                                                                                                                                                                                                          
                                                                                                                                                                                                                                                          \\
                                                                                                                                                                                                                                                          t\_s \cdot \frac{\ell \cdot \ell}{\left(\left(k \cdot t\_m\right) \cdot \left(k \cdot t\_m\right)\right) \cdot t\_m}
                                                                                                                                                                                                                                                          \end{array}
                                                                                                                                                                                                                                                          
                                                                                                                                                                                                                                                          Derivation
                                                                                                                                                                                                                                                          1. Initial program 51.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. Taylor expanded in k around 0

                                                                                                                                                                                                                                                            \[\leadsto \color{blue}{\frac{{\ell}^{2}}{{k}^{2} \cdot {t}^{3}}} \]
                                                                                                                                                                                                                                                          4. Step-by-step derivation
                                                                                                                                                                                                                                                            1. unpow2N/A

                                                                                                                                                                                                                                                              \[\leadsto \frac{\color{blue}{\ell \cdot \ell}}{{k}^{2} \cdot {t}^{3}} \]
                                                                                                                                                                                                                                                            2. *-commutativeN/A

                                                                                                                                                                                                                                                              \[\leadsto \frac{\ell \cdot \ell}{\color{blue}{{t}^{3} \cdot {k}^{2}}} \]
                                                                                                                                                                                                                                                            3. times-fracN/A

                                                                                                                                                                                                                                                              \[\leadsto \color{blue}{\frac{\ell}{{t}^{3}} \cdot \frac{\ell}{{k}^{2}}} \]
                                                                                                                                                                                                                                                            4. lower-*.f64N/A

                                                                                                                                                                                                                                                              \[\leadsto \color{blue}{\frac{\ell}{{t}^{3}} \cdot \frac{\ell}{{k}^{2}}} \]
                                                                                                                                                                                                                                                            5. lower-/.f64N/A

                                                                                                                                                                                                                                                              \[\leadsto \color{blue}{\frac{\ell}{{t}^{3}}} \cdot \frac{\ell}{{k}^{2}} \]
                                                                                                                                                                                                                                                            6. lower-pow.f64N/A

                                                                                                                                                                                                                                                              \[\leadsto \frac{\ell}{\color{blue}{{t}^{3}}} \cdot \frac{\ell}{{k}^{2}} \]
                                                                                                                                                                                                                                                            7. lower-/.f64N/A

                                                                                                                                                                                                                                                              \[\leadsto \frac{\ell}{{t}^{3}} \cdot \color{blue}{\frac{\ell}{{k}^{2}}} \]
                                                                                                                                                                                                                                                            8. unpow2N/A

                                                                                                                                                                                                                                                              \[\leadsto \frac{\ell}{{t}^{3}} \cdot \frac{\ell}{\color{blue}{k \cdot k}} \]
                                                                                                                                                                                                                                                            9. lower-*.f6454.9

                                                                                                                                                                                                                                                              \[\leadsto \frac{\ell}{{t}^{3}} \cdot \frac{\ell}{\color{blue}{k \cdot k}} \]
                                                                                                                                                                                                                                                          5. Applied rewrites54.9%

                                                                                                                                                                                                                                                            \[\leadsto \color{blue}{\frac{\ell}{{t}^{3}} \cdot \frac{\ell}{k \cdot k}} \]
                                                                                                                                                                                                                                                          6. Step-by-step derivation
                                                                                                                                                                                                                                                            1. Applied rewrites58.6%

                                                                                                                                                                                                                                                              \[\leadsto \frac{\ell}{t \cdot t} \cdot \color{blue}{\frac{\ell}{t \cdot \left(k \cdot k\right)}} \]
                                                                                                                                                                                                                                                            2. Step-by-step derivation
                                                                                                                                                                                                                                                              1. Applied rewrites52.0%

                                                                                                                                                                                                                                                                \[\leadsto \frac{\left(-\ell\right) \cdot \ell}{\color{blue}{\left(\left(k \cdot k\right) \cdot t\right) \cdot \left(\left(-t\right) \cdot t\right)}} \]
                                                                                                                                                                                                                                                              2. Step-by-step derivation
                                                                                                                                                                                                                                                                1. Applied rewrites58.0%

                                                                                                                                                                                                                                                                  \[\leadsto \frac{\left(-\ell\right) \cdot \ell}{\left(\left(k \cdot t\right) \cdot \left(\left(-k\right) \cdot t\right)\right) \cdot \color{blue}{t}} \]
                                                                                                                                                                                                                                                                2. Final simplification58.0%

                                                                                                                                                                                                                                                                  \[\leadsto \frac{\ell \cdot \ell}{\left(\left(k \cdot t\right) \cdot \left(k \cdot t\right)\right) \cdot t} \]
                                                                                                                                                                                                                                                                3. Add Preprocessing

                                                                                                                                                                                                                                                                Alternative 28: 53.5% accurate, 12.5× speedup?

                                                                                                                                                                                                                                                                \[\begin{array}{l} t\_m = \left|t\right| \\ t\_s = \mathsf{copysign}\left(1, t\right) \\ t\_s \cdot \frac{\ell \cdot \ell}{\left(\left(k \cdot k\right) \cdot t\_m\right) \cdot \left(t\_m \cdot t\_m\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 l) (* (* (* k k) t_m) (* t_m t_m)))))
                                                                                                                                                                                                                                                                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 * l) / (((k * k) * t_m) * (t_m * t_m)));
                                                                                                                                                                                                                                                                }
                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                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 * l) / (((k * k) * t_m) * (t_m * t_m)))
                                                                                                                                                                                                                                                                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 * l) / (((k * k) * t_m) * (t_m * t_m)));
                                                                                                                                                                                                                                                                }
                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                t\_m = math.fabs(t)
                                                                                                                                                                                                                                                                t\_s = math.copysign(1.0, t)
                                                                                                                                                                                                                                                                def code(t_s, t_m, l, k):
                                                                                                                                                                                                                                                                	return t_s * ((l * l) / (((k * k) * t_m) * (t_m * t_m)))
                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                t\_m = abs(t)
                                                                                                                                                                                                                                                                t\_s = copysign(1.0, t)
                                                                                                                                                                                                                                                                function code(t_s, t_m, l, k)
                                                                                                                                                                                                                                                                	return Float64(t_s * Float64(Float64(l * l) / Float64(Float64(Float64(k * k) * t_m) * Float64(t_m * t_m))))
                                                                                                                                                                                                                                                                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 * l) / (((k * k) * t_m) * (t_m * t_m)));
                                                                                                                                                                                                                                                                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[(N[(l * l), $MachinePrecision] / N[(N[(N[(k * k), $MachinePrecision] * t$95$m), $MachinePrecision] * N[(t$95$m * t$95$m), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                \begin{array}{l}
                                                                                                                                                                                                                                                                t\_m = \left|t\right|
                                                                                                                                                                                                                                                                \\
                                                                                                                                                                                                                                                                t\_s = \mathsf{copysign}\left(1, t\right)
                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                \\
                                                                                                                                                                                                                                                                t\_s \cdot \frac{\ell \cdot \ell}{\left(\left(k \cdot k\right) \cdot t\_m\right) \cdot \left(t\_m \cdot t\_m\right)}
                                                                                                                                                                                                                                                                \end{array}
                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                Derivation
                                                                                                                                                                                                                                                                1. Initial program 51.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. Taylor expanded in k around 0

                                                                                                                                                                                                                                                                  \[\leadsto \color{blue}{\frac{{\ell}^{2}}{{k}^{2} \cdot {t}^{3}}} \]
                                                                                                                                                                                                                                                                4. Step-by-step derivation
                                                                                                                                                                                                                                                                  1. unpow2N/A

                                                                                                                                                                                                                                                                    \[\leadsto \frac{\color{blue}{\ell \cdot \ell}}{{k}^{2} \cdot {t}^{3}} \]
                                                                                                                                                                                                                                                                  2. *-commutativeN/A

                                                                                                                                                                                                                                                                    \[\leadsto \frac{\ell \cdot \ell}{\color{blue}{{t}^{3} \cdot {k}^{2}}} \]
                                                                                                                                                                                                                                                                  3. times-fracN/A

                                                                                                                                                                                                                                                                    \[\leadsto \color{blue}{\frac{\ell}{{t}^{3}} \cdot \frac{\ell}{{k}^{2}}} \]
                                                                                                                                                                                                                                                                  4. lower-*.f64N/A

                                                                                                                                                                                                                                                                    \[\leadsto \color{blue}{\frac{\ell}{{t}^{3}} \cdot \frac{\ell}{{k}^{2}}} \]
                                                                                                                                                                                                                                                                  5. lower-/.f64N/A

                                                                                                                                                                                                                                                                    \[\leadsto \color{blue}{\frac{\ell}{{t}^{3}}} \cdot \frac{\ell}{{k}^{2}} \]
                                                                                                                                                                                                                                                                  6. lower-pow.f64N/A

                                                                                                                                                                                                                                                                    \[\leadsto \frac{\ell}{\color{blue}{{t}^{3}}} \cdot \frac{\ell}{{k}^{2}} \]
                                                                                                                                                                                                                                                                  7. lower-/.f64N/A

                                                                                                                                                                                                                                                                    \[\leadsto \frac{\ell}{{t}^{3}} \cdot \color{blue}{\frac{\ell}{{k}^{2}}} \]
                                                                                                                                                                                                                                                                  8. unpow2N/A

                                                                                                                                                                                                                                                                    \[\leadsto \frac{\ell}{{t}^{3}} \cdot \frac{\ell}{\color{blue}{k \cdot k}} \]
                                                                                                                                                                                                                                                                  9. lower-*.f6454.9

                                                                                                                                                                                                                                                                    \[\leadsto \frac{\ell}{{t}^{3}} \cdot \frac{\ell}{\color{blue}{k \cdot k}} \]
                                                                                                                                                                                                                                                                5. Applied rewrites54.9%

                                                                                                                                                                                                                                                                  \[\leadsto \color{blue}{\frac{\ell}{{t}^{3}} \cdot \frac{\ell}{k \cdot k}} \]
                                                                                                                                                                                                                                                                6. Step-by-step derivation
                                                                                                                                                                                                                                                                  1. Applied rewrites58.6%

                                                                                                                                                                                                                                                                    \[\leadsto \frac{\ell}{t \cdot t} \cdot \color{blue}{\frac{\ell}{t \cdot \left(k \cdot k\right)}} \]
                                                                                                                                                                                                                                                                  2. Step-by-step derivation
                                                                                                                                                                                                                                                                    1. Applied rewrites52.0%

                                                                                                                                                                                                                                                                      \[\leadsto \frac{\left(-\ell\right) \cdot \ell}{\color{blue}{\left(\left(k \cdot k\right) \cdot t\right) \cdot \left(\left(-t\right) \cdot t\right)}} \]
                                                                                                                                                                                                                                                                    2. Step-by-step derivation
                                                                                                                                                                                                                                                                      1. Applied rewrites52.0%

                                                                                                                                                                                                                                                                        \[\leadsto \frac{\ell \cdot \ell}{\color{blue}{\left(\left(k \cdot k\right) \cdot t\right) \cdot \left(t \cdot t\right)}} \]
                                                                                                                                                                                                                                                                      2. Add Preprocessing

                                                                                                                                                                                                                                                                      Reproduce

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