Toniolo and Linder, Equation (10+)

Percentage Accurate: 54.9% → 90.8%
Time: 12.8s
Alternatives: 20
Speedup: 9.4×

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: 54.9% 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: 90.8% accurate, 0.9× speedup?

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

\\
t\_s \cdot \begin{array}{l}
\mathbf{if}\;t\_m \leq 17:\\
\;\;\;\;\frac{2}{\left(\left(\frac{{\sin k}^{2}}{\ell} \cdot k\right) \cdot \mathsf{fma}\left(\frac{\frac{{t\_m}^{3}}{k}}{k}, 2, t\_m\right)\right) \cdot \frac{k}{\cos k \cdot \ell}}\\

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


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

    1. Initial program 46.0%

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

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

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

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

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

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

      \[\leadsto \frac{2}{\color{blue}{\left(\left(\frac{\frac{{\sin k}^{2}}{\ell}}{\ell \cdot \cos k} \cdot \mathsf{fma}\left(2, \frac{\frac{{t}^{3}}{k}}{k}, t\right)\right) \cdot k\right) \cdot k}} \]
    6. Step-by-step derivation
      1. Applied rewrites80.0%

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

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

        if 17 < t

        1. Initial program 74.9%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      Alternative 2: 80.7% accurate, 1.1× speedup?

      \[\begin{array}{l} t\_m = \left|t\right| \\ t\_s = \mathsf{copysign}\left(1, t\right) \\ t\_s \cdot \begin{array}{l} \mathbf{if}\;k \leq 3.65 \cdot 10^{-9}:\\ \;\;\;\;\frac{2}{{\left(\left({t\_m}^{0.75} \cdot \frac{{t\_m}^{0.75}}{\ell}\right) \cdot k\right)}^{2} \cdot 2}\\ \mathbf{else}:\\ \;\;\;\;\frac{2}{\left(\left(\left(\frac{0.5}{\ell} - \frac{0.5 \cdot \cos \left(k + k\right)}{\ell}\right) \cdot k\right) \cdot \mathsf{fma}\left(\frac{\frac{{t\_m}^{3}}{k}}{k}, 2, t\_m\right)\right) \cdot \frac{k}{\cos k \cdot \ell}}\\ \end{array} \end{array} \]
      t\_m = (fabs.f64 t)
      t\_s = (copysign.f64 #s(literal 1 binary64) t)
      (FPCore (t_s t_m l k)
       :precision binary64
       (*
        t_s
        (if (<= k 3.65e-9)
          (/ 2.0 (* (pow (* (* (pow t_m 0.75) (/ (pow t_m 0.75) l)) k) 2.0) 2.0))
          (/
           2.0
           (*
            (*
             (* (- (/ 0.5 l) (/ (* 0.5 (cos (+ k k))) l)) k)
             (fma (/ (/ (pow t_m 3.0) k) k) 2.0 t_m))
            (/ k (* (cos 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 (k <= 3.65e-9) {
      		tmp = 2.0 / (pow(((pow(t_m, 0.75) * (pow(t_m, 0.75) / l)) * k), 2.0) * 2.0);
      	} else {
      		tmp = 2.0 / (((((0.5 / l) - ((0.5 * cos((k + k))) / l)) * k) * fma(((pow(t_m, 3.0) / k) / k), 2.0, t_m)) * (k / (cos(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 (k <= 3.65e-9)
      		tmp = Float64(2.0 / Float64((Float64(Float64((t_m ^ 0.75) * Float64((t_m ^ 0.75) / l)) * k) ^ 2.0) * 2.0));
      	else
      		tmp = Float64(2.0 / Float64(Float64(Float64(Float64(Float64(0.5 / l) - Float64(Float64(0.5 * cos(Float64(k + k))) / l)) * k) * fma(Float64(Float64((t_m ^ 3.0) / k) / k), 2.0, t_m)) * Float64(k / Float64(cos(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[k, 3.65e-9], N[(2.0 / N[(N[Power[N[(N[(N[Power[t$95$m, 0.75], $MachinePrecision] * N[(N[Power[t$95$m, 0.75], $MachinePrecision] / l), $MachinePrecision]), $MachinePrecision] * k), $MachinePrecision], 2.0], $MachinePrecision] * 2.0), $MachinePrecision]), $MachinePrecision], N[(2.0 / N[(N[(N[(N[(N[(0.5 / l), $MachinePrecision] - N[(N[(0.5 * N[Cos[N[(k + k), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / l), $MachinePrecision]), $MachinePrecision] * k), $MachinePrecision] * N[(N[(N[(N[Power[t$95$m, 3.0], $MachinePrecision] / k), $MachinePrecision] / k), $MachinePrecision] * 2.0 + t$95$m), $MachinePrecision]), $MachinePrecision] * N[(k / N[(N[Cos[k], $MachinePrecision] * l), $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 3.65 \cdot 10^{-9}:\\
      \;\;\;\;\frac{2}{{\left(\left({t\_m}^{0.75} \cdot \frac{{t\_m}^{0.75}}{\ell}\right) \cdot k\right)}^{2} \cdot 2}\\
      
      \mathbf{else}:\\
      \;\;\;\;\frac{2}{\left(\left(\left(\frac{0.5}{\ell} - \frac{0.5 \cdot \cos \left(k + k\right)}{\ell}\right) \cdot k\right) \cdot \mathsf{fma}\left(\frac{\frac{{t\_m}^{3}}{k}}{k}, 2, t\_m\right)\right) \cdot \frac{k}{\cos k \cdot \ell}}\\
      
      
      \end{array}
      \end{array}
      
      Derivation
      1. Split input into 2 regimes
      2. if k < 3.65000000000000001e-9

        1. Initial program 55.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}{2 \cdot \frac{{k}^{2} \cdot {t}^{3}}{{\ell}^{2}}}} \]
        4. Step-by-step derivation
          1. *-commutativeN/A

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

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

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

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

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

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

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

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

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

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

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

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

            \[\leadsto \frac{2}{\left(\left(k \cdot k\right) \cdot 2\right) \cdot \frac{\color{blue}{\frac{{t}^{3}}{\ell}}}{\ell}} \]
          14. lower-pow.f6454.6

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

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

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

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

            if 3.65000000000000001e-9 < k

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

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

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

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

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

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

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

                \[\leadsto \frac{2}{\frac{\frac{{\sin k}^{2}}{\ell} \cdot \left(\mathsf{fma}\left(\frac{\frac{{t}^{3}}{k}}{k}, 2, t\right) \cdot k\right)}{\cos k \cdot \ell} \cdot k} \]
              2. Step-by-step derivation
                1. Applied rewrites96.1%

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

                    \[\leadsto \frac{2}{\left(\left(\left(\frac{0.5}{\ell} - \frac{0.5 \cdot \cos \left(k + k\right)}{\ell}\right) \cdot k\right) \cdot \mathsf{fma}\left(\frac{\frac{{t}^{3}}{k}}{k}, 2, t\right)\right) \cdot \frac{k}{\cos k \cdot \ell}} \]
                3. Recombined 2 regimes into one program.
                4. Add Preprocessing

                Alternative 3: 79.9% accurate, 1.3× speedup?

                \[\begin{array}{l} t\_m = \left|t\right| \\ t\_s = \mathsf{copysign}\left(1, t\right) \\ t\_s \cdot \begin{array}{l} \mathbf{if}\;k \leq 1.95 \cdot 10^{-11}:\\ \;\;\;\;\frac{2}{{\left(\left({t\_m}^{0.75} \cdot \frac{{t\_m}^{0.75}}{\ell}\right) \cdot k\right)}^{2} \cdot 2}\\ \mathbf{else}:\\ \;\;\;\;\frac{\ell}{k} \cdot {\left(\frac{\left(k \cdot \tan k\right) \cdot \left(\sin k \cdot t\_m\right)}{\ell \cdot 2}\right)}^{-1}\\ \end{array} \end{array} \]
                t\_m = (fabs.f64 t)
                t\_s = (copysign.f64 #s(literal 1 binary64) t)
                (FPCore (t_s t_m l k)
                 :precision binary64
                 (*
                  t_s
                  (if (<= k 1.95e-11)
                    (/ 2.0 (* (pow (* (* (pow t_m 0.75) (/ (pow t_m 0.75) l)) k) 2.0) 2.0))
                    (* (/ l k) (pow (/ (* (* k (tan k)) (* (sin k) t_m)) (* l 2.0)) -1.0)))))
                t\_m = fabs(t);
                t\_s = copysign(1.0, t);
                double code(double t_s, double t_m, double l, double k) {
                	double tmp;
                	if (k <= 1.95e-11) {
                		tmp = 2.0 / (pow(((pow(t_m, 0.75) * (pow(t_m, 0.75) / l)) * k), 2.0) * 2.0);
                	} else {
                		tmp = (l / k) * pow((((k * tan(k)) * (sin(k) * t_m)) / (l * 2.0)), -1.0);
                	}
                	return t_s * tmp;
                }
                
                t\_m = abs(t)
                t\_s = copysign(1.0d0, t)
                real(8) function code(t_s, t_m, l, k)
                    real(8), intent (in) :: t_s
                    real(8), intent (in) :: t_m
                    real(8), intent (in) :: l
                    real(8), intent (in) :: k
                    real(8) :: tmp
                    if (k <= 1.95d-11) then
                        tmp = 2.0d0 / (((((t_m ** 0.75d0) * ((t_m ** 0.75d0) / l)) * k) ** 2.0d0) * 2.0d0)
                    else
                        tmp = (l / k) * ((((k * tan(k)) * (sin(k) * t_m)) / (l * 2.0d0)) ** (-1.0d0))
                    end if
                    code = t_s * tmp
                end function
                
                t\_m = Math.abs(t);
                t\_s = Math.copySign(1.0, t);
                public static double code(double t_s, double t_m, double l, double k) {
                	double tmp;
                	if (k <= 1.95e-11) {
                		tmp = 2.0 / (Math.pow(((Math.pow(t_m, 0.75) * (Math.pow(t_m, 0.75) / l)) * k), 2.0) * 2.0);
                	} else {
                		tmp = (l / k) * Math.pow((((k * Math.tan(k)) * (Math.sin(k) * t_m)) / (l * 2.0)), -1.0);
                	}
                	return t_s * tmp;
                }
                
                t\_m = math.fabs(t)
                t\_s = math.copysign(1.0, t)
                def code(t_s, t_m, l, k):
                	tmp = 0
                	if k <= 1.95e-11:
                		tmp = 2.0 / (math.pow(((math.pow(t_m, 0.75) * (math.pow(t_m, 0.75) / l)) * k), 2.0) * 2.0)
                	else:
                		tmp = (l / k) * math.pow((((k * math.tan(k)) * (math.sin(k) * t_m)) / (l * 2.0)), -1.0)
                	return t_s * tmp
                
                t\_m = abs(t)
                t\_s = copysign(1.0, t)
                function code(t_s, t_m, l, k)
                	tmp = 0.0
                	if (k <= 1.95e-11)
                		tmp = Float64(2.0 / Float64((Float64(Float64((t_m ^ 0.75) * Float64((t_m ^ 0.75) / l)) * k) ^ 2.0) * 2.0));
                	else
                		tmp = Float64(Float64(l / k) * (Float64(Float64(Float64(k * tan(k)) * Float64(sin(k) * t_m)) / Float64(l * 2.0)) ^ -1.0));
                	end
                	return Float64(t_s * tmp)
                end
                
                t\_m = abs(t);
                t\_s = sign(t) * abs(1.0);
                function tmp_2 = code(t_s, t_m, l, k)
                	tmp = 0.0;
                	if (k <= 1.95e-11)
                		tmp = 2.0 / (((((t_m ^ 0.75) * ((t_m ^ 0.75) / l)) * k) ^ 2.0) * 2.0);
                	else
                		tmp = (l / k) * ((((k * tan(k)) * (sin(k) * t_m)) / (l * 2.0)) ^ -1.0);
                	end
                	tmp_2 = t_s * tmp;
                end
                
                t\_m = N[Abs[t], $MachinePrecision]
                t\_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[t]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
                code[t$95$s_, t$95$m_, l_, k_] := N[(t$95$s * If[LessEqual[k, 1.95e-11], N[(2.0 / N[(N[Power[N[(N[(N[Power[t$95$m, 0.75], $MachinePrecision] * N[(N[Power[t$95$m, 0.75], $MachinePrecision] / l), $MachinePrecision]), $MachinePrecision] * k), $MachinePrecision], 2.0], $MachinePrecision] * 2.0), $MachinePrecision]), $MachinePrecision], N[(N[(l / k), $MachinePrecision] * N[Power[N[(N[(N[(k * N[Tan[k], $MachinePrecision]), $MachinePrecision] * N[(N[Sin[k], $MachinePrecision] * t$95$m), $MachinePrecision]), $MachinePrecision] / N[(l * 2.0), $MachinePrecision]), $MachinePrecision], -1.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}\;k \leq 1.95 \cdot 10^{-11}:\\
                \;\;\;\;\frac{2}{{\left(\left({t\_m}^{0.75} \cdot \frac{{t\_m}^{0.75}}{\ell}\right) \cdot k\right)}^{2} \cdot 2}\\
                
                \mathbf{else}:\\
                \;\;\;\;\frac{\ell}{k} \cdot {\left(\frac{\left(k \cdot \tan k\right) \cdot \left(\sin k \cdot t\_m\right)}{\ell \cdot 2}\right)}^{-1}\\
                
                
                \end{array}
                \end{array}
                
                Derivation
                1. Split input into 2 regimes
                2. if k < 1.95000000000000005e-11

                  1. Initial program 56.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 \frac{2}{\color{blue}{2 \cdot \frac{{k}^{2} \cdot {t}^{3}}{{\ell}^{2}}}} \]
                  4. Step-by-step derivation
                    1. *-commutativeN/A

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

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

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

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

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

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

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

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

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

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

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

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

                      \[\leadsto \frac{2}{\left(\left(k \cdot k\right) \cdot 2\right) \cdot \frac{\color{blue}{\frac{{t}^{3}}{\ell}}}{\ell}} \]
                    14. lower-pow.f6454.7

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

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

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

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

                      if 1.95000000000000005e-11 < k

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

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

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

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

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

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

                        \[\leadsto \frac{2}{\color{blue}{\left(\left(\frac{\frac{{\sin k}^{2}}{\ell}}{\ell \cdot \cos k} \cdot \mathsf{fma}\left(2, \frac{\frac{{t}^{3}}{k}}{k}, t\right)\right) \cdot k\right) \cdot k}} \]
                      6. 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)}} \]
                      7. 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. *-commutativeN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                        Alternative 4: 79.9% accurate, 1.3× speedup?

                        \[\begin{array}{l} t\_m = \left|t\right| \\ t\_s = \mathsf{copysign}\left(1, t\right) \\ t\_s \cdot \begin{array}{l} \mathbf{if}\;k \leq 1.95 \cdot 10^{-11}:\\ \;\;\;\;\frac{2}{{\left(\left({t\_m}^{0.75} \cdot \frac{{t\_m}^{0.75}}{\ell}\right) \cdot k\right)}^{2} \cdot 2}\\ \mathbf{else}:\\ \;\;\;\;\frac{\ell \cdot 2}{k} \cdot \frac{\ell}{\left(k \cdot \tan k\right) \cdot \left(\sin k \cdot t\_m\right)}\\ \end{array} \end{array} \]
                        t\_m = (fabs.f64 t)
                        t\_s = (copysign.f64 #s(literal 1 binary64) t)
                        (FPCore (t_s t_m l k)
                         :precision binary64
                         (*
                          t_s
                          (if (<= k 1.95e-11)
                            (/ 2.0 (* (pow (* (* (pow t_m 0.75) (/ (pow t_m 0.75) l)) k) 2.0) 2.0))
                            (* (/ (* l 2.0) k) (/ l (* (* k (tan k)) (* (sin k) t_m)))))))
                        t\_m = fabs(t);
                        t\_s = copysign(1.0, t);
                        double code(double t_s, double t_m, double l, double k) {
                        	double tmp;
                        	if (k <= 1.95e-11) {
                        		tmp = 2.0 / (pow(((pow(t_m, 0.75) * (pow(t_m, 0.75) / l)) * k), 2.0) * 2.0);
                        	} else {
                        		tmp = ((l * 2.0) / k) * (l / ((k * tan(k)) * (sin(k) * t_m)));
                        	}
                        	return t_s * tmp;
                        }
                        
                        t\_m = abs(t)
                        t\_s = copysign(1.0d0, t)
                        real(8) function code(t_s, t_m, l, k)
                            real(8), intent (in) :: t_s
                            real(8), intent (in) :: t_m
                            real(8), intent (in) :: l
                            real(8), intent (in) :: k
                            real(8) :: tmp
                            if (k <= 1.95d-11) then
                                tmp = 2.0d0 / (((((t_m ** 0.75d0) * ((t_m ** 0.75d0) / l)) * k) ** 2.0d0) * 2.0d0)
                            else
                                tmp = ((l * 2.0d0) / k) * (l / ((k * tan(k)) * (sin(k) * t_m)))
                            end if
                            code = t_s * tmp
                        end function
                        
                        t\_m = Math.abs(t);
                        t\_s = Math.copySign(1.0, t);
                        public static double code(double t_s, double t_m, double l, double k) {
                        	double tmp;
                        	if (k <= 1.95e-11) {
                        		tmp = 2.0 / (Math.pow(((Math.pow(t_m, 0.75) * (Math.pow(t_m, 0.75) / l)) * k), 2.0) * 2.0);
                        	} else {
                        		tmp = ((l * 2.0) / k) * (l / ((k * Math.tan(k)) * (Math.sin(k) * t_m)));
                        	}
                        	return t_s * tmp;
                        }
                        
                        t\_m = math.fabs(t)
                        t\_s = math.copysign(1.0, t)
                        def code(t_s, t_m, l, k):
                        	tmp = 0
                        	if k <= 1.95e-11:
                        		tmp = 2.0 / (math.pow(((math.pow(t_m, 0.75) * (math.pow(t_m, 0.75) / l)) * k), 2.0) * 2.0)
                        	else:
                        		tmp = ((l * 2.0) / k) * (l / ((k * math.tan(k)) * (math.sin(k) * t_m)))
                        	return t_s * tmp
                        
                        t\_m = abs(t)
                        t\_s = copysign(1.0, t)
                        function code(t_s, t_m, l, k)
                        	tmp = 0.0
                        	if (k <= 1.95e-11)
                        		tmp = Float64(2.0 / Float64((Float64(Float64((t_m ^ 0.75) * Float64((t_m ^ 0.75) / l)) * k) ^ 2.0) * 2.0));
                        	else
                        		tmp = Float64(Float64(Float64(l * 2.0) / k) * Float64(l / Float64(Float64(k * tan(k)) * Float64(sin(k) * t_m))));
                        	end
                        	return Float64(t_s * tmp)
                        end
                        
                        t\_m = abs(t);
                        t\_s = sign(t) * abs(1.0);
                        function tmp_2 = code(t_s, t_m, l, k)
                        	tmp = 0.0;
                        	if (k <= 1.95e-11)
                        		tmp = 2.0 / (((((t_m ^ 0.75) * ((t_m ^ 0.75) / l)) * k) ^ 2.0) * 2.0);
                        	else
                        		tmp = ((l * 2.0) / k) * (l / ((k * tan(k)) * (sin(k) * t_m)));
                        	end
                        	tmp_2 = t_s * tmp;
                        end
                        
                        t\_m = N[Abs[t], $MachinePrecision]
                        t\_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[t]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
                        code[t$95$s_, t$95$m_, l_, k_] := N[(t$95$s * If[LessEqual[k, 1.95e-11], N[(2.0 / N[(N[Power[N[(N[(N[Power[t$95$m, 0.75], $MachinePrecision] * N[(N[Power[t$95$m, 0.75], $MachinePrecision] / l), $MachinePrecision]), $MachinePrecision] * k), $MachinePrecision], 2.0], $MachinePrecision] * 2.0), $MachinePrecision]), $MachinePrecision], N[(N[(N[(l * 2.0), $MachinePrecision] / k), $MachinePrecision] * N[(l / N[(N[(k * N[Tan[k], $MachinePrecision]), $MachinePrecision] * N[(N[Sin[k], $MachinePrecision] * 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 1.95 \cdot 10^{-11}:\\
                        \;\;\;\;\frac{2}{{\left(\left({t\_m}^{0.75} \cdot \frac{{t\_m}^{0.75}}{\ell}\right) \cdot k\right)}^{2} \cdot 2}\\
                        
                        \mathbf{else}:\\
                        \;\;\;\;\frac{\ell \cdot 2}{k} \cdot \frac{\ell}{\left(k \cdot \tan k\right) \cdot \left(\sin k \cdot t\_m\right)}\\
                        
                        
                        \end{array}
                        \end{array}
                        
                        Derivation
                        1. Split input into 2 regimes
                        2. if k < 1.95000000000000005e-11

                          1. Initial program 56.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 \frac{2}{\color{blue}{2 \cdot \frac{{k}^{2} \cdot {t}^{3}}{{\ell}^{2}}}} \]
                          4. Step-by-step derivation
                            1. *-commutativeN/A

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

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

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

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

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

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

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

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

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

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

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

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

                              \[\leadsto \frac{2}{\left(\left(k \cdot k\right) \cdot 2\right) \cdot \frac{\color{blue}{\frac{{t}^{3}}{\ell}}}{\ell}} \]
                            14. lower-pow.f6454.7

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

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

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

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

                              if 1.95000000000000005e-11 < k

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

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

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

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

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

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

                                \[\leadsto \frac{2}{\color{blue}{\left(\left(\frac{\frac{{\sin k}^{2}}{\ell}}{\ell \cdot \cos k} \cdot \mathsf{fma}\left(2, \frac{\frac{{t}^{3}}{k}}{k}, t\right)\right) \cdot k\right) \cdot k}} \]
                              6. 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)}} \]
                              7. 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. *-commutativeN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                Alternative 5: 75.2% accurate, 1.8× speedup?

                                \[\begin{array}{l} t\_m = \left|t\right| \\ t\_s = \mathsf{copysign}\left(1, t\right) \\ t\_s \cdot \begin{array}{l} \mathbf{if}\;k \leq 4 \cdot 10^{-115}:\\ \;\;\;\;\frac{2}{{\left(\frac{{t\_m}^{1.5} \cdot k}{\ell}\right)}^{2} \cdot 2}\\ \mathbf{elif}\;k \leq 4.5 \cdot 10^{-6}:\\ \;\;\;\;\frac{2}{t\_m \cdot \left(\mathsf{fma}\left(\frac{\mathsf{fma}\left(0.3333333333333333, t\_m \cdot t\_m, 1\right)}{\ell}, \frac{k \cdot k}{\ell}, \frac{2}{\ell} \cdot \frac{t\_m \cdot t\_m}{\ell}\right) \cdot \left(k \cdot k\right)\right)}\\ \mathbf{elif}\;k \leq 4.5 \cdot 10^{+155}:\\ \;\;\;\;\left(\ell \cdot 2\right) \cdot \frac{\ell}{\left(\left(t\_m \cdot \tan k\right) \cdot \sin k\right) \cdot \left(k \cdot k\right)}\\ \mathbf{else}:\\ \;\;\;\;\frac{\left(\ell \cdot \ell\right) \cdot 2}{\left(\left(k \cdot \tan k\right) \cdot \left(\sin k \cdot t\_m\right)\right) \cdot k}\\ \end{array} \end{array} \]
                                t\_m = (fabs.f64 t)
                                t\_s = (copysign.f64 #s(literal 1 binary64) t)
                                (FPCore (t_s t_m l k)
                                 :precision binary64
                                 (*
                                  t_s
                                  (if (<= k 4e-115)
                                    (/ 2.0 (* (pow (/ (* (pow t_m 1.5) k) l) 2.0) 2.0))
                                    (if (<= k 4.5e-6)
                                      (/
                                       2.0
                                       (*
                                        t_m
                                        (*
                                         (fma
                                          (/ (fma 0.3333333333333333 (* t_m t_m) 1.0) l)
                                          (/ (* k k) l)
                                          (* (/ 2.0 l) (/ (* t_m t_m) l)))
                                         (* k k))))
                                      (if (<= k 4.5e+155)
                                        (* (* l 2.0) (/ l (* (* (* t_m (tan k)) (sin k)) (* k k))))
                                        (/ (* (* l l) 2.0) (* (* (* k (tan k)) (* (sin k) t_m)) k)))))))
                                t\_m = fabs(t);
                                t\_s = copysign(1.0, t);
                                double code(double t_s, double t_m, double l, double k) {
                                	double tmp;
                                	if (k <= 4e-115) {
                                		tmp = 2.0 / (pow(((pow(t_m, 1.5) * k) / l), 2.0) * 2.0);
                                	} else if (k <= 4.5e-6) {
                                		tmp = 2.0 / (t_m * (fma((fma(0.3333333333333333, (t_m * t_m), 1.0) / l), ((k * k) / l), ((2.0 / l) * ((t_m * t_m) / l))) * (k * k)));
                                	} else if (k <= 4.5e+155) {
                                		tmp = (l * 2.0) * (l / (((t_m * tan(k)) * sin(k)) * (k * k)));
                                	} else {
                                		tmp = ((l * l) * 2.0) / (((k * tan(k)) * (sin(k) * t_m)) * k);
                                	}
                                	return t_s * tmp;
                                }
                                
                                t\_m = abs(t)
                                t\_s = copysign(1.0, t)
                                function code(t_s, t_m, l, k)
                                	tmp = 0.0
                                	if (k <= 4e-115)
                                		tmp = Float64(2.0 / Float64((Float64(Float64((t_m ^ 1.5) * k) / l) ^ 2.0) * 2.0));
                                	elseif (k <= 4.5e-6)
                                		tmp = Float64(2.0 / Float64(t_m * Float64(fma(Float64(fma(0.3333333333333333, Float64(t_m * t_m), 1.0) / l), Float64(Float64(k * k) / l), Float64(Float64(2.0 / l) * Float64(Float64(t_m * t_m) / l))) * Float64(k * k))));
                                	elseif (k <= 4.5e+155)
                                		tmp = Float64(Float64(l * 2.0) * Float64(l / Float64(Float64(Float64(t_m * tan(k)) * sin(k)) * Float64(k * k))));
                                	else
                                		tmp = Float64(Float64(Float64(l * l) * 2.0) / Float64(Float64(Float64(k * tan(k)) * Float64(sin(k) * t_m)) * k));
                                	end
                                	return Float64(t_s * tmp)
                                end
                                
                                t\_m = N[Abs[t], $MachinePrecision]
                                t\_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[t]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
                                code[t$95$s_, t$95$m_, l_, k_] := N[(t$95$s * If[LessEqual[k, 4e-115], N[(2.0 / N[(N[Power[N[(N[(N[Power[t$95$m, 1.5], $MachinePrecision] * k), $MachinePrecision] / l), $MachinePrecision], 2.0], $MachinePrecision] * 2.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, 4.5e-6], N[(2.0 / N[(t$95$m * N[(N[(N[(N[(0.3333333333333333 * N[(t$95$m * t$95$m), $MachinePrecision] + 1.0), $MachinePrecision] / l), $MachinePrecision] * N[(N[(k * k), $MachinePrecision] / l), $MachinePrecision] + N[(N[(2.0 / l), $MachinePrecision] * N[(N[(t$95$m * t$95$m), $MachinePrecision] / l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(k * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, 4.5e+155], N[(N[(l * 2.0), $MachinePrecision] * N[(l / N[(N[(N[(t$95$m * N[Tan[k], $MachinePrecision]), $MachinePrecision] * N[Sin[k], $MachinePrecision]), $MachinePrecision] * N[(k * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[(l * l), $MachinePrecision] * 2.0), $MachinePrecision] / N[(N[(N[(k * N[Tan[k], $MachinePrecision]), $MachinePrecision] * N[(N[Sin[k], $MachinePrecision] * t$95$m), $MachinePrecision]), $MachinePrecision] * k), $MachinePrecision]), $MachinePrecision]]]]), $MachinePrecision]
                                
                                \begin{array}{l}
                                t\_m = \left|t\right|
                                \\
                                t\_s = \mathsf{copysign}\left(1, t\right)
                                
                                \\
                                t\_s \cdot \begin{array}{l}
                                \mathbf{if}\;k \leq 4 \cdot 10^{-115}:\\
                                \;\;\;\;\frac{2}{{\left(\frac{{t\_m}^{1.5} \cdot k}{\ell}\right)}^{2} \cdot 2}\\
                                
                                \mathbf{elif}\;k \leq 4.5 \cdot 10^{-6}:\\
                                \;\;\;\;\frac{2}{t\_m \cdot \left(\mathsf{fma}\left(\frac{\mathsf{fma}\left(0.3333333333333333, t\_m \cdot t\_m, 1\right)}{\ell}, \frac{k \cdot k}{\ell}, \frac{2}{\ell} \cdot \frac{t\_m \cdot t\_m}{\ell}\right) \cdot \left(k \cdot k\right)\right)}\\
                                
                                \mathbf{elif}\;k \leq 4.5 \cdot 10^{+155}:\\
                                \;\;\;\;\left(\ell \cdot 2\right) \cdot \frac{\ell}{\left(\left(t\_m \cdot \tan k\right) \cdot \sin k\right) \cdot \left(k \cdot k\right)}\\
                                
                                \mathbf{else}:\\
                                \;\;\;\;\frac{\left(\ell \cdot \ell\right) \cdot 2}{\left(\left(k \cdot \tan k\right) \cdot \left(\sin k \cdot t\_m\right)\right) \cdot k}\\
                                
                                
                                \end{array}
                                \end{array}
                                
                                Derivation
                                1. Split input into 4 regimes
                                2. if k < 4.0000000000000002e-115

                                  1. Initial program 56.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                      \[\leadsto \frac{2}{\left(\left(k \cdot k\right) \cdot 2\right) \cdot \frac{\color{blue}{\frac{{t}^{3}}{\ell}}}{\ell}} \]
                                    14. lower-pow.f6451.8

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

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

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

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

                                      if 4.0000000000000002e-115 < k < 4.50000000000000011e-6

                                      1. Initial program 50.9%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                      if 4.50000000000000011e-6 < k < 4.49999999999999973e155

                                      1. Initial program 48.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 inf

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

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

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

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

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

                                        \[\leadsto \frac{2}{\color{blue}{\left(\left(\frac{\frac{{\sin k}^{2}}{\ell}}{\ell \cdot \cos k} \cdot \mathsf{fma}\left(2, \frac{\frac{{t}^{3}}{k}}{k}, t\right)\right) \cdot k\right) \cdot k}} \]
                                      6. 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)}} \]
                                      7. 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. *-commutativeN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                          if 4.49999999999999973e155 < k

                                          1. Initial program 36.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 inf

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

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

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

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

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

                                            \[\leadsto \frac{2}{\color{blue}{\left(\left(\frac{\frac{{\sin k}^{2}}{\ell}}{\ell \cdot \cos k} \cdot \mathsf{fma}\left(2, \frac{\frac{{t}^{3}}{k}}{k}, t\right)\right) \cdot k\right) \cdot k}} \]
                                          6. 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)}} \]
                                          7. 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. *-commutativeN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                              \[\leadsto \begin{array}{l} \mathbf{if}\;k \leq 4 \cdot 10^{-115}:\\ \;\;\;\;\frac{2}{{\left(\frac{{t}^{1.5} \cdot k}{\ell}\right)}^{2} \cdot 2}\\ \mathbf{elif}\;k \leq 4.5 \cdot 10^{-6}:\\ \;\;\;\;\frac{2}{t \cdot \left(\mathsf{fma}\left(\frac{\mathsf{fma}\left(0.3333333333333333, t \cdot t, 1\right)}{\ell}, \frac{k \cdot k}{\ell}, \frac{2}{\ell} \cdot \frac{t \cdot t}{\ell}\right) \cdot \left(k \cdot k\right)\right)}\\ \mathbf{elif}\;k \leq 4.5 \cdot 10^{+155}:\\ \;\;\;\;\left(\ell \cdot 2\right) \cdot \frac{\ell}{\left(\left(t \cdot \tan k\right) \cdot \sin k\right) \cdot \left(k \cdot k\right)}\\ \mathbf{else}:\\ \;\;\;\;\frac{\left(\ell \cdot \ell\right) \cdot 2}{\left(\left(k \cdot \tan k\right) \cdot \left(\sin k \cdot t\right)\right) \cdot k}\\ \end{array} \]
                                            5. Add Preprocessing

                                            Alternative 6: 78.2% accurate, 1.8× speedup?

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

                                              1. Initial program 56.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                  \[\leadsto \frac{2}{\left(\left(k \cdot k\right) \cdot 2\right) \cdot \frac{\color{blue}{\frac{{t}^{3}}{\ell}}}{\ell}} \]
                                                14. lower-pow.f6451.8

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

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

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

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

                                                  if 4.0000000000000002e-115 < k < 4.50000000000000011e-6

                                                  1. Initial program 50.9%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                  if 4.50000000000000011e-6 < k

                                                  1. Initial program 43.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 inf

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

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

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

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

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

                                                    \[\leadsto \frac{2}{\color{blue}{\left(\left(\frac{\frac{{\sin k}^{2}}{\ell}}{\ell \cdot \cos k} \cdot \mathsf{fma}\left(2, \frac{\frac{{t}^{3}}{k}}{k}, t\right)\right) \cdot k\right) \cdot k}} \]
                                                  6. 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)}} \]
                                                  7. 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. *-commutativeN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                    Alternative 7: 74.6% accurate, 1.8× speedup?

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

                                                      1. Initial program 56.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                          \[\leadsto \frac{2}{\left(\left(k \cdot k\right) \cdot 2\right) \cdot \frac{\color{blue}{\frac{{t}^{3}}{\ell}}}{\ell}} \]
                                                        14. lower-pow.f6451.8

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

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

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

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

                                                          if 4.0000000000000002e-115 < k < 4.50000000000000011e-6

                                                          1. Initial program 50.9%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                          if 4.50000000000000011e-6 < k

                                                          1. Initial program 43.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 inf

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

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

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

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

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

                                                            \[\leadsto \frac{2}{\color{blue}{\left(\left(\frac{\frac{{\sin k}^{2}}{\ell}}{\ell \cdot \cos k} \cdot \mathsf{fma}\left(2, \frac{\frac{{t}^{3}}{k}}{k}, t\right)\right) \cdot k\right) \cdot k}} \]
                                                          6. 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)}} \]
                                                          7. 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. *-commutativeN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                            Alternative 8: 73.0% accurate, 1.9× speedup?

                                                            \[\begin{array}{l} t\_m = \left|t\right| \\ t\_s = \mathsf{copysign}\left(1, t\right) \\ t\_s \cdot \begin{array}{l} \mathbf{if}\;t\_m \leq 1.02 \cdot 10^{-54}:\\ \;\;\;\;\frac{2}{t\_m \cdot \left(\mathsf{fma}\left(\frac{\mathsf{fma}\left(0.3333333333333333, t\_m \cdot t\_m, 1\right)}{\ell}, \frac{k \cdot k}{\ell}, \frac{2}{\ell} \cdot \frac{t\_m \cdot t\_m}{\ell}\right) \cdot \left(k \cdot k\right)\right)}\\ \mathbf{elif}\;t\_m \leq 1050:\\ \;\;\;\;\frac{2}{\left({t\_m}^{3} \cdot {\left(\frac{k}{\ell}\right)}^{2}\right) \cdot 2}\\ \mathbf{else}:\\ \;\;\;\;\ell \cdot \frac{\ell}{{\left(k \cdot t\_m\right)}^{2} \cdot t\_m}\\ \end{array} \end{array} \]
                                                            t\_m = (fabs.f64 t)
                                                            t\_s = (copysign.f64 #s(literal 1 binary64) t)
                                                            (FPCore (t_s t_m l k)
                                                             :precision binary64
                                                             (*
                                                              t_s
                                                              (if (<= t_m 1.02e-54)
                                                                (/
                                                                 2.0
                                                                 (*
                                                                  t_m
                                                                  (*
                                                                   (fma
                                                                    (/ (fma 0.3333333333333333 (* t_m t_m) 1.0) l)
                                                                    (/ (* k k) l)
                                                                    (* (/ 2.0 l) (/ (* t_m t_m) l)))
                                                                   (* k k))))
                                                                (if (<= t_m 1050.0)
                                                                  (/ 2.0 (* (* (pow t_m 3.0) (pow (/ k l) 2.0)) 2.0))
                                                                  (* l (/ l (* (pow (* k t_m) 2.0) t_m)))))))
                                                            t\_m = fabs(t);
                                                            t\_s = copysign(1.0, t);
                                                            double code(double t_s, double t_m, double l, double k) {
                                                            	double tmp;
                                                            	if (t_m <= 1.02e-54) {
                                                            		tmp = 2.0 / (t_m * (fma((fma(0.3333333333333333, (t_m * t_m), 1.0) / l), ((k * k) / l), ((2.0 / l) * ((t_m * t_m) / l))) * (k * k)));
                                                            	} else if (t_m <= 1050.0) {
                                                            		tmp = 2.0 / ((pow(t_m, 3.0) * pow((k / l), 2.0)) * 2.0);
                                                            	} else {
                                                            		tmp = l * (l / (pow((k * t_m), 2.0) * t_m));
                                                            	}
                                                            	return t_s * tmp;
                                                            }
                                                            
                                                            t\_m = abs(t)
                                                            t\_s = copysign(1.0, t)
                                                            function code(t_s, t_m, l, k)
                                                            	tmp = 0.0
                                                            	if (t_m <= 1.02e-54)
                                                            		tmp = Float64(2.0 / Float64(t_m * Float64(fma(Float64(fma(0.3333333333333333, Float64(t_m * t_m), 1.0) / l), Float64(Float64(k * k) / l), Float64(Float64(2.0 / l) * Float64(Float64(t_m * t_m) / l))) * Float64(k * k))));
                                                            	elseif (t_m <= 1050.0)
                                                            		tmp = Float64(2.0 / Float64(Float64((t_m ^ 3.0) * (Float64(k / l) ^ 2.0)) * 2.0));
                                                            	else
                                                            		tmp = Float64(l * Float64(l / Float64((Float64(k * t_m) ^ 2.0) * t_m)));
                                                            	end
                                                            	return Float64(t_s * tmp)
                                                            end
                                                            
                                                            t\_m = N[Abs[t], $MachinePrecision]
                                                            t\_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[t]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
                                                            code[t$95$s_, t$95$m_, l_, k_] := N[(t$95$s * If[LessEqual[t$95$m, 1.02e-54], N[(2.0 / N[(t$95$m * N[(N[(N[(N[(0.3333333333333333 * N[(t$95$m * t$95$m), $MachinePrecision] + 1.0), $MachinePrecision] / l), $MachinePrecision] * N[(N[(k * k), $MachinePrecision] / l), $MachinePrecision] + N[(N[(2.0 / l), $MachinePrecision] * N[(N[(t$95$m * t$95$m), $MachinePrecision] / l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(k * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$m, 1050.0], N[(2.0 / N[(N[(N[Power[t$95$m, 3.0], $MachinePrecision] * N[Power[N[(k / l), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision] * 2.0), $MachinePrecision]), $MachinePrecision], N[(l * N[(l / N[(N[Power[N[(k * t$95$m), $MachinePrecision], 2.0], $MachinePrecision] * t$95$m), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]), $MachinePrecision]
                                                            
                                                            \begin{array}{l}
                                                            t\_m = \left|t\right|
                                                            \\
                                                            t\_s = \mathsf{copysign}\left(1, t\right)
                                                            
                                                            \\
                                                            t\_s \cdot \begin{array}{l}
                                                            \mathbf{if}\;t\_m \leq 1.02 \cdot 10^{-54}:\\
                                                            \;\;\;\;\frac{2}{t\_m \cdot \left(\mathsf{fma}\left(\frac{\mathsf{fma}\left(0.3333333333333333, t\_m \cdot t\_m, 1\right)}{\ell}, \frac{k \cdot k}{\ell}, \frac{2}{\ell} \cdot \frac{t\_m \cdot t\_m}{\ell}\right) \cdot \left(k \cdot k\right)\right)}\\
                                                            
                                                            \mathbf{elif}\;t\_m \leq 1050:\\
                                                            \;\;\;\;\frac{2}{\left({t\_m}^{3} \cdot {\left(\frac{k}{\ell}\right)}^{2}\right) \cdot 2}\\
                                                            
                                                            \mathbf{else}:\\
                                                            \;\;\;\;\ell \cdot \frac{\ell}{{\left(k \cdot t\_m\right)}^{2} \cdot t\_m}\\
                                                            
                                                            
                                                            \end{array}
                                                            \end{array}
                                                            
                                                            Derivation
                                                            1. Split input into 3 regimes
                                                            2. if t < 1.01999999999999999e-54

                                                              1. Initial program 42.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}{\color{blue}{\left(\left(\frac{{t}^{3}}{\ell \cdot \ell} \cdot \sin k\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)}} \]
                                                                2. lift-*.f64N/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                              if 1.01999999999999999e-54 < t < 1050

                                                              1. Initial program 91.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}{2 \cdot \frac{{k}^{2} \cdot {t}^{3}}{{\ell}^{2}}}} \]
                                                              4. Step-by-step derivation
                                                                1. *-commutativeN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                                  if 1050 < t

                                                                  1. Initial program 74.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                                      \[\leadsto \frac{\ell}{k \cdot k} \cdot \color{blue}{\frac{\ell}{{t}^{3}}} \]
                                                                    8. lower-pow.f6461.7

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

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

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

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

                                                                  Alternative 9: 73.5% accurate, 1.9× speedup?

                                                                  \[\begin{array}{l} t\_m = \left|t\right| \\ t\_s = \mathsf{copysign}\left(1, t\right) \\ t\_s \cdot \begin{array}{l} \mathbf{if}\;t\_m \leq 5 \cdot 10^{-33}:\\ \;\;\;\;\frac{2}{t\_m \cdot \left(\mathsf{fma}\left(\frac{\mathsf{fma}\left(0.3333333333333333, t\_m \cdot t\_m, 1\right)}{\ell}, \frac{k \cdot k}{\ell}, \frac{2}{\ell} \cdot \frac{t\_m \cdot t\_m}{\ell}\right) \cdot \left(k \cdot k\right)\right)}\\ \mathbf{else}:\\ \;\;\;\;\frac{2}{{\left(\frac{{t\_m}^{1.5} \cdot k}{\ell}\right)}^{2} \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 5e-33)
                                                                      (/
                                                                       2.0
                                                                       (*
                                                                        t_m
                                                                        (*
                                                                         (fma
                                                                          (/ (fma 0.3333333333333333 (* t_m t_m) 1.0) l)
                                                                          (/ (* k k) l)
                                                                          (* (/ 2.0 l) (/ (* t_m t_m) l)))
                                                                         (* k k))))
                                                                      (/ 2.0 (* (pow (/ (* (pow t_m 1.5) k) l) 2.0) 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 <= 5e-33) {
                                                                  		tmp = 2.0 / (t_m * (fma((fma(0.3333333333333333, (t_m * t_m), 1.0) / l), ((k * k) / l), ((2.0 / l) * ((t_m * t_m) / l))) * (k * k)));
                                                                  	} else {
                                                                  		tmp = 2.0 / (pow(((pow(t_m, 1.5) * k) / l), 2.0) * 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 <= 5e-33)
                                                                  		tmp = Float64(2.0 / Float64(t_m * Float64(fma(Float64(fma(0.3333333333333333, Float64(t_m * t_m), 1.0) / l), Float64(Float64(k * k) / l), Float64(Float64(2.0 / l) * Float64(Float64(t_m * t_m) / l))) * Float64(k * k))));
                                                                  	else
                                                                  		tmp = Float64(2.0 / Float64((Float64(Float64((t_m ^ 1.5) * k) / l) ^ 2.0) * 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, 5e-33], N[(2.0 / N[(t$95$m * N[(N[(N[(N[(0.3333333333333333 * N[(t$95$m * t$95$m), $MachinePrecision] + 1.0), $MachinePrecision] / l), $MachinePrecision] * N[(N[(k * k), $MachinePrecision] / l), $MachinePrecision] + N[(N[(2.0 / l), $MachinePrecision] * N[(N[(t$95$m * t$95$m), $MachinePrecision] / l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(k * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(2.0 / N[(N[Power[N[(N[(N[Power[t$95$m, 1.5], $MachinePrecision] * k), $MachinePrecision] / l), $MachinePrecision], 2.0], $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 5 \cdot 10^{-33}:\\
                                                                  \;\;\;\;\frac{2}{t\_m \cdot \left(\mathsf{fma}\left(\frac{\mathsf{fma}\left(0.3333333333333333, t\_m \cdot t\_m, 1\right)}{\ell}, \frac{k \cdot k}{\ell}, \frac{2}{\ell} \cdot \frac{t\_m \cdot t\_m}{\ell}\right) \cdot \left(k \cdot k\right)\right)}\\
                                                                  
                                                                  \mathbf{else}:\\
                                                                  \;\;\;\;\frac{2}{{\left(\frac{{t\_m}^{1.5} \cdot k}{\ell}\right)}^{2} \cdot 2}\\
                                                                  
                                                                  
                                                                  \end{array}
                                                                  \end{array}
                                                                  
                                                                  Derivation
                                                                  1. Split input into 2 regimes
                                                                  2. if t < 5.00000000000000028e-33

                                                                    1. Initial program 44.4%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                                    if 5.00000000000000028e-33 < t

                                                                    1. Initial program 76.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                                        \[\leadsto \frac{2}{\left(\left(k \cdot k\right) \cdot 2\right) \cdot \frac{\color{blue}{\frac{{t}^{3}}{\ell}}}{\ell}} \]
                                                                      14. lower-pow.f6461.1

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

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

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

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

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

                                                                      Alternative 10: 72.9% accurate, 1.9× speedup?

                                                                      \[\begin{array}{l} t\_m = \left|t\right| \\ t\_s = \mathsf{copysign}\left(1, t\right) \\ t\_s \cdot \begin{array}{l} \mathbf{if}\;t\_m \leq 1.02 \cdot 10^{-54}:\\ \;\;\;\;\frac{2}{t\_m \cdot \left(\mathsf{fma}\left(\frac{\mathsf{fma}\left(0.3333333333333333, t\_m \cdot t\_m, 1\right)}{\ell}, \frac{k \cdot k}{\ell}, \frac{2}{\ell} \cdot \frac{t\_m \cdot t\_m}{\ell}\right) \cdot \left(k \cdot k\right)\right)}\\ \mathbf{else}:\\ \;\;\;\;\frac{2}{{\left(\frac{{t\_m}^{1.5}}{\ell} \cdot k\right)}^{2} \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.02e-54)
                                                                          (/
                                                                           2.0
                                                                           (*
                                                                            t_m
                                                                            (*
                                                                             (fma
                                                                              (/ (fma 0.3333333333333333 (* t_m t_m) 1.0) l)
                                                                              (/ (* k k) l)
                                                                              (* (/ 2.0 l) (/ (* t_m t_m) l)))
                                                                             (* k k))))
                                                                          (/ 2.0 (* (pow (* (/ (pow t_m 1.5) l) k) 2.0) 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.02e-54) {
                                                                      		tmp = 2.0 / (t_m * (fma((fma(0.3333333333333333, (t_m * t_m), 1.0) / l), ((k * k) / l), ((2.0 / l) * ((t_m * t_m) / l))) * (k * k)));
                                                                      	} else {
                                                                      		tmp = 2.0 / (pow(((pow(t_m, 1.5) / l) * k), 2.0) * 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.02e-54)
                                                                      		tmp = Float64(2.0 / Float64(t_m * Float64(fma(Float64(fma(0.3333333333333333, Float64(t_m * t_m), 1.0) / l), Float64(Float64(k * k) / l), Float64(Float64(2.0 / l) * Float64(Float64(t_m * t_m) / l))) * Float64(k * k))));
                                                                      	else
                                                                      		tmp = Float64(2.0 / Float64((Float64(Float64((t_m ^ 1.5) / l) * k) ^ 2.0) * 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.02e-54], N[(2.0 / N[(t$95$m * N[(N[(N[(N[(0.3333333333333333 * N[(t$95$m * t$95$m), $MachinePrecision] + 1.0), $MachinePrecision] / l), $MachinePrecision] * N[(N[(k * k), $MachinePrecision] / l), $MachinePrecision] + N[(N[(2.0 / l), $MachinePrecision] * N[(N[(t$95$m * t$95$m), $MachinePrecision] / l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(k * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(2.0 / N[(N[Power[N[(N[(N[Power[t$95$m, 1.5], $MachinePrecision] / l), $MachinePrecision] * k), $MachinePrecision], 2.0], $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.02 \cdot 10^{-54}:\\
                                                                      \;\;\;\;\frac{2}{t\_m \cdot \left(\mathsf{fma}\left(\frac{\mathsf{fma}\left(0.3333333333333333, t\_m \cdot t\_m, 1\right)}{\ell}, \frac{k \cdot k}{\ell}, \frac{2}{\ell} \cdot \frac{t\_m \cdot t\_m}{\ell}\right) \cdot \left(k \cdot k\right)\right)}\\
                                                                      
                                                                      \mathbf{else}:\\
                                                                      \;\;\;\;\frac{2}{{\left(\frac{{t\_m}^{1.5}}{\ell} \cdot k\right)}^{2} \cdot 2}\\
                                                                      
                                                                      
                                                                      \end{array}
                                                                      \end{array}
                                                                      
                                                                      Derivation
                                                                      1. Split input into 2 regimes
                                                                      2. if t < 1.01999999999999999e-54

                                                                        1. Initial program 42.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}{\color{blue}{\left(\left(\frac{{t}^{3}}{\ell \cdot \ell} \cdot \sin k\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)}} \]
                                                                          2. lift-*.f64N/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                                        if 1.01999999999999999e-54 < t

                                                                        1. Initial program 78.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                                            \[\leadsto \frac{2}{\left(\left(k \cdot k\right) \cdot 2\right) \cdot \frac{\color{blue}{\frac{{t}^{3}}{\ell}}}{\ell}} \]
                                                                          14. lower-pow.f6461.6

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

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

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

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

                                                                        Alternative 11: 66.0% accurate, 2.5× speedup?

                                                                        \[\begin{array}{l} t\_m = \left|t\right| \\ t\_s = \mathsf{copysign}\left(1, t\right) \\ t\_s \cdot \begin{array}{l} \mathbf{if}\;t\_m \leq 2.7 \cdot 10^{+14}:\\ \;\;\;\;\frac{2}{t\_m \cdot \left(\mathsf{fma}\left(\frac{\mathsf{fma}\left(0.3333333333333333, t\_m \cdot t\_m, 1\right)}{\ell}, \frac{k \cdot k}{\ell}, \frac{2}{\ell} \cdot \frac{t\_m \cdot t\_m}{\ell}\right) \cdot \left(k \cdot k\right)\right)}\\ \mathbf{else}:\\ \;\;\;\;\frac{2}{t\_m \cdot \left(\left(\frac{t\_m}{\ell} \cdot \frac{t\_m}{\ell}\right) \cdot \left(\left(\mathsf{fma}\left({\left(t\_m \cdot t\_m\right)}^{-1} + 0.3333333333333333, k \cdot k, 2\right) \cdot k\right) \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 2.7e+14)
                                                                            (/
                                                                             2.0
                                                                             (*
                                                                              t_m
                                                                              (*
                                                                               (fma
                                                                                (/ (fma 0.3333333333333333 (* t_m t_m) 1.0) l)
                                                                                (/ (* k k) l)
                                                                                (* (/ 2.0 l) (/ (* t_m t_m) l)))
                                                                               (* k k))))
                                                                            (/
                                                                             2.0
                                                                             (*
                                                                              t_m
                                                                              (*
                                                                               (* (/ t_m l) (/ t_m l))
                                                                               (*
                                                                                (* (fma (+ (pow (* t_m t_m) -1.0) 0.3333333333333333) (* k k) 2.0) 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 (t_m <= 2.7e+14) {
                                                                        		tmp = 2.0 / (t_m * (fma((fma(0.3333333333333333, (t_m * t_m), 1.0) / l), ((k * k) / l), ((2.0 / l) * ((t_m * t_m) / l))) * (k * k)));
                                                                        	} else {
                                                                        		tmp = 2.0 / (t_m * (((t_m / l) * (t_m / l)) * ((fma((pow((t_m * t_m), -1.0) + 0.3333333333333333), (k * k), 2.0) * 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 (t_m <= 2.7e+14)
                                                                        		tmp = Float64(2.0 / Float64(t_m * Float64(fma(Float64(fma(0.3333333333333333, Float64(t_m * t_m), 1.0) / l), Float64(Float64(k * k) / l), Float64(Float64(2.0 / l) * Float64(Float64(t_m * t_m) / l))) * Float64(k * k))));
                                                                        	else
                                                                        		tmp = Float64(2.0 / Float64(t_m * Float64(Float64(Float64(t_m / l) * Float64(t_m / l)) * Float64(Float64(fma(Float64((Float64(t_m * t_m) ^ -1.0) + 0.3333333333333333), Float64(k * k), 2.0) * k) * 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, 2.7e+14], N[(2.0 / N[(t$95$m * N[(N[(N[(N[(0.3333333333333333 * N[(t$95$m * t$95$m), $MachinePrecision] + 1.0), $MachinePrecision] / l), $MachinePrecision] * N[(N[(k * k), $MachinePrecision] / l), $MachinePrecision] + N[(N[(2.0 / l), $MachinePrecision] * N[(N[(t$95$m * t$95$m), $MachinePrecision] / l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(k * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(2.0 / N[(t$95$m * N[(N[(N[(t$95$m / l), $MachinePrecision] * N[(t$95$m / l), $MachinePrecision]), $MachinePrecision] * N[(N[(N[(N[(N[Power[N[(t$95$m * t$95$m), $MachinePrecision], -1.0], $MachinePrecision] + 0.3333333333333333), $MachinePrecision] * N[(k * k), $MachinePrecision] + 2.0), $MachinePrecision] * k), $MachinePrecision] * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]), $MachinePrecision]
                                                                        
                                                                        \begin{array}{l}
                                                                        t\_m = \left|t\right|
                                                                        \\
                                                                        t\_s = \mathsf{copysign}\left(1, t\right)
                                                                        
                                                                        \\
                                                                        t\_s \cdot \begin{array}{l}
                                                                        \mathbf{if}\;t\_m \leq 2.7 \cdot 10^{+14}:\\
                                                                        \;\;\;\;\frac{2}{t\_m \cdot \left(\mathsf{fma}\left(\frac{\mathsf{fma}\left(0.3333333333333333, t\_m \cdot t\_m, 1\right)}{\ell}, \frac{k \cdot k}{\ell}, \frac{2}{\ell} \cdot \frac{t\_m \cdot t\_m}{\ell}\right) \cdot \left(k \cdot k\right)\right)}\\
                                                                        
                                                                        \mathbf{else}:\\
                                                                        \;\;\;\;\frac{2}{t\_m \cdot \left(\left(\frac{t\_m}{\ell} \cdot \frac{t\_m}{\ell}\right) \cdot \left(\left(\mathsf{fma}\left({\left(t\_m \cdot t\_m\right)}^{-1} + 0.3333333333333333, k \cdot k, 2\right) \cdot k\right) \cdot k\right)\right)}\\
                                                                        
                                                                        
                                                                        \end{array}
                                                                        \end{array}
                                                                        
                                                                        Derivation
                                                                        1. Split input into 2 regimes
                                                                        2. if t < 2.7e14

                                                                          1. Initial program 47.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                                          if 2.7e14 < t

                                                                          1. Initial program 71.9%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                                        Alternative 12: 64.2% accurate, 2.5× speedup?

                                                                        \[\begin{array}{l} t\_m = \left|t\right| \\ t\_s = \mathsf{copysign}\left(1, t\right) \\ t\_s \cdot \begin{array}{l} \mathbf{if}\;t\_m \leq 1.5 \cdot 10^{-148}:\\ \;\;\;\;\frac{2}{t\_m \cdot \left(\frac{2}{\ell} \cdot \frac{\left(\left(k \cdot k\right) \cdot t\_m\right) \cdot t\_m}{\ell}\right)}\\ \mathbf{else}:\\ \;\;\;\;\frac{2}{t\_m \cdot \left(\left(\frac{t\_m}{\ell} \cdot \frac{t\_m}{\ell}\right) \cdot \left(\left(\mathsf{fma}\left({\left(t\_m \cdot t\_m\right)}^{-1} + 0.3333333333333333, k \cdot k, 2\right) \cdot k\right) \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 1.5e-148)
                                                                            (/ 2.0 (* t_m (* (/ 2.0 l) (/ (* (* (* k k) t_m) t_m) l))))
                                                                            (/
                                                                             2.0
                                                                             (*
                                                                              t_m
                                                                              (*
                                                                               (* (/ t_m l) (/ t_m l))
                                                                               (*
                                                                                (* (fma (+ (pow (* t_m t_m) -1.0) 0.3333333333333333) (* k k) 2.0) 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 (t_m <= 1.5e-148) {
                                                                        		tmp = 2.0 / (t_m * ((2.0 / l) * ((((k * k) * t_m) * t_m) / l)));
                                                                        	} else {
                                                                        		tmp = 2.0 / (t_m * (((t_m / l) * (t_m / l)) * ((fma((pow((t_m * t_m), -1.0) + 0.3333333333333333), (k * k), 2.0) * 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 (t_m <= 1.5e-148)
                                                                        		tmp = Float64(2.0 / Float64(t_m * Float64(Float64(2.0 / l) * Float64(Float64(Float64(Float64(k * k) * t_m) * t_m) / l))));
                                                                        	else
                                                                        		tmp = Float64(2.0 / Float64(t_m * Float64(Float64(Float64(t_m / l) * Float64(t_m / l)) * Float64(Float64(fma(Float64((Float64(t_m * t_m) ^ -1.0) + 0.3333333333333333), Float64(k * k), 2.0) * k) * k))));
                                                                        	end
                                                                        	return Float64(t_s * tmp)
                                                                        end
                                                                        
                                                                        t\_m = N[Abs[t], $MachinePrecision]
                                                                        t\_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[t]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
                                                                        code[t$95$s_, t$95$m_, l_, k_] := N[(t$95$s * If[LessEqual[t$95$m, 1.5e-148], N[(2.0 / N[(t$95$m * N[(N[(2.0 / l), $MachinePrecision] * N[(N[(N[(N[(k * k), $MachinePrecision] * t$95$m), $MachinePrecision] * t$95$m), $MachinePrecision] / l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(2.0 / N[(t$95$m * N[(N[(N[(t$95$m / l), $MachinePrecision] * N[(t$95$m / l), $MachinePrecision]), $MachinePrecision] * N[(N[(N[(N[(N[Power[N[(t$95$m * t$95$m), $MachinePrecision], -1.0], $MachinePrecision] + 0.3333333333333333), $MachinePrecision] * N[(k * k), $MachinePrecision] + 2.0), $MachinePrecision] * k), $MachinePrecision] * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]), $MachinePrecision]
                                                                        
                                                                        \begin{array}{l}
                                                                        t\_m = \left|t\right|
                                                                        \\
                                                                        t\_s = \mathsf{copysign}\left(1, t\right)
                                                                        
                                                                        \\
                                                                        t\_s \cdot \begin{array}{l}
                                                                        \mathbf{if}\;t\_m \leq 1.5 \cdot 10^{-148}:\\
                                                                        \;\;\;\;\frac{2}{t\_m \cdot \left(\frac{2}{\ell} \cdot \frac{\left(\left(k \cdot k\right) \cdot t\_m\right) \cdot t\_m}{\ell}\right)}\\
                                                                        
                                                                        \mathbf{else}:\\
                                                                        \;\;\;\;\frac{2}{t\_m \cdot \left(\left(\frac{t\_m}{\ell} \cdot \frac{t\_m}{\ell}\right) \cdot \left(\left(\mathsf{fma}\left({\left(t\_m \cdot t\_m\right)}^{-1} + 0.3333333333333333, k \cdot k, 2\right) \cdot k\right) \cdot k\right)\right)}\\
                                                                        
                                                                        
                                                                        \end{array}
                                                                        \end{array}
                                                                        
                                                                        Derivation
                                                                        1. Split input into 2 regimes
                                                                        2. if t < 1.49999999999999999e-148

                                                                          1. Initial program 42.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-pow.f64N/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                                          if 1.49999999999999999e-148 < t

                                                                          1. Initial program 71.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}{\color{blue}{\left(\left(\frac{{t}^{3}}{\ell \cdot \ell} \cdot \sin k\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)}} \]
                                                                            2. lift-*.f64N/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                                              \[\leadsto \frac{2}{t \cdot \left(\left(\frac{t}{\ell} \cdot \frac{t}{\ell}\right) \cdot \left(\left(\mathsf{fma}\left(\frac{1}{t \cdot t} + 0.3333333333333333, \color{blue}{k \cdot k}, 2\right) \cdot k\right) \cdot k\right)\right)} \]
                                                                          9. Applied rewrites65.2%

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

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

                                                                        Alternative 13: 73.0% accurate, 3.0× speedup?

                                                                        \[\begin{array}{l} t\_m = \left|t\right| \\ t\_s = \mathsf{copysign}\left(1, t\right) \\ t\_s \cdot \begin{array}{l} \mathbf{if}\;t\_m \leq 1.02 \cdot 10^{-54}:\\ \;\;\;\;\frac{2}{t\_m \cdot \left(\mathsf{fma}\left(\frac{\mathsf{fma}\left(0.3333333333333333, t\_m \cdot t\_m, 1\right)}{\ell}, \frac{k \cdot k}{\ell}, \frac{2}{\ell} \cdot \frac{t\_m \cdot t\_m}{\ell}\right) \cdot \left(k \cdot k\right)\right)}\\ \mathbf{elif}\;t\_m \leq 1050:\\ \;\;\;\;\frac{\frac{{\left(\frac{\ell}{k}\right)}^{2}}{t\_m \cdot t\_m}}{t\_m}\\ \mathbf{else}:\\ \;\;\;\;\ell \cdot \frac{\ell}{{\left(k \cdot t\_m\right)}^{2} \cdot t\_m}\\ \end{array} \end{array} \]
                                                                        t\_m = (fabs.f64 t)
                                                                        t\_s = (copysign.f64 #s(literal 1 binary64) t)
                                                                        (FPCore (t_s t_m l k)
                                                                         :precision binary64
                                                                         (*
                                                                          t_s
                                                                          (if (<= t_m 1.02e-54)
                                                                            (/
                                                                             2.0
                                                                             (*
                                                                              t_m
                                                                              (*
                                                                               (fma
                                                                                (/ (fma 0.3333333333333333 (* t_m t_m) 1.0) l)
                                                                                (/ (* k k) l)
                                                                                (* (/ 2.0 l) (/ (* t_m t_m) l)))
                                                                               (* k k))))
                                                                            (if (<= t_m 1050.0)
                                                                              (/ (/ (pow (/ l k) 2.0) (* t_m t_m)) t_m)
                                                                              (* l (/ l (* (pow (* k t_m) 2.0) t_m)))))))
                                                                        t\_m = fabs(t);
                                                                        t\_s = copysign(1.0, t);
                                                                        double code(double t_s, double t_m, double l, double k) {
                                                                        	double tmp;
                                                                        	if (t_m <= 1.02e-54) {
                                                                        		tmp = 2.0 / (t_m * (fma((fma(0.3333333333333333, (t_m * t_m), 1.0) / l), ((k * k) / l), ((2.0 / l) * ((t_m * t_m) / l))) * (k * k)));
                                                                        	} else if (t_m <= 1050.0) {
                                                                        		tmp = (pow((l / k), 2.0) / (t_m * t_m)) / t_m;
                                                                        	} else {
                                                                        		tmp = l * (l / (pow((k * t_m), 2.0) * t_m));
                                                                        	}
                                                                        	return t_s * tmp;
                                                                        }
                                                                        
                                                                        t\_m = abs(t)
                                                                        t\_s = copysign(1.0, t)
                                                                        function code(t_s, t_m, l, k)
                                                                        	tmp = 0.0
                                                                        	if (t_m <= 1.02e-54)
                                                                        		tmp = Float64(2.0 / Float64(t_m * Float64(fma(Float64(fma(0.3333333333333333, Float64(t_m * t_m), 1.0) / l), Float64(Float64(k * k) / l), Float64(Float64(2.0 / l) * Float64(Float64(t_m * t_m) / l))) * Float64(k * k))));
                                                                        	elseif (t_m <= 1050.0)
                                                                        		tmp = Float64(Float64((Float64(l / k) ^ 2.0) / Float64(t_m * t_m)) / t_m);
                                                                        	else
                                                                        		tmp = Float64(l * Float64(l / Float64((Float64(k * t_m) ^ 2.0) * t_m)));
                                                                        	end
                                                                        	return Float64(t_s * tmp)
                                                                        end
                                                                        
                                                                        t\_m = N[Abs[t], $MachinePrecision]
                                                                        t\_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[t]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
                                                                        code[t$95$s_, t$95$m_, l_, k_] := N[(t$95$s * If[LessEqual[t$95$m, 1.02e-54], N[(2.0 / N[(t$95$m * N[(N[(N[(N[(0.3333333333333333 * N[(t$95$m * t$95$m), $MachinePrecision] + 1.0), $MachinePrecision] / l), $MachinePrecision] * N[(N[(k * k), $MachinePrecision] / l), $MachinePrecision] + N[(N[(2.0 / l), $MachinePrecision] * N[(N[(t$95$m * t$95$m), $MachinePrecision] / l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(k * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$m, 1050.0], N[(N[(N[Power[N[(l / k), $MachinePrecision], 2.0], $MachinePrecision] / N[(t$95$m * t$95$m), $MachinePrecision]), $MachinePrecision] / t$95$m), $MachinePrecision], N[(l * N[(l / N[(N[Power[N[(k * t$95$m), $MachinePrecision], 2.0], $MachinePrecision] * t$95$m), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]), $MachinePrecision]
                                                                        
                                                                        \begin{array}{l}
                                                                        t\_m = \left|t\right|
                                                                        \\
                                                                        t\_s = \mathsf{copysign}\left(1, t\right)
                                                                        
                                                                        \\
                                                                        t\_s \cdot \begin{array}{l}
                                                                        \mathbf{if}\;t\_m \leq 1.02 \cdot 10^{-54}:\\
                                                                        \;\;\;\;\frac{2}{t\_m \cdot \left(\mathsf{fma}\left(\frac{\mathsf{fma}\left(0.3333333333333333, t\_m \cdot t\_m, 1\right)}{\ell}, \frac{k \cdot k}{\ell}, \frac{2}{\ell} \cdot \frac{t\_m \cdot t\_m}{\ell}\right) \cdot \left(k \cdot k\right)\right)}\\
                                                                        
                                                                        \mathbf{elif}\;t\_m \leq 1050:\\
                                                                        \;\;\;\;\frac{\frac{{\left(\frac{\ell}{k}\right)}^{2}}{t\_m \cdot t\_m}}{t\_m}\\
                                                                        
                                                                        \mathbf{else}:\\
                                                                        \;\;\;\;\ell \cdot \frac{\ell}{{\left(k \cdot t\_m\right)}^{2} \cdot t\_m}\\
                                                                        
                                                                        
                                                                        \end{array}
                                                                        \end{array}
                                                                        
                                                                        Derivation
                                                                        1. Split input into 3 regimes
                                                                        2. if t < 1.01999999999999999e-54

                                                                          1. Initial program 42.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}{\color{blue}{\left(\left(\frac{{t}^{3}}{\ell \cdot \ell} \cdot \sin k\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)}} \]
                                                                            2. lift-*.f64N/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                                          if 1.01999999999999999e-54 < t < 1050

                                                                          1. Initial program 91.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 inf

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                                              \[\leadsto \frac{\ell}{k \cdot k} \cdot \color{blue}{\frac{\ell}{{t}^{3}}} \]
                                                                            8. lower-pow.f6464.1

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

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

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

                                                                            if 1050 < t

                                                                            1. Initial program 74.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                                                \[\leadsto \frac{\ell}{k \cdot k} \cdot \color{blue}{\frac{\ell}{{t}^{3}}} \]
                                                                              8. lower-pow.f6461.7

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

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

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

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

                                                                            Alternative 14: 59.0% accurate, 3.1× speedup?

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

                                                                              1. Initial program 55.3%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                                              if 3.2e19 < k

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

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

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

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

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

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

                                                                                \[\leadsto \frac{2}{\color{blue}{\left(\left(\frac{\frac{{\sin k}^{2}}{\ell}}{\ell \cdot \cos k} \cdot \mathsf{fma}\left(2, \frac{\frac{{t}^{3}}{k}}{k}, t\right)\right) \cdot k\right) \cdot k}} \]
                                                                              6. 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)}} \]
                                                                              7. 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. *-commutativeN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                                              Alternative 15: 59.5% accurate, 3.1× 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.8 \cdot 10^{+19}:\\ \;\;\;\;\frac{\frac{\ell}{k \cdot k}}{t\_m} \cdot \frac{\ell}{t\_m \cdot t\_m}\\ \mathbf{else}:\\ \;\;\;\;\left(2 \cdot \left(\ell \cdot \ell\right)\right) \cdot \frac{{\left(\left(k \cdot k\right) \cdot t\_m\right)}^{-1}}{k \cdot k}\\ \end{array} \end{array} \]
                                                                              t\_m = (fabs.f64 t)
                                                                              t\_s = (copysign.f64 #s(literal 1 binary64) t)
                                                                              (FPCore (t_s t_m l k)
                                                                               :precision binary64
                                                                               (*
                                                                                t_s
                                                                                (if (<= k 2.8e+19)
                                                                                  (* (/ (/ l (* k k)) t_m) (/ l (* t_m t_m)))
                                                                                  (* (* 2.0 (* l l)) (/ (pow (* (* k k) t_m) -1.0) (* k k))))))
                                                                              t\_m = fabs(t);
                                                                              t\_s = copysign(1.0, t);
                                                                              double code(double t_s, double t_m, double l, double k) {
                                                                              	double tmp;
                                                                              	if (k <= 2.8e+19) {
                                                                              		tmp = ((l / (k * k)) / t_m) * (l / (t_m * t_m));
                                                                              	} else {
                                                                              		tmp = (2.0 * (l * l)) * (pow(((k * k) * t_m), -1.0) / (k * k));
                                                                              	}
                                                                              	return t_s * tmp;
                                                                              }
                                                                              
                                                                              t\_m = abs(t)
                                                                              t\_s = copysign(1.0d0, t)
                                                                              real(8) function code(t_s, t_m, l, k)
                                                                                  real(8), intent (in) :: t_s
                                                                                  real(8), intent (in) :: t_m
                                                                                  real(8), intent (in) :: l
                                                                                  real(8), intent (in) :: k
                                                                                  real(8) :: tmp
                                                                                  if (k <= 2.8d+19) then
                                                                                      tmp = ((l / (k * k)) / t_m) * (l / (t_m * t_m))
                                                                                  else
                                                                                      tmp = (2.0d0 * (l * l)) * ((((k * k) * t_m) ** (-1.0d0)) / (k * k))
                                                                                  end if
                                                                                  code = t_s * tmp
                                                                              end function
                                                                              
                                                                              t\_m = Math.abs(t);
                                                                              t\_s = Math.copySign(1.0, t);
                                                                              public static double code(double t_s, double t_m, double l, double k) {
                                                                              	double tmp;
                                                                              	if (k <= 2.8e+19) {
                                                                              		tmp = ((l / (k * k)) / t_m) * (l / (t_m * t_m));
                                                                              	} else {
                                                                              		tmp = (2.0 * (l * l)) * (Math.pow(((k * k) * t_m), -1.0) / (k * k));
                                                                              	}
                                                                              	return t_s * tmp;
                                                                              }
                                                                              
                                                                              t\_m = math.fabs(t)
                                                                              t\_s = math.copysign(1.0, t)
                                                                              def code(t_s, t_m, l, k):
                                                                              	tmp = 0
                                                                              	if k <= 2.8e+19:
                                                                              		tmp = ((l / (k * k)) / t_m) * (l / (t_m * t_m))
                                                                              	else:
                                                                              		tmp = (2.0 * (l * l)) * (math.pow(((k * k) * t_m), -1.0) / (k * k))
                                                                              	return t_s * tmp
                                                                              
                                                                              t\_m = abs(t)
                                                                              t\_s = copysign(1.0, t)
                                                                              function code(t_s, t_m, l, k)
                                                                              	tmp = 0.0
                                                                              	if (k <= 2.8e+19)
                                                                              		tmp = Float64(Float64(Float64(l / Float64(k * k)) / t_m) * Float64(l / Float64(t_m * t_m)));
                                                                              	else
                                                                              		tmp = Float64(Float64(2.0 * Float64(l * l)) * Float64((Float64(Float64(k * k) * t_m) ^ -1.0) / Float64(k * k)));
                                                                              	end
                                                                              	return Float64(t_s * tmp)
                                                                              end
                                                                              
                                                                              t\_m = abs(t);
                                                                              t\_s = sign(t) * abs(1.0);
                                                                              function tmp_2 = code(t_s, t_m, l, k)
                                                                              	tmp = 0.0;
                                                                              	if (k <= 2.8e+19)
                                                                              		tmp = ((l / (k * k)) / t_m) * (l / (t_m * t_m));
                                                                              	else
                                                                              		tmp = (2.0 * (l * l)) * ((((k * k) * t_m) ^ -1.0) / (k * k));
                                                                              	end
                                                                              	tmp_2 = t_s * tmp;
                                                                              end
                                                                              
                                                                              t\_m = N[Abs[t], $MachinePrecision]
                                                                              t\_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[t]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
                                                                              code[t$95$s_, t$95$m_, l_, k_] := N[(t$95$s * If[LessEqual[k, 2.8e+19], N[(N[(N[(l / N[(k * k), $MachinePrecision]), $MachinePrecision] / t$95$m), $MachinePrecision] * N[(l / N[(t$95$m * t$95$m), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(2.0 * N[(l * l), $MachinePrecision]), $MachinePrecision] * N[(N[Power[N[(N[(k * k), $MachinePrecision] * t$95$m), $MachinePrecision], -1.0], $MachinePrecision] / N[(k * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]), $MachinePrecision]
                                                                              
                                                                              \begin{array}{l}
                                                                              t\_m = \left|t\right|
                                                                              \\
                                                                              t\_s = \mathsf{copysign}\left(1, t\right)
                                                                              
                                                                              \\
                                                                              t\_s \cdot \begin{array}{l}
                                                                              \mathbf{if}\;k \leq 2.8 \cdot 10^{+19}:\\
                                                                              \;\;\;\;\frac{\frac{\ell}{k \cdot k}}{t\_m} \cdot \frac{\ell}{t\_m \cdot t\_m}\\
                                                                              
                                                                              \mathbf{else}:\\
                                                                              \;\;\;\;\left(2 \cdot \left(\ell \cdot \ell\right)\right) \cdot \frac{{\left(\left(k \cdot k\right) \cdot t\_m\right)}^{-1}}{k \cdot k}\\
                                                                              
                                                                              
                                                                              \end{array}
                                                                              \end{array}
                                                                              
                                                                              Derivation
                                                                              1. Split input into 2 regimes
                                                                              2. if k < 2.8e19

                                                                                1. Initial program 55.3%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                                                    \[\leadsto \frac{\ell}{k \cdot k} \cdot \color{blue}{\frac{\ell}{{t}^{3}}} \]
                                                                                  8. lower-pow.f6456.6

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

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

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

                                                                                  if 2.8e19 < k

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

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

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

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

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

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

                                                                                    \[\leadsto \frac{2}{\color{blue}{\left(\left(\frac{\frac{{\sin k}^{2}}{\ell}}{\ell \cdot \cos k} \cdot \mathsf{fma}\left(2, \frac{\frac{{t}^{3}}{k}}{k}, t\right)\right) \cdot k\right) \cdot k}} \]
                                                                                  6. 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)}} \]
                                                                                  7. 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. *-commutativeN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                                                      \[\leadsto \left(2 \cdot \left(\ell \cdot \ell\right)\right) \cdot \frac{\frac{1}{\left(k \cdot k\right) \cdot t}}{\color{blue}{k} \cdot k} \]
                                                                                  11. Recombined 2 regimes into one program.
                                                                                  12. Final simplification55.5%

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

                                                                                  Alternative 16: 72.3% accurate, 3.4× speedup?

                                                                                  \[\begin{array}{l} t\_m = \left|t\right| \\ t\_s = \mathsf{copysign}\left(1, t\right) \\ t\_s \cdot \begin{array}{l} \mathbf{if}\;t\_m \leq 3.1 \cdot 10^{-11}:\\ \;\;\;\;\frac{2}{t\_m \cdot \left(\mathsf{fma}\left(\frac{\mathsf{fma}\left(0.3333333333333333, t\_m \cdot t\_m, 1\right)}{\ell}, \frac{k \cdot k}{\ell}, \frac{2}{\ell} \cdot \frac{t\_m \cdot t\_m}{\ell}\right) \cdot \left(k \cdot k\right)\right)}\\ \mathbf{else}:\\ \;\;\;\;\ell \cdot \frac{\ell}{{\left(k \cdot t\_m\right)}^{2} \cdot t\_m}\\ \end{array} \end{array} \]
                                                                                  t\_m = (fabs.f64 t)
                                                                                  t\_s = (copysign.f64 #s(literal 1 binary64) t)
                                                                                  (FPCore (t_s t_m l k)
                                                                                   :precision binary64
                                                                                   (*
                                                                                    t_s
                                                                                    (if (<= t_m 3.1e-11)
                                                                                      (/
                                                                                       2.0
                                                                                       (*
                                                                                        t_m
                                                                                        (*
                                                                                         (fma
                                                                                          (/ (fma 0.3333333333333333 (* t_m t_m) 1.0) l)
                                                                                          (/ (* k k) l)
                                                                                          (* (/ 2.0 l) (/ (* t_m t_m) l)))
                                                                                         (* k k))))
                                                                                      (* l (/ l (* (pow (* k t_m) 2.0) t_m))))))
                                                                                  t\_m = fabs(t);
                                                                                  t\_s = copysign(1.0, t);
                                                                                  double code(double t_s, double t_m, double l, double k) {
                                                                                  	double tmp;
                                                                                  	if (t_m <= 3.1e-11) {
                                                                                  		tmp = 2.0 / (t_m * (fma((fma(0.3333333333333333, (t_m * t_m), 1.0) / l), ((k * k) / l), ((2.0 / l) * ((t_m * t_m) / l))) * (k * k)));
                                                                                  	} else {
                                                                                  		tmp = l * (l / (pow((k * t_m), 2.0) * t_m));
                                                                                  	}
                                                                                  	return t_s * tmp;
                                                                                  }
                                                                                  
                                                                                  t\_m = abs(t)
                                                                                  t\_s = copysign(1.0, t)
                                                                                  function code(t_s, t_m, l, k)
                                                                                  	tmp = 0.0
                                                                                  	if (t_m <= 3.1e-11)
                                                                                  		tmp = Float64(2.0 / Float64(t_m * Float64(fma(Float64(fma(0.3333333333333333, Float64(t_m * t_m), 1.0) / l), Float64(Float64(k * k) / l), Float64(Float64(2.0 / l) * Float64(Float64(t_m * t_m) / l))) * Float64(k * k))));
                                                                                  	else
                                                                                  		tmp = Float64(l * Float64(l / Float64((Float64(k * t_m) ^ 2.0) * t_m)));
                                                                                  	end
                                                                                  	return Float64(t_s * tmp)
                                                                                  end
                                                                                  
                                                                                  t\_m = N[Abs[t], $MachinePrecision]
                                                                                  t\_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[t]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
                                                                                  code[t$95$s_, t$95$m_, l_, k_] := N[(t$95$s * If[LessEqual[t$95$m, 3.1e-11], N[(2.0 / N[(t$95$m * N[(N[(N[(N[(0.3333333333333333 * N[(t$95$m * t$95$m), $MachinePrecision] + 1.0), $MachinePrecision] / l), $MachinePrecision] * N[(N[(k * k), $MachinePrecision] / l), $MachinePrecision] + N[(N[(2.0 / l), $MachinePrecision] * N[(N[(t$95$m * t$95$m), $MachinePrecision] / l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(k * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(l * N[(l / N[(N[Power[N[(k * t$95$m), $MachinePrecision], 2.0], $MachinePrecision] * t$95$m), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]), $MachinePrecision]
                                                                                  
                                                                                  \begin{array}{l}
                                                                                  t\_m = \left|t\right|
                                                                                  \\
                                                                                  t\_s = \mathsf{copysign}\left(1, t\right)
                                                                                  
                                                                                  \\
                                                                                  t\_s \cdot \begin{array}{l}
                                                                                  \mathbf{if}\;t\_m \leq 3.1 \cdot 10^{-11}:\\
                                                                                  \;\;\;\;\frac{2}{t\_m \cdot \left(\mathsf{fma}\left(\frac{\mathsf{fma}\left(0.3333333333333333, t\_m \cdot t\_m, 1\right)}{\ell}, \frac{k \cdot k}{\ell}, \frac{2}{\ell} \cdot \frac{t\_m \cdot t\_m}{\ell}\right) \cdot \left(k \cdot k\right)\right)}\\
                                                                                  
                                                                                  \mathbf{else}:\\
                                                                                  \;\;\;\;\ell \cdot \frac{\ell}{{\left(k \cdot t\_m\right)}^{2} \cdot t\_m}\\
                                                                                  
                                                                                  
                                                                                  \end{array}
                                                                                  \end{array}
                                                                                  
                                                                                  Derivation
                                                                                  1. Split input into 2 regimes
                                                                                  2. if t < 3.10000000000000028e-11

                                                                                    1. Initial program 45.1%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                                                    if 3.10000000000000028e-11 < t

                                                                                    1. Initial program 75.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 inf

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                                                        \[\leadsto \frac{\ell}{k \cdot k} \cdot \color{blue}{\frac{\ell}{{t}^{3}}} \]
                                                                                      8. lower-pow.f6463.0

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

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

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

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

                                                                                    Alternative 17: 63.3% accurate, 7.8× speedup?

                                                                                    \[\begin{array}{l} t\_m = \left|t\right| \\ t\_s = \mathsf{copysign}\left(1, t\right) \\ t\_s \cdot \frac{2}{t\_m \cdot \left(\frac{2}{\ell} \cdot \frac{\left(\left(k \cdot k\right) \cdot t\_m\right) \cdot t\_m}{\ell}\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 (/ 2.0 (* t_m (* (/ 2.0 l) (/ (* (* (* k k) t_m) 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) {
                                                                                    	return t_s * (2.0 / (t_m * ((2.0 / l) * ((((k * k) * t_m) * t_m) / l))));
                                                                                    }
                                                                                    
                                                                                    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 * (2.0d0 / (t_m * ((2.0d0 / l) * ((((k * k) * t_m) * t_m) / l))))
                                                                                    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 * (2.0 / (t_m * ((2.0 / l) * ((((k * k) * t_m) * t_m) / l))));
                                                                                    }
                                                                                    
                                                                                    t\_m = math.fabs(t)
                                                                                    t\_s = math.copysign(1.0, t)
                                                                                    def code(t_s, t_m, l, k):
                                                                                    	return t_s * (2.0 / (t_m * ((2.0 / l) * ((((k * k) * t_m) * t_m) / l))))
                                                                                    
                                                                                    t\_m = abs(t)
                                                                                    t\_s = copysign(1.0, t)
                                                                                    function code(t_s, t_m, l, k)
                                                                                    	return Float64(t_s * Float64(2.0 / Float64(t_m * Float64(Float64(2.0 / l) * Float64(Float64(Float64(Float64(k * k) * t_m) * t_m) / l)))))
                                                                                    end
                                                                                    
                                                                                    t\_m = abs(t);
                                                                                    t\_s = sign(t) * abs(1.0);
                                                                                    function tmp = code(t_s, t_m, l, k)
                                                                                    	tmp = t_s * (2.0 / (t_m * ((2.0 / l) * ((((k * k) * t_m) * t_m) / l))));
                                                                                    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[(2.0 / N[(t$95$m * N[(N[(2.0 / l), $MachinePrecision] * N[(N[(N[(N[(k * k), $MachinePrecision] * t$95$m), $MachinePrecision] * t$95$m), $MachinePrecision] / l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
                                                                                    
                                                                                    \begin{array}{l}
                                                                                    t\_m = \left|t\right|
                                                                                    \\
                                                                                    t\_s = \mathsf{copysign}\left(1, t\right)
                                                                                    
                                                                                    \\
                                                                                    t\_s \cdot \frac{2}{t\_m \cdot \left(\frac{2}{\ell} \cdot \frac{\left(\left(k \cdot k\right) \cdot t\_m\right) \cdot t\_m}{\ell}\right)}
                                                                                    \end{array}
                                                                                    
                                                                                    Derivation
                                                                                    1. Initial program 52.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}{\color{blue}{\left(\left(\frac{{t}^{3}}{\ell \cdot \ell} \cdot \sin k\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)}} \]
                                                                                      2. lift-*.f64N/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                                                      \[\leadsto \frac{2}{t \cdot \color{blue}{\left(\frac{2}{\ell} \cdot \frac{\left(\left(k \cdot k\right) \cdot t\right) \cdot t}{\ell}\right)}} \]
                                                                                    8. Final simplification61.1%

                                                                                      \[\leadsto \frac{2}{t \cdot \left(\frac{2}{\ell} \cdot \frac{\left(\left(k \cdot k\right) \cdot t\right) \cdot t}{\ell}\right)} \]
                                                                                    9. Add Preprocessing

                                                                                    Alternative 18: 59.0% accurate, 9.4× speedup?

                                                                                    \[\begin{array}{l} t\_m = \left|t\right| \\ t\_s = \mathsf{copysign}\left(1, t\right) \\ t\_s \cdot \left(\frac{\frac{\ell}{k \cdot k}}{t\_m \cdot t\_m} \cdot \frac{\ell}{t\_m}\right) \end{array} \]
                                                                                    t\_m = (fabs.f64 t)
                                                                                    t\_s = (copysign.f64 #s(literal 1 binary64) t)
                                                                                    (FPCore (t_s t_m l k)
                                                                                     :precision binary64
                                                                                     (* t_s (* (/ (/ l (* k k)) (* t_m t_m)) (/ l t_m))))
                                                                                    t\_m = fabs(t);
                                                                                    t\_s = copysign(1.0, t);
                                                                                    double code(double t_s, double t_m, double l, double k) {
                                                                                    	return t_s * (((l / (k * k)) / (t_m * t_m)) * (l / 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 / (k * k)) / (t_m * t_m)) * (l / 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 / (k * k)) / (t_m * t_m)) * (l / 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 / (k * k)) / (t_m * t_m)) * (l / t_m))
                                                                                    
                                                                                    t\_m = abs(t)
                                                                                    t\_s = copysign(1.0, t)
                                                                                    function code(t_s, t_m, l, k)
                                                                                    	return Float64(t_s * Float64(Float64(Float64(l / Float64(k * k)) / Float64(t_m * t_m)) * Float64(l / 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 / (k * k)) / (t_m * t_m)) * (l / t_m));
                                                                                    end
                                                                                    
                                                                                    t\_m = N[Abs[t], $MachinePrecision]
                                                                                    t\_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[t]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
                                                                                    code[t$95$s_, t$95$m_, l_, k_] := N[(t$95$s * N[(N[(N[(l / N[(k * k), $MachinePrecision]), $MachinePrecision] / N[(t$95$m * t$95$m), $MachinePrecision]), $MachinePrecision] * N[(l / t$95$m), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
                                                                                    
                                                                                    \begin{array}{l}
                                                                                    t\_m = \left|t\right|
                                                                                    \\
                                                                                    t\_s = \mathsf{copysign}\left(1, t\right)
                                                                                    
                                                                                    \\
                                                                                    t\_s \cdot \left(\frac{\frac{\ell}{k \cdot k}}{t\_m \cdot t\_m} \cdot \frac{\ell}{t\_m}\right)
                                                                                    \end{array}
                                                                                    
                                                                                    Derivation
                                                                                    1. Initial program 52.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 inf

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                                                        \[\leadsto \frac{\frac{\ell}{k \cdot k}}{t \cdot t} \cdot \color{blue}{\frac{\ell}{t}} \]
                                                                                      2. Add Preprocessing

                                                                                      Alternative 19: 58.9% accurate, 9.4× speedup?

                                                                                      \[\begin{array}{l} t\_m = \left|t\right| \\ t\_s = \mathsf{copysign}\left(1, t\right) \\ t\_s \cdot \left(\frac{\frac{\ell}{k \cdot k}}{t\_m} \cdot \frac{\ell}{t\_m \cdot t\_m}\right) \end{array} \]
                                                                                      t\_m = (fabs.f64 t)
                                                                                      t\_s = (copysign.f64 #s(literal 1 binary64) t)
                                                                                      (FPCore (t_s t_m l k)
                                                                                       :precision binary64
                                                                                       (* t_s (* (/ (/ l (* k k)) t_m) (/ l (* 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 / (k * k)) / t_m) * (l / (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 / (k * k)) / t_m) * (l / (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 / (k * k)) / t_m) * (l / (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 / (k * k)) / t_m) * (l / (t_m * t_m)))
                                                                                      
                                                                                      t\_m = abs(t)
                                                                                      t\_s = copysign(1.0, t)
                                                                                      function code(t_s, t_m, l, k)
                                                                                      	return Float64(t_s * Float64(Float64(Float64(l / Float64(k * k)) / t_m) * Float64(l / 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 / (k * k)) / t_m) * (l / (t_m * t_m)));
                                                                                      end
                                                                                      
                                                                                      t\_m = N[Abs[t], $MachinePrecision]
                                                                                      t\_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[t]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
                                                                                      code[t$95$s_, t$95$m_, l_, k_] := N[(t$95$s * N[(N[(N[(l / N[(k * k), $MachinePrecision]), $MachinePrecision] / t$95$m), $MachinePrecision] * N[(l / N[(t$95$m * t$95$m), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
                                                                                      
                                                                                      \begin{array}{l}
                                                                                      t\_m = \left|t\right|
                                                                                      \\
                                                                                      t\_s = \mathsf{copysign}\left(1, t\right)
                                                                                      
                                                                                      \\
                                                                                      t\_s \cdot \left(\frac{\frac{\ell}{k \cdot k}}{t\_m} \cdot \frac{\ell}{t\_m \cdot t\_m}\right)
                                                                                      \end{array}
                                                                                      
                                                                                      Derivation
                                                                                      1. Initial program 52.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 inf

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                                                          \[\leadsto \frac{\frac{\ell}{k \cdot k}}{t} \cdot \color{blue}{\frac{\ell}{t \cdot t}} \]
                                                                                        2. Add Preprocessing

                                                                                        Alternative 20: 58.1% accurate, 9.4× speedup?

                                                                                        \[\begin{array}{l} t\_m = \left|t\right| \\ t\_s = \mathsf{copysign}\left(1, t\right) \\ t\_s \cdot \left(\frac{\ell}{k \cdot k} \cdot \frac{\frac{\ell}{t\_m}}{t\_m \cdot t\_m}\right) \end{array} \]
                                                                                        t\_m = (fabs.f64 t)
                                                                                        t\_s = (copysign.f64 #s(literal 1 binary64) t)
                                                                                        (FPCore (t_s t_m l k)
                                                                                         :precision binary64
                                                                                         (* t_s (* (/ l (* k k)) (/ (/ l t_m) (* t_m t_m)))))
                                                                                        t\_m = fabs(t);
                                                                                        t\_s = copysign(1.0, t);
                                                                                        double code(double t_s, double t_m, double l, double k) {
                                                                                        	return t_s * ((l / (k * k)) * ((l / t_m) / (t_m * t_m)));
                                                                                        }
                                                                                        
                                                                                        t\_m = abs(t)
                                                                                        t\_s = copysign(1.0d0, t)
                                                                                        real(8) function code(t_s, t_m, l, k)
                                                                                            real(8), intent (in) :: t_s
                                                                                            real(8), intent (in) :: t_m
                                                                                            real(8), intent (in) :: l
                                                                                            real(8), intent (in) :: k
                                                                                            code = t_s * ((l / (k * k)) * ((l / t_m) / (t_m * t_m)))
                                                                                        end function
                                                                                        
                                                                                        t\_m = Math.abs(t);
                                                                                        t\_s = Math.copySign(1.0, t);
                                                                                        public static double code(double t_s, double t_m, double l, double k) {
                                                                                        	return t_s * ((l / (k * k)) * ((l / t_m) / (t_m * t_m)));
                                                                                        }
                                                                                        
                                                                                        t\_m = math.fabs(t)
                                                                                        t\_s = math.copysign(1.0, t)
                                                                                        def code(t_s, t_m, l, k):
                                                                                        	return t_s * ((l / (k * k)) * ((l / t_m) / (t_m * t_m)))
                                                                                        
                                                                                        t\_m = abs(t)
                                                                                        t\_s = copysign(1.0, t)
                                                                                        function code(t_s, t_m, l, k)
                                                                                        	return Float64(t_s * Float64(Float64(l / Float64(k * k)) * Float64(Float64(l / t_m) / Float64(t_m * t_m))))
                                                                                        end
                                                                                        
                                                                                        t\_m = abs(t);
                                                                                        t\_s = sign(t) * abs(1.0);
                                                                                        function tmp = code(t_s, t_m, l, k)
                                                                                        	tmp = t_s * ((l / (k * k)) * ((l / t_m) / (t_m * t_m)));
                                                                                        end
                                                                                        
                                                                                        t\_m = N[Abs[t], $MachinePrecision]
                                                                                        t\_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[t]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
                                                                                        code[t$95$s_, t$95$m_, l_, k_] := N[(t$95$s * N[(N[(l / N[(k * k), $MachinePrecision]), $MachinePrecision] * N[(N[(l / t$95$m), $MachinePrecision] / N[(t$95$m * t$95$m), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
                                                                                        
                                                                                        \begin{array}{l}
                                                                                        t\_m = \left|t\right|
                                                                                        \\
                                                                                        t\_s = \mathsf{copysign}\left(1, t\right)
                                                                                        
                                                                                        \\
                                                                                        t\_s \cdot \left(\frac{\ell}{k \cdot k} \cdot \frac{\frac{\ell}{t\_m}}{t\_m \cdot t\_m}\right)
                                                                                        \end{array}
                                                                                        
                                                                                        Derivation
                                                                                        1. Initial program 52.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 inf

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                                                            \[\leadsto \frac{\ell}{k \cdot k} \cdot \frac{\ell}{\color{blue}{{t}^{3}}} \]
                                                                                        8. Applied rewrites52.5%

                                                                                          \[\leadsto \color{blue}{\frac{\ell}{k \cdot k} \cdot \frac{\ell}{{t}^{3}}} \]
                                                                                        9. Step-by-step derivation
                                                                                          1. Applied rewrites53.7%

                                                                                            \[\leadsto \frac{\ell}{k \cdot k} \cdot \frac{\frac{\ell}{t}}{\color{blue}{t \cdot t}} \]
                                                                                          2. Add Preprocessing

                                                                                          Reproduce

                                                                                          ?
                                                                                          herbie shell --seed 2024296 
                                                                                          (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))))