
(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 25 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
(/
2.0
(pow
(*
(* (/ t (pow (cbrt l) 2.0)) (cbrt (sin k)))
(cbrt (* (tan k) (+ 2.0 (pow (/ k t) 2.0)))))
3.0))))
(if (<= t -1.95e-140)
t_1
(if (<= t 3.85e-267)
(*
2.0
(* (/ (pow l 2.0) (* t (pow k 2.0))) (/ (cos k) (pow (sin k) 2.0))))
(if (<= t 7.5e-178)
(/ 2.0 (pow (* (/ (* k (sin k)) l) (sqrt (/ t (cos k)))) 2.0))
t_1)))))
double code(double t, double l, double k) {
double t_1 = 2.0 / pow((((t / pow(cbrt(l), 2.0)) * cbrt(sin(k))) * cbrt((tan(k) * (2.0 + pow((k / t), 2.0))))), 3.0);
double tmp;
if (t <= -1.95e-140) {
tmp = t_1;
} else if (t <= 3.85e-267) {
tmp = 2.0 * ((pow(l, 2.0) / (t * pow(k, 2.0))) * (cos(k) / pow(sin(k), 2.0)));
} else if (t <= 7.5e-178) {
tmp = 2.0 / pow((((k * sin(k)) / l) * sqrt((t / cos(k)))), 2.0);
} else {
tmp = t_1;
}
return tmp;
}
public static double code(double t, double l, double k) {
double t_1 = 2.0 / Math.pow((((t / Math.pow(Math.cbrt(l), 2.0)) * Math.cbrt(Math.sin(k))) * Math.cbrt((Math.tan(k) * (2.0 + Math.pow((k / t), 2.0))))), 3.0);
double tmp;
if (t <= -1.95e-140) {
tmp = t_1;
} else if (t <= 3.85e-267) {
tmp = 2.0 * ((Math.pow(l, 2.0) / (t * Math.pow(k, 2.0))) * (Math.cos(k) / Math.pow(Math.sin(k), 2.0)));
} else if (t <= 7.5e-178) {
tmp = 2.0 / Math.pow((((k * Math.sin(k)) / l) * Math.sqrt((t / Math.cos(k)))), 2.0);
} else {
tmp = t_1;
}
return tmp;
}
function code(t, l, k) t_1 = Float64(2.0 / (Float64(Float64(Float64(t / (cbrt(l) ^ 2.0)) * cbrt(sin(k))) * cbrt(Float64(tan(k) * Float64(2.0 + (Float64(k / t) ^ 2.0))))) ^ 3.0)) tmp = 0.0 if (t <= -1.95e-140) tmp = t_1; elseif (t <= 3.85e-267) tmp = Float64(2.0 * Float64(Float64((l ^ 2.0) / Float64(t * (k ^ 2.0))) * Float64(cos(k) / (sin(k) ^ 2.0)))); elseif (t <= 7.5e-178) tmp = Float64(2.0 / (Float64(Float64(Float64(k * sin(k)) / l) * sqrt(Float64(t / cos(k)))) ^ 2.0)); else tmp = t_1; end return tmp end
code[t_, l_, k_] := Block[{t$95$1 = N[(2.0 / N[Power[N[(N[(N[(t / N[Power[N[Power[l, 1/3], $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision] * N[Power[N[Sin[k], $MachinePrecision], 1/3], $MachinePrecision]), $MachinePrecision] * N[Power[N[(N[Tan[k], $MachinePrecision] * N[(2.0 + N[Power[N[(k / t), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1/3], $MachinePrecision]), $MachinePrecision], 3.0], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -1.95e-140], t$95$1, If[LessEqual[t, 3.85e-267], N[(2.0 * N[(N[(N[Power[l, 2.0], $MachinePrecision] / N[(t * N[Power[k, 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(N[Cos[k], $MachinePrecision] / N[Power[N[Sin[k], $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 7.5e-178], 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], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{2}{{\left(\left(\frac{t}{{\left(\sqrt[3]{\ell}\right)}^{2}} \cdot \sqrt[3]{\sin k}\right) \cdot \sqrt[3]{\tan k \cdot \left(2 + {\left(\frac{k}{t}\right)}^{2}\right)}\right)}^{3}}\\
\mathbf{if}\;t \leq -1.95 \cdot 10^{-140}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 3.85 \cdot 10^{-267}:\\
\;\;\;\;2 \cdot \left(\frac{{\ell}^{2}}{t \cdot {k}^{2}} \cdot \frac{\cos k}{{\sin k}^{2}}\right)\\
\mathbf{elif}\;t \leq 7.5 \cdot 10^{-178}:\\
\;\;\;\;\frac{2}{{\left(\frac{k \cdot \sin k}{\ell} \cdot \sqrt{\frac{t}{\cos k}}\right)}^{2}}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if t < -1.9500000000000001e-140 or 7.50000000000000019e-178 < t Initial program 65.5%
associate-/r*68.9%
add-cube-cbrt68.8%
*-un-lft-identity68.8%
times-frac68.8%
pow268.8%
cbrt-div68.8%
rem-cbrt-cube68.8%
cbrt-div68.8%
rem-cbrt-cube79.9%
Applied egg-rr79.9%
add-cube-cbrt79.9%
pow379.9%
cbrt-prod79.9%
frac-times76.6%
unpow276.6%
*-un-lft-identity76.6%
cbrt-div78.4%
add-cbrt-cube82.6%
Applied egg-rr82.6%
add-cube-cbrt82.5%
pow382.5%
Applied egg-rr88.4%
associate-+r+88.4%
metadata-eval88.4%
Simplified88.4%
if -1.9500000000000001e-140 < t < 3.85e-267Initial program 30.0%
Simplified30.0%
Taylor expanded in t around 0 81.3%
associate-*r*81.2%
times-frac81.4%
Simplified81.4%
if 3.85e-267 < t < 7.50000000000000019e-178Initial program 23.5%
add-sqr-sqrt23.5%
pow223.5%
Applied egg-rr62.8%
Taylor expanded in k around inf 93.8%
Final simplification87.6%
(FPCore (t l k)
:precision binary64
(let* ((t_1 (pow (/ k t) 2.0)))
(if (<=
(* (+ 1.0 (+ t_1 1.0)) (* (tan k) (* (sin k) (/ (pow t 3.0) (* l l)))))
INFINITY)
(* (/ (* l (/ 2.0 (pow t 3.0))) (* (sin k) (+ 2.0 t_1))) (/ l (tan k)))
(/ 2.0 (pow (* (/ (* k (sin k)) l) (sqrt (/ t (cos k)))) 2.0)))))
double code(double t, double l, double k) {
double t_1 = pow((k / t), 2.0);
double tmp;
if (((1.0 + (t_1 + 1.0)) * (tan(k) * (sin(k) * (pow(t, 3.0) / (l * l))))) <= ((double) INFINITY)) {
tmp = ((l * (2.0 / pow(t, 3.0))) / (sin(k) * (2.0 + t_1))) * (l / tan(k));
} else {
tmp = 2.0 / pow((((k * sin(k)) / l) * sqrt((t / cos(k)))), 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 (((1.0 + (t_1 + 1.0)) * (Math.tan(k) * (Math.sin(k) * (Math.pow(t, 3.0) / (l * l))))) <= Double.POSITIVE_INFINITY) {
tmp = ((l * (2.0 / Math.pow(t, 3.0))) / (Math.sin(k) * (2.0 + t_1))) * (l / Math.tan(k));
} else {
tmp = 2.0 / Math.pow((((k * Math.sin(k)) / l) * Math.sqrt((t / Math.cos(k)))), 2.0);
}
return tmp;
}
def code(t, l, k): t_1 = math.pow((k / t), 2.0) tmp = 0 if ((1.0 + (t_1 + 1.0)) * (math.tan(k) * (math.sin(k) * (math.pow(t, 3.0) / (l * l))))) <= math.inf: tmp = ((l * (2.0 / math.pow(t, 3.0))) / (math.sin(k) * (2.0 + t_1))) * (l / math.tan(k)) else: tmp = 2.0 / math.pow((((k * math.sin(k)) / l) * math.sqrt((t / math.cos(k)))), 2.0) return tmp
function code(t, l, k) t_1 = Float64(k / t) ^ 2.0 tmp = 0.0 if (Float64(Float64(1.0 + Float64(t_1 + 1.0)) * Float64(tan(k) * Float64(sin(k) * Float64((t ^ 3.0) / Float64(l * l))))) <= Inf) tmp = Float64(Float64(Float64(l * Float64(2.0 / (t ^ 3.0))) / Float64(sin(k) * Float64(2.0 + t_1))) * Float64(l / tan(k))); else tmp = Float64(2.0 / (Float64(Float64(Float64(k * sin(k)) / l) * sqrt(Float64(t / cos(k)))) ^ 2.0)); end return tmp end
function tmp_2 = code(t, l, k) t_1 = (k / t) ^ 2.0; tmp = 0.0; if (((1.0 + (t_1 + 1.0)) * (tan(k) * (sin(k) * ((t ^ 3.0) / (l * l))))) <= Inf) tmp = ((l * (2.0 / (t ^ 3.0))) / (sin(k) * (2.0 + t_1))) * (l / tan(k)); else tmp = 2.0 / ((((k * sin(k)) / l) * sqrt((t / cos(k)))) ^ 2.0); end tmp_2 = tmp; end
code[t_, l_, k_] := Block[{t$95$1 = N[Power[N[(k / t), $MachinePrecision], 2.0], $MachinePrecision]}, If[LessEqual[N[(N[(1.0 + N[(t$95$1 + 1.0), $MachinePrecision]), $MachinePrecision] * N[(N[Tan[k], $MachinePrecision] * N[(N[Sin[k], $MachinePrecision] * N[(N[Power[t, 3.0], $MachinePrecision] / N[(l * l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], Infinity], N[(N[(N[(l * N[(2.0 / N[Power[t, 3.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[Sin[k], $MachinePrecision] * N[(2.0 + t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(l / N[Tan[k], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 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]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := {\left(\frac{k}{t}\right)}^{2}\\
\mathbf{if}\;\left(1 + \left(t_1 + 1\right)\right) \cdot \left(\tan k \cdot \left(\sin k \cdot \frac{{t}^{3}}{\ell \cdot \ell}\right)\right) \leq \infty:\\
\;\;\;\;\frac{\ell \cdot \frac{2}{{t}^{3}}}{\sin k \cdot \left(2 + t_1\right)} \cdot \frac{\ell}{\tan k}\\
\mathbf{else}:\\
\;\;\;\;\frac{2}{{\left(\frac{k \cdot \sin k}{\ell} \cdot \sqrt{\frac{t}{\cos k}}\right)}^{2}}\\
\end{array}
\end{array}
if (*.f64 (*.f64 (*.f64 (/.f64 (pow.f64 t 3) (*.f64 l l)) (sin.f64 k)) (tan.f64 k)) (+.f64 (+.f64 1 (pow.f64 (/.f64 k t) 2)) 1)) < +inf.0Initial program 86.1%
Simplified79.9%
associate-*r*81.7%
associate-*r*81.7%
times-frac90.7%
Applied egg-rr90.7%
if +inf.0 < (*.f64 (*.f64 (*.f64 (/.f64 (pow.f64 t 3) (*.f64 l l)) (sin.f64 k)) (tan.f64 k)) (+.f64 (+.f64 1 (pow.f64 (/.f64 k t) 2)) 1)) Initial program 0.0%
add-sqr-sqrt0.0%
pow20.0%
Applied egg-rr23.0%
Taylor expanded in k around inf 44.1%
Final simplification75.1%
(FPCore (t l k)
:precision binary64
(let* ((t_1
(/
2.0
(*
(* (tan k) (pow (* (cbrt (sin k)) (/ (/ t (cbrt l)) (cbrt l))) 3.0))
(+ 1.0 (+ (pow (/ k t) 2.0) 1.0))))))
(if (<= t -4.3e-66)
t_1
(if (<= t 4e-267)
(*
2.0
(/ (* (pow l 2.0) (cos k)) (* (pow k 2.0) (* t (pow (sin k) 2.0)))))
(if (<= t 2.05e-86)
(/ 2.0 (pow (* (/ (* k (sin k)) l) (sqrt (/ t (cos k)))) 2.0))
t_1)))))
double code(double t, double l, double k) {
double t_1 = 2.0 / ((tan(k) * pow((cbrt(sin(k)) * ((t / cbrt(l)) / cbrt(l))), 3.0)) * (1.0 + (pow((k / t), 2.0) + 1.0)));
double tmp;
if (t <= -4.3e-66) {
tmp = t_1;
} else if (t <= 4e-267) {
tmp = 2.0 * ((pow(l, 2.0) * cos(k)) / (pow(k, 2.0) * (t * pow(sin(k), 2.0))));
} else if (t <= 2.05e-86) {
tmp = 2.0 / pow((((k * sin(k)) / l) * sqrt((t / cos(k)))), 2.0);
} else {
tmp = t_1;
}
return tmp;
}
public static double code(double t, double l, double k) {
double t_1 = 2.0 / ((Math.tan(k) * Math.pow((Math.cbrt(Math.sin(k)) * ((t / Math.cbrt(l)) / Math.cbrt(l))), 3.0)) * (1.0 + (Math.pow((k / t), 2.0) + 1.0)));
double tmp;
if (t <= -4.3e-66) {
tmp = t_1;
} else if (t <= 4e-267) {
tmp = 2.0 * ((Math.pow(l, 2.0) * Math.cos(k)) / (Math.pow(k, 2.0) * (t * Math.pow(Math.sin(k), 2.0))));
} else if (t <= 2.05e-86) {
tmp = 2.0 / Math.pow((((k * Math.sin(k)) / l) * Math.sqrt((t / Math.cos(k)))), 2.0);
} else {
tmp = t_1;
}
return tmp;
}
function code(t, l, k) t_1 = Float64(2.0 / Float64(Float64(tan(k) * (Float64(cbrt(sin(k)) * Float64(Float64(t / cbrt(l)) / cbrt(l))) ^ 3.0)) * Float64(1.0 + Float64((Float64(k / t) ^ 2.0) + 1.0)))) tmp = 0.0 if (t <= -4.3e-66) tmp = t_1; elseif (t <= 4e-267) tmp = Float64(2.0 * Float64(Float64((l ^ 2.0) * cos(k)) / Float64((k ^ 2.0) * Float64(t * (sin(k) ^ 2.0))))); elseif (t <= 2.05e-86) tmp = Float64(2.0 / (Float64(Float64(Float64(k * sin(k)) / l) * sqrt(Float64(t / cos(k)))) ^ 2.0)); else tmp = t_1; end return tmp end
code[t_, l_, k_] := Block[{t$95$1 = N[(2.0 / N[(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] * N[(1.0 + N[(N[Power[N[(k / t), $MachinePrecision], 2.0], $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -4.3e-66], t$95$1, If[LessEqual[t, 4e-267], 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[Power[N[Sin[k], $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2.05e-86], 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], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{2}{\left(\tan k \cdot {\left(\sqrt[3]{\sin k} \cdot \frac{\frac{t}{\sqrt[3]{\ell}}}{\sqrt[3]{\ell}}\right)}^{3}\right) \cdot \left(1 + \left({\left(\frac{k}{t}\right)}^{2} + 1\right)\right)}\\
\mathbf{if}\;t \leq -4.3 \cdot 10^{-66}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 4 \cdot 10^{-267}:\\
\;\;\;\;2 \cdot \frac{{\ell}^{2} \cdot \cos k}{{k}^{2} \cdot \left(t \cdot {\sin k}^{2}\right)}\\
\mathbf{elif}\;t \leq 2.05 \cdot 10^{-86}:\\
\;\;\;\;\frac{2}{{\left(\frac{k \cdot \sin k}{\ell} \cdot \sqrt{\frac{t}{\cos k}}\right)}^{2}}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if t < -4.30000000000000013e-66 or 2.0499999999999999e-86 < t Initial program 68.8%
associate-/r*71.7%
add-cube-cbrt71.7%
*-un-lft-identity71.7%
times-frac71.7%
pow271.7%
cbrt-div71.7%
rem-cbrt-cube71.7%
cbrt-div71.6%
rem-cbrt-cube82.8%
Applied egg-rr82.8%
add-cube-cbrt82.7%
pow382.7%
cbrt-prod82.7%
frac-times78.6%
unpow278.6%
*-un-lft-identity78.6%
cbrt-div80.8%
add-cbrt-cube86.0%
Applied egg-rr86.0%
if -4.30000000000000013e-66 < t < 3.9999999999999999e-267Initial program 37.0%
Simplified35.9%
Taylor expanded in t around 0 81.5%
if 3.9999999999999999e-267 < t < 2.0499999999999999e-86Initial program 38.1%
add-sqr-sqrt33.4%
pow233.4%
Applied egg-rr56.0%
Taylor expanded in k around inf 76.6%
Final simplification83.6%
(FPCore (t l k)
:precision binary64
(let* ((t_1
(/
2.0
(*
(* (tan k) (+ 2.0 (pow (/ k t) 2.0)))
(pow (* (/ t (pow (cbrt l) 2.0)) (cbrt (sin k))) 3.0)))))
(if (<= t -2.2e-61)
t_1
(if (<= t 1.45e-267)
(*
2.0
(/ (* (pow l 2.0) (cos k)) (* (pow k 2.0) (* t (pow (sin k) 2.0)))))
(if (<= t 8e-88)
(/ 2.0 (pow (* (/ (* k (sin k)) l) (sqrt (/ t (cos k)))) 2.0))
t_1)))))
double code(double t, double l, double k) {
double t_1 = 2.0 / ((tan(k) * (2.0 + pow((k / t), 2.0))) * pow(((t / pow(cbrt(l), 2.0)) * cbrt(sin(k))), 3.0));
double tmp;
if (t <= -2.2e-61) {
tmp = t_1;
} else if (t <= 1.45e-267) {
tmp = 2.0 * ((pow(l, 2.0) * cos(k)) / (pow(k, 2.0) * (t * pow(sin(k), 2.0))));
} else if (t <= 8e-88) {
tmp = 2.0 / pow((((k * sin(k)) / l) * sqrt((t / cos(k)))), 2.0);
} else {
tmp = t_1;
}
return tmp;
}
public static double code(double t, double l, double k) {
double t_1 = 2.0 / ((Math.tan(k) * (2.0 + Math.pow((k / t), 2.0))) * Math.pow(((t / Math.pow(Math.cbrt(l), 2.0)) * Math.cbrt(Math.sin(k))), 3.0));
double tmp;
if (t <= -2.2e-61) {
tmp = t_1;
} else if (t <= 1.45e-267) {
tmp = 2.0 * ((Math.pow(l, 2.0) * Math.cos(k)) / (Math.pow(k, 2.0) * (t * Math.pow(Math.sin(k), 2.0))));
} else if (t <= 8e-88) {
tmp = 2.0 / Math.pow((((k * Math.sin(k)) / l) * Math.sqrt((t / Math.cos(k)))), 2.0);
} else {
tmp = t_1;
}
return tmp;
}
function code(t, l, k) t_1 = Float64(2.0 / Float64(Float64(tan(k) * Float64(2.0 + (Float64(k / t) ^ 2.0))) * (Float64(Float64(t / (cbrt(l) ^ 2.0)) * cbrt(sin(k))) ^ 3.0))) tmp = 0.0 if (t <= -2.2e-61) tmp = t_1; elseif (t <= 1.45e-267) tmp = Float64(2.0 * Float64(Float64((l ^ 2.0) * cos(k)) / Float64((k ^ 2.0) * Float64(t * (sin(k) ^ 2.0))))); elseif (t <= 8e-88) tmp = Float64(2.0 / (Float64(Float64(Float64(k * sin(k)) / l) * sqrt(Float64(t / cos(k)))) ^ 2.0)); else tmp = t_1; end return tmp end
code[t_, l_, k_] := Block[{t$95$1 = N[(2.0 / N[(N[(N[Tan[k], $MachinePrecision] * N[(2.0 + N[Power[N[(k / t), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[Power[N[(N[(t / N[Power[N[Power[l, 1/3], $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision] * N[Power[N[Sin[k], $MachinePrecision], 1/3], $MachinePrecision]), $MachinePrecision], 3.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -2.2e-61], t$95$1, If[LessEqual[t, 1.45e-267], 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[Power[N[Sin[k], $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 8e-88], 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], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{2}{\left(\tan k \cdot \left(2 + {\left(\frac{k}{t}\right)}^{2}\right)\right) \cdot {\left(\frac{t}{{\left(\sqrt[3]{\ell}\right)}^{2}} \cdot \sqrt[3]{\sin k}\right)}^{3}}\\
\mathbf{if}\;t \leq -2.2 \cdot 10^{-61}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 1.45 \cdot 10^{-267}:\\
\;\;\;\;2 \cdot \frac{{\ell}^{2} \cdot \cos k}{{k}^{2} \cdot \left(t \cdot {\sin k}^{2}\right)}\\
\mathbf{elif}\;t \leq 8 \cdot 10^{-88}:\\
\;\;\;\;\frac{2}{{\left(\frac{k \cdot \sin k}{\ell} \cdot \sqrt{\frac{t}{\cos k}}\right)}^{2}}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if t < -2.20000000000000009e-61 or 7.99999999999999947e-88 < t Initial program 68.8%
associate-/r*71.7%
add-cube-cbrt71.7%
*-un-lft-identity71.7%
times-frac71.7%
pow271.7%
cbrt-div71.7%
rem-cbrt-cube71.7%
cbrt-div71.6%
rem-cbrt-cube82.8%
Applied egg-rr82.8%
add-cube-cbrt82.7%
pow382.7%
cbrt-prod82.7%
frac-times78.6%
unpow278.6%
*-un-lft-identity78.6%
cbrt-div80.8%
add-cbrt-cube86.0%
Applied egg-rr86.0%
add-cube-cbrt86.0%
pow386.0%
Applied egg-rr92.3%
*-commutative92.3%
cube-prod86.0%
rem-cube-cbrt86.0%
associate-+r+86.0%
metadata-eval86.0%
Simplified86.0%
if -2.20000000000000009e-61 < t < 1.45000000000000011e-267Initial program 37.0%
Simplified35.9%
Taylor expanded in t around 0 81.5%
if 1.45000000000000011e-267 < t < 7.99999999999999947e-88Initial program 38.1%
add-sqr-sqrt33.4%
pow233.4%
Applied egg-rr56.0%
Taylor expanded in k around inf 76.6%
Final simplification83.5%
(FPCore (t l k)
:precision binary64
(if (<= k 4.2e+24)
(/
2.0
(*
(* (tan k) (+ 2.0 (pow (/ k t) 2.0)))
(* (sin k) (pow (/ t (pow (cbrt l) 2.0)) 3.0))))
(*
2.0
(* (/ (pow l 2.0) (* t (pow k 2.0))) (/ (cos k) (pow (sin k) 2.0))))))
double code(double t, double l, double k) {
double tmp;
if (k <= 4.2e+24) {
tmp = 2.0 / ((tan(k) * (2.0 + pow((k / t), 2.0))) * (sin(k) * pow((t / pow(cbrt(l), 2.0)), 3.0)));
} else {
tmp = 2.0 * ((pow(l, 2.0) / (t * pow(k, 2.0))) * (cos(k) / pow(sin(k), 2.0)));
}
return tmp;
}
public static double code(double t, double l, double k) {
double tmp;
if (k <= 4.2e+24) {
tmp = 2.0 / ((Math.tan(k) * (2.0 + Math.pow((k / t), 2.0))) * (Math.sin(k) * Math.pow((t / Math.pow(Math.cbrt(l), 2.0)), 3.0)));
} else {
tmp = 2.0 * ((Math.pow(l, 2.0) / (t * Math.pow(k, 2.0))) * (Math.cos(k) / Math.pow(Math.sin(k), 2.0)));
}
return tmp;
}
function code(t, l, k) tmp = 0.0 if (k <= 4.2e+24) tmp = Float64(2.0 / Float64(Float64(tan(k) * Float64(2.0 + (Float64(k / t) ^ 2.0))) * Float64(sin(k) * (Float64(t / (cbrt(l) ^ 2.0)) ^ 3.0)))); else tmp = Float64(2.0 * Float64(Float64((l ^ 2.0) / Float64(t * (k ^ 2.0))) * Float64(cos(k) / (sin(k) ^ 2.0)))); end return tmp end
code[t_, l_, k_] := If[LessEqual[k, 4.2e+24], N[(2.0 / N[(N[(N[Tan[k], $MachinePrecision] * N[(2.0 + N[Power[N[(k / t), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $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]), $MachinePrecision], N[(2.0 * N[(N[(N[Power[l, 2.0], $MachinePrecision] / N[(t * N[Power[k, 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(N[Cos[k], $MachinePrecision] / N[Power[N[Sin[k], $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;k \leq 4.2 \cdot 10^{+24}:\\
\;\;\;\;\frac{2}{\left(\tan k \cdot \left(2 + {\left(\frac{k}{t}\right)}^{2}\right)\right) \cdot \left(\sin k \cdot {\left(\frac{t}{{\left(\sqrt[3]{\ell}\right)}^{2}}\right)}^{3}\right)}\\
\mathbf{else}:\\
\;\;\;\;2 \cdot \left(\frac{{\ell}^{2}}{t \cdot {k}^{2}} \cdot \frac{\cos k}{{\sin k}^{2}}\right)\\
\end{array}
\end{array}
if k < 4.2000000000000003e24Initial program 59.0%
associate-/r*64.4%
add-cube-cbrt64.4%
*-un-lft-identity64.4%
times-frac64.4%
pow264.4%
cbrt-div64.4%
rem-cbrt-cube64.4%
cbrt-div64.4%
rem-cbrt-cube74.6%
Applied egg-rr74.6%
add-cube-cbrt74.5%
pow374.5%
cbrt-prod74.5%
frac-times70.2%
unpow270.2%
*-un-lft-identity70.2%
cbrt-div72.0%
add-cbrt-cube77.2%
Applied egg-rr77.2%
distribute-lft-in77.2%
*-commutative77.2%
unpow-prod-down74.4%
pow374.4%
add-cube-cbrt74.4%
associate-/l/74.4%
pow274.4%
Applied egg-rr74.5%
distribute-lft-out74.5%
+-commutative74.5%
associate-*r*75.4%
associate-+r+75.4%
metadata-eval75.4%
Simplified75.4%
if 4.2000000000000003e24 < k Initial program 50.8%
Simplified50.7%
Taylor expanded in t around 0 73.2%
associate-*r*73.1%
times-frac73.2%
Simplified73.2%
Final simplification74.9%
(FPCore (t l k)
:precision binary64
(let* ((t_1 (/ t (cbrt l)))
(t_2
(/
2.0
(*
(* (tan k) (* (sin k) (* (pow t_1 2.0) (/ t_1 l))))
(+ 1.0 (+ 1.0 (* (/ k t) (/ k t))))))))
(if (<= t -4e-56)
t_2
(if (<= t 2.25e-267)
(*
2.0
(/ (* (pow l 2.0) (cos k)) (* (pow k 2.0) (* t (pow (sin k) 2.0)))))
(if (<= t 5.5e-85)
(/ 2.0 (pow (* (/ (* k (sin k)) l) (sqrt (/ t (cos k)))) 2.0))
t_2)))))
double code(double t, double l, double k) {
double t_1 = t / cbrt(l);
double t_2 = 2.0 / ((tan(k) * (sin(k) * (pow(t_1, 2.0) * (t_1 / l)))) * (1.0 + (1.0 + ((k / t) * (k / t)))));
double tmp;
if (t <= -4e-56) {
tmp = t_2;
} else if (t <= 2.25e-267) {
tmp = 2.0 * ((pow(l, 2.0) * cos(k)) / (pow(k, 2.0) * (t * pow(sin(k), 2.0))));
} else if (t <= 5.5e-85) {
tmp = 2.0 / pow((((k * sin(k)) / l) * sqrt((t / cos(k)))), 2.0);
} else {
tmp = t_2;
}
return tmp;
}
public static double code(double t, double l, double k) {
double t_1 = t / Math.cbrt(l);
double t_2 = 2.0 / ((Math.tan(k) * (Math.sin(k) * (Math.pow(t_1, 2.0) * (t_1 / l)))) * (1.0 + (1.0 + ((k / t) * (k / t)))));
double tmp;
if (t <= -4e-56) {
tmp = t_2;
} else if (t <= 2.25e-267) {
tmp = 2.0 * ((Math.pow(l, 2.0) * Math.cos(k)) / (Math.pow(k, 2.0) * (t * Math.pow(Math.sin(k), 2.0))));
} else if (t <= 5.5e-85) {
tmp = 2.0 / Math.pow((((k * Math.sin(k)) / l) * Math.sqrt((t / Math.cos(k)))), 2.0);
} else {
tmp = t_2;
}
return tmp;
}
function code(t, l, k) t_1 = Float64(t / cbrt(l)) t_2 = Float64(2.0 / Float64(Float64(tan(k) * Float64(sin(k) * Float64((t_1 ^ 2.0) * Float64(t_1 / l)))) * Float64(1.0 + Float64(1.0 + Float64(Float64(k / t) * Float64(k / t)))))) tmp = 0.0 if (t <= -4e-56) tmp = t_2; elseif (t <= 2.25e-267) tmp = Float64(2.0 * Float64(Float64((l ^ 2.0) * cos(k)) / Float64((k ^ 2.0) * Float64(t * (sin(k) ^ 2.0))))); elseif (t <= 5.5e-85) tmp = Float64(2.0 / (Float64(Float64(Float64(k * sin(k)) / l) * sqrt(Float64(t / cos(k)))) ^ 2.0)); else tmp = t_2; end return tmp end
code[t_, l_, k_] := Block[{t$95$1 = N[(t / N[Power[l, 1/3], $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(2.0 / N[(N[(N[Tan[k], $MachinePrecision] * N[(N[Sin[k], $MachinePrecision] * N[(N[Power[t$95$1, 2.0], $MachinePrecision] * N[(t$95$1 / l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(1.0 + N[(1.0 + N[(N[(k / t), $MachinePrecision] * N[(k / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -4e-56], t$95$2, If[LessEqual[t, 2.25e-267], 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[Power[N[Sin[k], $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 5.5e-85], 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], t$95$2]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{t}{\sqrt[3]{\ell}}\\
t_2 := \frac{2}{\left(\tan k \cdot \left(\sin k \cdot \left({t_1}^{2} \cdot \frac{t_1}{\ell}\right)\right)\right) \cdot \left(1 + \left(1 + \frac{k}{t} \cdot \frac{k}{t}\right)\right)}\\
\mathbf{if}\;t \leq -4 \cdot 10^{-56}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t \leq 2.25 \cdot 10^{-267}:\\
\;\;\;\;2 \cdot \frac{{\ell}^{2} \cdot \cos k}{{k}^{2} \cdot \left(t \cdot {\sin k}^{2}\right)}\\
\mathbf{elif}\;t \leq 5.5 \cdot 10^{-85}:\\
\;\;\;\;\frac{2}{{\left(\frac{k \cdot \sin k}{\ell} \cdot \sqrt{\frac{t}{\cos k}}\right)}^{2}}\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if t < -4.0000000000000002e-56 or 5.4999999999999997e-85 < t Initial program 68.8%
associate-/r*71.7%
add-cube-cbrt71.7%
*-un-lft-identity71.7%
times-frac71.7%
pow271.7%
cbrt-div71.7%
rem-cbrt-cube71.7%
cbrt-div71.6%
rem-cbrt-cube82.8%
Applied egg-rr82.8%
unpow282.8%
Applied egg-rr82.8%
if -4.0000000000000002e-56 < t < 2.25e-267Initial program 37.0%
Simplified35.9%
Taylor expanded in t around 0 81.5%
if 2.25e-267 < t < 5.4999999999999997e-85Initial program 38.1%
add-sqr-sqrt33.4%
pow233.4%
Applied egg-rr56.0%
Taylor expanded in k around inf 76.6%
Final simplification81.5%
(FPCore (t l k)
:precision binary64
(if (<= t -4.6e-60)
(/
(/ 2.0 (* (tan k) (* (sin k) (/ (pow (/ t (cbrt l)) 3.0) l))))
(+ 2.0 (pow (/ k t) 2.0)))
(if (<= t 3.2e-268)
(*
2.0
(/ (* (pow l 2.0) (cos k)) (* (pow k 2.0) (* t (pow (sin k) 2.0)))))
(if (<= t 1.7e-83)
(/ 2.0 (pow (* (/ (* k (sin k)) l) (sqrt (/ t (cos k)))) 2.0))
(/ 2.0 (pow (/ (* (* k (sqrt 2.0)) (pow t 1.5)) l) 2.0))))))
double code(double t, double l, double k) {
double tmp;
if (t <= -4.6e-60) {
tmp = (2.0 / (tan(k) * (sin(k) * (pow((t / cbrt(l)), 3.0) / l)))) / (2.0 + pow((k / t), 2.0));
} else if (t <= 3.2e-268) {
tmp = 2.0 * ((pow(l, 2.0) * cos(k)) / (pow(k, 2.0) * (t * pow(sin(k), 2.0))));
} else if (t <= 1.7e-83) {
tmp = 2.0 / pow((((k * sin(k)) / l) * sqrt((t / cos(k)))), 2.0);
} else {
tmp = 2.0 / pow((((k * sqrt(2.0)) * pow(t, 1.5)) / l), 2.0);
}
return tmp;
}
public static double code(double t, double l, double k) {
double tmp;
if (t <= -4.6e-60) {
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 if (t <= 3.2e-268) {
tmp = 2.0 * ((Math.pow(l, 2.0) * Math.cos(k)) / (Math.pow(k, 2.0) * (t * Math.pow(Math.sin(k), 2.0))));
} else if (t <= 1.7e-83) {
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)) * Math.pow(t, 1.5)) / l), 2.0);
}
return tmp;
}
function code(t, l, k) tmp = 0.0 if (t <= -4.6e-60) 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))); elseif (t <= 3.2e-268) tmp = Float64(2.0 * Float64(Float64((l ^ 2.0) * cos(k)) / Float64((k ^ 2.0) * Float64(t * (sin(k) ^ 2.0))))); elseif (t <= 1.7e-83) 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)) * (t ^ 1.5)) / l) ^ 2.0)); end return tmp end
code[t_, l_, k_] := If[LessEqual[t, -4.6e-60], 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], If[LessEqual[t, 3.2e-268], 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[Power[N[Sin[k], $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.7e-83], 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] * N[Power[t, 1.5], $MachinePrecision]), $MachinePrecision] / l), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -4.6 \cdot 10^{-60}:\\
\;\;\;\;\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{elif}\;t \leq 3.2 \cdot 10^{-268}:\\
\;\;\;\;2 \cdot \frac{{\ell}^{2} \cdot \cos k}{{k}^{2} \cdot \left(t \cdot {\sin k}^{2}\right)}\\
\mathbf{elif}\;t \leq 1.7 \cdot 10^{-83}:\\
\;\;\;\;\frac{2}{{\left(\frac{k \cdot \sin k}{\ell} \cdot \sqrt{\frac{t}{\cos k}}\right)}^{2}}\\
\mathbf{else}:\\
\;\;\;\;\frac{2}{{\left(\frac{\left(k \cdot \sqrt{2}\right) \cdot {t}^{1.5}}{\ell}\right)}^{2}}\\
\end{array}
\end{array}
if t < -4.6000000000000003e-60Initial program 74.9%
Simplified77.7%
add-cube-cbrt77.7%
pow377.7%
cbrt-div77.6%
rem-cbrt-cube82.5%
Applied egg-rr82.5%
if -4.6000000000000003e-60 < t < 3.1999999999999999e-268Initial program 37.0%
Simplified35.9%
Taylor expanded in t around 0 81.5%
if 3.1999999999999999e-268 < t < 1.6999999999999999e-83Initial program 38.1%
add-sqr-sqrt33.4%
pow233.4%
Applied egg-rr56.0%
Taylor expanded in k around inf 76.6%
if 1.6999999999999999e-83 < t Initial program 63.0%
add-sqr-sqrt39.7%
pow239.7%
Applied egg-rr53.3%
Taylor expanded in k around 0 68.4%
associate-*l/68.4%
sqrt-pow178.1%
metadata-eval78.1%
Applied egg-rr78.1%
Final simplification79.9%
(FPCore (t l k)
:precision binary64
(if (<= t -3.2e-63)
(*
(/ (* l (/ 2.0 (pow t 3.0))) (* (sin k) (+ 2.0 (pow (/ k t) 2.0))))
(/ l (tan k)))
(if (<= t 1.2e-267)
(*
2.0
(* (/ (pow l 2.0) (* t (pow k 2.0))) (/ (cos k) (pow (sin k) 2.0))))
(if (<= t 3.95e-84)
(/ 2.0 (pow (* (/ (* k (sin k)) l) (sqrt (/ t (cos k)))) 2.0))
(/ 2.0 (pow (/ (* (* k (sqrt 2.0)) (pow t 1.5)) l) 2.0))))))
double code(double t, double l, double k) {
double tmp;
if (t <= -3.2e-63) {
tmp = ((l * (2.0 / pow(t, 3.0))) / (sin(k) * (2.0 + pow((k / t), 2.0)))) * (l / tan(k));
} else if (t <= 1.2e-267) {
tmp = 2.0 * ((pow(l, 2.0) / (t * pow(k, 2.0))) * (cos(k) / pow(sin(k), 2.0)));
} else if (t <= 3.95e-84) {
tmp = 2.0 / pow((((k * sin(k)) / l) * sqrt((t / cos(k)))), 2.0);
} else {
tmp = 2.0 / pow((((k * sqrt(2.0)) * pow(t, 1.5)) / l), 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-63)) then
tmp = ((l * (2.0d0 / (t ** 3.0d0))) / (sin(k) * (2.0d0 + ((k / t) ** 2.0d0)))) * (l / tan(k))
else if (t <= 1.2d-267) then
tmp = 2.0d0 * (((l ** 2.0d0) / (t * (k ** 2.0d0))) * (cos(k) / (sin(k) ** 2.0d0)))
else if (t <= 3.95d-84) then
tmp = 2.0d0 / ((((k * sin(k)) / l) * sqrt((t / cos(k)))) ** 2.0d0)
else
tmp = 2.0d0 / ((((k * sqrt(2.0d0)) * (t ** 1.5d0)) / l) ** 2.0d0)
end if
code = tmp
end function
public static double code(double t, double l, double k) {
double tmp;
if (t <= -3.2e-63) {
tmp = ((l * (2.0 / Math.pow(t, 3.0))) / (Math.sin(k) * (2.0 + Math.pow((k / t), 2.0)))) * (l / Math.tan(k));
} else if (t <= 1.2e-267) {
tmp = 2.0 * ((Math.pow(l, 2.0) / (t * Math.pow(k, 2.0))) * (Math.cos(k) / Math.pow(Math.sin(k), 2.0)));
} else if (t <= 3.95e-84) {
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)) * Math.pow(t, 1.5)) / l), 2.0);
}
return tmp;
}
def code(t, l, k): tmp = 0 if t <= -3.2e-63: tmp = ((l * (2.0 / math.pow(t, 3.0))) / (math.sin(k) * (2.0 + math.pow((k / t), 2.0)))) * (l / math.tan(k)) elif t <= 1.2e-267: tmp = 2.0 * ((math.pow(l, 2.0) / (t * math.pow(k, 2.0))) * (math.cos(k) / math.pow(math.sin(k), 2.0))) elif t <= 3.95e-84: 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)) * math.pow(t, 1.5)) / l), 2.0) return tmp
function code(t, l, k) tmp = 0.0 if (t <= -3.2e-63) tmp = 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))); elseif (t <= 1.2e-267) tmp = Float64(2.0 * Float64(Float64((l ^ 2.0) / Float64(t * (k ^ 2.0))) * Float64(cos(k) / (sin(k) ^ 2.0)))); elseif (t <= 3.95e-84) 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)) * (t ^ 1.5)) / l) ^ 2.0)); end return tmp end
function tmp_2 = code(t, l, k) tmp = 0.0; if (t <= -3.2e-63) tmp = ((l * (2.0 / (t ^ 3.0))) / (sin(k) * (2.0 + ((k / t) ^ 2.0)))) * (l / tan(k)); elseif (t <= 1.2e-267) tmp = 2.0 * (((l ^ 2.0) / (t * (k ^ 2.0))) * (cos(k) / (sin(k) ^ 2.0))); elseif (t <= 3.95e-84) tmp = 2.0 / ((((k * sin(k)) / l) * sqrt((t / cos(k)))) ^ 2.0); else tmp = 2.0 / ((((k * sqrt(2.0)) * (t ^ 1.5)) / l) ^ 2.0); end tmp_2 = tmp; end
code[t_, l_, k_] := If[LessEqual[t, -3.2e-63], 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, 1.2e-267], N[(2.0 * N[(N[(N[Power[l, 2.0], $MachinePrecision] / N[(t * N[Power[k, 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(N[Cos[k], $MachinePrecision] / N[Power[N[Sin[k], $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 3.95e-84], 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] * N[Power[t, 1.5], $MachinePrecision]), $MachinePrecision] / l), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -3.2 \cdot 10^{-63}:\\
\;\;\;\;\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{elif}\;t \leq 1.2 \cdot 10^{-267}:\\
\;\;\;\;2 \cdot \left(\frac{{\ell}^{2}}{t \cdot {k}^{2}} \cdot \frac{\cos k}{{\sin k}^{2}}\right)\\
\mathbf{elif}\;t \leq 3.95 \cdot 10^{-84}:\\
\;\;\;\;\frac{2}{{\left(\frac{k \cdot \sin k}{\ell} \cdot \sqrt{\frac{t}{\cos k}}\right)}^{2}}\\
\mathbf{else}:\\
\;\;\;\;\frac{2}{{\left(\frac{\left(k \cdot \sqrt{2}\right) \cdot {t}^{1.5}}{\ell}\right)}^{2}}\\
\end{array}
\end{array}
if t < -3.19999999999999989e-63Initial program 74.9%
Simplified67.0%
associate-*r*69.9%
associate-*r*69.9%
times-frac81.3%
Applied egg-rr81.3%
if -3.19999999999999989e-63 < t < 1.1999999999999999e-267Initial program 37.0%
Simplified35.9%
Taylor expanded in t around 0 81.5%
associate-*r*81.4%
times-frac81.4%
Simplified81.4%
if 1.1999999999999999e-267 < t < 3.94999999999999995e-84Initial program 38.1%
add-sqr-sqrt33.4%
pow233.4%
Applied egg-rr56.0%
Taylor expanded in k around inf 76.6%
if 3.94999999999999995e-84 < t Initial program 63.0%
add-sqr-sqrt39.7%
pow239.7%
Applied egg-rr53.3%
Taylor expanded in k around 0 68.4%
associate-*l/68.4%
sqrt-pow178.1%
metadata-eval78.1%
Applied egg-rr78.1%
Final simplification79.6%
(FPCore (t l k)
:precision binary64
(if (<= t -2.15e-63)
(*
(/ (* l (/ 2.0 (pow t 3.0))) (* (sin k) (+ 2.0 (pow (/ k t) 2.0))))
(/ l (tan k)))
(if (<= t 3.5e-267)
(*
2.0
(/ (* (pow l 2.0) (cos k)) (* (pow k 2.0) (* t (pow (sin k) 2.0)))))
(if (<= t 5.9e-83)
(/ 2.0 (pow (* (/ (* k (sin k)) l) (sqrt (/ t (cos k)))) 2.0))
(/ 2.0 (pow (/ (* (* k (sqrt 2.0)) (pow t 1.5)) l) 2.0))))))
double code(double t, double l, double k) {
double tmp;
if (t <= -2.15e-63) {
tmp = ((l * (2.0 / pow(t, 3.0))) / (sin(k) * (2.0 + pow((k / t), 2.0)))) * (l / tan(k));
} else if (t <= 3.5e-267) {
tmp = 2.0 * ((pow(l, 2.0) * cos(k)) / (pow(k, 2.0) * (t * pow(sin(k), 2.0))));
} else if (t <= 5.9e-83) {
tmp = 2.0 / pow((((k * sin(k)) / l) * sqrt((t / cos(k)))), 2.0);
} else {
tmp = 2.0 / pow((((k * sqrt(2.0)) * pow(t, 1.5)) / l), 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 <= (-2.15d-63)) then
tmp = ((l * (2.0d0 / (t ** 3.0d0))) / (sin(k) * (2.0d0 + ((k / t) ** 2.0d0)))) * (l / tan(k))
else if (t <= 3.5d-267) then
tmp = 2.0d0 * (((l ** 2.0d0) * cos(k)) / ((k ** 2.0d0) * (t * (sin(k) ** 2.0d0))))
else if (t <= 5.9d-83) then
tmp = 2.0d0 / ((((k * sin(k)) / l) * sqrt((t / cos(k)))) ** 2.0d0)
else
tmp = 2.0d0 / ((((k * sqrt(2.0d0)) * (t ** 1.5d0)) / l) ** 2.0d0)
end if
code = tmp
end function
public static double code(double t, double l, double k) {
double tmp;
if (t <= -2.15e-63) {
tmp = ((l * (2.0 / Math.pow(t, 3.0))) / (Math.sin(k) * (2.0 + Math.pow((k / t), 2.0)))) * (l / Math.tan(k));
} else if (t <= 3.5e-267) {
tmp = 2.0 * ((Math.pow(l, 2.0) * Math.cos(k)) / (Math.pow(k, 2.0) * (t * Math.pow(Math.sin(k), 2.0))));
} else if (t <= 5.9e-83) {
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)) * Math.pow(t, 1.5)) / l), 2.0);
}
return tmp;
}
def code(t, l, k): tmp = 0 if t <= -2.15e-63: tmp = ((l * (2.0 / math.pow(t, 3.0))) / (math.sin(k) * (2.0 + math.pow((k / t), 2.0)))) * (l / math.tan(k)) elif t <= 3.5e-267: tmp = 2.0 * ((math.pow(l, 2.0) * math.cos(k)) / (math.pow(k, 2.0) * (t * math.pow(math.sin(k), 2.0)))) elif t <= 5.9e-83: 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)) * math.pow(t, 1.5)) / l), 2.0) return tmp
function code(t, l, k) tmp = 0.0 if (t <= -2.15e-63) tmp = 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))); elseif (t <= 3.5e-267) tmp = Float64(2.0 * Float64(Float64((l ^ 2.0) * cos(k)) / Float64((k ^ 2.0) * Float64(t * (sin(k) ^ 2.0))))); elseif (t <= 5.9e-83) 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)) * (t ^ 1.5)) / l) ^ 2.0)); end return tmp end
function tmp_2 = code(t, l, k) tmp = 0.0; if (t <= -2.15e-63) tmp = ((l * (2.0 / (t ^ 3.0))) / (sin(k) * (2.0 + ((k / t) ^ 2.0)))) * (l / tan(k)); elseif (t <= 3.5e-267) tmp = 2.0 * (((l ^ 2.0) * cos(k)) / ((k ^ 2.0) * (t * (sin(k) ^ 2.0)))); elseif (t <= 5.9e-83) tmp = 2.0 / ((((k * sin(k)) / l) * sqrt((t / cos(k)))) ^ 2.0); else tmp = 2.0 / ((((k * sqrt(2.0)) * (t ^ 1.5)) / l) ^ 2.0); end tmp_2 = tmp; end
code[t_, l_, k_] := If[LessEqual[t, -2.15e-63], 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, 3.5e-267], 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[Power[N[Sin[k], $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 5.9e-83], 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] * N[Power[t, 1.5], $MachinePrecision]), $MachinePrecision] / l), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -2.15 \cdot 10^{-63}:\\
\;\;\;\;\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{elif}\;t \leq 3.5 \cdot 10^{-267}:\\
\;\;\;\;2 \cdot \frac{{\ell}^{2} \cdot \cos k}{{k}^{2} \cdot \left(t \cdot {\sin k}^{2}\right)}\\
\mathbf{elif}\;t \leq 5.9 \cdot 10^{-83}:\\
\;\;\;\;\frac{2}{{\left(\frac{k \cdot \sin k}{\ell} \cdot \sqrt{\frac{t}{\cos k}}\right)}^{2}}\\
\mathbf{else}:\\
\;\;\;\;\frac{2}{{\left(\frac{\left(k \cdot \sqrt{2}\right) \cdot {t}^{1.5}}{\ell}\right)}^{2}}\\
\end{array}
\end{array}
if t < -2.1499999999999999e-63Initial program 74.9%
Simplified67.0%
associate-*r*69.9%
associate-*r*69.9%
times-frac81.3%
Applied egg-rr81.3%
if -2.1499999999999999e-63 < t < 3.4999999999999999e-267Initial program 37.0%
Simplified35.9%
Taylor expanded in t around 0 81.5%
if 3.4999999999999999e-267 < t < 5.8999999999999997e-83Initial program 38.1%
add-sqr-sqrt33.4%
pow233.4%
Applied egg-rr56.0%
Taylor expanded in k around inf 76.6%
if 5.8999999999999997e-83 < t Initial program 63.0%
add-sqr-sqrt39.7%
pow239.7%
Applied egg-rr53.3%
Taylor expanded in k around 0 68.4%
associate-*l/68.4%
sqrt-pow178.1%
metadata-eval78.1%
Applied egg-rr78.1%
Final simplification79.6%
(FPCore (t l k)
:precision binary64
(let* ((t_1 (sqrt (/ t (cos k)))) (t_2 (* k (sqrt 2.0))))
(if (<= t -1.02e+121)
(/ 2.0 (pow (* (/ t_2 l) (pow (pow t 3.0) 0.5)) 2.0))
(if (<= t -2.6e-180)
(*
(/ (* l (/ 2.0 (pow t 3.0))) (* (sin k) (tan k)))
(/ l (+ 2.0 (pow (/ k t) 2.0))))
(if (<= t -2.4e-232)
(/ 2.0 (pow (/ (* k t_1) (/ l (sin k))) 2.0))
(if (<= t 3.9e-268)
(/
2.0
(* (/ (* t (pow k 2.0)) (cos k)) (/ (pow k 2.0) (pow l 2.0))))
(if (<= t 8e-85)
(/ 2.0 (pow (* (/ (* k (sin k)) l) t_1) 2.0))
(/ 2.0 (pow (/ (* t_2 (pow t 1.5)) l) 2.0)))))))))
double code(double t, double l, double k) {
double t_1 = sqrt((t / cos(k)));
double t_2 = k * sqrt(2.0);
double tmp;
if (t <= -1.02e+121) {
tmp = 2.0 / pow(((t_2 / l) * pow(pow(t, 3.0), 0.5)), 2.0);
} else if (t <= -2.6e-180) {
tmp = ((l * (2.0 / pow(t, 3.0))) / (sin(k) * tan(k))) * (l / (2.0 + pow((k / t), 2.0)));
} else if (t <= -2.4e-232) {
tmp = 2.0 / pow(((k * t_1) / (l / sin(k))), 2.0);
} else if (t <= 3.9e-268) {
tmp = 2.0 / (((t * pow(k, 2.0)) / cos(k)) * (pow(k, 2.0) / pow(l, 2.0)));
} else if (t <= 8e-85) {
tmp = 2.0 / pow((((k * sin(k)) / l) * t_1), 2.0);
} else {
tmp = 2.0 / pow(((t_2 * pow(t, 1.5)) / l), 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) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = sqrt((t / cos(k)))
t_2 = k * sqrt(2.0d0)
if (t <= (-1.02d+121)) then
tmp = 2.0d0 / (((t_2 / l) * ((t ** 3.0d0) ** 0.5d0)) ** 2.0d0)
else if (t <= (-2.6d-180)) then
tmp = ((l * (2.0d0 / (t ** 3.0d0))) / (sin(k) * tan(k))) * (l / (2.0d0 + ((k / t) ** 2.0d0)))
else if (t <= (-2.4d-232)) then
tmp = 2.0d0 / (((k * t_1) / (l / sin(k))) ** 2.0d0)
else if (t <= 3.9d-268) then
tmp = 2.0d0 / (((t * (k ** 2.0d0)) / cos(k)) * ((k ** 2.0d0) / (l ** 2.0d0)))
else if (t <= 8d-85) then
tmp = 2.0d0 / ((((k * sin(k)) / l) * t_1) ** 2.0d0)
else
tmp = 2.0d0 / (((t_2 * (t ** 1.5d0)) / l) ** 2.0d0)
end if
code = tmp
end function
public static double code(double t, double l, double k) {
double t_1 = Math.sqrt((t / Math.cos(k)));
double t_2 = k * Math.sqrt(2.0);
double tmp;
if (t <= -1.02e+121) {
tmp = 2.0 / Math.pow(((t_2 / l) * Math.pow(Math.pow(t, 3.0), 0.5)), 2.0);
} else if (t <= -2.6e-180) {
tmp = ((l * (2.0 / Math.pow(t, 3.0))) / (Math.sin(k) * Math.tan(k))) * (l / (2.0 + Math.pow((k / t), 2.0)));
} else if (t <= -2.4e-232) {
tmp = 2.0 / Math.pow(((k * t_1) / (l / Math.sin(k))), 2.0);
} else if (t <= 3.9e-268) {
tmp = 2.0 / (((t * Math.pow(k, 2.0)) / Math.cos(k)) * (Math.pow(k, 2.0) / Math.pow(l, 2.0)));
} else if (t <= 8e-85) {
tmp = 2.0 / Math.pow((((k * Math.sin(k)) / l) * t_1), 2.0);
} else {
tmp = 2.0 / Math.pow(((t_2 * Math.pow(t, 1.5)) / l), 2.0);
}
return tmp;
}
def code(t, l, k): t_1 = math.sqrt((t / math.cos(k))) t_2 = k * math.sqrt(2.0) tmp = 0 if t <= -1.02e+121: tmp = 2.0 / math.pow(((t_2 / l) * math.pow(math.pow(t, 3.0), 0.5)), 2.0) elif t <= -2.6e-180: tmp = ((l * (2.0 / math.pow(t, 3.0))) / (math.sin(k) * math.tan(k))) * (l / (2.0 + math.pow((k / t), 2.0))) elif t <= -2.4e-232: tmp = 2.0 / math.pow(((k * t_1) / (l / math.sin(k))), 2.0) elif t <= 3.9e-268: tmp = 2.0 / (((t * math.pow(k, 2.0)) / math.cos(k)) * (math.pow(k, 2.0) / math.pow(l, 2.0))) elif t <= 8e-85: tmp = 2.0 / math.pow((((k * math.sin(k)) / l) * t_1), 2.0) else: tmp = 2.0 / math.pow(((t_2 * math.pow(t, 1.5)) / l), 2.0) return tmp
function code(t, l, k) t_1 = sqrt(Float64(t / cos(k))) t_2 = Float64(k * sqrt(2.0)) tmp = 0.0 if (t <= -1.02e+121) tmp = Float64(2.0 / (Float64(Float64(t_2 / l) * ((t ^ 3.0) ^ 0.5)) ^ 2.0)); elseif (t <= -2.6e-180) tmp = 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)))); elseif (t <= -2.4e-232) tmp = Float64(2.0 / (Float64(Float64(k * t_1) / Float64(l / sin(k))) ^ 2.0)); elseif (t <= 3.9e-268) tmp = Float64(2.0 / Float64(Float64(Float64(t * (k ^ 2.0)) / cos(k)) * Float64((k ^ 2.0) / (l ^ 2.0)))); elseif (t <= 8e-85) tmp = Float64(2.0 / (Float64(Float64(Float64(k * sin(k)) / l) * t_1) ^ 2.0)); else tmp = Float64(2.0 / (Float64(Float64(t_2 * (t ^ 1.5)) / l) ^ 2.0)); end return tmp end
function tmp_2 = code(t, l, k) t_1 = sqrt((t / cos(k))); t_2 = k * sqrt(2.0); tmp = 0.0; if (t <= -1.02e+121) tmp = 2.0 / (((t_2 / l) * ((t ^ 3.0) ^ 0.5)) ^ 2.0); elseif (t <= -2.6e-180) tmp = ((l * (2.0 / (t ^ 3.0))) / (sin(k) * tan(k))) * (l / (2.0 + ((k / t) ^ 2.0))); elseif (t <= -2.4e-232) tmp = 2.0 / (((k * t_1) / (l / sin(k))) ^ 2.0); elseif (t <= 3.9e-268) tmp = 2.0 / (((t * (k ^ 2.0)) / cos(k)) * ((k ^ 2.0) / (l ^ 2.0))); elseif (t <= 8e-85) tmp = 2.0 / ((((k * sin(k)) / l) * t_1) ^ 2.0); else tmp = 2.0 / (((t_2 * (t ^ 1.5)) / l) ^ 2.0); end tmp_2 = tmp; end
code[t_, l_, k_] := Block[{t$95$1 = N[Sqrt[N[(t / N[Cos[k], $MachinePrecision]), $MachinePrecision]], $MachinePrecision]}, Block[{t$95$2 = N[(k * N[Sqrt[2.0], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -1.02e+121], N[(2.0 / N[Power[N[(N[(t$95$2 / l), $MachinePrecision] * N[Power[N[Power[t, 3.0], $MachinePrecision], 0.5], $MachinePrecision]), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -2.6e-180], 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, -2.4e-232], N[(2.0 / N[Power[N[(N[(k * t$95$1), $MachinePrecision] / N[(l / N[Sin[k], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 3.9e-268], N[(2.0 / N[(N[(N[(t * N[Power[k, 2.0], $MachinePrecision]), $MachinePrecision] / N[Cos[k], $MachinePrecision]), $MachinePrecision] * N[(N[Power[k, 2.0], $MachinePrecision] / N[Power[l, 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 8e-85], N[(2.0 / N[Power[N[(N[(N[(k * N[Sin[k], $MachinePrecision]), $MachinePrecision] / l), $MachinePrecision] * t$95$1), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision], N[(2.0 / N[Power[N[(N[(t$95$2 * N[Power[t, 1.5], $MachinePrecision]), $MachinePrecision] / l), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \sqrt{\frac{t}{\cos k}}\\
t_2 := k \cdot \sqrt{2}\\
\mathbf{if}\;t \leq -1.02 \cdot 10^{+121}:\\
\;\;\;\;\frac{2}{{\left(\frac{t_2}{\ell} \cdot {\left({t}^{3}\right)}^{0.5}\right)}^{2}}\\
\mathbf{elif}\;t \leq -2.6 \cdot 10^{-180}:\\
\;\;\;\;\frac{\ell \cdot \frac{2}{{t}^{3}}}{\sin k \cdot \tan k} \cdot \frac{\ell}{2 + {\left(\frac{k}{t}\right)}^{2}}\\
\mathbf{elif}\;t \leq -2.4 \cdot 10^{-232}:\\
\;\;\;\;\frac{2}{{\left(\frac{k \cdot t_1}{\frac{\ell}{\sin k}}\right)}^{2}}\\
\mathbf{elif}\;t \leq 3.9 \cdot 10^{-268}:\\
\;\;\;\;\frac{2}{\frac{t \cdot {k}^{2}}{\cos k} \cdot \frac{{k}^{2}}{{\ell}^{2}}}\\
\mathbf{elif}\;t \leq 8 \cdot 10^{-85}:\\
\;\;\;\;\frac{2}{{\left(\frac{k \cdot \sin k}{\ell} \cdot t_1\right)}^{2}}\\
\mathbf{else}:\\
\;\;\;\;\frac{2}{{\left(\frac{t_2 \cdot {t}^{1.5}}{\ell}\right)}^{2}}\\
\end{array}
\end{array}
if t < -1.02000000000000005e121Initial program 72.7%
add-sqr-sqrt8.1%
pow28.1%
Applied egg-rr0.0%
Taylor expanded in k around 0 0.0%
pow1/273.3%
Applied egg-rr73.3%
if -1.02000000000000005e121 < t < -2.5999999999999999e-180Initial program 71.4%
Simplified67.1%
associate-*r*71.9%
*-commutative71.9%
times-frac73.7%
Applied egg-rr73.7%
if -2.5999999999999999e-180 < t < -2.39999999999999999e-232Initial program 0.0%
add-sqr-sqrt0.0%
pow20.0%
Applied egg-rr0.0%
Taylor expanded in k around inf 54.9%
*-commutative54.9%
associate-/l*54.8%
associate-*r/55.1%
Simplified55.1%
if -2.39999999999999999e-232 < t < 3.8999999999999998e-268Initial program 30.8%
Taylor expanded in t around 0 82.4%
associate-*r*82.4%
*-commutative82.4%
times-frac81.1%
Simplified81.1%
Taylor expanded in k around 0 70.5%
if 3.8999999999999998e-268 < t < 7.9999999999999998e-85Initial program 38.1%
add-sqr-sqrt33.4%
pow233.4%
Applied egg-rr56.0%
Taylor expanded in k around inf 76.6%
if 7.9999999999999998e-85 < t Initial program 63.0%
add-sqr-sqrt39.7%
pow239.7%
Applied egg-rr53.3%
Taylor expanded in k around 0 68.4%
associate-*l/68.4%
sqrt-pow178.1%
metadata-eval78.1%
Applied egg-rr78.1%
Final simplification74.5%
(FPCore (t l k)
:precision binary64
(if (<= t -0.051)
(/
2.0
(*
(+ 2.0 (pow (/ k t) 2.0))
(* (tan k) (* (pow t 3.0) (/ k (pow l 2.0))))))
(if (<= t 3.1e-268)
(* 2.0 (/ (pow (* l (pow k -2.0)) 2.0) t))
(if (<= t 1.85e-85)
(/ 2.0 (pow (* (/ (* k (sin k)) l) (sqrt (/ t (cos k)))) 2.0))
(/ 2.0 (pow (/ (* (* k (sqrt 2.0)) (pow t 1.5)) l) 2.0))))))
double code(double t, double l, double k) {
double tmp;
if (t <= -0.051) {
tmp = 2.0 / ((2.0 + pow((k / t), 2.0)) * (tan(k) * (pow(t, 3.0) * (k / pow(l, 2.0)))));
} else if (t <= 3.1e-268) {
tmp = 2.0 * (pow((l * pow(k, -2.0)), 2.0) / t);
} else if (t <= 1.85e-85) {
tmp = 2.0 / pow((((k * sin(k)) / l) * sqrt((t / cos(k)))), 2.0);
} else {
tmp = 2.0 / pow((((k * sqrt(2.0)) * pow(t, 1.5)) / l), 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 <= (-0.051d0)) then
tmp = 2.0d0 / ((2.0d0 + ((k / t) ** 2.0d0)) * (tan(k) * ((t ** 3.0d0) * (k / (l ** 2.0d0)))))
else if (t <= 3.1d-268) then
tmp = 2.0d0 * (((l * (k ** (-2.0d0))) ** 2.0d0) / t)
else if (t <= 1.85d-85) then
tmp = 2.0d0 / ((((k * sin(k)) / l) * sqrt((t / cos(k)))) ** 2.0d0)
else
tmp = 2.0d0 / ((((k * sqrt(2.0d0)) * (t ** 1.5d0)) / l) ** 2.0d0)
end if
code = tmp
end function
public static double code(double t, double l, double k) {
double tmp;
if (t <= -0.051) {
tmp = 2.0 / ((2.0 + Math.pow((k / t), 2.0)) * (Math.tan(k) * (Math.pow(t, 3.0) * (k / Math.pow(l, 2.0)))));
} else if (t <= 3.1e-268) {
tmp = 2.0 * (Math.pow((l * Math.pow(k, -2.0)), 2.0) / t);
} else if (t <= 1.85e-85) {
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)) * Math.pow(t, 1.5)) / l), 2.0);
}
return tmp;
}
def code(t, l, k): tmp = 0 if t <= -0.051: tmp = 2.0 / ((2.0 + math.pow((k / t), 2.0)) * (math.tan(k) * (math.pow(t, 3.0) * (k / math.pow(l, 2.0))))) elif t <= 3.1e-268: tmp = 2.0 * (math.pow((l * math.pow(k, -2.0)), 2.0) / t) elif t <= 1.85e-85: 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)) * math.pow(t, 1.5)) / l), 2.0) return tmp
function code(t, l, k) tmp = 0.0 if (t <= -0.051) tmp = Float64(2.0 / Float64(Float64(2.0 + (Float64(k / t) ^ 2.0)) * Float64(tan(k) * Float64((t ^ 3.0) * Float64(k / (l ^ 2.0)))))); elseif (t <= 3.1e-268) tmp = Float64(2.0 * Float64((Float64(l * (k ^ -2.0)) ^ 2.0) / t)); elseif (t <= 1.85e-85) 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)) * (t ^ 1.5)) / l) ^ 2.0)); end return tmp end
function tmp_2 = code(t, l, k) tmp = 0.0; if (t <= -0.051) tmp = 2.0 / ((2.0 + ((k / t) ^ 2.0)) * (tan(k) * ((t ^ 3.0) * (k / (l ^ 2.0))))); elseif (t <= 3.1e-268) tmp = 2.0 * (((l * (k ^ -2.0)) ^ 2.0) / t); elseif (t <= 1.85e-85) tmp = 2.0 / ((((k * sin(k)) / l) * sqrt((t / cos(k)))) ^ 2.0); else tmp = 2.0 / ((((k * sqrt(2.0)) * (t ^ 1.5)) / l) ^ 2.0); end tmp_2 = tmp; end
code[t_, l_, k_] := If[LessEqual[t, -0.051], N[(2.0 / N[(N[(2.0 + N[Power[N[(k / t), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision] * N[(N[Tan[k], $MachinePrecision] * N[(N[Power[t, 3.0], $MachinePrecision] * N[(k / N[Power[l, 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 3.1e-268], N[(2.0 * N[(N[Power[N[(l * N[Power[k, -2.0], $MachinePrecision]), $MachinePrecision], 2.0], $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.85e-85], 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] * N[Power[t, 1.5], $MachinePrecision]), $MachinePrecision] / l), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -0.051:\\
\;\;\;\;\frac{2}{\left(2 + {\left(\frac{k}{t}\right)}^{2}\right) \cdot \left(\tan k \cdot \left({t}^{3} \cdot \frac{k}{{\ell}^{2}}\right)\right)}\\
\mathbf{elif}\;t \leq 3.1 \cdot 10^{-268}:\\
\;\;\;\;2 \cdot \frac{{\left(\ell \cdot {k}^{-2}\right)}^{2}}{t}\\
\mathbf{elif}\;t \leq 1.85 \cdot 10^{-85}:\\
\;\;\;\;\frac{2}{{\left(\frac{k \cdot \sin k}{\ell} \cdot \sqrt{\frac{t}{\cos k}}\right)}^{2}}\\
\mathbf{else}:\\
\;\;\;\;\frac{2}{{\left(\frac{\left(k \cdot \sqrt{2}\right) \cdot {t}^{1.5}}{\ell}\right)}^{2}}\\
\end{array}
\end{array}
if t < -0.0509999999999999967Initial program 75.8%
Taylor expanded in k around 0 70.5%
distribute-lft-in70.5%
*-commutative70.5%
associate-/l*70.0%
*-commutative70.0%
associate-/l*70.0%
Applied egg-rr70.0%
distribute-lft-out70.0%
+-commutative70.0%
*-commutative70.0%
associate-+r+70.0%
metadata-eval70.0%
associate-/r/70.4%
Simplified70.4%
if -0.0509999999999999967 < t < 3.0999999999999998e-268Initial program 43.2%
Taylor expanded in t around 0 79.3%
associate-*r*79.3%
*-commutative79.3%
times-frac77.5%
Simplified77.5%
Taylor expanded in k around 0 59.4%
associate-/r*59.5%
Simplified59.5%
expm1-log1p-u59.5%
expm1-udef57.9%
div-inv57.9%
pow-flip57.9%
metadata-eval57.9%
Applied egg-rr57.9%
expm1-def59.5%
expm1-log1p59.5%
Simplified59.5%
add-sqr-sqrt59.5%
pow259.5%
sqrt-prod59.5%
unpow259.5%
sqrt-prod37.2%
add-sqr-sqrt65.4%
sqrt-pow166.7%
metadata-eval66.7%
Applied egg-rr66.7%
if 3.0999999999999998e-268 < t < 1.84999999999999992e-85Initial program 38.1%
add-sqr-sqrt33.4%
pow233.4%
Applied egg-rr56.0%
Taylor expanded in k around inf 76.6%
if 1.84999999999999992e-85 < t Initial program 63.0%
add-sqr-sqrt39.7%
pow239.7%
Applied egg-rr53.3%
Taylor expanded in k around 0 68.4%
associate-*l/68.4%
sqrt-pow178.1%
metadata-eval78.1%
Applied egg-rr78.1%
Final simplification72.8%
(FPCore (t l k)
:precision binary64
(if (<= t -0.0105)
(/
2.0
(*
(+ 2.0 (pow (/ k t) 2.0))
(/ (tan k) (/ (pow l 2.0) (* k (pow t 3.0))))))
(if (<= t 7.9e-268)
(* 2.0 (/ (pow (* l (pow k -2.0)) 2.0) t))
(if (<= t 1.15e-84)
(/ 2.0 (pow (* (/ (* k (sin k)) l) (sqrt (/ t (cos k)))) 2.0))
(/ 2.0 (pow (/ (* (* k (sqrt 2.0)) (pow t 1.5)) l) 2.0))))))
double code(double t, double l, double k) {
double tmp;
if (t <= -0.0105) {
tmp = 2.0 / ((2.0 + pow((k / t), 2.0)) * (tan(k) / (pow(l, 2.0) / (k * pow(t, 3.0)))));
} else if (t <= 7.9e-268) {
tmp = 2.0 * (pow((l * pow(k, -2.0)), 2.0) / t);
} else if (t <= 1.15e-84) {
tmp = 2.0 / pow((((k * sin(k)) / l) * sqrt((t / cos(k)))), 2.0);
} else {
tmp = 2.0 / pow((((k * sqrt(2.0)) * pow(t, 1.5)) / l), 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 <= (-0.0105d0)) then
tmp = 2.0d0 / ((2.0d0 + ((k / t) ** 2.0d0)) * (tan(k) / ((l ** 2.0d0) / (k * (t ** 3.0d0)))))
else if (t <= 7.9d-268) then
tmp = 2.0d0 * (((l * (k ** (-2.0d0))) ** 2.0d0) / t)
else if (t <= 1.15d-84) then
tmp = 2.0d0 / ((((k * sin(k)) / l) * sqrt((t / cos(k)))) ** 2.0d0)
else
tmp = 2.0d0 / ((((k * sqrt(2.0d0)) * (t ** 1.5d0)) / l) ** 2.0d0)
end if
code = tmp
end function
public static double code(double t, double l, double k) {
double tmp;
if (t <= -0.0105) {
tmp = 2.0 / ((2.0 + Math.pow((k / t), 2.0)) * (Math.tan(k) / (Math.pow(l, 2.0) / (k * Math.pow(t, 3.0)))));
} else if (t <= 7.9e-268) {
tmp = 2.0 * (Math.pow((l * Math.pow(k, -2.0)), 2.0) / t);
} else if (t <= 1.15e-84) {
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)) * Math.pow(t, 1.5)) / l), 2.0);
}
return tmp;
}
def code(t, l, k): tmp = 0 if t <= -0.0105: tmp = 2.0 / ((2.0 + math.pow((k / t), 2.0)) * (math.tan(k) / (math.pow(l, 2.0) / (k * math.pow(t, 3.0))))) elif t <= 7.9e-268: tmp = 2.0 * (math.pow((l * math.pow(k, -2.0)), 2.0) / t) elif t <= 1.15e-84: 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)) * math.pow(t, 1.5)) / l), 2.0) return tmp
function code(t, l, k) tmp = 0.0 if (t <= -0.0105) tmp = Float64(2.0 / Float64(Float64(2.0 + (Float64(k / t) ^ 2.0)) * Float64(tan(k) / Float64((l ^ 2.0) / Float64(k * (t ^ 3.0)))))); elseif (t <= 7.9e-268) tmp = Float64(2.0 * Float64((Float64(l * (k ^ -2.0)) ^ 2.0) / t)); elseif (t <= 1.15e-84) 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)) * (t ^ 1.5)) / l) ^ 2.0)); end return tmp end
function tmp_2 = code(t, l, k) tmp = 0.0; if (t <= -0.0105) tmp = 2.0 / ((2.0 + ((k / t) ^ 2.0)) * (tan(k) / ((l ^ 2.0) / (k * (t ^ 3.0))))); elseif (t <= 7.9e-268) tmp = 2.0 * (((l * (k ^ -2.0)) ^ 2.0) / t); elseif (t <= 1.15e-84) tmp = 2.0 / ((((k * sin(k)) / l) * sqrt((t / cos(k)))) ^ 2.0); else tmp = 2.0 / ((((k * sqrt(2.0)) * (t ^ 1.5)) / l) ^ 2.0); end tmp_2 = tmp; end
code[t_, l_, k_] := If[LessEqual[t, -0.0105], N[(2.0 / N[(N[(2.0 + N[Power[N[(k / t), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision] * N[(N[Tan[k], $MachinePrecision] / N[(N[Power[l, 2.0], $MachinePrecision] / N[(k * N[Power[t, 3.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 7.9e-268], N[(2.0 * N[(N[Power[N[(l * N[Power[k, -2.0], $MachinePrecision]), $MachinePrecision], 2.0], $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.15e-84], 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] * N[Power[t, 1.5], $MachinePrecision]), $MachinePrecision] / l), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -0.0105:\\
\;\;\;\;\frac{2}{\left(2 + {\left(\frac{k}{t}\right)}^{2}\right) \cdot \frac{\tan k}{\frac{{\ell}^{2}}{k \cdot {t}^{3}}}}\\
\mathbf{elif}\;t \leq 7.9 \cdot 10^{-268}:\\
\;\;\;\;2 \cdot \frac{{\left(\ell \cdot {k}^{-2}\right)}^{2}}{t}\\
\mathbf{elif}\;t \leq 1.15 \cdot 10^{-84}:\\
\;\;\;\;\frac{2}{{\left(\frac{k \cdot \sin k}{\ell} \cdot \sqrt{\frac{t}{\cos k}}\right)}^{2}}\\
\mathbf{else}:\\
\;\;\;\;\frac{2}{{\left(\frac{\left(k \cdot \sqrt{2}\right) \cdot {t}^{1.5}}{\ell}\right)}^{2}}\\
\end{array}
\end{array}
if t < -0.0105000000000000007Initial program 75.8%
Taylor expanded in k around 0 70.5%
distribute-lft-in70.5%
*-commutative70.5%
associate-/l*70.0%
*-commutative70.0%
associate-/l*70.0%
Applied egg-rr70.0%
distribute-lft-out70.0%
+-commutative70.0%
*-commutative70.0%
associate-+r+70.0%
metadata-eval70.0%
associate-*r/60.7%
associate-/l*70.0%
associate-/r*70.5%
*-commutative70.5%
Simplified70.5%
if -0.0105000000000000007 < t < 7.9000000000000001e-268Initial program 43.2%
Taylor expanded in t around 0 79.3%
associate-*r*79.3%
*-commutative79.3%
times-frac77.5%
Simplified77.5%
Taylor expanded in k around 0 59.4%
associate-/r*59.5%
Simplified59.5%
expm1-log1p-u59.5%
expm1-udef57.9%
div-inv57.9%
pow-flip57.9%
metadata-eval57.9%
Applied egg-rr57.9%
expm1-def59.5%
expm1-log1p59.5%
Simplified59.5%
add-sqr-sqrt59.5%
pow259.5%
sqrt-prod59.5%
unpow259.5%
sqrt-prod37.2%
add-sqr-sqrt65.4%
sqrt-pow166.7%
metadata-eval66.7%
Applied egg-rr66.7%
if 7.9000000000000001e-268 < t < 1.1499999999999999e-84Initial program 38.1%
add-sqr-sqrt33.4%
pow233.4%
Applied egg-rr56.0%
Taylor expanded in k around inf 76.6%
if 1.1499999999999999e-84 < t Initial program 63.0%
add-sqr-sqrt39.7%
pow239.7%
Applied egg-rr53.3%
Taylor expanded in k around 0 68.4%
associate-*l/68.4%
sqrt-pow178.1%
metadata-eval78.1%
Applied egg-rr78.1%
Final simplification72.8%
(FPCore (t l k)
:precision binary64
(if (<= t -0.0105)
(/
2.0
(* 2.0 (/ 1.0 (* (/ (pow l 2.0) k) (/ (cos k) (* (sin k) (pow t 3.0)))))))
(if (<= t 4.2e-267)
(* 2.0 (/ (pow (* l (pow k -2.0)) 2.0) t))
(if (<= t 9.2e-83)
(/ 2.0 (pow (* (/ (* k (sin k)) l) (sqrt (/ t (cos k)))) 2.0))
(/ 2.0 (pow (/ (* (* k (sqrt 2.0)) (pow t 1.5)) l) 2.0))))))
double code(double t, double l, double k) {
double tmp;
if (t <= -0.0105) {
tmp = 2.0 / (2.0 * (1.0 / ((pow(l, 2.0) / k) * (cos(k) / (sin(k) * pow(t, 3.0))))));
} else if (t <= 4.2e-267) {
tmp = 2.0 * (pow((l * pow(k, -2.0)), 2.0) / t);
} else if (t <= 9.2e-83) {
tmp = 2.0 / pow((((k * sin(k)) / l) * sqrt((t / cos(k)))), 2.0);
} else {
tmp = 2.0 / pow((((k * sqrt(2.0)) * pow(t, 1.5)) / l), 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 <= (-0.0105d0)) then
tmp = 2.0d0 / (2.0d0 * (1.0d0 / (((l ** 2.0d0) / k) * (cos(k) / (sin(k) * (t ** 3.0d0))))))
else if (t <= 4.2d-267) then
tmp = 2.0d0 * (((l * (k ** (-2.0d0))) ** 2.0d0) / t)
else if (t <= 9.2d-83) then
tmp = 2.0d0 / ((((k * sin(k)) / l) * sqrt((t / cos(k)))) ** 2.0d0)
else
tmp = 2.0d0 / ((((k * sqrt(2.0d0)) * (t ** 1.5d0)) / l) ** 2.0d0)
end if
code = tmp
end function
public static double code(double t, double l, double k) {
double tmp;
if (t <= -0.0105) {
tmp = 2.0 / (2.0 * (1.0 / ((Math.pow(l, 2.0) / k) * (Math.cos(k) / (Math.sin(k) * Math.pow(t, 3.0))))));
} else if (t <= 4.2e-267) {
tmp = 2.0 * (Math.pow((l * Math.pow(k, -2.0)), 2.0) / t);
} else if (t <= 9.2e-83) {
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)) * Math.pow(t, 1.5)) / l), 2.0);
}
return tmp;
}
def code(t, l, k): tmp = 0 if t <= -0.0105: tmp = 2.0 / (2.0 * (1.0 / ((math.pow(l, 2.0) / k) * (math.cos(k) / (math.sin(k) * math.pow(t, 3.0)))))) elif t <= 4.2e-267: tmp = 2.0 * (math.pow((l * math.pow(k, -2.0)), 2.0) / t) elif t <= 9.2e-83: 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)) * math.pow(t, 1.5)) / l), 2.0) return tmp
function code(t, l, k) tmp = 0.0 if (t <= -0.0105) tmp = Float64(2.0 / Float64(2.0 * Float64(1.0 / Float64(Float64((l ^ 2.0) / k) * Float64(cos(k) / Float64(sin(k) * (t ^ 3.0))))))); elseif (t <= 4.2e-267) tmp = Float64(2.0 * Float64((Float64(l * (k ^ -2.0)) ^ 2.0) / t)); elseif (t <= 9.2e-83) 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)) * (t ^ 1.5)) / l) ^ 2.0)); end return tmp end
function tmp_2 = code(t, l, k) tmp = 0.0; if (t <= -0.0105) tmp = 2.0 / (2.0 * (1.0 / (((l ^ 2.0) / k) * (cos(k) / (sin(k) * (t ^ 3.0)))))); elseif (t <= 4.2e-267) tmp = 2.0 * (((l * (k ^ -2.0)) ^ 2.0) / t); elseif (t <= 9.2e-83) tmp = 2.0 / ((((k * sin(k)) / l) * sqrt((t / cos(k)))) ^ 2.0); else tmp = 2.0 / ((((k * sqrt(2.0)) * (t ^ 1.5)) / l) ^ 2.0); end tmp_2 = tmp; end
code[t_, l_, k_] := If[LessEqual[t, -0.0105], N[(2.0 / N[(2.0 * N[(1.0 / N[(N[(N[Power[l, 2.0], $MachinePrecision] / k), $MachinePrecision] * N[(N[Cos[k], $MachinePrecision] / N[(N[Sin[k], $MachinePrecision] * N[Power[t, 3.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 4.2e-267], N[(2.0 * N[(N[Power[N[(l * N[Power[k, -2.0], $MachinePrecision]), $MachinePrecision], 2.0], $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 9.2e-83], 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] * N[Power[t, 1.5], $MachinePrecision]), $MachinePrecision] / l), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -0.0105:\\
\;\;\;\;\frac{2}{2 \cdot \frac{1}{\frac{{\ell}^{2}}{k} \cdot \frac{\cos k}{\sin k \cdot {t}^{3}}}}\\
\mathbf{elif}\;t \leq 4.2 \cdot 10^{-267}:\\
\;\;\;\;2 \cdot \frac{{\left(\ell \cdot {k}^{-2}\right)}^{2}}{t}\\
\mathbf{elif}\;t \leq 9.2 \cdot 10^{-83}:\\
\;\;\;\;\frac{2}{{\left(\frac{k \cdot \sin k}{\ell} \cdot \sqrt{\frac{t}{\cos k}}\right)}^{2}}\\
\mathbf{else}:\\
\;\;\;\;\frac{2}{{\left(\frac{\left(k \cdot \sqrt{2}\right) \cdot {t}^{1.5}}{\ell}\right)}^{2}}\\
\end{array}
\end{array}
if t < -0.0105000000000000007Initial program 75.8%
Taylor expanded in k around 0 70.5%
Taylor expanded in t around inf 67.2%
clear-num67.2%
inv-pow67.2%
*-commutative67.2%
Applied egg-rr67.2%
unpow-167.2%
times-frac70.4%
Simplified70.4%
if -0.0105000000000000007 < t < 4.2000000000000003e-267Initial program 43.2%
Taylor expanded in t around 0 79.3%
associate-*r*79.3%
*-commutative79.3%
times-frac77.5%
Simplified77.5%
Taylor expanded in k around 0 59.4%
associate-/r*59.5%
Simplified59.5%
expm1-log1p-u59.5%
expm1-udef57.9%
div-inv57.9%
pow-flip57.9%
metadata-eval57.9%
Applied egg-rr57.9%
expm1-def59.5%
expm1-log1p59.5%
Simplified59.5%
add-sqr-sqrt59.5%
pow259.5%
sqrt-prod59.5%
unpow259.5%
sqrt-prod37.2%
add-sqr-sqrt65.4%
sqrt-pow166.7%
metadata-eval66.7%
Applied egg-rr66.7%
if 4.2000000000000003e-267 < t < 9.19999999999999959e-83Initial program 38.1%
add-sqr-sqrt33.4%
pow233.4%
Applied egg-rr56.0%
Taylor expanded in k around inf 76.6%
if 9.19999999999999959e-83 < t Initial program 63.0%
add-sqr-sqrt39.7%
pow239.7%
Applied egg-rr53.3%
Taylor expanded in k around 0 68.4%
associate-*l/68.4%
sqrt-pow178.1%
metadata-eval78.1%
Applied egg-rr78.1%
Final simplification72.8%
(FPCore (t l k)
:precision binary64
(if (<= t -860000000.0)
(/ 2.0 (* 2.0 (/ (* k (* (sin k) (pow t 3.0))) (pow l 2.0))))
(if (<= t 1.1e-267)
(* 2.0 (/ (pow (* l (pow k -2.0)) 2.0) t))
(if (<= t 8.4e-83)
(/ 2.0 (pow (* (/ (* k (sin k)) l) (sqrt (/ t (cos k)))) 2.0))
(/ 2.0 (pow (/ (* (* k (sqrt 2.0)) (pow t 1.5)) l) 2.0))))))
double code(double t, double l, double k) {
double tmp;
if (t <= -860000000.0) {
tmp = 2.0 / (2.0 * ((k * (sin(k) * pow(t, 3.0))) / pow(l, 2.0)));
} else if (t <= 1.1e-267) {
tmp = 2.0 * (pow((l * pow(k, -2.0)), 2.0) / t);
} else if (t <= 8.4e-83) {
tmp = 2.0 / pow((((k * sin(k)) / l) * sqrt((t / cos(k)))), 2.0);
} else {
tmp = 2.0 / pow((((k * sqrt(2.0)) * pow(t, 1.5)) / l), 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 <= (-860000000.0d0)) then
tmp = 2.0d0 / (2.0d0 * ((k * (sin(k) * (t ** 3.0d0))) / (l ** 2.0d0)))
else if (t <= 1.1d-267) then
tmp = 2.0d0 * (((l * (k ** (-2.0d0))) ** 2.0d0) / t)
else if (t <= 8.4d-83) then
tmp = 2.0d0 / ((((k * sin(k)) / l) * sqrt((t / cos(k)))) ** 2.0d0)
else
tmp = 2.0d0 / ((((k * sqrt(2.0d0)) * (t ** 1.5d0)) / l) ** 2.0d0)
end if
code = tmp
end function
public static double code(double t, double l, double k) {
double tmp;
if (t <= -860000000.0) {
tmp = 2.0 / (2.0 * ((k * (Math.sin(k) * Math.pow(t, 3.0))) / Math.pow(l, 2.0)));
} else if (t <= 1.1e-267) {
tmp = 2.0 * (Math.pow((l * Math.pow(k, -2.0)), 2.0) / t);
} else if (t <= 8.4e-83) {
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)) * Math.pow(t, 1.5)) / l), 2.0);
}
return tmp;
}
def code(t, l, k): tmp = 0 if t <= -860000000.0: tmp = 2.0 / (2.0 * ((k * (math.sin(k) * math.pow(t, 3.0))) / math.pow(l, 2.0))) elif t <= 1.1e-267: tmp = 2.0 * (math.pow((l * math.pow(k, -2.0)), 2.0) / t) elif t <= 8.4e-83: 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)) * math.pow(t, 1.5)) / l), 2.0) return tmp
function code(t, l, k) tmp = 0.0 if (t <= -860000000.0) tmp = Float64(2.0 / Float64(2.0 * Float64(Float64(k * Float64(sin(k) * (t ^ 3.0))) / (l ^ 2.0)))); elseif (t <= 1.1e-267) tmp = Float64(2.0 * Float64((Float64(l * (k ^ -2.0)) ^ 2.0) / t)); elseif (t <= 8.4e-83) 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)) * (t ^ 1.5)) / l) ^ 2.0)); end return tmp end
function tmp_2 = code(t, l, k) tmp = 0.0; if (t <= -860000000.0) tmp = 2.0 / (2.0 * ((k * (sin(k) * (t ^ 3.0))) / (l ^ 2.0))); elseif (t <= 1.1e-267) tmp = 2.0 * (((l * (k ^ -2.0)) ^ 2.0) / t); elseif (t <= 8.4e-83) tmp = 2.0 / ((((k * sin(k)) / l) * sqrt((t / cos(k)))) ^ 2.0); else tmp = 2.0 / ((((k * sqrt(2.0)) * (t ^ 1.5)) / l) ^ 2.0); end tmp_2 = tmp; end
code[t_, l_, k_] := If[LessEqual[t, -860000000.0], N[(2.0 / N[(2.0 * N[(N[(k * N[(N[Sin[k], $MachinePrecision] * N[Power[t, 3.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[Power[l, 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.1e-267], N[(2.0 * N[(N[Power[N[(l * N[Power[k, -2.0], $MachinePrecision]), $MachinePrecision], 2.0], $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 8.4e-83], 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] * N[Power[t, 1.5], $MachinePrecision]), $MachinePrecision] / l), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -860000000:\\
\;\;\;\;\frac{2}{2 \cdot \frac{k \cdot \left(\sin k \cdot {t}^{3}\right)}{{\ell}^{2}}}\\
\mathbf{elif}\;t \leq 1.1 \cdot 10^{-267}:\\
\;\;\;\;2 \cdot \frac{{\left(\ell \cdot {k}^{-2}\right)}^{2}}{t}\\
\mathbf{elif}\;t \leq 8.4 \cdot 10^{-83}:\\
\;\;\;\;\frac{2}{{\left(\frac{k \cdot \sin k}{\ell} \cdot \sqrt{\frac{t}{\cos k}}\right)}^{2}}\\
\mathbf{else}:\\
\;\;\;\;\frac{2}{{\left(\frac{\left(k \cdot \sqrt{2}\right) \cdot {t}^{1.5}}{\ell}\right)}^{2}}\\
\end{array}
\end{array}
if t < -8.6e8Initial program 76.2%
Taylor expanded in k around 0 70.6%
Taylor expanded in t around inf 67.2%
Taylor expanded in k around 0 67.5%
if -8.6e8 < t < 1.09999999999999994e-267Initial program 44.3%
Taylor expanded in t around 0 78.8%
associate-*r*78.8%
*-commutative78.8%
times-frac77.0%
Simplified77.0%
Taylor expanded in k around 0 59.7%
associate-/r*59.8%
Simplified59.8%
expm1-log1p-u59.8%
expm1-udef58.3%
div-inv58.3%
pow-flip58.3%
metadata-eval58.3%
Applied egg-rr58.3%
expm1-def59.8%
expm1-log1p59.8%
Simplified59.8%
add-sqr-sqrt59.8%
pow259.8%
sqrt-prod59.8%
unpow259.8%
sqrt-prod38.5%
add-sqr-sqrt65.5%
sqrt-pow166.8%
metadata-eval66.8%
Applied egg-rr66.8%
if 1.09999999999999994e-267 < t < 8.3999999999999996e-83Initial program 38.1%
add-sqr-sqrt33.4%
pow233.4%
Applied egg-rr56.0%
Taylor expanded in k around inf 76.6%
if 8.3999999999999996e-83 < t Initial program 63.0%
add-sqr-sqrt39.7%
pow239.7%
Applied egg-rr53.3%
Taylor expanded in k around 0 68.4%
associate-*l/68.4%
sqrt-pow178.1%
metadata-eval78.1%
Applied egg-rr78.1%
Final simplification72.1%
(FPCore (t l k)
:precision binary64
(if (<= t -0.0106)
(/ 2.0 (* 2.0 (* (/ (* k (pow t 3.0)) (cos k)) (/ (sin k) (pow l 2.0)))))
(if (<= t 5.5e-268)
(* 2.0 (/ (pow (* l (pow k -2.0)) 2.0) t))
(if (<= t 9.2e-83)
(/ 2.0 (pow (* (/ (* k (sin k)) l) (sqrt (/ t (cos k)))) 2.0))
(/ 2.0 (pow (/ (* (* k (sqrt 2.0)) (pow t 1.5)) l) 2.0))))))
double code(double t, double l, double k) {
double tmp;
if (t <= -0.0106) {
tmp = 2.0 / (2.0 * (((k * pow(t, 3.0)) / cos(k)) * (sin(k) / pow(l, 2.0))));
} else if (t <= 5.5e-268) {
tmp = 2.0 * (pow((l * pow(k, -2.0)), 2.0) / t);
} else if (t <= 9.2e-83) {
tmp = 2.0 / pow((((k * sin(k)) / l) * sqrt((t / cos(k)))), 2.0);
} else {
tmp = 2.0 / pow((((k * sqrt(2.0)) * pow(t, 1.5)) / l), 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 <= (-0.0106d0)) then
tmp = 2.0d0 / (2.0d0 * (((k * (t ** 3.0d0)) / cos(k)) * (sin(k) / (l ** 2.0d0))))
else if (t <= 5.5d-268) then
tmp = 2.0d0 * (((l * (k ** (-2.0d0))) ** 2.0d0) / t)
else if (t <= 9.2d-83) then
tmp = 2.0d0 / ((((k * sin(k)) / l) * sqrt((t / cos(k)))) ** 2.0d0)
else
tmp = 2.0d0 / ((((k * sqrt(2.0d0)) * (t ** 1.5d0)) / l) ** 2.0d0)
end if
code = tmp
end function
public static double code(double t, double l, double k) {
double tmp;
if (t <= -0.0106) {
tmp = 2.0 / (2.0 * (((k * Math.pow(t, 3.0)) / Math.cos(k)) * (Math.sin(k) / Math.pow(l, 2.0))));
} else if (t <= 5.5e-268) {
tmp = 2.0 * (Math.pow((l * Math.pow(k, -2.0)), 2.0) / t);
} else if (t <= 9.2e-83) {
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)) * Math.pow(t, 1.5)) / l), 2.0);
}
return tmp;
}
def code(t, l, k): tmp = 0 if t <= -0.0106: tmp = 2.0 / (2.0 * (((k * math.pow(t, 3.0)) / math.cos(k)) * (math.sin(k) / math.pow(l, 2.0)))) elif t <= 5.5e-268: tmp = 2.0 * (math.pow((l * math.pow(k, -2.0)), 2.0) / t) elif t <= 9.2e-83: 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)) * math.pow(t, 1.5)) / l), 2.0) return tmp
function code(t, l, k) tmp = 0.0 if (t <= -0.0106) tmp = Float64(2.0 / Float64(2.0 * Float64(Float64(Float64(k * (t ^ 3.0)) / cos(k)) * Float64(sin(k) / (l ^ 2.0))))); elseif (t <= 5.5e-268) tmp = Float64(2.0 * Float64((Float64(l * (k ^ -2.0)) ^ 2.0) / t)); elseif (t <= 9.2e-83) 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)) * (t ^ 1.5)) / l) ^ 2.0)); end return tmp end
function tmp_2 = code(t, l, k) tmp = 0.0; if (t <= -0.0106) tmp = 2.0 / (2.0 * (((k * (t ^ 3.0)) / cos(k)) * (sin(k) / (l ^ 2.0)))); elseif (t <= 5.5e-268) tmp = 2.0 * (((l * (k ^ -2.0)) ^ 2.0) / t); elseif (t <= 9.2e-83) tmp = 2.0 / ((((k * sin(k)) / l) * sqrt((t / cos(k)))) ^ 2.0); else tmp = 2.0 / ((((k * sqrt(2.0)) * (t ^ 1.5)) / l) ^ 2.0); end tmp_2 = tmp; end
code[t_, l_, k_] := If[LessEqual[t, -0.0106], N[(2.0 / N[(2.0 * N[(N[(N[(k * N[Power[t, 3.0], $MachinePrecision]), $MachinePrecision] / N[Cos[k], $MachinePrecision]), $MachinePrecision] * N[(N[Sin[k], $MachinePrecision] / N[Power[l, 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 5.5e-268], N[(2.0 * N[(N[Power[N[(l * N[Power[k, -2.0], $MachinePrecision]), $MachinePrecision], 2.0], $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 9.2e-83], 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] * N[Power[t, 1.5], $MachinePrecision]), $MachinePrecision] / l), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -0.0106:\\
\;\;\;\;\frac{2}{2 \cdot \left(\frac{k \cdot {t}^{3}}{\cos k} \cdot \frac{\sin k}{{\ell}^{2}}\right)}\\
\mathbf{elif}\;t \leq 5.5 \cdot 10^{-268}:\\
\;\;\;\;2 \cdot \frac{{\left(\ell \cdot {k}^{-2}\right)}^{2}}{t}\\
\mathbf{elif}\;t \leq 9.2 \cdot 10^{-83}:\\
\;\;\;\;\frac{2}{{\left(\frac{k \cdot \sin k}{\ell} \cdot \sqrt{\frac{t}{\cos k}}\right)}^{2}}\\
\mathbf{else}:\\
\;\;\;\;\frac{2}{{\left(\frac{\left(k \cdot \sqrt{2}\right) \cdot {t}^{1.5}}{\ell}\right)}^{2}}\\
\end{array}
\end{array}
if t < -0.0106Initial program 75.8%
Taylor expanded in k around 0 70.5%
Taylor expanded in t around inf 67.2%
associate-*r*67.2%
*-commutative67.2%
times-frac70.4%
Simplified70.4%
if -0.0106 < t < 5.4999999999999997e-268Initial program 43.2%
Taylor expanded in t around 0 79.3%
associate-*r*79.3%
*-commutative79.3%
times-frac77.5%
Simplified77.5%
Taylor expanded in k around 0 59.4%
associate-/r*59.5%
Simplified59.5%
expm1-log1p-u59.5%
expm1-udef57.9%
div-inv57.9%
pow-flip57.9%
metadata-eval57.9%
Applied egg-rr57.9%
expm1-def59.5%
expm1-log1p59.5%
Simplified59.5%
add-sqr-sqrt59.5%
pow259.5%
sqrt-prod59.5%
unpow259.5%
sqrt-prod37.2%
add-sqr-sqrt65.4%
sqrt-pow166.7%
metadata-eval66.7%
Applied egg-rr66.7%
if 5.4999999999999997e-268 < t < 9.19999999999999959e-83Initial program 38.1%
add-sqr-sqrt33.4%
pow233.4%
Applied egg-rr56.0%
Taylor expanded in k around inf 76.6%
if 9.19999999999999959e-83 < t Initial program 63.0%
add-sqr-sqrt39.7%
pow239.7%
Applied egg-rr53.3%
Taylor expanded in k around 0 68.4%
associate-*l/68.4%
sqrt-pow178.1%
metadata-eval78.1%
Applied egg-rr78.1%
Final simplification72.8%
(FPCore (t l k)
:precision binary64
(if (<= t -860000000.0)
(/ (pow l 2.0) (* (pow k 2.0) (pow t 3.0)))
(if (<= t 1.02e-52)
(* 2.0 (/ (pow (* l (pow k -2.0)) 2.0) t))
(/ 2.0 (pow (* (pow t 1.5) (/ k (/ l (sqrt 2.0)))) 2.0)))))
double code(double t, double l, double k) {
double tmp;
if (t <= -860000000.0) {
tmp = pow(l, 2.0) / (pow(k, 2.0) * pow(t, 3.0));
} else if (t <= 1.02e-52) {
tmp = 2.0 * (pow((l * pow(k, -2.0)), 2.0) / t);
} else {
tmp = 2.0 / pow((pow(t, 1.5) * (k / (l / sqrt(2.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 <= (-860000000.0d0)) then
tmp = (l ** 2.0d0) / ((k ** 2.0d0) * (t ** 3.0d0))
else if (t <= 1.02d-52) then
tmp = 2.0d0 * (((l * (k ** (-2.0d0))) ** 2.0d0) / t)
else
tmp = 2.0d0 / (((t ** 1.5d0) * (k / (l / sqrt(2.0d0)))) ** 2.0d0)
end if
code = tmp
end function
public static double code(double t, double l, double k) {
double tmp;
if (t <= -860000000.0) {
tmp = Math.pow(l, 2.0) / (Math.pow(k, 2.0) * Math.pow(t, 3.0));
} else if (t <= 1.02e-52) {
tmp = 2.0 * (Math.pow((l * Math.pow(k, -2.0)), 2.0) / t);
} else {
tmp = 2.0 / Math.pow((Math.pow(t, 1.5) * (k / (l / Math.sqrt(2.0)))), 2.0);
}
return tmp;
}
def code(t, l, k): tmp = 0 if t <= -860000000.0: tmp = math.pow(l, 2.0) / (math.pow(k, 2.0) * math.pow(t, 3.0)) elif t <= 1.02e-52: tmp = 2.0 * (math.pow((l * math.pow(k, -2.0)), 2.0) / t) else: tmp = 2.0 / math.pow((math.pow(t, 1.5) * (k / (l / math.sqrt(2.0)))), 2.0) return tmp
function code(t, l, k) tmp = 0.0 if (t <= -860000000.0) tmp = Float64((l ^ 2.0) / Float64((k ^ 2.0) * (t ^ 3.0))); elseif (t <= 1.02e-52) tmp = Float64(2.0 * Float64((Float64(l * (k ^ -2.0)) ^ 2.0) / t)); else tmp = Float64(2.0 / (Float64((t ^ 1.5) * Float64(k / Float64(l / sqrt(2.0)))) ^ 2.0)); end return tmp end
function tmp_2 = code(t, l, k) tmp = 0.0; if (t <= -860000000.0) tmp = (l ^ 2.0) / ((k ^ 2.0) * (t ^ 3.0)); elseif (t <= 1.02e-52) tmp = 2.0 * (((l * (k ^ -2.0)) ^ 2.0) / t); else tmp = 2.0 / (((t ^ 1.5) * (k / (l / sqrt(2.0)))) ^ 2.0); end tmp_2 = tmp; end
code[t_, l_, k_] := If[LessEqual[t, -860000000.0], N[(N[Power[l, 2.0], $MachinePrecision] / N[(N[Power[k, 2.0], $MachinePrecision] * N[Power[t, 3.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.02e-52], N[(2.0 * N[(N[Power[N[(l * N[Power[k, -2.0], $MachinePrecision]), $MachinePrecision], 2.0], $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision], N[(2.0 / N[Power[N[(N[Power[t, 1.5], $MachinePrecision] * N[(k / N[(l / N[Sqrt[2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -860000000:\\
\;\;\;\;\frac{{\ell}^{2}}{{k}^{2} \cdot {t}^{3}}\\
\mathbf{elif}\;t \leq 1.02 \cdot 10^{-52}:\\
\;\;\;\;2 \cdot \frac{{\left(\ell \cdot {k}^{-2}\right)}^{2}}{t}\\
\mathbf{else}:\\
\;\;\;\;\frac{2}{{\left({t}^{1.5} \cdot \frac{k}{\frac{\ell}{\sqrt{2}}}\right)}^{2}}\\
\end{array}
\end{array}
if t < -8.6e8Initial program 76.2%
Simplified66.5%
Taylor expanded in k around 0 60.5%
if -8.6e8 < t < 1.02000000000000009e-52Initial program 44.0%
Taylor expanded in t around 0 70.8%
associate-*r*70.8%
*-commutative70.8%
times-frac70.6%
Simplified70.6%
Taylor expanded in k around 0 55.4%
associate-/r*56.2%
Simplified56.2%
expm1-log1p-u56.2%
expm1-udef54.5%
div-inv54.5%
pow-flip54.5%
metadata-eval54.5%
Applied egg-rr54.5%
expm1-def56.2%
expm1-log1p56.2%
Simplified56.2%
add-sqr-sqrt56.2%
pow256.2%
sqrt-prod56.2%
unpow256.2%
sqrt-prod32.5%
add-sqr-sqrt62.4%
sqrt-pow164.7%
metadata-eval64.7%
Applied egg-rr64.7%
if 1.02000000000000009e-52 < t Initial program 62.4%
add-sqr-sqrt37.7%
pow237.7%
Applied egg-rr53.0%
Taylor expanded in k around 0 68.5%
expm1-log1p-u39.0%
expm1-udef37.5%
associate-*l/37.5%
sqrt-pow143.9%
metadata-eval43.9%
Applied egg-rr43.9%
expm1-def49.2%
expm1-log1p79.4%
associate-/l*76.8%
associate-/r/79.1%
associate-*l/79.1%
associate-/r/79.0%
Simplified79.0%
Final simplification67.8%
(FPCore (t l k)
:precision binary64
(if (<= t -940000000.0)
(/ (pow l 2.0) (* (pow k 2.0) (pow t 3.0)))
(if (<= t 2.8e-45)
(* 2.0 (/ (pow (* l (pow k -2.0)) 2.0) t))
(/ 2.0 (pow (* (pow t 1.5) (/ (* k (sqrt 2.0)) l)) 2.0)))))
double code(double t, double l, double k) {
double tmp;
if (t <= -940000000.0) {
tmp = pow(l, 2.0) / (pow(k, 2.0) * pow(t, 3.0));
} else if (t <= 2.8e-45) {
tmp = 2.0 * (pow((l * pow(k, -2.0)), 2.0) / t);
} else {
tmp = 2.0 / pow((pow(t, 1.5) * ((k * sqrt(2.0)) / l)), 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 <= (-940000000.0d0)) then
tmp = (l ** 2.0d0) / ((k ** 2.0d0) * (t ** 3.0d0))
else if (t <= 2.8d-45) then
tmp = 2.0d0 * (((l * (k ** (-2.0d0))) ** 2.0d0) / t)
else
tmp = 2.0d0 / (((t ** 1.5d0) * ((k * sqrt(2.0d0)) / l)) ** 2.0d0)
end if
code = tmp
end function
public static double code(double t, double l, double k) {
double tmp;
if (t <= -940000000.0) {
tmp = Math.pow(l, 2.0) / (Math.pow(k, 2.0) * Math.pow(t, 3.0));
} else if (t <= 2.8e-45) {
tmp = 2.0 * (Math.pow((l * Math.pow(k, -2.0)), 2.0) / t);
} else {
tmp = 2.0 / Math.pow((Math.pow(t, 1.5) * ((k * Math.sqrt(2.0)) / l)), 2.0);
}
return tmp;
}
def code(t, l, k): tmp = 0 if t <= -940000000.0: tmp = math.pow(l, 2.0) / (math.pow(k, 2.0) * math.pow(t, 3.0)) elif t <= 2.8e-45: tmp = 2.0 * (math.pow((l * math.pow(k, -2.0)), 2.0) / t) else: tmp = 2.0 / math.pow((math.pow(t, 1.5) * ((k * math.sqrt(2.0)) / l)), 2.0) return tmp
function code(t, l, k) tmp = 0.0 if (t <= -940000000.0) tmp = Float64((l ^ 2.0) / Float64((k ^ 2.0) * (t ^ 3.0))); elseif (t <= 2.8e-45) tmp = Float64(2.0 * Float64((Float64(l * (k ^ -2.0)) ^ 2.0) / t)); else tmp = Float64(2.0 / (Float64((t ^ 1.5) * Float64(Float64(k * sqrt(2.0)) / l)) ^ 2.0)); end return tmp end
function tmp_2 = code(t, l, k) tmp = 0.0; if (t <= -940000000.0) tmp = (l ^ 2.0) / ((k ^ 2.0) * (t ^ 3.0)); elseif (t <= 2.8e-45) tmp = 2.0 * (((l * (k ^ -2.0)) ^ 2.0) / t); else tmp = 2.0 / (((t ^ 1.5) * ((k * sqrt(2.0)) / l)) ^ 2.0); end tmp_2 = tmp; end
code[t_, l_, k_] := If[LessEqual[t, -940000000.0], N[(N[Power[l, 2.0], $MachinePrecision] / N[(N[Power[k, 2.0], $MachinePrecision] * N[Power[t, 3.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2.8e-45], N[(2.0 * N[(N[Power[N[(l * N[Power[k, -2.0], $MachinePrecision]), $MachinePrecision], 2.0], $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision], N[(2.0 / N[Power[N[(N[Power[t, 1.5], $MachinePrecision] * N[(N[(k * N[Sqrt[2.0], $MachinePrecision]), $MachinePrecision] / l), $MachinePrecision]), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -940000000:\\
\;\;\;\;\frac{{\ell}^{2}}{{k}^{2} \cdot {t}^{3}}\\
\mathbf{elif}\;t \leq 2.8 \cdot 10^{-45}:\\
\;\;\;\;2 \cdot \frac{{\left(\ell \cdot {k}^{-2}\right)}^{2}}{t}\\
\mathbf{else}:\\
\;\;\;\;\frac{2}{{\left({t}^{1.5} \cdot \frac{k \cdot \sqrt{2}}{\ell}\right)}^{2}}\\
\end{array}
\end{array}
if t < -9.4e8Initial program 76.2%
Simplified66.5%
Taylor expanded in k around 0 60.5%
if -9.4e8 < t < 2.8000000000000001e-45Initial program 44.0%
Taylor expanded in t around 0 70.8%
associate-*r*70.8%
*-commutative70.8%
times-frac70.6%
Simplified70.6%
Taylor expanded in k around 0 55.4%
associate-/r*56.2%
Simplified56.2%
expm1-log1p-u56.2%
expm1-udef54.5%
div-inv54.5%
pow-flip54.5%
metadata-eval54.5%
Applied egg-rr54.5%
expm1-def56.2%
expm1-log1p56.2%
Simplified56.2%
add-sqr-sqrt56.2%
pow256.2%
sqrt-prod56.2%
unpow256.2%
sqrt-prod32.5%
add-sqr-sqrt62.4%
sqrt-pow164.7%
metadata-eval64.7%
Applied egg-rr64.7%
if 2.8000000000000001e-45 < t Initial program 62.4%
add-sqr-sqrt37.7%
pow237.7%
Applied egg-rr53.0%
Taylor expanded in k around 0 68.5%
expm1-log1p-u68.1%
expm1-udef60.0%
sqrt-pow169.9%
metadata-eval69.9%
Applied egg-rr69.9%
expm1-def78.0%
expm1-log1p79.1%
Simplified79.1%
Final simplification67.8%
(FPCore (t l k)
:precision binary64
(if (<= t -880000000.0)
(/ (pow l 2.0) (* (pow k 2.0) (pow t 3.0)))
(if (<= t 1.05e-51)
(* 2.0 (/ (pow (* l (pow k -2.0)) 2.0) t))
(/ 2.0 (pow (/ (* (* k (sqrt 2.0)) (pow t 1.5)) l) 2.0)))))
double code(double t, double l, double k) {
double tmp;
if (t <= -880000000.0) {
tmp = pow(l, 2.0) / (pow(k, 2.0) * pow(t, 3.0));
} else if (t <= 1.05e-51) {
tmp = 2.0 * (pow((l * pow(k, -2.0)), 2.0) / t);
} else {
tmp = 2.0 / pow((((k * sqrt(2.0)) * pow(t, 1.5)) / l), 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 <= (-880000000.0d0)) then
tmp = (l ** 2.0d0) / ((k ** 2.0d0) * (t ** 3.0d0))
else if (t <= 1.05d-51) then
tmp = 2.0d0 * (((l * (k ** (-2.0d0))) ** 2.0d0) / t)
else
tmp = 2.0d0 / ((((k * sqrt(2.0d0)) * (t ** 1.5d0)) / l) ** 2.0d0)
end if
code = tmp
end function
public static double code(double t, double l, double k) {
double tmp;
if (t <= -880000000.0) {
tmp = Math.pow(l, 2.0) / (Math.pow(k, 2.0) * Math.pow(t, 3.0));
} else if (t <= 1.05e-51) {
tmp = 2.0 * (Math.pow((l * Math.pow(k, -2.0)), 2.0) / t);
} else {
tmp = 2.0 / Math.pow((((k * Math.sqrt(2.0)) * Math.pow(t, 1.5)) / l), 2.0);
}
return tmp;
}
def code(t, l, k): tmp = 0 if t <= -880000000.0: tmp = math.pow(l, 2.0) / (math.pow(k, 2.0) * math.pow(t, 3.0)) elif t <= 1.05e-51: tmp = 2.0 * (math.pow((l * math.pow(k, -2.0)), 2.0) / t) else: tmp = 2.0 / math.pow((((k * math.sqrt(2.0)) * math.pow(t, 1.5)) / l), 2.0) return tmp
function code(t, l, k) tmp = 0.0 if (t <= -880000000.0) tmp = Float64((l ^ 2.0) / Float64((k ^ 2.0) * (t ^ 3.0))); elseif (t <= 1.05e-51) tmp = Float64(2.0 * Float64((Float64(l * (k ^ -2.0)) ^ 2.0) / t)); else tmp = Float64(2.0 / (Float64(Float64(Float64(k * sqrt(2.0)) * (t ^ 1.5)) / l) ^ 2.0)); end return tmp end
function tmp_2 = code(t, l, k) tmp = 0.0; if (t <= -880000000.0) tmp = (l ^ 2.0) / ((k ^ 2.0) * (t ^ 3.0)); elseif (t <= 1.05e-51) tmp = 2.0 * (((l * (k ^ -2.0)) ^ 2.0) / t); else tmp = 2.0 / ((((k * sqrt(2.0)) * (t ^ 1.5)) / l) ^ 2.0); end tmp_2 = tmp; end
code[t_, l_, k_] := If[LessEqual[t, -880000000.0], N[(N[Power[l, 2.0], $MachinePrecision] / N[(N[Power[k, 2.0], $MachinePrecision] * N[Power[t, 3.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.05e-51], N[(2.0 * N[(N[Power[N[(l * N[Power[k, -2.0], $MachinePrecision]), $MachinePrecision], 2.0], $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision], N[(2.0 / N[Power[N[(N[(N[(k * N[Sqrt[2.0], $MachinePrecision]), $MachinePrecision] * N[Power[t, 1.5], $MachinePrecision]), $MachinePrecision] / l), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -880000000:\\
\;\;\;\;\frac{{\ell}^{2}}{{k}^{2} \cdot {t}^{3}}\\
\mathbf{elif}\;t \leq 1.05 \cdot 10^{-51}:\\
\;\;\;\;2 \cdot \frac{{\left(\ell \cdot {k}^{-2}\right)}^{2}}{t}\\
\mathbf{else}:\\
\;\;\;\;\frac{2}{{\left(\frac{\left(k \cdot \sqrt{2}\right) \cdot {t}^{1.5}}{\ell}\right)}^{2}}\\
\end{array}
\end{array}
if t < -8.8e8Initial program 76.2%
Simplified66.5%
Taylor expanded in k around 0 60.5%
if -8.8e8 < t < 1.05000000000000001e-51Initial program 44.0%
Taylor expanded in t around 0 70.8%
associate-*r*70.8%
*-commutative70.8%
times-frac70.6%
Simplified70.6%
Taylor expanded in k around 0 55.4%
associate-/r*56.2%
Simplified56.2%
expm1-log1p-u56.2%
expm1-udef54.5%
div-inv54.5%
pow-flip54.5%
metadata-eval54.5%
Applied egg-rr54.5%
expm1-def56.2%
expm1-log1p56.2%
Simplified56.2%
add-sqr-sqrt56.2%
pow256.2%
sqrt-prod56.2%
unpow256.2%
sqrt-prod32.5%
add-sqr-sqrt62.4%
sqrt-pow164.7%
metadata-eval64.7%
Applied egg-rr64.7%
if 1.05000000000000001e-51 < t Initial program 62.4%
add-sqr-sqrt37.7%
pow237.7%
Applied egg-rr53.0%
Taylor expanded in k around 0 68.5%
associate-*l/68.6%
sqrt-pow179.4%
metadata-eval79.4%
Applied egg-rr79.4%
Final simplification67.9%
(FPCore (t l k)
:precision binary64
(if (<= t -920000000.0)
(/ 2.0 (* 2.0 (/ (* k (* (sin k) (pow t 3.0))) (pow l 2.0))))
(if (<= t 1e-46)
(* 2.0 (/ (pow (* l (pow k -2.0)) 2.0) t))
(/ 2.0 (pow (/ (* (* k (sqrt 2.0)) (pow t 1.5)) l) 2.0)))))
double code(double t, double l, double k) {
double tmp;
if (t <= -920000000.0) {
tmp = 2.0 / (2.0 * ((k * (sin(k) * pow(t, 3.0))) / pow(l, 2.0)));
} else if (t <= 1e-46) {
tmp = 2.0 * (pow((l * pow(k, -2.0)), 2.0) / t);
} else {
tmp = 2.0 / pow((((k * sqrt(2.0)) * pow(t, 1.5)) / l), 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 <= (-920000000.0d0)) then
tmp = 2.0d0 / (2.0d0 * ((k * (sin(k) * (t ** 3.0d0))) / (l ** 2.0d0)))
else if (t <= 1d-46) then
tmp = 2.0d0 * (((l * (k ** (-2.0d0))) ** 2.0d0) / t)
else
tmp = 2.0d0 / ((((k * sqrt(2.0d0)) * (t ** 1.5d0)) / l) ** 2.0d0)
end if
code = tmp
end function
public static double code(double t, double l, double k) {
double tmp;
if (t <= -920000000.0) {
tmp = 2.0 / (2.0 * ((k * (Math.sin(k) * Math.pow(t, 3.0))) / Math.pow(l, 2.0)));
} else if (t <= 1e-46) {
tmp = 2.0 * (Math.pow((l * Math.pow(k, -2.0)), 2.0) / t);
} else {
tmp = 2.0 / Math.pow((((k * Math.sqrt(2.0)) * Math.pow(t, 1.5)) / l), 2.0);
}
return tmp;
}
def code(t, l, k): tmp = 0 if t <= -920000000.0: tmp = 2.0 / (2.0 * ((k * (math.sin(k) * math.pow(t, 3.0))) / math.pow(l, 2.0))) elif t <= 1e-46: tmp = 2.0 * (math.pow((l * math.pow(k, -2.0)), 2.0) / t) else: tmp = 2.0 / math.pow((((k * math.sqrt(2.0)) * math.pow(t, 1.5)) / l), 2.0) return tmp
function code(t, l, k) tmp = 0.0 if (t <= -920000000.0) tmp = Float64(2.0 / Float64(2.0 * Float64(Float64(k * Float64(sin(k) * (t ^ 3.0))) / (l ^ 2.0)))); elseif (t <= 1e-46) tmp = Float64(2.0 * Float64((Float64(l * (k ^ -2.0)) ^ 2.0) / t)); else tmp = Float64(2.0 / (Float64(Float64(Float64(k * sqrt(2.0)) * (t ^ 1.5)) / l) ^ 2.0)); end return tmp end
function tmp_2 = code(t, l, k) tmp = 0.0; if (t <= -920000000.0) tmp = 2.0 / (2.0 * ((k * (sin(k) * (t ^ 3.0))) / (l ^ 2.0))); elseif (t <= 1e-46) tmp = 2.0 * (((l * (k ^ -2.0)) ^ 2.0) / t); else tmp = 2.0 / ((((k * sqrt(2.0)) * (t ^ 1.5)) / l) ^ 2.0); end tmp_2 = tmp; end
code[t_, l_, k_] := If[LessEqual[t, -920000000.0], N[(2.0 / N[(2.0 * N[(N[(k * N[(N[Sin[k], $MachinePrecision] * N[Power[t, 3.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[Power[l, 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1e-46], N[(2.0 * N[(N[Power[N[(l * N[Power[k, -2.0], $MachinePrecision]), $MachinePrecision], 2.0], $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision], N[(2.0 / N[Power[N[(N[(N[(k * N[Sqrt[2.0], $MachinePrecision]), $MachinePrecision] * N[Power[t, 1.5], $MachinePrecision]), $MachinePrecision] / l), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -920000000:\\
\;\;\;\;\frac{2}{2 \cdot \frac{k \cdot \left(\sin k \cdot {t}^{3}\right)}{{\ell}^{2}}}\\
\mathbf{elif}\;t \leq 10^{-46}:\\
\;\;\;\;2 \cdot \frac{{\left(\ell \cdot {k}^{-2}\right)}^{2}}{t}\\
\mathbf{else}:\\
\;\;\;\;\frac{2}{{\left(\frac{\left(k \cdot \sqrt{2}\right) \cdot {t}^{1.5}}{\ell}\right)}^{2}}\\
\end{array}
\end{array}
if t < -9.2e8Initial program 76.2%
Taylor expanded in k around 0 70.6%
Taylor expanded in t around inf 67.2%
Taylor expanded in k around 0 67.5%
if -9.2e8 < t < 1.00000000000000002e-46Initial program 44.0%
Taylor expanded in t around 0 70.8%
associate-*r*70.8%
*-commutative70.8%
times-frac70.6%
Simplified70.6%
Taylor expanded in k around 0 55.4%
associate-/r*56.2%
Simplified56.2%
expm1-log1p-u56.2%
expm1-udef54.5%
div-inv54.5%
pow-flip54.5%
metadata-eval54.5%
Applied egg-rr54.5%
expm1-def56.2%
expm1-log1p56.2%
Simplified56.2%
add-sqr-sqrt56.2%
pow256.2%
sqrt-prod56.2%
unpow256.2%
sqrt-prod32.5%
add-sqr-sqrt62.4%
sqrt-pow164.7%
metadata-eval64.7%
Applied egg-rr64.7%
if 1.00000000000000002e-46 < t Initial program 62.4%
add-sqr-sqrt37.7%
pow237.7%
Applied egg-rr53.0%
Taylor expanded in k around 0 68.5%
associate-*l/68.6%
sqrt-pow179.4%
metadata-eval79.4%
Applied egg-rr79.4%
Final simplification69.6%
(FPCore (t l k) :precision binary64 (if (or (<= k 6e-139) (not (<= k 2.8e+80))) (* 2.0 (/ (pow (* l (pow k -2.0)) 2.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 ((k <= 6e-139) || !(k <= 2.8e+80)) {
tmp = 2.0 * (pow((l * pow(k, -2.0)), 2.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 ((k <= 6d-139) .or. (.not. (k <= 2.8d+80))) then
tmp = 2.0d0 * (((l * (k ** (-2.0d0))) ** 2.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 ((k <= 6e-139) || !(k <= 2.8e+80)) {
tmp = 2.0 * (Math.pow((l * Math.pow(k, -2.0)), 2.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 (k <= 6e-139) or not (k <= 2.8e+80): tmp = 2.0 * (math.pow((l * math.pow(k, -2.0)), 2.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 ((k <= 6e-139) || !(k <= 2.8e+80)) tmp = Float64(2.0 * Float64((Float64(l * (k ^ -2.0)) ^ 2.0) / t)); else tmp = Float64(Float64((l ^ 2.0) / (k ^ 2.0)) / (t ^ 3.0)); end return tmp end
function tmp_2 = code(t, l, k) tmp = 0.0; if ((k <= 6e-139) || ~((k <= 2.8e+80))) tmp = 2.0 * (((l * (k ^ -2.0)) ^ 2.0) / t); else tmp = ((l ^ 2.0) / (k ^ 2.0)) / (t ^ 3.0); end tmp_2 = tmp; end
code[t_, l_, k_] := If[Or[LessEqual[k, 6e-139], N[Not[LessEqual[k, 2.8e+80]], $MachinePrecision]], N[(2.0 * N[(N[Power[N[(l * N[Power[k, -2.0], $MachinePrecision]), $MachinePrecision], 2.0], $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision], N[(N[(N[Power[l, 2.0], $MachinePrecision] / N[Power[k, 2.0], $MachinePrecision]), $MachinePrecision] / N[Power[t, 3.0], $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;k \leq 6 \cdot 10^{-139} \lor \neg \left(k \leq 2.8 \cdot 10^{+80}\right):\\
\;\;\;\;2 \cdot \frac{{\left(\ell \cdot {k}^{-2}\right)}^{2}}{t}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{{\ell}^{2}}{{k}^{2}}}{{t}^{3}}\\
\end{array}
\end{array}
if k < 5.9999999999999998e-139 or 2.79999999999999984e80 < k Initial program 56.8%
Taylor expanded in t around 0 62.1%
associate-*r*62.1%
*-commutative62.1%
times-frac62.6%
Simplified62.6%
Taylor expanded in k around 0 55.8%
associate-/r*55.8%
Simplified55.8%
expm1-log1p-u55.8%
expm1-udef54.8%
div-inv54.8%
pow-flip54.8%
metadata-eval54.8%
Applied egg-rr54.8%
expm1-def55.8%
expm1-log1p55.8%
Simplified55.8%
add-sqr-sqrt55.8%
pow255.8%
sqrt-prod55.8%
unpow255.8%
sqrt-prod29.2%
add-sqr-sqrt60.3%
sqrt-pow160.8%
metadata-eval60.8%
Applied egg-rr60.8%
if 5.9999999999999998e-139 < k < 2.79999999999999984e80Initial program 59.1%
Simplified57.6%
Taylor expanded in k around 0 53.2%
Taylor expanded in t around 0 57.6%
associate-/r*57.6%
Simplified57.6%
Final simplification60.3%
(FPCore (t l k) :precision binary64 (if (or (<= k 8e-139) (not (<= k 2.8e+80))) (* 2.0 (/ (pow (* l (pow k -2.0)) 2.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 ((k <= 8e-139) || !(k <= 2.8e+80)) {
tmp = 2.0 * (pow((l * pow(k, -2.0)), 2.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 ((k <= 8d-139) .or. (.not. (k <= 2.8d+80))) then
tmp = 2.0d0 * (((l * (k ** (-2.0d0))) ** 2.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 ((k <= 8e-139) || !(k <= 2.8e+80)) {
tmp = 2.0 * (Math.pow((l * Math.pow(k, -2.0)), 2.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 (k <= 8e-139) or not (k <= 2.8e+80): tmp = 2.0 * (math.pow((l * math.pow(k, -2.0)), 2.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 ((k <= 8e-139) || !(k <= 2.8e+80)) tmp = Float64(2.0 * Float64((Float64(l * (k ^ -2.0)) ^ 2.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 ((k <= 8e-139) || ~((k <= 2.8e+80))) tmp = 2.0 * (((l * (k ^ -2.0)) ^ 2.0) / t); else tmp = (l ^ 2.0) / ((k ^ 2.0) * (t ^ 3.0)); end tmp_2 = tmp; end
code[t_, l_, k_] := If[Or[LessEqual[k, 8e-139], N[Not[LessEqual[k, 2.8e+80]], $MachinePrecision]], N[(2.0 * N[(N[Power[N[(l * N[Power[k, -2.0], $MachinePrecision]), $MachinePrecision], 2.0], $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}\;k \leq 8 \cdot 10^{-139} \lor \neg \left(k \leq 2.8 \cdot 10^{+80}\right):\\
\;\;\;\;2 \cdot \frac{{\left(\ell \cdot {k}^{-2}\right)}^{2}}{t}\\
\mathbf{else}:\\
\;\;\;\;\frac{{\ell}^{2}}{{k}^{2} \cdot {t}^{3}}\\
\end{array}
\end{array}
if k < 8.00000000000000024e-139 or 2.79999999999999984e80 < k Initial program 56.8%
Taylor expanded in t around 0 62.1%
associate-*r*62.1%
*-commutative62.1%
times-frac62.6%
Simplified62.6%
Taylor expanded in k around 0 55.8%
associate-/r*55.8%
Simplified55.8%
expm1-log1p-u55.8%
expm1-udef54.8%
div-inv54.8%
pow-flip54.8%
metadata-eval54.8%
Applied egg-rr54.8%
expm1-def55.8%
expm1-log1p55.8%
Simplified55.8%
add-sqr-sqrt55.8%
pow255.8%
sqrt-prod55.8%
unpow255.8%
sqrt-prod29.2%
add-sqr-sqrt60.3%
sqrt-pow160.8%
metadata-eval60.8%
Applied egg-rr60.8%
if 8.00000000000000024e-139 < k < 2.79999999999999984e80Initial program 59.1%
Simplified57.6%
Taylor expanded in k around 0 57.6%
Final simplification60.3%
(FPCore (t l k) :precision binary64 (if (or (<= k 6.5e-139) (not (<= k 2.8e+80))) (* 2.0 (/ (pow (* l (pow k -2.0)) 2.0) t)) (/ (* (* l l) (* 2.0 (pow t -3.0))) (* 2.0 (pow k 2.0)))))
double code(double t, double l, double k) {
double tmp;
if ((k <= 6.5e-139) || !(k <= 2.8e+80)) {
tmp = 2.0 * (pow((l * pow(k, -2.0)), 2.0) / t);
} else {
tmp = ((l * l) * (2.0 * pow(t, -3.0))) / (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 ((k <= 6.5d-139) .or. (.not. (k <= 2.8d+80))) then
tmp = 2.0d0 * (((l * (k ** (-2.0d0))) ** 2.0d0) / t)
else
tmp = ((l * l) * (2.0d0 * (t ** (-3.0d0)))) / (2.0d0 * (k ** 2.0d0))
end if
code = tmp
end function
public static double code(double t, double l, double k) {
double tmp;
if ((k <= 6.5e-139) || !(k <= 2.8e+80)) {
tmp = 2.0 * (Math.pow((l * Math.pow(k, -2.0)), 2.0) / t);
} else {
tmp = ((l * l) * (2.0 * Math.pow(t, -3.0))) / (2.0 * Math.pow(k, 2.0));
}
return tmp;
}
def code(t, l, k): tmp = 0 if (k <= 6.5e-139) or not (k <= 2.8e+80): tmp = 2.0 * (math.pow((l * math.pow(k, -2.0)), 2.0) / t) else: tmp = ((l * l) * (2.0 * math.pow(t, -3.0))) / (2.0 * math.pow(k, 2.0)) return tmp
function code(t, l, k) tmp = 0.0 if ((k <= 6.5e-139) || !(k <= 2.8e+80)) tmp = Float64(2.0 * Float64((Float64(l * (k ^ -2.0)) ^ 2.0) / t)); else tmp = Float64(Float64(Float64(l * l) * Float64(2.0 * (t ^ -3.0))) / Float64(2.0 * (k ^ 2.0))); end return tmp end
function tmp_2 = code(t, l, k) tmp = 0.0; if ((k <= 6.5e-139) || ~((k <= 2.8e+80))) tmp = 2.0 * (((l * (k ^ -2.0)) ^ 2.0) / t); else tmp = ((l * l) * (2.0 * (t ^ -3.0))) / (2.0 * (k ^ 2.0)); end tmp_2 = tmp; end
code[t_, l_, k_] := If[Or[LessEqual[k, 6.5e-139], N[Not[LessEqual[k, 2.8e+80]], $MachinePrecision]], N[(2.0 * N[(N[Power[N[(l * N[Power[k, -2.0], $MachinePrecision]), $MachinePrecision], 2.0], $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision], N[(N[(N[(l * l), $MachinePrecision] * N[(2.0 * N[Power[t, -3.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(2.0 * N[Power[k, 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;k \leq 6.5 \cdot 10^{-139} \lor \neg \left(k \leq 2.8 \cdot 10^{+80}\right):\\
\;\;\;\;2 \cdot \frac{{\left(\ell \cdot {k}^{-2}\right)}^{2}}{t}\\
\mathbf{else}:\\
\;\;\;\;\frac{\left(\ell \cdot \ell\right) \cdot \left(2 \cdot {t}^{-3}\right)}{2 \cdot {k}^{2}}\\
\end{array}
\end{array}
if k < 6.5e-139 or 2.79999999999999984e80 < k Initial program 56.8%
Taylor expanded in t around 0 62.1%
associate-*r*62.1%
*-commutative62.1%
times-frac62.6%
Simplified62.6%
Taylor expanded in k around 0 55.8%
associate-/r*55.8%
Simplified55.8%
expm1-log1p-u55.8%
expm1-udef54.8%
div-inv54.8%
pow-flip54.8%
metadata-eval54.8%
Applied egg-rr54.8%
expm1-def55.8%
expm1-log1p55.8%
Simplified55.8%
add-sqr-sqrt55.8%
pow255.8%
sqrt-prod55.8%
unpow255.8%
sqrt-prod29.2%
add-sqr-sqrt60.3%
sqrt-pow160.8%
metadata-eval60.8%
Applied egg-rr60.8%
if 6.5e-139 < k < 2.79999999999999984e80Initial program 59.1%
Simplified57.6%
Taylor expanded in k around 0 53.2%
div-inv53.2%
pow-flip53.2%
metadata-eval53.2%
Applied egg-rr53.2%
Final simplification59.6%
(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 57.2%
Taylor expanded in t around 0 61.3%
associate-*r*61.3%
*-commutative61.3%
times-frac61.2%
Simplified61.2%
Taylor expanded in k around 0 52.8%
associate-/r*52.8%
Simplified52.8%
expm1-log1p-u52.8%
expm1-udef52.0%
div-inv52.0%
pow-flip52.0%
metadata-eval52.0%
Applied egg-rr52.0%
expm1-def52.7%
expm1-log1p52.7%
Simplified52.7%
Final simplification52.7%
(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 57.2%
Taylor expanded in t around 0 61.3%
associate-*r*61.3%
*-commutative61.3%
times-frac61.2%
Simplified61.2%
Taylor expanded in k around 0 52.8%
associate-/r*52.8%
Simplified52.8%
Final simplification52.8%
(FPCore (t l k) :precision binary64 (* 2.0 (/ (pow (* l (pow k -2.0)) 2.0) t)))
double code(double t, double l, double k) {
return 2.0 * (pow((l * pow(k, -2.0)), 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 * (((l * (k ** (-2.0d0))) ** 2.0d0) / t)
end function
public static double code(double t, double l, double k) {
return 2.0 * (Math.pow((l * Math.pow(k, -2.0)), 2.0) / t);
}
def code(t, l, k): return 2.0 * (math.pow((l * math.pow(k, -2.0)), 2.0) / t)
function code(t, l, k) return Float64(2.0 * Float64((Float64(l * (k ^ -2.0)) ^ 2.0) / t)) end
function tmp = code(t, l, k) tmp = 2.0 * (((l * (k ^ -2.0)) ^ 2.0) / t); end
code[t_, l_, k_] := N[(2.0 * N[(N[Power[N[(l * N[Power[k, -2.0], $MachinePrecision]), $MachinePrecision], 2.0], $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
2 \cdot \frac{{\left(\ell \cdot {k}^{-2}\right)}^{2}}{t}
\end{array}
Initial program 57.2%
Taylor expanded in t around 0 61.3%
associate-*r*61.3%
*-commutative61.3%
times-frac61.2%
Simplified61.2%
Taylor expanded in k around 0 52.8%
associate-/r*52.8%
Simplified52.8%
expm1-log1p-u52.8%
expm1-udef52.0%
div-inv52.0%
pow-flip52.0%
metadata-eval52.0%
Applied egg-rr52.0%
expm1-def52.7%
expm1-log1p52.7%
Simplified52.7%
add-sqr-sqrt52.7%
pow252.7%
sqrt-prod52.7%
unpow252.7%
sqrt-prod28.2%
add-sqr-sqrt56.2%
sqrt-pow157.0%
metadata-eval57.0%
Applied egg-rr57.0%
Final simplification57.0%
herbie shell --seed 2023305
(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))))