
(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 27 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 (cbrt (sin k)))
(t_2 (+ 1.0 (+ 1.0 (pow (/ k t) 2.0))))
(t_3 (/ t (cbrt l))))
(if (<= t -4.5e-65)
(/ 2.0 (* (* (pow (/ t_3 (/ (cbrt l) t_1)) 3.0) (tan k)) t_2))
(if (<= t 6.4e-102)
(*
2.0
(/ (* (/ (pow l 2.0) (pow k 2.0)) (/ (cos k) t)) (pow (sin k) 2.0)))
(/ 2.0 (* t_2 (* (tan k) (pow (* t_1 (/ t_3 (cbrt l))) 3.0))))))))
double code(double t, double l, double k) {
double t_1 = cbrt(sin(k));
double t_2 = 1.0 + (1.0 + pow((k / t), 2.0));
double t_3 = t / cbrt(l);
double tmp;
if (t <= -4.5e-65) {
tmp = 2.0 / ((pow((t_3 / (cbrt(l) / t_1)), 3.0) * tan(k)) * t_2);
} else if (t <= 6.4e-102) {
tmp = 2.0 * (((pow(l, 2.0) / pow(k, 2.0)) * (cos(k) / t)) / pow(sin(k), 2.0));
} else {
tmp = 2.0 / (t_2 * (tan(k) * pow((t_1 * (t_3 / cbrt(l))), 3.0)));
}
return tmp;
}
public static double code(double t, double l, double k) {
double t_1 = Math.cbrt(Math.sin(k));
double t_2 = 1.0 + (1.0 + Math.pow((k / t), 2.0));
double t_3 = t / Math.cbrt(l);
double tmp;
if (t <= -4.5e-65) {
tmp = 2.0 / ((Math.pow((t_3 / (Math.cbrt(l) / t_1)), 3.0) * Math.tan(k)) * t_2);
} else if (t <= 6.4e-102) {
tmp = 2.0 * (((Math.pow(l, 2.0) / Math.pow(k, 2.0)) * (Math.cos(k) / t)) / Math.pow(Math.sin(k), 2.0));
} else {
tmp = 2.0 / (t_2 * (Math.tan(k) * Math.pow((t_1 * (t_3 / Math.cbrt(l))), 3.0)));
}
return tmp;
}
function code(t, l, k) t_1 = cbrt(sin(k)) t_2 = Float64(1.0 + Float64(1.0 + (Float64(k / t) ^ 2.0))) t_3 = Float64(t / cbrt(l)) tmp = 0.0 if (t <= -4.5e-65) tmp = Float64(2.0 / Float64(Float64((Float64(t_3 / Float64(cbrt(l) / t_1)) ^ 3.0) * tan(k)) * t_2)); elseif (t <= 6.4e-102) tmp = Float64(2.0 * Float64(Float64(Float64((l ^ 2.0) / (k ^ 2.0)) * Float64(cos(k) / t)) / (sin(k) ^ 2.0))); else tmp = Float64(2.0 / Float64(t_2 * Float64(tan(k) * (Float64(t_1 * Float64(t_3 / cbrt(l))) ^ 3.0)))); end return tmp end
code[t_, l_, k_] := Block[{t$95$1 = N[Power[N[Sin[k], $MachinePrecision], 1/3], $MachinePrecision]}, Block[{t$95$2 = N[(1.0 + N[(1.0 + N[Power[N[(k / t), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(t / N[Power[l, 1/3], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -4.5e-65], N[(2.0 / N[(N[(N[Power[N[(t$95$3 / N[(N[Power[l, 1/3], $MachinePrecision] / t$95$1), $MachinePrecision]), $MachinePrecision], 3.0], $MachinePrecision] * N[Tan[k], $MachinePrecision]), $MachinePrecision] * t$95$2), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 6.4e-102], N[(2.0 * N[(N[(N[(N[Power[l, 2.0], $MachinePrecision] / N[Power[k, 2.0], $MachinePrecision]), $MachinePrecision] * N[(N[Cos[k], $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision] / N[Power[N[Sin[k], $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(2.0 / N[(t$95$2 * N[(N[Tan[k], $MachinePrecision] * N[Power[N[(t$95$1 * N[(t$95$3 / N[Power[l, 1/3], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 3.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \sqrt[3]{\sin k}\\
t_2 := 1 + \left(1 + {\left(\frac{k}{t}\right)}^{2}\right)\\
t_3 := \frac{t}{\sqrt[3]{\ell}}\\
\mathbf{if}\;t \leq -4.5 \cdot 10^{-65}:\\
\;\;\;\;\frac{2}{\left({\left(\frac{t_3}{\frac{\sqrt[3]{\ell}}{t_1}}\right)}^{3} \cdot \tan k\right) \cdot t_2}\\
\mathbf{elif}\;t \leq 6.4 \cdot 10^{-102}:\\
\;\;\;\;2 \cdot \frac{\frac{{\ell}^{2}}{{k}^{2}} \cdot \frac{\cos k}{t}}{{\sin k}^{2}}\\
\mathbf{else}:\\
\;\;\;\;\frac{2}{t_2 \cdot \left(\tan k \cdot {\left(t_1 \cdot \frac{t_3}{\sqrt[3]{\ell}}\right)}^{3}\right)}\\
\end{array}
\end{array}
if t < -4.4999999999999998e-65Initial program 60.8%
associate-/r*71.1%
add-cube-cbrt71.0%
*-un-lft-identity71.0%
times-frac71.0%
pow271.0%
cbrt-div71.0%
rem-cbrt-cube71.0%
cbrt-div70.9%
rem-cbrt-cube83.2%
Applied egg-rr83.2%
add-cube-cbrt83.1%
pow383.1%
cbrt-prod83.0%
frac-times79.0%
unpow279.0%
*-un-lft-identity79.0%
cbrt-div80.2%
add-cbrt-cube90.8%
Applied egg-rr90.8%
associate-*l/90.8%
Applied egg-rr90.8%
associate-/l*90.9%
Simplified90.9%
if -4.4999999999999998e-65 < t < 6.39999999999999973e-102Initial program 38.0%
Simplified36.4%
div-inv36.4%
pow-flip36.4%
metadata-eval36.4%
Applied egg-rr36.4%
Taylor expanded in t around 0 74.2%
times-frac75.0%
associate-/r*75.0%
associate-*r/77.6%
Simplified77.6%
if 6.39999999999999973e-102 < t Initial program 64.9%
associate-/r*72.0%
add-cube-cbrt72.0%
*-un-lft-identity72.0%
times-frac72.0%
pow272.0%
cbrt-div71.9%
rem-cbrt-cube71.9%
cbrt-div71.8%
rem-cbrt-cube87.0%
Applied egg-rr87.0%
add-cube-cbrt86.9%
pow386.9%
cbrt-prod86.9%
frac-times80.1%
unpow280.1%
*-un-lft-identity80.1%
cbrt-div81.2%
add-cbrt-cube89.0%
Applied egg-rr89.0%
Final simplification84.9%
(FPCore (t l k)
:precision binary64
(if (or (<= t -8.8e-66) (not (<= t 4.2e-93)))
(/
2.0
(*
(+ 1.0 (+ 1.0 (pow (/ k t) 2.0)))
(* (tan k) (pow (* (cbrt (sin k)) (/ (/ t (cbrt l)) (cbrt l))) 3.0))))
(*
2.0
(/ (* (/ (pow l 2.0) (pow k 2.0)) (/ (cos k) t)) (pow (sin k) 2.0)))))
double code(double t, double l, double k) {
double tmp;
if ((t <= -8.8e-66) || !(t <= 4.2e-93)) {
tmp = 2.0 / ((1.0 + (1.0 + pow((k / t), 2.0))) * (tan(k) * pow((cbrt(sin(k)) * ((t / cbrt(l)) / cbrt(l))), 3.0)));
} else {
tmp = 2.0 * (((pow(l, 2.0) / pow(k, 2.0)) * (cos(k) / t)) / pow(sin(k), 2.0));
}
return tmp;
}
public static double code(double t, double l, double k) {
double tmp;
if ((t <= -8.8e-66) || !(t <= 4.2e-93)) {
tmp = 2.0 / ((1.0 + (1.0 + Math.pow((k / t), 2.0))) * (Math.tan(k) * Math.pow((Math.cbrt(Math.sin(k)) * ((t / Math.cbrt(l)) / Math.cbrt(l))), 3.0)));
} else {
tmp = 2.0 * (((Math.pow(l, 2.0) / Math.pow(k, 2.0)) * (Math.cos(k) / t)) / Math.pow(Math.sin(k), 2.0));
}
return tmp;
}
function code(t, l, k) tmp = 0.0 if ((t <= -8.8e-66) || !(t <= 4.2e-93)) tmp = Float64(2.0 / Float64(Float64(1.0 + Float64(1.0 + (Float64(k / t) ^ 2.0))) * Float64(tan(k) * (Float64(cbrt(sin(k)) * Float64(Float64(t / cbrt(l)) / cbrt(l))) ^ 3.0)))); else tmp = Float64(2.0 * Float64(Float64(Float64((l ^ 2.0) / (k ^ 2.0)) * Float64(cos(k) / t)) / (sin(k) ^ 2.0))); end return tmp end
code[t_, l_, k_] := If[Or[LessEqual[t, -8.8e-66], N[Not[LessEqual[t, 4.2e-93]], $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[Power[N[(N[Power[N[Sin[k], $MachinePrecision], 1/3], $MachinePrecision] * N[(N[(t / N[Power[l, 1/3], $MachinePrecision]), $MachinePrecision] / N[Power[l, 1/3], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 3.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(2.0 * N[(N[(N[(N[Power[l, 2.0], $MachinePrecision] / N[Power[k, 2.0], $MachinePrecision]), $MachinePrecision] * N[(N[Cos[k], $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision] / N[Power[N[Sin[k], $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -8.8 \cdot 10^{-66} \lor \neg \left(t \leq 4.2 \cdot 10^{-93}\right):\\
\;\;\;\;\frac{2}{\left(1 + \left(1 + {\left(\frac{k}{t}\right)}^{2}\right)\right) \cdot \left(\tan k \cdot {\left(\sqrt[3]{\sin k} \cdot \frac{\frac{t}{\sqrt[3]{\ell}}}{\sqrt[3]{\ell}}\right)}^{3}\right)}\\
\mathbf{else}:\\
\;\;\;\;2 \cdot \frac{\frac{{\ell}^{2}}{{k}^{2}} \cdot \frac{\cos k}{t}}{{\sin k}^{2}}\\
\end{array}
\end{array}
if t < -8.8000000000000004e-66 or 4.2000000000000002e-93 < t Initial program 63.0%
associate-/r*71.6%
add-cube-cbrt71.5%
*-un-lft-identity71.5%
times-frac71.5%
pow271.5%
cbrt-div71.5%
rem-cbrt-cube71.5%
cbrt-div71.4%
rem-cbrt-cube85.2%
Applied egg-rr85.2%
add-cube-cbrt85.1%
pow385.1%
cbrt-prod85.1%
frac-times79.6%
unpow279.6%
*-un-lft-identity79.6%
cbrt-div80.7%
add-cbrt-cube89.8%
Applied egg-rr89.8%
if -8.8000000000000004e-66 < t < 4.2000000000000002e-93Initial program 38.0%
Simplified36.4%
div-inv36.4%
pow-flip36.4%
metadata-eval36.4%
Applied egg-rr36.4%
Taylor expanded in t around 0 74.2%
times-frac75.0%
associate-/r*75.0%
associate-*r/77.6%
Simplified77.6%
Final simplification84.8%
(FPCore (t l k)
:precision binary64
(if (or (<= t -5e-65) (not (<= t 5e-106)))
(/
2.0
(*
(* (tan k) (* (sin k) (pow (/ t (pow (cbrt l) 2.0)) 3.0)))
(+ 1.0 (+ 1.0 (* (/ k t) (/ k t))))))
(*
2.0
(/ (* (/ (pow l 2.0) (pow k 2.0)) (/ (cos k) t)) (pow (sin k) 2.0)))))
double code(double t, double l, double k) {
double tmp;
if ((t <= -5e-65) || !(t <= 5e-106)) {
tmp = 2.0 / ((tan(k) * (sin(k) * pow((t / pow(cbrt(l), 2.0)), 3.0))) * (1.0 + (1.0 + ((k / t) * (k / t)))));
} else {
tmp = 2.0 * (((pow(l, 2.0) / pow(k, 2.0)) * (cos(k) / t)) / pow(sin(k), 2.0));
}
return tmp;
}
public static double code(double t, double l, double k) {
double tmp;
if ((t <= -5e-65) || !(t <= 5e-106)) {
tmp = 2.0 / ((Math.tan(k) * (Math.sin(k) * Math.pow((t / Math.pow(Math.cbrt(l), 2.0)), 3.0))) * (1.0 + (1.0 + ((k / t) * (k / t)))));
} else {
tmp = 2.0 * (((Math.pow(l, 2.0) / Math.pow(k, 2.0)) * (Math.cos(k) / t)) / Math.pow(Math.sin(k), 2.0));
}
return tmp;
}
function code(t, l, k) tmp = 0.0 if ((t <= -5e-65) || !(t <= 5e-106)) tmp = Float64(2.0 / Float64(Float64(tan(k) * Float64(sin(k) * (Float64(t / (cbrt(l) ^ 2.0)) ^ 3.0))) * Float64(1.0 + Float64(1.0 + Float64(Float64(k / t) * Float64(k / t)))))); else tmp = Float64(2.0 * Float64(Float64(Float64((l ^ 2.0) / (k ^ 2.0)) * Float64(cos(k) / t)) / (sin(k) ^ 2.0))); end return tmp end
code[t_, l_, k_] := If[Or[LessEqual[t, -5e-65], N[Not[LessEqual[t, 5e-106]], $MachinePrecision]], N[(2.0 / N[(N[(N[Tan[k], $MachinePrecision] * N[(N[Sin[k], $MachinePrecision] * N[Power[N[(t / N[Power[N[Power[l, 1/3], $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision], 3.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(1.0 + N[(1.0 + N[(N[(k / t), $MachinePrecision] * N[(k / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(2.0 * N[(N[(N[(N[Power[l, 2.0], $MachinePrecision] / N[Power[k, 2.0], $MachinePrecision]), $MachinePrecision] * N[(N[Cos[k], $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision] / N[Power[N[Sin[k], $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -5 \cdot 10^{-65} \lor \neg \left(t \leq 5 \cdot 10^{-106}\right):\\
\;\;\;\;\frac{2}{\left(\tan k \cdot \left(\sin k \cdot {\left(\frac{t}{{\left(\sqrt[3]{\ell}\right)}^{2}}\right)}^{3}\right)\right) \cdot \left(1 + \left(1 + \frac{k}{t} \cdot \frac{k}{t}\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;2 \cdot \frac{\frac{{\ell}^{2}}{{k}^{2}} \cdot \frac{\cos k}{t}}{{\sin k}^{2}}\\
\end{array}
\end{array}
if t < -4.99999999999999983e-65 or 4.99999999999999983e-106 < t Initial program 63.0%
unpow363.0%
*-un-lft-identity63.0%
times-frac67.5%
pow267.5%
pow267.5%
Applied egg-rr67.5%
unpow256.1%
Applied egg-rr67.5%
add-cube-cbrt67.3%
pow367.4%
pow267.4%
frac-times62.9%
unpow262.9%
unpow363.0%
*-un-lft-identity63.0%
cbrt-div62.9%
unpow362.9%
add-cbrt-cube69.2%
cbrt-prod86.1%
pow286.1%
Applied egg-rr86.1%
if -4.99999999999999983e-65 < t < 4.99999999999999983e-106Initial program 38.0%
Simplified36.4%
div-inv36.4%
pow-flip36.4%
metadata-eval36.4%
Applied egg-rr36.4%
Taylor expanded in t around 0 74.2%
times-frac75.0%
associate-/r*75.0%
associate-*r/77.6%
Simplified77.6%
Final simplification82.7%
(FPCore (t l k)
:precision binary64
(let* ((t_1 (pow (/ k t) 2.0)))
(if (<= t -7e-66)
(/
(/ 2.0 (* (tan k) (* (sin k) (/ (pow (/ t (cbrt l)) 3.0) l))))
(+ 2.0 t_1))
(if (<= t 2.8e-119)
(*
2.0
(/ (* (/ (pow l 2.0) (pow k 2.0)) (/ (cos k) t)) (pow (sin k) 2.0)))
(/
2.0
(*
(+ 1.0 (+ 1.0 t_1))
(* (tan k) (* (sin k) (pow (/ (pow t 1.5) l) 2.0)))))))))
double code(double t, double l, double k) {
double t_1 = pow((k / t), 2.0);
double tmp;
if (t <= -7e-66) {
tmp = (2.0 / (tan(k) * (sin(k) * (pow((t / cbrt(l)), 3.0) / l)))) / (2.0 + t_1);
} else if (t <= 2.8e-119) {
tmp = 2.0 * (((pow(l, 2.0) / pow(k, 2.0)) * (cos(k) / t)) / pow(sin(k), 2.0));
} else {
tmp = 2.0 / ((1.0 + (1.0 + t_1)) * (tan(k) * (sin(k) * pow((pow(t, 1.5) / l), 2.0))));
}
return tmp;
}
public static double code(double t, double l, double k) {
double t_1 = Math.pow((k / t), 2.0);
double tmp;
if (t <= -7e-66) {
tmp = (2.0 / (Math.tan(k) * (Math.sin(k) * (Math.pow((t / Math.cbrt(l)), 3.0) / l)))) / (2.0 + t_1);
} else if (t <= 2.8e-119) {
tmp = 2.0 * (((Math.pow(l, 2.0) / Math.pow(k, 2.0)) * (Math.cos(k) / t)) / Math.pow(Math.sin(k), 2.0));
} else {
tmp = 2.0 / ((1.0 + (1.0 + t_1)) * (Math.tan(k) * (Math.sin(k) * Math.pow((Math.pow(t, 1.5) / l), 2.0))));
}
return tmp;
}
function code(t, l, k) t_1 = Float64(k / t) ^ 2.0 tmp = 0.0 if (t <= -7e-66) tmp = Float64(Float64(2.0 / Float64(tan(k) * Float64(sin(k) * Float64((Float64(t / cbrt(l)) ^ 3.0) / l)))) / Float64(2.0 + t_1)); elseif (t <= 2.8e-119) tmp = Float64(2.0 * Float64(Float64(Float64((l ^ 2.0) / (k ^ 2.0)) * Float64(cos(k) / t)) / (sin(k) ^ 2.0))); else tmp = Float64(2.0 / Float64(Float64(1.0 + Float64(1.0 + t_1)) * Float64(tan(k) * Float64(sin(k) * (Float64((t ^ 1.5) / l) ^ 2.0))))); end return tmp end
code[t_, l_, k_] := Block[{t$95$1 = N[Power[N[(k / t), $MachinePrecision], 2.0], $MachinePrecision]}, If[LessEqual[t, -7e-66], N[(N[(2.0 / N[(N[Tan[k], $MachinePrecision] * N[(N[Sin[k], $MachinePrecision] * N[(N[Power[N[(t / N[Power[l, 1/3], $MachinePrecision]), $MachinePrecision], 3.0], $MachinePrecision] / l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(2.0 + t$95$1), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2.8e-119], N[(2.0 * N[(N[(N[(N[Power[l, 2.0], $MachinePrecision] / N[Power[k, 2.0], $MachinePrecision]), $MachinePrecision] * N[(N[Cos[k], $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision] / N[Power[N[Sin[k], $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(2.0 / N[(N[(1.0 + N[(1.0 + t$95$1), $MachinePrecision]), $MachinePrecision] * N[(N[Tan[k], $MachinePrecision] * N[(N[Sin[k], $MachinePrecision] * N[Power[N[(N[Power[t, 1.5], $MachinePrecision] / l), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := {\left(\frac{k}{t}\right)}^{2}\\
\mathbf{if}\;t \leq -7 \cdot 10^{-66}:\\
\;\;\;\;\frac{\frac{2}{\tan k \cdot \left(\sin k \cdot \frac{{\left(\frac{t}{\sqrt[3]{\ell}}\right)}^{3}}{\ell}\right)}}{2 + t_1}\\
\mathbf{elif}\;t \leq 2.8 \cdot 10^{-119}:\\
\;\;\;\;2 \cdot \frac{\frac{{\ell}^{2}}{{k}^{2}} \cdot \frac{\cos k}{t}}{{\sin k}^{2}}\\
\mathbf{else}:\\
\;\;\;\;\frac{2}{\left(1 + \left(1 + t_1\right)\right) \cdot \left(\tan k \cdot \left(\sin k \cdot {\left(\frac{{t}^{1.5}}{\ell}\right)}^{2}\right)\right)}\\
\end{array}
\end{array}
if t < -7.0000000000000001e-66Initial program 60.8%
Simplified71.1%
add-cube-cbrt71.0%
pow371.0%
cbrt-div70.9%
rem-cbrt-cube79.0%
Applied egg-rr79.0%
if -7.0000000000000001e-66 < t < 2.8e-119Initial program 35.7%
Simplified34.6%
div-inv34.6%
pow-flip34.6%
metadata-eval34.6%
Applied egg-rr34.6%
Taylor expanded in t around 0 72.6%
times-frac73.5%
associate-/r*73.5%
associate-*r/76.3%
Simplified76.3%
if 2.8e-119 < t Initial program 65.7%
add-sqr-sqrt65.7%
pow265.7%
sqrt-div65.7%
sqrt-pow174.4%
metadata-eval74.4%
sqrt-prod43.6%
add-sqr-sqrt87.1%
Applied egg-rr87.1%
Final simplification80.7%
(FPCore (t l k)
:precision binary64
(if (or (<= t -3.3e-65) (not (<= t 8.8e-119)))
(/
(/ 2.0 (* (tan k) (* (sin k) (/ (pow (/ t (cbrt l)) 3.0) l))))
(+ 2.0 (pow (/ k t) 2.0)))
(*
2.0
(/ (* (/ (pow l 2.0) (pow k 2.0)) (/ (cos k) t)) (pow (sin k) 2.0)))))
double code(double t, double l, double k) {
double tmp;
if ((t <= -3.3e-65) || !(t <= 8.8e-119)) {
tmp = (2.0 / (tan(k) * (sin(k) * (pow((t / cbrt(l)), 3.0) / l)))) / (2.0 + pow((k / t), 2.0));
} else {
tmp = 2.0 * (((pow(l, 2.0) / pow(k, 2.0)) * (cos(k) / t)) / pow(sin(k), 2.0));
}
return tmp;
}
public static double code(double t, double l, double k) {
double tmp;
if ((t <= -3.3e-65) || !(t <= 8.8e-119)) {
tmp = (2.0 / (Math.tan(k) * (Math.sin(k) * (Math.pow((t / Math.cbrt(l)), 3.0) / l)))) / (2.0 + Math.pow((k / t), 2.0));
} else {
tmp = 2.0 * (((Math.pow(l, 2.0) / Math.pow(k, 2.0)) * (Math.cos(k) / t)) / Math.pow(Math.sin(k), 2.0));
}
return tmp;
}
function code(t, l, k) tmp = 0.0 if ((t <= -3.3e-65) || !(t <= 8.8e-119)) tmp = Float64(Float64(2.0 / Float64(tan(k) * Float64(sin(k) * Float64((Float64(t / cbrt(l)) ^ 3.0) / l)))) / Float64(2.0 + (Float64(k / t) ^ 2.0))); else tmp = Float64(2.0 * Float64(Float64(Float64((l ^ 2.0) / (k ^ 2.0)) * Float64(cos(k) / t)) / (sin(k) ^ 2.0))); end return tmp end
code[t_, l_, k_] := If[Or[LessEqual[t, -3.3e-65], N[Not[LessEqual[t, 8.8e-119]], $MachinePrecision]], N[(N[(2.0 / N[(N[Tan[k], $MachinePrecision] * N[(N[Sin[k], $MachinePrecision] * N[(N[Power[N[(t / N[Power[l, 1/3], $MachinePrecision]), $MachinePrecision], 3.0], $MachinePrecision] / l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(2.0 + N[Power[N[(k / t), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(2.0 * N[(N[(N[(N[Power[l, 2.0], $MachinePrecision] / N[Power[k, 2.0], $MachinePrecision]), $MachinePrecision] * N[(N[Cos[k], $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision] / N[Power[N[Sin[k], $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -3.3 \cdot 10^{-65} \lor \neg \left(t \leq 8.8 \cdot 10^{-119}\right):\\
\;\;\;\;\frac{\frac{2}{\tan k \cdot \left(\sin k \cdot \frac{{\left(\frac{t}{\sqrt[3]{\ell}}\right)}^{3}}{\ell}\right)}}{2 + {\left(\frac{k}{t}\right)}^{2}}\\
\mathbf{else}:\\
\;\;\;\;2 \cdot \frac{\frac{{\ell}^{2}}{{k}^{2}} \cdot \frac{\cos k}{t}}{{\sin k}^{2}}\\
\end{array}
\end{array}
if t < -3.3000000000000001e-65 or 8.8000000000000002e-119 < t Initial program 63.5%
Simplified71.8%
add-cube-cbrt71.7%
pow371.7%
cbrt-div71.6%
rem-cbrt-cube80.4%
Applied egg-rr80.4%
if -3.3000000000000001e-65 < t < 8.8000000000000002e-119Initial program 35.7%
Simplified34.6%
div-inv34.6%
pow-flip34.6%
metadata-eval34.6%
Applied egg-rr34.6%
Taylor expanded in t around 0 72.6%
times-frac73.5%
associate-/r*73.5%
associate-*r/76.3%
Simplified76.3%
Final simplification78.8%
(FPCore (t l k)
:precision binary64
(if (or (<= t -6.5e-81) (not (<= t 1.45e-118)))
(/
2.0
(*
(+ 1.0 (+ 1.0 (pow (/ k t) 2.0)))
(* (tan k) (* (sin k) (* (/ (pow t 2.0) l) (/ t l))))))
(*
2.0
(* (* (/ (cos k) t) (* (pow l 2.0) (pow k -2.0))) (pow (sin k) -2.0)))))
double code(double t, double l, double k) {
double tmp;
if ((t <= -6.5e-81) || !(t <= 1.45e-118)) {
tmp = 2.0 / ((1.0 + (1.0 + pow((k / t), 2.0))) * (tan(k) * (sin(k) * ((pow(t, 2.0) / l) * (t / l)))));
} else {
tmp = 2.0 * (((cos(k) / t) * (pow(l, 2.0) * pow(k, -2.0))) * 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 ((t <= (-6.5d-81)) .or. (.not. (t <= 1.45d-118))) then
tmp = 2.0d0 / ((1.0d0 + (1.0d0 + ((k / t) ** 2.0d0))) * (tan(k) * (sin(k) * (((t ** 2.0d0) / l) * (t / l)))))
else
tmp = 2.0d0 * (((cos(k) / t) * ((l ** 2.0d0) * (k ** (-2.0d0)))) * (sin(k) ** (-2.0d0)))
end if
code = tmp
end function
public static double code(double t, double l, double k) {
double tmp;
if ((t <= -6.5e-81) || !(t <= 1.45e-118)) {
tmp = 2.0 / ((1.0 + (1.0 + Math.pow((k / t), 2.0))) * (Math.tan(k) * (Math.sin(k) * ((Math.pow(t, 2.0) / l) * (t / l)))));
} else {
tmp = 2.0 * (((Math.cos(k) / t) * (Math.pow(l, 2.0) * Math.pow(k, -2.0))) * Math.pow(Math.sin(k), -2.0));
}
return tmp;
}
def code(t, l, k): tmp = 0 if (t <= -6.5e-81) or not (t <= 1.45e-118): tmp = 2.0 / ((1.0 + (1.0 + math.pow((k / t), 2.0))) * (math.tan(k) * (math.sin(k) * ((math.pow(t, 2.0) / l) * (t / l))))) else: tmp = 2.0 * (((math.cos(k) / t) * (math.pow(l, 2.0) * math.pow(k, -2.0))) * math.pow(math.sin(k), -2.0)) return tmp
function code(t, l, k) tmp = 0.0 if ((t <= -6.5e-81) || !(t <= 1.45e-118)) tmp = Float64(2.0 / Float64(Float64(1.0 + Float64(1.0 + (Float64(k / t) ^ 2.0))) * Float64(tan(k) * Float64(sin(k) * Float64(Float64((t ^ 2.0) / l) * Float64(t / l)))))); else tmp = Float64(2.0 * Float64(Float64(Float64(cos(k) / t) * Float64((l ^ 2.0) * (k ^ -2.0))) * (sin(k) ^ -2.0))); end return tmp end
function tmp_2 = code(t, l, k) tmp = 0.0; if ((t <= -6.5e-81) || ~((t <= 1.45e-118))) tmp = 2.0 / ((1.0 + (1.0 + ((k / t) ^ 2.0))) * (tan(k) * (sin(k) * (((t ^ 2.0) / l) * (t / l))))); else tmp = 2.0 * (((cos(k) / t) * ((l ^ 2.0) * (k ^ -2.0))) * (sin(k) ^ -2.0)); end tmp_2 = tmp; end
code[t_, l_, k_] := If[Or[LessEqual[t, -6.5e-81], N[Not[LessEqual[t, 1.45e-118]], $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[Sin[k], $MachinePrecision] * N[(N[(N[Power[t, 2.0], $MachinePrecision] / l), $MachinePrecision] * N[(t / l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(2.0 * N[(N[(N[(N[Cos[k], $MachinePrecision] / t), $MachinePrecision] * N[(N[Power[l, 2.0], $MachinePrecision] * N[Power[k, -2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[Power[N[Sin[k], $MachinePrecision], -2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -6.5 \cdot 10^{-81} \lor \neg \left(t \leq 1.45 \cdot 10^{-118}\right):\\
\;\;\;\;\frac{2}{\left(1 + \left(1 + {\left(\frac{k}{t}\right)}^{2}\right)\right) \cdot \left(\tan k \cdot \left(\sin k \cdot \left(\frac{{t}^{2}}{\ell} \cdot \frac{t}{\ell}\right)\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;2 \cdot \left(\left(\frac{\cos k}{t} \cdot \left({\ell}^{2} \cdot {k}^{-2}\right)\right) \cdot {\sin k}^{-2}\right)\\
\end{array}
\end{array}
if t < -6.5000000000000002e-81 or 1.4499999999999999e-118 < t Initial program 64.8%
unpow364.9%
times-frac78.4%
pow278.4%
Applied egg-rr78.4%
if -6.5000000000000002e-81 < t < 1.4499999999999999e-118Initial program 31.5%
Simplified30.4%
div-inv30.4%
pow-flip30.4%
metadata-eval30.4%
Applied egg-rr30.4%
Taylor expanded in t around 0 70.9%
times-frac71.8%
associate-/r*71.8%
associate-*r/74.8%
Simplified74.8%
div-inv74.8%
div-inv74.8%
pow-flip74.8%
metadata-eval74.8%
pow-flip74.8%
metadata-eval74.8%
Applied egg-rr74.8%
Final simplification77.1%
(FPCore (t l k)
:precision binary64
(if (or (<= t -3.2e-65) (not (<= t 1.6e-119)))
(/
2.0
(*
(+ 1.0 (+ 1.0 (pow (/ k t) 2.0)))
(* (tan k) (* (sin k) (* (/ (pow t 2.0) l) (/ t l))))))
(*
2.0
(/ (* (/ (pow l 2.0) (pow k 2.0)) (/ (cos k) t)) (pow (sin k) 2.0)))))
double code(double t, double l, double k) {
double tmp;
if ((t <= -3.2e-65) || !(t <= 1.6e-119)) {
tmp = 2.0 / ((1.0 + (1.0 + pow((k / t), 2.0))) * (tan(k) * (sin(k) * ((pow(t, 2.0) / l) * (t / l)))));
} else {
tmp = 2.0 * (((pow(l, 2.0) / pow(k, 2.0)) * (cos(k) / t)) / 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 ((t <= (-3.2d-65)) .or. (.not. (t <= 1.6d-119))) then
tmp = 2.0d0 / ((1.0d0 + (1.0d0 + ((k / t) ** 2.0d0))) * (tan(k) * (sin(k) * (((t ** 2.0d0) / l) * (t / l)))))
else
tmp = 2.0d0 * ((((l ** 2.0d0) / (k ** 2.0d0)) * (cos(k) / t)) / (sin(k) ** 2.0d0))
end if
code = tmp
end function
public static double code(double t, double l, double k) {
double tmp;
if ((t <= -3.2e-65) || !(t <= 1.6e-119)) {
tmp = 2.0 / ((1.0 + (1.0 + Math.pow((k / t), 2.0))) * (Math.tan(k) * (Math.sin(k) * ((Math.pow(t, 2.0) / l) * (t / l)))));
} else {
tmp = 2.0 * (((Math.pow(l, 2.0) / Math.pow(k, 2.0)) * (Math.cos(k) / t)) / Math.pow(Math.sin(k), 2.0));
}
return tmp;
}
def code(t, l, k): tmp = 0 if (t <= -3.2e-65) or not (t <= 1.6e-119): tmp = 2.0 / ((1.0 + (1.0 + math.pow((k / t), 2.0))) * (math.tan(k) * (math.sin(k) * ((math.pow(t, 2.0) / l) * (t / l))))) else: tmp = 2.0 * (((math.pow(l, 2.0) / math.pow(k, 2.0)) * (math.cos(k) / t)) / math.pow(math.sin(k), 2.0)) return tmp
function code(t, l, k) tmp = 0.0 if ((t <= -3.2e-65) || !(t <= 1.6e-119)) tmp = Float64(2.0 / Float64(Float64(1.0 + Float64(1.0 + (Float64(k / t) ^ 2.0))) * Float64(tan(k) * Float64(sin(k) * Float64(Float64((t ^ 2.0) / l) * Float64(t / l)))))); else tmp = Float64(2.0 * Float64(Float64(Float64((l ^ 2.0) / (k ^ 2.0)) * Float64(cos(k) / t)) / (sin(k) ^ 2.0))); end return tmp end
function tmp_2 = code(t, l, k) tmp = 0.0; if ((t <= -3.2e-65) || ~((t <= 1.6e-119))) tmp = 2.0 / ((1.0 + (1.0 + ((k / t) ^ 2.0))) * (tan(k) * (sin(k) * (((t ^ 2.0) / l) * (t / l))))); else tmp = 2.0 * ((((l ^ 2.0) / (k ^ 2.0)) * (cos(k) / t)) / (sin(k) ^ 2.0)); end tmp_2 = tmp; end
code[t_, l_, k_] := If[Or[LessEqual[t, -3.2e-65], N[Not[LessEqual[t, 1.6e-119]], $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[Sin[k], $MachinePrecision] * N[(N[(N[Power[t, 2.0], $MachinePrecision] / l), $MachinePrecision] * N[(t / l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(2.0 * N[(N[(N[(N[Power[l, 2.0], $MachinePrecision] / N[Power[k, 2.0], $MachinePrecision]), $MachinePrecision] * N[(N[Cos[k], $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision] / N[Power[N[Sin[k], $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -3.2 \cdot 10^{-65} \lor \neg \left(t \leq 1.6 \cdot 10^{-119}\right):\\
\;\;\;\;\frac{2}{\left(1 + \left(1 + {\left(\frac{k}{t}\right)}^{2}\right)\right) \cdot \left(\tan k \cdot \left(\sin k \cdot \left(\frac{{t}^{2}}{\ell} \cdot \frac{t}{\ell}\right)\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;2 \cdot \frac{\frac{{\ell}^{2}}{{k}^{2}} \cdot \frac{\cos k}{t}}{{\sin k}^{2}}\\
\end{array}
\end{array}
if t < -3.1999999999999999e-65 or 1.59999999999999997e-119 < t Initial program 63.5%
unpow363.5%
times-frac77.6%
pow277.6%
Applied egg-rr77.6%
if -3.1999999999999999e-65 < t < 1.59999999999999997e-119Initial program 35.7%
Simplified34.6%
div-inv34.6%
pow-flip34.6%
metadata-eval34.6%
Applied egg-rr34.6%
Taylor expanded in t around 0 72.6%
times-frac73.5%
associate-/r*73.5%
associate-*r/76.3%
Simplified76.3%
Final simplification77.1%
(FPCore (t l k)
:precision binary64
(if (or (<= t -3.8e-126) (not (<= t 1.6e-119)))
(/
2.0
(*
(+ 1.0 (+ 1.0 (pow (/ k t) 2.0)))
(* (tan k) (* (sin k) (* (/ (pow t 2.0) l) (/ t l))))))
(*
2.0
(/
(* (pow l 2.0) (cos k))
(* (pow k 2.0) (* t (- 0.5 (/ (cos (* 2.0 k)) 2.0))))))))
double code(double t, double l, double k) {
double tmp;
if ((t <= -3.8e-126) || !(t <= 1.6e-119)) {
tmp = 2.0 / ((1.0 + (1.0 + pow((k / t), 2.0))) * (tan(k) * (sin(k) * ((pow(t, 2.0) / l) * (t / l)))));
} else {
tmp = 2.0 * ((pow(l, 2.0) * cos(k)) / (pow(k, 2.0) * (t * (0.5 - (cos((2.0 * 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 ((t <= (-3.8d-126)) .or. (.not. (t <= 1.6d-119))) then
tmp = 2.0d0 / ((1.0d0 + (1.0d0 + ((k / t) ** 2.0d0))) * (tan(k) * (sin(k) * (((t ** 2.0d0) / l) * (t / l)))))
else
tmp = 2.0d0 * (((l ** 2.0d0) * cos(k)) / ((k ** 2.0d0) * (t * (0.5d0 - (cos((2.0d0 * k)) / 2.0d0)))))
end if
code = tmp
end function
public static double code(double t, double l, double k) {
double tmp;
if ((t <= -3.8e-126) || !(t <= 1.6e-119)) {
tmp = 2.0 / ((1.0 + (1.0 + Math.pow((k / t), 2.0))) * (Math.tan(k) * (Math.sin(k) * ((Math.pow(t, 2.0) / l) * (t / l)))));
} else {
tmp = 2.0 * ((Math.pow(l, 2.0) * Math.cos(k)) / (Math.pow(k, 2.0) * (t * (0.5 - (Math.cos((2.0 * k)) / 2.0)))));
}
return tmp;
}
def code(t, l, k): tmp = 0 if (t <= -3.8e-126) or not (t <= 1.6e-119): tmp = 2.0 / ((1.0 + (1.0 + math.pow((k / t), 2.0))) * (math.tan(k) * (math.sin(k) * ((math.pow(t, 2.0) / l) * (t / l))))) else: tmp = 2.0 * ((math.pow(l, 2.0) * math.cos(k)) / (math.pow(k, 2.0) * (t * (0.5 - (math.cos((2.0 * k)) / 2.0))))) return tmp
function code(t, l, k) tmp = 0.0 if ((t <= -3.8e-126) || !(t <= 1.6e-119)) tmp = Float64(2.0 / Float64(Float64(1.0 + Float64(1.0 + (Float64(k / t) ^ 2.0))) * Float64(tan(k) * Float64(sin(k) * Float64(Float64((t ^ 2.0) / l) * Float64(t / l)))))); else tmp = Float64(2.0 * Float64(Float64((l ^ 2.0) * cos(k)) / Float64((k ^ 2.0) * Float64(t * Float64(0.5 - Float64(cos(Float64(2.0 * k)) / 2.0)))))); end return tmp end
function tmp_2 = code(t, l, k) tmp = 0.0; if ((t <= -3.8e-126) || ~((t <= 1.6e-119))) tmp = 2.0 / ((1.0 + (1.0 + ((k / t) ^ 2.0))) * (tan(k) * (sin(k) * (((t ^ 2.0) / l) * (t / l))))); else tmp = 2.0 * (((l ^ 2.0) * cos(k)) / ((k ^ 2.0) * (t * (0.5 - (cos((2.0 * k)) / 2.0))))); end tmp_2 = tmp; end
code[t_, l_, k_] := If[Or[LessEqual[t, -3.8e-126], N[Not[LessEqual[t, 1.6e-119]], $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[Sin[k], $MachinePrecision] * N[(N[(N[Power[t, 2.0], $MachinePrecision] / l), $MachinePrecision] * N[(t / l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(2.0 * N[(N[(N[Power[l, 2.0], $MachinePrecision] * N[Cos[k], $MachinePrecision]), $MachinePrecision] / N[(N[Power[k, 2.0], $MachinePrecision] * N[(t * N[(0.5 - N[(N[Cos[N[(2.0 * k), $MachinePrecision]], $MachinePrecision] / 2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -3.8 \cdot 10^{-126} \lor \neg \left(t \leq 1.6 \cdot 10^{-119}\right):\\
\;\;\;\;\frac{2}{\left(1 + \left(1 + {\left(\frac{k}{t}\right)}^{2}\right)\right) \cdot \left(\tan k \cdot \left(\sin k \cdot \left(\frac{{t}^{2}}{\ell} \cdot \frac{t}{\ell}\right)\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;2 \cdot \frac{{\ell}^{2} \cdot \cos k}{{k}^{2} \cdot \left(t \cdot \left(0.5 - \frac{\cos \left(2 \cdot k\right)}{2}\right)\right)}\\
\end{array}
\end{array}
if t < -3.7999999999999999e-126 or 1.59999999999999997e-119 < t Initial program 63.5%
unpow363.6%
times-frac77.5%
pow277.5%
Applied egg-rr77.5%
if -3.7999999999999999e-126 < t < 1.59999999999999997e-119Initial program 30.2%
Simplified30.2%
Taylor expanded in t around 0 72.1%
unpow275.3%
sin-mult69.7%
Applied egg-rr71.0%
div-sub69.7%
+-inverses69.7%
cos-069.7%
metadata-eval69.7%
count-269.7%
*-commutative69.7%
Simplified71.0%
Final simplification75.4%
(FPCore (t l k)
:precision binary64
(let* ((t_1
(*
(/ (* l (/ 2.0 (pow t 3.0))) (* (sin k) (tan k)))
(/ l (+ 2.0 (pow (/ k t) 2.0))))))
(if (<= t -1.32e-65)
t_1
(if (<= t 4e-59)
(*
2.0
(/
(* (pow l 2.0) (cos k))
(* (pow k 2.0) (* t (- 0.5 (/ (cos (* 2.0 k)) 2.0))))))
(if (<= t 4.3e+95)
t_1
(/
2.0
(pow
(* (* k (/ (pow t 1.5) l)) (hypot 1.0 (hypot 1.0 (/ k t))))
2.0)))))))
double code(double t, double l, double k) {
double t_1 = ((l * (2.0 / pow(t, 3.0))) / (sin(k) * tan(k))) * (l / (2.0 + pow((k / t), 2.0)));
double tmp;
if (t <= -1.32e-65) {
tmp = t_1;
} else if (t <= 4e-59) {
tmp = 2.0 * ((pow(l, 2.0) * cos(k)) / (pow(k, 2.0) * (t * (0.5 - (cos((2.0 * k)) / 2.0)))));
} else if (t <= 4.3e+95) {
tmp = t_1;
} else {
tmp = 2.0 / pow(((k * (pow(t, 1.5) / l)) * hypot(1.0, hypot(1.0, (k / t)))), 2.0);
}
return tmp;
}
public static double code(double t, double l, double k) {
double t_1 = ((l * (2.0 / Math.pow(t, 3.0))) / (Math.sin(k) * Math.tan(k))) * (l / (2.0 + Math.pow((k / t), 2.0)));
double tmp;
if (t <= -1.32e-65) {
tmp = t_1;
} else if (t <= 4e-59) {
tmp = 2.0 * ((Math.pow(l, 2.0) * Math.cos(k)) / (Math.pow(k, 2.0) * (t * (0.5 - (Math.cos((2.0 * k)) / 2.0)))));
} else if (t <= 4.3e+95) {
tmp = t_1;
} else {
tmp = 2.0 / Math.pow(((k * (Math.pow(t, 1.5) / l)) * Math.hypot(1.0, Math.hypot(1.0, (k / t)))), 2.0);
}
return tmp;
}
def code(t, l, k): t_1 = ((l * (2.0 / math.pow(t, 3.0))) / (math.sin(k) * math.tan(k))) * (l / (2.0 + math.pow((k / t), 2.0))) tmp = 0 if t <= -1.32e-65: tmp = t_1 elif t <= 4e-59: tmp = 2.0 * ((math.pow(l, 2.0) * math.cos(k)) / (math.pow(k, 2.0) * (t * (0.5 - (math.cos((2.0 * k)) / 2.0))))) elif t <= 4.3e+95: tmp = t_1 else: tmp = 2.0 / math.pow(((k * (math.pow(t, 1.5) / l)) * math.hypot(1.0, math.hypot(1.0, (k / t)))), 2.0) return tmp
function code(t, l, k) t_1 = Float64(Float64(Float64(l * Float64(2.0 / (t ^ 3.0))) / Float64(sin(k) * tan(k))) * Float64(l / Float64(2.0 + (Float64(k / t) ^ 2.0)))) tmp = 0.0 if (t <= -1.32e-65) tmp = t_1; elseif (t <= 4e-59) tmp = Float64(2.0 * Float64(Float64((l ^ 2.0) * cos(k)) / Float64((k ^ 2.0) * Float64(t * Float64(0.5 - Float64(cos(Float64(2.0 * k)) / 2.0)))))); elseif (t <= 4.3e+95) tmp = t_1; else tmp = Float64(2.0 / (Float64(Float64(k * Float64((t ^ 1.5) / l)) * hypot(1.0, hypot(1.0, Float64(k / t)))) ^ 2.0)); end return tmp end
function tmp_2 = code(t, l, k) t_1 = ((l * (2.0 / (t ^ 3.0))) / (sin(k) * tan(k))) * (l / (2.0 + ((k / t) ^ 2.0))); tmp = 0.0; if (t <= -1.32e-65) tmp = t_1; elseif (t <= 4e-59) tmp = 2.0 * (((l ^ 2.0) * cos(k)) / ((k ^ 2.0) * (t * (0.5 - (cos((2.0 * k)) / 2.0))))); elseif (t <= 4.3e+95) tmp = t_1; else tmp = 2.0 / (((k * ((t ^ 1.5) / l)) * hypot(1.0, hypot(1.0, (k / t)))) ^ 2.0); end tmp_2 = tmp; end
code[t_, l_, k_] := Block[{t$95$1 = N[(N[(N[(l * N[(2.0 / N[Power[t, 3.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[Sin[k], $MachinePrecision] * N[Tan[k], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(l / N[(2.0 + N[Power[N[(k / t), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -1.32e-65], t$95$1, If[LessEqual[t, 4e-59], N[(2.0 * N[(N[(N[Power[l, 2.0], $MachinePrecision] * N[Cos[k], $MachinePrecision]), $MachinePrecision] / N[(N[Power[k, 2.0], $MachinePrecision] * N[(t * N[(0.5 - N[(N[Cos[N[(2.0 * k), $MachinePrecision]], $MachinePrecision] / 2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 4.3e+95], t$95$1, N[(2.0 / N[Power[N[(N[(k * N[(N[Power[t, 1.5], $MachinePrecision] / l), $MachinePrecision]), $MachinePrecision] * N[Sqrt[1.0 ^ 2 + N[Sqrt[1.0 ^ 2 + N[(k / t), $MachinePrecision] ^ 2], $MachinePrecision] ^ 2], $MachinePrecision]), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{\ell \cdot \frac{2}{{t}^{3}}}{\sin k \cdot \tan k} \cdot \frac{\ell}{2 + {\left(\frac{k}{t}\right)}^{2}}\\
\mathbf{if}\;t \leq -1.32 \cdot 10^{-65}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 4 \cdot 10^{-59}:\\
\;\;\;\;2 \cdot \frac{{\ell}^{2} \cdot \cos k}{{k}^{2} \cdot \left(t \cdot \left(0.5 - \frac{\cos \left(2 \cdot k\right)}{2}\right)\right)}\\
\mathbf{elif}\;t \leq 4.3 \cdot 10^{+95}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;\frac{2}{{\left(\left(k \cdot \frac{{t}^{1.5}}{\ell}\right) \cdot \mathsf{hypot}\left(1, \mathsf{hypot}\left(1, \frac{k}{t}\right)\right)\right)}^{2}}\\
\end{array}
\end{array}
if t < -1.32e-65 or 4.0000000000000001e-59 < t < 4.3e95Initial program 64.9%
Simplified58.5%
associate-*r*67.5%
*-commutative67.5%
times-frac71.5%
Applied egg-rr71.5%
if -1.32e-65 < t < 4.0000000000000001e-59Initial program 39.7%
Simplified38.3%
Taylor expanded in t around 0 73.3%
unpow276.6%
sin-mult71.5%
Applied egg-rr72.5%
div-sub71.5%
+-inverses71.5%
cos-071.5%
metadata-eval71.5%
count-271.5%
*-commutative71.5%
Simplified72.5%
if 4.3e95 < t Initial program 58.8%
add-sqr-sqrt42.2%
pow242.2%
Applied egg-rr51.5%
Taylor expanded in k around 0 74.8%
Final simplification72.5%
(FPCore (t l k)
:precision binary64
(let* ((t_1
(*
(/ (* l (/ 2.0 (pow t 3.0))) (* (sin k) (+ 2.0 (pow (/ k t) 2.0))))
(/ l (tan k)))))
(if (<= t -7.2e-66)
t_1
(if (<= t 4.6e-103)
(*
2.0
(/
(* (pow l 2.0) (cos k))
(* (pow k 2.0) (* t (- 0.5 (/ (cos (* 2.0 k)) 2.0))))))
(if (<= t 4.3e+95)
t_1
(/
2.0
(pow
(* (* k (/ (pow t 1.5) l)) (hypot 1.0 (hypot 1.0 (/ k t))))
2.0)))))))
double code(double t, double l, double k) {
double t_1 = ((l * (2.0 / pow(t, 3.0))) / (sin(k) * (2.0 + pow((k / t), 2.0)))) * (l / tan(k));
double tmp;
if (t <= -7.2e-66) {
tmp = t_1;
} else if (t <= 4.6e-103) {
tmp = 2.0 * ((pow(l, 2.0) * cos(k)) / (pow(k, 2.0) * (t * (0.5 - (cos((2.0 * k)) / 2.0)))));
} else if (t <= 4.3e+95) {
tmp = t_1;
} else {
tmp = 2.0 / pow(((k * (pow(t, 1.5) / l)) * hypot(1.0, hypot(1.0, (k / t)))), 2.0);
}
return tmp;
}
public static double code(double t, double l, double k) {
double t_1 = ((l * (2.0 / Math.pow(t, 3.0))) / (Math.sin(k) * (2.0 + Math.pow((k / t), 2.0)))) * (l / Math.tan(k));
double tmp;
if (t <= -7.2e-66) {
tmp = t_1;
} else if (t <= 4.6e-103) {
tmp = 2.0 * ((Math.pow(l, 2.0) * Math.cos(k)) / (Math.pow(k, 2.0) * (t * (0.5 - (Math.cos((2.0 * k)) / 2.0)))));
} else if (t <= 4.3e+95) {
tmp = t_1;
} else {
tmp = 2.0 / Math.pow(((k * (Math.pow(t, 1.5) / l)) * Math.hypot(1.0, Math.hypot(1.0, (k / t)))), 2.0);
}
return tmp;
}
def code(t, l, k): t_1 = ((l * (2.0 / math.pow(t, 3.0))) / (math.sin(k) * (2.0 + math.pow((k / t), 2.0)))) * (l / math.tan(k)) tmp = 0 if t <= -7.2e-66: tmp = t_1 elif t <= 4.6e-103: tmp = 2.0 * ((math.pow(l, 2.0) * math.cos(k)) / (math.pow(k, 2.0) * (t * (0.5 - (math.cos((2.0 * k)) / 2.0))))) elif t <= 4.3e+95: tmp = t_1 else: tmp = 2.0 / math.pow(((k * (math.pow(t, 1.5) / l)) * math.hypot(1.0, math.hypot(1.0, (k / t)))), 2.0) return tmp
function code(t, l, k) t_1 = Float64(Float64(Float64(l * Float64(2.0 / (t ^ 3.0))) / Float64(sin(k) * Float64(2.0 + (Float64(k / t) ^ 2.0)))) * Float64(l / tan(k))) tmp = 0.0 if (t <= -7.2e-66) tmp = t_1; elseif (t <= 4.6e-103) tmp = Float64(2.0 * Float64(Float64((l ^ 2.0) * cos(k)) / Float64((k ^ 2.0) * Float64(t * Float64(0.5 - Float64(cos(Float64(2.0 * k)) / 2.0)))))); elseif (t <= 4.3e+95) tmp = t_1; else tmp = Float64(2.0 / (Float64(Float64(k * Float64((t ^ 1.5) / l)) * hypot(1.0, hypot(1.0, Float64(k / t)))) ^ 2.0)); end return tmp end
function tmp_2 = code(t, l, k) t_1 = ((l * (2.0 / (t ^ 3.0))) / (sin(k) * (2.0 + ((k / t) ^ 2.0)))) * (l / tan(k)); tmp = 0.0; if (t <= -7.2e-66) tmp = t_1; elseif (t <= 4.6e-103) tmp = 2.0 * (((l ^ 2.0) * cos(k)) / ((k ^ 2.0) * (t * (0.5 - (cos((2.0 * k)) / 2.0))))); elseif (t <= 4.3e+95) tmp = t_1; else tmp = 2.0 / (((k * ((t ^ 1.5) / l)) * hypot(1.0, hypot(1.0, (k / t)))) ^ 2.0); end tmp_2 = tmp; end
code[t_, l_, k_] := Block[{t$95$1 = N[(N[(N[(l * N[(2.0 / N[Power[t, 3.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[Sin[k], $MachinePrecision] * N[(2.0 + N[Power[N[(k / t), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(l / N[Tan[k], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -7.2e-66], t$95$1, If[LessEqual[t, 4.6e-103], N[(2.0 * N[(N[(N[Power[l, 2.0], $MachinePrecision] * N[Cos[k], $MachinePrecision]), $MachinePrecision] / N[(N[Power[k, 2.0], $MachinePrecision] * N[(t * N[(0.5 - N[(N[Cos[N[(2.0 * k), $MachinePrecision]], $MachinePrecision] / 2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 4.3e+95], t$95$1, N[(2.0 / N[Power[N[(N[(k * N[(N[Power[t, 1.5], $MachinePrecision] / l), $MachinePrecision]), $MachinePrecision] * N[Sqrt[1.0 ^ 2 + N[Sqrt[1.0 ^ 2 + N[(k / t), $MachinePrecision] ^ 2], $MachinePrecision] ^ 2], $MachinePrecision]), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{\ell \cdot \frac{2}{{t}^{3}}}{\sin k \cdot \left(2 + {\left(\frac{k}{t}\right)}^{2}\right)} \cdot \frac{\ell}{\tan k}\\
\mathbf{if}\;t \leq -7.2 \cdot 10^{-66}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 4.6 \cdot 10^{-103}:\\
\;\;\;\;2 \cdot \frac{{\ell}^{2} \cdot \cos k}{{k}^{2} \cdot \left(t \cdot \left(0.5 - \frac{\cos \left(2 \cdot k\right)}{2}\right)\right)}\\
\mathbf{elif}\;t \leq 4.3 \cdot 10^{+95}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;\frac{2}{{\left(\left(k \cdot \frac{{t}^{1.5}}{\ell}\right) \cdot \mathsf{hypot}\left(1, \mathsf{hypot}\left(1, \frac{k}{t}\right)\right)\right)}^{2}}\\
\end{array}
\end{array}
if t < -7.20000000000000025e-66 or 4.6000000000000001e-103 < t < 4.3e95Initial program 64.7%
Simplified58.8%
associate-*r*67.2%
associate-*r*67.2%
times-frac79.0%
Applied egg-rr79.0%
if -7.20000000000000025e-66 < t < 4.6000000000000001e-103Initial program 38.0%
Simplified36.4%
Taylor expanded in t around 0 74.2%
unpow277.6%
sin-mult72.2%
Applied egg-rr73.2%
div-sub72.2%
+-inverses72.2%
cos-072.2%
metadata-eval72.2%
count-272.2%
*-commutative72.2%
Simplified73.2%
if 4.3e95 < t Initial program 58.8%
add-sqr-sqrt42.2%
pow242.2%
Applied egg-rr51.5%
Taylor expanded in k around 0 74.8%
Final simplification75.9%
(FPCore (t l k)
:precision binary64
(if (<= t -4.2e-32)
(/ (pow (/ (cbrt (* 2.0 (pow l 2.0))) t) 3.0) (* 2.0 (pow k 2.0)))
(if (<= t 4e-59)
(*
2.0
(/
(* (/ (pow l 2.0) (pow k 2.0)) (/ (cos k) t))
(- 0.5 (/ (cos (* 2.0 k)) 2.0))))
(/
2.0
(pow (* (* k (/ (pow t 1.5) l)) (hypot 1.0 (hypot 1.0 (/ k t)))) 2.0)))))
double code(double t, double l, double k) {
double tmp;
if (t <= -4.2e-32) {
tmp = pow((cbrt((2.0 * pow(l, 2.0))) / t), 3.0) / (2.0 * pow(k, 2.0));
} else if (t <= 4e-59) {
tmp = 2.0 * (((pow(l, 2.0) / pow(k, 2.0)) * (cos(k) / t)) / (0.5 - (cos((2.0 * k)) / 2.0)));
} else {
tmp = 2.0 / pow(((k * (pow(t, 1.5) / l)) * hypot(1.0, hypot(1.0, (k / t)))), 2.0);
}
return tmp;
}
public static double code(double t, double l, double k) {
double tmp;
if (t <= -4.2e-32) {
tmp = Math.pow((Math.cbrt((2.0 * Math.pow(l, 2.0))) / t), 3.0) / (2.0 * Math.pow(k, 2.0));
} else if (t <= 4e-59) {
tmp = 2.0 * (((Math.pow(l, 2.0) / Math.pow(k, 2.0)) * (Math.cos(k) / t)) / (0.5 - (Math.cos((2.0 * k)) / 2.0)));
} else {
tmp = 2.0 / Math.pow(((k * (Math.pow(t, 1.5) / l)) * Math.hypot(1.0, Math.hypot(1.0, (k / t)))), 2.0);
}
return tmp;
}
function code(t, l, k) tmp = 0.0 if (t <= -4.2e-32) tmp = Float64((Float64(cbrt(Float64(2.0 * (l ^ 2.0))) / t) ^ 3.0) / Float64(2.0 * (k ^ 2.0))); elseif (t <= 4e-59) tmp = Float64(2.0 * Float64(Float64(Float64((l ^ 2.0) / (k ^ 2.0)) * Float64(cos(k) / t)) / Float64(0.5 - Float64(cos(Float64(2.0 * k)) / 2.0)))); else tmp = Float64(2.0 / (Float64(Float64(k * Float64((t ^ 1.5) / l)) * hypot(1.0, hypot(1.0, Float64(k / t)))) ^ 2.0)); end return tmp end
code[t_, l_, k_] := If[LessEqual[t, -4.2e-32], N[(N[Power[N[(N[Power[N[(2.0 * N[Power[l, 2.0], $MachinePrecision]), $MachinePrecision], 1/3], $MachinePrecision] / t), $MachinePrecision], 3.0], $MachinePrecision] / N[(2.0 * N[Power[k, 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 4e-59], N[(2.0 * N[(N[(N[(N[Power[l, 2.0], $MachinePrecision] / N[Power[k, 2.0], $MachinePrecision]), $MachinePrecision] * N[(N[Cos[k], $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision] / N[(0.5 - N[(N[Cos[N[(2.0 * k), $MachinePrecision]], $MachinePrecision] / 2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(2.0 / N[Power[N[(N[(k * N[(N[Power[t, 1.5], $MachinePrecision] / l), $MachinePrecision]), $MachinePrecision] * N[Sqrt[1.0 ^ 2 + N[Sqrt[1.0 ^ 2 + N[(k / t), $MachinePrecision] ^ 2], $MachinePrecision] ^ 2], $MachinePrecision]), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -4.2 \cdot 10^{-32}:\\
\;\;\;\;\frac{{\left(\frac{\sqrt[3]{2 \cdot {\ell}^{2}}}{t}\right)}^{3}}{2 \cdot {k}^{2}}\\
\mathbf{elif}\;t \leq 4 \cdot 10^{-59}:\\
\;\;\;\;2 \cdot \frac{\frac{{\ell}^{2}}{{k}^{2}} \cdot \frac{\cos k}{t}}{0.5 - \frac{\cos \left(2 \cdot k\right)}{2}}\\
\mathbf{else}:\\
\;\;\;\;\frac{2}{{\left(\left(k \cdot \frac{{t}^{1.5}}{\ell}\right) \cdot \mathsf{hypot}\left(1, \mathsf{hypot}\left(1, \frac{k}{t}\right)\right)\right)}^{2}}\\
\end{array}
\end{array}
if t < -4.1999999999999998e-32Initial program 56.8%
Simplified46.4%
Taylor expanded in k around 0 45.3%
add-cube-cbrt45.2%
pow245.2%
cbrt-div45.2%
associate-*l/45.2%
cbrt-div45.1%
pow245.1%
unpow345.1%
add-cbrt-cube45.1%
cbrt-div45.1%
Applied egg-rr49.2%
pow-plus49.2%
metadata-eval49.2%
cube-div49.0%
rem-cube-cbrt49.1%
Simplified49.1%
if -4.1999999999999998e-32 < t < 4.0000000000000001e-59Initial program 43.4%
Simplified41.4%
div-inv41.4%
pow-flip41.4%
metadata-eval41.4%
Applied egg-rr41.4%
Taylor expanded in t around 0 73.3%
times-frac74.0%
associate-/r*74.0%
associate-*r/76.2%
Simplified76.2%
unpow276.2%
sin-mult71.7%
Applied egg-rr71.7%
div-sub71.7%
+-inverses71.7%
cos-071.7%
metadata-eval71.7%
count-271.7%
*-commutative71.7%
Simplified71.7%
if 4.0000000000000001e-59 < t Initial program 65.2%
add-sqr-sqrt51.3%
pow251.3%
Applied egg-rr64.5%
Taylor expanded in k around 0 73.4%
Final simplification67.0%
(FPCore (t l k)
:precision binary64
(if (<= t -9.2e-45)
(/ (pow (/ (cbrt (* 2.0 (pow l 2.0))) t) 3.0) (* 2.0 (pow k 2.0)))
(if (<= t 4.5e-59)
(*
2.0
(/
(* (pow l 2.0) (cos k))
(* (pow k 2.0) (* t (- 0.5 (/ (cos (* 2.0 k)) 2.0))))))
(/
2.0
(pow (* (* k (/ (pow t 1.5) l)) (hypot 1.0 (hypot 1.0 (/ k t)))) 2.0)))))
double code(double t, double l, double k) {
double tmp;
if (t <= -9.2e-45) {
tmp = pow((cbrt((2.0 * pow(l, 2.0))) / t), 3.0) / (2.0 * pow(k, 2.0));
} else if (t <= 4.5e-59) {
tmp = 2.0 * ((pow(l, 2.0) * cos(k)) / (pow(k, 2.0) * (t * (0.5 - (cos((2.0 * k)) / 2.0)))));
} else {
tmp = 2.0 / pow(((k * (pow(t, 1.5) / l)) * hypot(1.0, hypot(1.0, (k / t)))), 2.0);
}
return tmp;
}
public static double code(double t, double l, double k) {
double tmp;
if (t <= -9.2e-45) {
tmp = Math.pow((Math.cbrt((2.0 * Math.pow(l, 2.0))) / t), 3.0) / (2.0 * Math.pow(k, 2.0));
} else if (t <= 4.5e-59) {
tmp = 2.0 * ((Math.pow(l, 2.0) * Math.cos(k)) / (Math.pow(k, 2.0) * (t * (0.5 - (Math.cos((2.0 * k)) / 2.0)))));
} else {
tmp = 2.0 / Math.pow(((k * (Math.pow(t, 1.5) / l)) * Math.hypot(1.0, Math.hypot(1.0, (k / t)))), 2.0);
}
return tmp;
}
function code(t, l, k) tmp = 0.0 if (t <= -9.2e-45) tmp = Float64((Float64(cbrt(Float64(2.0 * (l ^ 2.0))) / t) ^ 3.0) / Float64(2.0 * (k ^ 2.0))); elseif (t <= 4.5e-59) tmp = Float64(2.0 * Float64(Float64((l ^ 2.0) * cos(k)) / Float64((k ^ 2.0) * Float64(t * Float64(0.5 - Float64(cos(Float64(2.0 * k)) / 2.0)))))); else tmp = Float64(2.0 / (Float64(Float64(k * Float64((t ^ 1.5) / l)) * hypot(1.0, hypot(1.0, Float64(k / t)))) ^ 2.0)); end return tmp end
code[t_, l_, k_] := If[LessEqual[t, -9.2e-45], N[(N[Power[N[(N[Power[N[(2.0 * N[Power[l, 2.0], $MachinePrecision]), $MachinePrecision], 1/3], $MachinePrecision] / t), $MachinePrecision], 3.0], $MachinePrecision] / N[(2.0 * N[Power[k, 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 4.5e-59], N[(2.0 * N[(N[(N[Power[l, 2.0], $MachinePrecision] * N[Cos[k], $MachinePrecision]), $MachinePrecision] / N[(N[Power[k, 2.0], $MachinePrecision] * N[(t * N[(0.5 - N[(N[Cos[N[(2.0 * k), $MachinePrecision]], $MachinePrecision] / 2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(2.0 / N[Power[N[(N[(k * N[(N[Power[t, 1.5], $MachinePrecision] / l), $MachinePrecision]), $MachinePrecision] * N[Sqrt[1.0 ^ 2 + N[Sqrt[1.0 ^ 2 + N[(k / t), $MachinePrecision] ^ 2], $MachinePrecision] ^ 2], $MachinePrecision]), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -9.2 \cdot 10^{-45}:\\
\;\;\;\;\frac{{\left(\frac{\sqrt[3]{2 \cdot {\ell}^{2}}}{t}\right)}^{3}}{2 \cdot {k}^{2}}\\
\mathbf{elif}\;t \leq 4.5 \cdot 10^{-59}:\\
\;\;\;\;2 \cdot \frac{{\ell}^{2} \cdot \cos k}{{k}^{2} \cdot \left(t \cdot \left(0.5 - \frac{\cos \left(2 \cdot k\right)}{2}\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{2}{{\left(\left(k \cdot \frac{{t}^{1.5}}{\ell}\right) \cdot \mathsf{hypot}\left(1, \mathsf{hypot}\left(1, \frac{k}{t}\right)\right)\right)}^{2}}\\
\end{array}
\end{array}
if t < -9.19999999999999967e-45Initial program 60.8%
Simplified49.9%
Taylor expanded in k around 0 48.9%
add-cube-cbrt48.8%
pow248.8%
cbrt-div48.8%
associate-*l/48.8%
cbrt-div48.7%
pow248.7%
unpow348.7%
add-cbrt-cube48.8%
cbrt-div48.8%
Applied egg-rr52.4%
pow-plus52.4%
metadata-eval52.4%
cube-div52.2%
rem-cube-cbrt52.4%
Simplified52.4%
if -9.19999999999999967e-45 < t < 4.50000000000000012e-59Initial program 40.6%
Simplified39.2%
Taylor expanded in t around 0 72.8%
unpow275.8%
sin-mult71.0%
Applied egg-rr71.9%
div-sub71.0%
+-inverses71.0%
cos-071.0%
metadata-eval71.0%
count-271.0%
*-commutative71.0%
Simplified71.9%
if 4.50000000000000012e-59 < t Initial program 65.2%
add-sqr-sqrt51.3%
pow251.3%
Applied egg-rr64.5%
Taylor expanded in k around 0 73.4%
Final simplification67.4%
(FPCore (t l k)
:precision binary64
(if (<= t -3.5e-81)
(/
(* (* 2.0 (pow t -3.0)) (* l l))
(* (* (sin k) (tan k)) (+ 2.0 (* (/ k t) (/ k t)))))
(if (<= t 1.45e-263)
(* 2.0 (/ (* (/ (pow l 2.0) (pow k 2.0)) (/ (cos k) t)) (pow k 2.0)))
(if (<= t 5.5e-31)
(/ 2.0 (pow (* (/ (* k (sin k)) l) (sqrt (/ t (cos k)))) 2.0))
(/
2.0
(pow
(* (* k (/ (pow t 1.5) l)) (hypot 1.0 (hypot 1.0 (/ k t))))
2.0))))))
double code(double t, double l, double k) {
double tmp;
if (t <= -3.5e-81) {
tmp = ((2.0 * pow(t, -3.0)) * (l * l)) / ((sin(k) * tan(k)) * (2.0 + ((k / t) * (k / t))));
} else if (t <= 1.45e-263) {
tmp = 2.0 * (((pow(l, 2.0) / pow(k, 2.0)) * (cos(k) / t)) / pow(k, 2.0));
} else if (t <= 5.5e-31) {
tmp = 2.0 / pow((((k * sin(k)) / l) * sqrt((t / cos(k)))), 2.0);
} else {
tmp = 2.0 / pow(((k * (pow(t, 1.5) / l)) * hypot(1.0, hypot(1.0, (k / t)))), 2.0);
}
return tmp;
}
public static double code(double t, double l, double k) {
double tmp;
if (t <= -3.5e-81) {
tmp = ((2.0 * Math.pow(t, -3.0)) * (l * l)) / ((Math.sin(k) * Math.tan(k)) * (2.0 + ((k / t) * (k / t))));
} else if (t <= 1.45e-263) {
tmp = 2.0 * (((Math.pow(l, 2.0) / Math.pow(k, 2.0)) * (Math.cos(k) / t)) / Math.pow(k, 2.0));
} else if (t <= 5.5e-31) {
tmp = 2.0 / Math.pow((((k * Math.sin(k)) / l) * Math.sqrt((t / Math.cos(k)))), 2.0);
} else {
tmp = 2.0 / Math.pow(((k * (Math.pow(t, 1.5) / l)) * Math.hypot(1.0, Math.hypot(1.0, (k / t)))), 2.0);
}
return tmp;
}
def code(t, l, k): tmp = 0 if t <= -3.5e-81: tmp = ((2.0 * math.pow(t, -3.0)) * (l * l)) / ((math.sin(k) * math.tan(k)) * (2.0 + ((k / t) * (k / t)))) elif t <= 1.45e-263: tmp = 2.0 * (((math.pow(l, 2.0) / math.pow(k, 2.0)) * (math.cos(k) / t)) / math.pow(k, 2.0)) elif t <= 5.5e-31: tmp = 2.0 / math.pow((((k * math.sin(k)) / l) * math.sqrt((t / math.cos(k)))), 2.0) else: tmp = 2.0 / math.pow(((k * (math.pow(t, 1.5) / l)) * math.hypot(1.0, math.hypot(1.0, (k / t)))), 2.0) return tmp
function code(t, l, k) tmp = 0.0 if (t <= -3.5e-81) tmp = Float64(Float64(Float64(2.0 * (t ^ -3.0)) * Float64(l * l)) / Float64(Float64(sin(k) * tan(k)) * Float64(2.0 + Float64(Float64(k / t) * Float64(k / t))))); elseif (t <= 1.45e-263) tmp = Float64(2.0 * Float64(Float64(Float64((l ^ 2.0) / (k ^ 2.0)) * Float64(cos(k) / t)) / (k ^ 2.0))); elseif (t <= 5.5e-31) tmp = Float64(2.0 / (Float64(Float64(Float64(k * sin(k)) / l) * sqrt(Float64(t / cos(k)))) ^ 2.0)); else tmp = Float64(2.0 / (Float64(Float64(k * Float64((t ^ 1.5) / l)) * hypot(1.0, hypot(1.0, Float64(k / t)))) ^ 2.0)); end return tmp end
function tmp_2 = code(t, l, k) tmp = 0.0; if (t <= -3.5e-81) tmp = ((2.0 * (t ^ -3.0)) * (l * l)) / ((sin(k) * tan(k)) * (2.0 + ((k / t) * (k / t)))); elseif (t <= 1.45e-263) tmp = 2.0 * ((((l ^ 2.0) / (k ^ 2.0)) * (cos(k) / t)) / (k ^ 2.0)); elseif (t <= 5.5e-31) tmp = 2.0 / ((((k * sin(k)) / l) * sqrt((t / cos(k)))) ^ 2.0); else tmp = 2.0 / (((k * ((t ^ 1.5) / l)) * hypot(1.0, hypot(1.0, (k / t)))) ^ 2.0); end tmp_2 = tmp; end
code[t_, l_, k_] := If[LessEqual[t, -3.5e-81], N[(N[(N[(2.0 * N[Power[t, -3.0], $MachinePrecision]), $MachinePrecision] * N[(l * l), $MachinePrecision]), $MachinePrecision] / N[(N[(N[Sin[k], $MachinePrecision] * N[Tan[k], $MachinePrecision]), $MachinePrecision] * N[(2.0 + N[(N[(k / t), $MachinePrecision] * N[(k / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.45e-263], N[(2.0 * N[(N[(N[(N[Power[l, 2.0], $MachinePrecision] / N[Power[k, 2.0], $MachinePrecision]), $MachinePrecision] * N[(N[Cos[k], $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision] / N[Power[k, 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 5.5e-31], N[(2.0 / N[Power[N[(N[(N[(k * N[Sin[k], $MachinePrecision]), $MachinePrecision] / l), $MachinePrecision] * N[Sqrt[N[(t / N[Cos[k], $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision], N[(2.0 / N[Power[N[(N[(k * N[(N[Power[t, 1.5], $MachinePrecision] / l), $MachinePrecision]), $MachinePrecision] * N[Sqrt[1.0 ^ 2 + N[Sqrt[1.0 ^ 2 + N[(k / t), $MachinePrecision] ^ 2], $MachinePrecision] ^ 2], $MachinePrecision]), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -3.5 \cdot 10^{-81}:\\
\;\;\;\;\frac{\left(2 \cdot {t}^{-3}\right) \cdot \left(\ell \cdot \ell\right)}{\left(\sin k \cdot \tan k\right) \cdot \left(2 + \frac{k}{t} \cdot \frac{k}{t}\right)}\\
\mathbf{elif}\;t \leq 1.45 \cdot 10^{-263}:\\
\;\;\;\;2 \cdot \frac{\frac{{\ell}^{2}}{{k}^{2}} \cdot \frac{\cos k}{t}}{{k}^{2}}\\
\mathbf{elif}\;t \leq 5.5 \cdot 10^{-31}:\\
\;\;\;\;\frac{2}{{\left(\frac{k \cdot \sin k}{\ell} \cdot \sqrt{\frac{t}{\cos k}}\right)}^{2}}\\
\mathbf{else}:\\
\;\;\;\;\frac{2}{{\left(\left(k \cdot \frac{{t}^{1.5}}{\ell}\right) \cdot \mathsf{hypot}\left(1, \mathsf{hypot}\left(1, \frac{k}{t}\right)\right)\right)}^{2}}\\
\end{array}
\end{array}
if t < -3.49999999999999986e-81Initial program 63.8%
Simplified54.4%
div-inv54.4%
pow-flip54.5%
metadata-eval54.5%
Applied egg-rr54.5%
unpow254.5%
Applied egg-rr54.5%
if -3.49999999999999986e-81 < t < 1.45000000000000002e-263Initial program 27.5%
Simplified25.4%
div-inv25.4%
pow-flip25.4%
metadata-eval25.4%
Applied egg-rr25.4%
Taylor expanded in t around 0 66.6%
times-frac68.2%
associate-/r*68.2%
associate-*r/73.5%
Simplified73.5%
Taylor expanded in k around 0 64.7%
if 1.45000000000000002e-263 < t < 5.49999999999999958e-31Initial program 46.9%
add-sqr-sqrt45.9%
pow245.9%
Applied egg-rr64.0%
Taylor expanded in k around inf 70.5%
if 5.49999999999999958e-31 < t Initial program 65.1%
add-sqr-sqrt49.9%
pow249.9%
Applied egg-rr62.7%
Taylor expanded in k around 0 75.2%
Final simplification65.8%
(FPCore (t l k)
:precision binary64
(if (<= t -3.5e-81)
(/
(* (* 2.0 (pow t -3.0)) (* l l))
(* (* (sin k) (tan k)) (+ 2.0 (* (/ k t) (/ k t)))))
(if (<= t -3e-309)
(* 2.0 (/ (/ (pow l 2.0) (pow k 4.0)) t))
(if (<= t 5.4e-30)
(/ 2.0 (pow (* (sqrt (/ t (cos k))) (/ k (/ l (sin k)))) 2.0))
(/ 2.0 (pow (* (/ (* k (sqrt 2.0)) l) (sqrt (pow t 3.0))) 2.0))))))
double code(double t, double l, double k) {
double tmp;
if (t <= -3.5e-81) {
tmp = ((2.0 * pow(t, -3.0)) * (l * l)) / ((sin(k) * tan(k)) * (2.0 + ((k / t) * (k / t))));
} else if (t <= -3e-309) {
tmp = 2.0 * ((pow(l, 2.0) / pow(k, 4.0)) / t);
} else if (t <= 5.4e-30) {
tmp = 2.0 / pow((sqrt((t / cos(k))) * (k / (l / sin(k)))), 2.0);
} else {
tmp = 2.0 / pow((((k * sqrt(2.0)) / l) * sqrt(pow(t, 3.0))), 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 (t <= (-3.5d-81)) then
tmp = ((2.0d0 * (t ** (-3.0d0))) * (l * l)) / ((sin(k) * tan(k)) * (2.0d0 + ((k / t) * (k / t))))
else if (t <= (-3d-309)) then
tmp = 2.0d0 * (((l ** 2.0d0) / (k ** 4.0d0)) / t)
else if (t <= 5.4d-30) then
tmp = 2.0d0 / ((sqrt((t / cos(k))) * (k / (l / sin(k)))) ** 2.0d0)
else
tmp = 2.0d0 / ((((k * sqrt(2.0d0)) / l) * sqrt((t ** 3.0d0))) ** 2.0d0)
end if
code = tmp
end function
public static double code(double t, double l, double k) {
double tmp;
if (t <= -3.5e-81) {
tmp = ((2.0 * Math.pow(t, -3.0)) * (l * l)) / ((Math.sin(k) * Math.tan(k)) * (2.0 + ((k / t) * (k / t))));
} else if (t <= -3e-309) {
tmp = 2.0 * ((Math.pow(l, 2.0) / Math.pow(k, 4.0)) / t);
} else if (t <= 5.4e-30) {
tmp = 2.0 / Math.pow((Math.sqrt((t / Math.cos(k))) * (k / (l / Math.sin(k)))), 2.0);
} else {
tmp = 2.0 / Math.pow((((k * Math.sqrt(2.0)) / l) * Math.sqrt(Math.pow(t, 3.0))), 2.0);
}
return tmp;
}
def code(t, l, k): tmp = 0 if t <= -3.5e-81: tmp = ((2.0 * math.pow(t, -3.0)) * (l * l)) / ((math.sin(k) * math.tan(k)) * (2.0 + ((k / t) * (k / t)))) elif t <= -3e-309: tmp = 2.0 * ((math.pow(l, 2.0) / math.pow(k, 4.0)) / t) elif t <= 5.4e-30: tmp = 2.0 / math.pow((math.sqrt((t / math.cos(k))) * (k / (l / math.sin(k)))), 2.0) else: tmp = 2.0 / math.pow((((k * math.sqrt(2.0)) / l) * math.sqrt(math.pow(t, 3.0))), 2.0) return tmp
function code(t, l, k) tmp = 0.0 if (t <= -3.5e-81) tmp = Float64(Float64(Float64(2.0 * (t ^ -3.0)) * Float64(l * l)) / Float64(Float64(sin(k) * tan(k)) * Float64(2.0 + Float64(Float64(k / t) * Float64(k / t))))); elseif (t <= -3e-309) tmp = Float64(2.0 * Float64(Float64((l ^ 2.0) / (k ^ 4.0)) / t)); elseif (t <= 5.4e-30) tmp = Float64(2.0 / (Float64(sqrt(Float64(t / cos(k))) * Float64(k / Float64(l / sin(k)))) ^ 2.0)); else tmp = Float64(2.0 / (Float64(Float64(Float64(k * sqrt(2.0)) / l) * sqrt((t ^ 3.0))) ^ 2.0)); end return tmp end
function tmp_2 = code(t, l, k) tmp = 0.0; if (t <= -3.5e-81) tmp = ((2.0 * (t ^ -3.0)) * (l * l)) / ((sin(k) * tan(k)) * (2.0 + ((k / t) * (k / t)))); elseif (t <= -3e-309) tmp = 2.0 * (((l ^ 2.0) / (k ^ 4.0)) / t); elseif (t <= 5.4e-30) tmp = 2.0 / ((sqrt((t / cos(k))) * (k / (l / sin(k)))) ^ 2.0); else tmp = 2.0 / ((((k * sqrt(2.0)) / l) * sqrt((t ^ 3.0))) ^ 2.0); end tmp_2 = tmp; end
code[t_, l_, k_] := If[LessEqual[t, -3.5e-81], N[(N[(N[(2.0 * N[Power[t, -3.0], $MachinePrecision]), $MachinePrecision] * N[(l * l), $MachinePrecision]), $MachinePrecision] / N[(N[(N[Sin[k], $MachinePrecision] * N[Tan[k], $MachinePrecision]), $MachinePrecision] * N[(2.0 + N[(N[(k / t), $MachinePrecision] * N[(k / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -3e-309], N[(2.0 * N[(N[(N[Power[l, 2.0], $MachinePrecision] / N[Power[k, 4.0], $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 5.4e-30], N[(2.0 / N[Power[N[(N[Sqrt[N[(t / N[Cos[k], $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * N[(k / N[(l / N[Sin[k], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision], N[(2.0 / N[Power[N[(N[(N[(k * N[Sqrt[2.0], $MachinePrecision]), $MachinePrecision] / l), $MachinePrecision] * N[Sqrt[N[Power[t, 3.0], $MachinePrecision]], $MachinePrecision]), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -3.5 \cdot 10^{-81}:\\
\;\;\;\;\frac{\left(2 \cdot {t}^{-3}\right) \cdot \left(\ell \cdot \ell\right)}{\left(\sin k \cdot \tan k\right) \cdot \left(2 + \frac{k}{t} \cdot \frac{k}{t}\right)}\\
\mathbf{elif}\;t \leq -3 \cdot 10^{-309}:\\
\;\;\;\;2 \cdot \frac{\frac{{\ell}^{2}}{{k}^{4}}}{t}\\
\mathbf{elif}\;t \leq 5.4 \cdot 10^{-30}:\\
\;\;\;\;\frac{2}{{\left(\sqrt{\frac{t}{\cos k}} \cdot \frac{k}{\frac{\ell}{\sin k}}\right)}^{2}}\\
\mathbf{else}:\\
\;\;\;\;\frac{2}{{\left(\frac{k \cdot \sqrt{2}}{\ell} \cdot \sqrt{{t}^{3}}\right)}^{2}}\\
\end{array}
\end{array}
if t < -3.49999999999999986e-81Initial program 63.8%
Simplified54.4%
div-inv54.4%
pow-flip54.5%
metadata-eval54.5%
Applied egg-rr54.5%
unpow254.5%
Applied egg-rr54.5%
if -3.49999999999999986e-81 < t < -3.000000000000001e-309Initial program 30.4%
Simplified28.1%
div-inv28.1%
pow-flip28.1%
metadata-eval28.1%
Applied egg-rr28.1%
Taylor expanded in t around 0 63.1%
times-frac66.8%
associate-/r*66.8%
associate-*r/72.7%
Simplified72.7%
Taylor expanded in k around 0 50.6%
associate-/r*59.9%
Simplified59.9%
if -3.000000000000001e-309 < t < 5.39999999999999975e-30Initial program 43.3%
add-sqr-sqrt42.4%
pow242.4%
Applied egg-rr63.7%
Taylor expanded in k around inf 71.2%
associate-/l*71.1%
Simplified71.1%
if 5.39999999999999975e-30 < t Initial program 65.1%
add-sqr-sqrt49.9%
pow249.9%
Applied egg-rr62.7%
Taylor expanded in k around 0 67.9%
Final simplification63.3%
(FPCore (t l k)
:precision binary64
(if (<= t -2e-82)
(/
(* (* 2.0 (pow t -3.0)) (* l l))
(* (* (sin k) (tan k)) (+ 2.0 (* (/ k t) (/ k t)))))
(if (<= t -1.05e-307)
(* 2.0 (/ (/ (pow l 2.0) (pow k 4.0)) t))
(if (<= t 5.5e-31)
(/ 2.0 (pow (* (/ (* k (sin k)) l) (sqrt (/ t (cos k)))) 2.0))
(/ 2.0 (pow (* (/ (* k (sqrt 2.0)) l) (sqrt (pow t 3.0))) 2.0))))))
double code(double t, double l, double k) {
double tmp;
if (t <= -2e-82) {
tmp = ((2.0 * pow(t, -3.0)) * (l * l)) / ((sin(k) * tan(k)) * (2.0 + ((k / t) * (k / t))));
} else if (t <= -1.05e-307) {
tmp = 2.0 * ((pow(l, 2.0) / pow(k, 4.0)) / t);
} else if (t <= 5.5e-31) {
tmp = 2.0 / pow((((k * sin(k)) / l) * sqrt((t / cos(k)))), 2.0);
} else {
tmp = 2.0 / pow((((k * sqrt(2.0)) / l) * sqrt(pow(t, 3.0))), 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 (t <= (-2d-82)) then
tmp = ((2.0d0 * (t ** (-3.0d0))) * (l * l)) / ((sin(k) * tan(k)) * (2.0d0 + ((k / t) * (k / t))))
else if (t <= (-1.05d-307)) then
tmp = 2.0d0 * (((l ** 2.0d0) / (k ** 4.0d0)) / t)
else if (t <= 5.5d-31) then
tmp = 2.0d0 / ((((k * sin(k)) / l) * sqrt((t / cos(k)))) ** 2.0d0)
else
tmp = 2.0d0 / ((((k * sqrt(2.0d0)) / l) * sqrt((t ** 3.0d0))) ** 2.0d0)
end if
code = tmp
end function
public static double code(double t, double l, double k) {
double tmp;
if (t <= -2e-82) {
tmp = ((2.0 * Math.pow(t, -3.0)) * (l * l)) / ((Math.sin(k) * Math.tan(k)) * (2.0 + ((k / t) * (k / t))));
} else if (t <= -1.05e-307) {
tmp = 2.0 * ((Math.pow(l, 2.0) / Math.pow(k, 4.0)) / t);
} else if (t <= 5.5e-31) {
tmp = 2.0 / Math.pow((((k * Math.sin(k)) / l) * Math.sqrt((t / Math.cos(k)))), 2.0);
} else {
tmp = 2.0 / Math.pow((((k * Math.sqrt(2.0)) / l) * Math.sqrt(Math.pow(t, 3.0))), 2.0);
}
return tmp;
}
def code(t, l, k): tmp = 0 if t <= -2e-82: tmp = ((2.0 * math.pow(t, -3.0)) * (l * l)) / ((math.sin(k) * math.tan(k)) * (2.0 + ((k / t) * (k / t)))) elif t <= -1.05e-307: tmp = 2.0 * ((math.pow(l, 2.0) / math.pow(k, 4.0)) / t) elif t <= 5.5e-31: tmp = 2.0 / math.pow((((k * math.sin(k)) / l) * math.sqrt((t / math.cos(k)))), 2.0) else: tmp = 2.0 / math.pow((((k * math.sqrt(2.0)) / l) * math.sqrt(math.pow(t, 3.0))), 2.0) return tmp
function code(t, l, k) tmp = 0.0 if (t <= -2e-82) tmp = Float64(Float64(Float64(2.0 * (t ^ -3.0)) * Float64(l * l)) / Float64(Float64(sin(k) * tan(k)) * Float64(2.0 + Float64(Float64(k / t) * Float64(k / t))))); elseif (t <= -1.05e-307) tmp = Float64(2.0 * Float64(Float64((l ^ 2.0) / (k ^ 4.0)) / t)); elseif (t <= 5.5e-31) tmp = Float64(2.0 / (Float64(Float64(Float64(k * sin(k)) / l) * sqrt(Float64(t / cos(k)))) ^ 2.0)); else tmp = Float64(2.0 / (Float64(Float64(Float64(k * sqrt(2.0)) / l) * sqrt((t ^ 3.0))) ^ 2.0)); end return tmp end
function tmp_2 = code(t, l, k) tmp = 0.0; if (t <= -2e-82) tmp = ((2.0 * (t ^ -3.0)) * (l * l)) / ((sin(k) * tan(k)) * (2.0 + ((k / t) * (k / t)))); elseif (t <= -1.05e-307) tmp = 2.0 * (((l ^ 2.0) / (k ^ 4.0)) / t); elseif (t <= 5.5e-31) tmp = 2.0 / ((((k * sin(k)) / l) * sqrt((t / cos(k)))) ^ 2.0); else tmp = 2.0 / ((((k * sqrt(2.0)) / l) * sqrt((t ^ 3.0))) ^ 2.0); end tmp_2 = tmp; end
code[t_, l_, k_] := If[LessEqual[t, -2e-82], N[(N[(N[(2.0 * N[Power[t, -3.0], $MachinePrecision]), $MachinePrecision] * N[(l * l), $MachinePrecision]), $MachinePrecision] / N[(N[(N[Sin[k], $MachinePrecision] * N[Tan[k], $MachinePrecision]), $MachinePrecision] * N[(2.0 + N[(N[(k / t), $MachinePrecision] * N[(k / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -1.05e-307], N[(2.0 * N[(N[(N[Power[l, 2.0], $MachinePrecision] / N[Power[k, 4.0], $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 5.5e-31], N[(2.0 / N[Power[N[(N[(N[(k * N[Sin[k], $MachinePrecision]), $MachinePrecision] / l), $MachinePrecision] * N[Sqrt[N[(t / N[Cos[k], $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision], N[(2.0 / N[Power[N[(N[(N[(k * N[Sqrt[2.0], $MachinePrecision]), $MachinePrecision] / l), $MachinePrecision] * N[Sqrt[N[Power[t, 3.0], $MachinePrecision]], $MachinePrecision]), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -2 \cdot 10^{-82}:\\
\;\;\;\;\frac{\left(2 \cdot {t}^{-3}\right) \cdot \left(\ell \cdot \ell\right)}{\left(\sin k \cdot \tan k\right) \cdot \left(2 + \frac{k}{t} \cdot \frac{k}{t}\right)}\\
\mathbf{elif}\;t \leq -1.05 \cdot 10^{-307}:\\
\;\;\;\;2 \cdot \frac{\frac{{\ell}^{2}}{{k}^{4}}}{t}\\
\mathbf{elif}\;t \leq 5.5 \cdot 10^{-31}:\\
\;\;\;\;\frac{2}{{\left(\frac{k \cdot \sin k}{\ell} \cdot \sqrt{\frac{t}{\cos k}}\right)}^{2}}\\
\mathbf{else}:\\
\;\;\;\;\frac{2}{{\left(\frac{k \cdot \sqrt{2}}{\ell} \cdot \sqrt{{t}^{3}}\right)}^{2}}\\
\end{array}
\end{array}
if t < -2e-82Initial program 63.8%
Simplified54.4%
div-inv54.4%
pow-flip54.5%
metadata-eval54.5%
Applied egg-rr54.5%
unpow254.5%
Applied egg-rr54.5%
if -2e-82 < t < -1.0500000000000001e-307Initial program 30.4%
Simplified28.1%
div-inv28.1%
pow-flip28.1%
metadata-eval28.1%
Applied egg-rr28.1%
Taylor expanded in t around 0 63.1%
times-frac66.8%
associate-/r*66.8%
associate-*r/72.7%
Simplified72.7%
Taylor expanded in k around 0 50.6%
associate-/r*59.9%
Simplified59.9%
if -1.0500000000000001e-307 < t < 5.49999999999999958e-31Initial program 43.3%
add-sqr-sqrt42.4%
pow242.4%
Applied egg-rr63.7%
Taylor expanded in k around inf 71.2%
if 5.49999999999999958e-31 < t Initial program 65.1%
add-sqr-sqrt49.9%
pow249.9%
Applied egg-rr62.7%
Taylor expanded in k around 0 67.9%
Final simplification63.3%
(FPCore (t l k)
:precision binary64
(if (<= t -7e-82)
(/
(* (* 2.0 (pow t -3.0)) (* l l))
(* (* (sin k) (tan k)) (+ 2.0 (* (/ k t) (/ k t)))))
(if (<= t 5.5e-263)
(* 2.0 (/ (* (/ (pow l 2.0) (pow k 2.0)) (/ (cos k) t)) (pow k 2.0)))
(if (<= t 3.3e-26)
(/ 2.0 (pow (* (/ (* k (sin k)) l) (sqrt (/ t (cos k)))) 2.0))
(/ 2.0 (pow (* (/ (* k (sqrt 2.0)) l) (sqrt (pow t 3.0))) 2.0))))))
double code(double t, double l, double k) {
double tmp;
if (t <= -7e-82) {
tmp = ((2.0 * pow(t, -3.0)) * (l * l)) / ((sin(k) * tan(k)) * (2.0 + ((k / t) * (k / t))));
} else if (t <= 5.5e-263) {
tmp = 2.0 * (((pow(l, 2.0) / pow(k, 2.0)) * (cos(k) / t)) / pow(k, 2.0));
} else if (t <= 3.3e-26) {
tmp = 2.0 / pow((((k * sin(k)) / l) * sqrt((t / cos(k)))), 2.0);
} else {
tmp = 2.0 / pow((((k * sqrt(2.0)) / l) * sqrt(pow(t, 3.0))), 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 (t <= (-7d-82)) then
tmp = ((2.0d0 * (t ** (-3.0d0))) * (l * l)) / ((sin(k) * tan(k)) * (2.0d0 + ((k / t) * (k / t))))
else if (t <= 5.5d-263) then
tmp = 2.0d0 * ((((l ** 2.0d0) / (k ** 2.0d0)) * (cos(k) / t)) / (k ** 2.0d0))
else if (t <= 3.3d-26) then
tmp = 2.0d0 / ((((k * sin(k)) / l) * sqrt((t / cos(k)))) ** 2.0d0)
else
tmp = 2.0d0 / ((((k * sqrt(2.0d0)) / l) * sqrt((t ** 3.0d0))) ** 2.0d0)
end if
code = tmp
end function
public static double code(double t, double l, double k) {
double tmp;
if (t <= -7e-82) {
tmp = ((2.0 * Math.pow(t, -3.0)) * (l * l)) / ((Math.sin(k) * Math.tan(k)) * (2.0 + ((k / t) * (k / t))));
} else if (t <= 5.5e-263) {
tmp = 2.0 * (((Math.pow(l, 2.0) / Math.pow(k, 2.0)) * (Math.cos(k) / t)) / Math.pow(k, 2.0));
} else if (t <= 3.3e-26) {
tmp = 2.0 / Math.pow((((k * Math.sin(k)) / l) * Math.sqrt((t / Math.cos(k)))), 2.0);
} else {
tmp = 2.0 / Math.pow((((k * Math.sqrt(2.0)) / l) * Math.sqrt(Math.pow(t, 3.0))), 2.0);
}
return tmp;
}
def code(t, l, k): tmp = 0 if t <= -7e-82: tmp = ((2.0 * math.pow(t, -3.0)) * (l * l)) / ((math.sin(k) * math.tan(k)) * (2.0 + ((k / t) * (k / t)))) elif t <= 5.5e-263: tmp = 2.0 * (((math.pow(l, 2.0) / math.pow(k, 2.0)) * (math.cos(k) / t)) / math.pow(k, 2.0)) elif t <= 3.3e-26: tmp = 2.0 / math.pow((((k * math.sin(k)) / l) * math.sqrt((t / math.cos(k)))), 2.0) else: tmp = 2.0 / math.pow((((k * math.sqrt(2.0)) / l) * math.sqrt(math.pow(t, 3.0))), 2.0) return tmp
function code(t, l, k) tmp = 0.0 if (t <= -7e-82) tmp = Float64(Float64(Float64(2.0 * (t ^ -3.0)) * Float64(l * l)) / Float64(Float64(sin(k) * tan(k)) * Float64(2.0 + Float64(Float64(k / t) * Float64(k / t))))); elseif (t <= 5.5e-263) tmp = Float64(2.0 * Float64(Float64(Float64((l ^ 2.0) / (k ^ 2.0)) * Float64(cos(k) / t)) / (k ^ 2.0))); elseif (t <= 3.3e-26) tmp = Float64(2.0 / (Float64(Float64(Float64(k * sin(k)) / l) * sqrt(Float64(t / cos(k)))) ^ 2.0)); else tmp = Float64(2.0 / (Float64(Float64(Float64(k * sqrt(2.0)) / l) * sqrt((t ^ 3.0))) ^ 2.0)); end return tmp end
function tmp_2 = code(t, l, k) tmp = 0.0; if (t <= -7e-82) tmp = ((2.0 * (t ^ -3.0)) * (l * l)) / ((sin(k) * tan(k)) * (2.0 + ((k / t) * (k / t)))); elseif (t <= 5.5e-263) tmp = 2.0 * ((((l ^ 2.0) / (k ^ 2.0)) * (cos(k) / t)) / (k ^ 2.0)); elseif (t <= 3.3e-26) tmp = 2.0 / ((((k * sin(k)) / l) * sqrt((t / cos(k)))) ^ 2.0); else tmp = 2.0 / ((((k * sqrt(2.0)) / l) * sqrt((t ^ 3.0))) ^ 2.0); end tmp_2 = tmp; end
code[t_, l_, k_] := If[LessEqual[t, -7e-82], N[(N[(N[(2.0 * N[Power[t, -3.0], $MachinePrecision]), $MachinePrecision] * N[(l * l), $MachinePrecision]), $MachinePrecision] / N[(N[(N[Sin[k], $MachinePrecision] * N[Tan[k], $MachinePrecision]), $MachinePrecision] * N[(2.0 + N[(N[(k / t), $MachinePrecision] * N[(k / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 5.5e-263], N[(2.0 * N[(N[(N[(N[Power[l, 2.0], $MachinePrecision] / N[Power[k, 2.0], $MachinePrecision]), $MachinePrecision] * N[(N[Cos[k], $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision] / N[Power[k, 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 3.3e-26], N[(2.0 / N[Power[N[(N[(N[(k * N[Sin[k], $MachinePrecision]), $MachinePrecision] / l), $MachinePrecision] * N[Sqrt[N[(t / N[Cos[k], $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision], N[(2.0 / N[Power[N[(N[(N[(k * N[Sqrt[2.0], $MachinePrecision]), $MachinePrecision] / l), $MachinePrecision] * N[Sqrt[N[Power[t, 3.0], $MachinePrecision]], $MachinePrecision]), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -7 \cdot 10^{-82}:\\
\;\;\;\;\frac{\left(2 \cdot {t}^{-3}\right) \cdot \left(\ell \cdot \ell\right)}{\left(\sin k \cdot \tan k\right) \cdot \left(2 + \frac{k}{t} \cdot \frac{k}{t}\right)}\\
\mathbf{elif}\;t \leq 5.5 \cdot 10^{-263}:\\
\;\;\;\;2 \cdot \frac{\frac{{\ell}^{2}}{{k}^{2}} \cdot \frac{\cos k}{t}}{{k}^{2}}\\
\mathbf{elif}\;t \leq 3.3 \cdot 10^{-26}:\\
\;\;\;\;\frac{2}{{\left(\frac{k \cdot \sin k}{\ell} \cdot \sqrt{\frac{t}{\cos k}}\right)}^{2}}\\
\mathbf{else}:\\
\;\;\;\;\frac{2}{{\left(\frac{k \cdot \sqrt{2}}{\ell} \cdot \sqrt{{t}^{3}}\right)}^{2}}\\
\end{array}
\end{array}
if t < -6.9999999999999997e-82Initial program 63.8%
Simplified54.4%
div-inv54.4%
pow-flip54.5%
metadata-eval54.5%
Applied egg-rr54.5%
unpow254.5%
Applied egg-rr54.5%
if -6.9999999999999997e-82 < t < 5.49999999999999971e-263Initial program 27.5%
Simplified25.4%
div-inv25.4%
pow-flip25.4%
metadata-eval25.4%
Applied egg-rr25.4%
Taylor expanded in t around 0 66.6%
times-frac68.2%
associate-/r*68.2%
associate-*r/73.5%
Simplified73.5%
Taylor expanded in k around 0 64.7%
if 5.49999999999999971e-263 < t < 3.2999999999999998e-26Initial program 46.9%
add-sqr-sqrt45.9%
pow245.9%
Applied egg-rr64.0%
Taylor expanded in k around inf 70.5%
if 3.2999999999999998e-26 < t Initial program 65.1%
add-sqr-sqrt49.9%
pow249.9%
Applied egg-rr62.7%
Taylor expanded in k around 0 67.9%
Final simplification63.9%
(FPCore (t l k)
:precision binary64
(if (<= t -3.8e-82)
(/
(* (* 2.0 (pow t -3.0)) (* l l))
(* (* (sin k) (tan k)) (+ 2.0 (* (/ k t) (/ k t)))))
(if (<= t 3.4e-54)
(* 2.0 (/ (/ (pow l 2.0) (* t (pow k 2.0))) (pow (sin k) 2.0)))
(/ 2.0 (pow (* (/ (* k (sqrt 2.0)) l) (sqrt (pow t 3.0))) 2.0)))))
double code(double t, double l, double k) {
double tmp;
if (t <= -3.8e-82) {
tmp = ((2.0 * pow(t, -3.0)) * (l * l)) / ((sin(k) * tan(k)) * (2.0 + ((k / t) * (k / t))));
} else if (t <= 3.4e-54) {
tmp = 2.0 * ((pow(l, 2.0) / (t * pow(k, 2.0))) / pow(sin(k), 2.0));
} else {
tmp = 2.0 / pow((((k * sqrt(2.0)) / l) * sqrt(pow(t, 3.0))), 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 (t <= (-3.8d-82)) then
tmp = ((2.0d0 * (t ** (-3.0d0))) * (l * l)) / ((sin(k) * tan(k)) * (2.0d0 + ((k / t) * (k / t))))
else if (t <= 3.4d-54) then
tmp = 2.0d0 * (((l ** 2.0d0) / (t * (k ** 2.0d0))) / (sin(k) ** 2.0d0))
else
tmp = 2.0d0 / ((((k * sqrt(2.0d0)) / l) * sqrt((t ** 3.0d0))) ** 2.0d0)
end if
code = tmp
end function
public static double code(double t, double l, double k) {
double tmp;
if (t <= -3.8e-82) {
tmp = ((2.0 * Math.pow(t, -3.0)) * (l * l)) / ((Math.sin(k) * Math.tan(k)) * (2.0 + ((k / t) * (k / t))));
} else if (t <= 3.4e-54) {
tmp = 2.0 * ((Math.pow(l, 2.0) / (t * Math.pow(k, 2.0))) / Math.pow(Math.sin(k), 2.0));
} else {
tmp = 2.0 / Math.pow((((k * Math.sqrt(2.0)) / l) * Math.sqrt(Math.pow(t, 3.0))), 2.0);
}
return tmp;
}
def code(t, l, k): tmp = 0 if t <= -3.8e-82: tmp = ((2.0 * math.pow(t, -3.0)) * (l * l)) / ((math.sin(k) * math.tan(k)) * (2.0 + ((k / t) * (k / t)))) elif t <= 3.4e-54: tmp = 2.0 * ((math.pow(l, 2.0) / (t * math.pow(k, 2.0))) / math.pow(math.sin(k), 2.0)) else: tmp = 2.0 / math.pow((((k * math.sqrt(2.0)) / l) * math.sqrt(math.pow(t, 3.0))), 2.0) return tmp
function code(t, l, k) tmp = 0.0 if (t <= -3.8e-82) tmp = Float64(Float64(Float64(2.0 * (t ^ -3.0)) * Float64(l * l)) / Float64(Float64(sin(k) * tan(k)) * Float64(2.0 + Float64(Float64(k / t) * Float64(k / t))))); elseif (t <= 3.4e-54) tmp = Float64(2.0 * Float64(Float64((l ^ 2.0) / Float64(t * (k ^ 2.0))) / (sin(k) ^ 2.0))); else tmp = Float64(2.0 / (Float64(Float64(Float64(k * sqrt(2.0)) / l) * sqrt((t ^ 3.0))) ^ 2.0)); end return tmp end
function tmp_2 = code(t, l, k) tmp = 0.0; if (t <= -3.8e-82) tmp = ((2.0 * (t ^ -3.0)) * (l * l)) / ((sin(k) * tan(k)) * (2.0 + ((k / t) * (k / t)))); elseif (t <= 3.4e-54) tmp = 2.0 * (((l ^ 2.0) / (t * (k ^ 2.0))) / (sin(k) ^ 2.0)); else tmp = 2.0 / ((((k * sqrt(2.0)) / l) * sqrt((t ^ 3.0))) ^ 2.0); end tmp_2 = tmp; end
code[t_, l_, k_] := If[LessEqual[t, -3.8e-82], N[(N[(N[(2.0 * N[Power[t, -3.0], $MachinePrecision]), $MachinePrecision] * N[(l * l), $MachinePrecision]), $MachinePrecision] / N[(N[(N[Sin[k], $MachinePrecision] * N[Tan[k], $MachinePrecision]), $MachinePrecision] * N[(2.0 + N[(N[(k / t), $MachinePrecision] * N[(k / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 3.4e-54], N[(2.0 * N[(N[(N[Power[l, 2.0], $MachinePrecision] / N[(t * N[Power[k, 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[Power[N[Sin[k], $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(2.0 / N[Power[N[(N[(N[(k * N[Sqrt[2.0], $MachinePrecision]), $MachinePrecision] / l), $MachinePrecision] * N[Sqrt[N[Power[t, 3.0], $MachinePrecision]], $MachinePrecision]), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -3.8 \cdot 10^{-82}:\\
\;\;\;\;\frac{\left(2 \cdot {t}^{-3}\right) \cdot \left(\ell \cdot \ell\right)}{\left(\sin k \cdot \tan k\right) \cdot \left(2 + \frac{k}{t} \cdot \frac{k}{t}\right)}\\
\mathbf{elif}\;t \leq 3.4 \cdot 10^{-54}:\\
\;\;\;\;2 \cdot \frac{\frac{{\ell}^{2}}{t \cdot {k}^{2}}}{{\sin k}^{2}}\\
\mathbf{else}:\\
\;\;\;\;\frac{2}{{\left(\frac{k \cdot \sqrt{2}}{\ell} \cdot \sqrt{{t}^{3}}\right)}^{2}}\\
\end{array}
\end{array}
if t < -3.8000000000000002e-82Initial program 63.8%
Simplified54.4%
div-inv54.4%
pow-flip54.5%
metadata-eval54.5%
Applied egg-rr54.5%
unpow254.5%
Applied egg-rr54.5%
if -3.8000000000000002e-82 < t < 3.39999999999999987e-54Initial program 37.5%
Simplified36.0%
div-inv36.0%
pow-flip36.0%
metadata-eval36.0%
Applied egg-rr36.0%
Taylor expanded in t around 0 72.4%
times-frac73.1%
associate-/r*73.1%
associate-*r/75.7%
Simplified75.7%
Taylor expanded in k around 0 57.2%
if 3.39999999999999987e-54 < t Initial program 64.3%
add-sqr-sqrt50.0%
pow250.0%
Applied egg-rr63.5%
Taylor expanded in k around 0 67.1%
Final simplification59.1%
(FPCore (t l k)
:precision binary64
(if (<= t -8e-79)
(/
(* (* 2.0 (pow t -3.0)) (* l l))
(* (* (sin k) (tan k)) (+ 2.0 (* (/ k t) (/ k t)))))
(if (<= t 3.4e-54)
(* 2.0 (/ (/ (pow l 2.0) (pow k 4.0)) t))
(/ 2.0 (pow (* (/ (* k (sqrt 2.0)) l) (sqrt (pow t 3.0))) 2.0)))))
double code(double t, double l, double k) {
double tmp;
if (t <= -8e-79) {
tmp = ((2.0 * pow(t, -3.0)) * (l * l)) / ((sin(k) * tan(k)) * (2.0 + ((k / t) * (k / t))));
} else if (t <= 3.4e-54) {
tmp = 2.0 * ((pow(l, 2.0) / pow(k, 4.0)) / t);
} else {
tmp = 2.0 / pow((((k * sqrt(2.0)) / l) * sqrt(pow(t, 3.0))), 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 (t <= (-8d-79)) then
tmp = ((2.0d0 * (t ** (-3.0d0))) * (l * l)) / ((sin(k) * tan(k)) * (2.0d0 + ((k / t) * (k / t))))
else if (t <= 3.4d-54) then
tmp = 2.0d0 * (((l ** 2.0d0) / (k ** 4.0d0)) / t)
else
tmp = 2.0d0 / ((((k * sqrt(2.0d0)) / l) * sqrt((t ** 3.0d0))) ** 2.0d0)
end if
code = tmp
end function
public static double code(double t, double l, double k) {
double tmp;
if (t <= -8e-79) {
tmp = ((2.0 * Math.pow(t, -3.0)) * (l * l)) / ((Math.sin(k) * Math.tan(k)) * (2.0 + ((k / t) * (k / t))));
} else if (t <= 3.4e-54) {
tmp = 2.0 * ((Math.pow(l, 2.0) / Math.pow(k, 4.0)) / t);
} else {
tmp = 2.0 / Math.pow((((k * Math.sqrt(2.0)) / l) * Math.sqrt(Math.pow(t, 3.0))), 2.0);
}
return tmp;
}
def code(t, l, k): tmp = 0 if t <= -8e-79: tmp = ((2.0 * math.pow(t, -3.0)) * (l * l)) / ((math.sin(k) * math.tan(k)) * (2.0 + ((k / t) * (k / t)))) elif t <= 3.4e-54: tmp = 2.0 * ((math.pow(l, 2.0) / math.pow(k, 4.0)) / t) else: tmp = 2.0 / math.pow((((k * math.sqrt(2.0)) / l) * math.sqrt(math.pow(t, 3.0))), 2.0) return tmp
function code(t, l, k) tmp = 0.0 if (t <= -8e-79) tmp = Float64(Float64(Float64(2.0 * (t ^ -3.0)) * Float64(l * l)) / Float64(Float64(sin(k) * tan(k)) * Float64(2.0 + Float64(Float64(k / t) * Float64(k / t))))); elseif (t <= 3.4e-54) tmp = Float64(2.0 * Float64(Float64((l ^ 2.0) / (k ^ 4.0)) / t)); else tmp = Float64(2.0 / (Float64(Float64(Float64(k * sqrt(2.0)) / l) * sqrt((t ^ 3.0))) ^ 2.0)); end return tmp end
function tmp_2 = code(t, l, k) tmp = 0.0; if (t <= -8e-79) tmp = ((2.0 * (t ^ -3.0)) * (l * l)) / ((sin(k) * tan(k)) * (2.0 + ((k / t) * (k / t)))); elseif (t <= 3.4e-54) tmp = 2.0 * (((l ^ 2.0) / (k ^ 4.0)) / t); else tmp = 2.0 / ((((k * sqrt(2.0)) / l) * sqrt((t ^ 3.0))) ^ 2.0); end tmp_2 = tmp; end
code[t_, l_, k_] := If[LessEqual[t, -8e-79], N[(N[(N[(2.0 * N[Power[t, -3.0], $MachinePrecision]), $MachinePrecision] * N[(l * l), $MachinePrecision]), $MachinePrecision] / N[(N[(N[Sin[k], $MachinePrecision] * N[Tan[k], $MachinePrecision]), $MachinePrecision] * N[(2.0 + N[(N[(k / t), $MachinePrecision] * N[(k / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 3.4e-54], N[(2.0 * N[(N[(N[Power[l, 2.0], $MachinePrecision] / N[Power[k, 4.0], $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision], N[(2.0 / N[Power[N[(N[(N[(k * N[Sqrt[2.0], $MachinePrecision]), $MachinePrecision] / l), $MachinePrecision] * N[Sqrt[N[Power[t, 3.0], $MachinePrecision]], $MachinePrecision]), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -8 \cdot 10^{-79}:\\
\;\;\;\;\frac{\left(2 \cdot {t}^{-3}\right) \cdot \left(\ell \cdot \ell\right)}{\left(\sin k \cdot \tan k\right) \cdot \left(2 + \frac{k}{t} \cdot \frac{k}{t}\right)}\\
\mathbf{elif}\;t \leq 3.4 \cdot 10^{-54}:\\
\;\;\;\;2 \cdot \frac{\frac{{\ell}^{2}}{{k}^{4}}}{t}\\
\mathbf{else}:\\
\;\;\;\;\frac{2}{{\left(\frac{k \cdot \sqrt{2}}{\ell} \cdot \sqrt{{t}^{3}}\right)}^{2}}\\
\end{array}
\end{array}
if t < -8e-79Initial program 63.8%
Simplified54.4%
div-inv54.4%
pow-flip54.5%
metadata-eval54.5%
Applied egg-rr54.5%
unpow254.5%
Applied egg-rr54.5%
if -8e-79 < t < 3.39999999999999987e-54Initial program 37.5%
Simplified36.0%
div-inv36.0%
pow-flip36.0%
metadata-eval36.0%
Applied egg-rr36.0%
Taylor expanded in t around 0 72.4%
times-frac73.1%
associate-/r*73.1%
associate-*r/75.7%
Simplified75.7%
Taylor expanded in k around 0 52.9%
associate-/r*56.9%
Simplified56.9%
if 3.39999999999999987e-54 < t Initial program 64.3%
add-sqr-sqrt50.0%
pow250.0%
Applied egg-rr63.5%
Taylor expanded in k around 0 67.1%
Final simplification59.0%
(FPCore (t l k)
:precision binary64
(if (or (<= t -7.2e-80) (not (<= t 1.65e-99)))
(/
(* (* 2.0 (pow t -3.0)) (* l l))
(* (* (sin k) (tan k)) (+ 2.0 (* (/ k t) (/ k t)))))
(* 2.0 (/ (/ (pow l 2.0) (pow k 4.0)) t))))
double code(double t, double l, double k) {
double tmp;
if ((t <= -7.2e-80) || !(t <= 1.65e-99)) {
tmp = ((2.0 * pow(t, -3.0)) * (l * l)) / ((sin(k) * tan(k)) * (2.0 + ((k / t) * (k / t))));
} else {
tmp = 2.0 * ((pow(l, 2.0) / pow(k, 4.0)) / t);
}
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 <= (-7.2d-80)) .or. (.not. (t <= 1.65d-99))) then
tmp = ((2.0d0 * (t ** (-3.0d0))) * (l * l)) / ((sin(k) * tan(k)) * (2.0d0 + ((k / t) * (k / t))))
else
tmp = 2.0d0 * (((l ** 2.0d0) / (k ** 4.0d0)) / t)
end if
code = tmp
end function
public static double code(double t, double l, double k) {
double tmp;
if ((t <= -7.2e-80) || !(t <= 1.65e-99)) {
tmp = ((2.0 * Math.pow(t, -3.0)) * (l * l)) / ((Math.sin(k) * Math.tan(k)) * (2.0 + ((k / t) * (k / t))));
} else {
tmp = 2.0 * ((Math.pow(l, 2.0) / Math.pow(k, 4.0)) / t);
}
return tmp;
}
def code(t, l, k): tmp = 0 if (t <= -7.2e-80) or not (t <= 1.65e-99): tmp = ((2.0 * math.pow(t, -3.0)) * (l * l)) / ((math.sin(k) * math.tan(k)) * (2.0 + ((k / t) * (k / t)))) else: tmp = 2.0 * ((math.pow(l, 2.0) / math.pow(k, 4.0)) / t) return tmp
function code(t, l, k) tmp = 0.0 if ((t <= -7.2e-80) || !(t <= 1.65e-99)) tmp = Float64(Float64(Float64(2.0 * (t ^ -3.0)) * Float64(l * l)) / Float64(Float64(sin(k) * tan(k)) * Float64(2.0 + Float64(Float64(k / t) * Float64(k / t))))); else tmp = Float64(2.0 * Float64(Float64((l ^ 2.0) / (k ^ 4.0)) / t)); end return tmp end
function tmp_2 = code(t, l, k) tmp = 0.0; if ((t <= -7.2e-80) || ~((t <= 1.65e-99))) tmp = ((2.0 * (t ^ -3.0)) * (l * l)) / ((sin(k) * tan(k)) * (2.0 + ((k / t) * (k / t)))); else tmp = 2.0 * (((l ^ 2.0) / (k ^ 4.0)) / t); end tmp_2 = tmp; end
code[t_, l_, k_] := If[Or[LessEqual[t, -7.2e-80], N[Not[LessEqual[t, 1.65e-99]], $MachinePrecision]], N[(N[(N[(2.0 * N[Power[t, -3.0], $MachinePrecision]), $MachinePrecision] * N[(l * l), $MachinePrecision]), $MachinePrecision] / N[(N[(N[Sin[k], $MachinePrecision] * N[Tan[k], $MachinePrecision]), $MachinePrecision] * N[(2.0 + N[(N[(k / t), $MachinePrecision] * N[(k / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(2.0 * N[(N[(N[Power[l, 2.0], $MachinePrecision] / N[Power[k, 4.0], $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -7.2 \cdot 10^{-80} \lor \neg \left(t \leq 1.65 \cdot 10^{-99}\right):\\
\;\;\;\;\frac{\left(2 \cdot {t}^{-3}\right) \cdot \left(\ell \cdot \ell\right)}{\left(\sin k \cdot \tan k\right) \cdot \left(2 + \frac{k}{t} \cdot \frac{k}{t}\right)}\\
\mathbf{else}:\\
\;\;\;\;2 \cdot \frac{\frac{{\ell}^{2}}{{k}^{4}}}{t}\\
\end{array}
\end{array}
if t < -7.2e-80 or 1.64999999999999993e-99 < t Initial program 64.4%
Simplified57.7%
div-inv57.7%
pow-flip57.8%
metadata-eval57.8%
Applied egg-rr57.8%
unpow257.8%
Applied egg-rr57.8%
if -7.2e-80 < t < 1.64999999999999993e-99Initial program 34.2%
Simplified32.6%
div-inv32.6%
pow-flip32.6%
metadata-eval32.6%
Applied egg-rr32.6%
Taylor expanded in t around 0 72.6%
times-frac73.5%
associate-/r*73.5%
associate-*r/76.3%
Simplified76.3%
Taylor expanded in k around 0 54.0%
associate-/r*58.4%
Simplified58.4%
Final simplification58.0%
(FPCore (t l k) :precision binary64 (if (<= l 2.2e-41) (* 2.0 (/ (/ (pow l 2.0) (pow k 4.0)) t)) (/ (* (/ 2.0 (pow t 3.0)) (* l l)) (/ (* 2.0 (pow k 2.0)) (cos k)))))
double code(double t, double l, double k) {
double tmp;
if (l <= 2.2e-41) {
tmp = 2.0 * ((pow(l, 2.0) / pow(k, 4.0)) / t);
} else {
tmp = ((2.0 / pow(t, 3.0)) * (l * l)) / ((2.0 * pow(k, 2.0)) / cos(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 (l <= 2.2d-41) then
tmp = 2.0d0 * (((l ** 2.0d0) / (k ** 4.0d0)) / t)
else
tmp = ((2.0d0 / (t ** 3.0d0)) * (l * l)) / ((2.0d0 * (k ** 2.0d0)) / cos(k))
end if
code = tmp
end function
public static double code(double t, double l, double k) {
double tmp;
if (l <= 2.2e-41) {
tmp = 2.0 * ((Math.pow(l, 2.0) / Math.pow(k, 4.0)) / t);
} else {
tmp = ((2.0 / Math.pow(t, 3.0)) * (l * l)) / ((2.0 * Math.pow(k, 2.0)) / Math.cos(k));
}
return tmp;
}
def code(t, l, k): tmp = 0 if l <= 2.2e-41: tmp = 2.0 * ((math.pow(l, 2.0) / math.pow(k, 4.0)) / t) else: tmp = ((2.0 / math.pow(t, 3.0)) * (l * l)) / ((2.0 * math.pow(k, 2.0)) / math.cos(k)) return tmp
function code(t, l, k) tmp = 0.0 if (l <= 2.2e-41) tmp = Float64(2.0 * Float64(Float64((l ^ 2.0) / (k ^ 4.0)) / t)); else tmp = Float64(Float64(Float64(2.0 / (t ^ 3.0)) * Float64(l * l)) / Float64(Float64(2.0 * (k ^ 2.0)) / cos(k))); end return tmp end
function tmp_2 = code(t, l, k) tmp = 0.0; if (l <= 2.2e-41) tmp = 2.0 * (((l ^ 2.0) / (k ^ 4.0)) / t); else tmp = ((2.0 / (t ^ 3.0)) * (l * l)) / ((2.0 * (k ^ 2.0)) / cos(k)); end tmp_2 = tmp; end
code[t_, l_, k_] := If[LessEqual[l, 2.2e-41], N[(2.0 * N[(N[(N[Power[l, 2.0], $MachinePrecision] / N[Power[k, 4.0], $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision], N[(N[(N[(2.0 / N[Power[t, 3.0], $MachinePrecision]), $MachinePrecision] * N[(l * l), $MachinePrecision]), $MachinePrecision] / N[(N[(2.0 * N[Power[k, 2.0], $MachinePrecision]), $MachinePrecision] / N[Cos[k], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;\ell \leq 2.2 \cdot 10^{-41}:\\
\;\;\;\;2 \cdot \frac{\frac{{\ell}^{2}}{{k}^{4}}}{t}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{2}{{t}^{3}} \cdot \left(\ell \cdot \ell\right)}{\frac{2 \cdot {k}^{2}}{\cos k}}\\
\end{array}
\end{array}
if l < 2.2e-41Initial program 57.7%
Simplified51.3%
div-inv51.3%
pow-flip51.3%
metadata-eval51.3%
Applied egg-rr51.3%
Taylor expanded in t around 0 64.2%
times-frac63.8%
associate-/r*63.8%
associate-*r/65.2%
Simplified65.2%
Taylor expanded in k around 0 54.9%
associate-/r*56.8%
Simplified56.8%
if 2.2e-41 < l Initial program 39.1%
Simplified38.9%
Taylor expanded in t around inf 42.6%
associate-*r/42.6%
Simplified42.6%
Taylor expanded in k around 0 42.3%
Final simplification52.9%
(FPCore (t l k)
:precision binary64
(if (<= k 1.45e-162)
(* 2.0 (/ (* (pow l 2.0) (pow k -4.0)) t))
(if (<= k 14500.0)
(/ (pow l 2.0) (* (pow k 2.0) (pow t 3.0)))
(* 2.0 (/ (* (pow l 2.0) (cos k)) (* t (pow k 4.0)))))))
double code(double t, double l, double k) {
double tmp;
if (k <= 1.45e-162) {
tmp = 2.0 * ((pow(l, 2.0) * pow(k, -4.0)) / t);
} else if (k <= 14500.0) {
tmp = pow(l, 2.0) / (pow(k, 2.0) * pow(t, 3.0));
} else {
tmp = 2.0 * ((pow(l, 2.0) * cos(k)) / (t * pow(k, 4.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 <= 1.45d-162) then
tmp = 2.0d0 * (((l ** 2.0d0) * (k ** (-4.0d0))) / t)
else if (k <= 14500.0d0) then
tmp = (l ** 2.0d0) / ((k ** 2.0d0) * (t ** 3.0d0))
else
tmp = 2.0d0 * (((l ** 2.0d0) * cos(k)) / (t * (k ** 4.0d0)))
end if
code = tmp
end function
public static double code(double t, double l, double k) {
double tmp;
if (k <= 1.45e-162) {
tmp = 2.0 * ((Math.pow(l, 2.0) * Math.pow(k, -4.0)) / t);
} else if (k <= 14500.0) {
tmp = Math.pow(l, 2.0) / (Math.pow(k, 2.0) * Math.pow(t, 3.0));
} else {
tmp = 2.0 * ((Math.pow(l, 2.0) * Math.cos(k)) / (t * Math.pow(k, 4.0)));
}
return tmp;
}
def code(t, l, k): tmp = 0 if k <= 1.45e-162: tmp = 2.0 * ((math.pow(l, 2.0) * math.pow(k, -4.0)) / t) elif k <= 14500.0: tmp = math.pow(l, 2.0) / (math.pow(k, 2.0) * math.pow(t, 3.0)) else: tmp = 2.0 * ((math.pow(l, 2.0) * math.cos(k)) / (t * math.pow(k, 4.0))) return tmp
function code(t, l, k) tmp = 0.0 if (k <= 1.45e-162) tmp = Float64(2.0 * Float64(Float64((l ^ 2.0) * (k ^ -4.0)) / t)); elseif (k <= 14500.0) tmp = Float64((l ^ 2.0) / Float64((k ^ 2.0) * (t ^ 3.0))); else tmp = Float64(2.0 * Float64(Float64((l ^ 2.0) * cos(k)) / Float64(t * (k ^ 4.0)))); end return tmp end
function tmp_2 = code(t, l, k) tmp = 0.0; if (k <= 1.45e-162) tmp = 2.0 * (((l ^ 2.0) * (k ^ -4.0)) / t); elseif (k <= 14500.0) tmp = (l ^ 2.0) / ((k ^ 2.0) * (t ^ 3.0)); else tmp = 2.0 * (((l ^ 2.0) * cos(k)) / (t * (k ^ 4.0))); end tmp_2 = tmp; end
code[t_, l_, k_] := If[LessEqual[k, 1.45e-162], N[(2.0 * N[(N[(N[Power[l, 2.0], $MachinePrecision] * N[Power[k, -4.0], $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, 14500.0], N[(N[Power[l, 2.0], $MachinePrecision] / N[(N[Power[k, 2.0], $MachinePrecision] * N[Power[t, 3.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(2.0 * N[(N[(N[Power[l, 2.0], $MachinePrecision] * N[Cos[k], $MachinePrecision]), $MachinePrecision] / N[(t * N[Power[k, 4.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;k \leq 1.45 \cdot 10^{-162}:\\
\;\;\;\;2 \cdot \frac{{\ell}^{2} \cdot {k}^{-4}}{t}\\
\mathbf{elif}\;k \leq 14500:\\
\;\;\;\;\frac{{\ell}^{2}}{{k}^{2} \cdot {t}^{3}}\\
\mathbf{else}:\\
\;\;\;\;2 \cdot \frac{{\ell}^{2} \cdot \cos k}{t \cdot {k}^{4}}\\
\end{array}
\end{array}
if k < 1.4500000000000001e-162Initial program 58.1%
Simplified50.7%
div-inv50.7%
pow-flip50.7%
metadata-eval50.7%
Applied egg-rr50.7%
Taylor expanded in t around 0 56.7%
times-frac58.0%
associate-/r*57.9%
associate-*r/59.7%
Simplified59.7%
Taylor expanded in k around 0 48.7%
associate-/r*51.5%
Simplified51.5%
expm1-log1p-u51.4%
expm1-udef51.3%
div-inv50.9%
pow-flip50.9%
metadata-eval50.9%
Applied egg-rr50.9%
expm1-def51.0%
expm1-log1p51.0%
Simplified51.0%
if 1.4500000000000001e-162 < k < 14500Initial program 63.0%
Simplified65.5%
Taylor expanded in k around 0 79.9%
if 14500 < k Initial program 35.8%
Simplified34.3%
Taylor expanded in t around 0 64.0%
Taylor expanded in k around 0 47.4%
Final simplification53.3%
(FPCore (t l k) :precision binary64 (if (<= t 7e-54) (* 2.0 (/ (/ (pow l 2.0) (pow k 4.0)) t)) (/ (pow l 2.0) (* (pow k 2.0) (pow t 3.0)))))
double code(double t, double l, double k) {
double tmp;
if (t <= 7e-54) {
tmp = 2.0 * ((pow(l, 2.0) / pow(k, 4.0)) / t);
} else {
tmp = pow(l, 2.0) / (pow(k, 2.0) * pow(t, 3.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 (t <= 7d-54) then
tmp = 2.0d0 * (((l ** 2.0d0) / (k ** 4.0d0)) / t)
else
tmp = (l ** 2.0d0) / ((k ** 2.0d0) * (t ** 3.0d0))
end if
code = tmp
end function
public static double code(double t, double l, double k) {
double tmp;
if (t <= 7e-54) {
tmp = 2.0 * ((Math.pow(l, 2.0) / Math.pow(k, 4.0)) / t);
} else {
tmp = Math.pow(l, 2.0) / (Math.pow(k, 2.0) * Math.pow(t, 3.0));
}
return tmp;
}
def code(t, l, k): tmp = 0 if t <= 7e-54: tmp = 2.0 * ((math.pow(l, 2.0) / math.pow(k, 4.0)) / t) else: tmp = math.pow(l, 2.0) / (math.pow(k, 2.0) * math.pow(t, 3.0)) return tmp
function code(t, l, k) tmp = 0.0 if (t <= 7e-54) tmp = Float64(2.0 * Float64(Float64((l ^ 2.0) / (k ^ 4.0)) / t)); else tmp = Float64((l ^ 2.0) / Float64((k ^ 2.0) * (t ^ 3.0))); end return tmp end
function tmp_2 = code(t, l, k) tmp = 0.0; if (t <= 7e-54) tmp = 2.0 * (((l ^ 2.0) / (k ^ 4.0)) / t); else tmp = (l ^ 2.0) / ((k ^ 2.0) * (t ^ 3.0)); end tmp_2 = tmp; end
code[t_, l_, k_] := If[LessEqual[t, 7e-54], N[(2.0 * N[(N[(N[Power[l, 2.0], $MachinePrecision] / N[Power[k, 4.0], $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision], N[(N[Power[l, 2.0], $MachinePrecision] / N[(N[Power[k, 2.0], $MachinePrecision] * N[Power[t, 3.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq 7 \cdot 10^{-54}:\\
\;\;\;\;2 \cdot \frac{\frac{{\ell}^{2}}{{k}^{4}}}{t}\\
\mathbf{else}:\\
\;\;\;\;\frac{{\ell}^{2}}{{k}^{2} \cdot {t}^{3}}\\
\end{array}
\end{array}
if t < 6.99999999999999964e-54Initial program 48.3%
Simplified43.6%
div-inv43.6%
pow-flip43.6%
metadata-eval43.6%
Applied egg-rr43.6%
Taylor expanded in t around 0 63.1%
times-frac63.7%
associate-/r*63.7%
associate-*r/65.2%
Simplified65.2%
Taylor expanded in k around 0 49.5%
associate-/r*52.0%
Simplified52.0%
if 6.99999999999999964e-54 < t Initial program 64.3%
Simplified59.6%
Taylor expanded in k around 0 57.3%
Final simplification53.4%
(FPCore (t l k) :precision binary64 (if (<= t 3.8e-52) (* 2.0 (/ (/ (pow l 2.0) (pow k 4.0)) t)) (/ (* (/ 2.0 (pow t 3.0)) (* l l)) (* 2.0 (pow k 2.0)))))
double code(double t, double l, double k) {
double tmp;
if (t <= 3.8e-52) {
tmp = 2.0 * ((pow(l, 2.0) / pow(k, 4.0)) / t);
} else {
tmp = ((2.0 / pow(t, 3.0)) * (l * l)) / (2.0 * pow(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 (t <= 3.8d-52) then
tmp = 2.0d0 * (((l ** 2.0d0) / (k ** 4.0d0)) / t)
else
tmp = ((2.0d0 / (t ** 3.0d0)) * (l * l)) / (2.0d0 * (k ** 2.0d0))
end if
code = tmp
end function
public static double code(double t, double l, double k) {
double tmp;
if (t <= 3.8e-52) {
tmp = 2.0 * ((Math.pow(l, 2.0) / Math.pow(k, 4.0)) / t);
} else {
tmp = ((2.0 / Math.pow(t, 3.0)) * (l * l)) / (2.0 * Math.pow(k, 2.0));
}
return tmp;
}
def code(t, l, k): tmp = 0 if t <= 3.8e-52: tmp = 2.0 * ((math.pow(l, 2.0) / math.pow(k, 4.0)) / t) else: tmp = ((2.0 / math.pow(t, 3.0)) * (l * l)) / (2.0 * math.pow(k, 2.0)) return tmp
function code(t, l, k) tmp = 0.0 if (t <= 3.8e-52) tmp = Float64(2.0 * Float64(Float64((l ^ 2.0) / (k ^ 4.0)) / t)); else tmp = Float64(Float64(Float64(2.0 / (t ^ 3.0)) * Float64(l * l)) / Float64(2.0 * (k ^ 2.0))); end return tmp end
function tmp_2 = code(t, l, k) tmp = 0.0; if (t <= 3.8e-52) tmp = 2.0 * (((l ^ 2.0) / (k ^ 4.0)) / t); else tmp = ((2.0 / (t ^ 3.0)) * (l * l)) / (2.0 * (k ^ 2.0)); end tmp_2 = tmp; end
code[t_, l_, k_] := If[LessEqual[t, 3.8e-52], N[(2.0 * N[(N[(N[Power[l, 2.0], $MachinePrecision] / N[Power[k, 4.0], $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision], N[(N[(N[(2.0 / N[Power[t, 3.0], $MachinePrecision]), $MachinePrecision] * N[(l * l), $MachinePrecision]), $MachinePrecision] / N[(2.0 * N[Power[k, 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq 3.8 \cdot 10^{-52}:\\
\;\;\;\;2 \cdot \frac{\frac{{\ell}^{2}}{{k}^{4}}}{t}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{2}{{t}^{3}} \cdot \left(\ell \cdot \ell\right)}{2 \cdot {k}^{2}}\\
\end{array}
\end{array}
if t < 3.8000000000000003e-52Initial program 48.3%
Simplified43.6%
div-inv43.6%
pow-flip43.6%
metadata-eval43.6%
Applied egg-rr43.6%
Taylor expanded in t around 0 63.1%
times-frac63.7%
associate-/r*63.7%
associate-*r/65.2%
Simplified65.2%
Taylor expanded in k around 0 49.5%
associate-/r*52.0%
Simplified52.0%
if 3.8000000000000003e-52 < t Initial program 64.3%
Simplified59.6%
Taylor expanded in k around 0 55.7%
Final simplification53.0%
(FPCore (t l k) :precision binary64 (* 2.0 (* (pow k -4.0) (/ (pow l 2.0) t))))
double code(double t, double l, double k) {
return 2.0 * (pow(k, -4.0) * (pow(l, 2.0) / t));
}
real(8) function code(t, l, k)
real(8), intent (in) :: t
real(8), intent (in) :: l
real(8), intent (in) :: k
code = 2.0d0 * ((k ** (-4.0d0)) * ((l ** 2.0d0) / t))
end function
public static double code(double t, double l, double k) {
return 2.0 * (Math.pow(k, -4.0) * (Math.pow(l, 2.0) / t));
}
def code(t, l, k): return 2.0 * (math.pow(k, -4.0) * (math.pow(l, 2.0) / t))
function code(t, l, k) return Float64(2.0 * Float64((k ^ -4.0) * Float64((l ^ 2.0) / t))) end
function tmp = code(t, l, k) tmp = 2.0 * ((k ^ -4.0) * ((l ^ 2.0) / t)); end
code[t_, l_, k_] := N[(2.0 * N[(N[Power[k, -4.0], $MachinePrecision] * N[(N[Power[l, 2.0], $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
2 \cdot \left({k}^{-4} \cdot \frac{{\ell}^{2}}{t}\right)
\end{array}
Initial program 52.7%
Simplified48.0%
div-inv48.0%
pow-flip48.0%
metadata-eval48.0%
Applied egg-rr48.0%
Taylor expanded in t around 0 59.8%
times-frac59.5%
associate-/r*59.5%
associate-*r/60.6%
Simplified60.6%
Taylor expanded in k around 0 49.2%
associate-/r*50.5%
Simplified50.5%
div-inv50.5%
div-inv50.3%
pow-flip50.3%
metadata-eval50.3%
Applied egg-rr50.3%
associate-*r/50.3%
*-rgt-identity50.3%
associate-/l*49.2%
associate-/r/50.2%
Simplified50.2%
Final simplification50.2%
(FPCore (t l k) :precision binary64 (* 2.0 (/ (* (pow l 2.0) (pow k -4.0)) t)))
double code(double t, double l, double k) {
return 2.0 * ((pow(l, 2.0) * pow(k, -4.0)) / 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 * (((l ** 2.0d0) * (k ** (-4.0d0))) / t)
end function
public static double code(double t, double l, double k) {
return 2.0 * ((Math.pow(l, 2.0) * Math.pow(k, -4.0)) / t);
}
def code(t, l, k): return 2.0 * ((math.pow(l, 2.0) * math.pow(k, -4.0)) / t)
function code(t, l, k) return Float64(2.0 * Float64(Float64((l ^ 2.0) * (k ^ -4.0)) / t)) end
function tmp = code(t, l, k) tmp = 2.0 * (((l ^ 2.0) * (k ^ -4.0)) / t); end
code[t_, l_, k_] := N[(2.0 * N[(N[(N[Power[l, 2.0], $MachinePrecision] * N[Power[k, -4.0], $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
2 \cdot \frac{{\ell}^{2} \cdot {k}^{-4}}{t}
\end{array}
Initial program 52.7%
Simplified48.0%
div-inv48.0%
pow-flip48.0%
metadata-eval48.0%
Applied egg-rr48.0%
Taylor expanded in t around 0 59.8%
times-frac59.5%
associate-/r*59.5%
associate-*r/60.6%
Simplified60.6%
Taylor expanded in k around 0 49.2%
associate-/r*50.5%
Simplified50.5%
expm1-log1p-u50.5%
expm1-udef50.0%
div-inv49.8%
pow-flip49.8%
metadata-eval49.8%
Applied egg-rr49.8%
expm1-def50.2%
expm1-log1p50.3%
Simplified50.3%
Final simplification50.3%
(FPCore (t l k) :precision binary64 (* 2.0 (/ (/ (pow l 2.0) t) (pow k 4.0))))
double code(double t, double l, double k) {
return 2.0 * ((pow(l, 2.0) / t) / 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 ** 2.0d0) / t) / (k ** 4.0d0))
end function
public static double code(double t, double l, double k) {
return 2.0 * ((Math.pow(l, 2.0) / t) / Math.pow(k, 4.0));
}
def code(t, l, k): return 2.0 * ((math.pow(l, 2.0) / t) / math.pow(k, 4.0))
function code(t, l, k) return Float64(2.0 * Float64(Float64((l ^ 2.0) / t) / (k ^ 4.0))) end
function tmp = code(t, l, k) tmp = 2.0 * (((l ^ 2.0) / t) / (k ^ 4.0)); end
code[t_, l_, k_] := N[(2.0 * N[(N[(N[Power[l, 2.0], $MachinePrecision] / t), $MachinePrecision] / N[Power[k, 4.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
2 \cdot \frac{\frac{{\ell}^{2}}{t}}{{k}^{4}}
\end{array}
Initial program 52.7%
Simplified48.0%
Taylor expanded in t around 0 59.8%
Taylor expanded in k around 0 49.2%
add-sqr-sqrt39.3%
pow239.3%
*-commutative39.3%
Applied egg-rr39.3%
unpow239.3%
add-sqr-sqrt49.2%
associate-/r*50.4%
Applied egg-rr50.4%
Final simplification50.4%
(FPCore (t l k) :precision binary64 (* 2.0 (/ (/ (pow l 2.0) (pow k 4.0)) t)))
double code(double t, double l, double k) {
return 2.0 * ((pow(l, 2.0) / pow(k, 4.0)) / 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 * (((l ** 2.0d0) / (k ** 4.0d0)) / t)
end function
public static double code(double t, double l, double k) {
return 2.0 * ((Math.pow(l, 2.0) / Math.pow(k, 4.0)) / t);
}
def code(t, l, k): return 2.0 * ((math.pow(l, 2.0) / math.pow(k, 4.0)) / t)
function code(t, l, k) return Float64(2.0 * Float64(Float64((l ^ 2.0) / (k ^ 4.0)) / t)) end
function tmp = code(t, l, k) tmp = 2.0 * (((l ^ 2.0) / (k ^ 4.0)) / t); end
code[t_, l_, k_] := N[(2.0 * N[(N[(N[Power[l, 2.0], $MachinePrecision] / N[Power[k, 4.0], $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
2 \cdot \frac{\frac{{\ell}^{2}}{{k}^{4}}}{t}
\end{array}
Initial program 52.7%
Simplified48.0%
div-inv48.0%
pow-flip48.0%
metadata-eval48.0%
Applied egg-rr48.0%
Taylor expanded in t around 0 59.8%
times-frac59.5%
associate-/r*59.5%
associate-*r/60.6%
Simplified60.6%
Taylor expanded in k around 0 49.2%
associate-/r*50.5%
Simplified50.5%
Final simplification50.5%
herbie shell --seed 2023321
(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))))