Toniolo and Linder, Equation (10-)

Percentage Accurate: 35.6% → 98.6%
Time: 13.6s
Alternatives: 9
Speedup: 9.6×

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 9 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: 35.6% 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: 98.6% accurate, 1.8× speedup?

\[\begin{array}{l} \\ \frac{2}{\left(\frac{\sin k}{\ell} \cdot k\right) \cdot \left(\left(\frac{k}{\ell} \cdot t\right) \cdot \tan k\right)} \end{array} \]
(FPCore (t l k)
 :precision binary64
 (/ 2.0 (* (* (/ (sin k) l) k) (* (* (/ k l) t) (tan k)))))
double code(double t, double l, double k) {
	return 2.0 / (((sin(k) / l) * k) * (((k / l) * t) * tan(k)));
}
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 / (((sin(k) / l) * k) * (((k / l) * t) * tan(k)))
end function
public static double code(double t, double l, double k) {
	return 2.0 / (((Math.sin(k) / l) * k) * (((k / l) * t) * Math.tan(k)));
}
def code(t, l, k):
	return 2.0 / (((math.sin(k) / l) * k) * (((k / l) * t) * math.tan(k)))
function code(t, l, k)
	return Float64(2.0 / Float64(Float64(Float64(sin(k) / l) * k) * Float64(Float64(Float64(k / l) * t) * tan(k))))
end
function tmp = code(t, l, k)
	tmp = 2.0 / (((sin(k) / l) * k) * (((k / l) * t) * tan(k)));
end
code[t_, l_, k_] := N[(2.0 / N[(N[(N[(N[Sin[k], $MachinePrecision] / l), $MachinePrecision] * k), $MachinePrecision] * N[(N[(N[(k / l), $MachinePrecision] * t), $MachinePrecision] * N[Tan[k], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}

\\
\frac{2}{\left(\frac{\sin k}{\ell} \cdot k\right) \cdot \left(\left(\frac{k}{\ell} \cdot t\right) \cdot \tan k\right)}
\end{array}
Derivation
  1. Initial program 31.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 t around 0

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

          \[\leadsto \frac{2}{\left(\frac{\sin k}{\ell} \cdot k\right) \cdot \left(\left(\frac{k}{\ell} \cdot t\right) \cdot \tan k\right)} \]
        3. Add Preprocessing

        Alternative 2: 85.3% accurate, 1.8× speedup?

        \[\begin{array}{l} \\ \begin{array}{l} t_1 := \frac{k}{\ell} \cdot k\\ \mathbf{if}\;k \leq 3.8 \cdot 10^{-106}:\\ \;\;\;\;\frac{2}{\left(t\_1 \cdot t\right) \cdot t\_1}\\ \mathbf{else}:\\ \;\;\;\;\frac{2}{\left(\left(\frac{\frac{k}{\ell} \cdot t}{\ell} \cdot \tan k\right) \cdot \sin k\right) \cdot k}\\ \end{array} \end{array} \]
        (FPCore (t l k)
         :precision binary64
         (let* ((t_1 (* (/ k l) k)))
           (if (<= k 3.8e-106)
             (/ 2.0 (* (* t_1 t) t_1))
             (/ 2.0 (* (* (* (/ (* (/ k l) t) l) (tan k)) (sin k)) k)))))
        double code(double t, double l, double k) {
        	double t_1 = (k / l) * k;
        	double tmp;
        	if (k <= 3.8e-106) {
        		tmp = 2.0 / ((t_1 * t) * t_1);
        	} else {
        		tmp = 2.0 / ((((((k / l) * t) / l) * tan(k)) * sin(k)) * k);
        	}
        	return tmp;
        }
        
        real(8) function code(t, l, k)
            real(8), intent (in) :: t
            real(8), intent (in) :: l
            real(8), intent (in) :: k
            real(8) :: t_1
            real(8) :: tmp
            t_1 = (k / l) * k
            if (k <= 3.8d-106) then
                tmp = 2.0d0 / ((t_1 * t) * t_1)
            else
                tmp = 2.0d0 / ((((((k / l) * t) / l) * tan(k)) * sin(k)) * k)
            end if
            code = tmp
        end function
        
        public static double code(double t, double l, double k) {
        	double t_1 = (k / l) * k;
        	double tmp;
        	if (k <= 3.8e-106) {
        		tmp = 2.0 / ((t_1 * t) * t_1);
        	} else {
        		tmp = 2.0 / ((((((k / l) * t) / l) * Math.tan(k)) * Math.sin(k)) * k);
        	}
        	return tmp;
        }
        
        def code(t, l, k):
        	t_1 = (k / l) * k
        	tmp = 0
        	if k <= 3.8e-106:
        		tmp = 2.0 / ((t_1 * t) * t_1)
        	else:
        		tmp = 2.0 / ((((((k / l) * t) / l) * math.tan(k)) * math.sin(k)) * k)
        	return tmp
        
        function code(t, l, k)
        	t_1 = Float64(Float64(k / l) * k)
        	tmp = 0.0
        	if (k <= 3.8e-106)
        		tmp = Float64(2.0 / Float64(Float64(t_1 * t) * t_1));
        	else
        		tmp = Float64(2.0 / Float64(Float64(Float64(Float64(Float64(Float64(k / l) * t) / l) * tan(k)) * sin(k)) * k));
        	end
        	return tmp
        end
        
        function tmp_2 = code(t, l, k)
        	t_1 = (k / l) * k;
        	tmp = 0.0;
        	if (k <= 3.8e-106)
        		tmp = 2.0 / ((t_1 * t) * t_1);
        	else
        		tmp = 2.0 / ((((((k / l) * t) / l) * tan(k)) * sin(k)) * k);
        	end
        	tmp_2 = tmp;
        end
        
        code[t_, l_, k_] := Block[{t$95$1 = N[(N[(k / l), $MachinePrecision] * k), $MachinePrecision]}, If[LessEqual[k, 3.8e-106], N[(2.0 / N[(N[(t$95$1 * t), $MachinePrecision] * t$95$1), $MachinePrecision]), $MachinePrecision], N[(2.0 / N[(N[(N[(N[(N[(N[(k / l), $MachinePrecision] * t), $MachinePrecision] / l), $MachinePrecision] * N[Tan[k], $MachinePrecision]), $MachinePrecision] * N[Sin[k], $MachinePrecision]), $MachinePrecision] * k), $MachinePrecision]), $MachinePrecision]]]
        
        \begin{array}{l}
        
        \\
        \begin{array}{l}
        t_1 := \frac{k}{\ell} \cdot k\\
        \mathbf{if}\;k \leq 3.8 \cdot 10^{-106}:\\
        \;\;\;\;\frac{2}{\left(t\_1 \cdot t\right) \cdot t\_1}\\
        
        \mathbf{else}:\\
        \;\;\;\;\frac{2}{\left(\left(\frac{\frac{k}{\ell} \cdot t}{\ell} \cdot \tan k\right) \cdot \sin k\right) \cdot k}\\
        
        
        \end{array}
        \end{array}
        
        Derivation
        1. Split input into 2 regimes
        2. if k < 3.7999999999999999e-106

          1. Initial program 32.5%

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

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

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

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

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

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

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

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

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

              \[\leadsto \frac{2}{\frac{\color{blue}{\frac{{k}^{4}}{\ell}}}{\ell} \cdot t} \]
            9. lower-pow.f6471.0

              \[\leadsto \frac{2}{\frac{\frac{\color{blue}{{k}^{4}}}{\ell}}{\ell} \cdot t} \]
          5. Applied rewrites71.0%

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

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

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

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

                if 3.7999999999999999e-106 < k

                1. Initial program 28.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 t around 0

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                    Alternative 3: 82.3% accurate, 1.8× speedup?

                    \[\begin{array}{l} \\ \begin{array}{l} t_1 := \frac{k}{\ell} \cdot k\\ \mathbf{if}\;k \leq 6 \cdot 10^{-6}:\\ \;\;\;\;\frac{2}{\left(t\_1 \cdot t\right) \cdot t\_1}\\ \mathbf{else}:\\ \;\;\;\;\frac{2}{\left(\left(\sin k \cdot \tan k\right) \cdot \frac{k \cdot t}{\ell \cdot \ell}\right) \cdot k}\\ \end{array} \end{array} \]
                    (FPCore (t l k)
                     :precision binary64
                     (let* ((t_1 (* (/ k l) k)))
                       (if (<= k 6e-6)
                         (/ 2.0 (* (* t_1 t) t_1))
                         (/ 2.0 (* (* (* (sin k) (tan k)) (/ (* k t) (* l l))) k)))))
                    double code(double t, double l, double k) {
                    	double t_1 = (k / l) * k;
                    	double tmp;
                    	if (k <= 6e-6) {
                    		tmp = 2.0 / ((t_1 * t) * t_1);
                    	} else {
                    		tmp = 2.0 / (((sin(k) * tan(k)) * ((k * t) / (l * l))) * k);
                    	}
                    	return tmp;
                    }
                    
                    real(8) function code(t, l, k)
                        real(8), intent (in) :: t
                        real(8), intent (in) :: l
                        real(8), intent (in) :: k
                        real(8) :: t_1
                        real(8) :: tmp
                        t_1 = (k / l) * k
                        if (k <= 6d-6) then
                            tmp = 2.0d0 / ((t_1 * t) * t_1)
                        else
                            tmp = 2.0d0 / (((sin(k) * tan(k)) * ((k * t) / (l * l))) * k)
                        end if
                        code = tmp
                    end function
                    
                    public static double code(double t, double l, double k) {
                    	double t_1 = (k / l) * k;
                    	double tmp;
                    	if (k <= 6e-6) {
                    		tmp = 2.0 / ((t_1 * t) * t_1);
                    	} else {
                    		tmp = 2.0 / (((Math.sin(k) * Math.tan(k)) * ((k * t) / (l * l))) * k);
                    	}
                    	return tmp;
                    }
                    
                    def code(t, l, k):
                    	t_1 = (k / l) * k
                    	tmp = 0
                    	if k <= 6e-6:
                    		tmp = 2.0 / ((t_1 * t) * t_1)
                    	else:
                    		tmp = 2.0 / (((math.sin(k) * math.tan(k)) * ((k * t) / (l * l))) * k)
                    	return tmp
                    
                    function code(t, l, k)
                    	t_1 = Float64(Float64(k / l) * k)
                    	tmp = 0.0
                    	if (k <= 6e-6)
                    		tmp = Float64(2.0 / Float64(Float64(t_1 * t) * t_1));
                    	else
                    		tmp = Float64(2.0 / Float64(Float64(Float64(sin(k) * tan(k)) * Float64(Float64(k * t) / Float64(l * l))) * k));
                    	end
                    	return tmp
                    end
                    
                    function tmp_2 = code(t, l, k)
                    	t_1 = (k / l) * k;
                    	tmp = 0.0;
                    	if (k <= 6e-6)
                    		tmp = 2.0 / ((t_1 * t) * t_1);
                    	else
                    		tmp = 2.0 / (((sin(k) * tan(k)) * ((k * t) / (l * l))) * k);
                    	end
                    	tmp_2 = tmp;
                    end
                    
                    code[t_, l_, k_] := Block[{t$95$1 = N[(N[(k / l), $MachinePrecision] * k), $MachinePrecision]}, If[LessEqual[k, 6e-6], N[(2.0 / N[(N[(t$95$1 * t), $MachinePrecision] * t$95$1), $MachinePrecision]), $MachinePrecision], N[(2.0 / N[(N[(N[(N[Sin[k], $MachinePrecision] * N[Tan[k], $MachinePrecision]), $MachinePrecision] * N[(N[(k * t), $MachinePrecision] / N[(l * l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * k), $MachinePrecision]), $MachinePrecision]]]
                    
                    \begin{array}{l}
                    
                    \\
                    \begin{array}{l}
                    t_1 := \frac{k}{\ell} \cdot k\\
                    \mathbf{if}\;k \leq 6 \cdot 10^{-6}:\\
                    \;\;\;\;\frac{2}{\left(t\_1 \cdot t\right) \cdot t\_1}\\
                    
                    \mathbf{else}:\\
                    \;\;\;\;\frac{2}{\left(\left(\sin k \cdot \tan k\right) \cdot \frac{k \cdot t}{\ell \cdot \ell}\right) \cdot k}\\
                    
                    
                    \end{array}
                    \end{array}
                    
                    Derivation
                    1. Split input into 2 regimes
                    2. if k < 6.0000000000000002e-6

                      1. Initial program 31.9%

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

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

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

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

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

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

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

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

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

                          \[\leadsto \frac{2}{\frac{\color{blue}{\frac{{k}^{4}}{\ell}}}{\ell} \cdot t} \]
                        9. lower-pow.f6471.4

                          \[\leadsto \frac{2}{\frac{\frac{\color{blue}{{k}^{4}}}{\ell}}{\ell} \cdot t} \]
                      5. Applied rewrites71.4%

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

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

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

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

                            if 6.0000000000000002e-6 < k

                            1. Initial program 28.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 t around 0

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                Alternative 4: 97.2% accurate, 1.8× speedup?

                                \[\begin{array}{l} \\ \frac{2}{\left(\left(\left(\frac{k}{\ell} \cdot t\right) \cdot \frac{k}{\ell}\right) \cdot \sin k\right) \cdot \tan k} \end{array} \]
                                (FPCore (t l k)
                                 :precision binary64
                                 (/ 2.0 (* (* (* (* (/ k l) t) (/ k l)) (sin k)) (tan k))))
                                double code(double t, double l, double k) {
                                	return 2.0 / (((((k / l) * t) * (k / l)) * sin(k)) * tan(k));
                                }
                                
                                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 / (((((k / l) * t) * (k / l)) * sin(k)) * tan(k))
                                end function
                                
                                public static double code(double t, double l, double k) {
                                	return 2.0 / (((((k / l) * t) * (k / l)) * Math.sin(k)) * Math.tan(k));
                                }
                                
                                def code(t, l, k):
                                	return 2.0 / (((((k / l) * t) * (k / l)) * math.sin(k)) * math.tan(k))
                                
                                function code(t, l, k)
                                	return Float64(2.0 / Float64(Float64(Float64(Float64(Float64(k / l) * t) * Float64(k / l)) * sin(k)) * tan(k)))
                                end
                                
                                function tmp = code(t, l, k)
                                	tmp = 2.0 / (((((k / l) * t) * (k / l)) * sin(k)) * tan(k));
                                end
                                
                                code[t_, l_, k_] := N[(2.0 / N[(N[(N[(N[(N[(k / l), $MachinePrecision] * t), $MachinePrecision] * N[(k / l), $MachinePrecision]), $MachinePrecision] * N[Sin[k], $MachinePrecision]), $MachinePrecision] * N[Tan[k], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
                                
                                \begin{array}{l}
                                
                                \\
                                \frac{2}{\left(\left(\left(\frac{k}{\ell} \cdot t\right) \cdot \frac{k}{\ell}\right) \cdot \sin k\right) \cdot \tan k}
                                \end{array}
                                
                                Derivation
                                1. Initial program 31.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 t around 0

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                        \[\leadsto \frac{2}{\left(\left(\left(\frac{k}{\ell} \cdot t\right) \cdot \frac{k}{\ell}\right) \cdot \sin k\right) \cdot \tan k} \]
                                      3. Add Preprocessing

                                      Alternative 5: 76.0% accurate, 8.6× speedup?

                                      \[\begin{array}{l} \\ \begin{array}{l} t_1 := \frac{k}{\ell} \cdot k\\ \frac{2}{\left(t\_1 \cdot t\right) \cdot t\_1} \end{array} \end{array} \]
                                      (FPCore (t l k)
                                       :precision binary64
                                       (let* ((t_1 (* (/ k l) k))) (/ 2.0 (* (* t_1 t) t_1))))
                                      double code(double t, double l, double k) {
                                      	double t_1 = (k / l) * k;
                                      	return 2.0 / ((t_1 * t) * t_1);
                                      }
                                      
                                      real(8) function code(t, l, k)
                                          real(8), intent (in) :: t
                                          real(8), intent (in) :: l
                                          real(8), intent (in) :: k
                                          real(8) :: t_1
                                          t_1 = (k / l) * k
                                          code = 2.0d0 / ((t_1 * t) * t_1)
                                      end function
                                      
                                      public static double code(double t, double l, double k) {
                                      	double t_1 = (k / l) * k;
                                      	return 2.0 / ((t_1 * t) * t_1);
                                      }
                                      
                                      def code(t, l, k):
                                      	t_1 = (k / l) * k
                                      	return 2.0 / ((t_1 * t) * t_1)
                                      
                                      function code(t, l, k)
                                      	t_1 = Float64(Float64(k / l) * k)
                                      	return Float64(2.0 / Float64(Float64(t_1 * t) * t_1))
                                      end
                                      
                                      function tmp = code(t, l, k)
                                      	t_1 = (k / l) * k;
                                      	tmp = 2.0 / ((t_1 * t) * t_1);
                                      end
                                      
                                      code[t_, l_, k_] := Block[{t$95$1 = N[(N[(k / l), $MachinePrecision] * k), $MachinePrecision]}, N[(2.0 / N[(N[(t$95$1 * t), $MachinePrecision] * t$95$1), $MachinePrecision]), $MachinePrecision]]
                                      
                                      \begin{array}{l}
                                      
                                      \\
                                      \begin{array}{l}
                                      t_1 := \frac{k}{\ell} \cdot k\\
                                      \frac{2}{\left(t\_1 \cdot t\right) \cdot t\_1}
                                      \end{array}
                                      \end{array}
                                      
                                      Derivation
                                      1. Initial program 31.2%

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

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

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

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

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

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

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

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

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

                                          \[\leadsto \frac{2}{\frac{\color{blue}{\frac{{k}^{4}}{\ell}}}{\ell} \cdot t} \]
                                        9. lower-pow.f6470.0

                                          \[\leadsto \frac{2}{\frac{\frac{\color{blue}{{k}^{4}}}{\ell}}{\ell} \cdot t} \]
                                      5. Applied rewrites70.0%

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

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

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

                                              \[\leadsto \frac{2}{\left(\frac{k}{\ell} \cdot k\right) \cdot \color{blue}{\left(\left(\frac{k}{\ell} \cdot k\right) \cdot t\right)}} \]
                                            2. Final simplification77.8%

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

                                            Alternative 6: 71.5% accurate, 8.6× speedup?

                                            \[\begin{array}{l} \\ \frac{2}{\left(\left(\frac{k}{\ell} \cdot \frac{k}{\ell}\right) \cdot \left(k \cdot k\right)\right) \cdot t} \end{array} \]
                                            (FPCore (t l k)
                                             :precision binary64
                                             (/ 2.0 (* (* (* (/ k l) (/ k l)) (* k k)) t)))
                                            double code(double t, double l, double k) {
                                            	return 2.0 / ((((k / l) * (k / l)) * (k * k)) * t);
                                            }
                                            
                                            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 / ((((k / l) * (k / l)) * (k * k)) * t)
                                            end function
                                            
                                            public static double code(double t, double l, double k) {
                                            	return 2.0 / ((((k / l) * (k / l)) * (k * k)) * t);
                                            }
                                            
                                            def code(t, l, k):
                                            	return 2.0 / ((((k / l) * (k / l)) * (k * k)) * t)
                                            
                                            function code(t, l, k)
                                            	return Float64(2.0 / Float64(Float64(Float64(Float64(k / l) * Float64(k / l)) * Float64(k * k)) * t))
                                            end
                                            
                                            function tmp = code(t, l, k)
                                            	tmp = 2.0 / ((((k / l) * (k / l)) * (k * k)) * t);
                                            end
                                            
                                            code[t_, l_, k_] := N[(2.0 / N[(N[(N[(N[(k / l), $MachinePrecision] * N[(k / l), $MachinePrecision]), $MachinePrecision] * N[(k * k), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision]), $MachinePrecision]
                                            
                                            \begin{array}{l}
                                            
                                            \\
                                            \frac{2}{\left(\left(\frac{k}{\ell} \cdot \frac{k}{\ell}\right) \cdot \left(k \cdot k\right)\right) \cdot t}
                                            \end{array}
                                            
                                            Derivation
                                            1. Initial program 31.2%

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

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

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

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

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

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

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

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

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

                                                \[\leadsto \frac{2}{\frac{\color{blue}{\frac{{k}^{4}}{\ell}}}{\ell} \cdot t} \]
                                              9. lower-pow.f6470.0

                                                \[\leadsto \frac{2}{\frac{\frac{\color{blue}{{k}^{4}}}{\ell}}{\ell} \cdot t} \]
                                            5. Applied rewrites70.0%

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

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

                                                  \[\leadsto \frac{2}{\left(\left(k \cdot k\right) \cdot \left(\frac{k}{\ell} \cdot \frac{k}{\ell}\right)\right) \cdot t} \]
                                                2. Final simplification71.6%

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

                                                Alternative 7: 69.8% accurate, 8.6× speedup?

                                                \[\begin{array}{l} \\ \frac{2}{\left(\left(\frac{\frac{k}{\ell}}{\ell} \cdot k\right) \cdot \left(k \cdot k\right)\right) \cdot t} \end{array} \]
                                                (FPCore (t l k)
                                                 :precision binary64
                                                 (/ 2.0 (* (* (* (/ (/ k l) l) k) (* k k)) t)))
                                                double code(double t, double l, double k) {
                                                	return 2.0 / (((((k / l) / l) * k) * (k * k)) * t);
                                                }
                                                
                                                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 / (((((k / l) / l) * k) * (k * k)) * t)
                                                end function
                                                
                                                public static double code(double t, double l, double k) {
                                                	return 2.0 / (((((k / l) / l) * k) * (k * k)) * t);
                                                }
                                                
                                                def code(t, l, k):
                                                	return 2.0 / (((((k / l) / l) * k) * (k * k)) * t)
                                                
                                                function code(t, l, k)
                                                	return Float64(2.0 / Float64(Float64(Float64(Float64(Float64(k / l) / l) * k) * Float64(k * k)) * t))
                                                end
                                                
                                                function tmp = code(t, l, k)
                                                	tmp = 2.0 / (((((k / l) / l) * k) * (k * k)) * t);
                                                end
                                                
                                                code[t_, l_, k_] := N[(2.0 / N[(N[(N[(N[(N[(k / l), $MachinePrecision] / l), $MachinePrecision] * k), $MachinePrecision] * N[(k * k), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision]), $MachinePrecision]
                                                
                                                \begin{array}{l}
                                                
                                                \\
                                                \frac{2}{\left(\left(\frac{\frac{k}{\ell}}{\ell} \cdot k\right) \cdot \left(k \cdot k\right)\right) \cdot t}
                                                \end{array}
                                                
                                                Derivation
                                                1. Initial program 31.2%

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

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

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

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

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

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

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

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

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

                                                    \[\leadsto \frac{2}{\frac{\color{blue}{\frac{{k}^{4}}{\ell}}}{\ell} \cdot t} \]
                                                  9. lower-pow.f6470.0

                                                    \[\leadsto \frac{2}{\frac{\frac{\color{blue}{{k}^{4}}}{\ell}}{\ell} \cdot t} \]
                                                5. Applied rewrites70.0%

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

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

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

                                                        \[\leadsto \frac{2}{\left(\left(k \cdot k\right) \cdot \left(k \cdot \frac{\frac{k}{\ell}}{\ell}\right)\right) \cdot t} \]
                                                      2. Final simplification67.7%

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

                                                      Alternative 8: 64.4% accurate, 9.6× speedup?

                                                      \[\begin{array}{l} \\ \frac{2}{\left(\frac{k \cdot k}{\ell \cdot \ell} \cdot \left(k \cdot k\right)\right) \cdot t} \end{array} \]
                                                      (FPCore (t l k)
                                                       :precision binary64
                                                       (/ 2.0 (* (* (/ (* k k) (* l l)) (* k k)) t)))
                                                      double code(double t, double l, double k) {
                                                      	return 2.0 / ((((k * k) / (l * l)) * (k * k)) * t);
                                                      }
                                                      
                                                      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 / ((((k * k) / (l * l)) * (k * k)) * t)
                                                      end function
                                                      
                                                      public static double code(double t, double l, double k) {
                                                      	return 2.0 / ((((k * k) / (l * l)) * (k * k)) * t);
                                                      }
                                                      
                                                      def code(t, l, k):
                                                      	return 2.0 / ((((k * k) / (l * l)) * (k * k)) * t)
                                                      
                                                      function code(t, l, k)
                                                      	return Float64(2.0 / Float64(Float64(Float64(Float64(k * k) / Float64(l * l)) * Float64(k * k)) * t))
                                                      end
                                                      
                                                      function tmp = code(t, l, k)
                                                      	tmp = 2.0 / ((((k * k) / (l * l)) * (k * k)) * t);
                                                      end
                                                      
                                                      code[t_, l_, k_] := N[(2.0 / N[(N[(N[(N[(k * k), $MachinePrecision] / N[(l * l), $MachinePrecision]), $MachinePrecision] * N[(k * k), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision]), $MachinePrecision]
                                                      
                                                      \begin{array}{l}
                                                      
                                                      \\
                                                      \frac{2}{\left(\frac{k \cdot k}{\ell \cdot \ell} \cdot \left(k \cdot k\right)\right) \cdot t}
                                                      \end{array}
                                                      
                                                      Derivation
                                                      1. Initial program 31.2%

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

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

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

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

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

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

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

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

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

                                                          \[\leadsto \frac{2}{\frac{\color{blue}{\frac{{k}^{4}}{\ell}}}{\ell} \cdot t} \]
                                                        9. lower-pow.f6470.0

                                                          \[\leadsto \frac{2}{\frac{\frac{\color{blue}{{k}^{4}}}{\ell}}{\ell} \cdot t} \]
                                                      5. Applied rewrites70.0%

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

                                                          \[\leadsto \frac{2}{\left(\left(k \cdot k\right) \cdot \frac{k \cdot k}{\ell \cdot \ell}\right) \cdot t} \]
                                                        2. Final simplification61.6%

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

                                                        Alternative 9: 60.9% accurate, 9.6× speedup?

                                                        \[\begin{array}{l} \\ \frac{\ell \cdot \ell}{t} \cdot \frac{2}{\left(k \cdot k\right) \cdot \left(k \cdot k\right)} \end{array} \]
                                                        (FPCore (t l k)
                                                         :precision binary64
                                                         (* (/ (* l l) t) (/ 2.0 (* (* k k) (* k k)))))
                                                        double code(double t, double l, double k) {
                                                        	return ((l * l) / t) * (2.0 / ((k * k) * (k * k)));
                                                        }
                                                        
                                                        real(8) function code(t, l, k)
                                                            real(8), intent (in) :: t
                                                            real(8), intent (in) :: l
                                                            real(8), intent (in) :: k
                                                            code = ((l * l) / t) * (2.0d0 / ((k * k) * (k * k)))
                                                        end function
                                                        
                                                        public static double code(double t, double l, double k) {
                                                        	return ((l * l) / t) * (2.0 / ((k * k) * (k * k)));
                                                        }
                                                        
                                                        def code(t, l, k):
                                                        	return ((l * l) / t) * (2.0 / ((k * k) * (k * k)))
                                                        
                                                        function code(t, l, k)
                                                        	return Float64(Float64(Float64(l * l) / t) * Float64(2.0 / Float64(Float64(k * k) * Float64(k * k))))
                                                        end
                                                        
                                                        function tmp = code(t, l, k)
                                                        	tmp = ((l * l) / t) * (2.0 / ((k * k) * (k * k)));
                                                        end
                                                        
                                                        code[t_, l_, k_] := N[(N[(N[(l * l), $MachinePrecision] / t), $MachinePrecision] * N[(2.0 / N[(N[(k * k), $MachinePrecision] * N[(k * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
                                                        
                                                        \begin{array}{l}
                                                        
                                                        \\
                                                        \frac{\ell \cdot \ell}{t} \cdot \frac{2}{\left(k \cdot k\right) \cdot \left(k \cdot k\right)}
                                                        \end{array}
                                                        
                                                        Derivation
                                                        1. Initial program 31.2%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                            \[\leadsto \frac{2}{{k}^{4}} \cdot \frac{\color{blue}{\ell \cdot \ell}}{t} \]
                                                          8. lower-*.f6459.8

                                                            \[\leadsto \frac{2}{{k}^{4}} \cdot \frac{\color{blue}{\ell \cdot \ell}}{t} \]
                                                        7. Applied rewrites59.8%

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

                                                            \[\leadsto \frac{2}{\left(k \cdot k\right) \cdot \left(k \cdot k\right)} \cdot \frac{\ell \cdot \color{blue}{\ell}}{t} \]
                                                          2. Final simplification59.8%

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

                                                          Reproduce

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