Average Error: 47.7 → 1.6
Time: 34.9s
Precision: binary64
Cost: 20488
\[\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)} \]
\[\begin{array}{l} t_1 := \frac{2}{\left(\frac{k}{\frac{\cos k}{\frac{{\sin k}^{2}}{\ell}}} \cdot t\right) \cdot \frac{k}{\ell}}\\ \mathbf{if}\;k \leq -1 \cdot 10^{-100}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;k \leq 10^{-150}:\\ \;\;\;\;\frac{{\left(\frac{\ell}{k}\right)}^{2} \cdot \frac{2}{k}}{k \cdot t}\\ \mathbf{else}:\\ \;\;\;\;t_1\\ \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))))
(FPCore (t l k)
 :precision binary64
 (let* ((t_1
         (/ 2.0 (* (* (/ k (/ (cos k) (/ (pow (sin k) 2.0) l))) t) (/ k l)))))
   (if (<= k -1e-100)
     t_1
     (if (<= k 1e-150) (/ (* (pow (/ l k) 2.0) (/ 2.0 k)) (* k t)) t_1))))
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));
}
double code(double t, double l, double k) {
	double t_1 = 2.0 / (((k / (cos(k) / (pow(sin(k), 2.0) / l))) * t) * (k / l));
	double tmp;
	if (k <= -1e-100) {
		tmp = t_1;
	} else if (k <= 1e-150) {
		tmp = (pow((l / k), 2.0) * (2.0 / k)) / (k * t);
	} else {
		tmp = t_1;
	}
	return tmp;
}
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
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 = 2.0d0 / (((k / (cos(k) / ((sin(k) ** 2.0d0) / l))) * t) * (k / l))
    if (k <= (-1d-100)) then
        tmp = t_1
    else if (k <= 1d-150) then
        tmp = (((l / k) ** 2.0d0) * (2.0d0 / k)) / (k * t)
    else
        tmp = t_1
    end if
    code = tmp
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));
}
public static double code(double t, double l, double k) {
	double t_1 = 2.0 / (((k / (Math.cos(k) / (Math.pow(Math.sin(k), 2.0) / l))) * t) * (k / l));
	double tmp;
	if (k <= -1e-100) {
		tmp = t_1;
	} else if (k <= 1e-150) {
		tmp = (Math.pow((l / k), 2.0) * (2.0 / k)) / (k * t);
	} else {
		tmp = t_1;
	}
	return tmp;
}
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))
def code(t, l, k):
	t_1 = 2.0 / (((k / (math.cos(k) / (math.pow(math.sin(k), 2.0) / l))) * t) * (k / l))
	tmp = 0
	if k <= -1e-100:
		tmp = t_1
	elif k <= 1e-150:
		tmp = (math.pow((l / k), 2.0) * (2.0 / k)) / (k * t)
	else:
		tmp = t_1
	return tmp
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 code(t, l, k)
	t_1 = Float64(2.0 / Float64(Float64(Float64(k / Float64(cos(k) / Float64((sin(k) ^ 2.0) / l))) * t) * Float64(k / l)))
	tmp = 0.0
	if (k <= -1e-100)
		tmp = t_1;
	elseif (k <= 1e-150)
		tmp = Float64(Float64((Float64(l / k) ^ 2.0) * Float64(2.0 / k)) / Float64(k * t));
	else
		tmp = t_1;
	end
	return tmp
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
function tmp_2 = code(t, l, k)
	t_1 = 2.0 / (((k / (cos(k) / ((sin(k) ^ 2.0) / l))) * t) * (k / l));
	tmp = 0.0;
	if (k <= -1e-100)
		tmp = t_1;
	elseif (k <= 1e-150)
		tmp = (((l / k) ^ 2.0) * (2.0 / k)) / (k * t);
	else
		tmp = t_1;
	end
	tmp_2 = tmp;
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]
code[t_, l_, k_] := Block[{t$95$1 = N[(2.0 / N[(N[(N[(k / N[(N[Cos[k], $MachinePrecision] / N[(N[Power[N[Sin[k], $MachinePrecision], 2.0], $MachinePrecision] / l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision] * N[(k / l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[k, -1e-100], t$95$1, If[LessEqual[k, 1e-150], N[(N[(N[Power[N[(l / k), $MachinePrecision], 2.0], $MachinePrecision] * N[(2.0 / k), $MachinePrecision]), $MachinePrecision] / N[(k * t), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\frac{2}{\left(\left(\frac{{t}^{3}}{\ell \cdot \ell} \cdot \sin k\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) - 1\right)}
\begin{array}{l}
t_1 := \frac{2}{\left(\frac{k}{\frac{\cos k}{\frac{{\sin k}^{2}}{\ell}}} \cdot t\right) \cdot \frac{k}{\ell}}\\
\mathbf{if}\;k \leq -1 \cdot 10^{-100}:\\
\;\;\;\;t_1\\

\mathbf{elif}\;k \leq 10^{-150}:\\
\;\;\;\;\frac{{\left(\frac{\ell}{k}\right)}^{2} \cdot \frac{2}{k}}{k \cdot t}\\

\mathbf{else}:\\
\;\;\;\;t_1\\


\end{array}

Error

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Split input into 2 regimes
  2. if k < -1e-100 or 1.00000000000000001e-150 < k

    1. Initial program 46.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. Taylor expanded in t around 0 20.9

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

      \[\leadsto \frac{2}{\color{blue}{\frac{\left(k \cdot k\right) \cdot t}{\cos k} \cdot \frac{{\sin k}^{2}}{\ell \cdot \ell}}} \]
      Proof
      (*.f64 (/.f64 (*.f64 (*.f64 k k) t) (cos.f64 k)) (/.f64 (pow.f64 (sin.f64 k) 2) (*.f64 l l))): 0 points increase in error, 0 points decrease in error
      (*.f64 (/.f64 (*.f64 (Rewrite<= unpow2_binary64 (pow.f64 k 2)) t) (cos.f64 k)) (/.f64 (pow.f64 (sin.f64 k) 2) (*.f64 l l))): 0 points increase in error, 1 points decrease in error
      (*.f64 (/.f64 (*.f64 (pow.f64 k 2) t) (cos.f64 k)) (/.f64 (pow.f64 (sin.f64 k) 2) (Rewrite<= unpow2_binary64 (pow.f64 l 2)))): 0 points increase in error, 0 points decrease in error
      (Rewrite<= times-frac_binary64 (/.f64 (*.f64 (*.f64 (pow.f64 k 2) t) (pow.f64 (sin.f64 k) 2)) (*.f64 (cos.f64 k) (pow.f64 l 2)))): 18 points increase in error, 8 points decrease in error
      (/.f64 (Rewrite<= associate-*r*_binary64 (*.f64 (pow.f64 k 2) (*.f64 t (pow.f64 (sin.f64 k) 2)))) (*.f64 (cos.f64 k) (pow.f64 l 2))): 5 points increase in error, 10 points decrease in error
      (/.f64 (*.f64 (pow.f64 k 2) (Rewrite<= *-commutative_binary64 (*.f64 (pow.f64 (sin.f64 k) 2) t))) (*.f64 (cos.f64 k) (pow.f64 l 2))): 0 points increase in error, 0 points decrease in error
    4. Applied egg-rr13.8

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

      \[\leadsto \frac{2}{\color{blue}{\frac{k \cdot \frac{{\sin k}^{2}}{\ell}}{\frac{\cos k}{t}} \cdot \frac{k}{\ell}}} \]
    6. Applied egg-rr1.2

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

    if -1e-100 < k < 1.00000000000000001e-150

    1. Initial program 64.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. Simplified63.3

      \[\leadsto \color{blue}{\frac{\frac{\frac{2}{\tan k}}{{t}^{3}}}{\sin k} \cdot \frac{\ell \cdot \ell}{{\left(\frac{k}{t}\right)}^{2}}} \]
      Proof
      (*.f64 (/.f64 (/.f64 (/.f64 2 (tan.f64 k)) (pow.f64 t 3)) (sin.f64 k)) (/.f64 (*.f64 l l) (pow.f64 (/.f64 k t) 2))): 0 points increase in error, 0 points decrease in error
      (*.f64 (Rewrite<= associate-/r*_binary64 (/.f64 (/.f64 2 (tan.f64 k)) (*.f64 (pow.f64 t 3) (sin.f64 k)))) (/.f64 (*.f64 l l) (pow.f64 (/.f64 k t) 2))): 1 points increase in error, 1 points decrease in error
      (*.f64 (Rewrite=> associate-/l/_binary64 (/.f64 2 (*.f64 (*.f64 (pow.f64 t 3) (sin.f64 k)) (tan.f64 k)))) (/.f64 (*.f64 l l) (pow.f64 (/.f64 k t) 2))): 1 points increase in error, 2 points decrease in error
      (*.f64 (/.f64 2 (Rewrite=> associate-*l*_binary64 (*.f64 (pow.f64 t 3) (*.f64 (sin.f64 k) (tan.f64 k))))) (/.f64 (*.f64 l l) (pow.f64 (/.f64 k t) 2))): 2 points increase in error, 1 points decrease in error
      (*.f64 (Rewrite=> associate-/r*_binary64 (/.f64 (/.f64 2 (pow.f64 t 3)) (*.f64 (sin.f64 k) (tan.f64 k)))) (/.f64 (*.f64 l l) (pow.f64 (/.f64 k t) 2))): 0 points increase in error, 0 points decrease in error
      (*.f64 (/.f64 (/.f64 2 (pow.f64 t 3)) (*.f64 (sin.f64 k) (tan.f64 k))) (/.f64 (*.f64 l l) (Rewrite<= +-rgt-identity_binary64 (+.f64 (pow.f64 (/.f64 k t) 2) 0)))): 0 points increase in error, 0 points decrease in error
      (*.f64 (/.f64 (/.f64 2 (pow.f64 t 3)) (*.f64 (sin.f64 k) (tan.f64 k))) (/.f64 (*.f64 l l) (+.f64 (pow.f64 (/.f64 k t) 2) (Rewrite<= metadata-eval (-.f64 1 1))))): 0 points increase in error, 0 points decrease in error
      (*.f64 (/.f64 (/.f64 2 (pow.f64 t 3)) (*.f64 (sin.f64 k) (tan.f64 k))) (/.f64 (*.f64 l l) (Rewrite<= associate--l+_binary64 (-.f64 (+.f64 (pow.f64 (/.f64 k t) 2) 1) 1)))): 28 points increase in error, 0 points decrease in error
      (*.f64 (/.f64 (/.f64 2 (pow.f64 t 3)) (*.f64 (sin.f64 k) (tan.f64 k))) (/.f64 (*.f64 l l) (-.f64 (Rewrite<= +-commutative_binary64 (+.f64 1 (pow.f64 (/.f64 k t) 2))) 1))): 0 points increase in error, 0 points decrease in error
      (Rewrite<= times-frac_binary64 (/.f64 (*.f64 (/.f64 2 (pow.f64 t 3)) (*.f64 l l)) (*.f64 (*.f64 (sin.f64 k) (tan.f64 k)) (-.f64 (+.f64 1 (pow.f64 (/.f64 k t) 2)) 1)))): 6 points increase in error, 4 points decrease in error
      (/.f64 (Rewrite<= associate-/r/_binary64 (/.f64 2 (/.f64 (pow.f64 t 3) (*.f64 l l)))) (*.f64 (*.f64 (sin.f64 k) (tan.f64 k)) (-.f64 (+.f64 1 (pow.f64 (/.f64 k t) 2)) 1))): 0 points increase in error, 3 points decrease in error
      (Rewrite<= associate-/r*_binary64 (/.f64 2 (*.f64 (/.f64 (pow.f64 t 3) (*.f64 l l)) (*.f64 (*.f64 (sin.f64 k) (tan.f64 k)) (-.f64 (+.f64 1 (pow.f64 (/.f64 k t) 2)) 1))))): 1 points increase in error, 3 points decrease in error
      (/.f64 2 (Rewrite<= associate-*l*_binary64 (*.f64 (*.f64 (/.f64 (pow.f64 t 3) (*.f64 l l)) (*.f64 (sin.f64 k) (tan.f64 k))) (-.f64 (+.f64 1 (pow.f64 (/.f64 k t) 2)) 1)))): 0 points increase in error, 0 points decrease in error
      (/.f64 2 (*.f64 (Rewrite<= associate-*l*_binary64 (*.f64 (*.f64 (/.f64 (pow.f64 t 3) (*.f64 l l)) (sin.f64 k)) (tan.f64 k))) (-.f64 (+.f64 1 (pow.f64 (/.f64 k t) 2)) 1))): 4 points increase in error, 0 points decrease in error
    3. Taylor expanded in k around inf 59.8

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

      \[\leadsto \color{blue}{\frac{2}{k \cdot k} \cdot \frac{\frac{\ell \cdot \ell}{\frac{t}{\cos k}}}{{\sin k}^{2}}} \]
      Proof
      (*.f64 (/.f64 2 (*.f64 k k)) (/.f64 (/.f64 (*.f64 l l) (/.f64 t (cos.f64 k))) (pow.f64 (sin.f64 k) 2))): 0 points increase in error, 0 points decrease in error
      (*.f64 (/.f64 2 (Rewrite<= unpow2_binary64 (pow.f64 k 2))) (/.f64 (/.f64 (*.f64 l l) (/.f64 t (cos.f64 k))) (pow.f64 (sin.f64 k) 2))): 0 points increase in error, 1 points decrease in error
      (*.f64 (/.f64 2 (pow.f64 k 2)) (/.f64 (/.f64 (Rewrite<= unpow2_binary64 (pow.f64 l 2)) (/.f64 t (cos.f64 k))) (pow.f64 (sin.f64 k) 2))): 0 points increase in error, 0 points decrease in error
      (*.f64 (/.f64 2 (pow.f64 k 2)) (/.f64 (Rewrite<= associate-/l*_binary64 (/.f64 (*.f64 (pow.f64 l 2) (cos.f64 k)) t)) (pow.f64 (sin.f64 k) 2))): 4 points increase in error, 7 points decrease in error
      (*.f64 (/.f64 2 (pow.f64 k 2)) (/.f64 (/.f64 (Rewrite<= *-commutative_binary64 (*.f64 (cos.f64 k) (pow.f64 l 2))) t) (pow.f64 (sin.f64 k) 2))): 0 points increase in error, 0 points decrease in error
      (*.f64 (/.f64 2 (pow.f64 k 2)) (Rewrite<= associate-/r*_binary64 (/.f64 (*.f64 (cos.f64 k) (pow.f64 l 2)) (*.f64 t (pow.f64 (sin.f64 k) 2))))): 15 points increase in error, 7 points decrease in error
      (*.f64 (/.f64 2 (pow.f64 k 2)) (/.f64 (*.f64 (cos.f64 k) (pow.f64 l 2)) (Rewrite<= *-commutative_binary64 (*.f64 (pow.f64 (sin.f64 k) 2) t)))): 0 points increase in error, 0 points decrease in error
      (Rewrite<= times-frac_binary64 (/.f64 (*.f64 2 (*.f64 (cos.f64 k) (pow.f64 l 2))) (*.f64 (pow.f64 k 2) (*.f64 (pow.f64 (sin.f64 k) 2) t)))): 19 points increase in error, 23 points decrease in error
      (Rewrite<= associate-*r/_binary64 (*.f64 2 (/.f64 (*.f64 (cos.f64 k) (pow.f64 l 2)) (*.f64 (pow.f64 k 2) (*.f64 (pow.f64 (sin.f64 k) 2) t))))): 0 points increase in error, 0 points decrease in error
    5. Taylor expanded in k around 0 56.1

      \[\leadsto \frac{2}{k \cdot k} \cdot \color{blue}{\frac{{\ell}^{2}}{{k}^{2} \cdot t}} \]
    6. Simplified47.3

      \[\leadsto \frac{2}{k \cdot k} \cdot \color{blue}{\left(\frac{\ell}{t} \cdot \frac{\frac{\ell}{k}}{k}\right)} \]
      Proof
      (*.f64 (/.f64 l t) (/.f64 (/.f64 l k) k)): 0 points increase in error, 0 points decrease in error
      (*.f64 (/.f64 l t) (Rewrite<= associate-/r*_binary64 (/.f64 l (*.f64 k k)))): 31 points increase in error, 18 points decrease in error
      (*.f64 (/.f64 l t) (/.f64 l (Rewrite<= unpow2_binary64 (pow.f64 k 2)))): 0 points increase in error, 1 points decrease in error
      (Rewrite<= times-frac_binary64 (/.f64 (*.f64 l l) (*.f64 t (pow.f64 k 2)))): 63 points increase in error, 22 points decrease in error
      (/.f64 (Rewrite<= unpow2_binary64 (pow.f64 l 2)) (*.f64 t (pow.f64 k 2))): 0 points increase in error, 0 points decrease in error
      (/.f64 (pow.f64 l 2) (Rewrite<= *-commutative_binary64 (*.f64 (pow.f64 k 2) t))): 0 points increase in error, 0 points decrease in error
    7. Applied egg-rr9.1

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;k \leq -1 \cdot 10^{-100}:\\ \;\;\;\;\frac{2}{\left(\frac{k}{\frac{\cos k}{\frac{{\sin k}^{2}}{\ell}}} \cdot t\right) \cdot \frac{k}{\ell}}\\ \mathbf{elif}\;k \leq 10^{-150}:\\ \;\;\;\;\frac{{\left(\frac{\ell}{k}\right)}^{2} \cdot \frac{2}{k}}{k \cdot t}\\ \mathbf{else}:\\ \;\;\;\;\frac{2}{\left(\frac{k}{\frac{\cos k}{\frac{{\sin k}^{2}}{\ell}}} \cdot t\right) \cdot \frac{k}{\ell}}\\ \end{array} \]

Alternatives

Alternative 1
Error10.3
Cost20624
\[\begin{array}{l} t_1 := \ell \cdot \left(\left(\ell \cdot \frac{2}{{\left(k \cdot \sin k\right)}^{2}}\right) \cdot \frac{\cos k}{t}\right)\\ t_2 := \frac{\frac{2}{k}}{k \cdot \left(\frac{\sin k}{\frac{\ell}{\frac{t}{\ell}}} \cdot \tan k\right)}\\ \mathbf{if}\;k \leq -2.2528163600079517 \cdot 10^{+82}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;k \leq -1 \cdot 10^{-100}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;k \leq 10^{-60}:\\ \;\;\;\;\frac{{\left(\frac{\ell}{k}\right)}^{2} \cdot \frac{2}{k}}{k \cdot t}\\ \mathbf{elif}\;k \leq 1.2972514114062709 \cdot 10^{+154}:\\ \;\;\;\;t_1\\ \mathbf{else}:\\ \;\;\;\;t_2\\ \end{array} \]
Alternative 2
Error11.3
Cost20360
\[\begin{array}{l} t_1 := \frac{\frac{2}{k}}{k \cdot \left(\frac{\sin k}{\frac{\ell}{\frac{t}{\ell}}} \cdot \tan k\right)}\\ \mathbf{if}\;k \leq -2.2528163600079517 \cdot 10^{+82}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;k \leq -1 \cdot 10^{-15}:\\ \;\;\;\;\frac{2}{\frac{{\left(k \cdot \sin k\right)}^{2}}{\ell} \cdot \frac{\frac{t}{\cos k}}{\ell}}\\ \mathbf{elif}\;k \leq -1 \cdot 10^{-150}:\\ \;\;\;\;\frac{2 \cdot \frac{\ell}{t}}{k \cdot k} \cdot \frac{\ell}{k \cdot k}\\ \mathbf{elif}\;k \leq 10^{-86}:\\ \;\;\;\;\frac{{\left(\frac{\ell}{k}\right)}^{2} \cdot \frac{2}{k}}{k \cdot t}\\ \mathbf{else}:\\ \;\;\;\;t_1\\ \end{array} \]
Alternative 3
Error13.5
Cost14668
\[\begin{array}{l} t_1 := \frac{\frac{\frac{2}{\frac{\sin k}{\frac{\ell}{\frac{t}{\ell}}} \cdot \tan k}}{k}}{k}\\ \mathbf{if}\;\ell \leq -1.2433673492291347 \cdot 10^{-225}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;\ell \leq 1.5286446776450848 \cdot 10^{-113}:\\ \;\;\;\;\frac{{\left(\frac{\ell}{k}\right)}^{2} \cdot \frac{2}{k}}{k \cdot t}\\ \mathbf{elif}\;\ell \leq 10^{+220}:\\ \;\;\;\;t_1\\ \mathbf{else}:\\ \;\;\;\;\frac{2}{\left(\tan k \cdot \frac{t \cdot \left(\sin k \cdot \frac{t}{\ell}\right)}{\frac{\ell}{t}}\right) \cdot \frac{k}{t \cdot \frac{t}{k}}}\\ \end{array} \]
Alternative 4
Error16.0
Cost14024
\[\begin{array}{l} t_1 := \frac{\frac{2}{k \cdot k}}{\frac{\sin k}{\frac{\ell}{\frac{t}{\ell}}} \cdot \tan k}\\ \mathbf{if}\;k \leq -1 \cdot 10^{-150}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;k \leq 10^{-86}:\\ \;\;\;\;\frac{{\left(\frac{\ell}{k}\right)}^{2} \cdot \frac{2}{k}}{k \cdot t}\\ \mathbf{else}:\\ \;\;\;\;t_1\\ \end{array} \]
Alternative 5
Error12.6
Cost14024
\[\begin{array}{l} t_1 := \frac{\frac{2}{k}}{k \cdot \left(\frac{\sin k}{\frac{\ell}{\frac{t}{\ell}}} \cdot \tan k\right)}\\ \mathbf{if}\;k \leq -1 \cdot 10^{-150}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;k \leq 10^{-86}:\\ \;\;\;\;\frac{{\left(\frac{\ell}{k}\right)}^{2} \cdot \frac{2}{k}}{k \cdot t}\\ \mathbf{else}:\\ \;\;\;\;t_1\\ \end{array} \]
Alternative 6
Error12.6
Cost14024
\[\begin{array}{l} t_1 := \frac{\sin k}{\frac{\ell}{\frac{t}{\ell}}} \cdot \tan k\\ \mathbf{if}\;k \leq -1 \cdot 10^{-150}:\\ \;\;\;\;\frac{\frac{\frac{2}{t_1}}{k}}{k}\\ \mathbf{elif}\;k \leq 10^{-86}:\\ \;\;\;\;\frac{{\left(\frac{\ell}{k}\right)}^{2} \cdot \frac{2}{k}}{k \cdot t}\\ \mathbf{else}:\\ \;\;\;\;\frac{\frac{2}{k}}{k \cdot t_1}\\ \end{array} \]
Alternative 7
Error24.2
Cost13960
\[\begin{array}{l} t_1 := {\sin k}^{2}\\ \mathbf{if}\;k \leq -1 \cdot 10^{-150}:\\ \;\;\;\;\frac{\frac{2}{k}}{k \cdot \left(\frac{t_1}{\ell} \cdot \frac{t}{\ell}\right)}\\ \mathbf{elif}\;k \leq 10^{-100}:\\ \;\;\;\;\frac{{\left(\frac{\ell}{k}\right)}^{2} \cdot \frac{2}{k}}{k \cdot t}\\ \mathbf{else}:\\ \;\;\;\;\frac{\ell}{\frac{t}{\ell} \cdot \left(k \cdot k\right)} \cdot \frac{2}{t_1}\\ \end{array} \]
Alternative 8
Error23.2
Cost13960
\[\begin{array}{l} t_1 := \frac{\frac{2}{k} \cdot \frac{\ell}{t}}{k \cdot \frac{{\sin k}^{2}}{\ell}}\\ \mathbf{if}\;k \leq -1 \cdot 10^{-110}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;k \leq 10^{-105}:\\ \;\;\;\;\frac{{\left(\frac{\ell}{k}\right)}^{2} \cdot \frac{2}{k}}{k \cdot t}\\ \mathbf{else}:\\ \;\;\;\;t_1\\ \end{array} \]
Alternative 9
Error24.9
Cost13828
\[\begin{array}{l} \mathbf{if}\;k \leq -1 \cdot 10^{-150}:\\ \;\;\;\;\frac{\frac{2}{k}}{k \cdot \left(\frac{{\sin k}^{2}}{\ell} \cdot \frac{t}{\ell}\right)}\\ \mathbf{elif}\;k \leq 10^{-140}:\\ \;\;\;\;\frac{{\left(\frac{\ell}{k}\right)}^{2} \cdot \frac{2}{k}}{k \cdot t}\\ \mathbf{else}:\\ \;\;\;\;\frac{2}{\frac{\left(k \cdot \frac{k}{\ell}\right) \cdot \left(k \cdot \left(k \cdot t\right)\right)}{\cos k \cdot \ell}}\\ \end{array} \]
Alternative 10
Error25.0
Cost7876
\[\begin{array}{l} \mathbf{if}\;k \leq -1 \cdot 10^{-150}:\\ \;\;\;\;\mathsf{fma}\left(\frac{\ell}{t}, \frac{\frac{\ell}{k}}{k}, \left(\ell \cdot \frac{\ell}{t}\right) \cdot -0.16666666666666666\right) \cdot \frac{\frac{2}{k}}{k}\\ \mathbf{elif}\;k \leq 10^{-140}:\\ \;\;\;\;\frac{{\left(\frac{\ell}{k}\right)}^{2} \cdot \frac{2}{k}}{k \cdot t}\\ \mathbf{else}:\\ \;\;\;\;\frac{2}{\frac{\left(k \cdot \frac{k}{\ell}\right) \cdot \left(k \cdot \left(k \cdot t\right)\right)}{\cos k \cdot \ell}}\\ \end{array} \]
Alternative 11
Error25.0
Cost7876
\[\begin{array}{l} \mathbf{if}\;k \leq -1 \cdot 10^{-150}:\\ \;\;\;\;\frac{2}{k \cdot k} \cdot \mathsf{fma}\left(\frac{\ell}{t}, \frac{\frac{\ell}{k}}{k}, \left(\ell \cdot \frac{\ell}{t}\right) \cdot -0.16666666666666666\right)\\ \mathbf{elif}\;k \leq 10^{-140}:\\ \;\;\;\;\frac{{\left(\frac{\ell}{k}\right)}^{2} \cdot \frac{2}{k}}{k \cdot t}\\ \mathbf{else}:\\ \;\;\;\;\frac{2}{\frac{\left(k \cdot \frac{k}{\ell}\right) \cdot \left(k \cdot \left(k \cdot t\right)\right)}{\cos k \cdot \ell}}\\ \end{array} \]
Alternative 12
Error24.9
Cost7752
\[\begin{array}{l} \mathbf{if}\;k \leq -1 \cdot 10^{-150}:\\ \;\;\;\;\frac{\ell}{\frac{t}{\ell} \cdot \left(k \cdot k\right)} \cdot \left(\frac{2}{k \cdot k} + 0.6666666666666666\right)\\ \mathbf{elif}\;k \leq 10^{-140}:\\ \;\;\;\;\frac{{\left(\frac{\ell}{k}\right)}^{2} \cdot \frac{2}{k}}{k \cdot t}\\ \mathbf{else}:\\ \;\;\;\;\frac{2}{\frac{\left(k \cdot \frac{k}{\ell}\right) \cdot \left(k \cdot \left(k \cdot t\right)\right)}{\cos k \cdot \ell}}\\ \end{array} \]
Alternative 13
Error25.0
Cost7432
\[\begin{array}{l} \mathbf{if}\;k \leq -1 \cdot 10^{-150}:\\ \;\;\;\;\frac{\ell}{\frac{t}{\ell} \cdot \left(k \cdot k\right)} \cdot \left(\frac{2}{k \cdot k} + 0.6666666666666666\right)\\ \mathbf{elif}\;k \leq 10^{-150}:\\ \;\;\;\;\frac{\frac{2}{k} \cdot \frac{{\left(\frac{\ell}{k}\right)}^{2}}{t}}{k}\\ \mathbf{else}:\\ \;\;\;\;\frac{2 \cdot \frac{\ell}{t}}{k \cdot k} \cdot \frac{\ell}{k \cdot k}\\ \end{array} \]
Alternative 14
Error24.4
Cost7432
\[\begin{array}{l} t_1 := \frac{\ell}{\frac{t}{\ell} \cdot \left(k \cdot k\right)} \cdot \left(\frac{2}{k \cdot k} + 0.6666666666666666\right)\\ \mathbf{if}\;k \leq -1 \cdot 10^{-150}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;k \leq 10^{-100}:\\ \;\;\;\;\frac{{\left(\frac{\ell}{k}\right)}^{2} \cdot \frac{2}{k}}{k \cdot t}\\ \mathbf{else}:\\ \;\;\;\;t_1\\ \end{array} \]
Alternative 15
Error26.4
Cost1088
\[\frac{\ell}{\frac{t}{\ell} \cdot \left(k \cdot k\right)} \cdot \left(\frac{2}{k \cdot k} + 0.6666666666666666\right) \]
Alternative 16
Error26.5
Cost960
\[\frac{2 \cdot \frac{\ell}{t}}{k \cdot k} \cdot \frac{\ell}{k \cdot k} \]
Alternative 17
Error34.3
Cost704
\[\frac{-0.3333333333333333 \cdot \left(\ell \cdot \ell\right)}{t \cdot \left(k \cdot k\right)} \]
Alternative 18
Error32.8
Cost704
\[\frac{-0.3333333333333333}{t \cdot \left(\frac{k}{\ell} \cdot \frac{k}{\ell}\right)} \]

Error

Reproduce

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