
(FPCore (t l k) :precision binary64 (/ 2.0 (* (* (* (/ (pow t 3.0) (* l l)) (sin k)) (tan k)) (- (+ 1.0 (pow (/ k t) 2.0)) 1.0))))
double code(double t, double l, double k) {
return 2.0 / ((((pow(t, 3.0) / (l * l)) * sin(k)) * tan(k)) * ((1.0 + pow((k / t), 2.0)) - 1.0));
}
real(8) function code(t, l, k)
real(8), intent (in) :: t
real(8), intent (in) :: l
real(8), intent (in) :: k
code = 2.0d0 / (((((t ** 3.0d0) / (l * l)) * sin(k)) * tan(k)) * ((1.0d0 + ((k / t) ** 2.0d0)) - 1.0d0))
end function
public static double code(double t, double l, double k) {
return 2.0 / ((((Math.pow(t, 3.0) / (l * l)) * Math.sin(k)) * Math.tan(k)) * ((1.0 + Math.pow((k / t), 2.0)) - 1.0));
}
def code(t, l, k): return 2.0 / ((((math.pow(t, 3.0) / (l * l)) * math.sin(k)) * math.tan(k)) * ((1.0 + math.pow((k / t), 2.0)) - 1.0))
function code(t, l, k) return Float64(2.0 / Float64(Float64(Float64(Float64((t ^ 3.0) / Float64(l * l)) * sin(k)) * tan(k)) * Float64(Float64(1.0 + (Float64(k / t) ^ 2.0)) - 1.0))) end
function tmp = code(t, l, k) tmp = 2.0 / (((((t ^ 3.0) / (l * l)) * sin(k)) * tan(k)) * ((1.0 + ((k / t) ^ 2.0)) - 1.0)); end
code[t_, l_, k_] := N[(2.0 / N[(N[(N[(N[(N[Power[t, 3.0], $MachinePrecision] / N[(l * l), $MachinePrecision]), $MachinePrecision] * N[Sin[k], $MachinePrecision]), $MachinePrecision] * N[Tan[k], $MachinePrecision]), $MachinePrecision] * N[(N[(1.0 + N[Power[N[(k / t), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision] - 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{2}{\left(\left(\frac{{t}^{3}}{\ell \cdot \ell} \cdot \sin k\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) - 1\right)}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 27 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (t l k) :precision binary64 (/ 2.0 (* (* (* (/ (pow t 3.0) (* l l)) (sin k)) (tan k)) (- (+ 1.0 (pow (/ k t) 2.0)) 1.0))))
double code(double t, double l, double k) {
return 2.0 / ((((pow(t, 3.0) / (l * l)) * sin(k)) * tan(k)) * ((1.0 + pow((k / t), 2.0)) - 1.0));
}
real(8) function code(t, l, k)
real(8), intent (in) :: t
real(8), intent (in) :: l
real(8), intent (in) :: k
code = 2.0d0 / (((((t ** 3.0d0) / (l * l)) * sin(k)) * tan(k)) * ((1.0d0 + ((k / t) ** 2.0d0)) - 1.0d0))
end function
public static double code(double t, double l, double k) {
return 2.0 / ((((Math.pow(t, 3.0) / (l * l)) * Math.sin(k)) * Math.tan(k)) * ((1.0 + Math.pow((k / t), 2.0)) - 1.0));
}
def code(t, l, k): return 2.0 / ((((math.pow(t, 3.0) / (l * l)) * math.sin(k)) * math.tan(k)) * ((1.0 + math.pow((k / t), 2.0)) - 1.0))
function code(t, l, k) return Float64(2.0 / Float64(Float64(Float64(Float64((t ^ 3.0) / Float64(l * l)) * sin(k)) * tan(k)) * Float64(Float64(1.0 + (Float64(k / t) ^ 2.0)) - 1.0))) end
function tmp = code(t, l, k) tmp = 2.0 / (((((t ^ 3.0) / (l * l)) * sin(k)) * tan(k)) * ((1.0 + ((k / t) ^ 2.0)) - 1.0)); end
code[t_, l_, k_] := N[(2.0 / N[(N[(N[(N[(N[Power[t, 3.0], $MachinePrecision] / N[(l * l), $MachinePrecision]), $MachinePrecision] * N[Sin[k], $MachinePrecision]), $MachinePrecision] * N[Tan[k], $MachinePrecision]), $MachinePrecision] * N[(N[(1.0 + N[Power[N[(k / t), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision] - 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{2}{\left(\left(\frac{{t}^{3}}{\ell \cdot \ell} \cdot \sin k\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) - 1\right)}
\end{array}
t_m = (fabs.f64 t)
t_s = (copysign.f64 1 t)
(FPCore (t_s t_m l k)
:precision binary64
(let* ((t_2 (pow (sin k) -2.0)))
(*
t_s
(if (<= t_m 2.25e-166)
(/ (* 2.0 (* (pow l 2.0) (* (cos k) t_2))) (* t_m (pow k 2.0)))
(if (<= t_m 1.02e+179)
(*
(/ 2.0 (/ k t_m))
(/
(pow
(/ (pow (cbrt l) 2.0) (* t_m (* (cbrt (tan k)) (cbrt (sin k)))))
3.0)
(/ k t_m)))
(* (* 2.0 (pow k -2.0)) (/ (* t_2 (* (pow l 2.0) (cos k))) t_m)))))))t_m = fabs(t);
t_s = copysign(1.0, t);
double code(double t_s, double t_m, double l, double k) {
double t_2 = pow(sin(k), -2.0);
double tmp;
if (t_m <= 2.25e-166) {
tmp = (2.0 * (pow(l, 2.0) * (cos(k) * t_2))) / (t_m * pow(k, 2.0));
} else if (t_m <= 1.02e+179) {
tmp = (2.0 / (k / t_m)) * (pow((pow(cbrt(l), 2.0) / (t_m * (cbrt(tan(k)) * cbrt(sin(k))))), 3.0) / (k / t_m));
} else {
tmp = (2.0 * pow(k, -2.0)) * ((t_2 * (pow(l, 2.0) * cos(k))) / t_m);
}
return t_s * tmp;
}
t_m = Math.abs(t);
t_s = Math.copySign(1.0, t);
public static double code(double t_s, double t_m, double l, double k) {
double t_2 = Math.pow(Math.sin(k), -2.0);
double tmp;
if (t_m <= 2.25e-166) {
tmp = (2.0 * (Math.pow(l, 2.0) * (Math.cos(k) * t_2))) / (t_m * Math.pow(k, 2.0));
} else if (t_m <= 1.02e+179) {
tmp = (2.0 / (k / t_m)) * (Math.pow((Math.pow(Math.cbrt(l), 2.0) / (t_m * (Math.cbrt(Math.tan(k)) * Math.cbrt(Math.sin(k))))), 3.0) / (k / t_m));
} else {
tmp = (2.0 * Math.pow(k, -2.0)) * ((t_2 * (Math.pow(l, 2.0) * Math.cos(k))) / t_m);
}
return t_s * tmp;
}
t_m = abs(t) t_s = copysign(1.0, t) function code(t_s, t_m, l, k) t_2 = sin(k) ^ -2.0 tmp = 0.0 if (t_m <= 2.25e-166) tmp = Float64(Float64(2.0 * Float64((l ^ 2.0) * Float64(cos(k) * t_2))) / Float64(t_m * (k ^ 2.0))); elseif (t_m <= 1.02e+179) tmp = Float64(Float64(2.0 / Float64(k / t_m)) * Float64((Float64((cbrt(l) ^ 2.0) / Float64(t_m * Float64(cbrt(tan(k)) * cbrt(sin(k))))) ^ 3.0) / Float64(k / t_m))); else tmp = Float64(Float64(2.0 * (k ^ -2.0)) * Float64(Float64(t_2 * Float64((l ^ 2.0) * cos(k))) / t_m)); end return Float64(t_s * tmp) end
t_m = N[Abs[t], $MachinePrecision]
t_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[t]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
code[t$95$s_, t$95$m_, l_, k_] := Block[{t$95$2 = N[Power[N[Sin[k], $MachinePrecision], -2.0], $MachinePrecision]}, N[(t$95$s * If[LessEqual[t$95$m, 2.25e-166], N[(N[(2.0 * N[(N[Power[l, 2.0], $MachinePrecision] * N[(N[Cos[k], $MachinePrecision] * t$95$2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(t$95$m * N[Power[k, 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$m, 1.02e+179], N[(N[(2.0 / N[(k / t$95$m), $MachinePrecision]), $MachinePrecision] * N[(N[Power[N[(N[Power[N[Power[l, 1/3], $MachinePrecision], 2.0], $MachinePrecision] / N[(t$95$m * N[(N[Power[N[Tan[k], $MachinePrecision], 1/3], $MachinePrecision] * N[Power[N[Sin[k], $MachinePrecision], 1/3], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 3.0], $MachinePrecision] / N[(k / t$95$m), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(2.0 * N[Power[k, -2.0], $MachinePrecision]), $MachinePrecision] * N[(N[(t$95$2 * N[(N[Power[l, 2.0], $MachinePrecision] * N[Cos[k], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / t$95$m), $MachinePrecision]), $MachinePrecision]]]), $MachinePrecision]]
\begin{array}{l}
t_m = \left|t\right|
\\
t_s = \mathsf{copysign}\left(1, t\right)
\\
\begin{array}{l}
t_2 := {\sin k}^{-2}\\
t\_s \cdot \begin{array}{l}
\mathbf{if}\;t\_m \leq 2.25 \cdot 10^{-166}:\\
\;\;\;\;\frac{2 \cdot \left({\ell}^{2} \cdot \left(\cos k \cdot t\_2\right)\right)}{t\_m \cdot {k}^{2}}\\
\mathbf{elif}\;t\_m \leq 1.02 \cdot 10^{+179}:\\
\;\;\;\;\frac{2}{\frac{k}{t\_m}} \cdot \frac{{\left(\frac{{\left(\sqrt[3]{\ell}\right)}^{2}}{t\_m \cdot \left(\sqrt[3]{\tan k} \cdot \sqrt[3]{\sin k}\right)}\right)}^{3}}{\frac{k}{t\_m}}\\
\mathbf{else}:\\
\;\;\;\;\left(2 \cdot {k}^{-2}\right) \cdot \frac{t\_2 \cdot \left({\ell}^{2} \cdot \cos k\right)}{t\_m}\\
\end{array}
\end{array}
\end{array}
if t < 2.2499999999999999e-166Initial program 35.1%
associate-*l*35.1%
associate-/r*35.1%
sub-neg35.1%
distribute-rgt-in29.6%
unpow229.6%
times-frac19.8%
sqr-neg19.8%
times-frac29.6%
unpow229.6%
distribute-rgt-in35.1%
+-commutative35.1%
associate-+l+43.6%
Simplified43.6%
Taylor expanded in t around 0 79.1%
associate-*r/79.1%
associate-*r*79.1%
times-frac79.1%
Simplified79.1%
associate-*l/79.1%
div-inv79.1%
pow-flip79.1%
metadata-eval79.1%
Applied egg-rr79.1%
times-frac78.6%
Simplified78.6%
frac-times79.1%
associate-*l*79.1%
Applied egg-rr79.1%
if 2.2499999999999999e-166 < t < 1.0199999999999999e179Initial program 44.1%
associate-*l*44.1%
associate-/r*44.8%
sub-neg44.8%
distribute-rgt-in44.8%
unpow244.8%
times-frac43.4%
sqr-neg43.4%
times-frac44.8%
unpow244.8%
distribute-rgt-in44.8%
+-commutative44.8%
associate-+l+53.4%
Simplified53.4%
+-rgt-identity53.4%
associate-/r*53.4%
unpow253.4%
associate-/r*53.4%
associate-/l/53.4%
*-commutative53.4%
associate-/r*53.4%
associate-/r/53.4%
Applied egg-rr59.2%
add-cube-cbrt59.1%
pow259.1%
cbrt-div59.1%
unpow259.1%
cbrt-prod59.0%
pow259.0%
cbrt-prod59.0%
unpow359.0%
add-cbrt-cube59.0%
cbrt-div59.0%
unpow259.0%
cbrt-prod68.7%
pow268.7%
Applied egg-rr85.6%
pow-plus85.6%
metadata-eval85.6%
Simplified85.6%
*-commutative85.6%
cbrt-prod86.7%
Applied egg-rr86.7%
if 1.0199999999999999e179 < t Initial program 9.1%
associate-*l*9.1%
associate-/r*9.1%
sub-neg9.1%
distribute-rgt-in9.1%
unpow29.1%
times-frac0.0%
sqr-neg0.0%
times-frac9.1%
unpow29.1%
distribute-rgt-in9.1%
+-commutative9.1%
associate-+l+36.7%
Simplified36.7%
Taylor expanded in t around 0 78.0%
associate-*r/78.0%
associate-*r*77.9%
times-frac77.9%
Simplified77.9%
associate-*l/77.9%
div-inv77.8%
pow-flip77.9%
metadata-eval77.9%
Applied egg-rr77.9%
times-frac82.2%
Simplified82.2%
expm1-log1p-u81.1%
expm1-udef68.4%
div-inv68.4%
pow-flip68.4%
metadata-eval68.4%
Applied egg-rr68.4%
expm1-def81.1%
expm1-log1p82.3%
Simplified82.3%
Final simplification81.5%
t_m = (fabs.f64 t)
t_s = (copysign.f64 1 t)
(FPCore (t_s t_m l k)
:precision binary64
(let* ((t_2 (pow (sin k) -2.0)))
(*
t_s
(if (<= t_m 7.8e-168)
(/ (* 2.0 (* (pow l 2.0) (* (cos k) t_2))) (* t_m (pow k 2.0)))
(if (<= t_m 6.4e+178)
(*
(/ 2.0 (/ k t_m))
(/
(pow (/ (pow (cbrt l) 2.0) (* t_m (cbrt (* (sin k) (tan k))))) 3.0)
(/ k t_m)))
(* (* 2.0 (pow k -2.0)) (/ (* t_2 (* (pow l 2.0) (cos k))) t_m)))))))t_m = fabs(t);
t_s = copysign(1.0, t);
double code(double t_s, double t_m, double l, double k) {
double t_2 = pow(sin(k), -2.0);
double tmp;
if (t_m <= 7.8e-168) {
tmp = (2.0 * (pow(l, 2.0) * (cos(k) * t_2))) / (t_m * pow(k, 2.0));
} else if (t_m <= 6.4e+178) {
tmp = (2.0 / (k / t_m)) * (pow((pow(cbrt(l), 2.0) / (t_m * cbrt((sin(k) * tan(k))))), 3.0) / (k / t_m));
} else {
tmp = (2.0 * pow(k, -2.0)) * ((t_2 * (pow(l, 2.0) * cos(k))) / t_m);
}
return t_s * tmp;
}
t_m = Math.abs(t);
t_s = Math.copySign(1.0, t);
public static double code(double t_s, double t_m, double l, double k) {
double t_2 = Math.pow(Math.sin(k), -2.0);
double tmp;
if (t_m <= 7.8e-168) {
tmp = (2.0 * (Math.pow(l, 2.0) * (Math.cos(k) * t_2))) / (t_m * Math.pow(k, 2.0));
} else if (t_m <= 6.4e+178) {
tmp = (2.0 / (k / t_m)) * (Math.pow((Math.pow(Math.cbrt(l), 2.0) / (t_m * Math.cbrt((Math.sin(k) * Math.tan(k))))), 3.0) / (k / t_m));
} else {
tmp = (2.0 * Math.pow(k, -2.0)) * ((t_2 * (Math.pow(l, 2.0) * Math.cos(k))) / t_m);
}
return t_s * tmp;
}
t_m = abs(t) t_s = copysign(1.0, t) function code(t_s, t_m, l, k) t_2 = sin(k) ^ -2.0 tmp = 0.0 if (t_m <= 7.8e-168) tmp = Float64(Float64(2.0 * Float64((l ^ 2.0) * Float64(cos(k) * t_2))) / Float64(t_m * (k ^ 2.0))); elseif (t_m <= 6.4e+178) tmp = Float64(Float64(2.0 / Float64(k / t_m)) * Float64((Float64((cbrt(l) ^ 2.0) / Float64(t_m * cbrt(Float64(sin(k) * tan(k))))) ^ 3.0) / Float64(k / t_m))); else tmp = Float64(Float64(2.0 * (k ^ -2.0)) * Float64(Float64(t_2 * Float64((l ^ 2.0) * cos(k))) / t_m)); end return Float64(t_s * tmp) end
t_m = N[Abs[t], $MachinePrecision]
t_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[t]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
code[t$95$s_, t$95$m_, l_, k_] := Block[{t$95$2 = N[Power[N[Sin[k], $MachinePrecision], -2.0], $MachinePrecision]}, N[(t$95$s * If[LessEqual[t$95$m, 7.8e-168], N[(N[(2.0 * N[(N[Power[l, 2.0], $MachinePrecision] * N[(N[Cos[k], $MachinePrecision] * t$95$2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(t$95$m * N[Power[k, 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$m, 6.4e+178], N[(N[(2.0 / N[(k / t$95$m), $MachinePrecision]), $MachinePrecision] * N[(N[Power[N[(N[Power[N[Power[l, 1/3], $MachinePrecision], 2.0], $MachinePrecision] / N[(t$95$m * N[Power[N[(N[Sin[k], $MachinePrecision] * N[Tan[k], $MachinePrecision]), $MachinePrecision], 1/3], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 3.0], $MachinePrecision] / N[(k / t$95$m), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(2.0 * N[Power[k, -2.0], $MachinePrecision]), $MachinePrecision] * N[(N[(t$95$2 * N[(N[Power[l, 2.0], $MachinePrecision] * N[Cos[k], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / t$95$m), $MachinePrecision]), $MachinePrecision]]]), $MachinePrecision]]
\begin{array}{l}
t_m = \left|t\right|
\\
t_s = \mathsf{copysign}\left(1, t\right)
\\
\begin{array}{l}
t_2 := {\sin k}^{-2}\\
t\_s \cdot \begin{array}{l}
\mathbf{if}\;t\_m \leq 7.8 \cdot 10^{-168}:\\
\;\;\;\;\frac{2 \cdot \left({\ell}^{2} \cdot \left(\cos k \cdot t\_2\right)\right)}{t\_m \cdot {k}^{2}}\\
\mathbf{elif}\;t\_m \leq 6.4 \cdot 10^{+178}:\\
\;\;\;\;\frac{2}{\frac{k}{t\_m}} \cdot \frac{{\left(\frac{{\left(\sqrt[3]{\ell}\right)}^{2}}{t\_m \cdot \sqrt[3]{\sin k \cdot \tan k}}\right)}^{3}}{\frac{k}{t\_m}}\\
\mathbf{else}:\\
\;\;\;\;\left(2 \cdot {k}^{-2}\right) \cdot \frac{t\_2 \cdot \left({\ell}^{2} \cdot \cos k\right)}{t\_m}\\
\end{array}
\end{array}
\end{array}
if t < 7.80000000000000025e-168Initial program 35.1%
associate-*l*35.1%
associate-/r*35.1%
sub-neg35.1%
distribute-rgt-in29.6%
unpow229.6%
times-frac19.8%
sqr-neg19.8%
times-frac29.6%
unpow229.6%
distribute-rgt-in35.1%
+-commutative35.1%
associate-+l+43.6%
Simplified43.6%
Taylor expanded in t around 0 79.1%
associate-*r/79.1%
associate-*r*79.1%
times-frac79.1%
Simplified79.1%
associate-*l/79.1%
div-inv79.1%
pow-flip79.1%
metadata-eval79.1%
Applied egg-rr79.1%
times-frac78.6%
Simplified78.6%
frac-times79.1%
associate-*l*79.1%
Applied egg-rr79.1%
if 7.80000000000000025e-168 < t < 6.4e178Initial program 44.1%
associate-*l*44.1%
associate-/r*44.8%
sub-neg44.8%
distribute-rgt-in44.8%
unpow244.8%
times-frac43.4%
sqr-neg43.4%
times-frac44.8%
unpow244.8%
distribute-rgt-in44.8%
+-commutative44.8%
associate-+l+53.4%
Simplified53.4%
+-rgt-identity53.4%
associate-/r*53.4%
unpow253.4%
associate-/r*53.4%
associate-/l/53.4%
*-commutative53.4%
associate-/r*53.4%
associate-/r/53.4%
Applied egg-rr59.2%
add-cube-cbrt59.1%
pow259.1%
cbrt-div59.1%
unpow259.1%
cbrt-prod59.0%
pow259.0%
cbrt-prod59.0%
unpow359.0%
add-cbrt-cube59.0%
cbrt-div59.0%
unpow259.0%
cbrt-prod68.7%
pow268.7%
Applied egg-rr85.6%
pow-plus85.6%
metadata-eval85.6%
Simplified85.6%
if 6.4e178 < t Initial program 9.1%
associate-*l*9.1%
associate-/r*9.1%
sub-neg9.1%
distribute-rgt-in9.1%
unpow29.1%
times-frac0.0%
sqr-neg0.0%
times-frac9.1%
unpow29.1%
distribute-rgt-in9.1%
+-commutative9.1%
associate-+l+36.7%
Simplified36.7%
Taylor expanded in t around 0 78.0%
associate-*r/78.0%
associate-*r*77.9%
times-frac77.9%
Simplified77.9%
associate-*l/77.9%
div-inv77.8%
pow-flip77.9%
metadata-eval77.9%
Applied egg-rr77.9%
times-frac82.2%
Simplified82.2%
expm1-log1p-u81.1%
expm1-udef68.4%
div-inv68.4%
pow-flip68.4%
metadata-eval68.4%
Applied egg-rr68.4%
expm1-def81.1%
expm1-log1p82.3%
Simplified82.3%
Final simplification81.2%
t_m = (fabs.f64 t)
t_s = (copysign.f64 1 t)
(FPCore (t_s t_m l k)
:precision binary64
(*
t_s
(if (<= (* l l) 0.0)
(/
(/ 2.0 (pow (* (cbrt (* (tan k) (/ (sin k) l))) (/ t_m (cbrt l))) 3.0))
(pow (/ k t_m) 2.0))
(if (<= (* l l) 1e+225)
(/
(* 2.0 (* (pow l 2.0) (* (cos k) (pow (sin k) -2.0))))
(* t_m (pow k 2.0)))
(*
(/ 2.0 (/ k t_m))
(/
(/ (pow (/ (pow (cbrt l) 2.0) t_m) 3.0) (* (sin k) (tan k)))
(/ k t_m)))))))t_m = fabs(t);
t_s = copysign(1.0, t);
double code(double t_s, double t_m, double l, double k) {
double tmp;
if ((l * l) <= 0.0) {
tmp = (2.0 / pow((cbrt((tan(k) * (sin(k) / l))) * (t_m / cbrt(l))), 3.0)) / pow((k / t_m), 2.0);
} else if ((l * l) <= 1e+225) {
tmp = (2.0 * (pow(l, 2.0) * (cos(k) * pow(sin(k), -2.0)))) / (t_m * pow(k, 2.0));
} else {
tmp = (2.0 / (k / t_m)) * ((pow((pow(cbrt(l), 2.0) / t_m), 3.0) / (sin(k) * tan(k))) / (k / t_m));
}
return t_s * tmp;
}
t_m = Math.abs(t);
t_s = Math.copySign(1.0, t);
public static double code(double t_s, double t_m, double l, double k) {
double tmp;
if ((l * l) <= 0.0) {
tmp = (2.0 / Math.pow((Math.cbrt((Math.tan(k) * (Math.sin(k) / l))) * (t_m / Math.cbrt(l))), 3.0)) / Math.pow((k / t_m), 2.0);
} else if ((l * l) <= 1e+225) {
tmp = (2.0 * (Math.pow(l, 2.0) * (Math.cos(k) * Math.pow(Math.sin(k), -2.0)))) / (t_m * Math.pow(k, 2.0));
} else {
tmp = (2.0 / (k / t_m)) * ((Math.pow((Math.pow(Math.cbrt(l), 2.0) / t_m), 3.0) / (Math.sin(k) * Math.tan(k))) / (k / t_m));
}
return t_s * tmp;
}
t_m = abs(t) t_s = copysign(1.0, t) function code(t_s, t_m, l, k) tmp = 0.0 if (Float64(l * l) <= 0.0) tmp = Float64(Float64(2.0 / (Float64(cbrt(Float64(tan(k) * Float64(sin(k) / l))) * Float64(t_m / cbrt(l))) ^ 3.0)) / (Float64(k / t_m) ^ 2.0)); elseif (Float64(l * l) <= 1e+225) tmp = Float64(Float64(2.0 * Float64((l ^ 2.0) * Float64(cos(k) * (sin(k) ^ -2.0)))) / Float64(t_m * (k ^ 2.0))); else tmp = Float64(Float64(2.0 / Float64(k / t_m)) * Float64(Float64((Float64((cbrt(l) ^ 2.0) / t_m) ^ 3.0) / Float64(sin(k) * tan(k))) / Float64(k / t_m))); end return Float64(t_s * tmp) end
t_m = N[Abs[t], $MachinePrecision]
t_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[t]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
code[t$95$s_, t$95$m_, l_, k_] := N[(t$95$s * If[LessEqual[N[(l * l), $MachinePrecision], 0.0], N[(N[(2.0 / N[Power[N[(N[Power[N[(N[Tan[k], $MachinePrecision] * N[(N[Sin[k], $MachinePrecision] / l), $MachinePrecision]), $MachinePrecision], 1/3], $MachinePrecision] * N[(t$95$m / N[Power[l, 1/3], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 3.0], $MachinePrecision]), $MachinePrecision] / N[Power[N[(k / t$95$m), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(l * l), $MachinePrecision], 1e+225], N[(N[(2.0 * N[(N[Power[l, 2.0], $MachinePrecision] * N[(N[Cos[k], $MachinePrecision] * N[Power[N[Sin[k], $MachinePrecision], -2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(t$95$m * N[Power[k, 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(2.0 / N[(k / t$95$m), $MachinePrecision]), $MachinePrecision] * N[(N[(N[Power[N[(N[Power[N[Power[l, 1/3], $MachinePrecision], 2.0], $MachinePrecision] / t$95$m), $MachinePrecision], 3.0], $MachinePrecision] / N[(N[Sin[k], $MachinePrecision] * N[Tan[k], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(k / t$95$m), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]), $MachinePrecision]
\begin{array}{l}
t_m = \left|t\right|
\\
t_s = \mathsf{copysign}\left(1, t\right)
\\
t\_s \cdot \begin{array}{l}
\mathbf{if}\;\ell \cdot \ell \leq 0:\\
\;\;\;\;\frac{\frac{2}{{\left(\sqrt[3]{\tan k \cdot \frac{\sin k}{\ell}} \cdot \frac{t\_m}{\sqrt[3]{\ell}}\right)}^{3}}}{{\left(\frac{k}{t\_m}\right)}^{2}}\\
\mathbf{elif}\;\ell \cdot \ell \leq 10^{+225}:\\
\;\;\;\;\frac{2 \cdot \left({\ell}^{2} \cdot \left(\cos k \cdot {\sin k}^{-2}\right)\right)}{t\_m \cdot {k}^{2}}\\
\mathbf{else}:\\
\;\;\;\;\frac{2}{\frac{k}{t\_m}} \cdot \frac{\frac{{\left(\frac{{\left(\sqrt[3]{\ell}\right)}^{2}}{t\_m}\right)}^{3}}{\sin k \cdot \tan k}}{\frac{k}{t\_m}}\\
\end{array}
\end{array}
if (*.f64 l l) < 0.0Initial program 32.4%
associate-/r*32.4%
associate-*l*32.4%
associate-*l/32.4%
associate-/l*32.4%
+-commutative32.4%
unpow232.4%
sqr-neg32.4%
distribute-frac-neg32.4%
distribute-frac-neg32.4%
unpow232.4%
associate--l+48.1%
metadata-eval48.1%
+-rgt-identity48.1%
unpow248.1%
distribute-frac-neg48.1%
distribute-frac-neg48.1%
sqr-neg48.1%
unpow248.1%
Simplified48.1%
associate-/l*64.3%
associate-/r/66.4%
associate-/l*66.3%
Applied egg-rr66.3%
add-cube-cbrt66.2%
pow366.2%
*-commutative66.2%
cbrt-prod66.1%
associate-/r/66.2%
cbrt-div66.2%
unpow366.1%
add-cbrt-cube80.0%
Applied egg-rr80.0%
if 0.0 < (*.f64 l l) < 9.99999999999999928e224Initial program 38.4%
associate-*l*38.4%
associate-/r*38.8%
sub-neg38.8%
distribute-rgt-in35.2%
unpow235.2%
times-frac24.5%
sqr-neg24.5%
times-frac35.2%
unpow235.2%
distribute-rgt-in38.8%
+-commutative38.8%
associate-+l+52.8%
Simplified52.8%
Taylor expanded in t around 0 93.8%
associate-*r/93.9%
associate-*r*93.9%
times-frac93.9%
Simplified93.9%
associate-*l/93.9%
div-inv93.8%
pow-flip93.9%
metadata-eval93.9%
Applied egg-rr93.9%
times-frac91.3%
Simplified91.3%
frac-times93.9%
associate-*l*93.9%
Applied egg-rr93.9%
if 9.99999999999999928e224 < (*.f64 l l) Initial program 33.4%
associate-*l*33.4%
associate-/r*33.4%
sub-neg33.4%
distribute-rgt-in27.1%
unpow227.1%
times-frac20.8%
sqr-neg20.8%
times-frac27.1%
unpow227.1%
distribute-rgt-in33.4%
+-commutative33.4%
associate-+l+33.6%
Simplified33.6%
+-rgt-identity33.6%
associate-/r*33.6%
unpow233.6%
associate-/r*33.6%
associate-/l/33.6%
*-commutative33.6%
associate-/r*33.6%
associate-/r/33.6%
Applied egg-rr50.1%
add-cube-cbrt50.0%
pow250.0%
cbrt-div50.0%
unpow250.0%
cbrt-prod50.0%
pow250.0%
cbrt-prod50.0%
unpow350.0%
add-cbrt-cube50.0%
cbrt-div50.0%
unpow250.0%
cbrt-prod55.2%
pow255.2%
Applied egg-rr74.8%
pow-plus74.8%
metadata-eval74.8%
associate-/r*74.8%
cube-div72.3%
rem-cube-cbrt72.3%
Simplified72.3%
Final simplification83.7%
t_m = (fabs.f64 t)
t_s = (copysign.f64 1 t)
(FPCore (t_s t_m l k)
:precision binary64
(*
t_s
(if (or (<= (* l l) 0.0) (not (<= (* l l) 1e+225)))
(*
(/ 2.0 (/ k t_m))
(/
(/ (pow (/ (pow (cbrt l) 2.0) t_m) 3.0) (* (sin k) (tan k)))
(/ k t_m)))
(/
(* 2.0 (* (pow l 2.0) (* (cos k) (pow (sin k) -2.0))))
(* t_m (pow k 2.0))))))t_m = fabs(t);
t_s = copysign(1.0, t);
double code(double t_s, double t_m, double l, double k) {
double tmp;
if (((l * l) <= 0.0) || !((l * l) <= 1e+225)) {
tmp = (2.0 / (k / t_m)) * ((pow((pow(cbrt(l), 2.0) / t_m), 3.0) / (sin(k) * tan(k))) / (k / t_m));
} else {
tmp = (2.0 * (pow(l, 2.0) * (cos(k) * pow(sin(k), -2.0)))) / (t_m * pow(k, 2.0));
}
return t_s * tmp;
}
t_m = Math.abs(t);
t_s = Math.copySign(1.0, t);
public static double code(double t_s, double t_m, double l, double k) {
double tmp;
if (((l * l) <= 0.0) || !((l * l) <= 1e+225)) {
tmp = (2.0 / (k / t_m)) * ((Math.pow((Math.pow(Math.cbrt(l), 2.0) / t_m), 3.0) / (Math.sin(k) * Math.tan(k))) / (k / t_m));
} else {
tmp = (2.0 * (Math.pow(l, 2.0) * (Math.cos(k) * Math.pow(Math.sin(k), -2.0)))) / (t_m * Math.pow(k, 2.0));
}
return t_s * tmp;
}
t_m = abs(t) t_s = copysign(1.0, t) function code(t_s, t_m, l, k) tmp = 0.0 if ((Float64(l * l) <= 0.0) || !(Float64(l * l) <= 1e+225)) tmp = Float64(Float64(2.0 / Float64(k / t_m)) * Float64(Float64((Float64((cbrt(l) ^ 2.0) / t_m) ^ 3.0) / Float64(sin(k) * tan(k))) / Float64(k / t_m))); else tmp = Float64(Float64(2.0 * Float64((l ^ 2.0) * Float64(cos(k) * (sin(k) ^ -2.0)))) / Float64(t_m * (k ^ 2.0))); end return Float64(t_s * tmp) end
t_m = N[Abs[t], $MachinePrecision]
t_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[t]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
code[t$95$s_, t$95$m_, l_, k_] := N[(t$95$s * If[Or[LessEqual[N[(l * l), $MachinePrecision], 0.0], N[Not[LessEqual[N[(l * l), $MachinePrecision], 1e+225]], $MachinePrecision]], N[(N[(2.0 / N[(k / t$95$m), $MachinePrecision]), $MachinePrecision] * N[(N[(N[Power[N[(N[Power[N[Power[l, 1/3], $MachinePrecision], 2.0], $MachinePrecision] / t$95$m), $MachinePrecision], 3.0], $MachinePrecision] / N[(N[Sin[k], $MachinePrecision] * N[Tan[k], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(k / t$95$m), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(2.0 * N[(N[Power[l, 2.0], $MachinePrecision] * N[(N[Cos[k], $MachinePrecision] * N[Power[N[Sin[k], $MachinePrecision], -2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(t$95$m * N[Power[k, 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]), $MachinePrecision]
\begin{array}{l}
t_m = \left|t\right|
\\
t_s = \mathsf{copysign}\left(1, t\right)
\\
t\_s \cdot \begin{array}{l}
\mathbf{if}\;\ell \cdot \ell \leq 0 \lor \neg \left(\ell \cdot \ell \leq 10^{+225}\right):\\
\;\;\;\;\frac{2}{\frac{k}{t\_m}} \cdot \frac{\frac{{\left(\frac{{\left(\sqrt[3]{\ell}\right)}^{2}}{t\_m}\right)}^{3}}{\sin k \cdot \tan k}}{\frac{k}{t\_m}}\\
\mathbf{else}:\\
\;\;\;\;\frac{2 \cdot \left({\ell}^{2} \cdot \left(\cos k \cdot {\sin k}^{-2}\right)\right)}{t\_m \cdot {k}^{2}}\\
\end{array}
\end{array}
if (*.f64 l l) < 0.0 or 9.99999999999999928e224 < (*.f64 l l) Initial program 33.0%
associate-*l*33.0%
associate-/r*33.0%
sub-neg33.0%
distribute-rgt-in29.5%
unpow229.5%
times-frac24.6%
sqr-neg24.6%
times-frac29.5%
unpow229.5%
distribute-rgt-in33.0%
+-commutative33.0%
associate-+l+40.1%
Simplified40.1%
+-rgt-identity40.1%
associate-/r*40.1%
unpow240.1%
associate-/r*40.1%
associate-/l/40.1%
*-commutative40.1%
associate-/r*40.1%
associate-/r/40.1%
Applied egg-rr51.3%
add-cube-cbrt51.2%
pow251.2%
cbrt-div51.2%
unpow251.2%
cbrt-prod51.2%
pow251.2%
cbrt-prod51.2%
unpow351.2%
add-cbrt-cube51.2%
cbrt-div51.2%
unpow251.2%
cbrt-prod62.3%
pow262.3%
Applied egg-rr80.6%
pow-plus80.5%
metadata-eval80.5%
associate-/r*79.8%
cube-div75.1%
rem-cube-cbrt75.1%
Simplified75.1%
if 0.0 < (*.f64 l l) < 9.99999999999999928e224Initial program 38.4%
associate-*l*38.4%
associate-/r*38.8%
sub-neg38.8%
distribute-rgt-in35.2%
unpow235.2%
times-frac24.5%
sqr-neg24.5%
times-frac35.2%
unpow235.2%
distribute-rgt-in38.8%
+-commutative38.8%
associate-+l+52.8%
Simplified52.8%
Taylor expanded in t around 0 93.8%
associate-*r/93.9%
associate-*r*93.9%
times-frac93.9%
Simplified93.9%
associate-*l/93.9%
div-inv93.8%
pow-flip93.9%
metadata-eval93.9%
Applied egg-rr93.9%
times-frac91.3%
Simplified91.3%
frac-times93.9%
associate-*l*93.9%
Applied egg-rr93.9%
Final simplification83.3%
t_m = (fabs.f64 t)
t_s = (copysign.f64 1 t)
(FPCore (t_s t_m l k)
:precision binary64
(*
t_s
(if (<= (* l l) 0.0)
(/
(/ 2.0 (pow (* (cbrt (* (tan k) (/ (sin k) l))) (/ t_m (cbrt l))) 3.0))
(/ (* k (/ k t_m)) t_m))
(if (<= (* l l) 1e+225)
(/
(* 2.0 (* (pow l 2.0) (* (cos k) (pow (sin k) -2.0))))
(* t_m (pow k 2.0)))
(*
(/ 2.0 (/ k t_m))
(/
(/ (pow (/ (pow (cbrt l) 2.0) t_m) 3.0) (* (sin k) (tan k)))
(/ k t_m)))))))t_m = fabs(t);
t_s = copysign(1.0, t);
double code(double t_s, double t_m, double l, double k) {
double tmp;
if ((l * l) <= 0.0) {
tmp = (2.0 / pow((cbrt((tan(k) * (sin(k) / l))) * (t_m / cbrt(l))), 3.0)) / ((k * (k / t_m)) / t_m);
} else if ((l * l) <= 1e+225) {
tmp = (2.0 * (pow(l, 2.0) * (cos(k) * pow(sin(k), -2.0)))) / (t_m * pow(k, 2.0));
} else {
tmp = (2.0 / (k / t_m)) * ((pow((pow(cbrt(l), 2.0) / t_m), 3.0) / (sin(k) * tan(k))) / (k / t_m));
}
return t_s * tmp;
}
t_m = Math.abs(t);
t_s = Math.copySign(1.0, t);
public static double code(double t_s, double t_m, double l, double k) {
double tmp;
if ((l * l) <= 0.0) {
tmp = (2.0 / Math.pow((Math.cbrt((Math.tan(k) * (Math.sin(k) / l))) * (t_m / Math.cbrt(l))), 3.0)) / ((k * (k / t_m)) / t_m);
} else if ((l * l) <= 1e+225) {
tmp = (2.0 * (Math.pow(l, 2.0) * (Math.cos(k) * Math.pow(Math.sin(k), -2.0)))) / (t_m * Math.pow(k, 2.0));
} else {
tmp = (2.0 / (k / t_m)) * ((Math.pow((Math.pow(Math.cbrt(l), 2.0) / t_m), 3.0) / (Math.sin(k) * Math.tan(k))) / (k / t_m));
}
return t_s * tmp;
}
t_m = abs(t) t_s = copysign(1.0, t) function code(t_s, t_m, l, k) tmp = 0.0 if (Float64(l * l) <= 0.0) tmp = Float64(Float64(2.0 / (Float64(cbrt(Float64(tan(k) * Float64(sin(k) / l))) * Float64(t_m / cbrt(l))) ^ 3.0)) / Float64(Float64(k * Float64(k / t_m)) / t_m)); elseif (Float64(l * l) <= 1e+225) tmp = Float64(Float64(2.0 * Float64((l ^ 2.0) * Float64(cos(k) * (sin(k) ^ -2.0)))) / Float64(t_m * (k ^ 2.0))); else tmp = Float64(Float64(2.0 / Float64(k / t_m)) * Float64(Float64((Float64((cbrt(l) ^ 2.0) / t_m) ^ 3.0) / Float64(sin(k) * tan(k))) / Float64(k / t_m))); end return Float64(t_s * tmp) end
t_m = N[Abs[t], $MachinePrecision]
t_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[t]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
code[t$95$s_, t$95$m_, l_, k_] := N[(t$95$s * If[LessEqual[N[(l * l), $MachinePrecision], 0.0], N[(N[(2.0 / N[Power[N[(N[Power[N[(N[Tan[k], $MachinePrecision] * N[(N[Sin[k], $MachinePrecision] / l), $MachinePrecision]), $MachinePrecision], 1/3], $MachinePrecision] * N[(t$95$m / N[Power[l, 1/3], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 3.0], $MachinePrecision]), $MachinePrecision] / N[(N[(k * N[(k / t$95$m), $MachinePrecision]), $MachinePrecision] / t$95$m), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(l * l), $MachinePrecision], 1e+225], N[(N[(2.0 * N[(N[Power[l, 2.0], $MachinePrecision] * N[(N[Cos[k], $MachinePrecision] * N[Power[N[Sin[k], $MachinePrecision], -2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(t$95$m * N[Power[k, 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(2.0 / N[(k / t$95$m), $MachinePrecision]), $MachinePrecision] * N[(N[(N[Power[N[(N[Power[N[Power[l, 1/3], $MachinePrecision], 2.0], $MachinePrecision] / t$95$m), $MachinePrecision], 3.0], $MachinePrecision] / N[(N[Sin[k], $MachinePrecision] * N[Tan[k], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(k / t$95$m), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]), $MachinePrecision]
\begin{array}{l}
t_m = \left|t\right|
\\
t_s = \mathsf{copysign}\left(1, t\right)
\\
t\_s \cdot \begin{array}{l}
\mathbf{if}\;\ell \cdot \ell \leq 0:\\
\;\;\;\;\frac{\frac{2}{{\left(\sqrt[3]{\tan k \cdot \frac{\sin k}{\ell}} \cdot \frac{t\_m}{\sqrt[3]{\ell}}\right)}^{3}}}{\frac{k \cdot \frac{k}{t\_m}}{t\_m}}\\
\mathbf{elif}\;\ell \cdot \ell \leq 10^{+225}:\\
\;\;\;\;\frac{2 \cdot \left({\ell}^{2} \cdot \left(\cos k \cdot {\sin k}^{-2}\right)\right)}{t\_m \cdot {k}^{2}}\\
\mathbf{else}:\\
\;\;\;\;\frac{2}{\frac{k}{t\_m}} \cdot \frac{\frac{{\left(\frac{{\left(\sqrt[3]{\ell}\right)}^{2}}{t\_m}\right)}^{3}}{\sin k \cdot \tan k}}{\frac{k}{t\_m}}\\
\end{array}
\end{array}
if (*.f64 l l) < 0.0Initial program 32.4%
associate-/r*32.4%
associate-*l*32.4%
associate-*l/32.4%
associate-/l*32.4%
+-commutative32.4%
unpow232.4%
sqr-neg32.4%
distribute-frac-neg32.4%
distribute-frac-neg32.4%
unpow232.4%
associate--l+48.1%
metadata-eval48.1%
+-rgt-identity48.1%
unpow248.1%
distribute-frac-neg48.1%
distribute-frac-neg48.1%
sqr-neg48.1%
unpow248.1%
Simplified48.1%
associate-/l*64.3%
associate-/r/66.4%
associate-/l*66.3%
Applied egg-rr66.3%
unpow266.3%
associate-*r/66.3%
Applied egg-rr66.3%
add-cube-cbrt66.2%
pow366.2%
*-commutative66.2%
cbrt-prod66.1%
associate-/r/66.2%
cbrt-div66.2%
unpow366.1%
add-cbrt-cube80.0%
Applied egg-rr80.0%
if 0.0 < (*.f64 l l) < 9.99999999999999928e224Initial program 38.4%
associate-*l*38.4%
associate-/r*38.8%
sub-neg38.8%
distribute-rgt-in35.2%
unpow235.2%
times-frac24.5%
sqr-neg24.5%
times-frac35.2%
unpow235.2%
distribute-rgt-in38.8%
+-commutative38.8%
associate-+l+52.8%
Simplified52.8%
Taylor expanded in t around 0 93.8%
associate-*r/93.9%
associate-*r*93.9%
times-frac93.9%
Simplified93.9%
associate-*l/93.9%
div-inv93.8%
pow-flip93.9%
metadata-eval93.9%
Applied egg-rr93.9%
times-frac91.3%
Simplified91.3%
frac-times93.9%
associate-*l*93.9%
Applied egg-rr93.9%
if 9.99999999999999928e224 < (*.f64 l l) Initial program 33.4%
associate-*l*33.4%
associate-/r*33.4%
sub-neg33.4%
distribute-rgt-in27.1%
unpow227.1%
times-frac20.8%
sqr-neg20.8%
times-frac27.1%
unpow227.1%
distribute-rgt-in33.4%
+-commutative33.4%
associate-+l+33.6%
Simplified33.6%
+-rgt-identity33.6%
associate-/r*33.6%
unpow233.6%
associate-/r*33.6%
associate-/l/33.6%
*-commutative33.6%
associate-/r*33.6%
associate-/r/33.6%
Applied egg-rr50.1%
add-cube-cbrt50.0%
pow250.0%
cbrt-div50.0%
unpow250.0%
cbrt-prod50.0%
pow250.0%
cbrt-prod50.0%
unpow350.0%
add-cbrt-cube50.0%
cbrt-div50.0%
unpow250.0%
cbrt-prod55.2%
pow255.2%
Applied egg-rr74.8%
pow-plus74.8%
metadata-eval74.8%
associate-/r*74.8%
cube-div72.3%
rem-cube-cbrt72.3%
Simplified72.3%
Final simplification83.7%
t_m = (fabs.f64 t)
t_s = (copysign.f64 1 t)
(FPCore (t_s t_m l k)
:precision binary64
(*
t_s
(if (<= (* l l) 0.0)
(/
(/ 2.0 (/ (pow (/ (pow t_m 1.5) (/ l (sin k))) 2.0) (cos k)))
(/ (* k (/ k t_m)) t_m))
(*
(* 2.0 (pow k -2.0))
(/ (* (pow (sin k) -2.0) (* (pow l 2.0) (cos k))) t_m)))))t_m = fabs(t);
t_s = copysign(1.0, t);
double code(double t_s, double t_m, double l, double k) {
double tmp;
if ((l * l) <= 0.0) {
tmp = (2.0 / (pow((pow(t_m, 1.5) / (l / sin(k))), 2.0) / cos(k))) / ((k * (k / t_m)) / t_m);
} else {
tmp = (2.0 * pow(k, -2.0)) * ((pow(sin(k), -2.0) * (pow(l, 2.0) * cos(k))) / t_m);
}
return t_s * tmp;
}
t_m = abs(t)
t_s = copysign(1.0d0, t)
real(8) function code(t_s, t_m, l, k)
real(8), intent (in) :: t_s
real(8), intent (in) :: t_m
real(8), intent (in) :: l
real(8), intent (in) :: k
real(8) :: tmp
if ((l * l) <= 0.0d0) then
tmp = (2.0d0 / ((((t_m ** 1.5d0) / (l / sin(k))) ** 2.0d0) / cos(k))) / ((k * (k / t_m)) / t_m)
else
tmp = (2.0d0 * (k ** (-2.0d0))) * (((sin(k) ** (-2.0d0)) * ((l ** 2.0d0) * cos(k))) / t_m)
end if
code = t_s * tmp
end function
t_m = Math.abs(t);
t_s = Math.copySign(1.0, t);
public static double code(double t_s, double t_m, double l, double k) {
double tmp;
if ((l * l) <= 0.0) {
tmp = (2.0 / (Math.pow((Math.pow(t_m, 1.5) / (l / Math.sin(k))), 2.0) / Math.cos(k))) / ((k * (k / t_m)) / t_m);
} else {
tmp = (2.0 * Math.pow(k, -2.0)) * ((Math.pow(Math.sin(k), -2.0) * (Math.pow(l, 2.0) * Math.cos(k))) / t_m);
}
return t_s * tmp;
}
t_m = math.fabs(t) t_s = math.copysign(1.0, t) def code(t_s, t_m, l, k): tmp = 0 if (l * l) <= 0.0: tmp = (2.0 / (math.pow((math.pow(t_m, 1.5) / (l / math.sin(k))), 2.0) / math.cos(k))) / ((k * (k / t_m)) / t_m) else: tmp = (2.0 * math.pow(k, -2.0)) * ((math.pow(math.sin(k), -2.0) * (math.pow(l, 2.0) * math.cos(k))) / t_m) return t_s * tmp
t_m = abs(t) t_s = copysign(1.0, t) function code(t_s, t_m, l, k) tmp = 0.0 if (Float64(l * l) <= 0.0) tmp = Float64(Float64(2.0 / Float64((Float64((t_m ^ 1.5) / Float64(l / sin(k))) ^ 2.0) / cos(k))) / Float64(Float64(k * Float64(k / t_m)) / t_m)); else tmp = Float64(Float64(2.0 * (k ^ -2.0)) * Float64(Float64((sin(k) ^ -2.0) * Float64((l ^ 2.0) * cos(k))) / t_m)); end return Float64(t_s * tmp) end
t_m = abs(t); t_s = sign(t) * abs(1.0); function tmp_2 = code(t_s, t_m, l, k) tmp = 0.0; if ((l * l) <= 0.0) tmp = (2.0 / ((((t_m ^ 1.5) / (l / sin(k))) ^ 2.0) / cos(k))) / ((k * (k / t_m)) / t_m); else tmp = (2.0 * (k ^ -2.0)) * (((sin(k) ^ -2.0) * ((l ^ 2.0) * cos(k))) / t_m); end tmp_2 = t_s * tmp; end
t_m = N[Abs[t], $MachinePrecision]
t_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[t]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
code[t$95$s_, t$95$m_, l_, k_] := N[(t$95$s * If[LessEqual[N[(l * l), $MachinePrecision], 0.0], N[(N[(2.0 / N[(N[Power[N[(N[Power[t$95$m, 1.5], $MachinePrecision] / N[(l / N[Sin[k], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 2.0], $MachinePrecision] / N[Cos[k], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(k * N[(k / t$95$m), $MachinePrecision]), $MachinePrecision] / t$95$m), $MachinePrecision]), $MachinePrecision], N[(N[(2.0 * N[Power[k, -2.0], $MachinePrecision]), $MachinePrecision] * N[(N[(N[Power[N[Sin[k], $MachinePrecision], -2.0], $MachinePrecision] * N[(N[Power[l, 2.0], $MachinePrecision] * N[Cos[k], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / t$95$m), $MachinePrecision]), $MachinePrecision]]), $MachinePrecision]
\begin{array}{l}
t_m = \left|t\right|
\\
t_s = \mathsf{copysign}\left(1, t\right)
\\
t\_s \cdot \begin{array}{l}
\mathbf{if}\;\ell \cdot \ell \leq 0:\\
\;\;\;\;\frac{\frac{2}{\frac{{\left(\frac{{t\_m}^{1.5}}{\frac{\ell}{\sin k}}\right)}^{2}}{\cos k}}}{\frac{k \cdot \frac{k}{t\_m}}{t\_m}}\\
\mathbf{else}:\\
\;\;\;\;\left(2 \cdot {k}^{-2}\right) \cdot \frac{{\sin k}^{-2} \cdot \left({\ell}^{2} \cdot \cos k\right)}{t\_m}\\
\end{array}
\end{array}
if (*.f64 l l) < 0.0Initial program 32.4%
associate-/r*32.4%
associate-*l*32.4%
associate-*l/32.4%
associate-/l*32.4%
+-commutative32.4%
unpow232.4%
sqr-neg32.4%
distribute-frac-neg32.4%
distribute-frac-neg32.4%
unpow232.4%
associate--l+48.1%
metadata-eval48.1%
+-rgt-identity48.1%
unpow248.1%
distribute-frac-neg48.1%
distribute-frac-neg48.1%
sqr-neg48.1%
unpow248.1%
Simplified48.1%
associate-/l*64.3%
associate-/r/66.4%
associate-/l*66.3%
Applied egg-rr66.3%
unpow266.3%
associate-*r/66.3%
Applied egg-rr66.3%
Taylor expanded in t around 0 48.0%
times-frac48.1%
associate-*r/48.1%
metadata-eval48.1%
pow-sqr18.6%
unpow218.6%
times-frac26.4%
unpow226.4%
swap-sqr29.2%
unpow129.2%
pow-plus29.2%
associate-/r/29.2%
metadata-eval29.2%
Simplified29.2%
if 0.0 < (*.f64 l l) Initial program 36.3%
associate-*l*36.3%
associate-/r*36.6%
sub-neg36.6%
distribute-rgt-in31.8%
unpow231.8%
times-frac22.9%
sqr-neg22.9%
times-frac31.8%
unpow231.8%
distribute-rgt-in36.6%
+-commutative36.6%
associate-+l+44.9%
Simplified44.9%
Taylor expanded in t around 0 80.0%
associate-*r/80.0%
associate-*r*80.0%
times-frac80.0%
Simplified80.0%
associate-*l/80.0%
div-inv80.0%
pow-flip80.0%
metadata-eval80.0%
Applied egg-rr80.0%
times-frac80.0%
Simplified80.0%
expm1-log1p-u79.4%
expm1-udef58.8%
div-inv58.8%
pow-flip58.8%
metadata-eval58.8%
Applied egg-rr58.8%
expm1-def79.4%
expm1-log1p80.1%
Simplified80.1%
Final simplification67.1%
t_m = (fabs.f64 t)
t_s = (copysign.f64 1 t)
(FPCore (t_s t_m l k)
:precision binary64
(*
t_s
(if (<= l 3.3e-175)
(/
(/ 2.0 (/ (pow (/ (pow t_m 1.5) (/ l (sin k))) 2.0) (cos k)))
(/ (* k (/ k t_m)) t_m))
(*
2.0
(/ (* (pow l 2.0) (cos k)) (* (pow k 2.0) (* t_m (pow (sin k) 2.0))))))))t_m = fabs(t);
t_s = copysign(1.0, t);
double code(double t_s, double t_m, double l, double k) {
double tmp;
if (l <= 3.3e-175) {
tmp = (2.0 / (pow((pow(t_m, 1.5) / (l / sin(k))), 2.0) / cos(k))) / ((k * (k / t_m)) / t_m);
} else {
tmp = 2.0 * ((pow(l, 2.0) * cos(k)) / (pow(k, 2.0) * (t_m * pow(sin(k), 2.0))));
}
return t_s * tmp;
}
t_m = abs(t)
t_s = copysign(1.0d0, t)
real(8) function code(t_s, t_m, l, k)
real(8), intent (in) :: t_s
real(8), intent (in) :: t_m
real(8), intent (in) :: l
real(8), intent (in) :: k
real(8) :: tmp
if (l <= 3.3d-175) then
tmp = (2.0d0 / ((((t_m ** 1.5d0) / (l / sin(k))) ** 2.0d0) / cos(k))) / ((k * (k / t_m)) / t_m)
else
tmp = 2.0d0 * (((l ** 2.0d0) * cos(k)) / ((k ** 2.0d0) * (t_m * (sin(k) ** 2.0d0))))
end if
code = t_s * tmp
end function
t_m = Math.abs(t);
t_s = Math.copySign(1.0, t);
public static double code(double t_s, double t_m, double l, double k) {
double tmp;
if (l <= 3.3e-175) {
tmp = (2.0 / (Math.pow((Math.pow(t_m, 1.5) / (l / Math.sin(k))), 2.0) / Math.cos(k))) / ((k * (k / t_m)) / t_m);
} else {
tmp = 2.0 * ((Math.pow(l, 2.0) * Math.cos(k)) / (Math.pow(k, 2.0) * (t_m * Math.pow(Math.sin(k), 2.0))));
}
return t_s * tmp;
}
t_m = math.fabs(t) t_s = math.copysign(1.0, t) def code(t_s, t_m, l, k): tmp = 0 if l <= 3.3e-175: tmp = (2.0 / (math.pow((math.pow(t_m, 1.5) / (l / math.sin(k))), 2.0) / math.cos(k))) / ((k * (k / t_m)) / t_m) else: tmp = 2.0 * ((math.pow(l, 2.0) * math.cos(k)) / (math.pow(k, 2.0) * (t_m * math.pow(math.sin(k), 2.0)))) return t_s * tmp
t_m = abs(t) t_s = copysign(1.0, t) function code(t_s, t_m, l, k) tmp = 0.0 if (l <= 3.3e-175) tmp = Float64(Float64(2.0 / Float64((Float64((t_m ^ 1.5) / Float64(l / sin(k))) ^ 2.0) / cos(k))) / Float64(Float64(k * Float64(k / t_m)) / t_m)); else tmp = Float64(2.0 * Float64(Float64((l ^ 2.0) * cos(k)) / Float64((k ^ 2.0) * Float64(t_m * (sin(k) ^ 2.0))))); end return Float64(t_s * tmp) end
t_m = abs(t); t_s = sign(t) * abs(1.0); function tmp_2 = code(t_s, t_m, l, k) tmp = 0.0; if (l <= 3.3e-175) tmp = (2.0 / ((((t_m ^ 1.5) / (l / sin(k))) ^ 2.0) / cos(k))) / ((k * (k / t_m)) / t_m); else tmp = 2.0 * (((l ^ 2.0) * cos(k)) / ((k ^ 2.0) * (t_m * (sin(k) ^ 2.0)))); end tmp_2 = t_s * tmp; end
t_m = N[Abs[t], $MachinePrecision]
t_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[t]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
code[t$95$s_, t$95$m_, l_, k_] := N[(t$95$s * If[LessEqual[l, 3.3e-175], N[(N[(2.0 / N[(N[Power[N[(N[Power[t$95$m, 1.5], $MachinePrecision] / N[(l / N[Sin[k], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 2.0], $MachinePrecision] / N[Cos[k], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(k * N[(k / t$95$m), $MachinePrecision]), $MachinePrecision] / t$95$m), $MachinePrecision]), $MachinePrecision], N[(2.0 * N[(N[(N[Power[l, 2.0], $MachinePrecision] * N[Cos[k], $MachinePrecision]), $MachinePrecision] / N[(N[Power[k, 2.0], $MachinePrecision] * N[(t$95$m * N[Power[N[Sin[k], $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]), $MachinePrecision]
\begin{array}{l}
t_m = \left|t\right|
\\
t_s = \mathsf{copysign}\left(1, t\right)
\\
t\_s \cdot \begin{array}{l}
\mathbf{if}\;\ell \leq 3.3 \cdot 10^{-175}:\\
\;\;\;\;\frac{\frac{2}{\frac{{\left(\frac{{t\_m}^{1.5}}{\frac{\ell}{\sin k}}\right)}^{2}}{\cos k}}}{\frac{k \cdot \frac{k}{t\_m}}{t\_m}}\\
\mathbf{else}:\\
\;\;\;\;2 \cdot \frac{{\ell}^{2} \cdot \cos k}{{k}^{2} \cdot \left(t\_m \cdot {\sin k}^{2}\right)}\\
\end{array}
\end{array}
if l < 3.29999999999999999e-175Initial program 31.7%
associate-/r*32.1%
associate-*l*32.1%
associate-*l/32.1%
associate-/l*32.1%
+-commutative32.1%
unpow232.1%
sqr-neg32.1%
distribute-frac-neg32.1%
distribute-frac-neg32.1%
unpow232.1%
associate--l+42.7%
metadata-eval42.7%
+-rgt-identity42.7%
unpow242.7%
distribute-frac-neg42.7%
distribute-frac-neg42.7%
sqr-neg42.7%
unpow242.7%
Simplified42.7%
associate-/l*49.7%
associate-/r/52.0%
associate-/l*52.0%
Applied egg-rr52.0%
unpow252.0%
associate-*r/52.0%
Applied egg-rr52.0%
Taylor expanded in t around 0 42.7%
times-frac42.7%
associate-*r/42.7%
metadata-eval42.7%
pow-sqr16.0%
unpow216.0%
times-frac22.0%
unpow222.0%
swap-sqr23.2%
unpow123.2%
pow-plus23.2%
associate-/r/23.9%
metadata-eval23.9%
Simplified23.9%
if 3.29999999999999999e-175 < l Initial program 40.5%
associate-*l*40.5%
associate-/r*40.5%
sub-neg40.5%
distribute-rgt-in36.7%
unpow236.7%
times-frac29.0%
sqr-neg29.0%
times-frac36.7%
unpow236.7%
distribute-rgt-in40.5%
+-commutative40.5%
associate-+l+50.8%
Simplified50.8%
Taylor expanded in t around 0 83.2%
Final simplification48.2%
t_m = (fabs.f64 t)
t_s = (copysign.f64 1 t)
(FPCore (t_s t_m l k)
:precision binary64
(*
t_s
(if (<= t_m 1.9e-93)
(*
2.0
(/
(* (pow l 2.0) (cos k))
(* (pow k 2.0) (* t_m (- 0.5 (/ (cos (* 2.0 k)) 2.0))))))
(if (<= t_m 2.2e+179)
(/
(/
2.0
(* (/ (pow t_m 1.5) (/ l (sin k))) (/ (pow t_m 1.5) (/ l (tan k)))))
(* (/ k t_m) (/ k t_m)))
(*
2.0
(*
(/ (pow l 2.0) (pow k 2.0))
(/ (+ (/ 1.0 (pow k 2.0)) -0.16666666666666666) t_m)))))))t_m = fabs(t);
t_s = copysign(1.0, t);
double code(double t_s, double t_m, double l, double k) {
double tmp;
if (t_m <= 1.9e-93) {
tmp = 2.0 * ((pow(l, 2.0) * cos(k)) / (pow(k, 2.0) * (t_m * (0.5 - (cos((2.0 * k)) / 2.0)))));
} else if (t_m <= 2.2e+179) {
tmp = (2.0 / ((pow(t_m, 1.5) / (l / sin(k))) * (pow(t_m, 1.5) / (l / tan(k))))) / ((k / t_m) * (k / t_m));
} else {
tmp = 2.0 * ((pow(l, 2.0) / pow(k, 2.0)) * (((1.0 / pow(k, 2.0)) + -0.16666666666666666) / t_m));
}
return t_s * tmp;
}
t_m = abs(t)
t_s = copysign(1.0d0, t)
real(8) function code(t_s, t_m, l, k)
real(8), intent (in) :: t_s
real(8), intent (in) :: t_m
real(8), intent (in) :: l
real(8), intent (in) :: k
real(8) :: tmp
if (t_m <= 1.9d-93) then
tmp = 2.0d0 * (((l ** 2.0d0) * cos(k)) / ((k ** 2.0d0) * (t_m * (0.5d0 - (cos((2.0d0 * k)) / 2.0d0)))))
else if (t_m <= 2.2d+179) then
tmp = (2.0d0 / (((t_m ** 1.5d0) / (l / sin(k))) * ((t_m ** 1.5d0) / (l / tan(k))))) / ((k / t_m) * (k / t_m))
else
tmp = 2.0d0 * (((l ** 2.0d0) / (k ** 2.0d0)) * (((1.0d0 / (k ** 2.0d0)) + (-0.16666666666666666d0)) / t_m))
end if
code = t_s * tmp
end function
t_m = Math.abs(t);
t_s = Math.copySign(1.0, t);
public static double code(double t_s, double t_m, double l, double k) {
double tmp;
if (t_m <= 1.9e-93) {
tmp = 2.0 * ((Math.pow(l, 2.0) * Math.cos(k)) / (Math.pow(k, 2.0) * (t_m * (0.5 - (Math.cos((2.0 * k)) / 2.0)))));
} else if (t_m <= 2.2e+179) {
tmp = (2.0 / ((Math.pow(t_m, 1.5) / (l / Math.sin(k))) * (Math.pow(t_m, 1.5) / (l / Math.tan(k))))) / ((k / t_m) * (k / t_m));
} else {
tmp = 2.0 * ((Math.pow(l, 2.0) / Math.pow(k, 2.0)) * (((1.0 / Math.pow(k, 2.0)) + -0.16666666666666666) / t_m));
}
return t_s * tmp;
}
t_m = math.fabs(t) t_s = math.copysign(1.0, t) def code(t_s, t_m, l, k): tmp = 0 if t_m <= 1.9e-93: tmp = 2.0 * ((math.pow(l, 2.0) * math.cos(k)) / (math.pow(k, 2.0) * (t_m * (0.5 - (math.cos((2.0 * k)) / 2.0))))) elif t_m <= 2.2e+179: tmp = (2.0 / ((math.pow(t_m, 1.5) / (l / math.sin(k))) * (math.pow(t_m, 1.5) / (l / math.tan(k))))) / ((k / t_m) * (k / t_m)) else: tmp = 2.0 * ((math.pow(l, 2.0) / math.pow(k, 2.0)) * (((1.0 / math.pow(k, 2.0)) + -0.16666666666666666) / t_m)) return t_s * tmp
t_m = abs(t) t_s = copysign(1.0, t) function code(t_s, t_m, l, k) tmp = 0.0 if (t_m <= 1.9e-93) tmp = Float64(2.0 * Float64(Float64((l ^ 2.0) * cos(k)) / Float64((k ^ 2.0) * Float64(t_m * Float64(0.5 - Float64(cos(Float64(2.0 * k)) / 2.0)))))); elseif (t_m <= 2.2e+179) tmp = Float64(Float64(2.0 / Float64(Float64((t_m ^ 1.5) / Float64(l / sin(k))) * Float64((t_m ^ 1.5) / Float64(l / tan(k))))) / Float64(Float64(k / t_m) * Float64(k / t_m))); else tmp = Float64(2.0 * Float64(Float64((l ^ 2.0) / (k ^ 2.0)) * Float64(Float64(Float64(1.0 / (k ^ 2.0)) + -0.16666666666666666) / t_m))); end return Float64(t_s * tmp) end
t_m = abs(t); t_s = sign(t) * abs(1.0); function tmp_2 = code(t_s, t_m, l, k) tmp = 0.0; if (t_m <= 1.9e-93) tmp = 2.0 * (((l ^ 2.0) * cos(k)) / ((k ^ 2.0) * (t_m * (0.5 - (cos((2.0 * k)) / 2.0))))); elseif (t_m <= 2.2e+179) tmp = (2.0 / (((t_m ^ 1.5) / (l / sin(k))) * ((t_m ^ 1.5) / (l / tan(k))))) / ((k / t_m) * (k / t_m)); else tmp = 2.0 * (((l ^ 2.0) / (k ^ 2.0)) * (((1.0 / (k ^ 2.0)) + -0.16666666666666666) / t_m)); end tmp_2 = t_s * tmp; end
t_m = N[Abs[t], $MachinePrecision]
t_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[t]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
code[t$95$s_, t$95$m_, l_, k_] := N[(t$95$s * If[LessEqual[t$95$m, 1.9e-93], 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$95$m * N[(0.5 - N[(N[Cos[N[(2.0 * k), $MachinePrecision]], $MachinePrecision] / 2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$m, 2.2e+179], N[(N[(2.0 / N[(N[(N[Power[t$95$m, 1.5], $MachinePrecision] / N[(l / N[Sin[k], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(N[Power[t$95$m, 1.5], $MachinePrecision] / N[(l / N[Tan[k], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(k / t$95$m), $MachinePrecision] * N[(k / t$95$m), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(2.0 * N[(N[(N[Power[l, 2.0], $MachinePrecision] / N[Power[k, 2.0], $MachinePrecision]), $MachinePrecision] * N[(N[(N[(1.0 / N[Power[k, 2.0], $MachinePrecision]), $MachinePrecision] + -0.16666666666666666), $MachinePrecision] / t$95$m), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]), $MachinePrecision]
\begin{array}{l}
t_m = \left|t\right|
\\
t_s = \mathsf{copysign}\left(1, t\right)
\\
t\_s \cdot \begin{array}{l}
\mathbf{if}\;t\_m \leq 1.9 \cdot 10^{-93}:\\
\;\;\;\;2 \cdot \frac{{\ell}^{2} \cdot \cos k}{{k}^{2} \cdot \left(t\_m \cdot \left(0.5 - \frac{\cos \left(2 \cdot k\right)}{2}\right)\right)}\\
\mathbf{elif}\;t\_m \leq 2.2 \cdot 10^{+179}:\\
\;\;\;\;\frac{\frac{2}{\frac{{t\_m}^{1.5}}{\frac{\ell}{\sin k}} \cdot \frac{{t\_m}^{1.5}}{\frac{\ell}{\tan k}}}}{\frac{k}{t\_m} \cdot \frac{k}{t\_m}}\\
\mathbf{else}:\\
\;\;\;\;2 \cdot \left(\frac{{\ell}^{2}}{{k}^{2}} \cdot \frac{\frac{1}{{k}^{2}} + -0.16666666666666666}{t\_m}\right)\\
\end{array}
\end{array}
if t < 1.8999999999999999e-93Initial program 35.2%
associate-*l*35.2%
associate-/r*35.2%
sub-neg35.2%
distribute-rgt-in30.0%
unpow230.0%
times-frac20.5%
sqr-neg20.5%
times-frac30.0%
unpow230.0%
distribute-rgt-in35.2%
+-commutative35.2%
associate-+l+43.0%
Simplified43.0%
Taylor expanded in t around 0 78.5%
unpow278.5%
sin-mult70.2%
Applied egg-rr70.2%
div-sub70.2%
+-inverses70.2%
cos-070.2%
metadata-eval70.2%
count-270.2%
Simplified70.2%
if 1.8999999999999999e-93 < t < 2.2e179Initial program 46.2%
associate-/r*47.1%
associate-*l*47.1%
associate-*l/47.1%
associate-/l*47.1%
+-commutative47.1%
unpow247.1%
sqr-neg47.1%
distribute-frac-neg47.1%
distribute-frac-neg47.1%
unpow247.1%
associate--l+57.9%
metadata-eval57.9%
+-rgt-identity57.9%
unpow257.9%
distribute-frac-neg57.9%
distribute-frac-neg57.9%
sqr-neg57.9%
unpow257.9%
Simplified57.9%
add-sqr-sqrt57.9%
times-frac64.0%
times-frac68.2%
sqrt-pow168.2%
metadata-eval68.2%
sqrt-pow184.1%
metadata-eval84.1%
Applied egg-rr84.1%
unpow276.9%
Applied egg-rr84.1%
if 2.2e179 < t Initial program 9.1%
associate-*l*9.1%
associate-/r*9.1%
sub-neg9.1%
distribute-rgt-in9.1%
unpow29.1%
times-frac0.0%
sqr-neg0.0%
times-frac9.1%
unpow29.1%
distribute-rgt-in9.1%
+-commutative9.1%
associate-+l+36.7%
Simplified36.7%
Taylor expanded in t around 0 78.0%
associate-*r/78.0%
associate-*r*77.9%
times-frac77.9%
Simplified77.9%
associate-*l/77.9%
div-inv77.8%
pow-flip77.9%
metadata-eval77.9%
Applied egg-rr77.9%
times-frac82.2%
Simplified82.2%
Taylor expanded in k around 0 69.0%
+-commutative69.0%
associate--l+69.0%
distribute-rgt-out--69.0%
metadata-eval69.0%
Simplified69.0%
Taylor expanded in l around 0 73.6%
times-frac73.5%
sub-neg73.5%
metadata-eval73.5%
Simplified73.5%
Final simplification73.5%
t_m = (fabs.f64 t)
t_s = (copysign.f64 1 t)
(FPCore (t_s t_m l k)
:precision binary64
(*
t_s
(if (<= t_m 6.5e-94)
(*
2.0
(/
(* (pow l 2.0) (cos k))
(* (pow k 2.0) (* t_m (- 0.5 (/ (cos (* 2.0 k)) 2.0))))))
(if (<= t_m 6.1e+178)
(/
(/
2.0
(* (/ (pow t_m 1.5) (/ l (sin k))) (/ (pow t_m 1.5) (/ l (tan k)))))
(/ k (* t_m (/ t_m k))))
(*
2.0
(*
(/ (pow l 2.0) (pow k 2.0))
(/ (+ (/ 1.0 (pow k 2.0)) -0.16666666666666666) t_m)))))))t_m = fabs(t);
t_s = copysign(1.0, t);
double code(double t_s, double t_m, double l, double k) {
double tmp;
if (t_m <= 6.5e-94) {
tmp = 2.0 * ((pow(l, 2.0) * cos(k)) / (pow(k, 2.0) * (t_m * (0.5 - (cos((2.0 * k)) / 2.0)))));
} else if (t_m <= 6.1e+178) {
tmp = (2.0 / ((pow(t_m, 1.5) / (l / sin(k))) * (pow(t_m, 1.5) / (l / tan(k))))) / (k / (t_m * (t_m / k)));
} else {
tmp = 2.0 * ((pow(l, 2.0) / pow(k, 2.0)) * (((1.0 / pow(k, 2.0)) + -0.16666666666666666) / t_m));
}
return t_s * tmp;
}
t_m = abs(t)
t_s = copysign(1.0d0, t)
real(8) function code(t_s, t_m, l, k)
real(8), intent (in) :: t_s
real(8), intent (in) :: t_m
real(8), intent (in) :: l
real(8), intent (in) :: k
real(8) :: tmp
if (t_m <= 6.5d-94) then
tmp = 2.0d0 * (((l ** 2.0d0) * cos(k)) / ((k ** 2.0d0) * (t_m * (0.5d0 - (cos((2.0d0 * k)) / 2.0d0)))))
else if (t_m <= 6.1d+178) then
tmp = (2.0d0 / (((t_m ** 1.5d0) / (l / sin(k))) * ((t_m ** 1.5d0) / (l / tan(k))))) / (k / (t_m * (t_m / k)))
else
tmp = 2.0d0 * (((l ** 2.0d0) / (k ** 2.0d0)) * (((1.0d0 / (k ** 2.0d0)) + (-0.16666666666666666d0)) / t_m))
end if
code = t_s * tmp
end function
t_m = Math.abs(t);
t_s = Math.copySign(1.0, t);
public static double code(double t_s, double t_m, double l, double k) {
double tmp;
if (t_m <= 6.5e-94) {
tmp = 2.0 * ((Math.pow(l, 2.0) * Math.cos(k)) / (Math.pow(k, 2.0) * (t_m * (0.5 - (Math.cos((2.0 * k)) / 2.0)))));
} else if (t_m <= 6.1e+178) {
tmp = (2.0 / ((Math.pow(t_m, 1.5) / (l / Math.sin(k))) * (Math.pow(t_m, 1.5) / (l / Math.tan(k))))) / (k / (t_m * (t_m / k)));
} else {
tmp = 2.0 * ((Math.pow(l, 2.0) / Math.pow(k, 2.0)) * (((1.0 / Math.pow(k, 2.0)) + -0.16666666666666666) / t_m));
}
return t_s * tmp;
}
t_m = math.fabs(t) t_s = math.copysign(1.0, t) def code(t_s, t_m, l, k): tmp = 0 if t_m <= 6.5e-94: tmp = 2.0 * ((math.pow(l, 2.0) * math.cos(k)) / (math.pow(k, 2.0) * (t_m * (0.5 - (math.cos((2.0 * k)) / 2.0))))) elif t_m <= 6.1e+178: tmp = (2.0 / ((math.pow(t_m, 1.5) / (l / math.sin(k))) * (math.pow(t_m, 1.5) / (l / math.tan(k))))) / (k / (t_m * (t_m / k))) else: tmp = 2.0 * ((math.pow(l, 2.0) / math.pow(k, 2.0)) * (((1.0 / math.pow(k, 2.0)) + -0.16666666666666666) / t_m)) return t_s * tmp
t_m = abs(t) t_s = copysign(1.0, t) function code(t_s, t_m, l, k) tmp = 0.0 if (t_m <= 6.5e-94) tmp = Float64(2.0 * Float64(Float64((l ^ 2.0) * cos(k)) / Float64((k ^ 2.0) * Float64(t_m * Float64(0.5 - Float64(cos(Float64(2.0 * k)) / 2.0)))))); elseif (t_m <= 6.1e+178) tmp = Float64(Float64(2.0 / Float64(Float64((t_m ^ 1.5) / Float64(l / sin(k))) * Float64((t_m ^ 1.5) / Float64(l / tan(k))))) / Float64(k / Float64(t_m * Float64(t_m / k)))); else tmp = Float64(2.0 * Float64(Float64((l ^ 2.0) / (k ^ 2.0)) * Float64(Float64(Float64(1.0 / (k ^ 2.0)) + -0.16666666666666666) / t_m))); end return Float64(t_s * tmp) end
t_m = abs(t); t_s = sign(t) * abs(1.0); function tmp_2 = code(t_s, t_m, l, k) tmp = 0.0; if (t_m <= 6.5e-94) tmp = 2.0 * (((l ^ 2.0) * cos(k)) / ((k ^ 2.0) * (t_m * (0.5 - (cos((2.0 * k)) / 2.0))))); elseif (t_m <= 6.1e+178) tmp = (2.0 / (((t_m ^ 1.5) / (l / sin(k))) * ((t_m ^ 1.5) / (l / tan(k))))) / (k / (t_m * (t_m / k))); else tmp = 2.0 * (((l ^ 2.0) / (k ^ 2.0)) * (((1.0 / (k ^ 2.0)) + -0.16666666666666666) / t_m)); end tmp_2 = t_s * tmp; end
t_m = N[Abs[t], $MachinePrecision]
t_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[t]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
code[t$95$s_, t$95$m_, l_, k_] := N[(t$95$s * If[LessEqual[t$95$m, 6.5e-94], 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$95$m * N[(0.5 - N[(N[Cos[N[(2.0 * k), $MachinePrecision]], $MachinePrecision] / 2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$m, 6.1e+178], N[(N[(2.0 / N[(N[(N[Power[t$95$m, 1.5], $MachinePrecision] / N[(l / N[Sin[k], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(N[Power[t$95$m, 1.5], $MachinePrecision] / N[(l / N[Tan[k], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(k / N[(t$95$m * N[(t$95$m / k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(2.0 * N[(N[(N[Power[l, 2.0], $MachinePrecision] / N[Power[k, 2.0], $MachinePrecision]), $MachinePrecision] * N[(N[(N[(1.0 / N[Power[k, 2.0], $MachinePrecision]), $MachinePrecision] + -0.16666666666666666), $MachinePrecision] / t$95$m), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]), $MachinePrecision]
\begin{array}{l}
t_m = \left|t\right|
\\
t_s = \mathsf{copysign}\left(1, t\right)
\\
t\_s \cdot \begin{array}{l}
\mathbf{if}\;t\_m \leq 6.5 \cdot 10^{-94}:\\
\;\;\;\;2 \cdot \frac{{\ell}^{2} \cdot \cos k}{{k}^{2} \cdot \left(t\_m \cdot \left(0.5 - \frac{\cos \left(2 \cdot k\right)}{2}\right)\right)}\\
\mathbf{elif}\;t\_m \leq 6.1 \cdot 10^{+178}:\\
\;\;\;\;\frac{\frac{2}{\frac{{t\_m}^{1.5}}{\frac{\ell}{\sin k}} \cdot \frac{{t\_m}^{1.5}}{\frac{\ell}{\tan k}}}}{\frac{k}{t\_m \cdot \frac{t\_m}{k}}}\\
\mathbf{else}:\\
\;\;\;\;2 \cdot \left(\frac{{\ell}^{2}}{{k}^{2}} \cdot \frac{\frac{1}{{k}^{2}} + -0.16666666666666666}{t\_m}\right)\\
\end{array}
\end{array}
if t < 6.4999999999999996e-94Initial program 35.2%
associate-*l*35.2%
associate-/r*35.2%
sub-neg35.2%
distribute-rgt-in30.0%
unpow230.0%
times-frac20.5%
sqr-neg20.5%
times-frac30.0%
unpow230.0%
distribute-rgt-in35.2%
+-commutative35.2%
associate-+l+43.0%
Simplified43.0%
Taylor expanded in t around 0 78.5%
unpow278.5%
sin-mult70.2%
Applied egg-rr70.2%
div-sub70.2%
+-inverses70.2%
cos-070.2%
metadata-eval70.2%
count-270.2%
Simplified70.2%
if 6.4999999999999996e-94 < t < 6.1000000000000001e178Initial program 46.2%
associate-/r*47.1%
associate-*l*47.1%
associate-*l/47.1%
associate-/l*47.1%
+-commutative47.1%
unpow247.1%
sqr-neg47.1%
distribute-frac-neg47.1%
distribute-frac-neg47.1%
unpow247.1%
associate--l+57.9%
metadata-eval57.9%
+-rgt-identity57.9%
unpow257.9%
distribute-frac-neg57.9%
distribute-frac-neg57.9%
sqr-neg57.9%
unpow257.9%
Simplified57.9%
add-sqr-sqrt57.9%
times-frac64.0%
times-frac68.2%
sqrt-pow168.2%
metadata-eval68.2%
sqrt-pow184.1%
metadata-eval84.1%
Applied egg-rr84.1%
unpow284.1%
clear-num84.1%
frac-times84.1%
*-un-lft-identity84.1%
Applied egg-rr84.1%
if 6.1000000000000001e178 < t Initial program 9.1%
associate-*l*9.1%
associate-/r*9.1%
sub-neg9.1%
distribute-rgt-in9.1%
unpow29.1%
times-frac0.0%
sqr-neg0.0%
times-frac9.1%
unpow29.1%
distribute-rgt-in9.1%
+-commutative9.1%
associate-+l+36.7%
Simplified36.7%
Taylor expanded in t around 0 78.0%
associate-*r/78.0%
associate-*r*77.9%
times-frac77.9%
Simplified77.9%
associate-*l/77.9%
div-inv77.8%
pow-flip77.9%
metadata-eval77.9%
Applied egg-rr77.9%
times-frac82.2%
Simplified82.2%
Taylor expanded in k around 0 69.0%
+-commutative69.0%
associate--l+69.0%
distribute-rgt-out--69.0%
metadata-eval69.0%
Simplified69.0%
Taylor expanded in l around 0 73.6%
times-frac73.5%
sub-neg73.5%
metadata-eval73.5%
Simplified73.5%
Final simplification73.6%
t_m = (fabs.f64 t)
t_s = (copysign.f64 1 t)
(FPCore (t_s t_m l k)
:precision binary64
(*
t_s
(if (<= t_m 4.6e-93)
(*
2.0
(/
(* (pow l 2.0) (cos k))
(* (pow k 2.0) (* t_m (- 0.5 (/ (cos (* 2.0 k)) 2.0))))))
(if (<= t_m 1.25e+179)
(/
(/ 2.0 (/ (pow (/ (pow t_m 1.5) (/ l (sin k))) 2.0) (cos k)))
(/ (* k (/ k t_m)) t_m))
(*
2.0
(*
(/ (pow l 2.0) (pow k 2.0))
(/ (+ (/ 1.0 (pow k 2.0)) -0.16666666666666666) t_m)))))))t_m = fabs(t);
t_s = copysign(1.0, t);
double code(double t_s, double t_m, double l, double k) {
double tmp;
if (t_m <= 4.6e-93) {
tmp = 2.0 * ((pow(l, 2.0) * cos(k)) / (pow(k, 2.0) * (t_m * (0.5 - (cos((2.0 * k)) / 2.0)))));
} else if (t_m <= 1.25e+179) {
tmp = (2.0 / (pow((pow(t_m, 1.5) / (l / sin(k))), 2.0) / cos(k))) / ((k * (k / t_m)) / t_m);
} else {
tmp = 2.0 * ((pow(l, 2.0) / pow(k, 2.0)) * (((1.0 / pow(k, 2.0)) + -0.16666666666666666) / t_m));
}
return t_s * tmp;
}
t_m = abs(t)
t_s = copysign(1.0d0, t)
real(8) function code(t_s, t_m, l, k)
real(8), intent (in) :: t_s
real(8), intent (in) :: t_m
real(8), intent (in) :: l
real(8), intent (in) :: k
real(8) :: tmp
if (t_m <= 4.6d-93) then
tmp = 2.0d0 * (((l ** 2.0d0) * cos(k)) / ((k ** 2.0d0) * (t_m * (0.5d0 - (cos((2.0d0 * k)) / 2.0d0)))))
else if (t_m <= 1.25d+179) then
tmp = (2.0d0 / ((((t_m ** 1.5d0) / (l / sin(k))) ** 2.0d0) / cos(k))) / ((k * (k / t_m)) / t_m)
else
tmp = 2.0d0 * (((l ** 2.0d0) / (k ** 2.0d0)) * (((1.0d0 / (k ** 2.0d0)) + (-0.16666666666666666d0)) / t_m))
end if
code = t_s * tmp
end function
t_m = Math.abs(t);
t_s = Math.copySign(1.0, t);
public static double code(double t_s, double t_m, double l, double k) {
double tmp;
if (t_m <= 4.6e-93) {
tmp = 2.0 * ((Math.pow(l, 2.0) * Math.cos(k)) / (Math.pow(k, 2.0) * (t_m * (0.5 - (Math.cos((2.0 * k)) / 2.0)))));
} else if (t_m <= 1.25e+179) {
tmp = (2.0 / (Math.pow((Math.pow(t_m, 1.5) / (l / Math.sin(k))), 2.0) / Math.cos(k))) / ((k * (k / t_m)) / t_m);
} else {
tmp = 2.0 * ((Math.pow(l, 2.0) / Math.pow(k, 2.0)) * (((1.0 / Math.pow(k, 2.0)) + -0.16666666666666666) / t_m));
}
return t_s * tmp;
}
t_m = math.fabs(t) t_s = math.copysign(1.0, t) def code(t_s, t_m, l, k): tmp = 0 if t_m <= 4.6e-93: tmp = 2.0 * ((math.pow(l, 2.0) * math.cos(k)) / (math.pow(k, 2.0) * (t_m * (0.5 - (math.cos((2.0 * k)) / 2.0))))) elif t_m <= 1.25e+179: tmp = (2.0 / (math.pow((math.pow(t_m, 1.5) / (l / math.sin(k))), 2.0) / math.cos(k))) / ((k * (k / t_m)) / t_m) else: tmp = 2.0 * ((math.pow(l, 2.0) / math.pow(k, 2.0)) * (((1.0 / math.pow(k, 2.0)) + -0.16666666666666666) / t_m)) return t_s * tmp
t_m = abs(t) t_s = copysign(1.0, t) function code(t_s, t_m, l, k) tmp = 0.0 if (t_m <= 4.6e-93) tmp = Float64(2.0 * Float64(Float64((l ^ 2.0) * cos(k)) / Float64((k ^ 2.0) * Float64(t_m * Float64(0.5 - Float64(cos(Float64(2.0 * k)) / 2.0)))))); elseif (t_m <= 1.25e+179) tmp = Float64(Float64(2.0 / Float64((Float64((t_m ^ 1.5) / Float64(l / sin(k))) ^ 2.0) / cos(k))) / Float64(Float64(k * Float64(k / t_m)) / t_m)); else tmp = Float64(2.0 * Float64(Float64((l ^ 2.0) / (k ^ 2.0)) * Float64(Float64(Float64(1.0 / (k ^ 2.0)) + -0.16666666666666666) / t_m))); end return Float64(t_s * tmp) end
t_m = abs(t); t_s = sign(t) * abs(1.0); function tmp_2 = code(t_s, t_m, l, k) tmp = 0.0; if (t_m <= 4.6e-93) tmp = 2.0 * (((l ^ 2.0) * cos(k)) / ((k ^ 2.0) * (t_m * (0.5 - (cos((2.0 * k)) / 2.0))))); elseif (t_m <= 1.25e+179) tmp = (2.0 / ((((t_m ^ 1.5) / (l / sin(k))) ^ 2.0) / cos(k))) / ((k * (k / t_m)) / t_m); else tmp = 2.0 * (((l ^ 2.0) / (k ^ 2.0)) * (((1.0 / (k ^ 2.0)) + -0.16666666666666666) / t_m)); end tmp_2 = t_s * tmp; end
t_m = N[Abs[t], $MachinePrecision]
t_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[t]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
code[t$95$s_, t$95$m_, l_, k_] := N[(t$95$s * If[LessEqual[t$95$m, 4.6e-93], 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$95$m * N[(0.5 - N[(N[Cos[N[(2.0 * k), $MachinePrecision]], $MachinePrecision] / 2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$m, 1.25e+179], N[(N[(2.0 / N[(N[Power[N[(N[Power[t$95$m, 1.5], $MachinePrecision] / N[(l / N[Sin[k], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 2.0], $MachinePrecision] / N[Cos[k], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(k * N[(k / t$95$m), $MachinePrecision]), $MachinePrecision] / t$95$m), $MachinePrecision]), $MachinePrecision], N[(2.0 * N[(N[(N[Power[l, 2.0], $MachinePrecision] / N[Power[k, 2.0], $MachinePrecision]), $MachinePrecision] * N[(N[(N[(1.0 / N[Power[k, 2.0], $MachinePrecision]), $MachinePrecision] + -0.16666666666666666), $MachinePrecision] / t$95$m), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]), $MachinePrecision]
\begin{array}{l}
t_m = \left|t\right|
\\
t_s = \mathsf{copysign}\left(1, t\right)
\\
t\_s \cdot \begin{array}{l}
\mathbf{if}\;t\_m \leq 4.6 \cdot 10^{-93}:\\
\;\;\;\;2 \cdot \frac{{\ell}^{2} \cdot \cos k}{{k}^{2} \cdot \left(t\_m \cdot \left(0.5 - \frac{\cos \left(2 \cdot k\right)}{2}\right)\right)}\\
\mathbf{elif}\;t\_m \leq 1.25 \cdot 10^{+179}:\\
\;\;\;\;\frac{\frac{2}{\frac{{\left(\frac{{t\_m}^{1.5}}{\frac{\ell}{\sin k}}\right)}^{2}}{\cos k}}}{\frac{k \cdot \frac{k}{t\_m}}{t\_m}}\\
\mathbf{else}:\\
\;\;\;\;2 \cdot \left(\frac{{\ell}^{2}}{{k}^{2}} \cdot \frac{\frac{1}{{k}^{2}} + -0.16666666666666666}{t\_m}\right)\\
\end{array}
\end{array}
if t < 4.5999999999999996e-93Initial program 35.2%
associate-*l*35.2%
associate-/r*35.2%
sub-neg35.2%
distribute-rgt-in30.0%
unpow230.0%
times-frac20.5%
sqr-neg20.5%
times-frac30.0%
unpow230.0%
distribute-rgt-in35.2%
+-commutative35.2%
associate-+l+43.0%
Simplified43.0%
Taylor expanded in t around 0 78.5%
unpow278.5%
sin-mult70.2%
Applied egg-rr70.2%
div-sub70.2%
+-inverses70.2%
cos-070.2%
metadata-eval70.2%
count-270.2%
Simplified70.2%
if 4.5999999999999996e-93 < t < 1.25e179Initial program 46.2%
associate-/r*47.1%
associate-*l*47.1%
associate-*l/47.1%
associate-/l*47.1%
+-commutative47.1%
unpow247.1%
sqr-neg47.1%
distribute-frac-neg47.1%
distribute-frac-neg47.1%
unpow247.1%
associate--l+57.9%
metadata-eval57.9%
+-rgt-identity57.9%
unpow257.9%
distribute-frac-neg57.9%
distribute-frac-neg57.9%
sqr-neg57.9%
unpow257.9%
Simplified57.9%
associate-/l*64.1%
associate-/r/68.4%
associate-/l*68.3%
Applied egg-rr68.3%
unpow268.3%
associate-*r/68.2%
Applied egg-rr68.2%
Taylor expanded in t around 0 57.7%
times-frac57.8%
associate-*r/57.8%
metadata-eval57.8%
pow-sqr57.8%
unpow257.8%
times-frac73.5%
unpow273.5%
swap-sqr78.8%
unpow178.8%
pow-plus78.8%
associate-/r/80.5%
metadata-eval80.5%
Simplified80.5%
if 1.25e179 < t Initial program 9.1%
associate-*l*9.1%
associate-/r*9.1%
sub-neg9.1%
distribute-rgt-in9.1%
unpow29.1%
times-frac0.0%
sqr-neg0.0%
times-frac9.1%
unpow29.1%
distribute-rgt-in9.1%
+-commutative9.1%
associate-+l+36.7%
Simplified36.7%
Taylor expanded in t around 0 78.0%
associate-*r/78.0%
associate-*r*77.9%
times-frac77.9%
Simplified77.9%
associate-*l/77.9%
div-inv77.8%
pow-flip77.9%
metadata-eval77.9%
Applied egg-rr77.9%
times-frac82.2%
Simplified82.2%
Taylor expanded in k around 0 69.0%
+-commutative69.0%
associate--l+69.0%
distribute-rgt-out--69.0%
metadata-eval69.0%
Simplified69.0%
Taylor expanded in l around 0 73.6%
times-frac73.5%
sub-neg73.5%
metadata-eval73.5%
Simplified73.5%
Final simplification72.8%
t_m = (fabs.f64 t)
t_s = (copysign.f64 1 t)
(FPCore (t_s t_m l k)
:precision binary64
(*
t_s
(if (<= t_m 4e-93)
(*
2.0
(/
(* (pow l 2.0) (cos k))
(* (pow k 2.0) (* t_m (- 0.5 (/ (cos (* 2.0 k)) 2.0))))))
(if (<= t_m 1.9e+162)
(/
(/ 2.0 (* (* (sin k) (/ (pow t_m 2.0) l)) (/ t_m (/ l (tan k)))))
(* (/ k t_m) (/ k t_m)))
(*
2.0
(*
(/ (pow l 2.0) (pow k 2.0))
(/ (+ (/ 1.0 (pow k 2.0)) -0.16666666666666666) t_m)))))))t_m = fabs(t);
t_s = copysign(1.0, t);
double code(double t_s, double t_m, double l, double k) {
double tmp;
if (t_m <= 4e-93) {
tmp = 2.0 * ((pow(l, 2.0) * cos(k)) / (pow(k, 2.0) * (t_m * (0.5 - (cos((2.0 * k)) / 2.0)))));
} else if (t_m <= 1.9e+162) {
tmp = (2.0 / ((sin(k) * (pow(t_m, 2.0) / l)) * (t_m / (l / tan(k))))) / ((k / t_m) * (k / t_m));
} else {
tmp = 2.0 * ((pow(l, 2.0) / pow(k, 2.0)) * (((1.0 / pow(k, 2.0)) + -0.16666666666666666) / t_m));
}
return t_s * tmp;
}
t_m = abs(t)
t_s = copysign(1.0d0, t)
real(8) function code(t_s, t_m, l, k)
real(8), intent (in) :: t_s
real(8), intent (in) :: t_m
real(8), intent (in) :: l
real(8), intent (in) :: k
real(8) :: tmp
if (t_m <= 4d-93) then
tmp = 2.0d0 * (((l ** 2.0d0) * cos(k)) / ((k ** 2.0d0) * (t_m * (0.5d0 - (cos((2.0d0 * k)) / 2.0d0)))))
else if (t_m <= 1.9d+162) then
tmp = (2.0d0 / ((sin(k) * ((t_m ** 2.0d0) / l)) * (t_m / (l / tan(k))))) / ((k / t_m) * (k / t_m))
else
tmp = 2.0d0 * (((l ** 2.0d0) / (k ** 2.0d0)) * (((1.0d0 / (k ** 2.0d0)) + (-0.16666666666666666d0)) / t_m))
end if
code = t_s * tmp
end function
t_m = Math.abs(t);
t_s = Math.copySign(1.0, t);
public static double code(double t_s, double t_m, double l, double k) {
double tmp;
if (t_m <= 4e-93) {
tmp = 2.0 * ((Math.pow(l, 2.0) * Math.cos(k)) / (Math.pow(k, 2.0) * (t_m * (0.5 - (Math.cos((2.0 * k)) / 2.0)))));
} else if (t_m <= 1.9e+162) {
tmp = (2.0 / ((Math.sin(k) * (Math.pow(t_m, 2.0) / l)) * (t_m / (l / Math.tan(k))))) / ((k / t_m) * (k / t_m));
} else {
tmp = 2.0 * ((Math.pow(l, 2.0) / Math.pow(k, 2.0)) * (((1.0 / Math.pow(k, 2.0)) + -0.16666666666666666) / t_m));
}
return t_s * tmp;
}
t_m = math.fabs(t) t_s = math.copysign(1.0, t) def code(t_s, t_m, l, k): tmp = 0 if t_m <= 4e-93: tmp = 2.0 * ((math.pow(l, 2.0) * math.cos(k)) / (math.pow(k, 2.0) * (t_m * (0.5 - (math.cos((2.0 * k)) / 2.0))))) elif t_m <= 1.9e+162: tmp = (2.0 / ((math.sin(k) * (math.pow(t_m, 2.0) / l)) * (t_m / (l / math.tan(k))))) / ((k / t_m) * (k / t_m)) else: tmp = 2.0 * ((math.pow(l, 2.0) / math.pow(k, 2.0)) * (((1.0 / math.pow(k, 2.0)) + -0.16666666666666666) / t_m)) return t_s * tmp
t_m = abs(t) t_s = copysign(1.0, t) function code(t_s, t_m, l, k) tmp = 0.0 if (t_m <= 4e-93) tmp = Float64(2.0 * Float64(Float64((l ^ 2.0) * cos(k)) / Float64((k ^ 2.0) * Float64(t_m * Float64(0.5 - Float64(cos(Float64(2.0 * k)) / 2.0)))))); elseif (t_m <= 1.9e+162) tmp = Float64(Float64(2.0 / Float64(Float64(sin(k) * Float64((t_m ^ 2.0) / l)) * Float64(t_m / Float64(l / tan(k))))) / Float64(Float64(k / t_m) * Float64(k / t_m))); else tmp = Float64(2.0 * Float64(Float64((l ^ 2.0) / (k ^ 2.0)) * Float64(Float64(Float64(1.0 / (k ^ 2.0)) + -0.16666666666666666) / t_m))); end return Float64(t_s * tmp) end
t_m = abs(t); t_s = sign(t) * abs(1.0); function tmp_2 = code(t_s, t_m, l, k) tmp = 0.0; if (t_m <= 4e-93) tmp = 2.0 * (((l ^ 2.0) * cos(k)) / ((k ^ 2.0) * (t_m * (0.5 - (cos((2.0 * k)) / 2.0))))); elseif (t_m <= 1.9e+162) tmp = (2.0 / ((sin(k) * ((t_m ^ 2.0) / l)) * (t_m / (l / tan(k))))) / ((k / t_m) * (k / t_m)); else tmp = 2.0 * (((l ^ 2.0) / (k ^ 2.0)) * (((1.0 / (k ^ 2.0)) + -0.16666666666666666) / t_m)); end tmp_2 = t_s * tmp; end
t_m = N[Abs[t], $MachinePrecision]
t_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[t]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
code[t$95$s_, t$95$m_, l_, k_] := N[(t$95$s * If[LessEqual[t$95$m, 4e-93], 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$95$m * N[(0.5 - N[(N[Cos[N[(2.0 * k), $MachinePrecision]], $MachinePrecision] / 2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$m, 1.9e+162], N[(N[(2.0 / N[(N[(N[Sin[k], $MachinePrecision] * N[(N[Power[t$95$m, 2.0], $MachinePrecision] / l), $MachinePrecision]), $MachinePrecision] * N[(t$95$m / N[(l / N[Tan[k], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(k / t$95$m), $MachinePrecision] * N[(k / t$95$m), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(2.0 * N[(N[(N[Power[l, 2.0], $MachinePrecision] / N[Power[k, 2.0], $MachinePrecision]), $MachinePrecision] * N[(N[(N[(1.0 / N[Power[k, 2.0], $MachinePrecision]), $MachinePrecision] + -0.16666666666666666), $MachinePrecision] / t$95$m), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]), $MachinePrecision]
\begin{array}{l}
t_m = \left|t\right|
\\
t_s = \mathsf{copysign}\left(1, t\right)
\\
t\_s \cdot \begin{array}{l}
\mathbf{if}\;t\_m \leq 4 \cdot 10^{-93}:\\
\;\;\;\;2 \cdot \frac{{\ell}^{2} \cdot \cos k}{{k}^{2} \cdot \left(t\_m \cdot \left(0.5 - \frac{\cos \left(2 \cdot k\right)}{2}\right)\right)}\\
\mathbf{elif}\;t\_m \leq 1.9 \cdot 10^{+162}:\\
\;\;\;\;\frac{\frac{2}{\left(\sin k \cdot \frac{{t\_m}^{2}}{\ell}\right) \cdot \frac{t\_m}{\frac{\ell}{\tan k}}}}{\frac{k}{t\_m} \cdot \frac{k}{t\_m}}\\
\mathbf{else}:\\
\;\;\;\;2 \cdot \left(\frac{{\ell}^{2}}{{k}^{2}} \cdot \frac{\frac{1}{{k}^{2}} + -0.16666666666666666}{t\_m}\right)\\
\end{array}
\end{array}
if t < 3.9999999999999996e-93Initial program 35.2%
associate-*l*35.2%
associate-/r*35.2%
sub-neg35.2%
distribute-rgt-in30.0%
unpow230.0%
times-frac20.5%
sqr-neg20.5%
times-frac30.0%
unpow230.0%
distribute-rgt-in35.2%
+-commutative35.2%
associate-+l+43.0%
Simplified43.0%
Taylor expanded in t around 0 78.5%
unpow278.5%
sin-mult70.2%
Applied egg-rr70.2%
div-sub70.2%
+-inverses70.2%
cos-070.2%
metadata-eval70.2%
count-270.2%
Simplified70.2%
if 3.9999999999999996e-93 < t < 1.90000000000000012e162Initial program 51.7%
associate-/r*52.7%
associate-*l*52.8%
associate-*l/52.8%
associate-/l*52.8%
+-commutative52.8%
unpow252.8%
sqr-neg52.8%
distribute-frac-neg52.8%
distribute-frac-neg52.8%
unpow252.8%
associate--l+60.8%
metadata-eval60.8%
+-rgt-identity60.8%
unpow260.8%
distribute-frac-neg60.8%
distribute-frac-neg60.8%
sqr-neg60.8%
unpow260.8%
Simplified60.8%
unpow360.8%
times-frac67.6%
times-frac80.3%
pow280.3%
Applied egg-rr80.3%
unpow280.3%
Applied egg-rr80.3%
associate-/r/80.5%
Applied egg-rr80.5%
if 1.90000000000000012e162 < t Initial program 7.1%
associate-*l*7.1%
associate-/r*7.1%
sub-neg7.1%
distribute-rgt-in7.1%
unpow27.1%
times-frac0.0%
sqr-neg0.0%
times-frac7.1%
unpow27.1%
distribute-rgt-in7.1%
+-commutative7.1%
associate-+l+36.0%
Simplified36.0%
Taylor expanded in t around 0 75.5%
associate-*r/75.5%
associate-*r*75.5%
times-frac75.5%
Simplified75.5%
associate-*l/75.5%
div-inv75.4%
pow-flip75.5%
metadata-eval75.5%
Applied egg-rr75.5%
times-frac78.8%
Simplified78.8%
Taylor expanded in k around 0 68.5%
+-commutative68.5%
associate--l+68.5%
distribute-rgt-out--68.5%
metadata-eval68.5%
Simplified68.5%
Taylor expanded in l around 0 72.1%
times-frac72.1%
sub-neg72.1%
metadata-eval72.1%
Simplified72.1%
Final simplification72.4%
t_m = (fabs.f64 t)
t_s = (copysign.f64 1 t)
(FPCore (t_s t_m l k)
:precision binary64
(*
t_s
(if (<= t_m 8.4e-166)
(* 2.0 (/ (* (pow l 2.0) (cos k)) (* (pow k 2.0) (* t_m (pow k 2.0)))))
(if (<= t_m 1.9e+162)
(/
(/ 2.0 (* (* (sin k) (/ (pow t_m 2.0) l)) (/ t_m (/ l (tan k)))))
(* (/ k t_m) (/ k t_m)))
(*
2.0
(*
(/ (pow l 2.0) (pow k 2.0))
(/ (+ (/ 1.0 (pow k 2.0)) -0.16666666666666666) t_m)))))))t_m = fabs(t);
t_s = copysign(1.0, t);
double code(double t_s, double t_m, double l, double k) {
double tmp;
if (t_m <= 8.4e-166) {
tmp = 2.0 * ((pow(l, 2.0) * cos(k)) / (pow(k, 2.0) * (t_m * pow(k, 2.0))));
} else if (t_m <= 1.9e+162) {
tmp = (2.0 / ((sin(k) * (pow(t_m, 2.0) / l)) * (t_m / (l / tan(k))))) / ((k / t_m) * (k / t_m));
} else {
tmp = 2.0 * ((pow(l, 2.0) / pow(k, 2.0)) * (((1.0 / pow(k, 2.0)) + -0.16666666666666666) / t_m));
}
return t_s * tmp;
}
t_m = abs(t)
t_s = copysign(1.0d0, t)
real(8) function code(t_s, t_m, l, k)
real(8), intent (in) :: t_s
real(8), intent (in) :: t_m
real(8), intent (in) :: l
real(8), intent (in) :: k
real(8) :: tmp
if (t_m <= 8.4d-166) then
tmp = 2.0d0 * (((l ** 2.0d0) * cos(k)) / ((k ** 2.0d0) * (t_m * (k ** 2.0d0))))
else if (t_m <= 1.9d+162) then
tmp = (2.0d0 / ((sin(k) * ((t_m ** 2.0d0) / l)) * (t_m / (l / tan(k))))) / ((k / t_m) * (k / t_m))
else
tmp = 2.0d0 * (((l ** 2.0d0) / (k ** 2.0d0)) * (((1.0d0 / (k ** 2.0d0)) + (-0.16666666666666666d0)) / t_m))
end if
code = t_s * tmp
end function
t_m = Math.abs(t);
t_s = Math.copySign(1.0, t);
public static double code(double t_s, double t_m, double l, double k) {
double tmp;
if (t_m <= 8.4e-166) {
tmp = 2.0 * ((Math.pow(l, 2.0) * Math.cos(k)) / (Math.pow(k, 2.0) * (t_m * Math.pow(k, 2.0))));
} else if (t_m <= 1.9e+162) {
tmp = (2.0 / ((Math.sin(k) * (Math.pow(t_m, 2.0) / l)) * (t_m / (l / Math.tan(k))))) / ((k / t_m) * (k / t_m));
} else {
tmp = 2.0 * ((Math.pow(l, 2.0) / Math.pow(k, 2.0)) * (((1.0 / Math.pow(k, 2.0)) + -0.16666666666666666) / t_m));
}
return t_s * tmp;
}
t_m = math.fabs(t) t_s = math.copysign(1.0, t) def code(t_s, t_m, l, k): tmp = 0 if t_m <= 8.4e-166: tmp = 2.0 * ((math.pow(l, 2.0) * math.cos(k)) / (math.pow(k, 2.0) * (t_m * math.pow(k, 2.0)))) elif t_m <= 1.9e+162: tmp = (2.0 / ((math.sin(k) * (math.pow(t_m, 2.0) / l)) * (t_m / (l / math.tan(k))))) / ((k / t_m) * (k / t_m)) else: tmp = 2.0 * ((math.pow(l, 2.0) / math.pow(k, 2.0)) * (((1.0 / math.pow(k, 2.0)) + -0.16666666666666666) / t_m)) return t_s * tmp
t_m = abs(t) t_s = copysign(1.0, t) function code(t_s, t_m, l, k) tmp = 0.0 if (t_m <= 8.4e-166) tmp = Float64(2.0 * Float64(Float64((l ^ 2.0) * cos(k)) / Float64((k ^ 2.0) * Float64(t_m * (k ^ 2.0))))); elseif (t_m <= 1.9e+162) tmp = Float64(Float64(2.0 / Float64(Float64(sin(k) * Float64((t_m ^ 2.0) / l)) * Float64(t_m / Float64(l / tan(k))))) / Float64(Float64(k / t_m) * Float64(k / t_m))); else tmp = Float64(2.0 * Float64(Float64((l ^ 2.0) / (k ^ 2.0)) * Float64(Float64(Float64(1.0 / (k ^ 2.0)) + -0.16666666666666666) / t_m))); end return Float64(t_s * tmp) end
t_m = abs(t); t_s = sign(t) * abs(1.0); function tmp_2 = code(t_s, t_m, l, k) tmp = 0.0; if (t_m <= 8.4e-166) tmp = 2.0 * (((l ^ 2.0) * cos(k)) / ((k ^ 2.0) * (t_m * (k ^ 2.0)))); elseif (t_m <= 1.9e+162) tmp = (2.0 / ((sin(k) * ((t_m ^ 2.0) / l)) * (t_m / (l / tan(k))))) / ((k / t_m) * (k / t_m)); else tmp = 2.0 * (((l ^ 2.0) / (k ^ 2.0)) * (((1.0 / (k ^ 2.0)) + -0.16666666666666666) / t_m)); end tmp_2 = t_s * tmp; end
t_m = N[Abs[t], $MachinePrecision]
t_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[t]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
code[t$95$s_, t$95$m_, l_, k_] := N[(t$95$s * If[LessEqual[t$95$m, 8.4e-166], 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$95$m * N[Power[k, 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$m, 1.9e+162], N[(N[(2.0 / N[(N[(N[Sin[k], $MachinePrecision] * N[(N[Power[t$95$m, 2.0], $MachinePrecision] / l), $MachinePrecision]), $MachinePrecision] * N[(t$95$m / N[(l / N[Tan[k], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(k / t$95$m), $MachinePrecision] * N[(k / t$95$m), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(2.0 * N[(N[(N[Power[l, 2.0], $MachinePrecision] / N[Power[k, 2.0], $MachinePrecision]), $MachinePrecision] * N[(N[(N[(1.0 / N[Power[k, 2.0], $MachinePrecision]), $MachinePrecision] + -0.16666666666666666), $MachinePrecision] / t$95$m), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]), $MachinePrecision]
\begin{array}{l}
t_m = \left|t\right|
\\
t_s = \mathsf{copysign}\left(1, t\right)
\\
t\_s \cdot \begin{array}{l}
\mathbf{if}\;t\_m \leq 8.4 \cdot 10^{-166}:\\
\;\;\;\;2 \cdot \frac{{\ell}^{2} \cdot \cos k}{{k}^{2} \cdot \left(t\_m \cdot {k}^{2}\right)}\\
\mathbf{elif}\;t\_m \leq 1.9 \cdot 10^{+162}:\\
\;\;\;\;\frac{\frac{2}{\left(\sin k \cdot \frac{{t\_m}^{2}}{\ell}\right) \cdot \frac{t\_m}{\frac{\ell}{\tan k}}}}{\frac{k}{t\_m} \cdot \frac{k}{t\_m}}\\
\mathbf{else}:\\
\;\;\;\;2 \cdot \left(\frac{{\ell}^{2}}{{k}^{2}} \cdot \frac{\frac{1}{{k}^{2}} + -0.16666666666666666}{t\_m}\right)\\
\end{array}
\end{array}
if t < 8.3999999999999998e-166Initial program 35.1%
associate-*l*35.1%
associate-/r*35.1%
sub-neg35.1%
distribute-rgt-in29.6%
unpow229.6%
times-frac19.8%
sqr-neg19.8%
times-frac29.6%
unpow229.6%
distribute-rgt-in35.1%
+-commutative35.1%
associate-+l+43.6%
Simplified43.6%
Taylor expanded in t around 0 79.1%
Taylor expanded in k around 0 69.0%
if 8.3999999999999998e-166 < t < 1.90000000000000012e162Initial program 48.2%
associate-/r*49.0%
associate-*l*49.1%
associate-*l/49.1%
associate-/l*49.1%
+-commutative49.1%
unpow249.1%
sqr-neg49.1%
distribute-frac-neg49.1%
distribute-frac-neg49.1%
unpow249.1%
associate--l+55.3%
metadata-eval55.3%
+-rgt-identity55.3%
unpow255.3%
distribute-frac-neg55.3%
distribute-frac-neg55.3%
sqr-neg55.3%
unpow255.3%
Simplified55.3%
unpow355.3%
times-frac63.9%
times-frac77.7%
pow277.7%
Applied egg-rr77.7%
unpow277.7%
Applied egg-rr77.7%
associate-/r/77.8%
Applied egg-rr77.8%
if 1.90000000000000012e162 < t Initial program 7.1%
associate-*l*7.1%
associate-/r*7.1%
sub-neg7.1%
distribute-rgt-in7.1%
unpow27.1%
times-frac0.0%
sqr-neg0.0%
times-frac7.1%
unpow27.1%
distribute-rgt-in7.1%
+-commutative7.1%
associate-+l+36.0%
Simplified36.0%
Taylor expanded in t around 0 75.5%
associate-*r/75.5%
associate-*r*75.5%
times-frac75.5%
Simplified75.5%
associate-*l/75.5%
div-inv75.4%
pow-flip75.5%
metadata-eval75.5%
Applied egg-rr75.5%
times-frac78.8%
Simplified78.8%
Taylor expanded in k around 0 68.5%
+-commutative68.5%
associate--l+68.5%
distribute-rgt-out--68.5%
metadata-eval68.5%
Simplified68.5%
Taylor expanded in l around 0 72.1%
times-frac72.1%
sub-neg72.1%
metadata-eval72.1%
Simplified72.1%
Final simplification71.6%
t_m = (fabs.f64 t)
t_s = (copysign.f64 1 t)
(FPCore (t_s t_m l k)
:precision binary64
(let* ((t_2 (/ (pow l 2.0) (pow k 2.0))) (t_3 (/ l (tan k))))
(*
t_s
(if (<= t_m 8.4e-166)
(* 2.0 (/ (* (pow l 2.0) (cos k)) (* t_m (pow k 4.0))))
(if (<= t_m 2.1e-121)
(/
(/ 2.0 (* (/ t_m t_3) (* (pow t_m 2.0) (/ k l))))
(* (/ k t_m) (/ k t_m)))
(if (<= t_m 1.9e-103)
(* t_2 (/ 2.0 (* t_m (pow k 2.0))))
(if (<= t_m 4.5e+78)
(/
(/ 2.0 (* (/ (pow t_m 3.0) l) (/ (sin k) t_3)))
(/ (* k (/ k t_m)) t_m))
(*
2.0
(*
t_2
(/ (+ (/ 1.0 (pow k 2.0)) -0.16666666666666666) t_m))))))))))t_m = fabs(t);
t_s = copysign(1.0, t);
double code(double t_s, double t_m, double l, double k) {
double t_2 = pow(l, 2.0) / pow(k, 2.0);
double t_3 = l / tan(k);
double tmp;
if (t_m <= 8.4e-166) {
tmp = 2.0 * ((pow(l, 2.0) * cos(k)) / (t_m * pow(k, 4.0)));
} else if (t_m <= 2.1e-121) {
tmp = (2.0 / ((t_m / t_3) * (pow(t_m, 2.0) * (k / l)))) / ((k / t_m) * (k / t_m));
} else if (t_m <= 1.9e-103) {
tmp = t_2 * (2.0 / (t_m * pow(k, 2.0)));
} else if (t_m <= 4.5e+78) {
tmp = (2.0 / ((pow(t_m, 3.0) / l) * (sin(k) / t_3))) / ((k * (k / t_m)) / t_m);
} else {
tmp = 2.0 * (t_2 * (((1.0 / pow(k, 2.0)) + -0.16666666666666666) / t_m));
}
return t_s * tmp;
}
t_m = abs(t)
t_s = copysign(1.0d0, t)
real(8) function code(t_s, t_m, l, k)
real(8), intent (in) :: t_s
real(8), intent (in) :: t_m
real(8), intent (in) :: l
real(8), intent (in) :: k
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_2 = (l ** 2.0d0) / (k ** 2.0d0)
t_3 = l / tan(k)
if (t_m <= 8.4d-166) then
tmp = 2.0d0 * (((l ** 2.0d0) * cos(k)) / (t_m * (k ** 4.0d0)))
else if (t_m <= 2.1d-121) then
tmp = (2.0d0 / ((t_m / t_3) * ((t_m ** 2.0d0) * (k / l)))) / ((k / t_m) * (k / t_m))
else if (t_m <= 1.9d-103) then
tmp = t_2 * (2.0d0 / (t_m * (k ** 2.0d0)))
else if (t_m <= 4.5d+78) then
tmp = (2.0d0 / (((t_m ** 3.0d0) / l) * (sin(k) / t_3))) / ((k * (k / t_m)) / t_m)
else
tmp = 2.0d0 * (t_2 * (((1.0d0 / (k ** 2.0d0)) + (-0.16666666666666666d0)) / t_m))
end if
code = t_s * tmp
end function
t_m = Math.abs(t);
t_s = Math.copySign(1.0, t);
public static double code(double t_s, double t_m, double l, double k) {
double t_2 = Math.pow(l, 2.0) / Math.pow(k, 2.0);
double t_3 = l / Math.tan(k);
double tmp;
if (t_m <= 8.4e-166) {
tmp = 2.0 * ((Math.pow(l, 2.0) * Math.cos(k)) / (t_m * Math.pow(k, 4.0)));
} else if (t_m <= 2.1e-121) {
tmp = (2.0 / ((t_m / t_3) * (Math.pow(t_m, 2.0) * (k / l)))) / ((k / t_m) * (k / t_m));
} else if (t_m <= 1.9e-103) {
tmp = t_2 * (2.0 / (t_m * Math.pow(k, 2.0)));
} else if (t_m <= 4.5e+78) {
tmp = (2.0 / ((Math.pow(t_m, 3.0) / l) * (Math.sin(k) / t_3))) / ((k * (k / t_m)) / t_m);
} else {
tmp = 2.0 * (t_2 * (((1.0 / Math.pow(k, 2.0)) + -0.16666666666666666) / t_m));
}
return t_s * tmp;
}
t_m = math.fabs(t) t_s = math.copysign(1.0, t) def code(t_s, t_m, l, k): t_2 = math.pow(l, 2.0) / math.pow(k, 2.0) t_3 = l / math.tan(k) tmp = 0 if t_m <= 8.4e-166: tmp = 2.0 * ((math.pow(l, 2.0) * math.cos(k)) / (t_m * math.pow(k, 4.0))) elif t_m <= 2.1e-121: tmp = (2.0 / ((t_m / t_3) * (math.pow(t_m, 2.0) * (k / l)))) / ((k / t_m) * (k / t_m)) elif t_m <= 1.9e-103: tmp = t_2 * (2.0 / (t_m * math.pow(k, 2.0))) elif t_m <= 4.5e+78: tmp = (2.0 / ((math.pow(t_m, 3.0) / l) * (math.sin(k) / t_3))) / ((k * (k / t_m)) / t_m) else: tmp = 2.0 * (t_2 * (((1.0 / math.pow(k, 2.0)) + -0.16666666666666666) / t_m)) return t_s * tmp
t_m = abs(t) t_s = copysign(1.0, t) function code(t_s, t_m, l, k) t_2 = Float64((l ^ 2.0) / (k ^ 2.0)) t_3 = Float64(l / tan(k)) tmp = 0.0 if (t_m <= 8.4e-166) tmp = Float64(2.0 * Float64(Float64((l ^ 2.0) * cos(k)) / Float64(t_m * (k ^ 4.0)))); elseif (t_m <= 2.1e-121) tmp = Float64(Float64(2.0 / Float64(Float64(t_m / t_3) * Float64((t_m ^ 2.0) * Float64(k / l)))) / Float64(Float64(k / t_m) * Float64(k / t_m))); elseif (t_m <= 1.9e-103) tmp = Float64(t_2 * Float64(2.0 / Float64(t_m * (k ^ 2.0)))); elseif (t_m <= 4.5e+78) tmp = Float64(Float64(2.0 / Float64(Float64((t_m ^ 3.0) / l) * Float64(sin(k) / t_3))) / Float64(Float64(k * Float64(k / t_m)) / t_m)); else tmp = Float64(2.0 * Float64(t_2 * Float64(Float64(Float64(1.0 / (k ^ 2.0)) + -0.16666666666666666) / t_m))); end return Float64(t_s * tmp) end
t_m = abs(t); t_s = sign(t) * abs(1.0); function tmp_2 = code(t_s, t_m, l, k) t_2 = (l ^ 2.0) / (k ^ 2.0); t_3 = l / tan(k); tmp = 0.0; if (t_m <= 8.4e-166) tmp = 2.0 * (((l ^ 2.0) * cos(k)) / (t_m * (k ^ 4.0))); elseif (t_m <= 2.1e-121) tmp = (2.0 / ((t_m / t_3) * ((t_m ^ 2.0) * (k / l)))) / ((k / t_m) * (k / t_m)); elseif (t_m <= 1.9e-103) tmp = t_2 * (2.0 / (t_m * (k ^ 2.0))); elseif (t_m <= 4.5e+78) tmp = (2.0 / (((t_m ^ 3.0) / l) * (sin(k) / t_3))) / ((k * (k / t_m)) / t_m); else tmp = 2.0 * (t_2 * (((1.0 / (k ^ 2.0)) + -0.16666666666666666) / t_m)); end tmp_2 = t_s * tmp; end
t_m = N[Abs[t], $MachinePrecision]
t_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[t]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
code[t$95$s_, t$95$m_, l_, k_] := Block[{t$95$2 = N[(N[Power[l, 2.0], $MachinePrecision] / N[Power[k, 2.0], $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(l / N[Tan[k], $MachinePrecision]), $MachinePrecision]}, N[(t$95$s * If[LessEqual[t$95$m, 8.4e-166], N[(2.0 * N[(N[(N[Power[l, 2.0], $MachinePrecision] * N[Cos[k], $MachinePrecision]), $MachinePrecision] / N[(t$95$m * N[Power[k, 4.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$m, 2.1e-121], N[(N[(2.0 / N[(N[(t$95$m / t$95$3), $MachinePrecision] * N[(N[Power[t$95$m, 2.0], $MachinePrecision] * N[(k / l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(k / t$95$m), $MachinePrecision] * N[(k / t$95$m), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$m, 1.9e-103], N[(t$95$2 * N[(2.0 / N[(t$95$m * N[Power[k, 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$m, 4.5e+78], N[(N[(2.0 / N[(N[(N[Power[t$95$m, 3.0], $MachinePrecision] / l), $MachinePrecision] * N[(N[Sin[k], $MachinePrecision] / t$95$3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(k * N[(k / t$95$m), $MachinePrecision]), $MachinePrecision] / t$95$m), $MachinePrecision]), $MachinePrecision], N[(2.0 * N[(t$95$2 * N[(N[(N[(1.0 / N[Power[k, 2.0], $MachinePrecision]), $MachinePrecision] + -0.16666666666666666), $MachinePrecision] / t$95$m), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]), $MachinePrecision]]]
\begin{array}{l}
t_m = \left|t\right|
\\
t_s = \mathsf{copysign}\left(1, t\right)
\\
\begin{array}{l}
t_2 := \frac{{\ell}^{2}}{{k}^{2}}\\
t_3 := \frac{\ell}{\tan k}\\
t\_s \cdot \begin{array}{l}
\mathbf{if}\;t\_m \leq 8.4 \cdot 10^{-166}:\\
\;\;\;\;2 \cdot \frac{{\ell}^{2} \cdot \cos k}{t\_m \cdot {k}^{4}}\\
\mathbf{elif}\;t\_m \leq 2.1 \cdot 10^{-121}:\\
\;\;\;\;\frac{\frac{2}{\frac{t\_m}{t\_3} \cdot \left({t\_m}^{2} \cdot \frac{k}{\ell}\right)}}{\frac{k}{t\_m} \cdot \frac{k}{t\_m}}\\
\mathbf{elif}\;t\_m \leq 1.9 \cdot 10^{-103}:\\
\;\;\;\;t\_2 \cdot \frac{2}{t\_m \cdot {k}^{2}}\\
\mathbf{elif}\;t\_m \leq 4.5 \cdot 10^{+78}:\\
\;\;\;\;\frac{\frac{2}{\frac{{t\_m}^{3}}{\ell} \cdot \frac{\sin k}{t\_3}}}{\frac{k \cdot \frac{k}{t\_m}}{t\_m}}\\
\mathbf{else}:\\
\;\;\;\;2 \cdot \left(t\_2 \cdot \frac{\frac{1}{{k}^{2}} + -0.16666666666666666}{t\_m}\right)\\
\end{array}
\end{array}
\end{array}
if t < 8.3999999999999998e-166Initial program 35.1%
associate-*l*35.1%
associate-/r*35.1%
sub-neg35.1%
distribute-rgt-in29.6%
unpow229.6%
times-frac19.8%
sqr-neg19.8%
times-frac29.6%
unpow229.6%
distribute-rgt-in35.1%
+-commutative35.1%
associate-+l+43.6%
Simplified43.6%
Taylor expanded in t around 0 79.1%
Taylor expanded in k around 0 64.1%
if 8.3999999999999998e-166 < t < 2.0999999999999999e-121Initial program 33.3%
associate-/r*33.3%
associate-*l*33.3%
associate-*l/33.3%
associate-/l*33.3%
+-commutative33.3%
unpow233.3%
sqr-neg33.3%
distribute-frac-neg33.3%
distribute-frac-neg33.3%
unpow233.3%
associate--l+33.3%
metadata-eval33.3%
+-rgt-identity33.3%
unpow233.3%
distribute-frac-neg33.3%
distribute-frac-neg33.3%
sqr-neg33.3%
unpow233.3%
Simplified33.3%
unpow333.3%
times-frac50.7%
times-frac71.3%
pow271.3%
Applied egg-rr71.3%
unpow271.3%
Applied egg-rr71.3%
Taylor expanded in k around 0 67.4%
associate-/l*71.3%
associate-/r/71.3%
Simplified71.3%
if 2.0999999999999999e-121 < t < 1.9e-103Initial program 0.0%
associate-*l*0.0%
associate-/r*0.0%
sub-neg0.0%
distribute-rgt-in0.0%
unpow20.0%
times-frac0.0%
sqr-neg0.0%
times-frac0.0%
unpow20.0%
distribute-rgt-in0.0%
+-commutative0.0%
associate-+l+0.0%
Simplified0.0%
Taylor expanded in t around 0 100.0%
associate-*r/100.0%
associate-*r*100.0%
times-frac100.0%
Simplified100.0%
Taylor expanded in k around 0 100.0%
if 1.9e-103 < t < 4.4999999999999999e78Initial program 59.6%
associate-/r*60.9%
associate-*l*60.9%
associate-*l/60.9%
associate-/l*60.9%
+-commutative60.9%
unpow260.9%
sqr-neg60.9%
distribute-frac-neg60.9%
distribute-frac-neg60.9%
unpow260.9%
associate--l+65.9%
metadata-eval65.9%
+-rgt-identity65.9%
unpow265.9%
distribute-frac-neg65.9%
distribute-frac-neg65.9%
sqr-neg65.9%
unpow265.9%
Simplified65.9%
associate-/l*74.6%
associate-/r/78.1%
associate-/l*78.0%
Applied egg-rr78.0%
unpow278.0%
associate-*r/78.0%
Applied egg-rr78.0%
if 4.4999999999999999e78 < t Initial program 12.9%
associate-*l*12.9%
associate-/r*12.9%
sub-neg12.9%
distribute-rgt-in12.8%
unpow212.8%
times-frac7.7%
sqr-neg7.7%
times-frac12.8%
unpow212.8%
distribute-rgt-in12.9%
+-commutative12.9%
associate-+l+38.7%
Simplified38.7%
Taylor expanded in t around 0 77.2%
associate-*r/77.2%
associate-*r*77.2%
times-frac77.2%
Simplified77.2%
associate-*l/77.2%
div-inv77.1%
pow-flip77.2%
metadata-eval77.2%
Applied egg-rr77.2%
times-frac79.6%
Simplified79.6%
Taylor expanded in k around 0 62.4%
+-commutative62.4%
associate--l+62.4%
distribute-rgt-out--62.4%
metadata-eval62.4%
Simplified62.4%
Taylor expanded in l around 0 70.2%
times-frac70.2%
sub-neg70.2%
metadata-eval70.2%
Simplified70.2%
Final simplification67.7%
t_m = (fabs.f64 t)
t_s = (copysign.f64 1 t)
(FPCore (t_s t_m l k)
:precision binary64
(let* ((t_2 (/ (pow l 2.0) (pow k 2.0))) (t_3 (/ l (tan k))))
(*
t_s
(if (<= t_m 8.4e-166)
(* 2.0 (/ (* (pow l 2.0) (cos k)) (* t_m (pow k 4.0))))
(if (<= t_m 2.5e-121)
(/
(/ 2.0 (* (/ t_m t_3) (* (pow t_m 2.0) (/ k l))))
(* (/ k t_m) (/ k t_m)))
(if (<= t_m 4.5e-103)
(* t_2 (/ 2.0 (* t_m (pow k 2.0))))
(if (<= t_m 2.1e+79)
(/
(/ 2.0 (* (/ (pow t_m 3.0) l) (/ (sin k) t_3)))
(/ (/ k t_m) (/ t_m k)))
(*
2.0
(*
t_2
(/ (+ (/ 1.0 (pow k 2.0)) -0.16666666666666666) t_m))))))))))t_m = fabs(t);
t_s = copysign(1.0, t);
double code(double t_s, double t_m, double l, double k) {
double t_2 = pow(l, 2.0) / pow(k, 2.0);
double t_3 = l / tan(k);
double tmp;
if (t_m <= 8.4e-166) {
tmp = 2.0 * ((pow(l, 2.0) * cos(k)) / (t_m * pow(k, 4.0)));
} else if (t_m <= 2.5e-121) {
tmp = (2.0 / ((t_m / t_3) * (pow(t_m, 2.0) * (k / l)))) / ((k / t_m) * (k / t_m));
} else if (t_m <= 4.5e-103) {
tmp = t_2 * (2.0 / (t_m * pow(k, 2.0)));
} else if (t_m <= 2.1e+79) {
tmp = (2.0 / ((pow(t_m, 3.0) / l) * (sin(k) / t_3))) / ((k / t_m) / (t_m / k));
} else {
tmp = 2.0 * (t_2 * (((1.0 / pow(k, 2.0)) + -0.16666666666666666) / t_m));
}
return t_s * tmp;
}
t_m = abs(t)
t_s = copysign(1.0d0, t)
real(8) function code(t_s, t_m, l, k)
real(8), intent (in) :: t_s
real(8), intent (in) :: t_m
real(8), intent (in) :: l
real(8), intent (in) :: k
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_2 = (l ** 2.0d0) / (k ** 2.0d0)
t_3 = l / tan(k)
if (t_m <= 8.4d-166) then
tmp = 2.0d0 * (((l ** 2.0d0) * cos(k)) / (t_m * (k ** 4.0d0)))
else if (t_m <= 2.5d-121) then
tmp = (2.0d0 / ((t_m / t_3) * ((t_m ** 2.0d0) * (k / l)))) / ((k / t_m) * (k / t_m))
else if (t_m <= 4.5d-103) then
tmp = t_2 * (2.0d0 / (t_m * (k ** 2.0d0)))
else if (t_m <= 2.1d+79) then
tmp = (2.0d0 / (((t_m ** 3.0d0) / l) * (sin(k) / t_3))) / ((k / t_m) / (t_m / k))
else
tmp = 2.0d0 * (t_2 * (((1.0d0 / (k ** 2.0d0)) + (-0.16666666666666666d0)) / t_m))
end if
code = t_s * tmp
end function
t_m = Math.abs(t);
t_s = Math.copySign(1.0, t);
public static double code(double t_s, double t_m, double l, double k) {
double t_2 = Math.pow(l, 2.0) / Math.pow(k, 2.0);
double t_3 = l / Math.tan(k);
double tmp;
if (t_m <= 8.4e-166) {
tmp = 2.0 * ((Math.pow(l, 2.0) * Math.cos(k)) / (t_m * Math.pow(k, 4.0)));
} else if (t_m <= 2.5e-121) {
tmp = (2.0 / ((t_m / t_3) * (Math.pow(t_m, 2.0) * (k / l)))) / ((k / t_m) * (k / t_m));
} else if (t_m <= 4.5e-103) {
tmp = t_2 * (2.0 / (t_m * Math.pow(k, 2.0)));
} else if (t_m <= 2.1e+79) {
tmp = (2.0 / ((Math.pow(t_m, 3.0) / l) * (Math.sin(k) / t_3))) / ((k / t_m) / (t_m / k));
} else {
tmp = 2.0 * (t_2 * (((1.0 / Math.pow(k, 2.0)) + -0.16666666666666666) / t_m));
}
return t_s * tmp;
}
t_m = math.fabs(t) t_s = math.copysign(1.0, t) def code(t_s, t_m, l, k): t_2 = math.pow(l, 2.0) / math.pow(k, 2.0) t_3 = l / math.tan(k) tmp = 0 if t_m <= 8.4e-166: tmp = 2.0 * ((math.pow(l, 2.0) * math.cos(k)) / (t_m * math.pow(k, 4.0))) elif t_m <= 2.5e-121: tmp = (2.0 / ((t_m / t_3) * (math.pow(t_m, 2.0) * (k / l)))) / ((k / t_m) * (k / t_m)) elif t_m <= 4.5e-103: tmp = t_2 * (2.0 / (t_m * math.pow(k, 2.0))) elif t_m <= 2.1e+79: tmp = (2.0 / ((math.pow(t_m, 3.0) / l) * (math.sin(k) / t_3))) / ((k / t_m) / (t_m / k)) else: tmp = 2.0 * (t_2 * (((1.0 / math.pow(k, 2.0)) + -0.16666666666666666) / t_m)) return t_s * tmp
t_m = abs(t) t_s = copysign(1.0, t) function code(t_s, t_m, l, k) t_2 = Float64((l ^ 2.0) / (k ^ 2.0)) t_3 = Float64(l / tan(k)) tmp = 0.0 if (t_m <= 8.4e-166) tmp = Float64(2.0 * Float64(Float64((l ^ 2.0) * cos(k)) / Float64(t_m * (k ^ 4.0)))); elseif (t_m <= 2.5e-121) tmp = Float64(Float64(2.0 / Float64(Float64(t_m / t_3) * Float64((t_m ^ 2.0) * Float64(k / l)))) / Float64(Float64(k / t_m) * Float64(k / t_m))); elseif (t_m <= 4.5e-103) tmp = Float64(t_2 * Float64(2.0 / Float64(t_m * (k ^ 2.0)))); elseif (t_m <= 2.1e+79) tmp = Float64(Float64(2.0 / Float64(Float64((t_m ^ 3.0) / l) * Float64(sin(k) / t_3))) / Float64(Float64(k / t_m) / Float64(t_m / k))); else tmp = Float64(2.0 * Float64(t_2 * Float64(Float64(Float64(1.0 / (k ^ 2.0)) + -0.16666666666666666) / t_m))); end return Float64(t_s * tmp) end
t_m = abs(t); t_s = sign(t) * abs(1.0); function tmp_2 = code(t_s, t_m, l, k) t_2 = (l ^ 2.0) / (k ^ 2.0); t_3 = l / tan(k); tmp = 0.0; if (t_m <= 8.4e-166) tmp = 2.0 * (((l ^ 2.0) * cos(k)) / (t_m * (k ^ 4.0))); elseif (t_m <= 2.5e-121) tmp = (2.0 / ((t_m / t_3) * ((t_m ^ 2.0) * (k / l)))) / ((k / t_m) * (k / t_m)); elseif (t_m <= 4.5e-103) tmp = t_2 * (2.0 / (t_m * (k ^ 2.0))); elseif (t_m <= 2.1e+79) tmp = (2.0 / (((t_m ^ 3.0) / l) * (sin(k) / t_3))) / ((k / t_m) / (t_m / k)); else tmp = 2.0 * (t_2 * (((1.0 / (k ^ 2.0)) + -0.16666666666666666) / t_m)); end tmp_2 = t_s * tmp; end
t_m = N[Abs[t], $MachinePrecision]
t_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[t]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
code[t$95$s_, t$95$m_, l_, k_] := Block[{t$95$2 = N[(N[Power[l, 2.0], $MachinePrecision] / N[Power[k, 2.0], $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(l / N[Tan[k], $MachinePrecision]), $MachinePrecision]}, N[(t$95$s * If[LessEqual[t$95$m, 8.4e-166], N[(2.0 * N[(N[(N[Power[l, 2.0], $MachinePrecision] * N[Cos[k], $MachinePrecision]), $MachinePrecision] / N[(t$95$m * N[Power[k, 4.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$m, 2.5e-121], N[(N[(2.0 / N[(N[(t$95$m / t$95$3), $MachinePrecision] * N[(N[Power[t$95$m, 2.0], $MachinePrecision] * N[(k / l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(k / t$95$m), $MachinePrecision] * N[(k / t$95$m), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$m, 4.5e-103], N[(t$95$2 * N[(2.0 / N[(t$95$m * N[Power[k, 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$m, 2.1e+79], N[(N[(2.0 / N[(N[(N[Power[t$95$m, 3.0], $MachinePrecision] / l), $MachinePrecision] * N[(N[Sin[k], $MachinePrecision] / t$95$3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(k / t$95$m), $MachinePrecision] / N[(t$95$m / k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(2.0 * N[(t$95$2 * N[(N[(N[(1.0 / N[Power[k, 2.0], $MachinePrecision]), $MachinePrecision] + -0.16666666666666666), $MachinePrecision] / t$95$m), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]), $MachinePrecision]]]
\begin{array}{l}
t_m = \left|t\right|
\\
t_s = \mathsf{copysign}\left(1, t\right)
\\
\begin{array}{l}
t_2 := \frac{{\ell}^{2}}{{k}^{2}}\\
t_3 := \frac{\ell}{\tan k}\\
t\_s \cdot \begin{array}{l}
\mathbf{if}\;t\_m \leq 8.4 \cdot 10^{-166}:\\
\;\;\;\;2 \cdot \frac{{\ell}^{2} \cdot \cos k}{t\_m \cdot {k}^{4}}\\
\mathbf{elif}\;t\_m \leq 2.5 \cdot 10^{-121}:\\
\;\;\;\;\frac{\frac{2}{\frac{t\_m}{t\_3} \cdot \left({t\_m}^{2} \cdot \frac{k}{\ell}\right)}}{\frac{k}{t\_m} \cdot \frac{k}{t\_m}}\\
\mathbf{elif}\;t\_m \leq 4.5 \cdot 10^{-103}:\\
\;\;\;\;t\_2 \cdot \frac{2}{t\_m \cdot {k}^{2}}\\
\mathbf{elif}\;t\_m \leq 2.1 \cdot 10^{+79}:\\
\;\;\;\;\frac{\frac{2}{\frac{{t\_m}^{3}}{\ell} \cdot \frac{\sin k}{t\_3}}}{\frac{\frac{k}{t\_m}}{\frac{t\_m}{k}}}\\
\mathbf{else}:\\
\;\;\;\;2 \cdot \left(t\_2 \cdot \frac{\frac{1}{{k}^{2}} + -0.16666666666666666}{t\_m}\right)\\
\end{array}
\end{array}
\end{array}
if t < 8.3999999999999998e-166Initial program 35.1%
associate-*l*35.1%
associate-/r*35.1%
sub-neg35.1%
distribute-rgt-in29.6%
unpow229.6%
times-frac19.8%
sqr-neg19.8%
times-frac29.6%
unpow229.6%
distribute-rgt-in35.1%
+-commutative35.1%
associate-+l+43.6%
Simplified43.6%
Taylor expanded in t around 0 79.1%
Taylor expanded in k around 0 64.1%
if 8.3999999999999998e-166 < t < 2.49999999999999995e-121Initial program 33.3%
associate-/r*33.3%
associate-*l*33.3%
associate-*l/33.3%
associate-/l*33.3%
+-commutative33.3%
unpow233.3%
sqr-neg33.3%
distribute-frac-neg33.3%
distribute-frac-neg33.3%
unpow233.3%
associate--l+33.3%
metadata-eval33.3%
+-rgt-identity33.3%
unpow233.3%
distribute-frac-neg33.3%
distribute-frac-neg33.3%
sqr-neg33.3%
unpow233.3%
Simplified33.3%
unpow333.3%
times-frac50.7%
times-frac71.3%
pow271.3%
Applied egg-rr71.3%
unpow271.3%
Applied egg-rr71.3%
Taylor expanded in k around 0 67.4%
associate-/l*71.3%
associate-/r/71.3%
Simplified71.3%
if 2.49999999999999995e-121 < t < 4.5e-103Initial program 0.0%
associate-*l*0.0%
associate-/r*0.0%
sub-neg0.0%
distribute-rgt-in0.0%
unpow20.0%
times-frac0.0%
sqr-neg0.0%
times-frac0.0%
unpow20.0%
distribute-rgt-in0.0%
+-commutative0.0%
associate-+l+0.0%
Simplified0.0%
Taylor expanded in t around 0 100.0%
associate-*r/100.0%
associate-*r*100.0%
times-frac100.0%
Simplified100.0%
Taylor expanded in k around 0 100.0%
if 4.5e-103 < t < 2.10000000000000008e79Initial program 59.6%
associate-/r*60.9%
associate-*l*60.9%
associate-*l/60.9%
associate-/l*60.9%
+-commutative60.9%
unpow260.9%
sqr-neg60.9%
distribute-frac-neg60.9%
distribute-frac-neg60.9%
unpow260.9%
associate--l+65.9%
metadata-eval65.9%
+-rgt-identity65.9%
unpow265.9%
distribute-frac-neg65.9%
distribute-frac-neg65.9%
sqr-neg65.9%
unpow265.9%
Simplified65.9%
associate-/l*74.6%
associate-/r/78.1%
associate-/l*78.0%
Applied egg-rr78.0%
unpow278.0%
clear-num78.0%
un-div-inv78.0%
Applied egg-rr78.0%
if 2.10000000000000008e79 < t Initial program 12.9%
associate-*l*12.9%
associate-/r*12.9%
sub-neg12.9%
distribute-rgt-in12.8%
unpow212.8%
times-frac7.7%
sqr-neg7.7%
times-frac12.8%
unpow212.8%
distribute-rgt-in12.9%
+-commutative12.9%
associate-+l+38.7%
Simplified38.7%
Taylor expanded in t around 0 77.2%
associate-*r/77.2%
associate-*r*77.2%
times-frac77.2%
Simplified77.2%
associate-*l/77.2%
div-inv77.1%
pow-flip77.2%
metadata-eval77.2%
Applied egg-rr77.2%
times-frac79.6%
Simplified79.6%
Taylor expanded in k around 0 62.4%
+-commutative62.4%
associate--l+62.4%
distribute-rgt-out--62.4%
metadata-eval62.4%
Simplified62.4%
Taylor expanded in l around 0 70.2%
times-frac70.2%
sub-neg70.2%
metadata-eval70.2%
Simplified70.2%
Final simplification67.7%
t_m = (fabs.f64 t)
t_s = (copysign.f64 1 t)
(FPCore (t_s t_m l k)
:precision binary64
(let* ((t_2 (/ (pow l 2.0) (pow k 2.0))))
(*
t_s
(if (<= t_m 8.4e-166)
(* 2.0 (/ (* (pow l 2.0) (cos k)) (* t_m (pow k 4.0))))
(if (<= t_m 2.3e-121)
(/
(/ 2.0 (* (/ t_m (/ l (tan k))) (* (pow t_m 2.0) (/ k l))))
(* (/ k t_m) (/ k t_m)))
(if (<= t_m 3.9e-103)
(* t_2 (/ 2.0 (* t_m (pow k 2.0))))
(if (<= t_m 4.2e+79)
(/
(/ 2.0 (/ (* (* (tan k) (/ (sin k) l)) (pow t_m 3.0)) l))
(/ (* k (/ k t_m)) t_m))
(*
2.0
(*
t_2
(/ (+ (/ 1.0 (pow k 2.0)) -0.16666666666666666) t_m))))))))))t_m = fabs(t);
t_s = copysign(1.0, t);
double code(double t_s, double t_m, double l, double k) {
double t_2 = pow(l, 2.0) / pow(k, 2.0);
double tmp;
if (t_m <= 8.4e-166) {
tmp = 2.0 * ((pow(l, 2.0) * cos(k)) / (t_m * pow(k, 4.0)));
} else if (t_m <= 2.3e-121) {
tmp = (2.0 / ((t_m / (l / tan(k))) * (pow(t_m, 2.0) * (k / l)))) / ((k / t_m) * (k / t_m));
} else if (t_m <= 3.9e-103) {
tmp = t_2 * (2.0 / (t_m * pow(k, 2.0)));
} else if (t_m <= 4.2e+79) {
tmp = (2.0 / (((tan(k) * (sin(k) / l)) * pow(t_m, 3.0)) / l)) / ((k * (k / t_m)) / t_m);
} else {
tmp = 2.0 * (t_2 * (((1.0 / pow(k, 2.0)) + -0.16666666666666666) / t_m));
}
return t_s * tmp;
}
t_m = abs(t)
t_s = copysign(1.0d0, t)
real(8) function code(t_s, t_m, l, k)
real(8), intent (in) :: t_s
real(8), intent (in) :: t_m
real(8), intent (in) :: l
real(8), intent (in) :: k
real(8) :: t_2
real(8) :: tmp
t_2 = (l ** 2.0d0) / (k ** 2.0d0)
if (t_m <= 8.4d-166) then
tmp = 2.0d0 * (((l ** 2.0d0) * cos(k)) / (t_m * (k ** 4.0d0)))
else if (t_m <= 2.3d-121) then
tmp = (2.0d0 / ((t_m / (l / tan(k))) * ((t_m ** 2.0d0) * (k / l)))) / ((k / t_m) * (k / t_m))
else if (t_m <= 3.9d-103) then
tmp = t_2 * (2.0d0 / (t_m * (k ** 2.0d0)))
else if (t_m <= 4.2d+79) then
tmp = (2.0d0 / (((tan(k) * (sin(k) / l)) * (t_m ** 3.0d0)) / l)) / ((k * (k / t_m)) / t_m)
else
tmp = 2.0d0 * (t_2 * (((1.0d0 / (k ** 2.0d0)) + (-0.16666666666666666d0)) / t_m))
end if
code = t_s * tmp
end function
t_m = Math.abs(t);
t_s = Math.copySign(1.0, t);
public static double code(double t_s, double t_m, double l, double k) {
double t_2 = Math.pow(l, 2.0) / Math.pow(k, 2.0);
double tmp;
if (t_m <= 8.4e-166) {
tmp = 2.0 * ((Math.pow(l, 2.0) * Math.cos(k)) / (t_m * Math.pow(k, 4.0)));
} else if (t_m <= 2.3e-121) {
tmp = (2.0 / ((t_m / (l / Math.tan(k))) * (Math.pow(t_m, 2.0) * (k / l)))) / ((k / t_m) * (k / t_m));
} else if (t_m <= 3.9e-103) {
tmp = t_2 * (2.0 / (t_m * Math.pow(k, 2.0)));
} else if (t_m <= 4.2e+79) {
tmp = (2.0 / (((Math.tan(k) * (Math.sin(k) / l)) * Math.pow(t_m, 3.0)) / l)) / ((k * (k / t_m)) / t_m);
} else {
tmp = 2.0 * (t_2 * (((1.0 / Math.pow(k, 2.0)) + -0.16666666666666666) / t_m));
}
return t_s * tmp;
}
t_m = math.fabs(t) t_s = math.copysign(1.0, t) def code(t_s, t_m, l, k): t_2 = math.pow(l, 2.0) / math.pow(k, 2.0) tmp = 0 if t_m <= 8.4e-166: tmp = 2.0 * ((math.pow(l, 2.0) * math.cos(k)) / (t_m * math.pow(k, 4.0))) elif t_m <= 2.3e-121: tmp = (2.0 / ((t_m / (l / math.tan(k))) * (math.pow(t_m, 2.0) * (k / l)))) / ((k / t_m) * (k / t_m)) elif t_m <= 3.9e-103: tmp = t_2 * (2.0 / (t_m * math.pow(k, 2.0))) elif t_m <= 4.2e+79: tmp = (2.0 / (((math.tan(k) * (math.sin(k) / l)) * math.pow(t_m, 3.0)) / l)) / ((k * (k / t_m)) / t_m) else: tmp = 2.0 * (t_2 * (((1.0 / math.pow(k, 2.0)) + -0.16666666666666666) / t_m)) return t_s * tmp
t_m = abs(t) t_s = copysign(1.0, t) function code(t_s, t_m, l, k) t_2 = Float64((l ^ 2.0) / (k ^ 2.0)) tmp = 0.0 if (t_m <= 8.4e-166) tmp = Float64(2.0 * Float64(Float64((l ^ 2.0) * cos(k)) / Float64(t_m * (k ^ 4.0)))); elseif (t_m <= 2.3e-121) tmp = Float64(Float64(2.0 / Float64(Float64(t_m / Float64(l / tan(k))) * Float64((t_m ^ 2.0) * Float64(k / l)))) / Float64(Float64(k / t_m) * Float64(k / t_m))); elseif (t_m <= 3.9e-103) tmp = Float64(t_2 * Float64(2.0 / Float64(t_m * (k ^ 2.0)))); elseif (t_m <= 4.2e+79) tmp = Float64(Float64(2.0 / Float64(Float64(Float64(tan(k) * Float64(sin(k) / l)) * (t_m ^ 3.0)) / l)) / Float64(Float64(k * Float64(k / t_m)) / t_m)); else tmp = Float64(2.0 * Float64(t_2 * Float64(Float64(Float64(1.0 / (k ^ 2.0)) + -0.16666666666666666) / t_m))); end return Float64(t_s * tmp) end
t_m = abs(t); t_s = sign(t) * abs(1.0); function tmp_2 = code(t_s, t_m, l, k) t_2 = (l ^ 2.0) / (k ^ 2.0); tmp = 0.0; if (t_m <= 8.4e-166) tmp = 2.0 * (((l ^ 2.0) * cos(k)) / (t_m * (k ^ 4.0))); elseif (t_m <= 2.3e-121) tmp = (2.0 / ((t_m / (l / tan(k))) * ((t_m ^ 2.0) * (k / l)))) / ((k / t_m) * (k / t_m)); elseif (t_m <= 3.9e-103) tmp = t_2 * (2.0 / (t_m * (k ^ 2.0))); elseif (t_m <= 4.2e+79) tmp = (2.0 / (((tan(k) * (sin(k) / l)) * (t_m ^ 3.0)) / l)) / ((k * (k / t_m)) / t_m); else tmp = 2.0 * (t_2 * (((1.0 / (k ^ 2.0)) + -0.16666666666666666) / t_m)); end tmp_2 = t_s * tmp; end
t_m = N[Abs[t], $MachinePrecision]
t_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[t]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
code[t$95$s_, t$95$m_, l_, k_] := Block[{t$95$2 = N[(N[Power[l, 2.0], $MachinePrecision] / N[Power[k, 2.0], $MachinePrecision]), $MachinePrecision]}, N[(t$95$s * If[LessEqual[t$95$m, 8.4e-166], N[(2.0 * N[(N[(N[Power[l, 2.0], $MachinePrecision] * N[Cos[k], $MachinePrecision]), $MachinePrecision] / N[(t$95$m * N[Power[k, 4.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$m, 2.3e-121], N[(N[(2.0 / N[(N[(t$95$m / N[(l / N[Tan[k], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(N[Power[t$95$m, 2.0], $MachinePrecision] * N[(k / l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(k / t$95$m), $MachinePrecision] * N[(k / t$95$m), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$m, 3.9e-103], N[(t$95$2 * N[(2.0 / N[(t$95$m * N[Power[k, 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$m, 4.2e+79], N[(N[(2.0 / N[(N[(N[(N[Tan[k], $MachinePrecision] * N[(N[Sin[k], $MachinePrecision] / l), $MachinePrecision]), $MachinePrecision] * N[Power[t$95$m, 3.0], $MachinePrecision]), $MachinePrecision] / l), $MachinePrecision]), $MachinePrecision] / N[(N[(k * N[(k / t$95$m), $MachinePrecision]), $MachinePrecision] / t$95$m), $MachinePrecision]), $MachinePrecision], N[(2.0 * N[(t$95$2 * N[(N[(N[(1.0 / N[Power[k, 2.0], $MachinePrecision]), $MachinePrecision] + -0.16666666666666666), $MachinePrecision] / t$95$m), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]), $MachinePrecision]]
\begin{array}{l}
t_m = \left|t\right|
\\
t_s = \mathsf{copysign}\left(1, t\right)
\\
\begin{array}{l}
t_2 := \frac{{\ell}^{2}}{{k}^{2}}\\
t\_s \cdot \begin{array}{l}
\mathbf{if}\;t\_m \leq 8.4 \cdot 10^{-166}:\\
\;\;\;\;2 \cdot \frac{{\ell}^{2} \cdot \cos k}{t\_m \cdot {k}^{4}}\\
\mathbf{elif}\;t\_m \leq 2.3 \cdot 10^{-121}:\\
\;\;\;\;\frac{\frac{2}{\frac{t\_m}{\frac{\ell}{\tan k}} \cdot \left({t\_m}^{2} \cdot \frac{k}{\ell}\right)}}{\frac{k}{t\_m} \cdot \frac{k}{t\_m}}\\
\mathbf{elif}\;t\_m \leq 3.9 \cdot 10^{-103}:\\
\;\;\;\;t\_2 \cdot \frac{2}{t\_m \cdot {k}^{2}}\\
\mathbf{elif}\;t\_m \leq 4.2 \cdot 10^{+79}:\\
\;\;\;\;\frac{\frac{2}{\frac{\left(\tan k \cdot \frac{\sin k}{\ell}\right) \cdot {t\_m}^{3}}{\ell}}}{\frac{k \cdot \frac{k}{t\_m}}{t\_m}}\\
\mathbf{else}:\\
\;\;\;\;2 \cdot \left(t\_2 \cdot \frac{\frac{1}{{k}^{2}} + -0.16666666666666666}{t\_m}\right)\\
\end{array}
\end{array}
\end{array}
if t < 8.3999999999999998e-166Initial program 35.1%
associate-*l*35.1%
associate-/r*35.1%
sub-neg35.1%
distribute-rgt-in29.6%
unpow229.6%
times-frac19.8%
sqr-neg19.8%
times-frac29.6%
unpow229.6%
distribute-rgt-in35.1%
+-commutative35.1%
associate-+l+43.6%
Simplified43.6%
Taylor expanded in t around 0 79.1%
Taylor expanded in k around 0 64.1%
if 8.3999999999999998e-166 < t < 2.30000000000000012e-121Initial program 33.3%
associate-/r*33.3%
associate-*l*33.3%
associate-*l/33.3%
associate-/l*33.3%
+-commutative33.3%
unpow233.3%
sqr-neg33.3%
distribute-frac-neg33.3%
distribute-frac-neg33.3%
unpow233.3%
associate--l+33.3%
metadata-eval33.3%
+-rgt-identity33.3%
unpow233.3%
distribute-frac-neg33.3%
distribute-frac-neg33.3%
sqr-neg33.3%
unpow233.3%
Simplified33.3%
unpow333.3%
times-frac50.7%
times-frac71.3%
pow271.3%
Applied egg-rr71.3%
unpow271.3%
Applied egg-rr71.3%
Taylor expanded in k around 0 67.4%
associate-/l*71.3%
associate-/r/71.3%
Simplified71.3%
if 2.30000000000000012e-121 < t < 3.9000000000000002e-103Initial program 0.0%
associate-*l*0.0%
associate-/r*0.0%
sub-neg0.0%
distribute-rgt-in0.0%
unpow20.0%
times-frac0.0%
sqr-neg0.0%
times-frac0.0%
unpow20.0%
distribute-rgt-in0.0%
+-commutative0.0%
associate-+l+0.0%
Simplified0.0%
Taylor expanded in t around 0 100.0%
associate-*r/100.0%
associate-*r*100.0%
times-frac100.0%
Simplified100.0%
Taylor expanded in k around 0 100.0%
if 3.9000000000000002e-103 < t < 4.20000000000000016e79Initial program 59.6%
associate-/r*60.9%
associate-*l*60.9%
associate-*l/60.9%
associate-/l*60.9%
+-commutative60.9%
unpow260.9%
sqr-neg60.9%
distribute-frac-neg60.9%
distribute-frac-neg60.9%
unpow260.9%
associate--l+65.9%
metadata-eval65.9%
+-rgt-identity65.9%
unpow265.9%
distribute-frac-neg65.9%
distribute-frac-neg65.9%
sqr-neg65.9%
unpow265.9%
Simplified65.9%
associate-/l*74.6%
associate-/r/78.1%
associate-/l*78.0%
Applied egg-rr78.0%
unpow278.0%
associate-*r/78.0%
Applied egg-rr78.0%
associate-*l/78.0%
associate-/r/78.0%
Applied egg-rr78.0%
if 4.20000000000000016e79 < t Initial program 12.9%
associate-*l*12.9%
associate-/r*12.9%
sub-neg12.9%
distribute-rgt-in12.8%
unpow212.8%
times-frac7.7%
sqr-neg7.7%
times-frac12.8%
unpow212.8%
distribute-rgt-in12.9%
+-commutative12.9%
associate-+l+38.7%
Simplified38.7%
Taylor expanded in t around 0 77.2%
associate-*r/77.2%
associate-*r*77.2%
times-frac77.2%
Simplified77.2%
associate-*l/77.2%
div-inv77.1%
pow-flip77.2%
metadata-eval77.2%
Applied egg-rr77.2%
times-frac79.6%
Simplified79.6%
Taylor expanded in k around 0 62.4%
+-commutative62.4%
associate--l+62.4%
distribute-rgt-out--62.4%
metadata-eval62.4%
Simplified62.4%
Taylor expanded in l around 0 70.2%
times-frac70.2%
sub-neg70.2%
metadata-eval70.2%
Simplified70.2%
Final simplification67.7%
t_m = (fabs.f64 t)
t_s = (copysign.f64 1 t)
(FPCore (t_s t_m l k)
:precision binary64
(*
t_s
(if (<= t_m 8.4e-166)
(* 2.0 (/ (* (pow l 2.0) (cos k)) (* t_m (pow k 4.0))))
(if (<= t_m 1.9e+162)
(/
(/ 2.0 (* (* (sin k) (/ (pow t_m 2.0) l)) (/ t_m (/ l (tan k)))))
(* (/ k t_m) (/ k t_m)))
(*
2.0
(*
(/ (pow l 2.0) (pow k 2.0))
(/ (+ (/ 1.0 (pow k 2.0)) -0.16666666666666666) t_m)))))))t_m = fabs(t);
t_s = copysign(1.0, t);
double code(double t_s, double t_m, double l, double k) {
double tmp;
if (t_m <= 8.4e-166) {
tmp = 2.0 * ((pow(l, 2.0) * cos(k)) / (t_m * pow(k, 4.0)));
} else if (t_m <= 1.9e+162) {
tmp = (2.0 / ((sin(k) * (pow(t_m, 2.0) / l)) * (t_m / (l / tan(k))))) / ((k / t_m) * (k / t_m));
} else {
tmp = 2.0 * ((pow(l, 2.0) / pow(k, 2.0)) * (((1.0 / pow(k, 2.0)) + -0.16666666666666666) / t_m));
}
return t_s * tmp;
}
t_m = abs(t)
t_s = copysign(1.0d0, t)
real(8) function code(t_s, t_m, l, k)
real(8), intent (in) :: t_s
real(8), intent (in) :: t_m
real(8), intent (in) :: l
real(8), intent (in) :: k
real(8) :: tmp
if (t_m <= 8.4d-166) then
tmp = 2.0d0 * (((l ** 2.0d0) * cos(k)) / (t_m * (k ** 4.0d0)))
else if (t_m <= 1.9d+162) then
tmp = (2.0d0 / ((sin(k) * ((t_m ** 2.0d0) / l)) * (t_m / (l / tan(k))))) / ((k / t_m) * (k / t_m))
else
tmp = 2.0d0 * (((l ** 2.0d0) / (k ** 2.0d0)) * (((1.0d0 / (k ** 2.0d0)) + (-0.16666666666666666d0)) / t_m))
end if
code = t_s * tmp
end function
t_m = Math.abs(t);
t_s = Math.copySign(1.0, t);
public static double code(double t_s, double t_m, double l, double k) {
double tmp;
if (t_m <= 8.4e-166) {
tmp = 2.0 * ((Math.pow(l, 2.0) * Math.cos(k)) / (t_m * Math.pow(k, 4.0)));
} else if (t_m <= 1.9e+162) {
tmp = (2.0 / ((Math.sin(k) * (Math.pow(t_m, 2.0) / l)) * (t_m / (l / Math.tan(k))))) / ((k / t_m) * (k / t_m));
} else {
tmp = 2.0 * ((Math.pow(l, 2.0) / Math.pow(k, 2.0)) * (((1.0 / Math.pow(k, 2.0)) + -0.16666666666666666) / t_m));
}
return t_s * tmp;
}
t_m = math.fabs(t) t_s = math.copysign(1.0, t) def code(t_s, t_m, l, k): tmp = 0 if t_m <= 8.4e-166: tmp = 2.0 * ((math.pow(l, 2.0) * math.cos(k)) / (t_m * math.pow(k, 4.0))) elif t_m <= 1.9e+162: tmp = (2.0 / ((math.sin(k) * (math.pow(t_m, 2.0) / l)) * (t_m / (l / math.tan(k))))) / ((k / t_m) * (k / t_m)) else: tmp = 2.0 * ((math.pow(l, 2.0) / math.pow(k, 2.0)) * (((1.0 / math.pow(k, 2.0)) + -0.16666666666666666) / t_m)) return t_s * tmp
t_m = abs(t) t_s = copysign(1.0, t) function code(t_s, t_m, l, k) tmp = 0.0 if (t_m <= 8.4e-166) tmp = Float64(2.0 * Float64(Float64((l ^ 2.0) * cos(k)) / Float64(t_m * (k ^ 4.0)))); elseif (t_m <= 1.9e+162) tmp = Float64(Float64(2.0 / Float64(Float64(sin(k) * Float64((t_m ^ 2.0) / l)) * Float64(t_m / Float64(l / tan(k))))) / Float64(Float64(k / t_m) * Float64(k / t_m))); else tmp = Float64(2.0 * Float64(Float64((l ^ 2.0) / (k ^ 2.0)) * Float64(Float64(Float64(1.0 / (k ^ 2.0)) + -0.16666666666666666) / t_m))); end return Float64(t_s * tmp) end
t_m = abs(t); t_s = sign(t) * abs(1.0); function tmp_2 = code(t_s, t_m, l, k) tmp = 0.0; if (t_m <= 8.4e-166) tmp = 2.0 * (((l ^ 2.0) * cos(k)) / (t_m * (k ^ 4.0))); elseif (t_m <= 1.9e+162) tmp = (2.0 / ((sin(k) * ((t_m ^ 2.0) / l)) * (t_m / (l / tan(k))))) / ((k / t_m) * (k / t_m)); else tmp = 2.0 * (((l ^ 2.0) / (k ^ 2.0)) * (((1.0 / (k ^ 2.0)) + -0.16666666666666666) / t_m)); end tmp_2 = t_s * tmp; end
t_m = N[Abs[t], $MachinePrecision]
t_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[t]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
code[t$95$s_, t$95$m_, l_, k_] := N[(t$95$s * If[LessEqual[t$95$m, 8.4e-166], N[(2.0 * N[(N[(N[Power[l, 2.0], $MachinePrecision] * N[Cos[k], $MachinePrecision]), $MachinePrecision] / N[(t$95$m * N[Power[k, 4.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$m, 1.9e+162], N[(N[(2.0 / N[(N[(N[Sin[k], $MachinePrecision] * N[(N[Power[t$95$m, 2.0], $MachinePrecision] / l), $MachinePrecision]), $MachinePrecision] * N[(t$95$m / N[(l / N[Tan[k], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(k / t$95$m), $MachinePrecision] * N[(k / t$95$m), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(2.0 * N[(N[(N[Power[l, 2.0], $MachinePrecision] / N[Power[k, 2.0], $MachinePrecision]), $MachinePrecision] * N[(N[(N[(1.0 / N[Power[k, 2.0], $MachinePrecision]), $MachinePrecision] + -0.16666666666666666), $MachinePrecision] / t$95$m), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]), $MachinePrecision]
\begin{array}{l}
t_m = \left|t\right|
\\
t_s = \mathsf{copysign}\left(1, t\right)
\\
t\_s \cdot \begin{array}{l}
\mathbf{if}\;t\_m \leq 8.4 \cdot 10^{-166}:\\
\;\;\;\;2 \cdot \frac{{\ell}^{2} \cdot \cos k}{t\_m \cdot {k}^{4}}\\
\mathbf{elif}\;t\_m \leq 1.9 \cdot 10^{+162}:\\
\;\;\;\;\frac{\frac{2}{\left(\sin k \cdot \frac{{t\_m}^{2}}{\ell}\right) \cdot \frac{t\_m}{\frac{\ell}{\tan k}}}}{\frac{k}{t\_m} \cdot \frac{k}{t\_m}}\\
\mathbf{else}:\\
\;\;\;\;2 \cdot \left(\frac{{\ell}^{2}}{{k}^{2}} \cdot \frac{\frac{1}{{k}^{2}} + -0.16666666666666666}{t\_m}\right)\\
\end{array}
\end{array}
if t < 8.3999999999999998e-166Initial program 35.1%
associate-*l*35.1%
associate-/r*35.1%
sub-neg35.1%
distribute-rgt-in29.6%
unpow229.6%
times-frac19.8%
sqr-neg19.8%
times-frac29.6%
unpow229.6%
distribute-rgt-in35.1%
+-commutative35.1%
associate-+l+43.6%
Simplified43.6%
Taylor expanded in t around 0 79.1%
Taylor expanded in k around 0 64.1%
if 8.3999999999999998e-166 < t < 1.90000000000000012e162Initial program 48.2%
associate-/r*49.0%
associate-*l*49.1%
associate-*l/49.1%
associate-/l*49.1%
+-commutative49.1%
unpow249.1%
sqr-neg49.1%
distribute-frac-neg49.1%
distribute-frac-neg49.1%
unpow249.1%
associate--l+55.3%
metadata-eval55.3%
+-rgt-identity55.3%
unpow255.3%
distribute-frac-neg55.3%
distribute-frac-neg55.3%
sqr-neg55.3%
unpow255.3%
Simplified55.3%
unpow355.3%
times-frac63.9%
times-frac77.7%
pow277.7%
Applied egg-rr77.7%
unpow277.7%
Applied egg-rr77.7%
associate-/r/77.8%
Applied egg-rr77.8%
if 1.90000000000000012e162 < t Initial program 7.1%
associate-*l*7.1%
associate-/r*7.1%
sub-neg7.1%
distribute-rgt-in7.1%
unpow27.1%
times-frac0.0%
sqr-neg0.0%
times-frac7.1%
unpow27.1%
distribute-rgt-in7.1%
+-commutative7.1%
associate-+l+36.0%
Simplified36.0%
Taylor expanded in t around 0 75.5%
associate-*r/75.5%
associate-*r*75.5%
times-frac75.5%
Simplified75.5%
associate-*l/75.5%
div-inv75.4%
pow-flip75.5%
metadata-eval75.5%
Applied egg-rr75.5%
times-frac78.8%
Simplified78.8%
Taylor expanded in k around 0 68.5%
+-commutative68.5%
associate--l+68.5%
distribute-rgt-out--68.5%
metadata-eval68.5%
Simplified68.5%
Taylor expanded in l around 0 72.1%
times-frac72.1%
sub-neg72.1%
metadata-eval72.1%
Simplified72.1%
Final simplification68.4%
t_m = (fabs.f64 t)
t_s = (copysign.f64 1 t)
(FPCore (t_s t_m l k)
:precision binary64
(*
t_s
(if (<= t_m 8.4e-166)
(* 2.0 (/ (* (pow l 2.0) (cos k)) (* t_m (pow k 4.0))))
(if (<= t_m 2.7e+57)
(/
(/ 2.0 (* (/ (pow t_m 2.0) (/ l (sin k))) (/ (* t_m k) l)))
(* (/ k t_m) (/ k t_m)))
(*
2.0
(*
(/ (pow l 2.0) (pow k 2.0))
(/ (+ (/ 1.0 (pow k 2.0)) -0.16666666666666666) t_m)))))))t_m = fabs(t);
t_s = copysign(1.0, t);
double code(double t_s, double t_m, double l, double k) {
double tmp;
if (t_m <= 8.4e-166) {
tmp = 2.0 * ((pow(l, 2.0) * cos(k)) / (t_m * pow(k, 4.0)));
} else if (t_m <= 2.7e+57) {
tmp = (2.0 / ((pow(t_m, 2.0) / (l / sin(k))) * ((t_m * k) / l))) / ((k / t_m) * (k / t_m));
} else {
tmp = 2.0 * ((pow(l, 2.0) / pow(k, 2.0)) * (((1.0 / pow(k, 2.0)) + -0.16666666666666666) / t_m));
}
return t_s * tmp;
}
t_m = abs(t)
t_s = copysign(1.0d0, t)
real(8) function code(t_s, t_m, l, k)
real(8), intent (in) :: t_s
real(8), intent (in) :: t_m
real(8), intent (in) :: l
real(8), intent (in) :: k
real(8) :: tmp
if (t_m <= 8.4d-166) then
tmp = 2.0d0 * (((l ** 2.0d0) * cos(k)) / (t_m * (k ** 4.0d0)))
else if (t_m <= 2.7d+57) then
tmp = (2.0d0 / (((t_m ** 2.0d0) / (l / sin(k))) * ((t_m * k) / l))) / ((k / t_m) * (k / t_m))
else
tmp = 2.0d0 * (((l ** 2.0d0) / (k ** 2.0d0)) * (((1.0d0 / (k ** 2.0d0)) + (-0.16666666666666666d0)) / t_m))
end if
code = t_s * tmp
end function
t_m = Math.abs(t);
t_s = Math.copySign(1.0, t);
public static double code(double t_s, double t_m, double l, double k) {
double tmp;
if (t_m <= 8.4e-166) {
tmp = 2.0 * ((Math.pow(l, 2.0) * Math.cos(k)) / (t_m * Math.pow(k, 4.0)));
} else if (t_m <= 2.7e+57) {
tmp = (2.0 / ((Math.pow(t_m, 2.0) / (l / Math.sin(k))) * ((t_m * k) / l))) / ((k / t_m) * (k / t_m));
} else {
tmp = 2.0 * ((Math.pow(l, 2.0) / Math.pow(k, 2.0)) * (((1.0 / Math.pow(k, 2.0)) + -0.16666666666666666) / t_m));
}
return t_s * tmp;
}
t_m = math.fabs(t) t_s = math.copysign(1.0, t) def code(t_s, t_m, l, k): tmp = 0 if t_m <= 8.4e-166: tmp = 2.0 * ((math.pow(l, 2.0) * math.cos(k)) / (t_m * math.pow(k, 4.0))) elif t_m <= 2.7e+57: tmp = (2.0 / ((math.pow(t_m, 2.0) / (l / math.sin(k))) * ((t_m * k) / l))) / ((k / t_m) * (k / t_m)) else: tmp = 2.0 * ((math.pow(l, 2.0) / math.pow(k, 2.0)) * (((1.0 / math.pow(k, 2.0)) + -0.16666666666666666) / t_m)) return t_s * tmp
t_m = abs(t) t_s = copysign(1.0, t) function code(t_s, t_m, l, k) tmp = 0.0 if (t_m <= 8.4e-166) tmp = Float64(2.0 * Float64(Float64((l ^ 2.0) * cos(k)) / Float64(t_m * (k ^ 4.0)))); elseif (t_m <= 2.7e+57) tmp = Float64(Float64(2.0 / Float64(Float64((t_m ^ 2.0) / Float64(l / sin(k))) * Float64(Float64(t_m * k) / l))) / Float64(Float64(k / t_m) * Float64(k / t_m))); else tmp = Float64(2.0 * Float64(Float64((l ^ 2.0) / (k ^ 2.0)) * Float64(Float64(Float64(1.0 / (k ^ 2.0)) + -0.16666666666666666) / t_m))); end return Float64(t_s * tmp) end
t_m = abs(t); t_s = sign(t) * abs(1.0); function tmp_2 = code(t_s, t_m, l, k) tmp = 0.0; if (t_m <= 8.4e-166) tmp = 2.0 * (((l ^ 2.0) * cos(k)) / (t_m * (k ^ 4.0))); elseif (t_m <= 2.7e+57) tmp = (2.0 / (((t_m ^ 2.0) / (l / sin(k))) * ((t_m * k) / l))) / ((k / t_m) * (k / t_m)); else tmp = 2.0 * (((l ^ 2.0) / (k ^ 2.0)) * (((1.0 / (k ^ 2.0)) + -0.16666666666666666) / t_m)); end tmp_2 = t_s * tmp; end
t_m = N[Abs[t], $MachinePrecision]
t_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[t]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
code[t$95$s_, t$95$m_, l_, k_] := N[(t$95$s * If[LessEqual[t$95$m, 8.4e-166], N[(2.0 * N[(N[(N[Power[l, 2.0], $MachinePrecision] * N[Cos[k], $MachinePrecision]), $MachinePrecision] / N[(t$95$m * N[Power[k, 4.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$m, 2.7e+57], N[(N[(2.0 / N[(N[(N[Power[t$95$m, 2.0], $MachinePrecision] / N[(l / N[Sin[k], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(N[(t$95$m * k), $MachinePrecision] / l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(k / t$95$m), $MachinePrecision] * N[(k / t$95$m), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(2.0 * N[(N[(N[Power[l, 2.0], $MachinePrecision] / N[Power[k, 2.0], $MachinePrecision]), $MachinePrecision] * N[(N[(N[(1.0 / N[Power[k, 2.0], $MachinePrecision]), $MachinePrecision] + -0.16666666666666666), $MachinePrecision] / t$95$m), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]), $MachinePrecision]
\begin{array}{l}
t_m = \left|t\right|
\\
t_s = \mathsf{copysign}\left(1, t\right)
\\
t\_s \cdot \begin{array}{l}
\mathbf{if}\;t\_m \leq 8.4 \cdot 10^{-166}:\\
\;\;\;\;2 \cdot \frac{{\ell}^{2} \cdot \cos k}{t\_m \cdot {k}^{4}}\\
\mathbf{elif}\;t\_m \leq 2.7 \cdot 10^{+57}:\\
\;\;\;\;\frac{\frac{2}{\frac{{t\_m}^{2}}{\frac{\ell}{\sin k}} \cdot \frac{t\_m \cdot k}{\ell}}}{\frac{k}{t\_m} \cdot \frac{k}{t\_m}}\\
\mathbf{else}:\\
\;\;\;\;2 \cdot \left(\frac{{\ell}^{2}}{{k}^{2}} \cdot \frac{\frac{1}{{k}^{2}} + -0.16666666666666666}{t\_m}\right)\\
\end{array}
\end{array}
if t < 8.3999999999999998e-166Initial program 35.1%
associate-*l*35.1%
associate-/r*35.1%
sub-neg35.1%
distribute-rgt-in29.6%
unpow229.6%
times-frac19.8%
sqr-neg19.8%
times-frac29.6%
unpow229.6%
distribute-rgt-in35.1%
+-commutative35.1%
associate-+l+43.6%
Simplified43.6%
Taylor expanded in t around 0 79.1%
Taylor expanded in k around 0 64.1%
if 8.3999999999999998e-166 < t < 2.6999999999999998e57Initial program 52.6%
associate-/r*53.6%
associate-*l*53.7%
associate-*l/53.7%
associate-/l*53.7%
+-commutative53.7%
unpow253.7%
sqr-neg53.7%
distribute-frac-neg53.7%
distribute-frac-neg53.7%
unpow253.7%
associate--l+55.8%
metadata-eval55.8%
+-rgt-identity55.8%
unpow255.8%
distribute-frac-neg55.8%
distribute-frac-neg55.8%
sqr-neg55.8%
unpow255.8%
Simplified55.8%
unpow355.8%
times-frac67.1%
times-frac73.0%
pow273.0%
Applied egg-rr73.0%
unpow273.0%
Applied egg-rr73.0%
Taylor expanded in k around 0 67.2%
if 2.6999999999999998e57 < t Initial program 16.5%
associate-*l*16.5%
associate-/r*16.5%
sub-neg16.5%
distribute-rgt-in16.5%
unpow216.5%
times-frac11.8%
sqr-neg11.8%
times-frac16.5%
unpow216.5%
distribute-rgt-in16.5%
+-commutative16.5%
associate-+l+42.1%
Simplified42.1%
Taylor expanded in t around 0 77.0%
associate-*r/77.0%
associate-*r*77.0%
times-frac76.9%
Simplified76.9%
associate-*l/76.9%
div-inv76.9%
pow-flip77.0%
metadata-eval77.0%
Applied egg-rr77.0%
times-frac79.2%
Simplified79.2%
Taylor expanded in k around 0 61.3%
+-commutative61.3%
associate--l+61.3%
distribute-rgt-out--61.3%
metadata-eval61.3%
Simplified61.3%
Taylor expanded in l around 0 70.6%
times-frac70.6%
sub-neg70.6%
metadata-eval70.6%
Simplified70.6%
Final simplification65.8%
t_m = (fabs.f64 t)
t_s = (copysign.f64 1 t)
(FPCore (t_s t_m l k)
:precision binary64
(*
t_s
(if (<= t_m 8.4e-166)
(* 2.0 (/ (* (pow l 2.0) (cos k)) (* t_m (pow k 4.0))))
(if (<= t_m 5.2e+57)
(/
(/ 2.0 (* (/ (pow t_m 2.0) (/ l (sin k))) (/ (* t_m k) l)))
(* (/ k t_m) (/ k t_m)))
(*
(/ (* 2.0 (pow k -2.0)) t_m)
(* (pow l 2.0) (+ (pow k -2.0) -0.16666666666666666)))))))t_m = fabs(t);
t_s = copysign(1.0, t);
double code(double t_s, double t_m, double l, double k) {
double tmp;
if (t_m <= 8.4e-166) {
tmp = 2.0 * ((pow(l, 2.0) * cos(k)) / (t_m * pow(k, 4.0)));
} else if (t_m <= 5.2e+57) {
tmp = (2.0 / ((pow(t_m, 2.0) / (l / sin(k))) * ((t_m * k) / l))) / ((k / t_m) * (k / t_m));
} else {
tmp = ((2.0 * pow(k, -2.0)) / t_m) * (pow(l, 2.0) * (pow(k, -2.0) + -0.16666666666666666));
}
return t_s * tmp;
}
t_m = abs(t)
t_s = copysign(1.0d0, t)
real(8) function code(t_s, t_m, l, k)
real(8), intent (in) :: t_s
real(8), intent (in) :: t_m
real(8), intent (in) :: l
real(8), intent (in) :: k
real(8) :: tmp
if (t_m <= 8.4d-166) then
tmp = 2.0d0 * (((l ** 2.0d0) * cos(k)) / (t_m * (k ** 4.0d0)))
else if (t_m <= 5.2d+57) then
tmp = (2.0d0 / (((t_m ** 2.0d0) / (l / sin(k))) * ((t_m * k) / l))) / ((k / t_m) * (k / t_m))
else
tmp = ((2.0d0 * (k ** (-2.0d0))) / t_m) * ((l ** 2.0d0) * ((k ** (-2.0d0)) + (-0.16666666666666666d0)))
end if
code = t_s * tmp
end function
t_m = Math.abs(t);
t_s = Math.copySign(1.0, t);
public static double code(double t_s, double t_m, double l, double k) {
double tmp;
if (t_m <= 8.4e-166) {
tmp = 2.0 * ((Math.pow(l, 2.0) * Math.cos(k)) / (t_m * Math.pow(k, 4.0)));
} else if (t_m <= 5.2e+57) {
tmp = (2.0 / ((Math.pow(t_m, 2.0) / (l / Math.sin(k))) * ((t_m * k) / l))) / ((k / t_m) * (k / t_m));
} else {
tmp = ((2.0 * Math.pow(k, -2.0)) / t_m) * (Math.pow(l, 2.0) * (Math.pow(k, -2.0) + -0.16666666666666666));
}
return t_s * tmp;
}
t_m = math.fabs(t) t_s = math.copysign(1.0, t) def code(t_s, t_m, l, k): tmp = 0 if t_m <= 8.4e-166: tmp = 2.0 * ((math.pow(l, 2.0) * math.cos(k)) / (t_m * math.pow(k, 4.0))) elif t_m <= 5.2e+57: tmp = (2.0 / ((math.pow(t_m, 2.0) / (l / math.sin(k))) * ((t_m * k) / l))) / ((k / t_m) * (k / t_m)) else: tmp = ((2.0 * math.pow(k, -2.0)) / t_m) * (math.pow(l, 2.0) * (math.pow(k, -2.0) + -0.16666666666666666)) return t_s * tmp
t_m = abs(t) t_s = copysign(1.0, t) function code(t_s, t_m, l, k) tmp = 0.0 if (t_m <= 8.4e-166) tmp = Float64(2.0 * Float64(Float64((l ^ 2.0) * cos(k)) / Float64(t_m * (k ^ 4.0)))); elseif (t_m <= 5.2e+57) tmp = Float64(Float64(2.0 / Float64(Float64((t_m ^ 2.0) / Float64(l / sin(k))) * Float64(Float64(t_m * k) / l))) / Float64(Float64(k / t_m) * Float64(k / t_m))); else tmp = Float64(Float64(Float64(2.0 * (k ^ -2.0)) / t_m) * Float64((l ^ 2.0) * Float64((k ^ -2.0) + -0.16666666666666666))); end return Float64(t_s * tmp) end
t_m = abs(t); t_s = sign(t) * abs(1.0); function tmp_2 = code(t_s, t_m, l, k) tmp = 0.0; if (t_m <= 8.4e-166) tmp = 2.0 * (((l ^ 2.0) * cos(k)) / (t_m * (k ^ 4.0))); elseif (t_m <= 5.2e+57) tmp = (2.0 / (((t_m ^ 2.0) / (l / sin(k))) * ((t_m * k) / l))) / ((k / t_m) * (k / t_m)); else tmp = ((2.0 * (k ^ -2.0)) / t_m) * ((l ^ 2.0) * ((k ^ -2.0) + -0.16666666666666666)); end tmp_2 = t_s * tmp; end
t_m = N[Abs[t], $MachinePrecision]
t_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[t]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
code[t$95$s_, t$95$m_, l_, k_] := N[(t$95$s * If[LessEqual[t$95$m, 8.4e-166], N[(2.0 * N[(N[(N[Power[l, 2.0], $MachinePrecision] * N[Cos[k], $MachinePrecision]), $MachinePrecision] / N[(t$95$m * N[Power[k, 4.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$m, 5.2e+57], N[(N[(2.0 / N[(N[(N[Power[t$95$m, 2.0], $MachinePrecision] / N[(l / N[Sin[k], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(N[(t$95$m * k), $MachinePrecision] / l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(k / t$95$m), $MachinePrecision] * N[(k / t$95$m), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[(2.0 * N[Power[k, -2.0], $MachinePrecision]), $MachinePrecision] / t$95$m), $MachinePrecision] * N[(N[Power[l, 2.0], $MachinePrecision] * N[(N[Power[k, -2.0], $MachinePrecision] + -0.16666666666666666), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]), $MachinePrecision]
\begin{array}{l}
t_m = \left|t\right|
\\
t_s = \mathsf{copysign}\left(1, t\right)
\\
t\_s \cdot \begin{array}{l}
\mathbf{if}\;t\_m \leq 8.4 \cdot 10^{-166}:\\
\;\;\;\;2 \cdot \frac{{\ell}^{2} \cdot \cos k}{t\_m \cdot {k}^{4}}\\
\mathbf{elif}\;t\_m \leq 5.2 \cdot 10^{+57}:\\
\;\;\;\;\frac{\frac{2}{\frac{{t\_m}^{2}}{\frac{\ell}{\sin k}} \cdot \frac{t\_m \cdot k}{\ell}}}{\frac{k}{t\_m} \cdot \frac{k}{t\_m}}\\
\mathbf{else}:\\
\;\;\;\;\frac{2 \cdot {k}^{-2}}{t\_m} \cdot \left({\ell}^{2} \cdot \left({k}^{-2} + -0.16666666666666666\right)\right)\\
\end{array}
\end{array}
if t < 8.3999999999999998e-166Initial program 35.1%
associate-*l*35.1%
associate-/r*35.1%
sub-neg35.1%
distribute-rgt-in29.6%
unpow229.6%
times-frac19.8%
sqr-neg19.8%
times-frac29.6%
unpow229.6%
distribute-rgt-in35.1%
+-commutative35.1%
associate-+l+43.6%
Simplified43.6%
Taylor expanded in t around 0 79.1%
Taylor expanded in k around 0 64.1%
if 8.3999999999999998e-166 < t < 5.2e57Initial program 52.6%
associate-/r*53.6%
associate-*l*53.7%
associate-*l/53.7%
associate-/l*53.7%
+-commutative53.7%
unpow253.7%
sqr-neg53.7%
distribute-frac-neg53.7%
distribute-frac-neg53.7%
unpow253.7%
associate--l+55.8%
metadata-eval55.8%
+-rgt-identity55.8%
unpow255.8%
distribute-frac-neg55.8%
distribute-frac-neg55.8%
sqr-neg55.8%
unpow255.8%
Simplified55.8%
unpow355.8%
times-frac67.1%
times-frac73.0%
pow273.0%
Applied egg-rr73.0%
unpow273.0%
Applied egg-rr73.0%
Taylor expanded in k around 0 67.2%
if 5.2e57 < t Initial program 16.5%
associate-*l*16.5%
associate-/r*16.5%
sub-neg16.5%
distribute-rgt-in16.5%
unpow216.5%
times-frac11.8%
sqr-neg11.8%
times-frac16.5%
unpow216.5%
distribute-rgt-in16.5%
+-commutative16.5%
associate-+l+42.1%
Simplified42.1%
Taylor expanded in t around 0 77.0%
associate-*r/77.0%
associate-*r*77.0%
times-frac76.9%
Simplified76.9%
associate-*l/76.9%
div-inv76.9%
pow-flip77.0%
metadata-eval77.0%
Applied egg-rr77.0%
times-frac79.2%
Simplified79.2%
Taylor expanded in k around 0 61.3%
+-commutative61.3%
associate--l+61.3%
distribute-rgt-out--61.3%
metadata-eval61.3%
Simplified61.3%
expm1-log1p-u60.5%
expm1-udef60.4%
Applied egg-rr56.4%
expm1-def58.7%
expm1-log1p59.1%
associate-/l*61.3%
associate-/r/63.6%
fma-udef63.6%
distribute-lft-out70.7%
Simplified70.7%
Final simplification65.8%
t_m = (fabs.f64 t)
t_s = (copysign.f64 1 t)
(FPCore (t_s t_m l k)
:precision binary64
(*
t_s
(if (<= t_m 8.4e-166)
(* 2.0 (/ (* (pow l 2.0) (cos k)) (* t_m (pow k 4.0))))
(if (<= t_m 5.6e+30)
(/
(/ 2.0 (* (/ (pow t_m 2.0) (/ l (sin k))) (/ (* t_m k) l)))
(* (/ k t_m) (/ k t_m)))
(* (/ (pow l 2.0) (pow k 2.0)) (/ 2.0 (* t_m (pow k 2.0))))))))t_m = fabs(t);
t_s = copysign(1.0, t);
double code(double t_s, double t_m, double l, double k) {
double tmp;
if (t_m <= 8.4e-166) {
tmp = 2.0 * ((pow(l, 2.0) * cos(k)) / (t_m * pow(k, 4.0)));
} else if (t_m <= 5.6e+30) {
tmp = (2.0 / ((pow(t_m, 2.0) / (l / sin(k))) * ((t_m * k) / l))) / ((k / t_m) * (k / t_m));
} else {
tmp = (pow(l, 2.0) / pow(k, 2.0)) * (2.0 / (t_m * pow(k, 2.0)));
}
return t_s * tmp;
}
t_m = abs(t)
t_s = copysign(1.0d0, t)
real(8) function code(t_s, t_m, l, k)
real(8), intent (in) :: t_s
real(8), intent (in) :: t_m
real(8), intent (in) :: l
real(8), intent (in) :: k
real(8) :: tmp
if (t_m <= 8.4d-166) then
tmp = 2.0d0 * (((l ** 2.0d0) * cos(k)) / (t_m * (k ** 4.0d0)))
else if (t_m <= 5.6d+30) then
tmp = (2.0d0 / (((t_m ** 2.0d0) / (l / sin(k))) * ((t_m * k) / l))) / ((k / t_m) * (k / t_m))
else
tmp = ((l ** 2.0d0) / (k ** 2.0d0)) * (2.0d0 / (t_m * (k ** 2.0d0)))
end if
code = t_s * tmp
end function
t_m = Math.abs(t);
t_s = Math.copySign(1.0, t);
public static double code(double t_s, double t_m, double l, double k) {
double tmp;
if (t_m <= 8.4e-166) {
tmp = 2.0 * ((Math.pow(l, 2.0) * Math.cos(k)) / (t_m * Math.pow(k, 4.0)));
} else if (t_m <= 5.6e+30) {
tmp = (2.0 / ((Math.pow(t_m, 2.0) / (l / Math.sin(k))) * ((t_m * k) / l))) / ((k / t_m) * (k / t_m));
} else {
tmp = (Math.pow(l, 2.0) / Math.pow(k, 2.0)) * (2.0 / (t_m * Math.pow(k, 2.0)));
}
return t_s * tmp;
}
t_m = math.fabs(t) t_s = math.copysign(1.0, t) def code(t_s, t_m, l, k): tmp = 0 if t_m <= 8.4e-166: tmp = 2.0 * ((math.pow(l, 2.0) * math.cos(k)) / (t_m * math.pow(k, 4.0))) elif t_m <= 5.6e+30: tmp = (2.0 / ((math.pow(t_m, 2.0) / (l / math.sin(k))) * ((t_m * k) / l))) / ((k / t_m) * (k / t_m)) else: tmp = (math.pow(l, 2.0) / math.pow(k, 2.0)) * (2.0 / (t_m * math.pow(k, 2.0))) return t_s * tmp
t_m = abs(t) t_s = copysign(1.0, t) function code(t_s, t_m, l, k) tmp = 0.0 if (t_m <= 8.4e-166) tmp = Float64(2.0 * Float64(Float64((l ^ 2.0) * cos(k)) / Float64(t_m * (k ^ 4.0)))); elseif (t_m <= 5.6e+30) tmp = Float64(Float64(2.0 / Float64(Float64((t_m ^ 2.0) / Float64(l / sin(k))) * Float64(Float64(t_m * k) / l))) / Float64(Float64(k / t_m) * Float64(k / t_m))); else tmp = Float64(Float64((l ^ 2.0) / (k ^ 2.0)) * Float64(2.0 / Float64(t_m * (k ^ 2.0)))); end return Float64(t_s * tmp) end
t_m = abs(t); t_s = sign(t) * abs(1.0); function tmp_2 = code(t_s, t_m, l, k) tmp = 0.0; if (t_m <= 8.4e-166) tmp = 2.0 * (((l ^ 2.0) * cos(k)) / (t_m * (k ^ 4.0))); elseif (t_m <= 5.6e+30) tmp = (2.0 / (((t_m ^ 2.0) / (l / sin(k))) * ((t_m * k) / l))) / ((k / t_m) * (k / t_m)); else tmp = ((l ^ 2.0) / (k ^ 2.0)) * (2.0 / (t_m * (k ^ 2.0))); end tmp_2 = t_s * tmp; end
t_m = N[Abs[t], $MachinePrecision]
t_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[t]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
code[t$95$s_, t$95$m_, l_, k_] := N[(t$95$s * If[LessEqual[t$95$m, 8.4e-166], N[(2.0 * N[(N[(N[Power[l, 2.0], $MachinePrecision] * N[Cos[k], $MachinePrecision]), $MachinePrecision] / N[(t$95$m * N[Power[k, 4.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$m, 5.6e+30], N[(N[(2.0 / N[(N[(N[Power[t$95$m, 2.0], $MachinePrecision] / N[(l / N[Sin[k], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(N[(t$95$m * k), $MachinePrecision] / l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(k / t$95$m), $MachinePrecision] * N[(k / t$95$m), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[Power[l, 2.0], $MachinePrecision] / N[Power[k, 2.0], $MachinePrecision]), $MachinePrecision] * N[(2.0 / N[(t$95$m * N[Power[k, 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]), $MachinePrecision]
\begin{array}{l}
t_m = \left|t\right|
\\
t_s = \mathsf{copysign}\left(1, t\right)
\\
t\_s \cdot \begin{array}{l}
\mathbf{if}\;t\_m \leq 8.4 \cdot 10^{-166}:\\
\;\;\;\;2 \cdot \frac{{\ell}^{2} \cdot \cos k}{t\_m \cdot {k}^{4}}\\
\mathbf{elif}\;t\_m \leq 5.6 \cdot 10^{+30}:\\
\;\;\;\;\frac{\frac{2}{\frac{{t\_m}^{2}}{\frac{\ell}{\sin k}} \cdot \frac{t\_m \cdot k}{\ell}}}{\frac{k}{t\_m} \cdot \frac{k}{t\_m}}\\
\mathbf{else}:\\
\;\;\;\;\frac{{\ell}^{2}}{{k}^{2}} \cdot \frac{2}{t\_m \cdot {k}^{2}}\\
\end{array}
\end{array}
if t < 8.3999999999999998e-166Initial program 35.1%
associate-*l*35.1%
associate-/r*35.1%
sub-neg35.1%
distribute-rgt-in29.6%
unpow229.6%
times-frac19.8%
sqr-neg19.8%
times-frac29.6%
unpow229.6%
distribute-rgt-in35.1%
+-commutative35.1%
associate-+l+43.6%
Simplified43.6%
Taylor expanded in t around 0 79.1%
Taylor expanded in k around 0 64.1%
if 8.3999999999999998e-166 < t < 5.59999999999999966e30Initial program 46.8%
associate-/r*48.1%
associate-*l*48.1%
associate-*l/48.1%
associate-/l*48.1%
+-commutative48.1%
unpow248.1%
sqr-neg48.1%
distribute-frac-neg48.1%
distribute-frac-neg48.1%
unpow248.1%
associate--l+50.6%
metadata-eval50.6%
+-rgt-identity50.6%
unpow250.6%
distribute-frac-neg50.6%
distribute-frac-neg50.6%
sqr-neg50.6%
unpow250.6%
Simplified50.6%
unpow350.6%
times-frac63.8%
times-frac70.6%
pow270.6%
Applied egg-rr70.6%
unpow270.6%
Applied egg-rr70.6%
Taylor expanded in k around 0 64.1%
if 5.59999999999999966e30 < t Initial program 26.4%
associate-*l*26.4%
associate-/r*26.4%
sub-neg26.4%
distribute-rgt-in26.3%
unpow226.3%
times-frac22.3%
sqr-neg22.3%
times-frac26.3%
unpow226.3%
distribute-rgt-in26.4%
+-commutative26.4%
associate-+l+48.4%
Simplified48.4%
Taylor expanded in t around 0 78.4%
associate-*r/78.4%
associate-*r*78.4%
times-frac78.3%
Simplified78.3%
Taylor expanded in k around 0 72.6%
Final simplification65.8%
t_m = (fabs.f64 t)
t_s = (copysign.f64 1 t)
(FPCore (t_s t_m l k)
:precision binary64
(*
t_s
(if (or (<= t_m 8.4e-166) (not (<= t_m 4.2e+79)))
(* 2.0 (/ (* (pow l 2.0) (cos k)) (* t_m (pow k 4.0))))
(/
(/ 2.0 (* (/ (pow t_m 2.0) (/ l (sin k))) (/ (* t_m k) l)))
(* (/ k t_m) (/ k t_m))))))t_m = fabs(t);
t_s = copysign(1.0, t);
double code(double t_s, double t_m, double l, double k) {
double tmp;
if ((t_m <= 8.4e-166) || !(t_m <= 4.2e+79)) {
tmp = 2.0 * ((pow(l, 2.0) * cos(k)) / (t_m * pow(k, 4.0)));
} else {
tmp = (2.0 / ((pow(t_m, 2.0) / (l / sin(k))) * ((t_m * k) / l))) / ((k / t_m) * (k / t_m));
}
return t_s * tmp;
}
t_m = abs(t)
t_s = copysign(1.0d0, t)
real(8) function code(t_s, t_m, l, k)
real(8), intent (in) :: t_s
real(8), intent (in) :: t_m
real(8), intent (in) :: l
real(8), intent (in) :: k
real(8) :: tmp
if ((t_m <= 8.4d-166) .or. (.not. (t_m <= 4.2d+79))) then
tmp = 2.0d0 * (((l ** 2.0d0) * cos(k)) / (t_m * (k ** 4.0d0)))
else
tmp = (2.0d0 / (((t_m ** 2.0d0) / (l / sin(k))) * ((t_m * k) / l))) / ((k / t_m) * (k / t_m))
end if
code = t_s * tmp
end function
t_m = Math.abs(t);
t_s = Math.copySign(1.0, t);
public static double code(double t_s, double t_m, double l, double k) {
double tmp;
if ((t_m <= 8.4e-166) || !(t_m <= 4.2e+79)) {
tmp = 2.0 * ((Math.pow(l, 2.0) * Math.cos(k)) / (t_m * Math.pow(k, 4.0)));
} else {
tmp = (2.0 / ((Math.pow(t_m, 2.0) / (l / Math.sin(k))) * ((t_m * k) / l))) / ((k / t_m) * (k / t_m));
}
return t_s * tmp;
}
t_m = math.fabs(t) t_s = math.copysign(1.0, t) def code(t_s, t_m, l, k): tmp = 0 if (t_m <= 8.4e-166) or not (t_m <= 4.2e+79): tmp = 2.0 * ((math.pow(l, 2.0) * math.cos(k)) / (t_m * math.pow(k, 4.0))) else: tmp = (2.0 / ((math.pow(t_m, 2.0) / (l / math.sin(k))) * ((t_m * k) / l))) / ((k / t_m) * (k / t_m)) return t_s * tmp
t_m = abs(t) t_s = copysign(1.0, t) function code(t_s, t_m, l, k) tmp = 0.0 if ((t_m <= 8.4e-166) || !(t_m <= 4.2e+79)) tmp = Float64(2.0 * Float64(Float64((l ^ 2.0) * cos(k)) / Float64(t_m * (k ^ 4.0)))); else tmp = Float64(Float64(2.0 / Float64(Float64((t_m ^ 2.0) / Float64(l / sin(k))) * Float64(Float64(t_m * k) / l))) / Float64(Float64(k / t_m) * Float64(k / t_m))); end return Float64(t_s * tmp) end
t_m = abs(t); t_s = sign(t) * abs(1.0); function tmp_2 = code(t_s, t_m, l, k) tmp = 0.0; if ((t_m <= 8.4e-166) || ~((t_m <= 4.2e+79))) tmp = 2.0 * (((l ^ 2.0) * cos(k)) / (t_m * (k ^ 4.0))); else tmp = (2.0 / (((t_m ^ 2.0) / (l / sin(k))) * ((t_m * k) / l))) / ((k / t_m) * (k / t_m)); end tmp_2 = t_s * tmp; end
t_m = N[Abs[t], $MachinePrecision]
t_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[t]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
code[t$95$s_, t$95$m_, l_, k_] := N[(t$95$s * If[Or[LessEqual[t$95$m, 8.4e-166], N[Not[LessEqual[t$95$m, 4.2e+79]], $MachinePrecision]], N[(2.0 * N[(N[(N[Power[l, 2.0], $MachinePrecision] * N[Cos[k], $MachinePrecision]), $MachinePrecision] / N[(t$95$m * N[Power[k, 4.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(2.0 / N[(N[(N[Power[t$95$m, 2.0], $MachinePrecision] / N[(l / N[Sin[k], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(N[(t$95$m * k), $MachinePrecision] / l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(k / t$95$m), $MachinePrecision] * N[(k / t$95$m), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]), $MachinePrecision]
\begin{array}{l}
t_m = \left|t\right|
\\
t_s = \mathsf{copysign}\left(1, t\right)
\\
t\_s \cdot \begin{array}{l}
\mathbf{if}\;t\_m \leq 8.4 \cdot 10^{-166} \lor \neg \left(t\_m \leq 4.2 \cdot 10^{+79}\right):\\
\;\;\;\;2 \cdot \frac{{\ell}^{2} \cdot \cos k}{t\_m \cdot {k}^{4}}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{2}{\frac{{t\_m}^{2}}{\frac{\ell}{\sin k}} \cdot \frac{t\_m \cdot k}{\ell}}}{\frac{k}{t\_m} \cdot \frac{k}{t\_m}}\\
\end{array}
\end{array}
if t < 8.3999999999999998e-166 or 4.20000000000000016e79 < t Initial program 30.8%
associate-*l*30.8%
associate-/r*30.8%
sub-neg30.8%
distribute-rgt-in26.3%
unpow226.3%
times-frac17.5%
sqr-neg17.5%
times-frac26.3%
unpow226.3%
distribute-rgt-in30.8%
+-commutative30.8%
associate-+l+42.7%
Simplified42.7%
Taylor expanded in t around 0 78.7%
Taylor expanded in k around 0 63.9%
if 8.3999999999999998e-166 < t < 4.20000000000000016e79Initial program 52.5%
associate-/r*53.5%
associate-*l*53.5%
associate-*l/53.5%
associate-/l*53.5%
+-commutative53.5%
unpow253.5%
sqr-neg53.5%
distribute-frac-neg53.5%
distribute-frac-neg53.5%
unpow253.5%
associate--l+57.3%
metadata-eval57.3%
+-rgt-identity57.3%
unpow257.3%
distribute-frac-neg57.3%
distribute-frac-neg57.3%
sqr-neg57.3%
unpow257.3%
Simplified57.3%
unpow357.3%
times-frac67.7%
times-frac75.0%
pow275.0%
Applied egg-rr75.0%
unpow275.0%
Applied egg-rr75.0%
Taylor expanded in k around 0 67.9%
Final simplification64.7%
t_m = (fabs.f64 t)
t_s = (copysign.f64 1 t)
(FPCore (t_s t_m l k)
:precision binary64
(*
t_s
(if (or (<= t_m 8.4e-166) (not (<= t_m 1e+78)))
(* 2.0 (/ (/ (pow l 2.0) (pow k 4.0)) t_m))
(/
(/ 2.0 (* (/ t_m (/ l (tan k))) (* (pow t_m 2.0) (/ k l))))
(* (/ k t_m) (/ k t_m))))))t_m = fabs(t);
t_s = copysign(1.0, t);
double code(double t_s, double t_m, double l, double k) {
double tmp;
if ((t_m <= 8.4e-166) || !(t_m <= 1e+78)) {
tmp = 2.0 * ((pow(l, 2.0) / pow(k, 4.0)) / t_m);
} else {
tmp = (2.0 / ((t_m / (l / tan(k))) * (pow(t_m, 2.0) * (k / l)))) / ((k / t_m) * (k / t_m));
}
return t_s * tmp;
}
t_m = abs(t)
t_s = copysign(1.0d0, t)
real(8) function code(t_s, t_m, l, k)
real(8), intent (in) :: t_s
real(8), intent (in) :: t_m
real(8), intent (in) :: l
real(8), intent (in) :: k
real(8) :: tmp
if ((t_m <= 8.4d-166) .or. (.not. (t_m <= 1d+78))) then
tmp = 2.0d0 * (((l ** 2.0d0) / (k ** 4.0d0)) / t_m)
else
tmp = (2.0d0 / ((t_m / (l / tan(k))) * ((t_m ** 2.0d0) * (k / l)))) / ((k / t_m) * (k / t_m))
end if
code = t_s * tmp
end function
t_m = Math.abs(t);
t_s = Math.copySign(1.0, t);
public static double code(double t_s, double t_m, double l, double k) {
double tmp;
if ((t_m <= 8.4e-166) || !(t_m <= 1e+78)) {
tmp = 2.0 * ((Math.pow(l, 2.0) / Math.pow(k, 4.0)) / t_m);
} else {
tmp = (2.0 / ((t_m / (l / Math.tan(k))) * (Math.pow(t_m, 2.0) * (k / l)))) / ((k / t_m) * (k / t_m));
}
return t_s * tmp;
}
t_m = math.fabs(t) t_s = math.copysign(1.0, t) def code(t_s, t_m, l, k): tmp = 0 if (t_m <= 8.4e-166) or not (t_m <= 1e+78): tmp = 2.0 * ((math.pow(l, 2.0) / math.pow(k, 4.0)) / t_m) else: tmp = (2.0 / ((t_m / (l / math.tan(k))) * (math.pow(t_m, 2.0) * (k / l)))) / ((k / t_m) * (k / t_m)) return t_s * tmp
t_m = abs(t) t_s = copysign(1.0, t) function code(t_s, t_m, l, k) tmp = 0.0 if ((t_m <= 8.4e-166) || !(t_m <= 1e+78)) tmp = Float64(2.0 * Float64(Float64((l ^ 2.0) / (k ^ 4.0)) / t_m)); else tmp = Float64(Float64(2.0 / Float64(Float64(t_m / Float64(l / tan(k))) * Float64((t_m ^ 2.0) * Float64(k / l)))) / Float64(Float64(k / t_m) * Float64(k / t_m))); end return Float64(t_s * tmp) end
t_m = abs(t); t_s = sign(t) * abs(1.0); function tmp_2 = code(t_s, t_m, l, k) tmp = 0.0; if ((t_m <= 8.4e-166) || ~((t_m <= 1e+78))) tmp = 2.0 * (((l ^ 2.0) / (k ^ 4.0)) / t_m); else tmp = (2.0 / ((t_m / (l / tan(k))) * ((t_m ^ 2.0) * (k / l)))) / ((k / t_m) * (k / t_m)); end tmp_2 = t_s * tmp; end
t_m = N[Abs[t], $MachinePrecision]
t_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[t]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
code[t$95$s_, t$95$m_, l_, k_] := N[(t$95$s * If[Or[LessEqual[t$95$m, 8.4e-166], N[Not[LessEqual[t$95$m, 1e+78]], $MachinePrecision]], N[(2.0 * N[(N[(N[Power[l, 2.0], $MachinePrecision] / N[Power[k, 4.0], $MachinePrecision]), $MachinePrecision] / t$95$m), $MachinePrecision]), $MachinePrecision], N[(N[(2.0 / N[(N[(t$95$m / N[(l / N[Tan[k], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(N[Power[t$95$m, 2.0], $MachinePrecision] * N[(k / l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(k / t$95$m), $MachinePrecision] * N[(k / t$95$m), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]), $MachinePrecision]
\begin{array}{l}
t_m = \left|t\right|
\\
t_s = \mathsf{copysign}\left(1, t\right)
\\
t\_s \cdot \begin{array}{l}
\mathbf{if}\;t\_m \leq 8.4 \cdot 10^{-166} \lor \neg \left(t\_m \leq 10^{+78}\right):\\
\;\;\;\;2 \cdot \frac{\frac{{\ell}^{2}}{{k}^{4}}}{t\_m}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{2}{\frac{t\_m}{\frac{\ell}{\tan k}} \cdot \left({t\_m}^{2} \cdot \frac{k}{\ell}\right)}}{\frac{k}{t\_m} \cdot \frac{k}{t\_m}}\\
\end{array}
\end{array}
if t < 8.3999999999999998e-166 or 1.00000000000000001e78 < t Initial program 30.8%
associate-*l*30.8%
associate-/r*30.8%
sub-neg30.8%
distribute-rgt-in26.3%
unpow226.3%
times-frac17.5%
sqr-neg17.5%
times-frac26.3%
unpow226.3%
distribute-rgt-in30.8%
+-commutative30.8%
associate-+l+42.7%
Simplified42.7%
Taylor expanded in t around 0 78.7%
associate-*r/78.7%
associate-*r*78.7%
times-frac78.8%
Simplified78.8%
associate-*l/78.7%
div-inv78.7%
pow-flip78.7%
metadata-eval78.7%
Applied egg-rr78.7%
times-frac78.8%
Simplified78.8%
Taylor expanded in k around 0 61.7%
associate-/r*61.3%
Simplified61.3%
if 8.3999999999999998e-166 < t < 1.00000000000000001e78Initial program 52.5%
associate-/r*53.5%
associate-*l*53.5%
associate-*l/53.5%
associate-/l*53.5%
+-commutative53.5%
unpow253.5%
sqr-neg53.5%
distribute-frac-neg53.5%
distribute-frac-neg53.5%
unpow253.5%
associate--l+57.3%
metadata-eval57.3%
+-rgt-identity57.3%
unpow257.3%
distribute-frac-neg57.3%
distribute-frac-neg57.3%
sqr-neg57.3%
unpow257.3%
Simplified57.3%
unpow357.3%
times-frac67.7%
times-frac75.0%
pow275.0%
Applied egg-rr75.0%
unpow275.0%
Applied egg-rr75.0%
Taylor expanded in k around 0 66.0%
associate-/l*66.9%
associate-/r/67.0%
Simplified67.0%
Final simplification62.5%
t_m = (fabs.f64 t)
t_s = (copysign.f64 1 t)
(FPCore (t_s t_m l k)
:precision binary64
(*
t_s
(if (or (<= t_m 8.4e-166) (not (<= t_m 2.75e+79)))
(* 2.0 (/ (/ (pow l 2.0) (pow k 4.0)) t_m))
(/
(/ 2.0 (* (/ (pow t_m 2.0) (/ l (sin k))) (/ (* t_m k) l)))
(* (/ k t_m) (/ k t_m))))))t_m = fabs(t);
t_s = copysign(1.0, t);
double code(double t_s, double t_m, double l, double k) {
double tmp;
if ((t_m <= 8.4e-166) || !(t_m <= 2.75e+79)) {
tmp = 2.0 * ((pow(l, 2.0) / pow(k, 4.0)) / t_m);
} else {
tmp = (2.0 / ((pow(t_m, 2.0) / (l / sin(k))) * ((t_m * k) / l))) / ((k / t_m) * (k / t_m));
}
return t_s * tmp;
}
t_m = abs(t)
t_s = copysign(1.0d0, t)
real(8) function code(t_s, t_m, l, k)
real(8), intent (in) :: t_s
real(8), intent (in) :: t_m
real(8), intent (in) :: l
real(8), intent (in) :: k
real(8) :: tmp
if ((t_m <= 8.4d-166) .or. (.not. (t_m <= 2.75d+79))) then
tmp = 2.0d0 * (((l ** 2.0d0) / (k ** 4.0d0)) / t_m)
else
tmp = (2.0d0 / (((t_m ** 2.0d0) / (l / sin(k))) * ((t_m * k) / l))) / ((k / t_m) * (k / t_m))
end if
code = t_s * tmp
end function
t_m = Math.abs(t);
t_s = Math.copySign(1.0, t);
public static double code(double t_s, double t_m, double l, double k) {
double tmp;
if ((t_m <= 8.4e-166) || !(t_m <= 2.75e+79)) {
tmp = 2.0 * ((Math.pow(l, 2.0) / Math.pow(k, 4.0)) / t_m);
} else {
tmp = (2.0 / ((Math.pow(t_m, 2.0) / (l / Math.sin(k))) * ((t_m * k) / l))) / ((k / t_m) * (k / t_m));
}
return t_s * tmp;
}
t_m = math.fabs(t) t_s = math.copysign(1.0, t) def code(t_s, t_m, l, k): tmp = 0 if (t_m <= 8.4e-166) or not (t_m <= 2.75e+79): tmp = 2.0 * ((math.pow(l, 2.0) / math.pow(k, 4.0)) / t_m) else: tmp = (2.0 / ((math.pow(t_m, 2.0) / (l / math.sin(k))) * ((t_m * k) / l))) / ((k / t_m) * (k / t_m)) return t_s * tmp
t_m = abs(t) t_s = copysign(1.0, t) function code(t_s, t_m, l, k) tmp = 0.0 if ((t_m <= 8.4e-166) || !(t_m <= 2.75e+79)) tmp = Float64(2.0 * Float64(Float64((l ^ 2.0) / (k ^ 4.0)) / t_m)); else tmp = Float64(Float64(2.0 / Float64(Float64((t_m ^ 2.0) / Float64(l / sin(k))) * Float64(Float64(t_m * k) / l))) / Float64(Float64(k / t_m) * Float64(k / t_m))); end return Float64(t_s * tmp) end
t_m = abs(t); t_s = sign(t) * abs(1.0); function tmp_2 = code(t_s, t_m, l, k) tmp = 0.0; if ((t_m <= 8.4e-166) || ~((t_m <= 2.75e+79))) tmp = 2.0 * (((l ^ 2.0) / (k ^ 4.0)) / t_m); else tmp = (2.0 / (((t_m ^ 2.0) / (l / sin(k))) * ((t_m * k) / l))) / ((k / t_m) * (k / t_m)); end tmp_2 = t_s * tmp; end
t_m = N[Abs[t], $MachinePrecision]
t_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[t]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
code[t$95$s_, t$95$m_, l_, k_] := N[(t$95$s * If[Or[LessEqual[t$95$m, 8.4e-166], N[Not[LessEqual[t$95$m, 2.75e+79]], $MachinePrecision]], N[(2.0 * N[(N[(N[Power[l, 2.0], $MachinePrecision] / N[Power[k, 4.0], $MachinePrecision]), $MachinePrecision] / t$95$m), $MachinePrecision]), $MachinePrecision], N[(N[(2.0 / N[(N[(N[Power[t$95$m, 2.0], $MachinePrecision] / N[(l / N[Sin[k], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(N[(t$95$m * k), $MachinePrecision] / l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(k / t$95$m), $MachinePrecision] * N[(k / t$95$m), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]), $MachinePrecision]
\begin{array}{l}
t_m = \left|t\right|
\\
t_s = \mathsf{copysign}\left(1, t\right)
\\
t\_s \cdot \begin{array}{l}
\mathbf{if}\;t\_m \leq 8.4 \cdot 10^{-166} \lor \neg \left(t\_m \leq 2.75 \cdot 10^{+79}\right):\\
\;\;\;\;2 \cdot \frac{\frac{{\ell}^{2}}{{k}^{4}}}{t\_m}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{2}{\frac{{t\_m}^{2}}{\frac{\ell}{\sin k}} \cdot \frac{t\_m \cdot k}{\ell}}}{\frac{k}{t\_m} \cdot \frac{k}{t\_m}}\\
\end{array}
\end{array}
if t < 8.3999999999999998e-166 or 2.75000000000000003e79 < t Initial program 30.8%
associate-*l*30.8%
associate-/r*30.8%
sub-neg30.8%
distribute-rgt-in26.3%
unpow226.3%
times-frac17.5%
sqr-neg17.5%
times-frac26.3%
unpow226.3%
distribute-rgt-in30.8%
+-commutative30.8%
associate-+l+42.7%
Simplified42.7%
Taylor expanded in t around 0 78.7%
associate-*r/78.7%
associate-*r*78.7%
times-frac78.8%
Simplified78.8%
associate-*l/78.7%
div-inv78.7%
pow-flip78.7%
metadata-eval78.7%
Applied egg-rr78.7%
times-frac78.8%
Simplified78.8%
Taylor expanded in k around 0 61.7%
associate-/r*61.3%
Simplified61.3%
if 8.3999999999999998e-166 < t < 2.75000000000000003e79Initial program 52.5%
associate-/r*53.5%
associate-*l*53.5%
associate-*l/53.5%
associate-/l*53.5%
+-commutative53.5%
unpow253.5%
sqr-neg53.5%
distribute-frac-neg53.5%
distribute-frac-neg53.5%
unpow253.5%
associate--l+57.3%
metadata-eval57.3%
+-rgt-identity57.3%
unpow257.3%
distribute-frac-neg57.3%
distribute-frac-neg57.3%
sqr-neg57.3%
unpow257.3%
Simplified57.3%
unpow357.3%
times-frac67.7%
times-frac75.0%
pow275.0%
Applied egg-rr75.0%
unpow275.0%
Applied egg-rr75.0%
Taylor expanded in k around 0 67.9%
Final simplification62.7%
t_m = (fabs.f64 t) t_s = (copysign.f64 1 t) (FPCore (t_s t_m l k) :precision binary64 (* t_s (* -0.3333333333333333 (/ (pow l 2.0) (* t_m (pow k 2.0))))))
t_m = fabs(t);
t_s = copysign(1.0, t);
double code(double t_s, double t_m, double l, double k) {
return t_s * (-0.3333333333333333 * (pow(l, 2.0) / (t_m * pow(k, 2.0))));
}
t_m = abs(t)
t_s = copysign(1.0d0, t)
real(8) function code(t_s, t_m, l, k)
real(8), intent (in) :: t_s
real(8), intent (in) :: t_m
real(8), intent (in) :: l
real(8), intent (in) :: k
code = t_s * ((-0.3333333333333333d0) * ((l ** 2.0d0) / (t_m * (k ** 2.0d0))))
end function
t_m = Math.abs(t);
t_s = Math.copySign(1.0, t);
public static double code(double t_s, double t_m, double l, double k) {
return t_s * (-0.3333333333333333 * (Math.pow(l, 2.0) / (t_m * Math.pow(k, 2.0))));
}
t_m = math.fabs(t) t_s = math.copysign(1.0, t) def code(t_s, t_m, l, k): return t_s * (-0.3333333333333333 * (math.pow(l, 2.0) / (t_m * math.pow(k, 2.0))))
t_m = abs(t) t_s = copysign(1.0, t) function code(t_s, t_m, l, k) return Float64(t_s * Float64(-0.3333333333333333 * Float64((l ^ 2.0) / Float64(t_m * (k ^ 2.0))))) end
t_m = abs(t); t_s = sign(t) * abs(1.0); function tmp = code(t_s, t_m, l, k) tmp = t_s * (-0.3333333333333333 * ((l ^ 2.0) / (t_m * (k ^ 2.0)))); end
t_m = N[Abs[t], $MachinePrecision]
t_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[t]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
code[t$95$s_, t$95$m_, l_, k_] := N[(t$95$s * N[(-0.3333333333333333 * N[(N[Power[l, 2.0], $MachinePrecision] / N[(t$95$m * N[Power[k, 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
t_m = \left|t\right|
\\
t_s = \mathsf{copysign}\left(1, t\right)
\\
t\_s \cdot \left(-0.3333333333333333 \cdot \frac{{\ell}^{2}}{t\_m \cdot {k}^{2}}\right)
\end{array}
Initial program 35.3%
associate-*l*35.3%
associate-/r*35.5%
sub-neg35.5%
distribute-rgt-in32.0%
unpow232.0%
times-frac24.6%
sqr-neg24.6%
times-frac32.0%
unpow232.0%
distribute-rgt-in35.5%
+-commutative35.5%
associate-+l+45.7%
Simplified45.7%
Taylor expanded in t around 0 76.3%
associate-*r/76.3%
associate-*r*76.3%
times-frac76.3%
Simplified76.3%
associate-*l/76.3%
div-inv76.3%
pow-flip76.3%
metadata-eval76.3%
Applied egg-rr76.3%
times-frac76.4%
Simplified76.4%
Taylor expanded in k around 0 52.8%
+-commutative52.8%
associate--l+52.8%
distribute-rgt-out--52.8%
metadata-eval52.8%
Simplified52.8%
Taylor expanded in k around inf 37.3%
Final simplification37.3%
t_m = (fabs.f64 t) t_s = (copysign.f64 1 t) (FPCore (t_s t_m l k) :precision binary64 (* t_s (* 2.0 (* (/ (pow l 2.0) t_m) (pow k -4.0)))))
t_m = fabs(t);
t_s = copysign(1.0, t);
double code(double t_s, double t_m, double l, double k) {
return t_s * (2.0 * ((pow(l, 2.0) / t_m) * pow(k, -4.0)));
}
t_m = abs(t)
t_s = copysign(1.0d0, t)
real(8) function code(t_s, t_m, l, k)
real(8), intent (in) :: t_s
real(8), intent (in) :: t_m
real(8), intent (in) :: l
real(8), intent (in) :: k
code = t_s * (2.0d0 * (((l ** 2.0d0) / t_m) * (k ** (-4.0d0))))
end function
t_m = Math.abs(t);
t_s = Math.copySign(1.0, t);
public static double code(double t_s, double t_m, double l, double k) {
return t_s * (2.0 * ((Math.pow(l, 2.0) / t_m) * Math.pow(k, -4.0)));
}
t_m = math.fabs(t) t_s = math.copysign(1.0, t) def code(t_s, t_m, l, k): return t_s * (2.0 * ((math.pow(l, 2.0) / t_m) * math.pow(k, -4.0)))
t_m = abs(t) t_s = copysign(1.0, t) function code(t_s, t_m, l, k) return Float64(t_s * Float64(2.0 * Float64(Float64((l ^ 2.0) / t_m) * (k ^ -4.0)))) end
t_m = abs(t); t_s = sign(t) * abs(1.0); function tmp = code(t_s, t_m, l, k) tmp = t_s * (2.0 * (((l ^ 2.0) / t_m) * (k ^ -4.0))); end
t_m = N[Abs[t], $MachinePrecision]
t_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[t]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
code[t$95$s_, t$95$m_, l_, k_] := N[(t$95$s * N[(2.0 * N[(N[(N[Power[l, 2.0], $MachinePrecision] / t$95$m), $MachinePrecision] * N[Power[k, -4.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
t_m = \left|t\right|
\\
t_s = \mathsf{copysign}\left(1, t\right)
\\
t\_s \cdot \left(2 \cdot \left(\frac{{\ell}^{2}}{t\_m} \cdot {k}^{-4}\right)\right)
\end{array}
Initial program 35.3%
associate-*l*35.3%
associate-/r*35.5%
sub-neg35.5%
distribute-rgt-in32.0%
unpow232.0%
times-frac24.6%
sqr-neg24.6%
times-frac32.0%
unpow232.0%
distribute-rgt-in35.5%
+-commutative35.5%
associate-+l+45.7%
Simplified45.7%
Taylor expanded in k around 0 60.2%
*-commutative60.2%
associate-/r*59.8%
Simplified59.8%
div-inv59.5%
pow-flip59.5%
metadata-eval59.5%
Applied egg-rr59.5%
Final simplification59.5%
t_m = (fabs.f64 t) t_s = (copysign.f64 1 t) (FPCore (t_s t_m l k) :precision binary64 (* t_s (* 2.0 (/ (/ (pow l 2.0) t_m) (pow k 4.0)))))
t_m = fabs(t);
t_s = copysign(1.0, t);
double code(double t_s, double t_m, double l, double k) {
return t_s * (2.0 * ((pow(l, 2.0) / t_m) / pow(k, 4.0)));
}
t_m = abs(t)
t_s = copysign(1.0d0, t)
real(8) function code(t_s, t_m, l, k)
real(8), intent (in) :: t_s
real(8), intent (in) :: t_m
real(8), intent (in) :: l
real(8), intent (in) :: k
code = t_s * (2.0d0 * (((l ** 2.0d0) / t_m) / (k ** 4.0d0)))
end function
t_m = Math.abs(t);
t_s = Math.copySign(1.0, t);
public static double code(double t_s, double t_m, double l, double k) {
return t_s * (2.0 * ((Math.pow(l, 2.0) / t_m) / Math.pow(k, 4.0)));
}
t_m = math.fabs(t) t_s = math.copysign(1.0, t) def code(t_s, t_m, l, k): return t_s * (2.0 * ((math.pow(l, 2.0) / t_m) / math.pow(k, 4.0)))
t_m = abs(t) t_s = copysign(1.0, t) function code(t_s, t_m, l, k) return Float64(t_s * Float64(2.0 * Float64(Float64((l ^ 2.0) / t_m) / (k ^ 4.0)))) end
t_m = abs(t); t_s = sign(t) * abs(1.0); function tmp = code(t_s, t_m, l, k) tmp = t_s * (2.0 * (((l ^ 2.0) / t_m) / (k ^ 4.0))); end
t_m = N[Abs[t], $MachinePrecision]
t_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[t]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
code[t$95$s_, t$95$m_, l_, k_] := N[(t$95$s * N[(2.0 * N[(N[(N[Power[l, 2.0], $MachinePrecision] / t$95$m), $MachinePrecision] / N[Power[k, 4.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
t_m = \left|t\right|
\\
t_s = \mathsf{copysign}\left(1, t\right)
\\
t\_s \cdot \left(2 \cdot \frac{\frac{{\ell}^{2}}{t\_m}}{{k}^{4}}\right)
\end{array}
Initial program 35.3%
associate-*l*35.3%
associate-/r*35.5%
sub-neg35.5%
distribute-rgt-in32.0%
unpow232.0%
times-frac24.6%
sqr-neg24.6%
times-frac32.0%
unpow232.0%
distribute-rgt-in35.5%
+-commutative35.5%
associate-+l+45.7%
Simplified45.7%
Taylor expanded in k around 0 60.2%
*-commutative60.2%
associate-/r*59.8%
Simplified59.8%
Final simplification59.8%
t_m = (fabs.f64 t) t_s = (copysign.f64 1 t) (FPCore (t_s t_m l k) :precision binary64 (* t_s (* 2.0 (/ (/ (pow l 2.0) (pow k 4.0)) t_m))))
t_m = fabs(t);
t_s = copysign(1.0, t);
double code(double t_s, double t_m, double l, double k) {
return t_s * (2.0 * ((pow(l, 2.0) / pow(k, 4.0)) / t_m));
}
t_m = abs(t)
t_s = copysign(1.0d0, t)
real(8) function code(t_s, t_m, l, k)
real(8), intent (in) :: t_s
real(8), intent (in) :: t_m
real(8), intent (in) :: l
real(8), intent (in) :: k
code = t_s * (2.0d0 * (((l ** 2.0d0) / (k ** 4.0d0)) / t_m))
end function
t_m = Math.abs(t);
t_s = Math.copySign(1.0, t);
public static double code(double t_s, double t_m, double l, double k) {
return t_s * (2.0 * ((Math.pow(l, 2.0) / Math.pow(k, 4.0)) / t_m));
}
t_m = math.fabs(t) t_s = math.copysign(1.0, t) def code(t_s, t_m, l, k): return t_s * (2.0 * ((math.pow(l, 2.0) / math.pow(k, 4.0)) / t_m))
t_m = abs(t) t_s = copysign(1.0, t) function code(t_s, t_m, l, k) return Float64(t_s * Float64(2.0 * Float64(Float64((l ^ 2.0) / (k ^ 4.0)) / t_m))) end
t_m = abs(t); t_s = sign(t) * abs(1.0); function tmp = code(t_s, t_m, l, k) tmp = t_s * (2.0 * (((l ^ 2.0) / (k ^ 4.0)) / t_m)); end
t_m = N[Abs[t], $MachinePrecision]
t_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[t]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
code[t$95$s_, t$95$m_, l_, k_] := N[(t$95$s * N[(2.0 * N[(N[(N[Power[l, 2.0], $MachinePrecision] / N[Power[k, 4.0], $MachinePrecision]), $MachinePrecision] / t$95$m), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
t_m = \left|t\right|
\\
t_s = \mathsf{copysign}\left(1, t\right)
\\
t\_s \cdot \left(2 \cdot \frac{\frac{{\ell}^{2}}{{k}^{4}}}{t\_m}\right)
\end{array}
Initial program 35.3%
associate-*l*35.3%
associate-/r*35.5%
sub-neg35.5%
distribute-rgt-in32.0%
unpow232.0%
times-frac24.6%
sqr-neg24.6%
times-frac32.0%
unpow232.0%
distribute-rgt-in35.5%
+-commutative35.5%
associate-+l+45.7%
Simplified45.7%
Taylor expanded in t around 0 76.3%
associate-*r/76.3%
associate-*r*76.3%
times-frac76.3%
Simplified76.3%
associate-*l/76.3%
div-inv76.3%
pow-flip76.3%
metadata-eval76.3%
Applied egg-rr76.3%
times-frac76.4%
Simplified76.4%
Taylor expanded in k around 0 60.2%
associate-/r*59.9%
Simplified59.9%
Final simplification59.9%
t_m = (fabs.f64 t) t_s = (copysign.f64 1 t) (FPCore (t_s t_m l k) :precision binary64 (* t_s (* 2.0 (/ (pow l 2.0) (* t_m (pow k 4.0))))))
t_m = fabs(t);
t_s = copysign(1.0, t);
double code(double t_s, double t_m, double l, double k) {
return t_s * (2.0 * (pow(l, 2.0) / (t_m * pow(k, 4.0))));
}
t_m = abs(t)
t_s = copysign(1.0d0, t)
real(8) function code(t_s, t_m, l, k)
real(8), intent (in) :: t_s
real(8), intent (in) :: t_m
real(8), intent (in) :: l
real(8), intent (in) :: k
code = t_s * (2.0d0 * ((l ** 2.0d0) / (t_m * (k ** 4.0d0))))
end function
t_m = Math.abs(t);
t_s = Math.copySign(1.0, t);
public static double code(double t_s, double t_m, double l, double k) {
return t_s * (2.0 * (Math.pow(l, 2.0) / (t_m * Math.pow(k, 4.0))));
}
t_m = math.fabs(t) t_s = math.copysign(1.0, t) def code(t_s, t_m, l, k): return t_s * (2.0 * (math.pow(l, 2.0) / (t_m * math.pow(k, 4.0))))
t_m = abs(t) t_s = copysign(1.0, t) function code(t_s, t_m, l, k) return Float64(t_s * Float64(2.0 * Float64((l ^ 2.0) / Float64(t_m * (k ^ 4.0))))) end
t_m = abs(t); t_s = sign(t) * abs(1.0); function tmp = code(t_s, t_m, l, k) tmp = t_s * (2.0 * ((l ^ 2.0) / (t_m * (k ^ 4.0)))); end
t_m = N[Abs[t], $MachinePrecision]
t_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[t]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
code[t$95$s_, t$95$m_, l_, k_] := N[(t$95$s * N[(2.0 * N[(N[Power[l, 2.0], $MachinePrecision] / N[(t$95$m * N[Power[k, 4.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
t_m = \left|t\right|
\\
t_s = \mathsf{copysign}\left(1, t\right)
\\
t\_s \cdot \left(2 \cdot \frac{{\ell}^{2}}{t\_m \cdot {k}^{4}}\right)
\end{array}
Initial program 35.3%
associate-*l*35.3%
associate-/r*35.5%
sub-neg35.5%
distribute-rgt-in32.0%
unpow232.0%
times-frac24.6%
sqr-neg24.6%
times-frac32.0%
unpow232.0%
distribute-rgt-in35.5%
+-commutative35.5%
associate-+l+45.7%
Simplified45.7%
Taylor expanded in k around 0 60.2%
Final simplification60.2%
herbie shell --seed 2024029
(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))))