Toniolo and Linder, Equation (10-)

Percentage Accurate: 35.4% → 98.6%
Time: 11.1s
Alternatives: 6
Speedup: 8.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 6 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.4% 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(\tan k \cdot \frac{t \cdot \sin k}{\frac{\ell}{k}}\right) \cdot \frac{k}{\ell}} \end{array} \]
(FPCore (t l k)
 :precision binary64
 (/ 2.0 (* (* (tan k) (/ (* t (sin k)) (/ l k))) (/ k l))))
double code(double t, double l, double k) {
	return 2.0 / ((tan(k) * ((t * sin(k)) / (l / k))) * (k / l));
}
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 / ((tan(k) * ((t * sin(k)) / (l / k))) * (k / l))
end function
public static double code(double t, double l, double k) {
	return 2.0 / ((Math.tan(k) * ((t * Math.sin(k)) / (l / k))) * (k / l));
}
def code(t, l, k):
	return 2.0 / ((math.tan(k) * ((t * math.sin(k)) / (l / k))) * (k / l))
function code(t, l, k)
	return Float64(2.0 / Float64(Float64(tan(k) * Float64(Float64(t * sin(k)) / Float64(l / k))) * Float64(k / l)))
end
function tmp = code(t, l, k)
	tmp = 2.0 / ((tan(k) * ((t * sin(k)) / (l / k))) * (k / l));
end
code[t_, l_, k_] := N[(2.0 / N[(N[(N[Tan[k], $MachinePrecision] * N[(N[(t * N[Sin[k], $MachinePrecision]), $MachinePrecision] / N[(l / k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(k / l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}

\\
\frac{2}{\left(\tan k \cdot \frac{t \cdot \sin k}{\frac{\ell}{k}}\right) \cdot \frac{k}{\ell}}
\end{array}
Derivation
  1. Initial program 38.0%

    \[\frac{2}{\left(\left(\frac{{t}^{3}}{\ell \cdot \ell} \cdot \sin k\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) - 1\right)} \]
  2. Add Preprocessing
  3. Taylor expanded in t around 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 rewrites92.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 rewrites96.3%

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

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

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

        Alternative 2: 85.7% accurate, 1.8× speedup?

        \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;k \leq 3.1 \cdot 10^{-89}:\\ \;\;\;\;\frac{2}{{\left(\frac{\frac{\frac{\ell}{k}}{k}}{\left(\frac{k}{\ell} \cdot k\right) \cdot t}\right)}^{-1}}\\ \mathbf{else}:\\ \;\;\;\;\frac{2}{\left(\left(\frac{t}{\ell} \cdot k\right) \cdot \left(\tan k \cdot \sin k\right)\right) \cdot \frac{k}{\ell}}\\ \end{array} \end{array} \]
        (FPCore (t l k)
         :precision binary64
         (if (<= k 3.1e-89)
           (/ 2.0 (pow (/ (/ (/ l k) k) (* (* (/ k l) k) t)) -1.0))
           (/ 2.0 (* (* (* (/ t l) k) (* (tan k) (sin k))) (/ k l)))))
        double code(double t, double l, double k) {
        	double tmp;
        	if (k <= 3.1e-89) {
        		tmp = 2.0 / pow((((l / k) / k) / (((k / l) * k) * t)), -1.0);
        	} else {
        		tmp = 2.0 / ((((t / l) * k) * (tan(k) * sin(k))) * (k / l));
        	}
        	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) :: tmp
            if (k <= 3.1d-89) then
                tmp = 2.0d0 / ((((l / k) / k) / (((k / l) * k) * t)) ** (-1.0d0))
            else
                tmp = 2.0d0 / ((((t / l) * k) * (tan(k) * sin(k))) * (k / l))
            end if
            code = tmp
        end function
        
        public static double code(double t, double l, double k) {
        	double tmp;
        	if (k <= 3.1e-89) {
        		tmp = 2.0 / Math.pow((((l / k) / k) / (((k / l) * k) * t)), -1.0);
        	} else {
        		tmp = 2.0 / ((((t / l) * k) * (Math.tan(k) * Math.sin(k))) * (k / l));
        	}
        	return tmp;
        }
        
        def code(t, l, k):
        	tmp = 0
        	if k <= 3.1e-89:
        		tmp = 2.0 / math.pow((((l / k) / k) / (((k / l) * k) * t)), -1.0)
        	else:
        		tmp = 2.0 / ((((t / l) * k) * (math.tan(k) * math.sin(k))) * (k / l))
        	return tmp
        
        function code(t, l, k)
        	tmp = 0.0
        	if (k <= 3.1e-89)
        		tmp = Float64(2.0 / (Float64(Float64(Float64(l / k) / k) / Float64(Float64(Float64(k / l) * k) * t)) ^ -1.0));
        	else
        		tmp = Float64(2.0 / Float64(Float64(Float64(Float64(t / l) * k) * Float64(tan(k) * sin(k))) * Float64(k / l)));
        	end
        	return tmp
        end
        
        function tmp_2 = code(t, l, k)
        	tmp = 0.0;
        	if (k <= 3.1e-89)
        		tmp = 2.0 / ((((l / k) / k) / (((k / l) * k) * t)) ^ -1.0);
        	else
        		tmp = 2.0 / ((((t / l) * k) * (tan(k) * sin(k))) * (k / l));
        	end
        	tmp_2 = tmp;
        end
        
        code[t_, l_, k_] := If[LessEqual[k, 3.1e-89], N[(2.0 / N[Power[N[(N[(N[(l / k), $MachinePrecision] / k), $MachinePrecision] / N[(N[(N[(k / l), $MachinePrecision] * k), $MachinePrecision] * t), $MachinePrecision]), $MachinePrecision], -1.0], $MachinePrecision]), $MachinePrecision], N[(2.0 / N[(N[(N[(N[(t / l), $MachinePrecision] * k), $MachinePrecision] * N[(N[Tan[k], $MachinePrecision] * N[Sin[k], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(k / l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
        
        \begin{array}{l}
        
        \\
        \begin{array}{l}
        \mathbf{if}\;k \leq 3.1 \cdot 10^{-89}:\\
        \;\;\;\;\frac{2}{{\left(\frac{\frac{\frac{\ell}{k}}{k}}{\left(\frac{k}{\ell} \cdot k\right) \cdot t}\right)}^{-1}}\\
        
        \mathbf{else}:\\
        \;\;\;\;\frac{2}{\left(\left(\frac{t}{\ell} \cdot k\right) \cdot \left(\tan k \cdot \sin k\right)\right) \cdot \frac{k}{\ell}}\\
        
        
        \end{array}
        \end{array}
        
        Derivation
        1. Split input into 2 regimes
        2. if k < 3.09999999999999996e-89

          1. Initial program 42.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}{\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.f6476.5

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

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

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

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

              if 3.09999999999999996e-89 < k

              1. Initial program 28.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 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 rewrites95.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.7%

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

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

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

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

                  Alternative 3: 95.3% accurate, 1.8× speedup?

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

                    \[\frac{2}{\left(\left(\frac{{t}^{3}}{\ell \cdot \ell} \cdot \sin k\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) - 1\right)} \]
                  2. Add Preprocessing
                  3. Taylor expanded in t around 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 rewrites92.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 rewrites96.3%

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

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

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

                        Alternative 4: 76.4% accurate, 7.0× speedup?

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

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

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

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

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

                            Alternative 5: 76.4% accurate, 8.6× speedup?

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

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

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

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

                                  \[\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. Add Preprocessing

                                Alternative 6: 76.0% accurate, 8.6× speedup?

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

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

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

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

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

                                    Reproduce

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