Average Error: 32.0 → 3.8
Time: 29.3s
Precision: binary64
Cost: 20872
\[\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}{t \cdot \left(\sin k \cdot \frac{t}{\ell}\right)} \cdot \frac{\frac{\frac{\ell}{t}}{2 + {\left(\frac{k}{t}\right)}^{2}}}{\tan k}\\ \mathbf{if}\;t \leq -1 \cdot 10^{-76}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;t \leq 10^{-60}:\\ \;\;\;\;\left(2 \cdot \frac{\frac{\ell}{k}}{t \cdot k}\right) \cdot \frac{\frac{\ell}{\sin k}}{\tan k}\\ \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 (* t (* (sin k) (/ t l))))
          (/ (/ (/ l t) (+ 2.0 (pow (/ k t) 2.0))) (tan k)))))
   (if (<= t -1e-76)
     t_1
     (if (<= t 1e-60)
       (* (* 2.0 (/ (/ l k) (* t k))) (/ (/ l (sin k)) (tan k)))
       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 / (t * (sin(k) * (t / l)))) * (((l / t) / (2.0 + pow((k / t), 2.0))) / tan(k));
	double tmp;
	if (t <= -1e-76) {
		tmp = t_1;
	} else if (t <= 1e-60) {
		tmp = (2.0 * ((l / k) / (t * k))) * ((l / sin(k)) / tan(k));
	} 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 / (t * (sin(k) * (t / l)))) * (((l / t) / (2.0d0 + ((k / t) ** 2.0d0))) / tan(k))
    if (t <= (-1d-76)) then
        tmp = t_1
    else if (t <= 1d-60) then
        tmp = (2.0d0 * ((l / k) / (t * k))) * ((l / sin(k)) / tan(k))
    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 / (t * (Math.sin(k) * (t / l)))) * (((l / t) / (2.0 + Math.pow((k / t), 2.0))) / Math.tan(k));
	double tmp;
	if (t <= -1e-76) {
		tmp = t_1;
	} else if (t <= 1e-60) {
		tmp = (2.0 * ((l / k) / (t * k))) * ((l / Math.sin(k)) / Math.tan(k));
	} 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 / (t * (math.sin(k) * (t / l)))) * (((l / t) / (2.0 + math.pow((k / t), 2.0))) / math.tan(k))
	tmp = 0
	if t <= -1e-76:
		tmp = t_1
	elif t <= 1e-60:
		tmp = (2.0 * ((l / k) / (t * k))) * ((l / math.sin(k)) / math.tan(k))
	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(Float64(2.0 / Float64(t * Float64(sin(k) * Float64(t / l)))) * Float64(Float64(Float64(l / t) / Float64(2.0 + (Float64(k / t) ^ 2.0))) / tan(k)))
	tmp = 0.0
	if (t <= -1e-76)
		tmp = t_1;
	elseif (t <= 1e-60)
		tmp = Float64(Float64(2.0 * Float64(Float64(l / k) / Float64(t * k))) * Float64(Float64(l / sin(k)) / tan(k)));
	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 / (t * (sin(k) * (t / l)))) * (((l / t) / (2.0 + ((k / t) ^ 2.0))) / tan(k));
	tmp = 0.0;
	if (t <= -1e-76)
		tmp = t_1;
	elseif (t <= 1e-60)
		tmp = (2.0 * ((l / k) / (t * k))) * ((l / sin(k)) / tan(k));
	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[(N[(2.0 / N[(t * N[(N[Sin[k], $MachinePrecision] * N[(t / l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(N[(N[(l / t), $MachinePrecision] / N[(2.0 + N[Power[N[(k / t), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[Tan[k], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -1e-76], t$95$1, If[LessEqual[t, 1e-60], N[(N[(2.0 * N[(N[(l / k), $MachinePrecision] / N[(t * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(N[(l / N[Sin[k], $MachinePrecision]), $MachinePrecision] / N[Tan[k], $MachinePrecision]), $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}{t \cdot \left(\sin k \cdot \frac{t}{\ell}\right)} \cdot \frac{\frac{\frac{\ell}{t}}{2 + {\left(\frac{k}{t}\right)}^{2}}}{\tan k}\\
\mathbf{if}\;t \leq -1 \cdot 10^{-76}:\\
\;\;\;\;t_1\\

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

\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 t < -9.99999999999999927e-77 or 9.9999999999999997e-61 < t

    1. Initial program 22.4

      \[\frac{2}{\left(\left(\frac{{t}^{3}}{\ell \cdot \ell} \cdot \sin k\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \]
    2. Applied egg-rr16.2

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

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

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

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

    if -9.99999999999999927e-77 < t < 9.9999999999999997e-61

    1. Initial program 57.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. Simplified55.1

      \[\leadsto \color{blue}{\frac{\frac{2}{\frac{{t}^{3}}{\ell}}}{2 + {\left(\frac{k}{t}\right)}^{2}} \cdot \frac{\frac{\ell}{\sin k}}{\tan k}} \]
      Proof
      (*.f64 (/.f64 (/.f64 2 (/.f64 (pow.f64 t 3) l)) (+.f64 2 (pow.f64 (/.f64 k t) 2))) (/.f64 (/.f64 l (sin.f64 k)) (tan.f64 k))): 0 points increase in error, 0 points decrease in error
      (*.f64 (/.f64 (/.f64 2 (/.f64 (pow.f64 t 3) l)) (+.f64 (Rewrite<= metadata-eval (+.f64 1 1)) (pow.f64 (/.f64 k t) 2))) (/.f64 (/.f64 l (sin.f64 k)) (tan.f64 k))): 0 points increase in error, 0 points decrease in error
      (*.f64 (/.f64 (/.f64 2 (/.f64 (pow.f64 t 3) l)) (Rewrite<= associate-+r+_binary64 (+.f64 1 (+.f64 1 (pow.f64 (/.f64 k t) 2))))) (/.f64 (/.f64 l (sin.f64 k)) (tan.f64 k))): 0 points increase in error, 0 points decrease in error
      (*.f64 (/.f64 (/.f64 2 (/.f64 (pow.f64 t 3) l)) (Rewrite<= +-commutative_binary64 (+.f64 (+.f64 1 (pow.f64 (/.f64 k t) 2)) 1))) (/.f64 (/.f64 l (sin.f64 k)) (tan.f64 k))): 0 points increase in error, 0 points decrease in error
      (*.f64 (/.f64 (/.f64 2 (/.f64 (pow.f64 t 3) l)) (+.f64 (+.f64 1 (pow.f64 (/.f64 k t) 2)) 1)) (Rewrite<= associate-/r*_binary64 (/.f64 l (*.f64 (sin.f64 k) (tan.f64 k))))): 24 points increase in error, 4 points decrease in error
      (Rewrite<= times-frac_binary64 (/.f64 (*.f64 (/.f64 2 (/.f64 (pow.f64 t 3) l)) l) (*.f64 (+.f64 (+.f64 1 (pow.f64 (/.f64 k t) 2)) 1) (*.f64 (sin.f64 k) (tan.f64 k))))): 9 points increase in error, 16 points decrease in error
      (/.f64 (Rewrite<= associate-/r/_binary64 (/.f64 2 (/.f64 (/.f64 (pow.f64 t 3) l) l))) (*.f64 (+.f64 (+.f64 1 (pow.f64 (/.f64 k t) 2)) 1) (*.f64 (sin.f64 k) (tan.f64 k)))): 4 points increase in error, 2 points decrease in error
      (/.f64 (/.f64 2 (Rewrite<= associate-/r*_binary64 (/.f64 (pow.f64 t 3) (*.f64 l l)))) (*.f64 (+.f64 (+.f64 1 (pow.f64 (/.f64 k t) 2)) 1) (*.f64 (sin.f64 k) (tan.f64 k)))): 30 points increase in error, 2 points decrease in error
      (Rewrite<= associate-/l/_binary64 (/.f64 (/.f64 (/.f64 2 (/.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, 2 points decrease in error
      (/.f64 (Rewrite<= associate-/r*_binary64 (/.f64 2 (*.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)): 4 points increase in error, 5 points decrease in error
      (/.f64 (/.f64 2 (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)): 2 points increase in error, 44 points decrease in error
      (Rewrite<= associate-/r*_binary64 (/.f64 2 (*.f64 (*.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, 2 points decrease in error
    3. Taylor expanded in t around 0 19.8

      \[\leadsto \color{blue}{\left(2 \cdot \frac{\ell}{{k}^{2} \cdot t}\right)} \cdot \frac{\frac{\ell}{\sin k}}{\tan k} \]
    4. Applied egg-rr18.0

      \[\leadsto \left(2 \cdot \color{blue}{\left(\frac{\ell}{k \cdot k} \cdot \frac{1}{t}\right)}\right) \cdot \frac{\frac{\ell}{\sin k}}{\tan k} \]
    5. Applied egg-rr4.8

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

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

Alternatives

Alternative 1
Error8.5
Cost14472
\[\begin{array}{l} t_1 := \left(2 \cdot \frac{\frac{\ell}{k}}{t \cdot k}\right) \cdot \frac{\frac{\ell}{\sin k}}{\tan k}\\ \mathbf{if}\;k \leq -89034949084000340:\\ \;\;\;\;t_1\\ \mathbf{elif}\;k \leq 3.5 \cdot 10^{-31}:\\ \;\;\;\;\frac{2}{\frac{t \cdot \left(\left(2 + {\left(\frac{k}{t}\right)}^{2}\right) \cdot \tan k\right)}{\frac{\ell}{t} \cdot \frac{\ell}{t \cdot k}}}\\ \mathbf{else}:\\ \;\;\;\;t_1\\ \end{array} \]
Alternative 2
Error10.7
Cost14408
\[\begin{array}{l} \mathbf{if}\;t \leq -1.6594214896225664 \cdot 10^{+84}:\\ \;\;\;\;\frac{\ell}{t} \cdot \left(\ell \cdot {\left(t \cdot k\right)}^{-2}\right)\\ \mathbf{elif}\;t \leq -1 \cdot 10^{-76}:\\ \;\;\;\;\frac{2}{\left(\frac{{t}^{3}}{\ell} \cdot \frac{k}{\frac{\ell}{k}}\right) \cdot \left(1 + \left({\left(\frac{k}{t}\right)}^{2} + 1\right)\right)}\\ \mathbf{elif}\;t \leq 10^{-60}:\\ \;\;\;\;\left(2 \cdot \frac{\frac{\ell}{k}}{t \cdot k}\right) \cdot \frac{\frac{\ell}{\sin k}}{\tan k}\\ \mathbf{else}:\\ \;\;\;\;{\left(\frac{\ell}{\left(t \cdot k\right) \cdot \sqrt{t}}\right)}^{2}\\ \end{array} \]
Alternative 3
Error14.6
Cost14156
\[\begin{array}{l} \mathbf{if}\;t \leq -1.6594214896225664 \cdot 10^{+84}:\\ \;\;\;\;\frac{\ell}{t} \cdot \left(\ell \cdot {\left(t \cdot k\right)}^{-2}\right)\\ \mathbf{elif}\;t \leq -1 \cdot 10^{-76}:\\ \;\;\;\;\frac{\frac{\ell}{k} \cdot \left(\ell \cdot {t}^{-2}\right)}{t \cdot k}\\ \mathbf{elif}\;t \leq 10^{-60}:\\ \;\;\;\;\frac{\frac{\ell}{\sin k}}{\tan k} \cdot \left(2 \cdot \frac{\frac{\ell}{t}}{k \cdot k}\right)\\ \mathbf{else}:\\ \;\;\;\;{\left(\frac{\ell}{\left(t \cdot k\right) \cdot \sqrt{t}}\right)}^{2}\\ \end{array} \]
Alternative 4
Error10.8
Cost14156
\[\begin{array}{l} \mathbf{if}\;t \leq -1.6594214896225664 \cdot 10^{+84}:\\ \;\;\;\;\frac{\ell}{t} \cdot \left(\ell \cdot {\left(t \cdot k\right)}^{-2}\right)\\ \mathbf{elif}\;t \leq -1 \cdot 10^{-76}:\\ \;\;\;\;\frac{\frac{\ell}{k} \cdot \left(\ell \cdot {t}^{-2}\right)}{t \cdot k}\\ \mathbf{elif}\;t \leq 10^{-60}:\\ \;\;\;\;\left(2 \cdot \frac{\frac{\ell}{k}}{t \cdot k}\right) \cdot \frac{\frac{\ell}{\sin k}}{\tan k}\\ \mathbf{else}:\\ \;\;\;\;{\left(\frac{\ell}{\left(t \cdot k\right) \cdot \sqrt{t}}\right)}^{2}\\ \end{array} \]
Alternative 5
Error17.9
Cost13708
\[\begin{array}{l} t_1 := \frac{\ell}{k \cdot k}\\ \mathbf{if}\;t \leq -1.6594214896225664 \cdot 10^{+84}:\\ \;\;\;\;\frac{\ell}{t} \cdot \left(\ell \cdot {\left(t \cdot k\right)}^{-2}\right)\\ \mathbf{elif}\;t \leq -1 \cdot 10^{-76}:\\ \;\;\;\;\frac{\frac{\ell}{k} \cdot \left(\ell \cdot {t}^{-2}\right)}{t \cdot k}\\ \mathbf{elif}\;t \leq 10^{-67}:\\ \;\;\;\;\left(2 \cdot \left(t_1 \cdot \frac{1}{t}\right)\right) \cdot \mathsf{fma}\left(\ell, -0.16666666666666666, t_1\right)\\ \mathbf{else}:\\ \;\;\;\;{\left(\frac{\ell}{\left(t \cdot k\right) \cdot \sqrt{t}}\right)}^{2}\\ \end{array} \]
Alternative 6
Error18.1
Cost8012
\[\begin{array}{l} t_1 := \frac{\ell}{t} \cdot \left(\ell \cdot {\left(t \cdot k\right)}^{-2}\right)\\ t_2 := \frac{\ell}{k \cdot k}\\ \mathbf{if}\;t \leq -1.6594214896225664 \cdot 10^{+84}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;t \leq -1 \cdot 10^{-76}:\\ \;\;\;\;\frac{\frac{\ell}{k} \cdot \left(\ell \cdot {t}^{-2}\right)}{t \cdot k}\\ \mathbf{elif}\;t \leq 10^{-90}:\\ \;\;\;\;\left(2 \cdot \left(t_2 \cdot \frac{1}{t}\right)\right) \cdot \mathsf{fma}\left(\ell, -0.16666666666666666, t_2\right)\\ \mathbf{elif}\;t \leq 5.2972504029928794 \cdot 10^{+94}:\\ \;\;\;\;\frac{\ell}{k} \cdot \frac{\frac{\ell}{k}}{{t}^{3}}\\ \mathbf{else}:\\ \;\;\;\;t_1\\ \end{array} \]
Alternative 7
Error18.7
Cost7568
\[\begin{array}{l} t_1 := \frac{\ell}{t} \cdot \left(\ell \cdot {\left(t \cdot k\right)}^{-2}\right)\\ t_2 := \frac{\ell}{k \cdot k}\\ \mathbf{if}\;t \leq -4.153095697430588 \cdot 10^{+96}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;t \leq -1.8 \cdot 10^{-75}:\\ \;\;\;\;\frac{\frac{{\left(\frac{\ell}{k}\right)}^{2}}{t}}{t \cdot t}\\ \mathbf{elif}\;t \leq 10^{-95}:\\ \;\;\;\;t_2 \cdot \left(2 \cdot \left(t_2 \cdot \frac{1}{t}\right)\right)\\ \mathbf{elif}\;t \leq 10^{+75}:\\ \;\;\;\;\frac{\ell}{t \cdot \left(t \cdot t\right)} \cdot \frac{\frac{\ell}{k}}{k}\\ \mathbf{else}:\\ \;\;\;\;t_1\\ \end{array} \]
Alternative 8
Error18.0
Cost7568
\[\begin{array}{l} t_1 := \frac{\ell}{k} \cdot \frac{\frac{\ell}{k}}{{t}^{3}}\\ t_2 := \frac{\ell}{t} \cdot \left(\ell \cdot {\left(t \cdot k\right)}^{-2}\right)\\ t_3 := \frac{\ell}{k \cdot k}\\ \mathbf{if}\;t \leq -1.6594214896225664 \cdot 10^{+84}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;t \leq -1.8 \cdot 10^{-75}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;t \leq 10^{-90}:\\ \;\;\;\;t_3 \cdot \left(2 \cdot \left(t_3 \cdot \frac{1}{t}\right)\right)\\ \mathbf{elif}\;t \leq 5.2972504029928794 \cdot 10^{+94}:\\ \;\;\;\;t_1\\ \mathbf{else}:\\ \;\;\;\;t_2\\ \end{array} \]
Alternative 9
Error18.3
Cost7568
\[\begin{array}{l} t_1 := \frac{\ell}{t} \cdot \left(\ell \cdot {\left(t \cdot k\right)}^{-2}\right)\\ t_2 := \frac{\ell}{k \cdot k}\\ \mathbf{if}\;t \leq -1.6594214896225664 \cdot 10^{+84}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;t \leq -1.8 \cdot 10^{-75}:\\ \;\;\;\;\frac{\frac{\ell}{k} \cdot \left(\ell \cdot {t}^{-2}\right)}{t \cdot k}\\ \mathbf{elif}\;t \leq 10^{-90}:\\ \;\;\;\;t_2 \cdot \left(2 \cdot \left(t_2 \cdot \frac{1}{t}\right)\right)\\ \mathbf{elif}\;t \leq 5.2972504029928794 \cdot 10^{+94}:\\ \;\;\;\;\frac{\ell}{k} \cdot \frac{\frac{\ell}{k}}{{t}^{3}}\\ \mathbf{else}:\\ \;\;\;\;t_1\\ \end{array} \]
Alternative 10
Error19.3
Cost7436
\[\begin{array}{l} t_1 := \frac{\ell}{k \cdot k}\\ t_2 := \frac{\ell}{t} \cdot \left(\ell \cdot {\left(t \cdot k\right)}^{-2}\right)\\ \mathbf{if}\;t \leq -3.1 \cdot 10^{-34}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;t \leq 10^{-95}:\\ \;\;\;\;t_1 \cdot \left(2 \cdot \left(t_1 \cdot \frac{1}{t}\right)\right)\\ \mathbf{elif}\;t \leq 10^{+75}:\\ \;\;\;\;\frac{\ell}{t \cdot \left(t \cdot t\right)} \cdot \frac{\frac{\ell}{k}}{k}\\ \mathbf{else}:\\ \;\;\;\;t_2\\ \end{array} \]
Alternative 11
Error28.5
Cost1360
\[\begin{array}{l} t_1 := \frac{\ell}{t \cdot \left(t \cdot t\right)} \cdot \frac{\frac{\ell}{k}}{k}\\ t_2 := \frac{\ell \cdot \ell}{t \cdot \left(\left(t \cdot k\right) \cdot \left(t \cdot k\right)\right)}\\ \mathbf{if}\;t \leq -1.6594214896225664 \cdot 10^{+84}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;t \leq -1 \cdot 10^{-90}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;t \leq 10^{-120}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;t \leq 10^{+75}:\\ \;\;\;\;t_1\\ \mathbf{else}:\\ \;\;\;\;\frac{\ell \cdot \ell}{t \cdot \left(k \cdot \left(t \cdot \left(t \cdot k\right)\right)\right)}\\ \end{array} \]
Alternative 12
Error28.5
Cost1360
\[\begin{array}{l} t_1 := \frac{\ell}{t \cdot \left(t \cdot t\right)}\\ t_2 := \frac{\ell \cdot \ell}{t \cdot \left(\left(t \cdot k\right) \cdot \left(t \cdot k\right)\right)}\\ \mathbf{if}\;t \leq -1 \cdot 10^{+72}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;t \leq -1 \cdot 10^{-90}:\\ \;\;\;\;t_1 \cdot \left(\frac{\ell}{k} \cdot \frac{1}{k}\right)\\ \mathbf{elif}\;t \leq 10^{-120}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;t \leq 10^{+75}:\\ \;\;\;\;t_1 \cdot \frac{\frac{\ell}{k}}{k}\\ \mathbf{else}:\\ \;\;\;\;\frac{\ell \cdot \ell}{t \cdot \left(k \cdot \left(t \cdot \left(t \cdot k\right)\right)\right)}\\ \end{array} \]
Alternative 13
Error23.6
Cost1352
\[\begin{array}{l} t_1 := \frac{\ell}{k \cdot k}\\ t_2 := \frac{\ell \cdot \ell}{t \cdot \left(k \cdot \left(t \cdot \left(t \cdot k\right)\right)\right)}\\ \mathbf{if}\;t \leq -3.1 \cdot 10^{-34}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;t \leq 10^{-95}:\\ \;\;\;\;t_1 \cdot \left(2 \cdot \left(t_1 \cdot \frac{1}{t}\right)\right)\\ \mathbf{elif}\;t \leq 10^{+75}:\\ \;\;\;\;\frac{\ell}{t \cdot \left(t \cdot t\right)} \cdot \frac{\frac{\ell}{k}}{k}\\ \mathbf{else}:\\ \;\;\;\;t_2\\ \end{array} \]
Alternative 14
Error35.9
Cost832
\[\frac{\ell \cdot \ell}{t \cdot \left(\left(k \cdot k\right) \cdot \left(t \cdot t\right)\right)} \]
Alternative 15
Error30.1
Cost832
\[\frac{\ell \cdot \ell}{t \cdot \left(\left(t \cdot k\right) \cdot \left(t \cdot k\right)\right)} \]
Alternative 16
Error30.1
Cost832
\[\frac{\ell \cdot \ell}{t \cdot \left(k \cdot \left(t \cdot \left(t \cdot k\right)\right)\right)} \]

Error

Reproduce

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