
(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:
Herbie found 23 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(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}
(FPCore (t l k)
:precision binary64
(let* ((t_1 (pow (/ k t) 2.0)) (t_2 (/ t (cbrt (/ (* l l) (sin k))))))
(if (<=
(/
2.0
(*
(* (* (/ (pow t 3.0) (* l l)) (sin k)) (tan k))
(+ 1.0 (+ 1.0 t_1))))
1e+26)
(/ (/ (/ 2.0 (tan k)) (* t_2 (pow t_2 2.0))) (+ 2.0 t_1))
(* (/ 2.0 (pow (sin k) 2.0)) (* (/ (/ (cos k) (/ k l)) t) (/ l k))))))
double code(double t, double l, double k) {
double t_1 = pow((k / t), 2.0);
double t_2 = t / cbrt(((l * l) / sin(k)));
double tmp;
if ((2.0 / ((((pow(t, 3.0) / (l * l)) * sin(k)) * tan(k)) * (1.0 + (1.0 + t_1)))) <= 1e+26) {
tmp = ((2.0 / tan(k)) / (t_2 * pow(t_2, 2.0))) / (2.0 + t_1);
} else {
tmp = (2.0 / pow(sin(k), 2.0)) * (((cos(k) / (k / l)) / t) * (l / k));
}
return tmp;
}
public static double code(double t, double l, double k) {
double t_1 = Math.pow((k / t), 2.0);
double t_2 = t / Math.cbrt(((l * l) / Math.sin(k)));
double tmp;
if ((2.0 / ((((Math.pow(t, 3.0) / (l * l)) * Math.sin(k)) * Math.tan(k)) * (1.0 + (1.0 + t_1)))) <= 1e+26) {
tmp = ((2.0 / Math.tan(k)) / (t_2 * Math.pow(t_2, 2.0))) / (2.0 + t_1);
} else {
tmp = (2.0 / Math.pow(Math.sin(k), 2.0)) * (((Math.cos(k) / (k / l)) / t) * (l / k));
}
return tmp;
}
function code(t, l, k) t_1 = Float64(k / t) ^ 2.0 t_2 = Float64(t / cbrt(Float64(Float64(l * l) / sin(k)))) tmp = 0.0 if (Float64(2.0 / Float64(Float64(Float64(Float64((t ^ 3.0) / Float64(l * l)) * sin(k)) * tan(k)) * Float64(1.0 + Float64(1.0 + t_1)))) <= 1e+26) tmp = Float64(Float64(Float64(2.0 / tan(k)) / Float64(t_2 * (t_2 ^ 2.0))) / Float64(2.0 + t_1)); else tmp = Float64(Float64(2.0 / (sin(k) ^ 2.0)) * Float64(Float64(Float64(cos(k) / Float64(k / l)) / t) * Float64(l / k))); end return tmp end
code[t_, l_, k_] := Block[{t$95$1 = N[Power[N[(k / t), $MachinePrecision], 2.0], $MachinePrecision]}, Block[{t$95$2 = N[(t / N[Power[N[(N[(l * l), $MachinePrecision] / N[Sin[k], $MachinePrecision]), $MachinePrecision], 1/3], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[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[(1.0 + N[(1.0 + t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1e+26], N[(N[(N[(2.0 / N[Tan[k], $MachinePrecision]), $MachinePrecision] / N[(t$95$2 * N[Power[t$95$2, 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(2.0 + t$95$1), $MachinePrecision]), $MachinePrecision], N[(N[(2.0 / N[Power[N[Sin[k], $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision] * N[(N[(N[(N[Cos[k], $MachinePrecision] / N[(k / l), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision] * N[(l / k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := {\left(\frac{k}{t}\right)}^{2}\\
t_2 := \frac{t}{\sqrt[3]{\frac{\ell \cdot \ell}{\sin k}}}\\
\mathbf{if}\;\frac{2}{\left(\left(\frac{{t}^{3}}{\ell \cdot \ell} \cdot \sin k\right) \cdot \tan k\right) \cdot \left(1 + \left(1 + t_1\right)\right)} \leq 10^{+26}:\\
\;\;\;\;\frac{\frac{\frac{2}{\tan k}}{t_2 \cdot {t_2}^{2}}}{2 + t_1}\\
\mathbf{else}:\\
\;\;\;\;\frac{2}{{\sin k}^{2}} \cdot \left(\frac{\frac{\cos k}{\frac{k}{\ell}}}{t} \cdot \frac{\ell}{k}\right)\\
\end{array}
\end{array}
if (/.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))) < 1.00000000000000005e26Initial program 72.6%
associate-/r*72.7%
associate-*l*67.2%
sqr-neg67.2%
associate-*l*72.7%
*-commutative72.7%
sqr-neg72.7%
associate-/r*72.7%
Simplified73.7%
add-cube-cbrt73.6%
pow273.6%
cbrt-div73.6%
rem-cbrt-cube73.7%
cbrt-div73.7%
rem-cbrt-cube79.7%
Applied egg-rr79.7%
if 1.00000000000000005e26 < (/.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))) Initial program 21.8%
Taylor expanded in t around 0 53.8%
associate-*r*53.8%
times-frac54.6%
unpow254.6%
associate-*l*57.6%
unpow257.6%
Simplified57.6%
associate-*r/57.6%
times-frac74.5%
Applied egg-rr74.5%
Taylor expanded in k around inf 53.8%
associate-*r*53.9%
unpow253.9%
associate-*r*56.9%
associate-*l/57.6%
unpow257.6%
*-commutative57.6%
times-frac74.5%
associate-*l/76.9%
*-commutative76.9%
Simplified76.9%
div-inv76.9%
associate-/l*76.9%
Applied egg-rr76.9%
associate-*r/76.9%
metadata-eval76.9%
associate-/r/76.9%
associate-/r*77.0%
associate-*r/74.5%
associate-/l*77.0%
associate-/r/77.0%
Simplified77.0%
Final simplification78.4%
(FPCore (t l k)
:precision binary64
(let* ((t_1 (+ 1.0 (+ 1.0 (pow (/ k t) 2.0)))))
(if (<=
(/ 2.0 (* (* (* (/ (pow t 3.0) (* l l)) (sin k)) (tan k)) t_1))
1e+26)
(/ 2.0 (* t_1 (* (tan k) (pow (/ t (cbrt (/ (* l l) (sin k)))) 3.0))))
(* (/ 2.0 (pow (sin k) 2.0)) (* (/ (/ (cos k) (/ k l)) t) (/ l k))))))
double code(double t, double l, double k) {
double t_1 = 1.0 + (1.0 + pow((k / t), 2.0));
double tmp;
if ((2.0 / ((((pow(t, 3.0) / (l * l)) * sin(k)) * tan(k)) * t_1)) <= 1e+26) {
tmp = 2.0 / (t_1 * (tan(k) * pow((t / cbrt(((l * l) / sin(k)))), 3.0)));
} else {
tmp = (2.0 / pow(sin(k), 2.0)) * (((cos(k) / (k / l)) / t) * (l / k));
}
return tmp;
}
public static double code(double t, double l, double k) {
double t_1 = 1.0 + (1.0 + Math.pow((k / t), 2.0));
double tmp;
if ((2.0 / ((((Math.pow(t, 3.0) / (l * l)) * Math.sin(k)) * Math.tan(k)) * t_1)) <= 1e+26) {
tmp = 2.0 / (t_1 * (Math.tan(k) * Math.pow((t / Math.cbrt(((l * l) / Math.sin(k)))), 3.0)));
} else {
tmp = (2.0 / Math.pow(Math.sin(k), 2.0)) * (((Math.cos(k) / (k / l)) / t) * (l / k));
}
return tmp;
}
function code(t, l, k) t_1 = Float64(1.0 + Float64(1.0 + (Float64(k / t) ^ 2.0))) tmp = 0.0 if (Float64(2.0 / Float64(Float64(Float64(Float64((t ^ 3.0) / Float64(l * l)) * sin(k)) * tan(k)) * t_1)) <= 1e+26) tmp = Float64(2.0 / Float64(t_1 * Float64(tan(k) * (Float64(t / cbrt(Float64(Float64(l * l) / sin(k)))) ^ 3.0)))); else tmp = Float64(Float64(2.0 / (sin(k) ^ 2.0)) * Float64(Float64(Float64(cos(k) / Float64(k / l)) / t) * Float64(l / k))); end return tmp end
code[t_, l_, k_] := Block[{t$95$1 = N[(1.0 + N[(1.0 + N[Power[N[(k / t), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[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] * t$95$1), $MachinePrecision]), $MachinePrecision], 1e+26], N[(2.0 / N[(t$95$1 * N[(N[Tan[k], $MachinePrecision] * N[Power[N[(t / N[Power[N[(N[(l * l), $MachinePrecision] / N[Sin[k], $MachinePrecision]), $MachinePrecision], 1/3], $MachinePrecision]), $MachinePrecision], 3.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(2.0 / N[Power[N[Sin[k], $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision] * N[(N[(N[(N[Cos[k], $MachinePrecision] / N[(k / l), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision] * N[(l / k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := 1 + \left(1 + {\left(\frac{k}{t}\right)}^{2}\right)\\
\mathbf{if}\;\frac{2}{\left(\left(\frac{{t}^{3}}{\ell \cdot \ell} \cdot \sin k\right) \cdot \tan k\right) \cdot t_1} \leq 10^{+26}:\\
\;\;\;\;\frac{2}{t_1 \cdot \left(\tan k \cdot {\left(\frac{t}{\sqrt[3]{\frac{\ell \cdot \ell}{\sin k}}}\right)}^{3}\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{2}{{\sin k}^{2}} \cdot \left(\frac{\frac{\cos k}{\frac{k}{\ell}}}{t} \cdot \frac{\ell}{k}\right)\\
\end{array}
\end{array}
if (/.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))) < 1.00000000000000005e26Initial program 72.6%
associate-/r/73.7%
add-cube-cbrt73.6%
pow373.6%
cbrt-div73.5%
rem-cbrt-cube79.6%
Applied egg-rr79.6%
if 1.00000000000000005e26 < (/.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))) Initial program 21.8%
Taylor expanded in t around 0 53.8%
associate-*r*53.8%
times-frac54.6%
unpow254.6%
associate-*l*57.6%
unpow257.6%
Simplified57.6%
associate-*r/57.6%
times-frac74.5%
Applied egg-rr74.5%
Taylor expanded in k around inf 53.8%
associate-*r*53.9%
unpow253.9%
associate-*r*56.9%
associate-*l/57.6%
unpow257.6%
*-commutative57.6%
times-frac74.5%
associate-*l/76.9%
*-commutative76.9%
Simplified76.9%
div-inv76.9%
associate-/l*76.9%
Applied egg-rr76.9%
associate-*r/76.9%
metadata-eval76.9%
associate-/r/76.9%
associate-/r*77.0%
associate-*r/74.5%
associate-/l*77.0%
associate-/r/77.0%
Simplified77.0%
Final simplification78.3%
(FPCore (t l k)
:precision binary64
(let* ((t_1 (pow (/ k t) 2.0)))
(if (<=
(/
2.0
(*
(* (* (/ (pow t 3.0) (* l l)) (sin k)) (tan k))
(+ 1.0 (+ 1.0 t_1))))
5e+307)
(/
(* (* l l) (/ 2.0 (* (tan k) (pow (* t (cbrt (sin k))) 3.0))))
(+ 2.0 t_1))
(* (/ 2.0 (pow (sin k) 2.0)) (* (/ (/ (cos k) (/ k l)) t) (/ l k))))))
double code(double t, double l, double k) {
double t_1 = pow((k / t), 2.0);
double tmp;
if ((2.0 / ((((pow(t, 3.0) / (l * l)) * sin(k)) * tan(k)) * (1.0 + (1.0 + t_1)))) <= 5e+307) {
tmp = ((l * l) * (2.0 / (tan(k) * pow((t * cbrt(sin(k))), 3.0)))) / (2.0 + t_1);
} else {
tmp = (2.0 / pow(sin(k), 2.0)) * (((cos(k) / (k / l)) / t) * (l / k));
}
return tmp;
}
public static double code(double t, double l, double k) {
double t_1 = Math.pow((k / t), 2.0);
double tmp;
if ((2.0 / ((((Math.pow(t, 3.0) / (l * l)) * Math.sin(k)) * Math.tan(k)) * (1.0 + (1.0 + t_1)))) <= 5e+307) {
tmp = ((l * l) * (2.0 / (Math.tan(k) * Math.pow((t * Math.cbrt(Math.sin(k))), 3.0)))) / (2.0 + t_1);
} else {
tmp = (2.0 / Math.pow(Math.sin(k), 2.0)) * (((Math.cos(k) / (k / l)) / t) * (l / k));
}
return tmp;
}
function code(t, l, k) t_1 = Float64(k / t) ^ 2.0 tmp = 0.0 if (Float64(2.0 / Float64(Float64(Float64(Float64((t ^ 3.0) / Float64(l * l)) * sin(k)) * tan(k)) * Float64(1.0 + Float64(1.0 + t_1)))) <= 5e+307) tmp = Float64(Float64(Float64(l * l) * Float64(2.0 / Float64(tan(k) * (Float64(t * cbrt(sin(k))) ^ 3.0)))) / Float64(2.0 + t_1)); else tmp = Float64(Float64(2.0 / (sin(k) ^ 2.0)) * Float64(Float64(Float64(cos(k) / Float64(k / l)) / t) * Float64(l / k))); end return tmp end
code[t_, l_, k_] := Block[{t$95$1 = N[Power[N[(k / t), $MachinePrecision], 2.0], $MachinePrecision]}, If[LessEqual[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[(1.0 + N[(1.0 + t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 5e+307], N[(N[(N[(l * l), $MachinePrecision] * N[(2.0 / N[(N[Tan[k], $MachinePrecision] * N[Power[N[(t * N[Power[N[Sin[k], $MachinePrecision], 1/3], $MachinePrecision]), $MachinePrecision], 3.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(2.0 + t$95$1), $MachinePrecision]), $MachinePrecision], N[(N[(2.0 / N[Power[N[Sin[k], $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision] * N[(N[(N[(N[Cos[k], $MachinePrecision] / N[(k / l), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision] * N[(l / k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := {\left(\frac{k}{t}\right)}^{2}\\
\mathbf{if}\;\frac{2}{\left(\left(\frac{{t}^{3}}{\ell \cdot \ell} \cdot \sin k\right) \cdot \tan k\right) \cdot \left(1 + \left(1 + t_1\right)\right)} \leq 5 \cdot 10^{+307}:\\
\;\;\;\;\frac{\left(\ell \cdot \ell\right) \cdot \frac{2}{\tan k \cdot {\left(t \cdot \sqrt[3]{\sin k}\right)}^{3}}}{2 + t_1}\\
\mathbf{else}:\\
\;\;\;\;\frac{2}{{\sin k}^{2}} \cdot \left(\frac{\frac{\cos k}{\frac{k}{\ell}}}{t} \cdot \frac{\ell}{k}\right)\\
\end{array}
\end{array}
if (/.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))) < 5e307Initial program 72.8%
associate-/r*72.9%
associate-*l*67.4%
sqr-neg67.4%
associate-*l*72.9%
*-commutative72.9%
sqr-neg72.9%
associate-*l/74.7%
associate-*r/74.0%
associate-/r/73.2%
Simplified73.2%
add-cube-cbrt73.1%
pow373.1%
cbrt-prod73.0%
rem-cbrt-cube77.6%
Applied egg-rr77.6%
if 5e307 < (/.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))) Initial program 21.2%
Taylor expanded in t around 0 54.1%
associate-*r*54.1%
times-frac54.9%
unpow254.9%
associate-*l*57.9%
unpow257.9%
Simplified57.9%
associate-*r/57.9%
times-frac74.9%
Applied egg-rr74.9%
Taylor expanded in k around inf 54.1%
associate-*r*54.2%
unpow254.2%
associate-*r*57.2%
associate-*l/57.9%
unpow257.9%
*-commutative57.9%
times-frac74.9%
associate-*l/77.3%
*-commutative77.3%
Simplified77.3%
div-inv77.3%
associate-/l*77.4%
Applied egg-rr77.4%
associate-*r/77.4%
metadata-eval77.4%
associate-/r/77.4%
associate-/r*77.4%
associate-*r/75.0%
associate-/l*77.4%
associate-/r/77.5%
Simplified77.5%
Final simplification77.5%
(FPCore (t l k)
:precision binary64
(let* ((t_1 (pow (/ k t) 2.0)))
(if (<=
(/
2.0
(*
(* (* (/ (pow t 3.0) (* l l)) (sin k)) (tan k))
(+ 1.0 (+ 1.0 t_1))))
1e+26)
(/
(/ (/ (* 2.0 (* l l)) (tan k)) (pow (* t (cbrt (sin k))) 3.0))
(+ 2.0 t_1))
(* (/ 2.0 (pow (sin k) 2.0)) (* (/ (/ (cos k) (/ k l)) t) (/ l k))))))
double code(double t, double l, double k) {
double t_1 = pow((k / t), 2.0);
double tmp;
if ((2.0 / ((((pow(t, 3.0) / (l * l)) * sin(k)) * tan(k)) * (1.0 + (1.0 + t_1)))) <= 1e+26) {
tmp = (((2.0 * (l * l)) / tan(k)) / pow((t * cbrt(sin(k))), 3.0)) / (2.0 + t_1);
} else {
tmp = (2.0 / pow(sin(k), 2.0)) * (((cos(k) / (k / l)) / t) * (l / k));
}
return tmp;
}
public static double code(double t, double l, double k) {
double t_1 = Math.pow((k / t), 2.0);
double tmp;
if ((2.0 / ((((Math.pow(t, 3.0) / (l * l)) * Math.sin(k)) * Math.tan(k)) * (1.0 + (1.0 + t_1)))) <= 1e+26) {
tmp = (((2.0 * (l * l)) / Math.tan(k)) / Math.pow((t * Math.cbrt(Math.sin(k))), 3.0)) / (2.0 + t_1);
} else {
tmp = (2.0 / Math.pow(Math.sin(k), 2.0)) * (((Math.cos(k) / (k / l)) / t) * (l / k));
}
return tmp;
}
function code(t, l, k) t_1 = Float64(k / t) ^ 2.0 tmp = 0.0 if (Float64(2.0 / Float64(Float64(Float64(Float64((t ^ 3.0) / Float64(l * l)) * sin(k)) * tan(k)) * Float64(1.0 + Float64(1.0 + t_1)))) <= 1e+26) tmp = Float64(Float64(Float64(Float64(2.0 * Float64(l * l)) / tan(k)) / (Float64(t * cbrt(sin(k))) ^ 3.0)) / Float64(2.0 + t_1)); else tmp = Float64(Float64(2.0 / (sin(k) ^ 2.0)) * Float64(Float64(Float64(cos(k) / Float64(k / l)) / t) * Float64(l / k))); end return tmp end
code[t_, l_, k_] := Block[{t$95$1 = N[Power[N[(k / t), $MachinePrecision], 2.0], $MachinePrecision]}, If[LessEqual[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[(1.0 + N[(1.0 + t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1e+26], N[(N[(N[(N[(2.0 * N[(l * l), $MachinePrecision]), $MachinePrecision] / N[Tan[k], $MachinePrecision]), $MachinePrecision] / N[Power[N[(t * N[Power[N[Sin[k], $MachinePrecision], 1/3], $MachinePrecision]), $MachinePrecision], 3.0], $MachinePrecision]), $MachinePrecision] / N[(2.0 + t$95$1), $MachinePrecision]), $MachinePrecision], N[(N[(2.0 / N[Power[N[Sin[k], $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision] * N[(N[(N[(N[Cos[k], $MachinePrecision] / N[(k / l), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision] * N[(l / k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := {\left(\frac{k}{t}\right)}^{2}\\
\mathbf{if}\;\frac{2}{\left(\left(\frac{{t}^{3}}{\ell \cdot \ell} \cdot \sin k\right) \cdot \tan k\right) \cdot \left(1 + \left(1 + t_1\right)\right)} \leq 10^{+26}:\\
\;\;\;\;\frac{\frac{\frac{2 \cdot \left(\ell \cdot \ell\right)}{\tan k}}{{\left(t \cdot \sqrt[3]{\sin k}\right)}^{3}}}{2 + t_1}\\
\mathbf{else}:\\
\;\;\;\;\frac{2}{{\sin k}^{2}} \cdot \left(\frac{\frac{\cos k}{\frac{k}{\ell}}}{t} \cdot \frac{\ell}{k}\right)\\
\end{array}
\end{array}
if (/.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))) < 1.00000000000000005e26Initial program 72.6%
associate-/r*72.7%
associate-*l*67.2%
sqr-neg67.2%
associate-*l*72.7%
*-commutative72.7%
sqr-neg72.7%
associate-*l/74.6%
associate-*r/73.8%
associate-/r/73.0%
Simplified73.0%
add-cube-cbrt72.9%
pow372.9%
cbrt-prod72.9%
rem-cbrt-cube77.5%
Applied egg-rr77.5%
associate-*l/78.3%
Applied egg-rr78.3%
associate-/r*78.1%
Simplified78.1%
if 1.00000000000000005e26 < (/.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))) Initial program 21.8%
Taylor expanded in t around 0 53.8%
associate-*r*53.8%
times-frac54.6%
unpow254.6%
associate-*l*57.6%
unpow257.6%
Simplified57.6%
associate-*r/57.6%
times-frac74.5%
Applied egg-rr74.5%
Taylor expanded in k around inf 53.8%
associate-*r*53.9%
unpow253.9%
associate-*r*56.9%
associate-*l/57.6%
unpow257.6%
*-commutative57.6%
times-frac74.5%
associate-*l/76.9%
*-commutative76.9%
Simplified76.9%
div-inv76.9%
associate-/l*76.9%
Applied egg-rr76.9%
associate-*r/76.9%
metadata-eval76.9%
associate-/r/76.9%
associate-/r*77.0%
associate-*r/74.5%
associate-/l*77.0%
associate-/r/77.0%
Simplified77.0%
Final simplification77.6%
(FPCore (t l k)
:precision binary64
(let* ((t_1 (pow (/ k t) 2.0)))
(if (<=
(/
2.0
(*
(* (* (/ (pow t 3.0) (* l l)) (sin k)) (tan k))
(+ 1.0 (+ 1.0 t_1))))
5e+307)
(/ (* l (/ (* 2.0 l) (* (tan k) (* (pow t 3.0) (sin k))))) (+ 2.0 t_1))
(* (/ 2.0 (pow (sin k) 2.0)) (* (/ (/ (cos k) (/ k l)) t) (/ l k))))))
double code(double t, double l, double k) {
double t_1 = pow((k / t), 2.0);
double tmp;
if ((2.0 / ((((pow(t, 3.0) / (l * l)) * sin(k)) * tan(k)) * (1.0 + (1.0 + t_1)))) <= 5e+307) {
tmp = (l * ((2.0 * l) / (tan(k) * (pow(t, 3.0) * sin(k))))) / (2.0 + t_1);
} else {
tmp = (2.0 / pow(sin(k), 2.0)) * (((cos(k) / (k / l)) / t) * (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 / t) ** 2.0d0
if ((2.0d0 / (((((t ** 3.0d0) / (l * l)) * sin(k)) * tan(k)) * (1.0d0 + (1.0d0 + t_1)))) <= 5d+307) then
tmp = (l * ((2.0d0 * l) / (tan(k) * ((t ** 3.0d0) * sin(k))))) / (2.0d0 + t_1)
else
tmp = (2.0d0 / (sin(k) ** 2.0d0)) * (((cos(k) / (k / l)) / t) * (l / k))
end if
code = tmp
end function
public static double code(double t, double l, double k) {
double t_1 = Math.pow((k / t), 2.0);
double tmp;
if ((2.0 / ((((Math.pow(t, 3.0) / (l * l)) * Math.sin(k)) * Math.tan(k)) * (1.0 + (1.0 + t_1)))) <= 5e+307) {
tmp = (l * ((2.0 * l) / (Math.tan(k) * (Math.pow(t, 3.0) * Math.sin(k))))) / (2.0 + t_1);
} else {
tmp = (2.0 / Math.pow(Math.sin(k), 2.0)) * (((Math.cos(k) / (k / l)) / t) * (l / k));
}
return tmp;
}
def code(t, l, k): t_1 = math.pow((k / t), 2.0) tmp = 0 if (2.0 / ((((math.pow(t, 3.0) / (l * l)) * math.sin(k)) * math.tan(k)) * (1.0 + (1.0 + t_1)))) <= 5e+307: tmp = (l * ((2.0 * l) / (math.tan(k) * (math.pow(t, 3.0) * math.sin(k))))) / (2.0 + t_1) else: tmp = (2.0 / math.pow(math.sin(k), 2.0)) * (((math.cos(k) / (k / l)) / t) * (l / k)) return tmp
function code(t, l, k) t_1 = Float64(k / t) ^ 2.0 tmp = 0.0 if (Float64(2.0 / Float64(Float64(Float64(Float64((t ^ 3.0) / Float64(l * l)) * sin(k)) * tan(k)) * Float64(1.0 + Float64(1.0 + t_1)))) <= 5e+307) tmp = Float64(Float64(l * Float64(Float64(2.0 * l) / Float64(tan(k) * Float64((t ^ 3.0) * sin(k))))) / Float64(2.0 + t_1)); else tmp = Float64(Float64(2.0 / (sin(k) ^ 2.0)) * Float64(Float64(Float64(cos(k) / Float64(k / l)) / t) * Float64(l / k))); end return tmp end
function tmp_2 = code(t, l, k) t_1 = (k / t) ^ 2.0; tmp = 0.0; if ((2.0 / (((((t ^ 3.0) / (l * l)) * sin(k)) * tan(k)) * (1.0 + (1.0 + t_1)))) <= 5e+307) tmp = (l * ((2.0 * l) / (tan(k) * ((t ^ 3.0) * sin(k))))) / (2.0 + t_1); else tmp = (2.0 / (sin(k) ^ 2.0)) * (((cos(k) / (k / l)) / t) * (l / k)); end tmp_2 = tmp; end
code[t_, l_, k_] := Block[{t$95$1 = N[Power[N[(k / t), $MachinePrecision], 2.0], $MachinePrecision]}, If[LessEqual[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[(1.0 + N[(1.0 + t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 5e+307], N[(N[(l * N[(N[(2.0 * l), $MachinePrecision] / N[(N[Tan[k], $MachinePrecision] * N[(N[Power[t, 3.0], $MachinePrecision] * N[Sin[k], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(2.0 + t$95$1), $MachinePrecision]), $MachinePrecision], N[(N[(2.0 / N[Power[N[Sin[k], $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision] * N[(N[(N[(N[Cos[k], $MachinePrecision] / N[(k / l), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision] * N[(l / k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := {\left(\frac{k}{t}\right)}^{2}\\
\mathbf{if}\;\frac{2}{\left(\left(\frac{{t}^{3}}{\ell \cdot \ell} \cdot \sin k\right) \cdot \tan k\right) \cdot \left(1 + \left(1 + t_1\right)\right)} \leq 5 \cdot 10^{+307}:\\
\;\;\;\;\frac{\ell \cdot \frac{2 \cdot \ell}{\tan k \cdot \left({t}^{3} \cdot \sin k\right)}}{2 + t_1}\\
\mathbf{else}:\\
\;\;\;\;\frac{2}{{\sin k}^{2}} \cdot \left(\frac{\frac{\cos k}{\frac{k}{\ell}}}{t} \cdot \frac{\ell}{k}\right)\\
\end{array}
\end{array}
if (/.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))) < 5e307Initial program 72.8%
associate-/r*72.9%
associate-*l*67.4%
sqr-neg67.4%
associate-*l*72.9%
*-commutative72.9%
sqr-neg72.9%
associate-*l/74.7%
associate-*r/74.0%
associate-/r/73.2%
Simplified73.2%
add-cube-cbrt73.1%
pow373.1%
cbrt-prod73.0%
rem-cbrt-cube77.6%
Applied egg-rr77.6%
associate-*l/78.4%
Applied egg-rr78.4%
unpow278.4%
*-commutative78.4%
associate-*r/77.6%
unpow277.6%
associate-*l*81.6%
associate-*r/82.4%
*-commutative82.4%
cube-prod77.3%
rem-cube-cbrt77.4%
Simplified77.4%
if 5e307 < (/.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))) Initial program 21.2%
Taylor expanded in t around 0 54.1%
associate-*r*54.1%
times-frac54.9%
unpow254.9%
associate-*l*57.9%
unpow257.9%
Simplified57.9%
associate-*r/57.9%
times-frac74.9%
Applied egg-rr74.9%
Taylor expanded in k around inf 54.1%
associate-*r*54.2%
unpow254.2%
associate-*r*57.2%
associate-*l/57.9%
unpow257.9%
*-commutative57.9%
times-frac74.9%
associate-*l/77.3%
*-commutative77.3%
Simplified77.3%
div-inv77.3%
associate-/l*77.4%
Applied egg-rr77.4%
associate-*r/77.4%
metadata-eval77.4%
associate-/r/77.4%
associate-/r*77.4%
associate-*r/75.0%
associate-/l*77.4%
associate-/r/77.5%
Simplified77.5%
Final simplification77.5%
(FPCore (t l k)
:precision binary64
(if (or (<= t -1.85e+152) (not (<= t 3800000000000.0)))
(/
2.0
(*
(+ 1.0 (+ 1.0 (pow (/ k t) 2.0)))
(* (tan k) (* (/ k l) (/ (pow t 3.0) l)))))
(* (/ 2.0 (pow (sin k) 2.0)) (* (/ (/ (cos k) (/ k l)) t) (/ l k)))))
double code(double t, double l, double k) {
double tmp;
if ((t <= -1.85e+152) || !(t <= 3800000000000.0)) {
tmp = 2.0 / ((1.0 + (1.0 + pow((k / t), 2.0))) * (tan(k) * ((k / l) * (pow(t, 3.0) / l))));
} else {
tmp = (2.0 / pow(sin(k), 2.0)) * (((cos(k) / (k / l)) / t) * (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) :: tmp
if ((t <= (-1.85d+152)) .or. (.not. (t <= 3800000000000.0d0))) then
tmp = 2.0d0 / ((1.0d0 + (1.0d0 + ((k / t) ** 2.0d0))) * (tan(k) * ((k / l) * ((t ** 3.0d0) / l))))
else
tmp = (2.0d0 / (sin(k) ** 2.0d0)) * (((cos(k) / (k / l)) / t) * (l / k))
end if
code = tmp
end function
public static double code(double t, double l, double k) {
double tmp;
if ((t <= -1.85e+152) || !(t <= 3800000000000.0)) {
tmp = 2.0 / ((1.0 + (1.0 + Math.pow((k / t), 2.0))) * (Math.tan(k) * ((k / l) * (Math.pow(t, 3.0) / l))));
} else {
tmp = (2.0 / Math.pow(Math.sin(k), 2.0)) * (((Math.cos(k) / (k / l)) / t) * (l / k));
}
return tmp;
}
def code(t, l, k): tmp = 0 if (t <= -1.85e+152) or not (t <= 3800000000000.0): tmp = 2.0 / ((1.0 + (1.0 + math.pow((k / t), 2.0))) * (math.tan(k) * ((k / l) * (math.pow(t, 3.0) / l)))) else: tmp = (2.0 / math.pow(math.sin(k), 2.0)) * (((math.cos(k) / (k / l)) / t) * (l / k)) return tmp
function code(t, l, k) tmp = 0.0 if ((t <= -1.85e+152) || !(t <= 3800000000000.0)) tmp = Float64(2.0 / Float64(Float64(1.0 + Float64(1.0 + (Float64(k / t) ^ 2.0))) * Float64(tan(k) * Float64(Float64(k / l) * Float64((t ^ 3.0) / l))))); else tmp = Float64(Float64(2.0 / (sin(k) ^ 2.0)) * Float64(Float64(Float64(cos(k) / Float64(k / l)) / t) * Float64(l / k))); end return tmp end
function tmp_2 = code(t, l, k) tmp = 0.0; if ((t <= -1.85e+152) || ~((t <= 3800000000000.0))) tmp = 2.0 / ((1.0 + (1.0 + ((k / t) ^ 2.0))) * (tan(k) * ((k / l) * ((t ^ 3.0) / l)))); else tmp = (2.0 / (sin(k) ^ 2.0)) * (((cos(k) / (k / l)) / t) * (l / k)); end tmp_2 = tmp; end
code[t_, l_, k_] := If[Or[LessEqual[t, -1.85e+152], N[Not[LessEqual[t, 3800000000000.0]], $MachinePrecision]], N[(2.0 / N[(N[(1.0 + N[(1.0 + N[Power[N[(k / t), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(N[Tan[k], $MachinePrecision] * N[(N[(k / l), $MachinePrecision] * N[(N[Power[t, 3.0], $MachinePrecision] / l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(2.0 / N[Power[N[Sin[k], $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision] * N[(N[(N[(N[Cos[k], $MachinePrecision] / N[(k / l), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision] * N[(l / k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.85 \cdot 10^{+152} \lor \neg \left(t \leq 3800000000000\right):\\
\;\;\;\;\frac{2}{\left(1 + \left(1 + {\left(\frac{k}{t}\right)}^{2}\right)\right) \cdot \left(\tan k \cdot \left(\frac{k}{\ell} \cdot \frac{{t}^{3}}{\ell}\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{2}{{\sin k}^{2}} \cdot \left(\frac{\frac{\cos k}{\frac{k}{\ell}}}{t} \cdot \frac{\ell}{k}\right)\\
\end{array}
\end{array}
if t < -1.84999999999999998e152 or 3.8e12 < t Initial program 54.8%
Taylor expanded in k around 0 56.7%
*-commutative56.7%
unpow256.7%
times-frac60.0%
Simplified60.0%
if -1.84999999999999998e152 < t < 3.8e12Initial program 43.0%
Taylor expanded in t around 0 66.0%
associate-*r*66.0%
times-frac66.5%
unpow266.5%
associate-*l*68.8%
unpow268.8%
Simplified68.8%
associate-*r/68.8%
times-frac81.6%
Applied egg-rr81.6%
Taylor expanded in k around inf 66.0%
associate-*r*66.0%
unpow266.0%
associate-*r*68.3%
associate-*l/68.8%
unpow268.8%
*-commutative68.8%
times-frac81.6%
associate-*l/84.0%
*-commutative84.0%
Simplified84.0%
div-inv84.0%
associate-/l*84.0%
Applied egg-rr84.0%
associate-*r/84.0%
metadata-eval84.0%
associate-/r/84.0%
associate-/r*84.2%
associate-*r/81.7%
associate-/l*84.2%
associate-/r/84.2%
Simplified84.2%
Final simplification76.0%
(FPCore (t l k)
:precision binary64
(let* ((t_1 (/ (pow t 3.0) l)) (t_2 (+ 1.0 (+ 1.0 (pow (/ k t) 2.0)))))
(if (<= t -1.25e+148)
(/ 2.0 (* t_2 (* (tan k) (/ k (/ l t_1)))))
(if (<= t 2.1e+14)
(* (/ 2.0 (pow (sin k) 2.0)) (* (/ (/ (cos k) (/ k l)) t) (/ l k)))
(/ 2.0 (* t_2 (* (tan k) (* (/ k l) t_1))))))))
double code(double t, double l, double k) {
double t_1 = pow(t, 3.0) / l;
double t_2 = 1.0 + (1.0 + pow((k / t), 2.0));
double tmp;
if (t <= -1.25e+148) {
tmp = 2.0 / (t_2 * (tan(k) * (k / (l / t_1))));
} else if (t <= 2.1e+14) {
tmp = (2.0 / pow(sin(k), 2.0)) * (((cos(k) / (k / l)) / t) * (l / k));
} else {
tmp = 2.0 / (t_2 * (tan(k) * ((k / l) * 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
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = (t ** 3.0d0) / l
t_2 = 1.0d0 + (1.0d0 + ((k / t) ** 2.0d0))
if (t <= (-1.25d+148)) then
tmp = 2.0d0 / (t_2 * (tan(k) * (k / (l / t_1))))
else if (t <= 2.1d+14) then
tmp = (2.0d0 / (sin(k) ** 2.0d0)) * (((cos(k) / (k / l)) / t) * (l / k))
else
tmp = 2.0d0 / (t_2 * (tan(k) * ((k / l) * t_1)))
end if
code = tmp
end function
public static double code(double t, double l, double k) {
double t_1 = Math.pow(t, 3.0) / l;
double t_2 = 1.0 + (1.0 + Math.pow((k / t), 2.0));
double tmp;
if (t <= -1.25e+148) {
tmp = 2.0 / (t_2 * (Math.tan(k) * (k / (l / t_1))));
} else if (t <= 2.1e+14) {
tmp = (2.0 / Math.pow(Math.sin(k), 2.0)) * (((Math.cos(k) / (k / l)) / t) * (l / k));
} else {
tmp = 2.0 / (t_2 * (Math.tan(k) * ((k / l) * t_1)));
}
return tmp;
}
def code(t, l, k): t_1 = math.pow(t, 3.0) / l t_2 = 1.0 + (1.0 + math.pow((k / t), 2.0)) tmp = 0 if t <= -1.25e+148: tmp = 2.0 / (t_2 * (math.tan(k) * (k / (l / t_1)))) elif t <= 2.1e+14: tmp = (2.0 / math.pow(math.sin(k), 2.0)) * (((math.cos(k) / (k / l)) / t) * (l / k)) else: tmp = 2.0 / (t_2 * (math.tan(k) * ((k / l) * t_1))) return tmp
function code(t, l, k) t_1 = Float64((t ^ 3.0) / l) t_2 = Float64(1.0 + Float64(1.0 + (Float64(k / t) ^ 2.0))) tmp = 0.0 if (t <= -1.25e+148) tmp = Float64(2.0 / Float64(t_2 * Float64(tan(k) * Float64(k / Float64(l / t_1))))); elseif (t <= 2.1e+14) tmp = Float64(Float64(2.0 / (sin(k) ^ 2.0)) * Float64(Float64(Float64(cos(k) / Float64(k / l)) / t) * Float64(l / k))); else tmp = Float64(2.0 / Float64(t_2 * Float64(tan(k) * Float64(Float64(k / l) * t_1)))); end return tmp end
function tmp_2 = code(t, l, k) t_1 = (t ^ 3.0) / l; t_2 = 1.0 + (1.0 + ((k / t) ^ 2.0)); tmp = 0.0; if (t <= -1.25e+148) tmp = 2.0 / (t_2 * (tan(k) * (k / (l / t_1)))); elseif (t <= 2.1e+14) tmp = (2.0 / (sin(k) ^ 2.0)) * (((cos(k) / (k / l)) / t) * (l / k)); else tmp = 2.0 / (t_2 * (tan(k) * ((k / l) * t_1))); end tmp_2 = tmp; end
code[t_, l_, k_] := Block[{t$95$1 = N[(N[Power[t, 3.0], $MachinePrecision] / l), $MachinePrecision]}, Block[{t$95$2 = N[(1.0 + N[(1.0 + N[Power[N[(k / t), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -1.25e+148], N[(2.0 / N[(t$95$2 * N[(N[Tan[k], $MachinePrecision] * N[(k / N[(l / t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2.1e+14], N[(N[(2.0 / N[Power[N[Sin[k], $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision] * N[(N[(N[(N[Cos[k], $MachinePrecision] / N[(k / l), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision] * N[(l / k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(2.0 / N[(t$95$2 * N[(N[Tan[k], $MachinePrecision] * N[(N[(k / l), $MachinePrecision] * t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{{t}^{3}}{\ell}\\
t_2 := 1 + \left(1 + {\left(\frac{k}{t}\right)}^{2}\right)\\
\mathbf{if}\;t \leq -1.25 \cdot 10^{+148}:\\
\;\;\;\;\frac{2}{t_2 \cdot \left(\tan k \cdot \frac{k}{\frac{\ell}{t_1}}\right)}\\
\mathbf{elif}\;t \leq 2.1 \cdot 10^{+14}:\\
\;\;\;\;\frac{2}{{\sin k}^{2}} \cdot \left(\frac{\frac{\cos k}{\frac{k}{\ell}}}{t} \cdot \frac{\ell}{k}\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{2}{t_2 \cdot \left(\tan k \cdot \left(\frac{k}{\ell} \cdot t_1\right)\right)}\\
\end{array}
\end{array}
if t < -1.25000000000000006e148Initial program 54.8%
Taylor expanded in k around 0 54.8%
associate-/l*54.8%
unpow254.8%
associate-/l*59.9%
Simplified59.9%
if -1.25000000000000006e148 < t < 2.1e14Initial program 43.0%
Taylor expanded in t around 0 66.0%
associate-*r*66.0%
times-frac66.5%
unpow266.5%
associate-*l*68.8%
unpow268.8%
Simplified68.8%
associate-*r/68.8%
times-frac81.6%
Applied egg-rr81.6%
Taylor expanded in k around inf 66.0%
associate-*r*66.0%
unpow266.0%
associate-*r*68.3%
associate-*l/68.8%
unpow268.8%
*-commutative68.8%
times-frac81.6%
associate-*l/84.0%
*-commutative84.0%
Simplified84.0%
div-inv84.0%
associate-/l*84.0%
Applied egg-rr84.0%
associate-*r/84.0%
metadata-eval84.0%
associate-/r/84.0%
associate-/r*84.2%
associate-*r/81.7%
associate-/l*84.2%
associate-/r/84.2%
Simplified84.2%
if 2.1e14 < t Initial program 54.8%
Taylor expanded in k around 0 57.5%
*-commutative57.5%
unpow257.5%
times-frac60.2%
Simplified60.2%
Final simplification76.0%
(FPCore (t l k) :precision binary64 (if (or (<= t -5.3e-11) (not (<= t 4500.0))) (* (* (/ l k) (/ l (pow t 3.0))) (/ (cos k) (sin k))) (* (* (/ l (/ t l)) (/ (cos k) (pow (sin k) 2.0))) (/ 2.0 (* k k)))))
double code(double t, double l, double k) {
double tmp;
if ((t <= -5.3e-11) || !(t <= 4500.0)) {
tmp = ((l / k) * (l / pow(t, 3.0))) * (cos(k) / sin(k));
} else {
tmp = ((l / (t / l)) * (cos(k) / pow(sin(k), 2.0))) * (2.0 / (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) :: tmp
if ((t <= (-5.3d-11)) .or. (.not. (t <= 4500.0d0))) then
tmp = ((l / k) * (l / (t ** 3.0d0))) * (cos(k) / sin(k))
else
tmp = ((l / (t / l)) * (cos(k) / (sin(k) ** 2.0d0))) * (2.0d0 / (k * k))
end if
code = tmp
end function
public static double code(double t, double l, double k) {
double tmp;
if ((t <= -5.3e-11) || !(t <= 4500.0)) {
tmp = ((l / k) * (l / Math.pow(t, 3.0))) * (Math.cos(k) / Math.sin(k));
} else {
tmp = ((l / (t / l)) * (Math.cos(k) / Math.pow(Math.sin(k), 2.0))) * (2.0 / (k * k));
}
return tmp;
}
def code(t, l, k): tmp = 0 if (t <= -5.3e-11) or not (t <= 4500.0): tmp = ((l / k) * (l / math.pow(t, 3.0))) * (math.cos(k) / math.sin(k)) else: tmp = ((l / (t / l)) * (math.cos(k) / math.pow(math.sin(k), 2.0))) * (2.0 / (k * k)) return tmp
function code(t, l, k) tmp = 0.0 if ((t <= -5.3e-11) || !(t <= 4500.0)) tmp = Float64(Float64(Float64(l / k) * Float64(l / (t ^ 3.0))) * Float64(cos(k) / sin(k))); else tmp = Float64(Float64(Float64(l / Float64(t / l)) * Float64(cos(k) / (sin(k) ^ 2.0))) * Float64(2.0 / Float64(k * k))); end return tmp end
function tmp_2 = code(t, l, k) tmp = 0.0; if ((t <= -5.3e-11) || ~((t <= 4500.0))) tmp = ((l / k) * (l / (t ^ 3.0))) * (cos(k) / sin(k)); else tmp = ((l / (t / l)) * (cos(k) / (sin(k) ^ 2.0))) * (2.0 / (k * k)); end tmp_2 = tmp; end
code[t_, l_, k_] := If[Or[LessEqual[t, -5.3e-11], N[Not[LessEqual[t, 4500.0]], $MachinePrecision]], N[(N[(N[(l / k), $MachinePrecision] * N[(l / N[Power[t, 3.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(N[Cos[k], $MachinePrecision] / N[Sin[k], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[(l / N[(t / l), $MachinePrecision]), $MachinePrecision] * N[(N[Cos[k], $MachinePrecision] / N[Power[N[Sin[k], $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(2.0 / N[(k * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -5.3 \cdot 10^{-11} \lor \neg \left(t \leq 4500\right):\\
\;\;\;\;\left(\frac{\ell}{k} \cdot \frac{\ell}{{t}^{3}}\right) \cdot \frac{\cos k}{\sin k}\\
\mathbf{else}:\\
\;\;\;\;\left(\frac{\ell}{\frac{t}{\ell}} \cdot \frac{\cos k}{{\sin k}^{2}}\right) \cdot \frac{2}{k \cdot k}\\
\end{array}
\end{array}
if t < -5.2999999999999998e-11 or 4500 < t Initial program 55.1%
associate-/r*55.2%
associate-*l*49.4%
sqr-neg49.4%
associate-*l*55.2%
*-commutative55.2%
sqr-neg55.2%
associate-*l/57.2%
associate-*r/56.4%
associate-/r/56.5%
Simplified56.5%
Taylor expanded in k around 0 54.9%
Taylor expanded in t around inf 55.0%
associate-*r*55.0%
times-frac55.7%
unpow255.7%
*-commutative55.7%
times-frac57.4%
Simplified57.4%
if -5.2999999999999998e-11 < t < 4500Initial program 39.9%
Taylor expanded in t around 0 71.1%
associate-*r*71.1%
times-frac71.8%
unpow271.8%
associate-*l*74.6%
unpow274.6%
Simplified74.6%
associate-*r/74.6%
times-frac87.8%
Applied egg-rr87.8%
Taylor expanded in k around inf 71.1%
*-commutative71.1%
associate-*l/71.1%
*-commutative71.1%
times-frac70.1%
times-frac70.9%
unpow270.9%
associate-/l*77.1%
unpow277.1%
Simplified77.1%
Final simplification67.9%
(FPCore (t l k) :precision binary64 (if (or (<= t -1.5e+149) (not (<= t 34000000000000.0))) (* (* (/ l k) (/ l (pow t 3.0))) (/ (cos k) (sin k))) (* (/ 2.0 (pow (sin k) 2.0)) (* (/ (/ (cos k) (/ k l)) t) (/ l k)))))
double code(double t, double l, double k) {
double tmp;
if ((t <= -1.5e+149) || !(t <= 34000000000000.0)) {
tmp = ((l / k) * (l / pow(t, 3.0))) * (cos(k) / sin(k));
} else {
tmp = (2.0 / pow(sin(k), 2.0)) * (((cos(k) / (k / l)) / t) * (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) :: tmp
if ((t <= (-1.5d+149)) .or. (.not. (t <= 34000000000000.0d0))) then
tmp = ((l / k) * (l / (t ** 3.0d0))) * (cos(k) / sin(k))
else
tmp = (2.0d0 / (sin(k) ** 2.0d0)) * (((cos(k) / (k / l)) / t) * (l / k))
end if
code = tmp
end function
public static double code(double t, double l, double k) {
double tmp;
if ((t <= -1.5e+149) || !(t <= 34000000000000.0)) {
tmp = ((l / k) * (l / Math.pow(t, 3.0))) * (Math.cos(k) / Math.sin(k));
} else {
tmp = (2.0 / Math.pow(Math.sin(k), 2.0)) * (((Math.cos(k) / (k / l)) / t) * (l / k));
}
return tmp;
}
def code(t, l, k): tmp = 0 if (t <= -1.5e+149) or not (t <= 34000000000000.0): tmp = ((l / k) * (l / math.pow(t, 3.0))) * (math.cos(k) / math.sin(k)) else: tmp = (2.0 / math.pow(math.sin(k), 2.0)) * (((math.cos(k) / (k / l)) / t) * (l / k)) return tmp
function code(t, l, k) tmp = 0.0 if ((t <= -1.5e+149) || !(t <= 34000000000000.0)) tmp = Float64(Float64(Float64(l / k) * Float64(l / (t ^ 3.0))) * Float64(cos(k) / sin(k))); else tmp = Float64(Float64(2.0 / (sin(k) ^ 2.0)) * Float64(Float64(Float64(cos(k) / Float64(k / l)) / t) * Float64(l / k))); end return tmp end
function tmp_2 = code(t, l, k) tmp = 0.0; if ((t <= -1.5e+149) || ~((t <= 34000000000000.0))) tmp = ((l / k) * (l / (t ^ 3.0))) * (cos(k) / sin(k)); else tmp = (2.0 / (sin(k) ^ 2.0)) * (((cos(k) / (k / l)) / t) * (l / k)); end tmp_2 = tmp; end
code[t_, l_, k_] := If[Or[LessEqual[t, -1.5e+149], N[Not[LessEqual[t, 34000000000000.0]], $MachinePrecision]], N[(N[(N[(l / k), $MachinePrecision] * N[(l / N[Power[t, 3.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(N[Cos[k], $MachinePrecision] / N[Sin[k], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(2.0 / N[Power[N[Sin[k], $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision] * N[(N[(N[(N[Cos[k], $MachinePrecision] / N[(k / l), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision] * N[(l / k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.5 \cdot 10^{+149} \lor \neg \left(t \leq 34000000000000\right):\\
\;\;\;\;\left(\frac{\ell}{k} \cdot \frac{\ell}{{t}^{3}}\right) \cdot \frac{\cos k}{\sin k}\\
\mathbf{else}:\\
\;\;\;\;\frac{2}{{\sin k}^{2}} \cdot \left(\frac{\frac{\cos k}{\frac{k}{\ell}}}{t} \cdot \frac{\ell}{k}\right)\\
\end{array}
\end{array}
if t < -1.50000000000000002e149 or 3.4e13 < t Initial program 54.8%
associate-/r*55.0%
associate-*l*48.8%
sqr-neg48.8%
associate-*l*55.0%
*-commutative55.0%
sqr-neg55.0%
associate-*l/57.9%
associate-*r/56.7%
associate-/r/56.8%
Simplified56.8%
Taylor expanded in k around 0 55.6%
Taylor expanded in t around inf 55.6%
associate-*r*55.6%
times-frac56.7%
unpow256.7%
*-commutative56.7%
times-frac59.7%
Simplified59.7%
if -1.50000000000000002e149 < t < 3.4e13Initial program 43.0%
Taylor expanded in t around 0 66.0%
associate-*r*66.0%
times-frac66.5%
unpow266.5%
associate-*l*68.8%
unpow268.8%
Simplified68.8%
associate-*r/68.8%
times-frac81.6%
Applied egg-rr81.6%
Taylor expanded in k around inf 66.0%
associate-*r*66.0%
unpow266.0%
associate-*r*68.3%
associate-*l/68.8%
unpow268.8%
*-commutative68.8%
times-frac81.6%
associate-*l/84.0%
*-commutative84.0%
Simplified84.0%
div-inv84.0%
associate-/l*84.0%
Applied egg-rr84.0%
associate-*r/84.0%
metadata-eval84.0%
associate-/r/84.0%
associate-/r*84.2%
associate-*r/81.7%
associate-/l*84.2%
associate-/r/84.2%
Simplified84.2%
Final simplification75.9%
(FPCore (t l k)
:precision binary64
(if (<= t 6.6e-170)
(/ 2.0 (* (/ (* k (* t (/ k l))) l) (/ (pow k 2.0) (cos k))))
(if (<= t 7800.0)
(* 2.0 (* (/ (* l l) (* k k)) (/ (cos k) (* t (pow (sin k) 2.0)))))
(* (* (/ l k) (/ l (pow t 3.0))) (/ (cos k) (sin k))))))
double code(double t, double l, double k) {
double tmp;
if (t <= 6.6e-170) {
tmp = 2.0 / (((k * (t * (k / l))) / l) * (pow(k, 2.0) / cos(k)));
} else if (t <= 7800.0) {
tmp = 2.0 * (((l * l) / (k * k)) * (cos(k) / (t * pow(sin(k), 2.0))));
} else {
tmp = ((l / k) * (l / pow(t, 3.0))) * (cos(k) / sin(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) :: tmp
if (t <= 6.6d-170) then
tmp = 2.0d0 / (((k * (t * (k / l))) / l) * ((k ** 2.0d0) / cos(k)))
else if (t <= 7800.0d0) then
tmp = 2.0d0 * (((l * l) / (k * k)) * (cos(k) / (t * (sin(k) ** 2.0d0))))
else
tmp = ((l / k) * (l / (t ** 3.0d0))) * (cos(k) / sin(k))
end if
code = tmp
end function
public static double code(double t, double l, double k) {
double tmp;
if (t <= 6.6e-170) {
tmp = 2.0 / (((k * (t * (k / l))) / l) * (Math.pow(k, 2.0) / Math.cos(k)));
} else if (t <= 7800.0) {
tmp = 2.0 * (((l * l) / (k * k)) * (Math.cos(k) / (t * Math.pow(Math.sin(k), 2.0))));
} else {
tmp = ((l / k) * (l / Math.pow(t, 3.0))) * (Math.cos(k) / Math.sin(k));
}
return tmp;
}
def code(t, l, k): tmp = 0 if t <= 6.6e-170: tmp = 2.0 / (((k * (t * (k / l))) / l) * (math.pow(k, 2.0) / math.cos(k))) elif t <= 7800.0: tmp = 2.0 * (((l * l) / (k * k)) * (math.cos(k) / (t * math.pow(math.sin(k), 2.0)))) else: tmp = ((l / k) * (l / math.pow(t, 3.0))) * (math.cos(k) / math.sin(k)) return tmp
function code(t, l, k) tmp = 0.0 if (t <= 6.6e-170) tmp = Float64(2.0 / Float64(Float64(Float64(k * Float64(t * Float64(k / l))) / l) * Float64((k ^ 2.0) / cos(k)))); elseif (t <= 7800.0) tmp = Float64(2.0 * Float64(Float64(Float64(l * l) / Float64(k * k)) * Float64(cos(k) / Float64(t * (sin(k) ^ 2.0))))); else tmp = Float64(Float64(Float64(l / k) * Float64(l / (t ^ 3.0))) * Float64(cos(k) / sin(k))); end return tmp end
function tmp_2 = code(t, l, k) tmp = 0.0; if (t <= 6.6e-170) tmp = 2.0 / (((k * (t * (k / l))) / l) * ((k ^ 2.0) / cos(k))); elseif (t <= 7800.0) tmp = 2.0 * (((l * l) / (k * k)) * (cos(k) / (t * (sin(k) ^ 2.0)))); else tmp = ((l / k) * (l / (t ^ 3.0))) * (cos(k) / sin(k)); end tmp_2 = tmp; end
code[t_, l_, k_] := If[LessEqual[t, 6.6e-170], N[(2.0 / N[(N[(N[(k * N[(t * N[(k / l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / l), $MachinePrecision] * N[(N[Power[k, 2.0], $MachinePrecision] / N[Cos[k], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 7800.0], N[(2.0 * N[(N[(N[(l * l), $MachinePrecision] / N[(k * k), $MachinePrecision]), $MachinePrecision] * N[(N[Cos[k], $MachinePrecision] / N[(t * N[Power[N[Sin[k], $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[(l / k), $MachinePrecision] * N[(l / N[Power[t, 3.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(N[Cos[k], $MachinePrecision] / N[Sin[k], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq 6.6 \cdot 10^{-170}:\\
\;\;\;\;\frac{2}{\frac{k \cdot \left(t \cdot \frac{k}{\ell}\right)}{\ell} \cdot \frac{{k}^{2}}{\cos k}}\\
\mathbf{elif}\;t \leq 7800:\\
\;\;\;\;2 \cdot \left(\frac{\ell \cdot \ell}{k \cdot k} \cdot \frac{\cos k}{t \cdot {\sin k}^{2}}\right)\\
\mathbf{else}:\\
\;\;\;\;\left(\frac{\ell}{k} \cdot \frac{\ell}{{t}^{3}}\right) \cdot \frac{\cos k}{\sin k}\\
\end{array}
\end{array}
if t < 6.60000000000000007e-170Initial program 44.3%
Taylor expanded in t around 0 59.4%
associate-*r*59.4%
times-frac60.0%
unpow260.0%
associate-*l*61.9%
unpow261.9%
Simplified61.9%
Taylor expanded in k around 0 56.9%
expm1-log1p-u36.0%
times-frac40.7%
Applied egg-rr40.7%
expm1-log1p-u65.0%
associate-*l/65.0%
*-commutative65.0%
associate-*r/65.8%
Applied egg-rr65.8%
if 6.60000000000000007e-170 < t < 7800Initial program 43.5%
associate-/r*43.3%
associate-*l*43.2%
sqr-neg43.2%
associate-*l*43.3%
*-commutative43.3%
sqr-neg43.3%
associate-*l/43.2%
associate-*r/43.2%
associate-/r/40.5%
Simplified40.5%
Taylor expanded in k around inf 80.3%
times-frac80.3%
unpow280.3%
unpow280.3%
Simplified80.3%
if 7800 < t Initial program 55.4%
associate-/r*55.6%
associate-*l*49.2%
sqr-neg49.2%
associate-*l*55.6%
*-commutative55.6%
sqr-neg55.6%
associate-*l/59.3%
associate-*r/57.9%
associate-/r/57.9%
Simplified57.9%
Taylor expanded in k around 0 55.0%
Taylor expanded in t around inf 55.1%
associate-*r*55.1%
times-frac56.5%
unpow256.5%
*-commutative56.5%
times-frac58.9%
Simplified58.9%
Final simplification66.1%
(FPCore (t l k)
:precision binary64
(if (<= k 2.15e-133)
(* (* (/ l k) (/ l (pow t 3.0))) (/ (cos k) (sin k)))
(if (<= k 3.8e+16)
(/ 2.0 (* (/ (* k (* t (/ k l))) l) (/ (pow k 2.0) (cos k))))
(* (/ 2.0 (* k (* t k))) (/ (* (* l l) (cos k)) (pow (sin k) 2.0))))))
double code(double t, double l, double k) {
double tmp;
if (k <= 2.15e-133) {
tmp = ((l / k) * (l / pow(t, 3.0))) * (cos(k) / sin(k));
} else if (k <= 3.8e+16) {
tmp = 2.0 / (((k * (t * (k / l))) / l) * (pow(k, 2.0) / cos(k)));
} else {
tmp = (2.0 / (k * (t * k))) * (((l * l) * cos(k)) / pow(sin(k), 2.0));
}
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 <= 2.15d-133) then
tmp = ((l / k) * (l / (t ** 3.0d0))) * (cos(k) / sin(k))
else if (k <= 3.8d+16) then
tmp = 2.0d0 / (((k * (t * (k / l))) / l) * ((k ** 2.0d0) / cos(k)))
else
tmp = (2.0d0 / (k * (t * k))) * (((l * l) * cos(k)) / (sin(k) ** 2.0d0))
end if
code = tmp
end function
public static double code(double t, double l, double k) {
double tmp;
if (k <= 2.15e-133) {
tmp = ((l / k) * (l / Math.pow(t, 3.0))) * (Math.cos(k) / Math.sin(k));
} else if (k <= 3.8e+16) {
tmp = 2.0 / (((k * (t * (k / l))) / l) * (Math.pow(k, 2.0) / Math.cos(k)));
} else {
tmp = (2.0 / (k * (t * k))) * (((l * l) * Math.cos(k)) / Math.pow(Math.sin(k), 2.0));
}
return tmp;
}
def code(t, l, k): tmp = 0 if k <= 2.15e-133: tmp = ((l / k) * (l / math.pow(t, 3.0))) * (math.cos(k) / math.sin(k)) elif k <= 3.8e+16: tmp = 2.0 / (((k * (t * (k / l))) / l) * (math.pow(k, 2.0) / math.cos(k))) else: tmp = (2.0 / (k * (t * k))) * (((l * l) * math.cos(k)) / math.pow(math.sin(k), 2.0)) return tmp
function code(t, l, k) tmp = 0.0 if (k <= 2.15e-133) tmp = Float64(Float64(Float64(l / k) * Float64(l / (t ^ 3.0))) * Float64(cos(k) / sin(k))); elseif (k <= 3.8e+16) tmp = Float64(2.0 / Float64(Float64(Float64(k * Float64(t * Float64(k / l))) / l) * Float64((k ^ 2.0) / cos(k)))); else tmp = Float64(Float64(2.0 / Float64(k * Float64(t * k))) * Float64(Float64(Float64(l * l) * cos(k)) / (sin(k) ^ 2.0))); end return tmp end
function tmp_2 = code(t, l, k) tmp = 0.0; if (k <= 2.15e-133) tmp = ((l / k) * (l / (t ^ 3.0))) * (cos(k) / sin(k)); elseif (k <= 3.8e+16) tmp = 2.0 / (((k * (t * (k / l))) / l) * ((k ^ 2.0) / cos(k))); else tmp = (2.0 / (k * (t * k))) * (((l * l) * cos(k)) / (sin(k) ^ 2.0)); end tmp_2 = tmp; end
code[t_, l_, k_] := If[LessEqual[k, 2.15e-133], N[(N[(N[(l / k), $MachinePrecision] * N[(l / N[Power[t, 3.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(N[Cos[k], $MachinePrecision] / N[Sin[k], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, 3.8e+16], N[(2.0 / N[(N[(N[(k * N[(t * N[(k / l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / l), $MachinePrecision] * N[(N[Power[k, 2.0], $MachinePrecision] / N[Cos[k], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(2.0 / N[(k * N[(t * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(N[(N[(l * l), $MachinePrecision] * N[Cos[k], $MachinePrecision]), $MachinePrecision] / N[Power[N[Sin[k], $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;k \leq 2.15 \cdot 10^{-133}:\\
\;\;\;\;\left(\frac{\ell}{k} \cdot \frac{\ell}{{t}^{3}}\right) \cdot \frac{\cos k}{\sin k}\\
\mathbf{elif}\;k \leq 3.8 \cdot 10^{+16}:\\
\;\;\;\;\frac{2}{\frac{k \cdot \left(t \cdot \frac{k}{\ell}\right)}{\ell} \cdot \frac{{k}^{2}}{\cos k}}\\
\mathbf{else}:\\
\;\;\;\;\frac{2}{k \cdot \left(t \cdot k\right)} \cdot \frac{\left(\ell \cdot \ell\right) \cdot \cos k}{{\sin k}^{2}}\\
\end{array}
\end{array}
if k < 2.15000000000000008e-133Initial program 48.9%
associate-/r*49.0%
associate-*l*44.9%
sqr-neg44.9%
associate-*l*49.0%
*-commutative49.0%
sqr-neg49.0%
associate-*l/50.4%
associate-*r/49.8%
associate-/r/49.2%
Simplified49.2%
Taylor expanded in k around 0 49.3%
Taylor expanded in t around inf 50.4%
associate-*r*50.4%
times-frac51.0%
unpow251.0%
*-commutative51.0%
times-frac55.5%
Simplified55.5%
if 2.15000000000000008e-133 < k < 3.8e16Initial program 50.5%
Taylor expanded in t around 0 58.2%
associate-*r*58.2%
times-frac58.4%
unpow258.4%
associate-*l*58.4%
unpow258.4%
Simplified58.4%
Taylor expanded in k around 0 57.7%
expm1-log1p-u48.4%
times-frac53.6%
Applied egg-rr53.6%
expm1-log1p-u68.9%
associate-*l/68.8%
*-commutative68.8%
associate-*r/72.8%
Applied egg-rr72.8%
if 3.8e16 < k Initial program 38.2%
associate-/r*38.2%
associate-*l*38.2%
sqr-neg38.2%
associate-*l*38.2%
*-commutative38.2%
sqr-neg38.2%
associate-*l/38.2%
associate-*r/38.2%
associate-/r/38.2%
Simplified38.2%
Taylor expanded in k around inf 67.9%
associate-*r/67.9%
associate-*r*68.0%
times-frac68.0%
unpow268.0%
associate-*l*71.8%
unpow271.8%
Simplified71.8%
Final simplification61.0%
(FPCore (t l k) :precision binary64 (if (<= t 15000000000000.0) (* (cos k) (/ 2.0 (* (pow (sin k) 2.0) (* (/ k l) (* t (/ k l)))))) (* (* (/ l k) (/ l (pow t 3.0))) (/ (cos k) (sin k)))))
double code(double t, double l, double k) {
double tmp;
if (t <= 15000000000000.0) {
tmp = cos(k) * (2.0 / (pow(sin(k), 2.0) * ((k / l) * (t * (k / l)))));
} else {
tmp = ((l / k) * (l / pow(t, 3.0))) * (cos(k) / sin(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) :: tmp
if (t <= 15000000000000.0d0) then
tmp = cos(k) * (2.0d0 / ((sin(k) ** 2.0d0) * ((k / l) * (t * (k / l)))))
else
tmp = ((l / k) * (l / (t ** 3.0d0))) * (cos(k) / sin(k))
end if
code = tmp
end function
public static double code(double t, double l, double k) {
double tmp;
if (t <= 15000000000000.0) {
tmp = Math.cos(k) * (2.0 / (Math.pow(Math.sin(k), 2.0) * ((k / l) * (t * (k / l)))));
} else {
tmp = ((l / k) * (l / Math.pow(t, 3.0))) * (Math.cos(k) / Math.sin(k));
}
return tmp;
}
def code(t, l, k): tmp = 0 if t <= 15000000000000.0: tmp = math.cos(k) * (2.0 / (math.pow(math.sin(k), 2.0) * ((k / l) * (t * (k / l))))) else: tmp = ((l / k) * (l / math.pow(t, 3.0))) * (math.cos(k) / math.sin(k)) return tmp
function code(t, l, k) tmp = 0.0 if (t <= 15000000000000.0) tmp = Float64(cos(k) * Float64(2.0 / Float64((sin(k) ^ 2.0) * Float64(Float64(k / l) * Float64(t * Float64(k / l)))))); else tmp = Float64(Float64(Float64(l / k) * Float64(l / (t ^ 3.0))) * Float64(cos(k) / sin(k))); end return tmp end
function tmp_2 = code(t, l, k) tmp = 0.0; if (t <= 15000000000000.0) tmp = cos(k) * (2.0 / ((sin(k) ^ 2.0) * ((k / l) * (t * (k / l))))); else tmp = ((l / k) * (l / (t ^ 3.0))) * (cos(k) / sin(k)); end tmp_2 = tmp; end
code[t_, l_, k_] := If[LessEqual[t, 15000000000000.0], N[(N[Cos[k], $MachinePrecision] * N[(2.0 / N[(N[Power[N[Sin[k], $MachinePrecision], 2.0], $MachinePrecision] * N[(N[(k / l), $MachinePrecision] * N[(t * N[(k / l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[(l / k), $MachinePrecision] * N[(l / N[Power[t, 3.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(N[Cos[k], $MachinePrecision] / N[Sin[k], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq 15000000000000:\\
\;\;\;\;\cos k \cdot \frac{2}{{\sin k}^{2} \cdot \left(\frac{k}{\ell} \cdot \left(t \cdot \frac{k}{\ell}\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;\left(\frac{\ell}{k} \cdot \frac{\ell}{{t}^{3}}\right) \cdot \frac{\cos k}{\sin k}\\
\end{array}
\end{array}
if t < 1.5e13Initial program 44.6%
Taylor expanded in t around 0 63.0%
associate-*r*63.0%
times-frac63.4%
unpow263.4%
associate-*l*65.4%
unpow265.4%
Simplified65.4%
associate-*r/65.4%
times-frac76.6%
Applied egg-rr76.6%
Taylor expanded in k around inf 63.0%
associate-*r*63.0%
unpow263.0%
associate-*r*65.0%
associate-*l/65.4%
unpow265.4%
*-commutative65.4%
times-frac76.6%
associate-*l/78.7%
*-commutative78.7%
Simplified78.7%
associate-/r/78.7%
Applied egg-rr78.7%
if 1.5e13 < t Initial program 54.8%
associate-/r*55.1%
associate-*l*48.1%
sqr-neg48.1%
associate-*l*55.1%
*-commutative55.1%
sqr-neg55.1%
associate-*l/59.1%
associate-*r/57.6%
associate-/r/57.6%
Simplified57.6%
Taylor expanded in k around 0 56.0%
Taylor expanded in t around inf 55.9%
associate-*r*55.9%
times-frac57.5%
unpow257.5%
*-commutative57.5%
times-frac60.0%
Simplified60.0%
Final simplification74.2%
(FPCore (t l k) :precision binary64 (if (<= t 1.6e-70) (/ 2.0 (* (/ (* k (* t (/ k l))) l) (/ (pow k 2.0) (cos k)))) (* (* (/ l k) (/ l (pow t 3.0))) (/ (cos k) (sin k)))))
double code(double t, double l, double k) {
double tmp;
if (t <= 1.6e-70) {
tmp = 2.0 / (((k * (t * (k / l))) / l) * (pow(k, 2.0) / cos(k)));
} else {
tmp = ((l / k) * (l / pow(t, 3.0))) * (cos(k) / sin(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) :: tmp
if (t <= 1.6d-70) then
tmp = 2.0d0 / (((k * (t * (k / l))) / l) * ((k ** 2.0d0) / cos(k)))
else
tmp = ((l / k) * (l / (t ** 3.0d0))) * (cos(k) / sin(k))
end if
code = tmp
end function
public static double code(double t, double l, double k) {
double tmp;
if (t <= 1.6e-70) {
tmp = 2.0 / (((k * (t * (k / l))) / l) * (Math.pow(k, 2.0) / Math.cos(k)));
} else {
tmp = ((l / k) * (l / Math.pow(t, 3.0))) * (Math.cos(k) / Math.sin(k));
}
return tmp;
}
def code(t, l, k): tmp = 0 if t <= 1.6e-70: tmp = 2.0 / (((k * (t * (k / l))) / l) * (math.pow(k, 2.0) / math.cos(k))) else: tmp = ((l / k) * (l / math.pow(t, 3.0))) * (math.cos(k) / math.sin(k)) return tmp
function code(t, l, k) tmp = 0.0 if (t <= 1.6e-70) tmp = Float64(2.0 / Float64(Float64(Float64(k * Float64(t * Float64(k / l))) / l) * Float64((k ^ 2.0) / cos(k)))); else tmp = Float64(Float64(Float64(l / k) * Float64(l / (t ^ 3.0))) * Float64(cos(k) / sin(k))); end return tmp end
function tmp_2 = code(t, l, k) tmp = 0.0; if (t <= 1.6e-70) tmp = 2.0 / (((k * (t * (k / l))) / l) * ((k ^ 2.0) / cos(k))); else tmp = ((l / k) * (l / (t ^ 3.0))) * (cos(k) / sin(k)); end tmp_2 = tmp; end
code[t_, l_, k_] := If[LessEqual[t, 1.6e-70], N[(2.0 / N[(N[(N[(k * N[(t * N[(k / l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / l), $MachinePrecision] * N[(N[Power[k, 2.0], $MachinePrecision] / N[Cos[k], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[(l / k), $MachinePrecision] * N[(l / N[Power[t, 3.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(N[Cos[k], $MachinePrecision] / N[Sin[k], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq 1.6 \cdot 10^{-70}:\\
\;\;\;\;\frac{2}{\frac{k \cdot \left(t \cdot \frac{k}{\ell}\right)}{\ell} \cdot \frac{{k}^{2}}{\cos k}}\\
\mathbf{else}:\\
\;\;\;\;\left(\frac{\ell}{k} \cdot \frac{\ell}{{t}^{3}}\right) \cdot \frac{\cos k}{\sin k}\\
\end{array}
\end{array}
if t < 1.5999999999999999e-70Initial program 42.4%
Taylor expanded in t around 0 62.4%
associate-*r*62.4%
times-frac62.9%
unpow262.9%
associate-*l*65.1%
unpow265.1%
Simplified65.1%
Taylor expanded in k around 0 58.2%
expm1-log1p-u40.3%
times-frac45.0%
Applied egg-rr45.0%
expm1-log1p-u65.7%
associate-*l/65.7%
*-commutative65.7%
associate-*r/66.4%
Applied egg-rr66.4%
if 1.5999999999999999e-70 < t Initial program 57.8%
associate-/r*58.0%
associate-*l*52.5%
sqr-neg52.5%
associate-*l*58.0%
*-commutative58.0%
sqr-neg58.0%
associate-*l/61.2%
associate-*r/59.9%
associate-/r/59.9%
Simplified59.9%
Taylor expanded in k around 0 56.3%
Taylor expanded in t around inf 54.1%
associate-*r*54.1%
times-frac55.3%
unpow255.3%
*-commutative55.3%
times-frac59.8%
Simplified59.8%
Final simplification64.5%
(FPCore (t l k) :precision binary64 (if (<= t 1.1e-80) (/ 2.0 (* (/ (* k (* t (/ k l))) l) (/ (pow k 2.0) (cos k)))) (* (/ l (pow t 3.0)) (/ (/ l k) k))))
double code(double t, double l, double k) {
double tmp;
if (t <= 1.1e-80) {
tmp = 2.0 / (((k * (t * (k / l))) / l) * (pow(k, 2.0) / cos(k)));
} else {
tmp = (l / pow(t, 3.0)) * ((l / 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) :: tmp
if (t <= 1.1d-80) then
tmp = 2.0d0 / (((k * (t * (k / l))) / l) * ((k ** 2.0d0) / cos(k)))
else
tmp = (l / (t ** 3.0d0)) * ((l / k) / k)
end if
code = tmp
end function
public static double code(double t, double l, double k) {
double tmp;
if (t <= 1.1e-80) {
tmp = 2.0 / (((k * (t * (k / l))) / l) * (Math.pow(k, 2.0) / Math.cos(k)));
} else {
tmp = (l / Math.pow(t, 3.0)) * ((l / k) / k);
}
return tmp;
}
def code(t, l, k): tmp = 0 if t <= 1.1e-80: tmp = 2.0 / (((k * (t * (k / l))) / l) * (math.pow(k, 2.0) / math.cos(k))) else: tmp = (l / math.pow(t, 3.0)) * ((l / k) / k) return tmp
function code(t, l, k) tmp = 0.0 if (t <= 1.1e-80) tmp = Float64(2.0 / Float64(Float64(Float64(k * Float64(t * Float64(k / l))) / l) * Float64((k ^ 2.0) / cos(k)))); else tmp = Float64(Float64(l / (t ^ 3.0)) * Float64(Float64(l / k) / k)); end return tmp end
function tmp_2 = code(t, l, k) tmp = 0.0; if (t <= 1.1e-80) tmp = 2.0 / (((k * (t * (k / l))) / l) * ((k ^ 2.0) / cos(k))); else tmp = (l / (t ^ 3.0)) * ((l / k) / k); end tmp_2 = tmp; end
code[t_, l_, k_] := If[LessEqual[t, 1.1e-80], N[(2.0 / N[(N[(N[(k * N[(t * N[(k / l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / l), $MachinePrecision] * N[(N[Power[k, 2.0], $MachinePrecision] / N[Cos[k], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(l / N[Power[t, 3.0], $MachinePrecision]), $MachinePrecision] * N[(N[(l / k), $MachinePrecision] / k), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq 1.1 \cdot 10^{-80}:\\
\;\;\;\;\frac{2}{\frac{k \cdot \left(t \cdot \frac{k}{\ell}\right)}{\ell} \cdot \frac{{k}^{2}}{\cos k}}\\
\mathbf{else}:\\
\;\;\;\;\frac{\ell}{{t}^{3}} \cdot \frac{\frac{\ell}{k}}{k}\\
\end{array}
\end{array}
if t < 1.10000000000000005e-80Initial program 41.7%
Taylor expanded in t around 0 62.0%
associate-*r*62.0%
times-frac62.5%
unpow262.5%
associate-*l*64.7%
unpow264.7%
Simplified64.7%
Taylor expanded in k around 0 57.7%
expm1-log1p-u39.7%
times-frac44.4%
Applied egg-rr44.4%
expm1-log1p-u65.3%
associate-*l/65.3%
*-commutative65.3%
associate-*r/66.1%
Applied egg-rr66.1%
if 1.10000000000000005e-80 < t Initial program 58.9%
associate-/r*59.1%
associate-*l*53.7%
sqr-neg53.7%
associate-*l*59.1%
*-commutative59.1%
sqr-neg59.1%
associate-*l/62.2%
associate-*r/60.9%
associate-/r/61.0%
Simplified61.0%
Taylor expanded in k around 0 51.2%
unpow251.2%
times-frac55.4%
unpow255.4%
Simplified55.4%
Taylor expanded in l around 0 55.4%
unpow255.4%
associate-/r*59.1%
Simplified59.1%
Final simplification63.9%
(FPCore (t l k) :precision binary64 (if (<= t 1.05e-79) (/ 2.0 (/ (* (* (/ k l) (* t (/ k l))) (* k k)) (cos k))) (* (/ l (pow t 3.0)) (/ (/ l k) k))))
double code(double t, double l, double k) {
double tmp;
if (t <= 1.05e-79) {
tmp = 2.0 / ((((k / l) * (t * (k / l))) * (k * k)) / cos(k));
} else {
tmp = (l / pow(t, 3.0)) * ((l / 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) :: tmp
if (t <= 1.05d-79) then
tmp = 2.0d0 / ((((k / l) * (t * (k / l))) * (k * k)) / cos(k))
else
tmp = (l / (t ** 3.0d0)) * ((l / k) / k)
end if
code = tmp
end function
public static double code(double t, double l, double k) {
double tmp;
if (t <= 1.05e-79) {
tmp = 2.0 / ((((k / l) * (t * (k / l))) * (k * k)) / Math.cos(k));
} else {
tmp = (l / Math.pow(t, 3.0)) * ((l / k) / k);
}
return tmp;
}
def code(t, l, k): tmp = 0 if t <= 1.05e-79: tmp = 2.0 / ((((k / l) * (t * (k / l))) * (k * k)) / math.cos(k)) else: tmp = (l / math.pow(t, 3.0)) * ((l / k) / k) return tmp
function code(t, l, k) tmp = 0.0 if (t <= 1.05e-79) tmp = Float64(2.0 / Float64(Float64(Float64(Float64(k / l) * Float64(t * Float64(k / l))) * Float64(k * k)) / cos(k))); else tmp = Float64(Float64(l / (t ^ 3.0)) * Float64(Float64(l / k) / k)); end return tmp end
function tmp_2 = code(t, l, k) tmp = 0.0; if (t <= 1.05e-79) tmp = 2.0 / ((((k / l) * (t * (k / l))) * (k * k)) / cos(k)); else tmp = (l / (t ^ 3.0)) * ((l / k) / k); end tmp_2 = tmp; end
code[t_, l_, k_] := If[LessEqual[t, 1.05e-79], N[(2.0 / N[(N[(N[(N[(k / l), $MachinePrecision] * N[(t * N[(k / l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(k * k), $MachinePrecision]), $MachinePrecision] / N[Cos[k], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(l / N[Power[t, 3.0], $MachinePrecision]), $MachinePrecision] * N[(N[(l / k), $MachinePrecision] / k), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq 1.05 \cdot 10^{-79}:\\
\;\;\;\;\frac{2}{\frac{\left(\frac{k}{\ell} \cdot \left(t \cdot \frac{k}{\ell}\right)\right) \cdot \left(k \cdot k\right)}{\cos k}}\\
\mathbf{else}:\\
\;\;\;\;\frac{\ell}{{t}^{3}} \cdot \frac{\frac{\ell}{k}}{k}\\
\end{array}
\end{array}
if t < 1.05e-79Initial program 41.7%
Taylor expanded in t around 0 62.0%
associate-*r*62.0%
times-frac62.5%
unpow262.5%
associate-*l*64.7%
unpow264.7%
Simplified64.7%
Taylor expanded in k around 0 57.7%
expm1-log1p-u39.7%
times-frac44.4%
Applied egg-rr44.4%
associate-*r/44.4%
expm1-log1p-u65.3%
*-commutative65.3%
associate-*r/66.0%
unpow266.0%
Applied egg-rr66.0%
if 1.05e-79 < t Initial program 58.9%
associate-/r*59.1%
associate-*l*53.7%
sqr-neg53.7%
associate-*l*59.1%
*-commutative59.1%
sqr-neg59.1%
associate-*l/62.2%
associate-*r/60.9%
associate-/r/61.0%
Simplified61.0%
Taylor expanded in k around 0 51.2%
unpow251.2%
times-frac55.4%
unpow255.4%
Simplified55.4%
Taylor expanded in l around 0 55.4%
unpow255.4%
associate-/r*59.1%
Simplified59.1%
Final simplification63.9%
(FPCore (t l k)
:precision binary64
(let* ((t_1 (/ l (pow t 3.0))))
(if (<= t -3.5e-13)
(/ (* l t_1) (* k k))
(if (<= t 1.4e-80)
(/ 2.0 (/ (* t (/ k l)) (/ l (pow k 3.0))))
(* t_1 (/ (/ l k) k))))))
double code(double t, double l, double k) {
double t_1 = l / pow(t, 3.0);
double tmp;
if (t <= -3.5e-13) {
tmp = (l * t_1) / (k * k);
} else if (t <= 1.4e-80) {
tmp = 2.0 / ((t * (k / l)) / (l / pow(k, 3.0)));
} else {
tmp = t_1 * ((l / 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 = l / (t ** 3.0d0)
if (t <= (-3.5d-13)) then
tmp = (l * t_1) / (k * k)
else if (t <= 1.4d-80) then
tmp = 2.0d0 / ((t * (k / l)) / (l / (k ** 3.0d0)))
else
tmp = t_1 * ((l / k) / k)
end if
code = tmp
end function
public static double code(double t, double l, double k) {
double t_1 = l / Math.pow(t, 3.0);
double tmp;
if (t <= -3.5e-13) {
tmp = (l * t_1) / (k * k);
} else if (t <= 1.4e-80) {
tmp = 2.0 / ((t * (k / l)) / (l / Math.pow(k, 3.0)));
} else {
tmp = t_1 * ((l / k) / k);
}
return tmp;
}
def code(t, l, k): t_1 = l / math.pow(t, 3.0) tmp = 0 if t <= -3.5e-13: tmp = (l * t_1) / (k * k) elif t <= 1.4e-80: tmp = 2.0 / ((t * (k / l)) / (l / math.pow(k, 3.0))) else: tmp = t_1 * ((l / k) / k) return tmp
function code(t, l, k) t_1 = Float64(l / (t ^ 3.0)) tmp = 0.0 if (t <= -3.5e-13) tmp = Float64(Float64(l * t_1) / Float64(k * k)); elseif (t <= 1.4e-80) tmp = Float64(2.0 / Float64(Float64(t * Float64(k / l)) / Float64(l / (k ^ 3.0)))); else tmp = Float64(t_1 * Float64(Float64(l / k) / k)); end return tmp end
function tmp_2 = code(t, l, k) t_1 = l / (t ^ 3.0); tmp = 0.0; if (t <= -3.5e-13) tmp = (l * t_1) / (k * k); elseif (t <= 1.4e-80) tmp = 2.0 / ((t * (k / l)) / (l / (k ^ 3.0))); else tmp = t_1 * ((l / k) / k); end tmp_2 = tmp; end
code[t_, l_, k_] := Block[{t$95$1 = N[(l / N[Power[t, 3.0], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -3.5e-13], N[(N[(l * t$95$1), $MachinePrecision] / N[(k * k), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.4e-80], N[(2.0 / N[(N[(t * N[(k / l), $MachinePrecision]), $MachinePrecision] / N[(l / N[Power[k, 3.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t$95$1 * N[(N[(l / k), $MachinePrecision] / k), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{\ell}{{t}^{3}}\\
\mathbf{if}\;t \leq -3.5 \cdot 10^{-13}:\\
\;\;\;\;\frac{\ell \cdot t_1}{k \cdot k}\\
\mathbf{elif}\;t \leq 1.4 \cdot 10^{-80}:\\
\;\;\;\;\frac{2}{\frac{t \cdot \frac{k}{\ell}}{\frac{\ell}{{k}^{3}}}}\\
\mathbf{else}:\\
\;\;\;\;t_1 \cdot \frac{\frac{\ell}{k}}{k}\\
\end{array}
\end{array}
if t < -3.5000000000000002e-13Initial program 54.7%
associate-/r*54.7%
associate-*l*49.7%
sqr-neg49.7%
associate-*l*54.7%
*-commutative54.7%
sqr-neg54.7%
associate-*l/54.7%
associate-*r/54.7%
associate-/r/54.7%
Simplified54.7%
Taylor expanded in k around 0 49.9%
unpow249.9%
times-frac51.7%
unpow251.7%
Simplified51.7%
associate-*l/54.6%
Applied egg-rr54.6%
if -3.5000000000000002e-13 < t < 1.39999999999999995e-80Initial program 36.1%
Taylor expanded in t around 0 69.7%
associate-*r*69.8%
times-frac70.5%
unpow270.5%
associate-*l*73.7%
unpow273.7%
Simplified73.7%
add-cbrt-cube63.8%
times-frac63.8%
times-frac63.8%
times-frac71.0%
Applied egg-rr71.0%
associate-*l*71.0%
cube-unmult71.1%
associate-*l*71.1%
associate-*l/69.5%
associate-*r/69.5%
Simplified69.5%
Taylor expanded in k around 0 64.9%
*-commutative64.9%
associate-/l*66.5%
Simplified66.5%
rem-cbrt-cube71.4%
associate-*r/71.5%
*-commutative71.5%
Applied egg-rr71.5%
if 1.39999999999999995e-80 < t Initial program 58.9%
associate-/r*59.1%
associate-*l*53.7%
sqr-neg53.7%
associate-*l*59.1%
*-commutative59.1%
sqr-neg59.1%
associate-*l/62.2%
associate-*r/60.9%
associate-/r/61.0%
Simplified61.0%
Taylor expanded in k around 0 51.2%
unpow251.2%
times-frac55.4%
unpow255.4%
Simplified55.4%
Taylor expanded in l around 0 55.4%
unpow255.4%
associate-/r*59.1%
Simplified59.1%
Final simplification64.1%
(FPCore (t l k) :precision binary64 (if (<= t 5.5e-29) (* 2.0 (* (/ l t) (/ l (pow k 4.0)))) (* (/ l (pow t 3.0)) (/ l (* k k)))))
double code(double t, double l, double k) {
double tmp;
if (t <= 5.5e-29) {
tmp = 2.0 * ((l / t) * (l / pow(k, 4.0)));
} else {
tmp = (l / pow(t, 3.0)) * (l / (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) :: tmp
if (t <= 5.5d-29) then
tmp = 2.0d0 * ((l / t) * (l / (k ** 4.0d0)))
else
tmp = (l / (t ** 3.0d0)) * (l / (k * k))
end if
code = tmp
end function
public static double code(double t, double l, double k) {
double tmp;
if (t <= 5.5e-29) {
tmp = 2.0 * ((l / t) * (l / Math.pow(k, 4.0)));
} else {
tmp = (l / Math.pow(t, 3.0)) * (l / (k * k));
}
return tmp;
}
def code(t, l, k): tmp = 0 if t <= 5.5e-29: tmp = 2.0 * ((l / t) * (l / math.pow(k, 4.0))) else: tmp = (l / math.pow(t, 3.0)) * (l / (k * k)) return tmp
function code(t, l, k) tmp = 0.0 if (t <= 5.5e-29) tmp = Float64(2.0 * Float64(Float64(l / t) * Float64(l / (k ^ 4.0)))); else tmp = Float64(Float64(l / (t ^ 3.0)) * Float64(l / Float64(k * k))); end return tmp end
function tmp_2 = code(t, l, k) tmp = 0.0; if (t <= 5.5e-29) tmp = 2.0 * ((l / t) * (l / (k ^ 4.0))); else tmp = (l / (t ^ 3.0)) * (l / (k * k)); end tmp_2 = tmp; end
code[t_, l_, k_] := If[LessEqual[t, 5.5e-29], N[(2.0 * N[(N[(l / t), $MachinePrecision] * N[(l / N[Power[k, 4.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(l / N[Power[t, 3.0], $MachinePrecision]), $MachinePrecision] * N[(l / N[(k * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq 5.5 \cdot 10^{-29}:\\
\;\;\;\;2 \cdot \left(\frac{\ell}{t} \cdot \frac{\ell}{{k}^{4}}\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{\ell}{{t}^{3}} \cdot \frac{\ell}{k \cdot k}\\
\end{array}
\end{array}
if t < 5.4999999999999999e-29Initial program 42.8%
Taylor expanded in t around 0 62.3%
associate-*r*62.3%
times-frac62.8%
unpow262.8%
associate-*l*64.9%
unpow264.9%
Simplified64.9%
Taylor expanded in k around 0 57.3%
unpow257.3%
*-commutative57.3%
times-frac63.2%
Simplified63.2%
if 5.4999999999999999e-29 < t Initial program 57.8%
associate-/r*57.9%
associate-*l*52.1%
sqr-neg52.1%
associate-*l*57.9%
*-commutative57.9%
sqr-neg57.9%
associate-*l/61.4%
associate-*r/60.1%
associate-/r/60.1%
Simplified60.1%
Taylor expanded in k around 0 49.4%
unpow249.4%
times-frac53.9%
unpow253.9%
Simplified53.9%
Final simplification60.6%
(FPCore (t l k) :precision binary64 (if (<= t 6e-82) (* 2.0 (* (/ l t) (/ l (pow k 4.0)))) (* (/ l (pow t 3.0)) (/ (/ l k) k))))
double code(double t, double l, double k) {
double tmp;
if (t <= 6e-82) {
tmp = 2.0 * ((l / t) * (l / pow(k, 4.0)));
} else {
tmp = (l / pow(t, 3.0)) * ((l / 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) :: tmp
if (t <= 6d-82) then
tmp = 2.0d0 * ((l / t) * (l / (k ** 4.0d0)))
else
tmp = (l / (t ** 3.0d0)) * ((l / k) / k)
end if
code = tmp
end function
public static double code(double t, double l, double k) {
double tmp;
if (t <= 6e-82) {
tmp = 2.0 * ((l / t) * (l / Math.pow(k, 4.0)));
} else {
tmp = (l / Math.pow(t, 3.0)) * ((l / k) / k);
}
return tmp;
}
def code(t, l, k): tmp = 0 if t <= 6e-82: tmp = 2.0 * ((l / t) * (l / math.pow(k, 4.0))) else: tmp = (l / math.pow(t, 3.0)) * ((l / k) / k) return tmp
function code(t, l, k) tmp = 0.0 if (t <= 6e-82) tmp = Float64(2.0 * Float64(Float64(l / t) * Float64(l / (k ^ 4.0)))); else tmp = Float64(Float64(l / (t ^ 3.0)) * Float64(Float64(l / k) / k)); end return tmp end
function tmp_2 = code(t, l, k) tmp = 0.0; if (t <= 6e-82) tmp = 2.0 * ((l / t) * (l / (k ^ 4.0))); else tmp = (l / (t ^ 3.0)) * ((l / k) / k); end tmp_2 = tmp; end
code[t_, l_, k_] := If[LessEqual[t, 6e-82], N[(2.0 * N[(N[(l / t), $MachinePrecision] * N[(l / N[Power[k, 4.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(l / N[Power[t, 3.0], $MachinePrecision]), $MachinePrecision] * N[(N[(l / k), $MachinePrecision] / k), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq 6 \cdot 10^{-82}:\\
\;\;\;\;2 \cdot \left(\frac{\ell}{t} \cdot \frac{\ell}{{k}^{4}}\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{\ell}{{t}^{3}} \cdot \frac{\frac{\ell}{k}}{k}\\
\end{array}
\end{array}
if t < 5.9999999999999998e-82Initial program 41.7%
Taylor expanded in t around 0 62.0%
associate-*r*62.0%
times-frac62.5%
unpow262.5%
associate-*l*64.7%
unpow264.7%
Simplified64.7%
Taylor expanded in k around 0 56.8%
unpow256.8%
*-commutative56.8%
times-frac62.9%
Simplified62.9%
if 5.9999999999999998e-82 < t Initial program 58.9%
associate-/r*59.1%
associate-*l*53.7%
sqr-neg53.7%
associate-*l*59.1%
*-commutative59.1%
sqr-neg59.1%
associate-*l/62.2%
associate-*r/60.9%
associate-/r/61.0%
Simplified61.0%
Taylor expanded in k around 0 51.2%
unpow251.2%
times-frac55.4%
unpow255.4%
Simplified55.4%
Taylor expanded in l around 0 55.4%
unpow255.4%
associate-/r*59.1%
Simplified59.1%
Final simplification61.7%
(FPCore (t l k) :precision binary64 (if (<= t 4.7e-80) (/ 2.0 (* (/ t l) (/ (pow k 4.0) l))) (* (/ l (pow t 3.0)) (/ (/ l k) k))))
double code(double t, double l, double k) {
double tmp;
if (t <= 4.7e-80) {
tmp = 2.0 / ((t / l) * (pow(k, 4.0) / l));
} else {
tmp = (l / pow(t, 3.0)) * ((l / 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) :: tmp
if (t <= 4.7d-80) then
tmp = 2.0d0 / ((t / l) * ((k ** 4.0d0) / l))
else
tmp = (l / (t ** 3.0d0)) * ((l / k) / k)
end if
code = tmp
end function
public static double code(double t, double l, double k) {
double tmp;
if (t <= 4.7e-80) {
tmp = 2.0 / ((t / l) * (Math.pow(k, 4.0) / l));
} else {
tmp = (l / Math.pow(t, 3.0)) * ((l / k) / k);
}
return tmp;
}
def code(t, l, k): tmp = 0 if t <= 4.7e-80: tmp = 2.0 / ((t / l) * (math.pow(k, 4.0) / l)) else: tmp = (l / math.pow(t, 3.0)) * ((l / k) / k) return tmp
function code(t, l, k) tmp = 0.0 if (t <= 4.7e-80) tmp = Float64(2.0 / Float64(Float64(t / l) * Float64((k ^ 4.0) / l))); else tmp = Float64(Float64(l / (t ^ 3.0)) * Float64(Float64(l / k) / k)); end return tmp end
function tmp_2 = code(t, l, k) tmp = 0.0; if (t <= 4.7e-80) tmp = 2.0 / ((t / l) * ((k ^ 4.0) / l)); else tmp = (l / (t ^ 3.0)) * ((l / k) / k); end tmp_2 = tmp; end
code[t_, l_, k_] := If[LessEqual[t, 4.7e-80], N[(2.0 / N[(N[(t / l), $MachinePrecision] * N[(N[Power[k, 4.0], $MachinePrecision] / l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(l / N[Power[t, 3.0], $MachinePrecision]), $MachinePrecision] * N[(N[(l / k), $MachinePrecision] / k), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq 4.7 \cdot 10^{-80}:\\
\;\;\;\;\frac{2}{\frac{t}{\ell} \cdot \frac{{k}^{4}}{\ell}}\\
\mathbf{else}:\\
\;\;\;\;\frac{\ell}{{t}^{3}} \cdot \frac{\frac{\ell}{k}}{k}\\
\end{array}
\end{array}
if t < 4.69999999999999973e-80Initial program 41.7%
Taylor expanded in t around 0 62.0%
associate-*r*62.0%
times-frac62.5%
unpow262.5%
associate-*l*64.7%
unpow264.7%
Simplified64.7%
Taylor expanded in k around 0 57.1%
*-commutative57.1%
unpow257.1%
times-frac63.2%
Simplified63.2%
if 4.69999999999999973e-80 < t Initial program 58.9%
associate-/r*59.1%
associate-*l*53.7%
sqr-neg53.7%
associate-*l*59.1%
*-commutative59.1%
sqr-neg59.1%
associate-*l/62.2%
associate-*r/60.9%
associate-/r/61.0%
Simplified61.0%
Taylor expanded in k around 0 51.2%
unpow251.2%
times-frac55.4%
unpow255.4%
Simplified55.4%
Taylor expanded in l around 0 55.4%
unpow255.4%
associate-/r*59.1%
Simplified59.1%
Final simplification62.0%
(FPCore (t l k) :precision binary64 (* 2.0 (* (/ l t) (/ l (pow k 4.0)))))
double code(double t, double l, double k) {
return 2.0 * ((l / t) * (l / pow(k, 4.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 * ((l / t) * (l / (k ** 4.0d0)))
end function
public static double code(double t, double l, double k) {
return 2.0 * ((l / t) * (l / Math.pow(k, 4.0)));
}
def code(t, l, k): return 2.0 * ((l / t) * (l / math.pow(k, 4.0)))
function code(t, l, k) return Float64(2.0 * Float64(Float64(l / t) * Float64(l / (k ^ 4.0)))) end
function tmp = code(t, l, k) tmp = 2.0 * ((l / t) * (l / (k ^ 4.0))); end
code[t_, l_, k_] := N[(2.0 * N[(N[(l / t), $MachinePrecision] * N[(l / N[Power[k, 4.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
2 \cdot \left(\frac{\ell}{t} \cdot \frac{\ell}{{k}^{4}}\right)
\end{array}
Initial program 47.0%
Taylor expanded in t around 0 57.0%
associate-*r*57.0%
times-frac58.5%
unpow258.5%
associate-*l*60.0%
unpow260.0%
Simplified60.0%
Taylor expanded in k around 0 53.4%
unpow253.4%
*-commutative53.4%
times-frac57.4%
Simplified57.4%
Final simplification57.4%
(FPCore (t l k) :precision binary64 (* 2.0 (/ l (/ (* t (pow k 4.0)) l))))
double code(double t, double l, double k) {
return 2.0 * (l / ((t * pow(k, 4.0)) / 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 * (l / ((t * (k ** 4.0d0)) / l))
end function
public static double code(double t, double l, double k) {
return 2.0 * (l / ((t * Math.pow(k, 4.0)) / l));
}
def code(t, l, k): return 2.0 * (l / ((t * math.pow(k, 4.0)) / l))
function code(t, l, k) return Float64(2.0 * Float64(l / Float64(Float64(t * (k ^ 4.0)) / l))) end
function tmp = code(t, l, k) tmp = 2.0 * (l / ((t * (k ^ 4.0)) / l)); end
code[t_, l_, k_] := N[(2.0 * N[(l / N[(N[(t * N[Power[k, 4.0], $MachinePrecision]), $MachinePrecision] / l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
2 \cdot \frac{\ell}{\frac{t \cdot {k}^{4}}{\ell}}
\end{array}
Initial program 47.0%
Taylor expanded in t around 0 57.0%
associate-*r*57.0%
times-frac58.5%
unpow258.5%
associate-*l*60.0%
unpow260.0%
Simplified60.0%
associate-*r/60.0%
times-frac69.4%
Applied egg-rr69.4%
Taylor expanded in k around 0 53.4%
unpow253.4%
associate-/l*57.6%
Simplified57.6%
Final simplification57.6%
(FPCore (t l k) :precision binary64 (* 2.0 (* -0.16666666666666666 (/ (/ (* l l) (* k k)) t))))
double code(double t, double l, double k) {
return 2.0 * (-0.16666666666666666 * (((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 * ((-0.16666666666666666d0) * (((l * l) / (k * k)) / t))
end function
public static double code(double t, double l, double k) {
return 2.0 * (-0.16666666666666666 * (((l * l) / (k * k)) / t));
}
def code(t, l, k): return 2.0 * (-0.16666666666666666 * (((l * l) / (k * k)) / t))
function code(t, l, k) return Float64(2.0 * Float64(-0.16666666666666666 * Float64(Float64(Float64(l * l) / Float64(k * k)) / t))) end
function tmp = code(t, l, k) tmp = 2.0 * (-0.16666666666666666 * (((l * l) / (k * k)) / t)); end
code[t_, l_, k_] := N[(2.0 * N[(-0.16666666666666666 * N[(N[(N[(l * l), $MachinePrecision] / N[(k * k), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
2 \cdot \left(-0.16666666666666666 \cdot \frac{\frac{\ell \cdot \ell}{k \cdot k}}{t}\right)
\end{array}
Initial program 47.0%
Taylor expanded in t around 0 57.0%
associate-*r*57.0%
times-frac58.5%
unpow258.5%
associate-*l*60.0%
unpow260.0%
Simplified60.0%
associate-*r/60.0%
times-frac69.4%
Applied egg-rr69.4%
Taylor expanded in k around 0 26.9%
distribute-lft-out26.9%
distribute-rgt-out--26.9%
unpow226.9%
times-frac27.8%
associate-/r*27.9%
unpow227.9%
times-frac28.0%
metadata-eval28.0%
unpow228.0%
*-commutative28.0%
times-frac33.1%
Simplified33.1%
Taylor expanded in k around inf 27.1%
associate-/r*26.4%
unpow226.4%
unpow226.4%
Simplified26.4%
Final simplification26.4%
(FPCore (t l k) :precision binary64 (* 2.0 (* (/ -0.16666666666666666 t) (* (/ l k) (/ l k)))))
double code(double t, double l, double k) {
return 2.0 * ((-0.16666666666666666 / t) * ((l / k) * (l / 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 * (((-0.16666666666666666d0) / t) * ((l / k) * (l / k)))
end function
public static double code(double t, double l, double k) {
return 2.0 * ((-0.16666666666666666 / t) * ((l / k) * (l / k)));
}
def code(t, l, k): return 2.0 * ((-0.16666666666666666 / t) * ((l / k) * (l / k)))
function code(t, l, k) return Float64(2.0 * Float64(Float64(-0.16666666666666666 / t) * Float64(Float64(l / k) * Float64(l / k)))) end
function tmp = code(t, l, k) tmp = 2.0 * ((-0.16666666666666666 / t) * ((l / k) * (l / k))); end
code[t_, l_, k_] := N[(2.0 * N[(N[(-0.16666666666666666 / t), $MachinePrecision] * N[(N[(l / k), $MachinePrecision] * N[(l / k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
2 \cdot \left(\frac{-0.16666666666666666}{t} \cdot \left(\frac{\ell}{k} \cdot \frac{\ell}{k}\right)\right)
\end{array}
Initial program 47.0%
Taylor expanded in t around 0 57.0%
associate-*r*57.0%
times-frac58.5%
unpow258.5%
associate-*l*60.0%
unpow260.0%
Simplified60.0%
associate-*r/60.0%
times-frac69.4%
Applied egg-rr69.4%
Taylor expanded in k around 0 26.9%
distribute-lft-out26.9%
distribute-rgt-out--26.9%
unpow226.9%
times-frac27.8%
associate-/r*27.9%
unpow227.9%
times-frac28.0%
metadata-eval28.0%
unpow228.0%
*-commutative28.0%
times-frac33.1%
Simplified33.1%
Taylor expanded in k around inf 27.1%
associate-*r/27.1%
*-commutative27.1%
times-frac26.4%
unpow226.4%
unpow226.4%
times-frac28.1%
Simplified28.1%
Final simplification28.1%
herbie shell --seed 2023285
(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))))