Toniolo and Linder, Equation (10+)

Percentage Accurate: 55.0% → 86.5%
Time: 17.6s
Alternatives: 20
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 20 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.0% 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: 86.5% 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 3.6 \cdot 10^{-48}:\\ \;\;\;\;\left(2 \cdot \left(\ell \cdot \ell\right)\right) \cdot \frac{\cos k}{{\sin k}^{2} \cdot \left(k \cdot \left(t\_m \cdot k\right)\right)}\\ \mathbf{else}:\\ \;\;\;\;\frac{\frac{2}{\frac{t\_m}{\ell}}}{\left(\left(t\_m \cdot \sin k\right) \cdot \frac{t\_m \cdot \tan k}{\ell}\right) \cdot \mathsf{fma}\left(k, \frac{k}{t\_m \cdot 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 3.6e-48)
    (* (* 2.0 (* l l)) (/ (cos k) (* (pow (sin k) 2.0) (* k (* t_m k)))))
    (/
     (/ 2.0 (/ t_m l))
     (*
      (* (* t_m (sin k)) (/ (* t_m (tan k)) l))
      (fma k (/ k (* t_m 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 <= 3.6e-48) {
		tmp = (2.0 * (l * l)) * (cos(k) / (pow(sin(k), 2.0) * (k * (t_m * k))));
	} else {
		tmp = (2.0 / (t_m / l)) / (((t_m * sin(k)) * ((t_m * tan(k)) / l)) * fma(k, (k / (t_m * 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 <= 3.6e-48)
		tmp = Float64(Float64(2.0 * Float64(l * l)) * Float64(cos(k) / Float64((sin(k) ^ 2.0) * Float64(k * Float64(t_m * k)))));
	else
		tmp = Float64(Float64(2.0 / Float64(t_m / l)) / Float64(Float64(Float64(t_m * sin(k)) * Float64(Float64(t_m * tan(k)) / l)) * fma(k, Float64(k / Float64(t_m * 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, 3.6e-48], N[(N[(2.0 * N[(l * l), $MachinePrecision]), $MachinePrecision] * N[(N[Cos[k], $MachinePrecision] / N[(N[Power[N[Sin[k], $MachinePrecision], 2.0], $MachinePrecision] * N[(k * N[(t$95$m * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(2.0 / N[(t$95$m / l), $MachinePrecision]), $MachinePrecision] / N[(N[(N[(t$95$m * N[Sin[k], $MachinePrecision]), $MachinePrecision] * N[(N[(t$95$m * N[Tan[k], $MachinePrecision]), $MachinePrecision] / l), $MachinePrecision]), $MachinePrecision] * N[(k * N[(k / N[(t$95$m * t$95$m), $MachinePrecision]), $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 3.6 \cdot 10^{-48}:\\
\;\;\;\;\left(2 \cdot \left(\ell \cdot \ell\right)\right) \cdot \frac{\cos k}{{\sin k}^{2} \cdot \left(k \cdot \left(t\_m \cdot k\right)\right)}\\

\mathbf{else}:\\
\;\;\;\;\frac{\frac{2}{\frac{t\_m}{\ell}}}{\left(\left(t\_m \cdot \sin k\right) \cdot \frac{t\_m \cdot \tan k}{\ell}\right) \cdot \mathsf{fma}\left(k, \frac{k}{t\_m \cdot t\_m}, 2\right)}\\


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

    1. Initial program 49.3%

      \[\frac{2}{\left(\left(\frac{{t}^{3}}{\ell \cdot \ell} \cdot \sin k\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
    2. Add Preprocessing
    3. Step-by-step derivation
      1. 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. associate-*l/N/A

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

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

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

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

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

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

        \[\leadsto \frac{2}{\left(\left(\frac{t}{\ell} \cdot \frac{\color{blue}{t \cdot \left(t \cdot \sin k\right)}}{\ell}\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}{\ell} \cdot \frac{\color{blue}{t \cdot \left(t \cdot \sin k\right)}}{\ell}\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
      14. lower-*.f6460.9

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

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

        \[\leadsto \frac{2}{\left(\left(\frac{t}{\ell} \cdot \color{blue}{\frac{t \cdot \left(t \cdot \sin k\right)}{\ell}}\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(\frac{t}{\ell} \cdot \frac{\color{blue}{t \cdot \left(t \cdot \sin k\right)}}{\ell}\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}{\left(\left(\frac{t}{\ell} \cdot \color{blue}{\left(t \cdot \frac{t \cdot \sin k}{\ell}\right)}\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
      4. *-commutativeN/A

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

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

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

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

        \[\leadsto \frac{2}{\color{blue}{\left(\left(\frac{t}{\ell} \cdot \left(\frac{t \cdot \sin k}{\ell} \cdot t\right)\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(\color{blue}{\left(\frac{t}{\ell} \cdot \left(\frac{t \cdot \sin k}{\ell} \cdot t\right)\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}{\ell} \cdot \left(\left(\frac{t \cdot \sin k}{\ell} \cdot t\right) \cdot \tan k\right)\right)} \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
      4. lower-*.f64N/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if 3.6000000000000002e-48 < t

    1. Initial program 70.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. associate-*l/N/A

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

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

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

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

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

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

        \[\leadsto \frac{2}{\left(\left(\frac{t}{\ell} \cdot \frac{\color{blue}{t \cdot \left(t \cdot \sin k\right)}}{\ell}\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}{\ell} \cdot \frac{\color{blue}{t \cdot \left(t \cdot \sin k\right)}}{\ell}\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
      14. lower-*.f6487.2

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

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

        \[\leadsto \frac{2}{\left(\left(\frac{t}{\ell} \cdot \color{blue}{\frac{t \cdot \left(t \cdot \sin k\right)}{\ell}}\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(\frac{t}{\ell} \cdot \frac{\color{blue}{t \cdot \left(t \cdot \sin k\right)}}{\ell}\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}{\left(\left(\frac{t}{\ell} \cdot \color{blue}{\left(t \cdot \frac{t \cdot \sin k}{\ell}\right)}\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
      4. *-commutativeN/A

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

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

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

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

        \[\leadsto \frac{2}{\color{blue}{\left(\left(\frac{t}{\ell} \cdot \left(\frac{t \cdot \sin k}{\ell} \cdot t\right)\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(\color{blue}{\left(\frac{t}{\ell} \cdot \left(\frac{t \cdot \sin k}{\ell} \cdot t\right)\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}{\ell} \cdot \left(\left(\frac{t \cdot \sin k}{\ell} \cdot t\right) \cdot \tan k\right)\right)} \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
      4. lower-*.f64N/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq 3.6 \cdot 10^{-48}:\\ \;\;\;\;\left(2 \cdot \left(\ell \cdot \ell\right)\right) \cdot \frac{\cos k}{{\sin k}^{2} \cdot \left(k \cdot \left(t \cdot k\right)\right)}\\ \mathbf{else}:\\ \;\;\;\;\frac{\frac{2}{\frac{t}{\ell}}}{\left(\left(t \cdot \sin k\right) \cdot \frac{t \cdot \tan k}{\ell}\right) \cdot \mathsf{fma}\left(k, \frac{k}{t \cdot t}, 2\right)}\\ \end{array} \]
  5. Add Preprocessing

Alternative 2: 84.2% accurate, 1.3× speedup?

\[\begin{array}{l} t\_m = \left|t\right| \\ t\_s = \mathsf{copysign}\left(1, t\right) \\ t\_s \cdot \begin{array}{l} \mathbf{if}\;t\_m \leq 3.6 \cdot 10^{-48}:\\ \;\;\;\;\left(2 \cdot \left(\ell \cdot \ell\right)\right) \cdot \frac{\cos k}{{\sin k}^{2} \cdot \left(t\_m \cdot \left(k \cdot k\right)\right)}\\ \mathbf{else}:\\ \;\;\;\;\frac{\frac{2}{\frac{t\_m}{\ell}}}{\left(\left(t\_m \cdot \sin k\right) \cdot \frac{t\_m \cdot \tan k}{\ell}\right) \cdot \mathsf{fma}\left(k, \frac{k}{t\_m \cdot 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 3.6e-48)
    (* (* 2.0 (* l l)) (/ (cos k) (* (pow (sin k) 2.0) (* t_m (* k k)))))
    (/
     (/ 2.0 (/ t_m l))
     (*
      (* (* t_m (sin k)) (/ (* t_m (tan k)) l))
      (fma k (/ k (* t_m 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 <= 3.6e-48) {
		tmp = (2.0 * (l * l)) * (cos(k) / (pow(sin(k), 2.0) * (t_m * (k * k))));
	} else {
		tmp = (2.0 / (t_m / l)) / (((t_m * sin(k)) * ((t_m * tan(k)) / l)) * fma(k, (k / (t_m * 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 <= 3.6e-48)
		tmp = Float64(Float64(2.0 * Float64(l * l)) * Float64(cos(k) / Float64((sin(k) ^ 2.0) * Float64(t_m * Float64(k * k)))));
	else
		tmp = Float64(Float64(2.0 / Float64(t_m / l)) / Float64(Float64(Float64(t_m * sin(k)) * Float64(Float64(t_m * tan(k)) / l)) * fma(k, Float64(k / Float64(t_m * 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, 3.6e-48], N[(N[(2.0 * N[(l * l), $MachinePrecision]), $MachinePrecision] * N[(N[Cos[k], $MachinePrecision] / N[(N[Power[N[Sin[k], $MachinePrecision], 2.0], $MachinePrecision] * N[(t$95$m * N[(k * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(2.0 / N[(t$95$m / l), $MachinePrecision]), $MachinePrecision] / N[(N[(N[(t$95$m * N[Sin[k], $MachinePrecision]), $MachinePrecision] * N[(N[(t$95$m * N[Tan[k], $MachinePrecision]), $MachinePrecision] / l), $MachinePrecision]), $MachinePrecision] * N[(k * N[(k / N[(t$95$m * t$95$m), $MachinePrecision]), $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 3.6 \cdot 10^{-48}:\\
\;\;\;\;\left(2 \cdot \left(\ell \cdot \ell\right)\right) \cdot \frac{\cos k}{{\sin k}^{2} \cdot \left(t\_m \cdot \left(k \cdot k\right)\right)}\\

\mathbf{else}:\\
\;\;\;\;\frac{\frac{2}{\frac{t\_m}{\ell}}}{\left(\left(t\_m \cdot \sin k\right) \cdot \frac{t\_m \cdot \tan k}{\ell}\right) \cdot \mathsf{fma}\left(k, \frac{k}{t\_m \cdot t\_m}, 2\right)}\\


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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \frac{\ell \cdot \ell}{\left(t \cdot \left(t \cdot t\right)\right) \cdot \color{blue}{\left(k \cdot k\right)}} \]
      12. lower-*.f6449.2

        \[\leadsto \frac{\ell \cdot \ell}{\left(t \cdot \left(t \cdot t\right)\right) \cdot \color{blue}{\left(k \cdot k\right)}} \]
    5. Applied rewrites49.2%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

          \[\leadsto \left(2 \cdot \left(\ell \cdot \ell\right)\right) \cdot \frac{\cos k}{{\sin k}^{2} \cdot \left(\color{blue}{\left(k \cdot k\right)} \cdot t\right)} \]
        16. lower-*.f6463.4

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

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

      if 3.6000000000000002e-48 < t

      1. Initial program 70.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. associate-*l/N/A

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

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

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

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

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

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

          \[\leadsto \frac{2}{\left(\left(\frac{t}{\ell} \cdot \frac{\color{blue}{t \cdot \left(t \cdot \sin k\right)}}{\ell}\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}{\ell} \cdot \frac{\color{blue}{t \cdot \left(t \cdot \sin k\right)}}{\ell}\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
        14. lower-*.f6487.2

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

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

          \[\leadsto \frac{2}{\left(\left(\frac{t}{\ell} \cdot \color{blue}{\frac{t \cdot \left(t \cdot \sin k\right)}{\ell}}\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(\frac{t}{\ell} \cdot \frac{\color{blue}{t \cdot \left(t \cdot \sin k\right)}}{\ell}\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}{\left(\left(\frac{t}{\ell} \cdot \color{blue}{\left(t \cdot \frac{t \cdot \sin k}{\ell}\right)}\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
        4. *-commutativeN/A

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

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

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

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

          \[\leadsto \frac{2}{\color{blue}{\left(\left(\frac{t}{\ell} \cdot \left(\frac{t \cdot \sin k}{\ell} \cdot t\right)\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(\color{blue}{\left(\frac{t}{\ell} \cdot \left(\frac{t \cdot \sin k}{\ell} \cdot t\right)\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}{\ell} \cdot \left(\left(\frac{t \cdot \sin k}{\ell} \cdot t\right) \cdot \tan k\right)\right)} \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
        4. lower-*.f64N/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \color{blue}{\frac{\frac{2}{\frac{t}{\ell}}}{\left(\left(t \cdot \sin k\right) \cdot \frac{t \cdot \tan k}{\ell}\right) \cdot \mathsf{fma}\left(k, \frac{k}{t \cdot t}, 2\right)}} \]
    7. Recombined 2 regimes into one program.
    8. Final simplification74.0%

      \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq 3.6 \cdot 10^{-48}:\\ \;\;\;\;\left(2 \cdot \left(\ell \cdot \ell\right)\right) \cdot \frac{\cos k}{{\sin k}^{2} \cdot \left(t \cdot \left(k \cdot k\right)\right)}\\ \mathbf{else}:\\ \;\;\;\;\frac{\frac{2}{\frac{t}{\ell}}}{\left(\left(t \cdot \sin k\right) \cdot \frac{t \cdot \tan k}{\ell}\right) \cdot \mathsf{fma}\left(k, \frac{k}{t \cdot t}, 2\right)}\\ \end{array} \]
    9. Add Preprocessing

    Alternative 3: 78.9% 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 1.9 \cdot 10^{-177}:\\ \;\;\;\;\frac{2}{\frac{\left(k \cdot k\right) \cdot \left(k \cdot k\right)}{\ell \cdot \ell} \cdot \mathsf{fma}\left(t\_m, \left(t\_m \cdot t\_m\right) \cdot 0.3333333333333333, t\_m\right)}\\ \mathbf{elif}\;t\_m \leq 5.2 \cdot 10^{+109}:\\ \;\;\;\;\frac{2}{\frac{t\_m}{\ell} \cdot \left(\left(\left(t\_m \cdot t\_m\right) \cdot \frac{\sin k}{\ell}\right) \cdot \left(\tan k \cdot \mathsf{fma}\left(k, \frac{k}{t\_m \cdot t\_m}, 2\right)\right)\right)}\\ \mathbf{else}:\\ \;\;\;\;\frac{2}{\left(\frac{t\_m \cdot \sin k}{\ell} \cdot \left(\frac{t\_m}{\ell} \cdot \left(t\_m \cdot \tan k\right)\right)\right) \cdot 2}\\ \end{array} \end{array} \]
    t\_m = (fabs.f64 t)
    t\_s = (copysign.f64 #s(literal 1 binary64) t)
    (FPCore (t_s t_m l k)
     :precision binary64
     (*
      t_s
      (if (<= t_m 1.9e-177)
        (/
         2.0
         (*
          (/ (* (* k k) (* k k)) (* l l))
          (fma t_m (* (* t_m t_m) 0.3333333333333333) t_m)))
        (if (<= t_m 5.2e+109)
          (/
           2.0
           (*
            (/ t_m l)
            (*
             (* (* t_m t_m) (/ (sin k) l))
             (* (tan k) (fma k (/ k (* t_m t_m)) 2.0)))))
          (/
           2.0
           (* (* (/ (* t_m (sin k)) l) (* (/ t_m l) (* t_m (tan k)))) 2.0))))))
    t\_m = fabs(t);
    t\_s = copysign(1.0, t);
    double code(double t_s, double t_m, double l, double k) {
    	double tmp;
    	if (t_m <= 1.9e-177) {
    		tmp = 2.0 / ((((k * k) * (k * k)) / (l * l)) * fma(t_m, ((t_m * t_m) * 0.3333333333333333), t_m));
    	} else if (t_m <= 5.2e+109) {
    		tmp = 2.0 / ((t_m / l) * (((t_m * t_m) * (sin(k) / l)) * (tan(k) * fma(k, (k / (t_m * t_m)), 2.0))));
    	} else {
    		tmp = 2.0 / ((((t_m * sin(k)) / l) * ((t_m / l) * (t_m * tan(k)))) * 2.0);
    	}
    	return t_s * tmp;
    }
    
    t\_m = abs(t)
    t\_s = copysign(1.0, t)
    function code(t_s, t_m, l, k)
    	tmp = 0.0
    	if (t_m <= 1.9e-177)
    		tmp = Float64(2.0 / Float64(Float64(Float64(Float64(k * k) * Float64(k * k)) / Float64(l * l)) * fma(t_m, Float64(Float64(t_m * t_m) * 0.3333333333333333), t_m)));
    	elseif (t_m <= 5.2e+109)
    		tmp = Float64(2.0 / Float64(Float64(t_m / l) * Float64(Float64(Float64(t_m * t_m) * Float64(sin(k) / l)) * Float64(tan(k) * fma(k, Float64(k / Float64(t_m * t_m)), 2.0)))));
    	else
    		tmp = Float64(2.0 / Float64(Float64(Float64(Float64(t_m * sin(k)) / l) * Float64(Float64(t_m / l) * Float64(t_m * tan(k)))) * 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, 1.9e-177], N[(2.0 / N[(N[(N[(N[(k * k), $MachinePrecision] * N[(k * k), $MachinePrecision]), $MachinePrecision] / N[(l * l), $MachinePrecision]), $MachinePrecision] * N[(t$95$m * N[(N[(t$95$m * t$95$m), $MachinePrecision] * 0.3333333333333333), $MachinePrecision] + t$95$m), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$m, 5.2e+109], N[(2.0 / N[(N[(t$95$m / l), $MachinePrecision] * N[(N[(N[(t$95$m * t$95$m), $MachinePrecision] * N[(N[Sin[k], $MachinePrecision] / l), $MachinePrecision]), $MachinePrecision] * N[(N[Tan[k], $MachinePrecision] * N[(k * N[(k / N[(t$95$m * t$95$m), $MachinePrecision]), $MachinePrecision] + 2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(2.0 / N[(N[(N[(N[(t$95$m * N[Sin[k], $MachinePrecision]), $MachinePrecision] / l), $MachinePrecision] * N[(N[(t$95$m / l), $MachinePrecision] * N[(t$95$m * N[Tan[k], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * 2.0), $MachinePrecision]), $MachinePrecision]]]), $MachinePrecision]
    
    \begin{array}{l}
    t\_m = \left|t\right|
    \\
    t\_s = \mathsf{copysign}\left(1, t\right)
    
    \\
    t\_s \cdot \begin{array}{l}
    \mathbf{if}\;t\_m \leq 1.9 \cdot 10^{-177}:\\
    \;\;\;\;\frac{2}{\frac{\left(k \cdot k\right) \cdot \left(k \cdot k\right)}{\ell \cdot \ell} \cdot \mathsf{fma}\left(t\_m, \left(t\_m \cdot t\_m\right) \cdot 0.3333333333333333, t\_m\right)}\\
    
    \mathbf{elif}\;t\_m \leq 5.2 \cdot 10^{+109}:\\
    \;\;\;\;\frac{2}{\frac{t\_m}{\ell} \cdot \left(\left(\left(t\_m \cdot t\_m\right) \cdot \frac{\sin k}{\ell}\right) \cdot \left(\tan k \cdot \mathsf{fma}\left(k, \frac{k}{t\_m \cdot t\_m}, 2\right)\right)\right)}\\
    
    \mathbf{else}:\\
    \;\;\;\;\frac{2}{\left(\frac{t\_m \cdot \sin k}{\ell} \cdot \left(\frac{t\_m}{\ell} \cdot \left(t\_m \cdot \tan k\right)\right)\right) \cdot 2}\\
    
    
    \end{array}
    \end{array}
    
    Derivation
    1. Split input into 3 regimes
    2. if t < 1.90000000000000002e-177

      1. Initial program 48.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 \frac{2}{\color{blue}{{k}^{2} \cdot \left(2 \cdot \frac{{t}^{3}}{{\ell}^{2}} + \frac{{k}^{2} \cdot \left({t}^{3} \cdot \left(\frac{1}{3} + \frac{1}{{t}^{2}}\right)\right)}{{\ell}^{2}}\right)}} \]
      4. Step-by-step derivation
        1. lower-*.f64N/A

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

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

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

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

          \[\leadsto \frac{2}{\left(k \cdot k\right) \cdot \mathsf{fma}\left(2, \color{blue}{\frac{{t}^{3}}{{\ell}^{2}}}, \frac{{k}^{2} \cdot \left({t}^{3} \cdot \left(\frac{1}{3} + \frac{1}{{t}^{2}}\right)\right)}{{\ell}^{2}}\right)} \]
        6. cube-multN/A

          \[\leadsto \frac{2}{\left(k \cdot k\right) \cdot \mathsf{fma}\left(2, \frac{\color{blue}{t \cdot \left(t \cdot t\right)}}{{\ell}^{2}}, \frac{{k}^{2} \cdot \left({t}^{3} \cdot \left(\frac{1}{3} + \frac{1}{{t}^{2}}\right)\right)}{{\ell}^{2}}\right)} \]
        7. unpow2N/A

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

          \[\leadsto \frac{2}{\left(k \cdot k\right) \cdot \mathsf{fma}\left(2, \frac{\color{blue}{t \cdot {t}^{2}}}{{\ell}^{2}}, \frac{{k}^{2} \cdot \left({t}^{3} \cdot \left(\frac{1}{3} + \frac{1}{{t}^{2}}\right)\right)}{{\ell}^{2}}\right)} \]
        9. unpow2N/A

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

          \[\leadsto \frac{2}{\left(k \cdot k\right) \cdot \mathsf{fma}\left(2, \frac{t \cdot \color{blue}{\left(t \cdot t\right)}}{{\ell}^{2}}, \frac{{k}^{2} \cdot \left({t}^{3} \cdot \left(\frac{1}{3} + \frac{1}{{t}^{2}}\right)\right)}{{\ell}^{2}}\right)} \]
        11. unpow2N/A

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

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

          \[\leadsto \frac{2}{\left(k \cdot k\right) \cdot \mathsf{fma}\left(2, \frac{t \cdot \left(t \cdot t\right)}{\ell \cdot \ell}, \color{blue}{\frac{{k}^{2} \cdot \left({t}^{3} \cdot \left(\frac{1}{3} + \frac{1}{{t}^{2}}\right)\right)}{{\ell}^{2}}}\right)} \]
      5. Applied rewrites55.3%

        \[\leadsto \frac{2}{\color{blue}{\left(k \cdot k\right) \cdot \mathsf{fma}\left(2, \frac{t \cdot \left(t \cdot t\right)}{\ell \cdot \ell}, \frac{\left(k \cdot k\right) \cdot \mathsf{fma}\left(t, \left(t \cdot t\right) \cdot 0.3333333333333333, t\right)}{\ell \cdot \ell}\right)}} \]
      6. Taylor expanded in k around inf

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

          \[\leadsto \frac{2}{\left(\left(k \cdot k\right) \cdot \left(k \cdot k\right)\right) \cdot \color{blue}{\mathsf{fma}\left(t \cdot \left(t \cdot t\right), \frac{0.3333333333333333}{\ell \cdot \ell}, \frac{t}{\ell \cdot \ell}\right)}} \]
        2. Taylor expanded in k around inf

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

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

          if 1.90000000000000002e-177 < t < 5.1999999999999997e109

          1. Initial program 66.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}{\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-*.f64N/A

              \[\leadsto \frac{2}{\frac{{t}^{3}}{\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)} \]
            8. associate-/r*N/A

              \[\leadsto \frac{2}{\color{blue}{\frac{\frac{{t}^{3}}{\ell}}{\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. div-invN/A

              \[\leadsto \frac{2}{\color{blue}{\left(\frac{{t}^{3}}{\ell} \cdot \frac{1}{\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)} \]
            10. associate-*l*N/A

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

              \[\leadsto \frac{2}{\color{blue}{\frac{{t}^{3}}{\ell} \cdot \left(\frac{1}{\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 rewrites75.5%

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

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

          if 5.1999999999999997e109 < t

          1. Initial program 70.6%

            \[\frac{2}{\left(\left(\frac{{t}^{3}}{\ell \cdot \ell} \cdot \sin k\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
          2. 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. associate-*l/N/A

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

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

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

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

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

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

              \[\leadsto \frac{2}{\left(\left(\frac{t}{\ell} \cdot \frac{\color{blue}{t \cdot \left(t \cdot \sin k\right)}}{\ell}\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}{\ell} \cdot \frac{\color{blue}{t \cdot \left(t \cdot \sin k\right)}}{\ell}\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
            14. lower-*.f6489.6

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

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

              \[\leadsto \frac{2}{\left(\left(\frac{t}{\ell} \cdot \color{blue}{\frac{t \cdot \left(t \cdot \sin k\right)}{\ell}}\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(\frac{t}{\ell} \cdot \frac{\color{blue}{t \cdot \left(t \cdot \sin k\right)}}{\ell}\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}{\left(\left(\frac{t}{\ell} \cdot \color{blue}{\left(t \cdot \frac{t \cdot \sin k}{\ell}\right)}\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
            4. *-commutativeN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

          Alternative 4: 77.5% 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 10^{-156}:\\ \;\;\;\;\frac{2}{\frac{\left(k \cdot k\right) \cdot \left(k \cdot k\right)}{\ell \cdot \ell} \cdot \mathsf{fma}\left(t\_m, \left(t\_m \cdot t\_m\right) \cdot 0.3333333333333333, t\_m\right)}\\ \mathbf{elif}\;t\_m \leq 4.9 \cdot 10^{+109}:\\ \;\;\;\;\frac{2}{\frac{t\_m}{\ell} \cdot \left(\left(t\_m \cdot t\_m\right) \cdot \frac{\sin k \cdot \left(\tan k \cdot \mathsf{fma}\left(k, \frac{k}{t\_m \cdot t\_m}, 2\right)\right)}{\ell}\right)}\\ \mathbf{else}:\\ \;\;\;\;\frac{2}{\left(\frac{t\_m \cdot \sin k}{\ell} \cdot \left(\frac{t\_m}{\ell} \cdot \left(t\_m \cdot \tan k\right)\right)\right) \cdot 2}\\ \end{array} \end{array} \]
          t\_m = (fabs.f64 t)
          t\_s = (copysign.f64 #s(literal 1 binary64) t)
          (FPCore (t_s t_m l k)
           :precision binary64
           (*
            t_s
            (if (<= t_m 1e-156)
              (/
               2.0
               (*
                (/ (* (* k k) (* k k)) (* l l))
                (fma t_m (* (* t_m t_m) 0.3333333333333333) t_m)))
              (if (<= t_m 4.9e+109)
                (/
                 2.0
                 (*
                  (/ t_m l)
                  (*
                   (* t_m t_m)
                   (/ (* (sin k) (* (tan k) (fma k (/ k (* t_m t_m)) 2.0))) l))))
                (/
                 2.0
                 (* (* (/ (* t_m (sin k)) l) (* (/ t_m l) (* t_m (tan k)))) 2.0))))))
          t\_m = fabs(t);
          t\_s = copysign(1.0, t);
          double code(double t_s, double t_m, double l, double k) {
          	double tmp;
          	if (t_m <= 1e-156) {
          		tmp = 2.0 / ((((k * k) * (k * k)) / (l * l)) * fma(t_m, ((t_m * t_m) * 0.3333333333333333), t_m));
          	} else if (t_m <= 4.9e+109) {
          		tmp = 2.0 / ((t_m / l) * ((t_m * t_m) * ((sin(k) * (tan(k) * fma(k, (k / (t_m * t_m)), 2.0))) / l)));
          	} else {
          		tmp = 2.0 / ((((t_m * sin(k)) / l) * ((t_m / l) * (t_m * tan(k)))) * 2.0);
          	}
          	return t_s * tmp;
          }
          
          t\_m = abs(t)
          t\_s = copysign(1.0, t)
          function code(t_s, t_m, l, k)
          	tmp = 0.0
          	if (t_m <= 1e-156)
          		tmp = Float64(2.0 / Float64(Float64(Float64(Float64(k * k) * Float64(k * k)) / Float64(l * l)) * fma(t_m, Float64(Float64(t_m * t_m) * 0.3333333333333333), t_m)));
          	elseif (t_m <= 4.9e+109)
          		tmp = Float64(2.0 / Float64(Float64(t_m / l) * Float64(Float64(t_m * t_m) * Float64(Float64(sin(k) * Float64(tan(k) * fma(k, Float64(k / Float64(t_m * t_m)), 2.0))) / l))));
          	else
          		tmp = Float64(2.0 / Float64(Float64(Float64(Float64(t_m * sin(k)) / l) * Float64(Float64(t_m / l) * Float64(t_m * tan(k)))) * 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, 1e-156], N[(2.0 / N[(N[(N[(N[(k * k), $MachinePrecision] * N[(k * k), $MachinePrecision]), $MachinePrecision] / N[(l * l), $MachinePrecision]), $MachinePrecision] * N[(t$95$m * N[(N[(t$95$m * t$95$m), $MachinePrecision] * 0.3333333333333333), $MachinePrecision] + t$95$m), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$m, 4.9e+109], N[(2.0 / N[(N[(t$95$m / l), $MachinePrecision] * N[(N[(t$95$m * t$95$m), $MachinePrecision] * N[(N[(N[Sin[k], $MachinePrecision] * N[(N[Tan[k], $MachinePrecision] * N[(k * N[(k / N[(t$95$m * t$95$m), $MachinePrecision]), $MachinePrecision] + 2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(2.0 / N[(N[(N[(N[(t$95$m * N[Sin[k], $MachinePrecision]), $MachinePrecision] / l), $MachinePrecision] * N[(N[(t$95$m / l), $MachinePrecision] * N[(t$95$m * N[Tan[k], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * 2.0), $MachinePrecision]), $MachinePrecision]]]), $MachinePrecision]
          
          \begin{array}{l}
          t\_m = \left|t\right|
          \\
          t\_s = \mathsf{copysign}\left(1, t\right)
          
          \\
          t\_s \cdot \begin{array}{l}
          \mathbf{if}\;t\_m \leq 10^{-156}:\\
          \;\;\;\;\frac{2}{\frac{\left(k \cdot k\right) \cdot \left(k \cdot k\right)}{\ell \cdot \ell} \cdot \mathsf{fma}\left(t\_m, \left(t\_m \cdot t\_m\right) \cdot 0.3333333333333333, t\_m\right)}\\
          
          \mathbf{elif}\;t\_m \leq 4.9 \cdot 10^{+109}:\\
          \;\;\;\;\frac{2}{\frac{t\_m}{\ell} \cdot \left(\left(t\_m \cdot t\_m\right) \cdot \frac{\sin k \cdot \left(\tan k \cdot \mathsf{fma}\left(k, \frac{k}{t\_m \cdot t\_m}, 2\right)\right)}{\ell}\right)}\\
          
          \mathbf{else}:\\
          \;\;\;\;\frac{2}{\left(\frac{t\_m \cdot \sin k}{\ell} \cdot \left(\frac{t\_m}{\ell} \cdot \left(t\_m \cdot \tan k\right)\right)\right) \cdot 2}\\
          
          
          \end{array}
          \end{array}
          
          Derivation
          1. Split input into 3 regimes
          2. if t < 1.00000000000000004e-156

            1. Initial program 47.8%

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

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

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

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

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

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

                \[\leadsto \frac{2}{\left(k \cdot k\right) \cdot \mathsf{fma}\left(2, \color{blue}{\frac{{t}^{3}}{{\ell}^{2}}}, \frac{{k}^{2} \cdot \left({t}^{3} \cdot \left(\frac{1}{3} + \frac{1}{{t}^{2}}\right)\right)}{{\ell}^{2}}\right)} \]
              6. cube-multN/A

                \[\leadsto \frac{2}{\left(k \cdot k\right) \cdot \mathsf{fma}\left(2, \frac{\color{blue}{t \cdot \left(t \cdot t\right)}}{{\ell}^{2}}, \frac{{k}^{2} \cdot \left({t}^{3} \cdot \left(\frac{1}{3} + \frac{1}{{t}^{2}}\right)\right)}{{\ell}^{2}}\right)} \]
              7. unpow2N/A

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

                \[\leadsto \frac{2}{\left(k \cdot k\right) \cdot \mathsf{fma}\left(2, \frac{\color{blue}{t \cdot {t}^{2}}}{{\ell}^{2}}, \frac{{k}^{2} \cdot \left({t}^{3} \cdot \left(\frac{1}{3} + \frac{1}{{t}^{2}}\right)\right)}{{\ell}^{2}}\right)} \]
              9. unpow2N/A

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

                \[\leadsto \frac{2}{\left(k \cdot k\right) \cdot \mathsf{fma}\left(2, \frac{t \cdot \color{blue}{\left(t \cdot t\right)}}{{\ell}^{2}}, \frac{{k}^{2} \cdot \left({t}^{3} \cdot \left(\frac{1}{3} + \frac{1}{{t}^{2}}\right)\right)}{{\ell}^{2}}\right)} \]
              11. unpow2N/A

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

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

                \[\leadsto \frac{2}{\left(k \cdot k\right) \cdot \mathsf{fma}\left(2, \frac{t \cdot \left(t \cdot t\right)}{\ell \cdot \ell}, \color{blue}{\frac{{k}^{2} \cdot \left({t}^{3} \cdot \left(\frac{1}{3} + \frac{1}{{t}^{2}}\right)\right)}{{\ell}^{2}}}\right)} \]
            5. Applied rewrites55.0%

              \[\leadsto \frac{2}{\color{blue}{\left(k \cdot k\right) \cdot \mathsf{fma}\left(2, \frac{t \cdot \left(t \cdot t\right)}{\ell \cdot \ell}, \frac{\left(k \cdot k\right) \cdot \mathsf{fma}\left(t, \left(t \cdot t\right) \cdot 0.3333333333333333, t\right)}{\ell \cdot \ell}\right)}} \]
            6. Taylor expanded in k around inf

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

                \[\leadsto \frac{2}{\left(\left(k \cdot k\right) \cdot \left(k \cdot k\right)\right) \cdot \color{blue}{\mathsf{fma}\left(t \cdot \left(t \cdot t\right), \frac{0.3333333333333333}{\ell \cdot \ell}, \frac{t}{\ell \cdot \ell}\right)}} \]
              2. Taylor expanded in k around inf

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

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

                if 1.00000000000000004e-156 < t < 4.9000000000000003e109

                1. Initial program 67.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}{\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-*.f64N/A

                    \[\leadsto \frac{2}{\frac{{t}^{3}}{\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)} \]
                  8. associate-/r*N/A

                    \[\leadsto \frac{2}{\color{blue}{\frac{\frac{{t}^{3}}{\ell}}{\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. div-invN/A

                    \[\leadsto \frac{2}{\color{blue}{\left(\frac{{t}^{3}}{\ell} \cdot \frac{1}{\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)} \]
                  10. associate-*l*N/A

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

                    \[\leadsto \frac{2}{\color{blue}{\frac{{t}^{3}}{\ell} \cdot \left(\frac{1}{\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 rewrites76.7%

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

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

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

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

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

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

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

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

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

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

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

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

                if 4.9000000000000003e109 < t

                1. Initial program 70.6%

                  \[\frac{2}{\left(\left(\frac{{t}^{3}}{\ell \cdot \ell} \cdot \sin k\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
                2. 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. associate-*l/N/A

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

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

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

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

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

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

                    \[\leadsto \frac{2}{\left(\left(\frac{t}{\ell} \cdot \frac{\color{blue}{t \cdot \left(t \cdot \sin k\right)}}{\ell}\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}{\ell} \cdot \frac{\color{blue}{t \cdot \left(t \cdot \sin k\right)}}{\ell}\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
                  14. lower-*.f6489.6

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

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

                    \[\leadsto \frac{2}{\left(\left(\frac{t}{\ell} \cdot \color{blue}{\frac{t \cdot \left(t \cdot \sin k\right)}{\ell}}\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(\frac{t}{\ell} \cdot \frac{\color{blue}{t \cdot \left(t \cdot \sin k\right)}}{\ell}\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}{\left(\left(\frac{t}{\ell} \cdot \color{blue}{\left(t \cdot \frac{t \cdot \sin k}{\ell}\right)}\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
                  4. *-commutativeN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                  1. Initial program 48.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 \frac{2}{\color{blue}{{k}^{2} \cdot \left(2 \cdot \frac{{t}^{3}}{{\ell}^{2}} + \frac{{k}^{2} \cdot \left({t}^{3} \cdot \left(\frac{1}{3} + \frac{1}{{t}^{2}}\right)\right)}{{\ell}^{2}}\right)}} \]
                  4. Step-by-step derivation
                    1. lower-*.f64N/A

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

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

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

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

                      \[\leadsto \frac{2}{\left(k \cdot k\right) \cdot \mathsf{fma}\left(2, \color{blue}{\frac{{t}^{3}}{{\ell}^{2}}}, \frac{{k}^{2} \cdot \left({t}^{3} \cdot \left(\frac{1}{3} + \frac{1}{{t}^{2}}\right)\right)}{{\ell}^{2}}\right)} \]
                    6. cube-multN/A

                      \[\leadsto \frac{2}{\left(k \cdot k\right) \cdot \mathsf{fma}\left(2, \frac{\color{blue}{t \cdot \left(t \cdot t\right)}}{{\ell}^{2}}, \frac{{k}^{2} \cdot \left({t}^{3} \cdot \left(\frac{1}{3} + \frac{1}{{t}^{2}}\right)\right)}{{\ell}^{2}}\right)} \]
                    7. unpow2N/A

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

                      \[\leadsto \frac{2}{\left(k \cdot k\right) \cdot \mathsf{fma}\left(2, \frac{\color{blue}{t \cdot {t}^{2}}}{{\ell}^{2}}, \frac{{k}^{2} \cdot \left({t}^{3} \cdot \left(\frac{1}{3} + \frac{1}{{t}^{2}}\right)\right)}{{\ell}^{2}}\right)} \]
                    9. unpow2N/A

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

                      \[\leadsto \frac{2}{\left(k \cdot k\right) \cdot \mathsf{fma}\left(2, \frac{t \cdot \color{blue}{\left(t \cdot t\right)}}{{\ell}^{2}}, \frac{{k}^{2} \cdot \left({t}^{3} \cdot \left(\frac{1}{3} + \frac{1}{{t}^{2}}\right)\right)}{{\ell}^{2}}\right)} \]
                    11. unpow2N/A

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

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

                      \[\leadsto \frac{2}{\left(k \cdot k\right) \cdot \mathsf{fma}\left(2, \frac{t \cdot \left(t \cdot t\right)}{\ell \cdot \ell}, \color{blue}{\frac{{k}^{2} \cdot \left({t}^{3} \cdot \left(\frac{1}{3} + \frac{1}{{t}^{2}}\right)\right)}{{\ell}^{2}}}\right)} \]
                  5. Applied rewrites55.3%

                    \[\leadsto \frac{2}{\color{blue}{\left(k \cdot k\right) \cdot \mathsf{fma}\left(2, \frac{t \cdot \left(t \cdot t\right)}{\ell \cdot \ell}, \frac{\left(k \cdot k\right) \cdot \mathsf{fma}\left(t, \left(t \cdot t\right) \cdot 0.3333333333333333, t\right)}{\ell \cdot \ell}\right)}} \]
                  6. Taylor expanded in k around inf

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

                      \[\leadsto \frac{2}{\left(\left(k \cdot k\right) \cdot \left(k \cdot k\right)\right) \cdot \color{blue}{\mathsf{fma}\left(t \cdot \left(t \cdot t\right), \frac{0.3333333333333333}{\ell \cdot \ell}, \frac{t}{\ell \cdot \ell}\right)}} \]
                    2. Taylor expanded in k around inf

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

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

                      if 1.90000000000000002e-177 < t

                      1. Initial program 67.9%

                        \[\frac{2}{\left(\left(\frac{{t}^{3}}{\ell \cdot \ell} \cdot \sin k\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
                      2. Add Preprocessing
                      3. Step-by-step derivation
                        1. 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. associate-*l/N/A

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

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

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

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

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

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

                          \[\leadsto \frac{2}{\left(\left(\frac{t}{\ell} \cdot \frac{\color{blue}{t \cdot \left(t \cdot \sin k\right)}}{\ell}\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}{\ell} \cdot \frac{\color{blue}{t \cdot \left(t \cdot \sin k\right)}}{\ell}\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
                        14. lower-*.f6481.4

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

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

                          \[\leadsto \frac{2}{\left(\left(\frac{t}{\ell} \cdot \color{blue}{\frac{t \cdot \left(t \cdot \sin k\right)}{\ell}}\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(\frac{t}{\ell} \cdot \frac{\color{blue}{t \cdot \left(t \cdot \sin k\right)}}{\ell}\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}{\left(\left(\frac{t}{\ell} \cdot \color{blue}{\left(t \cdot \frac{t \cdot \sin k}{\ell}\right)}\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
                        4. *-commutativeN/A

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

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

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

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

                          \[\leadsto \frac{2}{\color{blue}{\left(\left(\frac{t}{\ell} \cdot \left(\frac{t \cdot \sin k}{\ell} \cdot t\right)\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(\color{blue}{\left(\frac{t}{\ell} \cdot \left(\frac{t \cdot \sin k}{\ell} \cdot t\right)\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}{\ell} \cdot \left(\left(\frac{t \cdot \sin k}{\ell} \cdot t\right) \cdot \tan k\right)\right)} \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
                        4. lower-*.f64N/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                    Alternative 6: 80.6% 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.5 \cdot 10^{-181}:\\ \;\;\;\;\frac{2}{\frac{\left(k \cdot k\right) \cdot \left(k \cdot k\right)}{\ell \cdot \ell} \cdot \mathsf{fma}\left(t\_m, \left(t\_m \cdot t\_m\right) \cdot 0.3333333333333333, t\_m\right)}\\ \mathbf{else}:\\ \;\;\;\;\frac{2}{\left(\frac{t\_m}{\ell} \cdot \left(\left(t\_m \cdot \tan k\right) \cdot \frac{t\_m \cdot \sin k}{\ell}\right)\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.5e-181)
                        (/
                         2.0
                         (*
                          (/ (* (* k k) (* k k)) (* l l))
                          (fma t_m (* (* t_m t_m) 0.3333333333333333) t_m)))
                        (/
                         2.0
                         (*
                          (* (/ t_m l) (* (* t_m (tan k)) (/ (* t_m (sin k)) l)))
                          (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.5e-181) {
                    		tmp = 2.0 / ((((k * k) * (k * k)) / (l * l)) * fma(t_m, ((t_m * t_m) * 0.3333333333333333), t_m));
                    	} else {
                    		tmp = 2.0 / (((t_m / l) * ((t_m * tan(k)) * ((t_m * sin(k)) / l))) * 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.5e-181)
                    		tmp = Float64(2.0 / Float64(Float64(Float64(Float64(k * k) * Float64(k * k)) / Float64(l * l)) * fma(t_m, Float64(Float64(t_m * t_m) * 0.3333333333333333), t_m)));
                    	else
                    		tmp = Float64(2.0 / Float64(Float64(Float64(t_m / l) * Float64(Float64(t_m * tan(k)) * Float64(Float64(t_m * sin(k)) / l))) * 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.5e-181], N[(2.0 / N[(N[(N[(N[(k * k), $MachinePrecision] * N[(k * k), $MachinePrecision]), $MachinePrecision] / N[(l * l), $MachinePrecision]), $MachinePrecision] * N[(t$95$m * N[(N[(t$95$m * t$95$m), $MachinePrecision] * 0.3333333333333333), $MachinePrecision] + t$95$m), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(2.0 / N[(N[(N[(t$95$m / l), $MachinePrecision] * N[(N[(t$95$m * N[Tan[k], $MachinePrecision]), $MachinePrecision] * N[(N[(t$95$m * N[Sin[k], $MachinePrecision]), $MachinePrecision] / l), $MachinePrecision]), $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.5 \cdot 10^{-181}:\\
                    \;\;\;\;\frac{2}{\frac{\left(k \cdot k\right) \cdot \left(k \cdot k\right)}{\ell \cdot \ell} \cdot \mathsf{fma}\left(t\_m, \left(t\_m \cdot t\_m\right) \cdot 0.3333333333333333, t\_m\right)}\\
                    
                    \mathbf{else}:\\
                    \;\;\;\;\frac{2}{\left(\frac{t\_m}{\ell} \cdot \left(\left(t\_m \cdot \tan k\right) \cdot \frac{t\_m \cdot \sin k}{\ell}\right)\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 < 2.5000000000000001e-181

                      1. Initial program 48.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 \frac{2}{\color{blue}{{k}^{2} \cdot \left(2 \cdot \frac{{t}^{3}}{{\ell}^{2}} + \frac{{k}^{2} \cdot \left({t}^{3} \cdot \left(\frac{1}{3} + \frac{1}{{t}^{2}}\right)\right)}{{\ell}^{2}}\right)}} \]
                      4. Step-by-step derivation
                        1. lower-*.f64N/A

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

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

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

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

                          \[\leadsto \frac{2}{\left(k \cdot k\right) \cdot \mathsf{fma}\left(2, \color{blue}{\frac{{t}^{3}}{{\ell}^{2}}}, \frac{{k}^{2} \cdot \left({t}^{3} \cdot \left(\frac{1}{3} + \frac{1}{{t}^{2}}\right)\right)}{{\ell}^{2}}\right)} \]
                        6. cube-multN/A

                          \[\leadsto \frac{2}{\left(k \cdot k\right) \cdot \mathsf{fma}\left(2, \frac{\color{blue}{t \cdot \left(t \cdot t\right)}}{{\ell}^{2}}, \frac{{k}^{2} \cdot \left({t}^{3} \cdot \left(\frac{1}{3} + \frac{1}{{t}^{2}}\right)\right)}{{\ell}^{2}}\right)} \]
                        7. unpow2N/A

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

                          \[\leadsto \frac{2}{\left(k \cdot k\right) \cdot \mathsf{fma}\left(2, \frac{\color{blue}{t \cdot {t}^{2}}}{{\ell}^{2}}, \frac{{k}^{2} \cdot \left({t}^{3} \cdot \left(\frac{1}{3} + \frac{1}{{t}^{2}}\right)\right)}{{\ell}^{2}}\right)} \]
                        9. unpow2N/A

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

                          \[\leadsto \frac{2}{\left(k \cdot k\right) \cdot \mathsf{fma}\left(2, \frac{t \cdot \color{blue}{\left(t \cdot t\right)}}{{\ell}^{2}}, \frac{{k}^{2} \cdot \left({t}^{3} \cdot \left(\frac{1}{3} + \frac{1}{{t}^{2}}\right)\right)}{{\ell}^{2}}\right)} \]
                        11. unpow2N/A

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

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

                          \[\leadsto \frac{2}{\left(k \cdot k\right) \cdot \mathsf{fma}\left(2, \frac{t \cdot \left(t \cdot t\right)}{\ell \cdot \ell}, \color{blue}{\frac{{k}^{2} \cdot \left({t}^{3} \cdot \left(\frac{1}{3} + \frac{1}{{t}^{2}}\right)\right)}{{\ell}^{2}}}\right)} \]
                      5. Applied rewrites55.3%

                        \[\leadsto \frac{2}{\color{blue}{\left(k \cdot k\right) \cdot \mathsf{fma}\left(2, \frac{t \cdot \left(t \cdot t\right)}{\ell \cdot \ell}, \frac{\left(k \cdot k\right) \cdot \mathsf{fma}\left(t, \left(t \cdot t\right) \cdot 0.3333333333333333, t\right)}{\ell \cdot \ell}\right)}} \]
                      6. Taylor expanded in k around inf

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

                          \[\leadsto \frac{2}{\left(\left(k \cdot k\right) \cdot \left(k \cdot k\right)\right) \cdot \color{blue}{\mathsf{fma}\left(t \cdot \left(t \cdot t\right), \frac{0.3333333333333333}{\ell \cdot \ell}, \frac{t}{\ell \cdot \ell}\right)}} \]
                        2. Taylor expanded in k around inf

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

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

                          if 2.5000000000000001e-181 < t

                          1. Initial program 67.9%

                            \[\frac{2}{\left(\left(\frac{{t}^{3}}{\ell \cdot \ell} \cdot \sin k\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
                          2. Add Preprocessing
                          3. Step-by-step derivation
                            1. 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. associate-*l/N/A

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

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

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

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

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

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

                              \[\leadsto \frac{2}{\left(\left(\frac{t}{\ell} \cdot \frac{\color{blue}{t \cdot \left(t \cdot \sin k\right)}}{\ell}\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}{\ell} \cdot \frac{\color{blue}{t \cdot \left(t \cdot \sin k\right)}}{\ell}\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
                            14. lower-*.f6481.4

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

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

                              \[\leadsto \frac{2}{\left(\left(\frac{t}{\ell} \cdot \color{blue}{\frac{t \cdot \left(t \cdot \sin k\right)}{\ell}}\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(\frac{t}{\ell} \cdot \frac{\color{blue}{t \cdot \left(t \cdot \sin k\right)}}{\ell}\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}{\left(\left(\frac{t}{\ell} \cdot \color{blue}{\left(t \cdot \frac{t \cdot \sin k}{\ell}\right)}\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
                            4. *-commutativeN/A

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

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

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

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

                              \[\leadsto \frac{2}{\color{blue}{\left(\left(\frac{t}{\ell} \cdot \left(\frac{t \cdot \sin k}{\ell} \cdot t\right)\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(\color{blue}{\left(\frac{t}{\ell} \cdot \left(\frac{t \cdot \sin k}{\ell} \cdot t\right)\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}{\ell} \cdot \left(\left(\frac{t \cdot \sin k}{\ell} \cdot t\right) \cdot \tan k\right)\right)} \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
                            4. lower-*.f64N/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                            \[\leadsto \frac{2}{\left(\frac{t}{\ell} \cdot \left(\frac{t \cdot \sin k}{\ell} \cdot \left(t \cdot \tan k\right)\right)\right) \cdot \color{blue}{\mathsf{fma}\left(\frac{k}{t}, \frac{k}{t}, 2\right)}} \]
                        4. Recombined 2 regimes into one program.
                        5. Final simplification69.0%

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

                        Alternative 7: 73.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}\;k \leq 4.1 \cdot 10^{+103}:\\ \;\;\;\;\frac{2}{\left(\frac{t\_m \cdot \sin k}{\ell} \cdot \left(\frac{t\_m}{\ell} \cdot \left(t\_m \cdot \tan k\right)\right)\right) \cdot 2}\\ \mathbf{else}:\\ \;\;\;\;\frac{2}{t\_m \cdot \left(t\_m \cdot \frac{t\_m \cdot \left(\sin k \cdot \left(\tan k \cdot \mathsf{fma}\left(k, \frac{k}{t\_m \cdot t\_m}, 2\right)\right)\right)}{\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 4.1e+103)
                            (/ 2.0 (* (* (/ (* t_m (sin k)) l) (* (/ t_m l) (* t_m (tan k)))) 2.0))
                            (/
                             2.0
                             (*
                              t_m
                              (*
                               t_m
                               (/
                                (* t_m (* (sin k) (* (tan k) (fma k (/ k (* t_m t_m)) 2.0))))
                                (* l l))))))))
                        t\_m = fabs(t);
                        t\_s = copysign(1.0, t);
                        double code(double t_s, double t_m, double l, double k) {
                        	double tmp;
                        	if (k <= 4.1e+103) {
                        		tmp = 2.0 / ((((t_m * sin(k)) / l) * ((t_m / l) * (t_m * tan(k)))) * 2.0);
                        	} else {
                        		tmp = 2.0 / (t_m * (t_m * ((t_m * (sin(k) * (tan(k) * fma(k, (k / (t_m * t_m)), 2.0)))) / (l * l))));
                        	}
                        	return t_s * tmp;
                        }
                        
                        t\_m = abs(t)
                        t\_s = copysign(1.0, t)
                        function code(t_s, t_m, l, k)
                        	tmp = 0.0
                        	if (k <= 4.1e+103)
                        		tmp = Float64(2.0 / Float64(Float64(Float64(Float64(t_m * sin(k)) / l) * Float64(Float64(t_m / l) * Float64(t_m * tan(k)))) * 2.0));
                        	else
                        		tmp = Float64(2.0 / Float64(t_m * Float64(t_m * Float64(Float64(t_m * Float64(sin(k) * Float64(tan(k) * fma(k, Float64(k / Float64(t_m * t_m)), 2.0)))) / Float64(l * l)))));
                        	end
                        	return Float64(t_s * tmp)
                        end
                        
                        t\_m = N[Abs[t], $MachinePrecision]
                        t\_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[t]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
                        code[t$95$s_, t$95$m_, l_, k_] := N[(t$95$s * If[LessEqual[k, 4.1e+103], N[(2.0 / N[(N[(N[(N[(t$95$m * N[Sin[k], $MachinePrecision]), $MachinePrecision] / l), $MachinePrecision] * N[(N[(t$95$m / l), $MachinePrecision] * N[(t$95$m * N[Tan[k], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * 2.0), $MachinePrecision]), $MachinePrecision], N[(2.0 / N[(t$95$m * N[(t$95$m * N[(N[(t$95$m * N[(N[Sin[k], $MachinePrecision] * N[(N[Tan[k], $MachinePrecision] * N[(k * N[(k / N[(t$95$m * t$95$m), $MachinePrecision]), $MachinePrecision] + 2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $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 4.1 \cdot 10^{+103}:\\
                        \;\;\;\;\frac{2}{\left(\frac{t\_m \cdot \sin k}{\ell} \cdot \left(\frac{t\_m}{\ell} \cdot \left(t\_m \cdot \tan k\right)\right)\right) \cdot 2}\\
                        
                        \mathbf{else}:\\
                        \;\;\;\;\frac{2}{t\_m \cdot \left(t\_m \cdot \frac{t\_m \cdot \left(\sin k \cdot \left(\tan k \cdot \mathsf{fma}\left(k, \frac{k}{t\_m \cdot t\_m}, 2\right)\right)\right)}{\ell \cdot \ell}\right)}\\
                        
                        
                        \end{array}
                        \end{array}
                        
                        Derivation
                        1. Split input into 2 regimes
                        2. if k < 4.1000000000000002e103

                          1. Initial program 55.6%

                            \[\frac{2}{\left(\left(\frac{{t}^{3}}{\ell \cdot \ell} \cdot \sin k\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
                          2. 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. associate-*l/N/A

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

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

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

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

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

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

                              \[\leadsto \frac{2}{\left(\left(\frac{t}{\ell} \cdot \frac{\color{blue}{t \cdot \left(t \cdot \sin k\right)}}{\ell}\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}{\ell} \cdot \frac{\color{blue}{t \cdot \left(t \cdot \sin k\right)}}{\ell}\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
                            14. lower-*.f6469.9

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

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

                              \[\leadsto \frac{2}{\left(\left(\frac{t}{\ell} \cdot \color{blue}{\frac{t \cdot \left(t \cdot \sin k\right)}{\ell}}\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(\frac{t}{\ell} \cdot \frac{\color{blue}{t \cdot \left(t \cdot \sin k\right)}}{\ell}\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}{\left(\left(\frac{t}{\ell} \cdot \color{blue}{\left(t \cdot \frac{t \cdot \sin k}{\ell}\right)}\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
                            4. *-commutativeN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                            if 4.1000000000000002e103 < k

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

                                \[\leadsto \frac{2}{\frac{{t}^{3}}{\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)} \]
                              8. associate-/r*N/A

                                \[\leadsto \frac{2}{\color{blue}{\frac{\frac{{t}^{3}}{\ell}}{\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. div-invN/A

                                \[\leadsto \frac{2}{\color{blue}{\left(\frac{{t}^{3}}{\ell} \cdot \frac{1}{\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)} \]
                              10. associate-*l*N/A

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

                                \[\leadsto \frac{2}{\color{blue}{\frac{{t}^{3}}{\ell} \cdot \left(\frac{1}{\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 rewrites39.8%

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

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

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

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

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

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

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

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

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

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

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

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

                            \[\leadsto \begin{array}{l} \mathbf{if}\;k \leq 4.1 \cdot 10^{+103}:\\ \;\;\;\;\frac{2}{\left(\frac{t \cdot \sin k}{\ell} \cdot \left(\frac{t}{\ell} \cdot \left(t \cdot \tan k\right)\right)\right) \cdot 2}\\ \mathbf{else}:\\ \;\;\;\;\frac{2}{t \cdot \left(t \cdot \frac{t \cdot \left(\sin k \cdot \left(\tan k \cdot \mathsf{fma}\left(k, \frac{k}{t \cdot t}, 2\right)\right)\right)}{\ell \cdot \ell}\right)}\\ \end{array} \]
                          11. Add Preprocessing

                          Alternative 8: 72.7% 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}\;t\_m \leq 1.9 \cdot 10^{-177}:\\ \;\;\;\;\frac{2}{\frac{\left(k \cdot k\right) \cdot \left(k \cdot k\right)}{\ell \cdot \ell} \cdot \mathsf{fma}\left(t\_m, \left(t\_m \cdot t\_m\right) \cdot 0.3333333333333333, t\_m\right)}\\ \mathbf{elif}\;t\_m \leq 3.35 \cdot 10^{+109}:\\ \;\;\;\;\frac{2}{\left(\tan k \cdot \left(\frac{t\_m}{\ell} \cdot \left(k \cdot \frac{t\_m \cdot t\_m}{\ell}\right)\right)\right) \cdot \mathsf{fma}\left(k, \frac{k}{t\_m \cdot t\_m}, 2\right)}\\ \mathbf{else}:\\ \;\;\;\;\frac{2}{2 \cdot \left(\tan k \cdot \left(\frac{t\_m}{\ell} \cdot \left(t\_m \cdot \frac{t\_m \cdot \sin k}{\ell}\right)\right)\right)}\\ \end{array} \end{array} \]
                          t\_m = (fabs.f64 t)
                          t\_s = (copysign.f64 #s(literal 1 binary64) t)
                          (FPCore (t_s t_m l k)
                           :precision binary64
                           (*
                            t_s
                            (if (<= t_m 1.9e-177)
                              (/
                               2.0
                               (*
                                (/ (* (* k k) (* k k)) (* l l))
                                (fma t_m (* (* t_m t_m) 0.3333333333333333) t_m)))
                              (if (<= t_m 3.35e+109)
                                (/
                                 2.0
                                 (*
                                  (* (tan k) (* (/ t_m l) (* k (/ (* t_m t_m) l))))
                                  (fma k (/ k (* t_m t_m)) 2.0)))
                                (/
                                 2.0
                                 (* 2.0 (* (tan k) (* (/ t_m l) (* t_m (/ (* t_m (sin k)) l))))))))))
                          t\_m = fabs(t);
                          t\_s = copysign(1.0, t);
                          double code(double t_s, double t_m, double l, double k) {
                          	double tmp;
                          	if (t_m <= 1.9e-177) {
                          		tmp = 2.0 / ((((k * k) * (k * k)) / (l * l)) * fma(t_m, ((t_m * t_m) * 0.3333333333333333), t_m));
                          	} else if (t_m <= 3.35e+109) {
                          		tmp = 2.0 / ((tan(k) * ((t_m / l) * (k * ((t_m * t_m) / l)))) * fma(k, (k / (t_m * t_m)), 2.0));
                          	} else {
                          		tmp = 2.0 / (2.0 * (tan(k) * ((t_m / l) * (t_m * ((t_m * sin(k)) / l)))));
                          	}
                          	return t_s * tmp;
                          }
                          
                          t\_m = abs(t)
                          t\_s = copysign(1.0, t)
                          function code(t_s, t_m, l, k)
                          	tmp = 0.0
                          	if (t_m <= 1.9e-177)
                          		tmp = Float64(2.0 / Float64(Float64(Float64(Float64(k * k) * Float64(k * k)) / Float64(l * l)) * fma(t_m, Float64(Float64(t_m * t_m) * 0.3333333333333333), t_m)));
                          	elseif (t_m <= 3.35e+109)
                          		tmp = Float64(2.0 / Float64(Float64(tan(k) * Float64(Float64(t_m / l) * Float64(k * Float64(Float64(t_m * t_m) / l)))) * fma(k, Float64(k / Float64(t_m * t_m)), 2.0)));
                          	else
                          		tmp = Float64(2.0 / Float64(2.0 * Float64(tan(k) * Float64(Float64(t_m / l) * Float64(t_m * Float64(Float64(t_m * sin(k)) / l))))));
                          	end
                          	return Float64(t_s * tmp)
                          end
                          
                          t\_m = N[Abs[t], $MachinePrecision]
                          t\_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[t]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
                          code[t$95$s_, t$95$m_, l_, k_] := N[(t$95$s * If[LessEqual[t$95$m, 1.9e-177], N[(2.0 / N[(N[(N[(N[(k * k), $MachinePrecision] * N[(k * k), $MachinePrecision]), $MachinePrecision] / N[(l * l), $MachinePrecision]), $MachinePrecision] * N[(t$95$m * N[(N[(t$95$m * t$95$m), $MachinePrecision] * 0.3333333333333333), $MachinePrecision] + t$95$m), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$m, 3.35e+109], N[(2.0 / N[(N[(N[Tan[k], $MachinePrecision] * N[(N[(t$95$m / l), $MachinePrecision] * N[(k * N[(N[(t$95$m * t$95$m), $MachinePrecision] / l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(k * N[(k / N[(t$95$m * t$95$m), $MachinePrecision]), $MachinePrecision] + 2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(2.0 / N[(2.0 * N[(N[Tan[k], $MachinePrecision] * N[(N[(t$95$m / l), $MachinePrecision] * N[(t$95$m * N[(N[(t$95$m * N[Sin[k], $MachinePrecision]), $MachinePrecision] / l), $MachinePrecision]), $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}\;t\_m \leq 1.9 \cdot 10^{-177}:\\
                          \;\;\;\;\frac{2}{\frac{\left(k \cdot k\right) \cdot \left(k \cdot k\right)}{\ell \cdot \ell} \cdot \mathsf{fma}\left(t\_m, \left(t\_m \cdot t\_m\right) \cdot 0.3333333333333333, t\_m\right)}\\
                          
                          \mathbf{elif}\;t\_m \leq 3.35 \cdot 10^{+109}:\\
                          \;\;\;\;\frac{2}{\left(\tan k \cdot \left(\frac{t\_m}{\ell} \cdot \left(k \cdot \frac{t\_m \cdot t\_m}{\ell}\right)\right)\right) \cdot \mathsf{fma}\left(k, \frac{k}{t\_m \cdot t\_m}, 2\right)}\\
                          
                          \mathbf{else}:\\
                          \;\;\;\;\frac{2}{2 \cdot \left(\tan k \cdot \left(\frac{t\_m}{\ell} \cdot \left(t\_m \cdot \frac{t\_m \cdot \sin k}{\ell}\right)\right)\right)}\\
                          
                          
                          \end{array}
                          \end{array}
                          
                          Derivation
                          1. Split input into 3 regimes
                          2. if t < 1.90000000000000002e-177

                            1. Initial program 48.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 \frac{2}{\color{blue}{{k}^{2} \cdot \left(2 \cdot \frac{{t}^{3}}{{\ell}^{2}} + \frac{{k}^{2} \cdot \left({t}^{3} \cdot \left(\frac{1}{3} + \frac{1}{{t}^{2}}\right)\right)}{{\ell}^{2}}\right)}} \]
                            4. Step-by-step derivation
                              1. lower-*.f64N/A

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

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

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

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

                                \[\leadsto \frac{2}{\left(k \cdot k\right) \cdot \mathsf{fma}\left(2, \color{blue}{\frac{{t}^{3}}{{\ell}^{2}}}, \frac{{k}^{2} \cdot \left({t}^{3} \cdot \left(\frac{1}{3} + \frac{1}{{t}^{2}}\right)\right)}{{\ell}^{2}}\right)} \]
                              6. cube-multN/A

                                \[\leadsto \frac{2}{\left(k \cdot k\right) \cdot \mathsf{fma}\left(2, \frac{\color{blue}{t \cdot \left(t \cdot t\right)}}{{\ell}^{2}}, \frac{{k}^{2} \cdot \left({t}^{3} \cdot \left(\frac{1}{3} + \frac{1}{{t}^{2}}\right)\right)}{{\ell}^{2}}\right)} \]
                              7. unpow2N/A

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

                                \[\leadsto \frac{2}{\left(k \cdot k\right) \cdot \mathsf{fma}\left(2, \frac{\color{blue}{t \cdot {t}^{2}}}{{\ell}^{2}}, \frac{{k}^{2} \cdot \left({t}^{3} \cdot \left(\frac{1}{3} + \frac{1}{{t}^{2}}\right)\right)}{{\ell}^{2}}\right)} \]
                              9. unpow2N/A

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

                                \[\leadsto \frac{2}{\left(k \cdot k\right) \cdot \mathsf{fma}\left(2, \frac{t \cdot \color{blue}{\left(t \cdot t\right)}}{{\ell}^{2}}, \frac{{k}^{2} \cdot \left({t}^{3} \cdot \left(\frac{1}{3} + \frac{1}{{t}^{2}}\right)\right)}{{\ell}^{2}}\right)} \]
                              11. unpow2N/A

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

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

                                \[\leadsto \frac{2}{\left(k \cdot k\right) \cdot \mathsf{fma}\left(2, \frac{t \cdot \left(t \cdot t\right)}{\ell \cdot \ell}, \color{blue}{\frac{{k}^{2} \cdot \left({t}^{3} \cdot \left(\frac{1}{3} + \frac{1}{{t}^{2}}\right)\right)}{{\ell}^{2}}}\right)} \]
                            5. Applied rewrites55.3%

                              \[\leadsto \frac{2}{\color{blue}{\left(k \cdot k\right) \cdot \mathsf{fma}\left(2, \frac{t \cdot \left(t \cdot t\right)}{\ell \cdot \ell}, \frac{\left(k \cdot k\right) \cdot \mathsf{fma}\left(t, \left(t \cdot t\right) \cdot 0.3333333333333333, t\right)}{\ell \cdot \ell}\right)}} \]
                            6. Taylor expanded in k around inf

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

                                \[\leadsto \frac{2}{\left(\left(k \cdot k\right) \cdot \left(k \cdot k\right)\right) \cdot \color{blue}{\mathsf{fma}\left(t \cdot \left(t \cdot t\right), \frac{0.3333333333333333}{\ell \cdot \ell}, \frac{t}{\ell \cdot \ell}\right)}} \]
                              2. Taylor expanded in k around inf

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

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

                                if 1.90000000000000002e-177 < t < 3.35000000000000018e109

                                1. Initial program 66.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. associate-*l/N/A

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

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

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

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

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

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

                                    \[\leadsto \frac{2}{\left(\left(\frac{t}{\ell} \cdot \frac{\color{blue}{t \cdot \left(t \cdot \sin k\right)}}{\ell}\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}{\ell} \cdot \frac{\color{blue}{t \cdot \left(t \cdot \sin k\right)}}{\ell}\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
                                  14. lower-*.f6475.6

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

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

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

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

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

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

                                    \[\leadsto \frac{2}{\left(\left(\frac{t}{\ell} \cdot \left(k \cdot \frac{\color{blue}{t \cdot t}}{\ell}\right)\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
                                  5. lower-*.f6470.5

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

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

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

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

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

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

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

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

                                    \[\leadsto \frac{2}{\left(\left(\frac{t}{\ell} \cdot \left(k \cdot \frac{t \cdot t}{\ell}\right)\right) \cdot \tan k\right) \cdot \mathsf{fma}\left(k, \frac{k}{\color{blue}{t \cdot t}}, 2\right)} \]
                                  7. lower-*.f6471.5

                                    \[\leadsto \frac{2}{\left(\left(\frac{t}{\ell} \cdot \left(k \cdot \frac{t \cdot t}{\ell}\right)\right) \cdot \tan k\right) \cdot \mathsf{fma}\left(k, \frac{k}{\color{blue}{t \cdot t}}, 2\right)} \]
                                10. Applied rewrites71.5%

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

                                if 3.35000000000000018e109 < t

                                1. Initial program 70.6%

                                  \[\frac{2}{\left(\left(\frac{{t}^{3}}{\ell \cdot \ell} \cdot \sin k\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
                                2. 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. associate-*l/N/A

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

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

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

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

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

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

                                    \[\leadsto \frac{2}{\left(\left(\frac{t}{\ell} \cdot \frac{\color{blue}{t \cdot \left(t \cdot \sin k\right)}}{\ell}\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}{\ell} \cdot \frac{\color{blue}{t \cdot \left(t \cdot \sin k\right)}}{\ell}\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
                                  14. lower-*.f6489.6

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

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

                                    \[\leadsto \frac{2}{\left(\left(\frac{t}{\ell} \cdot \color{blue}{\frac{t \cdot \left(t \cdot \sin k\right)}{\ell}}\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(\frac{t}{\ell} \cdot \frac{\color{blue}{t \cdot \left(t \cdot \sin k\right)}}{\ell}\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}{\left(\left(\frac{t}{\ell} \cdot \color{blue}{\left(t \cdot \frac{t \cdot \sin k}{\ell}\right)}\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
                                  4. *-commutativeN/A

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

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

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

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

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

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

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

                                Alternative 9: 73.5% 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 6.8 \cdot 10^{+103}:\\ \;\;\;\;\frac{2}{\left(\frac{t\_m \cdot \sin k}{\ell} \cdot \left(\frac{t\_m}{\ell} \cdot \left(t\_m \cdot \tan k\right)\right)\right) \cdot 2}\\ \mathbf{else}:\\ \;\;\;\;\frac{2}{2 \cdot \left(\tan k \cdot \left(\frac{t\_m}{\ell} \cdot \left(t\_m \cdot \left(k \cdot \mathsf{fma}\left(k \cdot k, \frac{t\_m}{\ell} \cdot \mathsf{fma}\left(0.008333333333333333, k \cdot k, -0.16666666666666666\right), \frac{t\_m}{\ell}\right)\right)\right)\right)\right)}\\ \end{array} \end{array} \]
                                t\_m = (fabs.f64 t)
                                t\_s = (copysign.f64 #s(literal 1 binary64) t)
                                (FPCore (t_s t_m l k)
                                 :precision binary64
                                 (*
                                  t_s
                                  (if (<= k 6.8e+103)
                                    (/ 2.0 (* (* (/ (* t_m (sin k)) l) (* (/ t_m l) (* t_m (tan k)))) 2.0))
                                    (/
                                     2.0
                                     (*
                                      2.0
                                      (*
                                       (tan k)
                                       (*
                                        (/ t_m l)
                                        (*
                                         t_m
                                         (*
                                          k
                                          (fma
                                           (* k k)
                                           (*
                                            (/ t_m l)
                                            (fma 0.008333333333333333 (* k k) -0.16666666666666666))
                                           (/ t_m 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 <= 6.8e+103) {
                                		tmp = 2.0 / ((((t_m * sin(k)) / l) * ((t_m / l) * (t_m * tan(k)))) * 2.0);
                                	} else {
                                		tmp = 2.0 / (2.0 * (tan(k) * ((t_m / l) * (t_m * (k * fma((k * k), ((t_m / l) * fma(0.008333333333333333, (k * k), -0.16666666666666666)), (t_m / 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 <= 6.8e+103)
                                		tmp = Float64(2.0 / Float64(Float64(Float64(Float64(t_m * sin(k)) / l) * Float64(Float64(t_m / l) * Float64(t_m * tan(k)))) * 2.0));
                                	else
                                		tmp = Float64(2.0 / Float64(2.0 * Float64(tan(k) * Float64(Float64(t_m / l) * Float64(t_m * Float64(k * fma(Float64(k * k), Float64(Float64(t_m / l) * fma(0.008333333333333333, Float64(k * k), -0.16666666666666666)), Float64(t_m / 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, 6.8e+103], N[(2.0 / N[(N[(N[(N[(t$95$m * N[Sin[k], $MachinePrecision]), $MachinePrecision] / l), $MachinePrecision] * N[(N[(t$95$m / l), $MachinePrecision] * N[(t$95$m * N[Tan[k], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * 2.0), $MachinePrecision]), $MachinePrecision], N[(2.0 / N[(2.0 * N[(N[Tan[k], $MachinePrecision] * N[(N[(t$95$m / l), $MachinePrecision] * N[(t$95$m * N[(k * N[(N[(k * k), $MachinePrecision] * N[(N[(t$95$m / l), $MachinePrecision] * N[(0.008333333333333333 * N[(k * k), $MachinePrecision] + -0.16666666666666666), $MachinePrecision]), $MachinePrecision] + N[(t$95$m / l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $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 6.8 \cdot 10^{+103}:\\
                                \;\;\;\;\frac{2}{\left(\frac{t\_m \cdot \sin k}{\ell} \cdot \left(\frac{t\_m}{\ell} \cdot \left(t\_m \cdot \tan k\right)\right)\right) \cdot 2}\\
                                
                                \mathbf{else}:\\
                                \;\;\;\;\frac{2}{2 \cdot \left(\tan k \cdot \left(\frac{t\_m}{\ell} \cdot \left(t\_m \cdot \left(k \cdot \mathsf{fma}\left(k \cdot k, \frac{t\_m}{\ell} \cdot \mathsf{fma}\left(0.008333333333333333, k \cdot k, -0.16666666666666666\right), \frac{t\_m}{\ell}\right)\right)\right)\right)\right)}\\
                                
                                
                                \end{array}
                                \end{array}
                                
                                Derivation
                                1. Split input into 2 regimes
                                2. if k < 6.7999999999999997e103

                                  1. Initial program 55.6%

                                    \[\frac{2}{\left(\left(\frac{{t}^{3}}{\ell \cdot \ell} \cdot \sin k\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
                                  2. 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. associate-*l/N/A

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

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

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

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

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

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

                                      \[\leadsto \frac{2}{\left(\left(\frac{t}{\ell} \cdot \frac{\color{blue}{t \cdot \left(t \cdot \sin k\right)}}{\ell}\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}{\ell} \cdot \frac{\color{blue}{t \cdot \left(t \cdot \sin k\right)}}{\ell}\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
                                    14. lower-*.f6469.9

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

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

                                      \[\leadsto \frac{2}{\left(\left(\frac{t}{\ell} \cdot \color{blue}{\frac{t \cdot \left(t \cdot \sin k\right)}{\ell}}\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(\frac{t}{\ell} \cdot \frac{\color{blue}{t \cdot \left(t \cdot \sin k\right)}}{\ell}\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}{\left(\left(\frac{t}{\ell} \cdot \color{blue}{\left(t \cdot \frac{t \cdot \sin k}{\ell}\right)}\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
                                    4. *-commutativeN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                    if 6.7999999999999997e103 < k

                                    1. Initial program 58.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. 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. associate-*l/N/A

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

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

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

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

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

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

                                        \[\leadsto \frac{2}{\left(\left(\frac{t}{\ell} \cdot \frac{\color{blue}{t \cdot \left(t \cdot \sin k\right)}}{\ell}\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}{\ell} \cdot \frac{\color{blue}{t \cdot \left(t \cdot \sin k\right)}}{\ell}\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
                                      14. lower-*.f6465.1

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

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

                                        \[\leadsto \frac{2}{\left(\left(\frac{t}{\ell} \cdot \color{blue}{\frac{t \cdot \left(t \cdot \sin k\right)}{\ell}}\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(\frac{t}{\ell} \cdot \frac{\color{blue}{t \cdot \left(t \cdot \sin k\right)}}{\ell}\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}{\left(\left(\frac{t}{\ell} \cdot \color{blue}{\left(t \cdot \frac{t \cdot \sin k}{\ell}\right)}\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
                                      4. *-commutativeN/A

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

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

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

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

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

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

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

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

                                          \[\leadsto \frac{2}{\left(\left(\frac{t}{\ell} \cdot \left(\left(k \cdot \color{blue}{\mathsf{fma}\left({k}^{2}, \frac{-1}{6} \cdot \frac{t}{\ell} + \frac{1}{120} \cdot \frac{{k}^{2} \cdot t}{\ell}, \frac{t}{\ell}\right)}\right) \cdot t\right)\right) \cdot \tan k\right) \cdot 2} \]
                                        3. unpow2N/A

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

                                          \[\leadsto \frac{2}{\left(\left(\frac{t}{\ell} \cdot \left(\left(k \cdot \mathsf{fma}\left(\color{blue}{k \cdot k}, \frac{-1}{6} \cdot \frac{t}{\ell} + \frac{1}{120} \cdot \frac{{k}^{2} \cdot t}{\ell}, \frac{t}{\ell}\right)\right) \cdot t\right)\right) \cdot \tan k\right) \cdot 2} \]
                                        5. +-commutativeN/A

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

                                          \[\leadsto \frac{2}{\left(\left(\frac{t}{\ell} \cdot \left(\left(k \cdot \mathsf{fma}\left(k \cdot k, \frac{1}{120} \cdot \color{blue}{\left({k}^{2} \cdot \frac{t}{\ell}\right)} + \frac{-1}{6} \cdot \frac{t}{\ell}, \frac{t}{\ell}\right)\right) \cdot t\right)\right) \cdot \tan k\right) \cdot 2} \]
                                        7. associate-*r*N/A

                                          \[\leadsto \frac{2}{\left(\left(\frac{t}{\ell} \cdot \left(\left(k \cdot \mathsf{fma}\left(k \cdot k, \color{blue}{\left(\frac{1}{120} \cdot {k}^{2}\right) \cdot \frac{t}{\ell}} + \frac{-1}{6} \cdot \frac{t}{\ell}, \frac{t}{\ell}\right)\right) \cdot t\right)\right) \cdot \tan k\right) \cdot 2} \]
                                        8. distribute-rgt-outN/A

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

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

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

                                          \[\leadsto \frac{2}{\left(\left(\frac{t}{\ell} \cdot \left(\left(k \cdot \mathsf{fma}\left(k \cdot k, \frac{t}{\ell} \cdot \color{blue}{\mathsf{fma}\left(\frac{1}{120}, {k}^{2}, \frac{-1}{6}\right)}, \frac{t}{\ell}\right)\right) \cdot t\right)\right) \cdot \tan k\right) \cdot 2} \]
                                        12. unpow2N/A

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

                                          \[\leadsto \frac{2}{\left(\left(\frac{t}{\ell} \cdot \left(\left(k \cdot \mathsf{fma}\left(k \cdot k, \frac{t}{\ell} \cdot \mathsf{fma}\left(\frac{1}{120}, \color{blue}{k \cdot k}, \frac{-1}{6}\right), \frac{t}{\ell}\right)\right) \cdot t\right)\right) \cdot \tan k\right) \cdot 2} \]
                                        14. lower-/.f6472.9

                                          \[\leadsto \frac{2}{\left(\left(\frac{t}{\ell} \cdot \left(\left(k \cdot \mathsf{fma}\left(k \cdot k, \frac{t}{\ell} \cdot \mathsf{fma}\left(0.008333333333333333, k \cdot k, -0.16666666666666666\right), \color{blue}{\frac{t}{\ell}}\right)\right) \cdot t\right)\right) \cdot \tan k\right) \cdot 2} \]
                                      4. Applied rewrites72.9%

                                        \[\leadsto \frac{2}{\left(\left(\frac{t}{\ell} \cdot \left(\color{blue}{\left(k \cdot \mathsf{fma}\left(k \cdot k, \frac{t}{\ell} \cdot \mathsf{fma}\left(0.008333333333333333, k \cdot k, -0.16666666666666666\right), \frac{t}{\ell}\right)\right)} \cdot t\right)\right) \cdot \tan k\right) \cdot 2} \]
                                    9. Recombined 2 regimes into one program.
                                    10. Final simplification76.8%

                                      \[\leadsto \begin{array}{l} \mathbf{if}\;k \leq 6.8 \cdot 10^{+103}:\\ \;\;\;\;\frac{2}{\left(\frac{t \cdot \sin k}{\ell} \cdot \left(\frac{t}{\ell} \cdot \left(t \cdot \tan k\right)\right)\right) \cdot 2}\\ \mathbf{else}:\\ \;\;\;\;\frac{2}{2 \cdot \left(\tan k \cdot \left(\frac{t}{\ell} \cdot \left(t \cdot \left(k \cdot \mathsf{fma}\left(k \cdot k, \frac{t}{\ell} \cdot \mathsf{fma}\left(0.008333333333333333, k \cdot k, -0.16666666666666666\right), \frac{t}{\ell}\right)\right)\right)\right)\right)}\\ \end{array} \]
                                    11. Add Preprocessing

                                    Alternative 10: 70.9% accurate, 2.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 1.9 \cdot 10^{-177}:\\ \;\;\;\;\frac{2}{\frac{\left(k \cdot k\right) \cdot \left(k \cdot k\right)}{\ell \cdot \ell} \cdot \mathsf{fma}\left(t\_m, \left(t\_m \cdot t\_m\right) \cdot 0.3333333333333333, t\_m\right)}\\ \mathbf{elif}\;t\_m \leq 10^{+67}:\\ \;\;\;\;\frac{2}{\left(\tan k \cdot \left(\frac{t\_m}{\ell} \cdot \left(k \cdot \frac{t\_m \cdot t\_m}{\ell}\right)\right)\right) \cdot \mathsf{fma}\left(k, \frac{k}{t\_m \cdot t\_m}, 2\right)}\\ \mathbf{else}:\\ \;\;\;\;\frac{2}{2 \cdot \left(\tan k \cdot \left(\frac{t\_m}{\ell} \cdot \left(t\_m \cdot \left(k \cdot \frac{t\_m}{\ell}\right)\right)\right)\right)}\\ \end{array} \end{array} \]
                                    t\_m = (fabs.f64 t)
                                    t\_s = (copysign.f64 #s(literal 1 binary64) t)
                                    (FPCore (t_s t_m l k)
                                     :precision binary64
                                     (*
                                      t_s
                                      (if (<= t_m 1.9e-177)
                                        (/
                                         2.0
                                         (*
                                          (/ (* (* k k) (* k k)) (* l l))
                                          (fma t_m (* (* t_m t_m) 0.3333333333333333) t_m)))
                                        (if (<= t_m 1e+67)
                                          (/
                                           2.0
                                           (*
                                            (* (tan k) (* (/ t_m l) (* k (/ (* t_m t_m) l))))
                                            (fma k (/ k (* t_m t_m)) 2.0)))
                                          (/ 2.0 (* 2.0 (* (tan k) (* (/ t_m l) (* t_m (* k (/ t_m l)))))))))))
                                    t\_m = fabs(t);
                                    t\_s = copysign(1.0, t);
                                    double code(double t_s, double t_m, double l, double k) {
                                    	double tmp;
                                    	if (t_m <= 1.9e-177) {
                                    		tmp = 2.0 / ((((k * k) * (k * k)) / (l * l)) * fma(t_m, ((t_m * t_m) * 0.3333333333333333), t_m));
                                    	} else if (t_m <= 1e+67) {
                                    		tmp = 2.0 / ((tan(k) * ((t_m / l) * (k * ((t_m * t_m) / l)))) * fma(k, (k / (t_m * t_m)), 2.0));
                                    	} else {
                                    		tmp = 2.0 / (2.0 * (tan(k) * ((t_m / l) * (t_m * (k * (t_m / l))))));
                                    	}
                                    	return t_s * tmp;
                                    }
                                    
                                    t\_m = abs(t)
                                    t\_s = copysign(1.0, t)
                                    function code(t_s, t_m, l, k)
                                    	tmp = 0.0
                                    	if (t_m <= 1.9e-177)
                                    		tmp = Float64(2.0 / Float64(Float64(Float64(Float64(k * k) * Float64(k * k)) / Float64(l * l)) * fma(t_m, Float64(Float64(t_m * t_m) * 0.3333333333333333), t_m)));
                                    	elseif (t_m <= 1e+67)
                                    		tmp = Float64(2.0 / Float64(Float64(tan(k) * Float64(Float64(t_m / l) * Float64(k * Float64(Float64(t_m * t_m) / l)))) * fma(k, Float64(k / Float64(t_m * t_m)), 2.0)));
                                    	else
                                    		tmp = Float64(2.0 / Float64(2.0 * Float64(tan(k) * Float64(Float64(t_m / l) * Float64(t_m * Float64(k * Float64(t_m / l)))))));
                                    	end
                                    	return Float64(t_s * tmp)
                                    end
                                    
                                    t\_m = N[Abs[t], $MachinePrecision]
                                    t\_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[t]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
                                    code[t$95$s_, t$95$m_, l_, k_] := N[(t$95$s * If[LessEqual[t$95$m, 1.9e-177], N[(2.0 / N[(N[(N[(N[(k * k), $MachinePrecision] * N[(k * k), $MachinePrecision]), $MachinePrecision] / N[(l * l), $MachinePrecision]), $MachinePrecision] * N[(t$95$m * N[(N[(t$95$m * t$95$m), $MachinePrecision] * 0.3333333333333333), $MachinePrecision] + t$95$m), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$m, 1e+67], N[(2.0 / N[(N[(N[Tan[k], $MachinePrecision] * N[(N[(t$95$m / l), $MachinePrecision] * N[(k * N[(N[(t$95$m * t$95$m), $MachinePrecision] / l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(k * N[(k / N[(t$95$m * t$95$m), $MachinePrecision]), $MachinePrecision] + 2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(2.0 / N[(2.0 * N[(N[Tan[k], $MachinePrecision] * N[(N[(t$95$m / l), $MachinePrecision] * N[(t$95$m * N[(k * N[(t$95$m / l), $MachinePrecision]), $MachinePrecision]), $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}\;t\_m \leq 1.9 \cdot 10^{-177}:\\
                                    \;\;\;\;\frac{2}{\frac{\left(k \cdot k\right) \cdot \left(k \cdot k\right)}{\ell \cdot \ell} \cdot \mathsf{fma}\left(t\_m, \left(t\_m \cdot t\_m\right) \cdot 0.3333333333333333, t\_m\right)}\\
                                    
                                    \mathbf{elif}\;t\_m \leq 10^{+67}:\\
                                    \;\;\;\;\frac{2}{\left(\tan k \cdot \left(\frac{t\_m}{\ell} \cdot \left(k \cdot \frac{t\_m \cdot t\_m}{\ell}\right)\right)\right) \cdot \mathsf{fma}\left(k, \frac{k}{t\_m \cdot t\_m}, 2\right)}\\
                                    
                                    \mathbf{else}:\\
                                    \;\;\;\;\frac{2}{2 \cdot \left(\tan k \cdot \left(\frac{t\_m}{\ell} \cdot \left(t\_m \cdot \left(k \cdot \frac{t\_m}{\ell}\right)\right)\right)\right)}\\
                                    
                                    
                                    \end{array}
                                    \end{array}
                                    
                                    Derivation
                                    1. Split input into 3 regimes
                                    2. if t < 1.90000000000000002e-177

                                      1. Initial program 48.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 \frac{2}{\color{blue}{{k}^{2} \cdot \left(2 \cdot \frac{{t}^{3}}{{\ell}^{2}} + \frac{{k}^{2} \cdot \left({t}^{3} \cdot \left(\frac{1}{3} + \frac{1}{{t}^{2}}\right)\right)}{{\ell}^{2}}\right)}} \]
                                      4. Step-by-step derivation
                                        1. lower-*.f64N/A

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

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

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

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

                                          \[\leadsto \frac{2}{\left(k \cdot k\right) \cdot \mathsf{fma}\left(2, \color{blue}{\frac{{t}^{3}}{{\ell}^{2}}}, \frac{{k}^{2} \cdot \left({t}^{3} \cdot \left(\frac{1}{3} + \frac{1}{{t}^{2}}\right)\right)}{{\ell}^{2}}\right)} \]
                                        6. cube-multN/A

                                          \[\leadsto \frac{2}{\left(k \cdot k\right) \cdot \mathsf{fma}\left(2, \frac{\color{blue}{t \cdot \left(t \cdot t\right)}}{{\ell}^{2}}, \frac{{k}^{2} \cdot \left({t}^{3} \cdot \left(\frac{1}{3} + \frac{1}{{t}^{2}}\right)\right)}{{\ell}^{2}}\right)} \]
                                        7. unpow2N/A

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

                                          \[\leadsto \frac{2}{\left(k \cdot k\right) \cdot \mathsf{fma}\left(2, \frac{\color{blue}{t \cdot {t}^{2}}}{{\ell}^{2}}, \frac{{k}^{2} \cdot \left({t}^{3} \cdot \left(\frac{1}{3} + \frac{1}{{t}^{2}}\right)\right)}{{\ell}^{2}}\right)} \]
                                        9. unpow2N/A

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

                                          \[\leadsto \frac{2}{\left(k \cdot k\right) \cdot \mathsf{fma}\left(2, \frac{t \cdot \color{blue}{\left(t \cdot t\right)}}{{\ell}^{2}}, \frac{{k}^{2} \cdot \left({t}^{3} \cdot \left(\frac{1}{3} + \frac{1}{{t}^{2}}\right)\right)}{{\ell}^{2}}\right)} \]
                                        11. unpow2N/A

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

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

                                          \[\leadsto \frac{2}{\left(k \cdot k\right) \cdot \mathsf{fma}\left(2, \frac{t \cdot \left(t \cdot t\right)}{\ell \cdot \ell}, \color{blue}{\frac{{k}^{2} \cdot \left({t}^{3} \cdot \left(\frac{1}{3} + \frac{1}{{t}^{2}}\right)\right)}{{\ell}^{2}}}\right)} \]
                                      5. Applied rewrites55.3%

                                        \[\leadsto \frac{2}{\color{blue}{\left(k \cdot k\right) \cdot \mathsf{fma}\left(2, \frac{t \cdot \left(t \cdot t\right)}{\ell \cdot \ell}, \frac{\left(k \cdot k\right) \cdot \mathsf{fma}\left(t, \left(t \cdot t\right) \cdot 0.3333333333333333, t\right)}{\ell \cdot \ell}\right)}} \]
                                      6. Taylor expanded in k around inf

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

                                          \[\leadsto \frac{2}{\left(\left(k \cdot k\right) \cdot \left(k \cdot k\right)\right) \cdot \color{blue}{\mathsf{fma}\left(t \cdot \left(t \cdot t\right), \frac{0.3333333333333333}{\ell \cdot \ell}, \frac{t}{\ell \cdot \ell}\right)}} \]
                                        2. Taylor expanded in k around inf

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

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

                                          if 1.90000000000000002e-177 < t < 9.99999999999999983e66

                                          1. Initial program 65.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. 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. associate-*l/N/A

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

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

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

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

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

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

                                              \[\leadsto \frac{2}{\left(\left(\frac{t}{\ell} \cdot \frac{\color{blue}{t \cdot \left(t \cdot \sin k\right)}}{\ell}\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}{\ell} \cdot \frac{\color{blue}{t \cdot \left(t \cdot \sin k\right)}}{\ell}\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
                                            14. lower-*.f6472.4

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

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

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

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

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

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

                                              \[\leadsto \frac{2}{\left(\left(\frac{t}{\ell} \cdot \left(k \cdot \frac{\color{blue}{t \cdot t}}{\ell}\right)\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
                                            5. lower-*.f6468.4

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

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

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

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

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

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

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

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

                                              \[\leadsto \frac{2}{\left(\left(\frac{t}{\ell} \cdot \left(k \cdot \frac{t \cdot t}{\ell}\right)\right) \cdot \tan k\right) \cdot \mathsf{fma}\left(k, \frac{k}{\color{blue}{t \cdot t}}, 2\right)} \]
                                            7. lower-*.f6469.5

                                              \[\leadsto \frac{2}{\left(\left(\frac{t}{\ell} \cdot \left(k \cdot \frac{t \cdot t}{\ell}\right)\right) \cdot \tan k\right) \cdot \mathsf{fma}\left(k, \frac{k}{\color{blue}{t \cdot t}}, 2\right)} \]
                                          10. Applied rewrites69.5%

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

                                          if 9.99999999999999983e66 < t

                                          1. Initial program 70.8%

                                            \[\frac{2}{\left(\left(\frac{{t}^{3}}{\ell \cdot \ell} \cdot \sin k\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
                                          2. Add Preprocessing
                                          3. Step-by-step derivation
                                            1. 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. associate-*l/N/A

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

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

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

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

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

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

                                              \[\leadsto \frac{2}{\left(\left(\frac{t}{\ell} \cdot \frac{\color{blue}{t \cdot \left(t \cdot \sin k\right)}}{\ell}\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}{\ell} \cdot \frac{\color{blue}{t \cdot \left(t \cdot \sin k\right)}}{\ell}\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
                                            14. lower-*.f6491.0

                                              \[\leadsto \frac{2}{\left(\left(\frac{t}{\ell} \cdot \frac{t \cdot \color{blue}{\left(t \cdot \sin k\right)}}{\ell}\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}{\ell} \cdot \frac{t \cdot \left(t \cdot \sin k\right)}{\ell}\right)} \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
                                          5. Step-by-step derivation
                                            1. lift-/.f64N/A

                                              \[\leadsto \frac{2}{\left(\left(\frac{t}{\ell} \cdot \color{blue}{\frac{t \cdot \left(t \cdot \sin k\right)}{\ell}}\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(\frac{t}{\ell} \cdot \frac{\color{blue}{t \cdot \left(t \cdot \sin k\right)}}{\ell}\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}{\left(\left(\frac{t}{\ell} \cdot \color{blue}{\left(t \cdot \frac{t \cdot \sin k}{\ell}\right)}\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
                                            4. *-commutativeN/A

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

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

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

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

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

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

                                              \[\leadsto \frac{2}{\left(\left(\frac{t}{\ell} \cdot \left(\color{blue}{\frac{k \cdot t}{\ell}} \cdot t\right)\right) \cdot \tan k\right) \cdot 2} \]
                                            3. Step-by-step derivation
                                              1. associate-/l*N/A

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

                                                \[\leadsto \frac{2}{\left(\left(\frac{t}{\ell} \cdot \left(\color{blue}{\left(k \cdot \frac{t}{\ell}\right)} \cdot t\right)\right) \cdot \tan k\right) \cdot 2} \]
                                              3. lower-/.f6489.3

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

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

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

                                          Alternative 11: 68.2% accurate, 2.8× speedup?

                                          \[\begin{array}{l} t\_m = \left|t\right| \\ t\_s = \mathsf{copysign}\left(1, t\right) \\ \begin{array}{l} t_2 := t\_m \cdot \left(t\_m \cdot t\_m\right)\\ t\_s \cdot \begin{array}{l} \mathbf{if}\;k \leq 2.5 \cdot 10^{-51}:\\ \;\;\;\;\frac{2}{2 \cdot \left(\tan k \cdot \left(\frac{t\_m}{\ell} \cdot \left(t\_m \cdot \left(k \cdot \frac{t\_m}{\ell}\right)\right)\right)\right)}\\ \mathbf{else}:\\ \;\;\;\;\frac{2}{\frac{\left(k \cdot k\right) \cdot \mathsf{fma}\left(k, k \cdot \mathsf{fma}\left(t\_2, 0.3333333333333333, t\_m\right), 2 \cdot t\_2\right)}{\ell \cdot \ell}}\\ \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 (* t_m (* t_m t_m))))
                                             (*
                                              t_s
                                              (if (<= k 2.5e-51)
                                                (/ 2.0 (* 2.0 (* (tan k) (* (/ t_m l) (* t_m (* k (/ t_m l)))))))
                                                (/
                                                 2.0
                                                 (/
                                                  (* (* k k) (fma k (* k (fma t_2 0.3333333333333333 t_m)) (* 2.0 t_2)))
                                                  (* 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 t_2 = t_m * (t_m * t_m);
                                          	double tmp;
                                          	if (k <= 2.5e-51) {
                                          		tmp = 2.0 / (2.0 * (tan(k) * ((t_m / l) * (t_m * (k * (t_m / l))))));
                                          	} else {
                                          		tmp = 2.0 / (((k * k) * fma(k, (k * fma(t_2, 0.3333333333333333, t_m)), (2.0 * t_2))) / (l * l));
                                          	}
                                          	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 * Float64(t_m * t_m))
                                          	tmp = 0.0
                                          	if (k <= 2.5e-51)
                                          		tmp = Float64(2.0 / Float64(2.0 * Float64(tan(k) * Float64(Float64(t_m / l) * Float64(t_m * Float64(k * Float64(t_m / l)))))));
                                          	else
                                          		tmp = Float64(2.0 / Float64(Float64(Float64(k * k) * fma(k, Float64(k * fma(t_2, 0.3333333333333333, t_m)), Float64(2.0 * t_2))) / 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_] := Block[{t$95$2 = N[(t$95$m * N[(t$95$m * t$95$m), $MachinePrecision]), $MachinePrecision]}, N[(t$95$s * If[LessEqual[k, 2.5e-51], N[(2.0 / N[(2.0 * N[(N[Tan[k], $MachinePrecision] * N[(N[(t$95$m / l), $MachinePrecision] * N[(t$95$m * N[(k * N[(t$95$m / l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(2.0 / N[(N[(N[(k * k), $MachinePrecision] * N[(k * N[(k * N[(t$95$2 * 0.3333333333333333 + t$95$m), $MachinePrecision]), $MachinePrecision] + N[(2.0 * t$95$2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(l * l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]), $MachinePrecision]]
                                          
                                          \begin{array}{l}
                                          t\_m = \left|t\right|
                                          \\
                                          t\_s = \mathsf{copysign}\left(1, t\right)
                                          
                                          \\
                                          \begin{array}{l}
                                          t_2 := t\_m \cdot \left(t\_m \cdot t\_m\right)\\
                                          t\_s \cdot \begin{array}{l}
                                          \mathbf{if}\;k \leq 2.5 \cdot 10^{-51}:\\
                                          \;\;\;\;\frac{2}{2 \cdot \left(\tan k \cdot \left(\frac{t\_m}{\ell} \cdot \left(t\_m \cdot \left(k \cdot \frac{t\_m}{\ell}\right)\right)\right)\right)}\\
                                          
                                          \mathbf{else}:\\
                                          \;\;\;\;\frac{2}{\frac{\left(k \cdot k\right) \cdot \mathsf{fma}\left(k, k \cdot \mathsf{fma}\left(t\_2, 0.3333333333333333, t\_m\right), 2 \cdot t\_2\right)}{\ell \cdot \ell}}\\
                                          
                                          
                                          \end{array}
                                          \end{array}
                                          \end{array}
                                          
                                          Derivation
                                          1. Split input into 2 regimes
                                          2. if k < 2.50000000000000002e-51

                                            1. Initial program 57.3%

                                              \[\frac{2}{\left(\left(\frac{{t}^{3}}{\ell \cdot \ell} \cdot \sin k\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
                                            2. Add Preprocessing
                                            3. Step-by-step derivation
                                              1. 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. associate-*l/N/A

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

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

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

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

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

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

                                                \[\leadsto \frac{2}{\left(\left(\frac{t}{\ell} \cdot \frac{\color{blue}{t \cdot \left(t \cdot \sin k\right)}}{\ell}\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}{\ell} \cdot \frac{\color{blue}{t \cdot \left(t \cdot \sin k\right)}}{\ell}\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
                                              14. lower-*.f6472.6

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

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

                                                \[\leadsto \frac{2}{\left(\left(\frac{t}{\ell} \cdot \color{blue}{\frac{t \cdot \left(t \cdot \sin k\right)}{\ell}}\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(\frac{t}{\ell} \cdot \frac{\color{blue}{t \cdot \left(t \cdot \sin k\right)}}{\ell}\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}{\left(\left(\frac{t}{\ell} \cdot \color{blue}{\left(t \cdot \frac{t \cdot \sin k}{\ell}\right)}\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
                                              4. *-commutativeN/A

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

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

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

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

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

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

                                                \[\leadsto \frac{2}{\left(\left(\frac{t}{\ell} \cdot \left(\color{blue}{\frac{k \cdot t}{\ell}} \cdot t\right)\right) \cdot \tan k\right) \cdot 2} \]
                                              3. Step-by-step derivation
                                                1. associate-/l*N/A

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

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

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

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

                                              if 2.50000000000000002e-51 < k

                                              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 \frac{2}{\color{blue}{{k}^{2} \cdot \left(2 \cdot \frac{{t}^{3}}{{\ell}^{2}} + \frac{{k}^{2} \cdot \left({t}^{3} \cdot \left(\frac{1}{3} + \frac{1}{{t}^{2}}\right)\right)}{{\ell}^{2}}\right)}} \]
                                              4. Step-by-step derivation
                                                1. lower-*.f64N/A

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

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

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

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

                                                  \[\leadsto \frac{2}{\left(k \cdot k\right) \cdot \mathsf{fma}\left(2, \color{blue}{\frac{{t}^{3}}{{\ell}^{2}}}, \frac{{k}^{2} \cdot \left({t}^{3} \cdot \left(\frac{1}{3} + \frac{1}{{t}^{2}}\right)\right)}{{\ell}^{2}}\right)} \]
                                                6. cube-multN/A

                                                  \[\leadsto \frac{2}{\left(k \cdot k\right) \cdot \mathsf{fma}\left(2, \frac{\color{blue}{t \cdot \left(t \cdot t\right)}}{{\ell}^{2}}, \frac{{k}^{2} \cdot \left({t}^{3} \cdot \left(\frac{1}{3} + \frac{1}{{t}^{2}}\right)\right)}{{\ell}^{2}}\right)} \]
                                                7. unpow2N/A

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

                                                  \[\leadsto \frac{2}{\left(k \cdot k\right) \cdot \mathsf{fma}\left(2, \frac{\color{blue}{t \cdot {t}^{2}}}{{\ell}^{2}}, \frac{{k}^{2} \cdot \left({t}^{3} \cdot \left(\frac{1}{3} + \frac{1}{{t}^{2}}\right)\right)}{{\ell}^{2}}\right)} \]
                                                9. unpow2N/A

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

                                                  \[\leadsto \frac{2}{\left(k \cdot k\right) \cdot \mathsf{fma}\left(2, \frac{t \cdot \color{blue}{\left(t \cdot t\right)}}{{\ell}^{2}}, \frac{{k}^{2} \cdot \left({t}^{3} \cdot \left(\frac{1}{3} + \frac{1}{{t}^{2}}\right)\right)}{{\ell}^{2}}\right)} \]
                                                11. unpow2N/A

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

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

                                                  \[\leadsto \frac{2}{\left(k \cdot k\right) \cdot \mathsf{fma}\left(2, \frac{t \cdot \left(t \cdot t\right)}{\ell \cdot \ell}, \color{blue}{\frac{{k}^{2} \cdot \left({t}^{3} \cdot \left(\frac{1}{3} + \frac{1}{{t}^{2}}\right)\right)}{{\ell}^{2}}}\right)} \]
                                              5. Applied rewrites67.5%

                                                \[\leadsto \frac{2}{\color{blue}{\left(k \cdot k\right) \cdot \mathsf{fma}\left(2, \frac{t \cdot \left(t \cdot t\right)}{\ell \cdot \ell}, \frac{\left(k \cdot k\right) \cdot \mathsf{fma}\left(t, \left(t \cdot t\right) \cdot 0.3333333333333333, t\right)}{\ell \cdot \ell}\right)}} \]
                                              6. Taylor expanded in l around 0

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

                                                  \[\leadsto \frac{2}{\frac{\left(k \cdot k\right) \cdot \mathsf{fma}\left(k, k \cdot \mathsf{fma}\left(t \cdot \left(t \cdot t\right), 0.3333333333333333, t\right), 2 \cdot \left(t \cdot \left(t \cdot t\right)\right)\right)}{\color{blue}{\ell \cdot \ell}}} \]
                                              8. Recombined 2 regimes into one program.
                                              9. Final simplification70.8%

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

                                              Alternative 12: 67.2% accurate, 5.4× speedup?

                                              \[\begin{array}{l} t\_m = \left|t\right| \\ t\_s = \mathsf{copysign}\left(1, t\right) \\ \begin{array}{l} t_2 := t\_m \cdot \left(t\_m \cdot t\_m\right)\\ t\_s \cdot \begin{array}{l} \mathbf{if}\;k \leq 3.5 \cdot 10^{-52}:\\ \;\;\;\;\ell \cdot \frac{\ell}{t\_m \cdot \left(\left(t\_m \cdot k\right) \cdot \left(t\_m \cdot k\right)\right)}\\ \mathbf{else}:\\ \;\;\;\;\frac{2}{\frac{\left(k \cdot k\right) \cdot \mathsf{fma}\left(k, k \cdot \mathsf{fma}\left(t\_2, 0.3333333333333333, t\_m\right), 2 \cdot t\_2\right)}{\ell \cdot \ell}}\\ \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 (* t_m (* t_m t_m))))
                                                 (*
                                                  t_s
                                                  (if (<= k 3.5e-52)
                                                    (* l (/ l (* t_m (* (* t_m k) (* t_m k)))))
                                                    (/
                                                     2.0
                                                     (/
                                                      (* (* k k) (fma k (* k (fma t_2 0.3333333333333333 t_m)) (* 2.0 t_2)))
                                                      (* 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 t_2 = t_m * (t_m * t_m);
                                              	double tmp;
                                              	if (k <= 3.5e-52) {
                                              		tmp = l * (l / (t_m * ((t_m * k) * (t_m * k))));
                                              	} else {
                                              		tmp = 2.0 / (((k * k) * fma(k, (k * fma(t_2, 0.3333333333333333, t_m)), (2.0 * t_2))) / (l * l));
                                              	}
                                              	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 * Float64(t_m * t_m))
                                              	tmp = 0.0
                                              	if (k <= 3.5e-52)
                                              		tmp = Float64(l * Float64(l / Float64(t_m * Float64(Float64(t_m * k) * Float64(t_m * k)))));
                                              	else
                                              		tmp = Float64(2.0 / Float64(Float64(Float64(k * k) * fma(k, Float64(k * fma(t_2, 0.3333333333333333, t_m)), Float64(2.0 * t_2))) / 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_] := Block[{t$95$2 = N[(t$95$m * N[(t$95$m * t$95$m), $MachinePrecision]), $MachinePrecision]}, N[(t$95$s * If[LessEqual[k, 3.5e-52], N[(l * N[(l / N[(t$95$m * N[(N[(t$95$m * k), $MachinePrecision] * N[(t$95$m * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(2.0 / N[(N[(N[(k * k), $MachinePrecision] * N[(k * N[(k * N[(t$95$2 * 0.3333333333333333 + t$95$m), $MachinePrecision]), $MachinePrecision] + N[(2.0 * t$95$2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(l * l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]), $MachinePrecision]]
                                              
                                              \begin{array}{l}
                                              t\_m = \left|t\right|
                                              \\
                                              t\_s = \mathsf{copysign}\left(1, t\right)
                                              
                                              \\
                                              \begin{array}{l}
                                              t_2 := t\_m \cdot \left(t\_m \cdot t\_m\right)\\
                                              t\_s \cdot \begin{array}{l}
                                              \mathbf{if}\;k \leq 3.5 \cdot 10^{-52}:\\
                                              \;\;\;\;\ell \cdot \frac{\ell}{t\_m \cdot \left(\left(t\_m \cdot k\right) \cdot \left(t\_m \cdot k\right)\right)}\\
                                              
                                              \mathbf{else}:\\
                                              \;\;\;\;\frac{2}{\frac{\left(k \cdot k\right) \cdot \mathsf{fma}\left(k, k \cdot \mathsf{fma}\left(t\_2, 0.3333333333333333, t\_m\right), 2 \cdot t\_2\right)}{\ell \cdot \ell}}\\
                                              
                                              
                                              \end{array}
                                              \end{array}
                                              \end{array}
                                              
                                              Derivation
                                              1. Split input into 2 regimes
                                              2. if k < 3.5e-52

                                                1. Initial program 57.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. lower-/.f64N/A

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

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

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

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

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

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

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

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

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

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

                                                    \[\leadsto \frac{\ell \cdot \ell}{\left(t \cdot \left(t \cdot t\right)\right) \cdot \color{blue}{\left(k \cdot k\right)}} \]
                                                  12. lower-*.f6453.1

                                                    \[\leadsto \frac{\ell \cdot \ell}{\left(t \cdot \left(t \cdot t\right)\right) \cdot \color{blue}{\left(k \cdot k\right)}} \]
                                                5. Applied rewrites53.1%

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

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

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

                                                        \[\leadsto \frac{\ell}{\left(\left(k \cdot t\right) \cdot \left(k \cdot t\right)\right) \cdot t} \cdot \ell \]

                                                      if 3.5e-52 < k

                                                      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 \frac{2}{\color{blue}{{k}^{2} \cdot \left(2 \cdot \frac{{t}^{3}}{{\ell}^{2}} + \frac{{k}^{2} \cdot \left({t}^{3} \cdot \left(\frac{1}{3} + \frac{1}{{t}^{2}}\right)\right)}{{\ell}^{2}}\right)}} \]
                                                      4. Step-by-step derivation
                                                        1. lower-*.f64N/A

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

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

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

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

                                                          \[\leadsto \frac{2}{\left(k \cdot k\right) \cdot \mathsf{fma}\left(2, \color{blue}{\frac{{t}^{3}}{{\ell}^{2}}}, \frac{{k}^{2} \cdot \left({t}^{3} \cdot \left(\frac{1}{3} + \frac{1}{{t}^{2}}\right)\right)}{{\ell}^{2}}\right)} \]
                                                        6. cube-multN/A

                                                          \[\leadsto \frac{2}{\left(k \cdot k\right) \cdot \mathsf{fma}\left(2, \frac{\color{blue}{t \cdot \left(t \cdot t\right)}}{{\ell}^{2}}, \frac{{k}^{2} \cdot \left({t}^{3} \cdot \left(\frac{1}{3} + \frac{1}{{t}^{2}}\right)\right)}{{\ell}^{2}}\right)} \]
                                                        7. unpow2N/A

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

                                                          \[\leadsto \frac{2}{\left(k \cdot k\right) \cdot \mathsf{fma}\left(2, \frac{\color{blue}{t \cdot {t}^{2}}}{{\ell}^{2}}, \frac{{k}^{2} \cdot \left({t}^{3} \cdot \left(\frac{1}{3} + \frac{1}{{t}^{2}}\right)\right)}{{\ell}^{2}}\right)} \]
                                                        9. unpow2N/A

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

                                                          \[\leadsto \frac{2}{\left(k \cdot k\right) \cdot \mathsf{fma}\left(2, \frac{t \cdot \color{blue}{\left(t \cdot t\right)}}{{\ell}^{2}}, \frac{{k}^{2} \cdot \left({t}^{3} \cdot \left(\frac{1}{3} + \frac{1}{{t}^{2}}\right)\right)}{{\ell}^{2}}\right)} \]
                                                        11. unpow2N/A

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

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

                                                          \[\leadsto \frac{2}{\left(k \cdot k\right) \cdot \mathsf{fma}\left(2, \frac{t \cdot \left(t \cdot t\right)}{\ell \cdot \ell}, \color{blue}{\frac{{k}^{2} \cdot \left({t}^{3} \cdot \left(\frac{1}{3} + \frac{1}{{t}^{2}}\right)\right)}{{\ell}^{2}}}\right)} \]
                                                      5. Applied rewrites67.5%

                                                        \[\leadsto \frac{2}{\color{blue}{\left(k \cdot k\right) \cdot \mathsf{fma}\left(2, \frac{t \cdot \left(t \cdot t\right)}{\ell \cdot \ell}, \frac{\left(k \cdot k\right) \cdot \mathsf{fma}\left(t, \left(t \cdot t\right) \cdot 0.3333333333333333, t\right)}{\ell \cdot \ell}\right)}} \]
                                                      6. Taylor expanded in l around 0

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

                                                          \[\leadsto \frac{2}{\frac{\left(k \cdot k\right) \cdot \mathsf{fma}\left(k, k \cdot \mathsf{fma}\left(t \cdot \left(t \cdot t\right), 0.3333333333333333, t\right), 2 \cdot \left(t \cdot \left(t \cdot t\right)\right)\right)}{\color{blue}{\ell \cdot \ell}}} \]
                                                      8. Recombined 2 regimes into one program.
                                                      9. Final simplification72.1%

                                                        \[\leadsto \begin{array}{l} \mathbf{if}\;k \leq 3.5 \cdot 10^{-52}:\\ \;\;\;\;\ell \cdot \frac{\ell}{t \cdot \left(\left(t \cdot k\right) \cdot \left(t \cdot k\right)\right)}\\ \mathbf{else}:\\ \;\;\;\;\frac{2}{\frac{\left(k \cdot k\right) \cdot \mathsf{fma}\left(k, k \cdot \mathsf{fma}\left(t \cdot \left(t \cdot t\right), 0.3333333333333333, t\right), 2 \cdot \left(t \cdot \left(t \cdot t\right)\right)\right)}{\ell \cdot \ell}}\\ \end{array} \]
                                                      10. Add Preprocessing

                                                      Alternative 13: 67.7% accurate, 6.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 5.8 \cdot 10^{-114}:\\ \;\;\;\;\frac{2}{\frac{\left(k \cdot k\right) \cdot \left(k \cdot k\right)}{\ell \cdot \ell} \cdot \mathsf{fma}\left(t\_m, \left(t\_m \cdot t\_m\right) \cdot 0.3333333333333333, t\_m\right)}\\ \mathbf{else}:\\ \;\;\;\;\ell \cdot \frac{\ell}{t\_m \cdot \left(\left(t\_m \cdot k\right) \cdot \left(t\_m \cdot k\right)\right)}\\ \end{array} \end{array} \]
                                                      t\_m = (fabs.f64 t)
                                                      t\_s = (copysign.f64 #s(literal 1 binary64) t)
                                                      (FPCore (t_s t_m l k)
                                                       :precision binary64
                                                       (*
                                                        t_s
                                                        (if (<= t_m 5.8e-114)
                                                          (/
                                                           2.0
                                                           (*
                                                            (/ (* (* k k) (* k k)) (* l l))
                                                            (fma t_m (* (* t_m t_m) 0.3333333333333333) t_m)))
                                                          (* l (/ l (* t_m (* (* t_m 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 (t_m <= 5.8e-114) {
                                                      		tmp = 2.0 / ((((k * k) * (k * k)) / (l * l)) * fma(t_m, ((t_m * t_m) * 0.3333333333333333), t_m));
                                                      	} else {
                                                      		tmp = l * (l / (t_m * ((t_m * 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 (t_m <= 5.8e-114)
                                                      		tmp = Float64(2.0 / Float64(Float64(Float64(Float64(k * k) * Float64(k * k)) / Float64(l * l)) * fma(t_m, Float64(Float64(t_m * t_m) * 0.3333333333333333), t_m)));
                                                      	else
                                                      		tmp = Float64(l * Float64(l / Float64(t_m * Float64(Float64(t_m * k) * Float64(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[t$95$m, 5.8e-114], N[(2.0 / N[(N[(N[(N[(k * k), $MachinePrecision] * N[(k * k), $MachinePrecision]), $MachinePrecision] / N[(l * l), $MachinePrecision]), $MachinePrecision] * N[(t$95$m * N[(N[(t$95$m * t$95$m), $MachinePrecision] * 0.3333333333333333), $MachinePrecision] + t$95$m), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(l * N[(l / N[(t$95$m * N[(N[(t$95$m * k), $MachinePrecision] * N[(t$95$m * k), $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}\;t\_m \leq 5.8 \cdot 10^{-114}:\\
                                                      \;\;\;\;\frac{2}{\frac{\left(k \cdot k\right) \cdot \left(k \cdot k\right)}{\ell \cdot \ell} \cdot \mathsf{fma}\left(t\_m, \left(t\_m \cdot t\_m\right) \cdot 0.3333333333333333, t\_m\right)}\\
                                                      
                                                      \mathbf{else}:\\
                                                      \;\;\;\;\ell \cdot \frac{\ell}{t\_m \cdot \left(\left(t\_m \cdot k\right) \cdot \left(t\_m \cdot k\right)\right)}\\
                                                      
                                                      
                                                      \end{array}
                                                      \end{array}
                                                      
                                                      Derivation
                                                      1. Split input into 2 regimes
                                                      2. if t < 5.79999999999999993e-114

                                                        1. Initial program 47.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 \frac{2}{\color{blue}{{k}^{2} \cdot \left(2 \cdot \frac{{t}^{3}}{{\ell}^{2}} + \frac{{k}^{2} \cdot \left({t}^{3} \cdot \left(\frac{1}{3} + \frac{1}{{t}^{2}}\right)\right)}{{\ell}^{2}}\right)}} \]
                                                        4. Step-by-step derivation
                                                          1. lower-*.f64N/A

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

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

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

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

                                                            \[\leadsto \frac{2}{\left(k \cdot k\right) \cdot \mathsf{fma}\left(2, \color{blue}{\frac{{t}^{3}}{{\ell}^{2}}}, \frac{{k}^{2} \cdot \left({t}^{3} \cdot \left(\frac{1}{3} + \frac{1}{{t}^{2}}\right)\right)}{{\ell}^{2}}\right)} \]
                                                          6. cube-multN/A

                                                            \[\leadsto \frac{2}{\left(k \cdot k\right) \cdot \mathsf{fma}\left(2, \frac{\color{blue}{t \cdot \left(t \cdot t\right)}}{{\ell}^{2}}, \frac{{k}^{2} \cdot \left({t}^{3} \cdot \left(\frac{1}{3} + \frac{1}{{t}^{2}}\right)\right)}{{\ell}^{2}}\right)} \]
                                                          7. unpow2N/A

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

                                                            \[\leadsto \frac{2}{\left(k \cdot k\right) \cdot \mathsf{fma}\left(2, \frac{\color{blue}{t \cdot {t}^{2}}}{{\ell}^{2}}, \frac{{k}^{2} \cdot \left({t}^{3} \cdot \left(\frac{1}{3} + \frac{1}{{t}^{2}}\right)\right)}{{\ell}^{2}}\right)} \]
                                                          9. unpow2N/A

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

                                                            \[\leadsto \frac{2}{\left(k \cdot k\right) \cdot \mathsf{fma}\left(2, \frac{t \cdot \color{blue}{\left(t \cdot t\right)}}{{\ell}^{2}}, \frac{{k}^{2} \cdot \left({t}^{3} \cdot \left(\frac{1}{3} + \frac{1}{{t}^{2}}\right)\right)}{{\ell}^{2}}\right)} \]
                                                          11. unpow2N/A

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

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

                                                            \[\leadsto \frac{2}{\left(k \cdot k\right) \cdot \mathsf{fma}\left(2, \frac{t \cdot \left(t \cdot t\right)}{\ell \cdot \ell}, \color{blue}{\frac{{k}^{2} \cdot \left({t}^{3} \cdot \left(\frac{1}{3} + \frac{1}{{t}^{2}}\right)\right)}{{\ell}^{2}}}\right)} \]
                                                        5. Applied rewrites54.4%

                                                          \[\leadsto \frac{2}{\color{blue}{\left(k \cdot k\right) \cdot \mathsf{fma}\left(2, \frac{t \cdot \left(t \cdot t\right)}{\ell \cdot \ell}, \frac{\left(k \cdot k\right) \cdot \mathsf{fma}\left(t, \left(t \cdot t\right) \cdot 0.3333333333333333, t\right)}{\ell \cdot \ell}\right)}} \]
                                                        6. Taylor expanded in k around inf

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

                                                            \[\leadsto \frac{2}{\left(\left(k \cdot k\right) \cdot \left(k \cdot k\right)\right) \cdot \color{blue}{\mathsf{fma}\left(t \cdot \left(t \cdot t\right), \frac{0.3333333333333333}{\ell \cdot \ell}, \frac{t}{\ell \cdot \ell}\right)}} \]
                                                          2. Taylor expanded in k around inf

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

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

                                                            if 5.79999999999999993e-114 < t

                                                            1. Initial program 71.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. lower-/.f64N/A

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

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

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

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

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

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

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

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

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

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

                                                                \[\leadsto \frac{\ell \cdot \ell}{\left(t \cdot \left(t \cdot t\right)\right) \cdot \color{blue}{\left(k \cdot k\right)}} \]
                                                              12. lower-*.f6464.3

                                                                \[\leadsto \frac{\ell \cdot \ell}{\left(t \cdot \left(t \cdot t\right)\right) \cdot \color{blue}{\left(k \cdot k\right)}} \]
                                                            5. Applied rewrites64.3%

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

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

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

                                                                    \[\leadsto \frac{\ell}{\left(\left(k \cdot t\right) \cdot \left(k \cdot t\right)\right) \cdot t} \cdot \ell \]
                                                                3. Recombined 2 regimes into one program.
                                                                4. Final simplification64.5%

                                                                  \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq 5.8 \cdot 10^{-114}:\\ \;\;\;\;\frac{2}{\frac{\left(k \cdot k\right) \cdot \left(k \cdot k\right)}{\ell \cdot \ell} \cdot \mathsf{fma}\left(t, \left(t \cdot t\right) \cdot 0.3333333333333333, t\right)}\\ \mathbf{else}:\\ \;\;\;\;\ell \cdot \frac{\ell}{t \cdot \left(\left(t \cdot k\right) \cdot \left(t \cdot k\right)\right)}\\ \end{array} \]
                                                                5. Add Preprocessing

                                                                Alternative 14: 67.8% accurate, 8.6× speedup?

                                                                \[\begin{array}{l} t\_m = \left|t\right| \\ t\_s = \mathsf{copysign}\left(1, t\right) \\ t\_s \cdot \begin{array}{l} \mathbf{if}\;t\_m \leq 6.5 \cdot 10^{-120}:\\ \;\;\;\;\frac{2}{\left(\left(k \cdot k\right) \cdot \left(k \cdot k\right)\right) \cdot \frac{t\_m}{\ell \cdot \ell}}\\ \mathbf{else}:\\ \;\;\;\;\ell \cdot \frac{\ell}{t\_m \cdot \left(\left(t\_m \cdot k\right) \cdot \left(t\_m \cdot k\right)\right)}\\ \end{array} \end{array} \]
                                                                t\_m = (fabs.f64 t)
                                                                t\_s = (copysign.f64 #s(literal 1 binary64) t)
                                                                (FPCore (t_s t_m l k)
                                                                 :precision binary64
                                                                 (*
                                                                  t_s
                                                                  (if (<= t_m 6.5e-120)
                                                                    (/ 2.0 (* (* (* k k) (* k k)) (/ t_m (* l l))))
                                                                    (* l (/ l (* t_m (* (* t_m 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 (t_m <= 6.5e-120) {
                                                                		tmp = 2.0 / (((k * k) * (k * k)) * (t_m / (l * l)));
                                                                	} else {
                                                                		tmp = l * (l / (t_m * ((t_m * k) * (t_m * 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 (t_m <= 6.5d-120) then
                                                                        tmp = 2.0d0 / (((k * k) * (k * k)) * (t_m / (l * l)))
                                                                    else
                                                                        tmp = l * (l / (t_m * ((t_m * k) * (t_m * 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 (t_m <= 6.5e-120) {
                                                                		tmp = 2.0 / (((k * k) * (k * k)) * (t_m / (l * l)));
                                                                	} else {
                                                                		tmp = l * (l / (t_m * ((t_m * k) * (t_m * 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 t_m <= 6.5e-120:
                                                                		tmp = 2.0 / (((k * k) * (k * k)) * (t_m / (l * l)))
                                                                	else:
                                                                		tmp = l * (l / (t_m * ((t_m * 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 (t_m <= 6.5e-120)
                                                                		tmp = Float64(2.0 / Float64(Float64(Float64(k * k) * Float64(k * k)) * Float64(t_m / Float64(l * l))));
                                                                	else
                                                                		tmp = Float64(l * Float64(l / Float64(t_m * Float64(Float64(t_m * k) * Float64(t_m * 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 (t_m <= 6.5e-120)
                                                                		tmp = 2.0 / (((k * k) * (k * k)) * (t_m / (l * l)));
                                                                	else
                                                                		tmp = l * (l / (t_m * ((t_m * k) * (t_m * 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[t$95$m, 6.5e-120], N[(2.0 / N[(N[(N[(k * k), $MachinePrecision] * N[(k * k), $MachinePrecision]), $MachinePrecision] * N[(t$95$m / N[(l * l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(l * N[(l / N[(t$95$m * N[(N[(t$95$m * k), $MachinePrecision] * N[(t$95$m * k), $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}\;t\_m \leq 6.5 \cdot 10^{-120}:\\
                                                                \;\;\;\;\frac{2}{\left(\left(k \cdot k\right) \cdot \left(k \cdot k\right)\right) \cdot \frac{t\_m}{\ell \cdot \ell}}\\
                                                                
                                                                \mathbf{else}:\\
                                                                \;\;\;\;\ell \cdot \frac{\ell}{t\_m \cdot \left(\left(t\_m \cdot k\right) \cdot \left(t\_m \cdot k\right)\right)}\\
                                                                
                                                                
                                                                \end{array}
                                                                \end{array}
                                                                
                                                                Derivation
                                                                1. Split input into 2 regimes
                                                                2. if t < 6.50000000000000029e-120

                                                                  1. Initial program 46.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 \frac{2}{\color{blue}{{k}^{2} \cdot \left(2 \cdot \frac{{t}^{3}}{{\ell}^{2}} + \frac{{k}^{2} \cdot \left({t}^{3} \cdot \left(\frac{1}{3} + \frac{1}{{t}^{2}}\right)\right)}{{\ell}^{2}}\right)}} \]
                                                                  4. Step-by-step derivation
                                                                    1. lower-*.f64N/A

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

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

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

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

                                                                      \[\leadsto \frac{2}{\left(k \cdot k\right) \cdot \mathsf{fma}\left(2, \color{blue}{\frac{{t}^{3}}{{\ell}^{2}}}, \frac{{k}^{2} \cdot \left({t}^{3} \cdot \left(\frac{1}{3} + \frac{1}{{t}^{2}}\right)\right)}{{\ell}^{2}}\right)} \]
                                                                    6. cube-multN/A

                                                                      \[\leadsto \frac{2}{\left(k \cdot k\right) \cdot \mathsf{fma}\left(2, \frac{\color{blue}{t \cdot \left(t \cdot t\right)}}{{\ell}^{2}}, \frac{{k}^{2} \cdot \left({t}^{3} \cdot \left(\frac{1}{3} + \frac{1}{{t}^{2}}\right)\right)}{{\ell}^{2}}\right)} \]
                                                                    7. unpow2N/A

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

                                                                      \[\leadsto \frac{2}{\left(k \cdot k\right) \cdot \mathsf{fma}\left(2, \frac{\color{blue}{t \cdot {t}^{2}}}{{\ell}^{2}}, \frac{{k}^{2} \cdot \left({t}^{3} \cdot \left(\frac{1}{3} + \frac{1}{{t}^{2}}\right)\right)}{{\ell}^{2}}\right)} \]
                                                                    9. unpow2N/A

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

                                                                      \[\leadsto \frac{2}{\left(k \cdot k\right) \cdot \mathsf{fma}\left(2, \frac{t \cdot \color{blue}{\left(t \cdot t\right)}}{{\ell}^{2}}, \frac{{k}^{2} \cdot \left({t}^{3} \cdot \left(\frac{1}{3} + \frac{1}{{t}^{2}}\right)\right)}{{\ell}^{2}}\right)} \]
                                                                    11. unpow2N/A

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

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

                                                                      \[\leadsto \frac{2}{\left(k \cdot k\right) \cdot \mathsf{fma}\left(2, \frac{t \cdot \left(t \cdot t\right)}{\ell \cdot \ell}, \color{blue}{\frac{{k}^{2} \cdot \left({t}^{3} \cdot \left(\frac{1}{3} + \frac{1}{{t}^{2}}\right)\right)}{{\ell}^{2}}}\right)} \]
                                                                  5. Applied rewrites54.4%

                                                                    \[\leadsto \frac{2}{\color{blue}{\left(k \cdot k\right) \cdot \mathsf{fma}\left(2, \frac{t \cdot \left(t \cdot t\right)}{\ell \cdot \ell}, \frac{\left(k \cdot k\right) \cdot \mathsf{fma}\left(t, \left(t \cdot t\right) \cdot 0.3333333333333333, t\right)}{\ell \cdot \ell}\right)}} \]
                                                                  6. Taylor expanded in k around inf

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

                                                                      \[\leadsto \frac{2}{\left(\left(k \cdot k\right) \cdot \left(k \cdot k\right)\right) \cdot \color{blue}{\mathsf{fma}\left(t \cdot \left(t \cdot t\right), \frac{0.3333333333333333}{\ell \cdot \ell}, \frac{t}{\ell \cdot \ell}\right)}} \]
                                                                    2. Taylor expanded in t around 0

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

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

                                                                      if 6.50000000000000029e-120 < t

                                                                      1. Initial program 72.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. lower-/.f64N/A

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

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

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

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

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

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

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

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

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

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

                                                                          \[\leadsto \frac{\ell \cdot \ell}{\left(t \cdot \left(t \cdot t\right)\right) \cdot \color{blue}{\left(k \cdot k\right)}} \]
                                                                        12. lower-*.f6464.0

                                                                          \[\leadsto \frac{\ell \cdot \ell}{\left(t \cdot \left(t \cdot t\right)\right) \cdot \color{blue}{\left(k \cdot k\right)}} \]
                                                                      5. Applied rewrites64.0%

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

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

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

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

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

                                                                          Alternative 15: 67.7% 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 9 \cdot 10^{-156}:\\ \;\;\;\;\ell \cdot \frac{\ell}{t\_m \cdot \left(\left(t\_m \cdot k\right) \cdot \left(t\_m \cdot k\right)\right)}\\ \mathbf{else}:\\ \;\;\;\;\frac{\ell}{t\_m} \cdot \frac{\ell}{t\_m \cdot \left(t\_m \cdot \left(k \cdot k\right)\right)}\\ \end{array} \end{array} \]
                                                                          t\_m = (fabs.f64 t)
                                                                          t\_s = (copysign.f64 #s(literal 1 binary64) t)
                                                                          (FPCore (t_s t_m l k)
                                                                           :precision binary64
                                                                           (*
                                                                            t_s
                                                                            (if (<= k 9e-156)
                                                                              (* l (/ l (* t_m (* (* t_m k) (* t_m k)))))
                                                                              (* (/ l t_m) (/ l (* t_m (* 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 <= 9e-156) {
                                                                          		tmp = l * (l / (t_m * ((t_m * k) * (t_m * k))));
                                                                          	} else {
                                                                          		tmp = (l / t_m) * (l / (t_m * (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 <= 9d-156) then
                                                                                  tmp = l * (l / (t_m * ((t_m * k) * (t_m * k))))
                                                                              else
                                                                                  tmp = (l / t_m) * (l / (t_m * (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 <= 9e-156) {
                                                                          		tmp = l * (l / (t_m * ((t_m * k) * (t_m * k))));
                                                                          	} else {
                                                                          		tmp = (l / t_m) * (l / (t_m * (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 <= 9e-156:
                                                                          		tmp = l * (l / (t_m * ((t_m * k) * (t_m * k))))
                                                                          	else:
                                                                          		tmp = (l / t_m) * (l / (t_m * (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 <= 9e-156)
                                                                          		tmp = Float64(l * Float64(l / Float64(t_m * Float64(Float64(t_m * k) * Float64(t_m * k)))));
                                                                          	else
                                                                          		tmp = Float64(Float64(l / t_m) * Float64(l / Float64(t_m * Float64(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 <= 9e-156)
                                                                          		tmp = l * (l / (t_m * ((t_m * k) * (t_m * k))));
                                                                          	else
                                                                          		tmp = (l / t_m) * (l / (t_m * (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, 9e-156], N[(l * N[(l / N[(t$95$m * N[(N[(t$95$m * k), $MachinePrecision] * N[(t$95$m * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(l / t$95$m), $MachinePrecision] * N[(l / N[(t$95$m * N[(t$95$m * N[(k * k), $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 9 \cdot 10^{-156}:\\
                                                                          \;\;\;\;\ell \cdot \frac{\ell}{t\_m \cdot \left(\left(t\_m \cdot k\right) \cdot \left(t\_m \cdot k\right)\right)}\\
                                                                          
                                                                          \mathbf{else}:\\
                                                                          \;\;\;\;\frac{\ell}{t\_m} \cdot \frac{\ell}{t\_m \cdot \left(t\_m \cdot \left(k \cdot k\right)\right)}\\
                                                                          
                                                                          
                                                                          \end{array}
                                                                          \end{array}
                                                                          
                                                                          Derivation
                                                                          1. Split input into 2 regimes
                                                                          2. if k < 8.99999999999999971e-156

                                                                            1. Initial program 55.6%

                                                                              \[\frac{2}{\left(\left(\frac{{t}^{3}}{\ell \cdot \ell} \cdot \sin k\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
                                                                            2. 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. lower-/.f64N/A

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

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

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

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

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

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

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

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

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

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

                                                                                \[\leadsto \frac{\ell \cdot \ell}{\left(t \cdot \left(t \cdot t\right)\right) \cdot \color{blue}{\left(k \cdot k\right)}} \]
                                                                              12. lower-*.f6450.2

                                                                                \[\leadsto \frac{\ell \cdot \ell}{\left(t \cdot \left(t \cdot t\right)\right) \cdot \color{blue}{\left(k \cdot k\right)}} \]
                                                                            5. Applied rewrites50.2%

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

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

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

                                                                                    \[\leadsto \frac{\ell}{\left(\left(k \cdot t\right) \cdot \left(k \cdot t\right)\right) \cdot t} \cdot \ell \]

                                                                                  if 8.99999999999999971e-156 < k

                                                                                  1. Initial program 56.8%

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

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

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

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

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

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

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

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

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

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

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

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

                                                                                      \[\leadsto \frac{\ell \cdot \ell}{\left(t \cdot \left(t \cdot t\right)\right) \cdot \color{blue}{\left(k \cdot k\right)}} \]
                                                                                    12. lower-*.f6459.0

                                                                                      \[\leadsto \frac{\ell \cdot \ell}{\left(t \cdot \left(t \cdot t\right)\right) \cdot \color{blue}{\left(k \cdot k\right)}} \]
                                                                                  5. Applied rewrites59.0%

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

                                                                                      \[\leadsto \frac{\ell}{t} \cdot \color{blue}{\frac{\ell}{t \cdot \left(t \cdot \left(k \cdot k\right)\right)}} \]
                                                                                  7. Recombined 2 regimes into one program.
                                                                                  8. Final simplification70.5%

                                                                                    \[\leadsto \begin{array}{l} \mathbf{if}\;k \leq 9 \cdot 10^{-156}:\\ \;\;\;\;\ell \cdot \frac{\ell}{t \cdot \left(\left(t \cdot k\right) \cdot \left(t \cdot k\right)\right)}\\ \mathbf{else}:\\ \;\;\;\;\frac{\ell}{t} \cdot \frac{\ell}{t \cdot \left(t \cdot \left(k \cdot k\right)\right)}\\ \end{array} \]
                                                                                  9. Add Preprocessing

                                                                                  Alternative 16: 66.5% 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 1.5 \cdot 10^{+48}:\\ \;\;\;\;\ell \cdot \frac{\ell}{t\_m \cdot \left(\left(t\_m \cdot k\right) \cdot \left(t\_m \cdot k\right)\right)}\\ \mathbf{else}:\\ \;\;\;\;\frac{\ell \cdot \ell}{t\_m \cdot \left(t\_m \cdot \left(t\_m \cdot \left(k \cdot k\right)\right)\right)}\\ \end{array} \end{array} \]
                                                                                  t\_m = (fabs.f64 t)
                                                                                  t\_s = (copysign.f64 #s(literal 1 binary64) t)
                                                                                  (FPCore (t_s t_m l k)
                                                                                   :precision binary64
                                                                                   (*
                                                                                    t_s
                                                                                    (if (<= k 1.5e+48)
                                                                                      (* l (/ l (* t_m (* (* t_m k) (* t_m k)))))
                                                                                      (/ (* l l) (* t_m (* t_m (* 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 <= 1.5e+48) {
                                                                                  		tmp = l * (l / (t_m * ((t_m * k) * (t_m * k))));
                                                                                  	} else {
                                                                                  		tmp = (l * l) / (t_m * (t_m * (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 <= 1.5d+48) then
                                                                                          tmp = l * (l / (t_m * ((t_m * k) * (t_m * k))))
                                                                                      else
                                                                                          tmp = (l * l) / (t_m * (t_m * (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 <= 1.5e+48) {
                                                                                  		tmp = l * (l / (t_m * ((t_m * k) * (t_m * k))));
                                                                                  	} else {
                                                                                  		tmp = (l * l) / (t_m * (t_m * (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 <= 1.5e+48:
                                                                                  		tmp = l * (l / (t_m * ((t_m * k) * (t_m * k))))
                                                                                  	else:
                                                                                  		tmp = (l * l) / (t_m * (t_m * (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 <= 1.5e+48)
                                                                                  		tmp = Float64(l * Float64(l / Float64(t_m * Float64(Float64(t_m * k) * Float64(t_m * k)))));
                                                                                  	else
                                                                                  		tmp = Float64(Float64(l * l) / Float64(t_m * Float64(t_m * Float64(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 <= 1.5e+48)
                                                                                  		tmp = l * (l / (t_m * ((t_m * k) * (t_m * k))));
                                                                                  	else
                                                                                  		tmp = (l * l) / (t_m * (t_m * (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, 1.5e+48], N[(l * N[(l / N[(t$95$m * N[(N[(t$95$m * k), $MachinePrecision] * N[(t$95$m * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(l * l), $MachinePrecision] / N[(t$95$m * N[(t$95$m * N[(t$95$m * N[(k * k), $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 1.5 \cdot 10^{+48}:\\
                                                                                  \;\;\;\;\ell \cdot \frac{\ell}{t\_m \cdot \left(\left(t\_m \cdot k\right) \cdot \left(t\_m \cdot k\right)\right)}\\
                                                                                  
                                                                                  \mathbf{else}:\\
                                                                                  \;\;\;\;\frac{\ell \cdot \ell}{t\_m \cdot \left(t\_m \cdot \left(t\_m \cdot \left(k \cdot k\right)\right)\right)}\\
                                                                                  
                                                                                  
                                                                                  \end{array}
                                                                                  \end{array}
                                                                                  
                                                                                  Derivation
                                                                                  1. Split input into 2 regimes
                                                                                  2. if k < 1.5e48

                                                                                    1. Initial program 57.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. lower-/.f64N/A

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

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

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

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

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

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

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

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

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

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

                                                                                        \[\leadsto \frac{\ell \cdot \ell}{\left(t \cdot \left(t \cdot t\right)\right) \cdot \color{blue}{\left(k \cdot k\right)}} \]
                                                                                      12. lower-*.f6455.0

                                                                                        \[\leadsto \frac{\ell \cdot \ell}{\left(t \cdot \left(t \cdot t\right)\right) \cdot \color{blue}{\left(k \cdot k\right)}} \]
                                                                                    5. Applied rewrites55.0%

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

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

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

                                                                                            \[\leadsto \frac{\ell}{\left(\left(k \cdot t\right) \cdot \left(k \cdot t\right)\right) \cdot t} \cdot \ell \]

                                                                                          if 1.5e48 < k

                                                                                          1. Initial program 50.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. lower-/.f64N/A

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

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

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

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

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

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

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

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

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

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

                                                                                              \[\leadsto \frac{\ell \cdot \ell}{\left(t \cdot \left(t \cdot t\right)\right) \cdot \color{blue}{\left(k \cdot k\right)}} \]
                                                                                            12. lower-*.f6448.5

                                                                                              \[\leadsto \frac{\ell \cdot \ell}{\left(t \cdot \left(t \cdot t\right)\right) \cdot \color{blue}{\left(k \cdot k\right)}} \]
                                                                                          5. Applied rewrites48.5%

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

                                                                                              \[\leadsto \frac{\ell \cdot \ell}{\left(t \cdot \left(t \cdot \left(k \cdot k\right)\right)\right) \cdot \color{blue}{t}} \]
                                                                                          7. Recombined 2 regimes into one program.
                                                                                          8. Final simplification70.7%

                                                                                            \[\leadsto \begin{array}{l} \mathbf{if}\;k \leq 1.5 \cdot 10^{+48}:\\ \;\;\;\;\ell \cdot \frac{\ell}{t \cdot \left(\left(t \cdot k\right) \cdot \left(t \cdot k\right)\right)}\\ \mathbf{else}:\\ \;\;\;\;\frac{\ell \cdot \ell}{t \cdot \left(t \cdot \left(t \cdot \left(k \cdot k\right)\right)\right)}\\ \end{array} \]
                                                                                          9. Add Preprocessing

                                                                                          Alternative 17: 63.4% 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 2 \cdot 10^{-191}:\\ \;\;\;\;\ell \cdot \frac{\ell}{k \cdot \left(t\_m \cdot \left(t\_m \cdot \left(t\_m \cdot k\right)\right)\right)}\\ \mathbf{else}:\\ \;\;\;\;\ell \cdot \frac{\ell}{\left(k \cdot \left(t\_m \cdot k\right)\right) \cdot \left(t\_m \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 2e-191)
                                                                                              (* l (/ l (* k (* t_m (* t_m (* t_m k))))))
                                                                                              (* 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 tmp;
                                                                                          	if (k <= 2e-191) {
                                                                                          		tmp = l * (l / (k * (t_m * (t_m * (t_m * k)))));
                                                                                          	} 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) :: tmp
                                                                                              if (k <= 2d-191) then
                                                                                                  tmp = l * (l / (k * (t_m * (t_m * (t_m * k)))))
                                                                                              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 tmp;
                                                                                          	if (k <= 2e-191) {
                                                                                          		tmp = l * (l / (k * (t_m * (t_m * (t_m * k)))));
                                                                                          	} 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):
                                                                                          	tmp = 0
                                                                                          	if k <= 2e-191:
                                                                                          		tmp = l * (l / (k * (t_m * (t_m * (t_m * k)))))
                                                                                          	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)
                                                                                          	tmp = 0.0
                                                                                          	if (k <= 2e-191)
                                                                                          		tmp = Float64(l * Float64(l / Float64(k * Float64(t_m * Float64(t_m * Float64(t_m * k))))));
                                                                                          	else
                                                                                          		tmp = Float64(l * Float64(l / Float64(Float64(k * Float64(t_m * k)) * Float64(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 <= 2e-191)
                                                                                          		tmp = l * (l / (k * (t_m * (t_m * (t_m * k)))));
                                                                                          	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_] := N[(t$95$s * If[LessEqual[k, 2e-191], N[(l * N[(l / N[(k * N[(t$95$m * N[(t$95$m * N[(t$95$m * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(l * N[(l / N[(N[(k * N[(t$95$m * k), $MachinePrecision]), $MachinePrecision] * N[(t$95$m * t$95$m), $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 \cdot 10^{-191}:\\
                                                                                          \;\;\;\;\ell \cdot \frac{\ell}{k \cdot \left(t\_m \cdot \left(t\_m \cdot \left(t\_m \cdot k\right)\right)\right)}\\
                                                                                          
                                                                                          \mathbf{else}:\\
                                                                                          \;\;\;\;\ell \cdot \frac{\ell}{\left(k \cdot \left(t\_m \cdot k\right)\right) \cdot \left(t\_m \cdot t\_m\right)}\\
                                                                                          
                                                                                          
                                                                                          \end{array}
                                                                                          \end{array}
                                                                                          
                                                                                          Derivation
                                                                                          1. Split input into 2 regimes
                                                                                          2. if k < 2e-191

                                                                                            1. Initial program 54.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. lower-/.f64N/A

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

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

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

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

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

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

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

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

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

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

                                                                                                \[\leadsto \frac{\ell \cdot \ell}{\left(t \cdot \left(t \cdot t\right)\right) \cdot \color{blue}{\left(k \cdot k\right)}} \]
                                                                                              12. lower-*.f6449.5

                                                                                                \[\leadsto \frac{\ell \cdot \ell}{\left(t \cdot \left(t \cdot t\right)\right) \cdot \color{blue}{\left(k \cdot k\right)}} \]
                                                                                            5. Applied rewrites49.5%

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

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

                                                                                                  \[\leadsto \frac{\ell}{k \cdot \left(t \cdot \left(\left(k \cdot t\right) \cdot t\right)\right)} \cdot \ell \]

                                                                                                if 2e-191 < k

                                                                                                1. Initial program 58.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. lower-/.f64N/A

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

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

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

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

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

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

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

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

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

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

                                                                                                    \[\leadsto \frac{\ell \cdot \ell}{\left(t \cdot \left(t \cdot t\right)\right) \cdot \color{blue}{\left(k \cdot k\right)}} \]
                                                                                                  12. lower-*.f6459.4

                                                                                                    \[\leadsto \frac{\ell \cdot \ell}{\left(t \cdot \left(t \cdot t\right)\right) \cdot \color{blue}{\left(k \cdot k\right)}} \]
                                                                                                5. Applied rewrites59.4%

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

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

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

                                                                                                        \[\leadsto \frac{\ell}{\left(k \cdot \left(k \cdot t\right)\right) \cdot \left(t \cdot t\right)} \cdot \ell \]
                                                                                                    3. Recombined 2 regimes into one program.
                                                                                                    4. Final simplification65.5%

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

                                                                                                    Alternative 18: 65.7% accurate, 12.5× speedup?

                                                                                                    \[\begin{array}{l} t\_m = \left|t\right| \\ t\_s = \mathsf{copysign}\left(1, t\right) \\ t\_s \cdot \left(\ell \cdot \frac{\ell}{t\_m \cdot \left(\left(t\_m \cdot k\right) \cdot \left(t\_m \cdot k\right)\right)}\right) \end{array} \]
                                                                                                    t\_m = (fabs.f64 t)
                                                                                                    t\_s = (copysign.f64 #s(literal 1 binary64) t)
                                                                                                    (FPCore (t_s t_m l k)
                                                                                                     :precision binary64
                                                                                                     (* t_s (* l (/ l (* t_m (* (* t_m 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) {
                                                                                                    	return t_s * (l * (l / (t_m * ((t_m * k) * (t_m * k)))));
                                                                                                    }
                                                                                                    
                                                                                                    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 / (t_m * ((t_m * k) * (t_m * k)))))
                                                                                                    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 / (t_m * ((t_m * k) * (t_m * k)))));
                                                                                                    }
                                                                                                    
                                                                                                    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 / (t_m * ((t_m * k) * (t_m * k)))))
                                                                                                    
                                                                                                    t\_m = abs(t)
                                                                                                    t\_s = copysign(1.0, t)
                                                                                                    function code(t_s, t_m, l, k)
                                                                                                    	return Float64(t_s * Float64(l * Float64(l / Float64(t_m * Float64(Float64(t_m * k) * Float64(t_m * k))))))
                                                                                                    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 / (t_m * ((t_m * k) * (t_m * k)))));
                                                                                                    end
                                                                                                    
                                                                                                    t\_m = N[Abs[t], $MachinePrecision]
                                                                                                    t\_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[t]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
                                                                                                    code[t$95$s_, t$95$m_, l_, k_] := N[(t$95$s * N[(l * N[(l / N[(t$95$m * N[(N[(t$95$m * k), $MachinePrecision] * N[(t$95$m * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
                                                                                                    
                                                                                                    \begin{array}{l}
                                                                                                    t\_m = \left|t\right|
                                                                                                    \\
                                                                                                    t\_s = \mathsf{copysign}\left(1, t\right)
                                                                                                    
                                                                                                    \\
                                                                                                    t\_s \cdot \left(\ell \cdot \frac{\ell}{t\_m \cdot \left(\left(t\_m \cdot k\right) \cdot \left(t\_m \cdot k\right)\right)}\right)
                                                                                                    \end{array}
                                                                                                    
                                                                                                    Derivation
                                                                                                    1. Initial program 56.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. lower-/.f64N/A

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

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

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

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

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

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

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

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

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

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

                                                                                                        \[\leadsto \frac{\ell \cdot \ell}{\left(t \cdot \left(t \cdot t\right)\right) \cdot \color{blue}{\left(k \cdot k\right)}} \]
                                                                                                      12. lower-*.f6453.6

                                                                                                        \[\leadsto \frac{\ell \cdot \ell}{\left(t \cdot \left(t \cdot t\right)\right) \cdot \color{blue}{\left(k \cdot k\right)}} \]
                                                                                                    5. Applied rewrites53.6%

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

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

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

                                                                                                            \[\leadsto \frac{\ell}{\left(\left(k \cdot t\right) \cdot \left(k \cdot t\right)\right) \cdot t} \cdot \ell \]
                                                                                                          2. Final simplification68.3%

                                                                                                            \[\leadsto \ell \cdot \frac{\ell}{t \cdot \left(\left(t \cdot k\right) \cdot \left(t \cdot k\right)\right)} \]
                                                                                                          3. Add Preprocessing

                                                                                                          Alternative 19: 62.2% accurate, 12.5× speedup?

                                                                                                          \[\begin{array}{l} t\_m = \left|t\right| \\ t\_s = \mathsf{copysign}\left(1, t\right) \\ t\_s \cdot \left(\ell \cdot \frac{\ell}{t\_m \cdot \left(k \cdot \left(k \cdot \left(t\_m \cdot t\_m\right)\right)\right)}\right) \end{array} \]
                                                                                                          t\_m = (fabs.f64 t)
                                                                                                          t\_s = (copysign.f64 #s(literal 1 binary64) t)
                                                                                                          (FPCore (t_s t_m l k)
                                                                                                           :precision binary64
                                                                                                           (* t_s (* l (/ l (* t_m (* k (* 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 / (t_m * (k * (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 / (t_m * (k * (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 / (t_m * (k * (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 / (t_m * (k * (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(l * Float64(l / Float64(t_m * Float64(k * Float64(k * 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 / (t_m * (k * (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[(l * N[(l / N[(t$95$m * N[(k * N[(k * N[(t$95$m * t$95$m), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
                                                                                                          
                                                                                                          \begin{array}{l}
                                                                                                          t\_m = \left|t\right|
                                                                                                          \\
                                                                                                          t\_s = \mathsf{copysign}\left(1, t\right)
                                                                                                          
                                                                                                          \\
                                                                                                          t\_s \cdot \left(\ell \cdot \frac{\ell}{t\_m \cdot \left(k \cdot \left(k \cdot \left(t\_m \cdot t\_m\right)\right)\right)}\right)
                                                                                                          \end{array}
                                                                                                          
                                                                                                          Derivation
                                                                                                          1. Initial program 56.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. lower-/.f64N/A

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

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

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

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

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

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

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

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

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

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

                                                                                                              \[\leadsto \frac{\ell \cdot \ell}{\left(t \cdot \left(t \cdot t\right)\right) \cdot \color{blue}{\left(k \cdot k\right)}} \]
                                                                                                            12. lower-*.f6453.6

                                                                                                              \[\leadsto \frac{\ell \cdot \ell}{\left(t \cdot \left(t \cdot t\right)\right) \cdot \color{blue}{\left(k \cdot k\right)}} \]
                                                                                                          5. Applied rewrites53.6%

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

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

                                                                                                                \[\leadsto \frac{\ell}{\left(k \cdot \left(k \cdot \left(t \cdot t\right)\right)\right) \cdot t} \cdot \ell \]
                                                                                                              2. Final simplification65.3%

                                                                                                                \[\leadsto \ell \cdot \frac{\ell}{t \cdot \left(k \cdot \left(k \cdot \left(t \cdot t\right)\right)\right)} \]
                                                                                                              3. Add Preprocessing

                                                                                                              Alternative 20: 63.3% accurate, 12.5× speedup?

                                                                                                              \[\begin{array}{l} t\_m = \left|t\right| \\ t\_s = \mathsf{copysign}\left(1, t\right) \\ t\_s \cdot \left(\ell \cdot \frac{\ell}{k \cdot \left(t\_m \cdot \left(t\_m \cdot \left(t\_m \cdot k\right)\right)\right)}\right) \end{array} \]
                                                                                                              t\_m = (fabs.f64 t)
                                                                                                              t\_s = (copysign.f64 #s(literal 1 binary64) t)
                                                                                                              (FPCore (t_s t_m l k)
                                                                                                               :precision binary64
                                                                                                               (* t_s (* l (/ l (* k (* t_m (* t_m (* 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) {
                                                                                                              	return t_s * (l * (l / (k * (t_m * (t_m * (t_m * k))))));
                                                                                                              }
                                                                                                              
                                                                                                              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 * (t_m * (t_m * k))))))
                                                                                                              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 * (t_m * (t_m * k))))));
                                                                                                              }
                                                                                                              
                                                                                                              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 * (t_m * (t_m * k))))))
                                                                                                              
                                                                                                              t\_m = abs(t)
                                                                                                              t\_s = copysign(1.0, t)
                                                                                                              function code(t_s, t_m, l, k)
                                                                                                              	return Float64(t_s * Float64(l * Float64(l / Float64(k * Float64(t_m * Float64(t_m * Float64(t_m * k)))))))
                                                                                                              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 * (t_m * (t_m * k))))));
                                                                                                              end
                                                                                                              
                                                                                                              t\_m = N[Abs[t], $MachinePrecision]
                                                                                                              t\_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[t]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
                                                                                                              code[t$95$s_, t$95$m_, l_, k_] := N[(t$95$s * N[(l * N[(l / N[(k * N[(t$95$m * N[(t$95$m * N[(t$95$m * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
                                                                                                              
                                                                                                              \begin{array}{l}
                                                                                                              t\_m = \left|t\right|
                                                                                                              \\
                                                                                                              t\_s = \mathsf{copysign}\left(1, t\right)
                                                                                                              
                                                                                                              \\
                                                                                                              t\_s \cdot \left(\ell \cdot \frac{\ell}{k \cdot \left(t\_m \cdot \left(t\_m \cdot \left(t\_m \cdot k\right)\right)\right)}\right)
                                                                                                              \end{array}
                                                                                                              
                                                                                                              Derivation
                                                                                                              1. Initial program 56.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. lower-/.f64N/A

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

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

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

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

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

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

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

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

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

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

                                                                                                                  \[\leadsto \frac{\ell \cdot \ell}{\left(t \cdot \left(t \cdot t\right)\right) \cdot \color{blue}{\left(k \cdot k\right)}} \]
                                                                                                                12. lower-*.f6453.6

                                                                                                                  \[\leadsto \frac{\ell \cdot \ell}{\left(t \cdot \left(t \cdot t\right)\right) \cdot \color{blue}{\left(k \cdot k\right)}} \]
                                                                                                              5. Applied rewrites53.6%

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

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

                                                                                                                    \[\leadsto \frac{\ell}{k \cdot \left(t \cdot \left(\left(k \cdot t\right) \cdot t\right)\right)} \cdot \ell \]
                                                                                                                  2. Final simplification64.1%

                                                                                                                    \[\leadsto \ell \cdot \frac{\ell}{k \cdot \left(t \cdot \left(t \cdot \left(t \cdot k\right)\right)\right)} \]
                                                                                                                  3. Add Preprocessing

                                                                                                                  Reproduce

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