
(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 22 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 (* t_m (pow (sin k) 2.0))) (t_3 (* (pow l 2.0) (cos k))))
(*
t_s
(if (<= t_m 1.02e-60)
(* 2.0 (/ t_3 (pow (* k (sqrt t_2)) 2.0)))
(if (<= t_m 2.85e+203)
(/
(/
2.0
(*
(* (pow t_m 1.5) (* (sin k) (/ 1.0 l)))
(/ (pow t_m 1.5) (/ l (tan k)))))
(pow (/ k t_m) 2.0))
(/ 2.0 (/ (pow k 2.0) (/ t_3 t_2))))))))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 = t_m * pow(sin(k), 2.0);
double t_3 = pow(l, 2.0) * cos(k);
double tmp;
if (t_m <= 1.02e-60) {
tmp = 2.0 * (t_3 / pow((k * sqrt(t_2)), 2.0));
} else if (t_m <= 2.85e+203) {
tmp = (2.0 / ((pow(t_m, 1.5) * (sin(k) * (1.0 / l))) * (pow(t_m, 1.5) / (l / tan(k))))) / pow((k / t_m), 2.0);
} else {
tmp = 2.0 / (pow(k, 2.0) / (t_3 / t_2));
}
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 = t_m * (sin(k) ** 2.0d0)
t_3 = (l ** 2.0d0) * cos(k)
if (t_m <= 1.02d-60) then
tmp = 2.0d0 * (t_3 / ((k * sqrt(t_2)) ** 2.0d0))
else if (t_m <= 2.85d+203) then
tmp = (2.0d0 / (((t_m ** 1.5d0) * (sin(k) * (1.0d0 / l))) * ((t_m ** 1.5d0) / (l / tan(k))))) / ((k / t_m) ** 2.0d0)
else
tmp = 2.0d0 / ((k ** 2.0d0) / (t_3 / t_2))
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 = t_m * Math.pow(Math.sin(k), 2.0);
double t_3 = Math.pow(l, 2.0) * Math.cos(k);
double tmp;
if (t_m <= 1.02e-60) {
tmp = 2.0 * (t_3 / Math.pow((k * Math.sqrt(t_2)), 2.0));
} else if (t_m <= 2.85e+203) {
tmp = (2.0 / ((Math.pow(t_m, 1.5) * (Math.sin(k) * (1.0 / l))) * (Math.pow(t_m, 1.5) / (l / Math.tan(k))))) / Math.pow((k / t_m), 2.0);
} else {
tmp = 2.0 / (Math.pow(k, 2.0) / (t_3 / t_2));
}
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 = t_m * math.pow(math.sin(k), 2.0) t_3 = math.pow(l, 2.0) * math.cos(k) tmp = 0 if t_m <= 1.02e-60: tmp = 2.0 * (t_3 / math.pow((k * math.sqrt(t_2)), 2.0)) elif t_m <= 2.85e+203: tmp = (2.0 / ((math.pow(t_m, 1.5) * (math.sin(k) * (1.0 / l))) * (math.pow(t_m, 1.5) / (l / math.tan(k))))) / math.pow((k / t_m), 2.0) else: tmp = 2.0 / (math.pow(k, 2.0) / (t_3 / t_2)) 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(t_m * (sin(k) ^ 2.0)) t_3 = Float64((l ^ 2.0) * cos(k)) tmp = 0.0 if (t_m <= 1.02e-60) tmp = Float64(2.0 * Float64(t_3 / (Float64(k * sqrt(t_2)) ^ 2.0))); elseif (t_m <= 2.85e+203) tmp = Float64(Float64(2.0 / Float64(Float64((t_m ^ 1.5) * Float64(sin(k) * Float64(1.0 / l))) * Float64((t_m ^ 1.5) / Float64(l / tan(k))))) / (Float64(k / t_m) ^ 2.0)); else tmp = Float64(2.0 / Float64((k ^ 2.0) / Float64(t_3 / t_2))); 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 = t_m * (sin(k) ^ 2.0); t_3 = (l ^ 2.0) * cos(k); tmp = 0.0; if (t_m <= 1.02e-60) tmp = 2.0 * (t_3 / ((k * sqrt(t_2)) ^ 2.0)); elseif (t_m <= 2.85e+203) tmp = (2.0 / (((t_m ^ 1.5) * (sin(k) * (1.0 / l))) * ((t_m ^ 1.5) / (l / tan(k))))) / ((k / t_m) ^ 2.0); else tmp = 2.0 / ((k ^ 2.0) / (t_3 / t_2)); 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[(t$95$m * N[Power[N[Sin[k], $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[Power[l, 2.0], $MachinePrecision] * N[Cos[k], $MachinePrecision]), $MachinePrecision]}, N[(t$95$s * If[LessEqual[t$95$m, 1.02e-60], N[(2.0 * N[(t$95$3 / N[Power[N[(k * N[Sqrt[t$95$2], $MachinePrecision]), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$m, 2.85e+203], N[(N[(2.0 / N[(N[(N[Power[t$95$m, 1.5], $MachinePrecision] * N[(N[Sin[k], $MachinePrecision] * N[(1.0 / l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(N[Power[t$95$m, 1.5], $MachinePrecision] / N[(l / N[Tan[k], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[Power[N[(k / t$95$m), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision], N[(2.0 / N[(N[Power[k, 2.0], $MachinePrecision] / N[(t$95$3 / t$95$2), $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 := t\_m \cdot {\sin k}^{2}\\
t_3 := {\ell}^{2} \cdot \cos k\\
t\_s \cdot \begin{array}{l}
\mathbf{if}\;t\_m \leq 1.02 \cdot 10^{-60}:\\
\;\;\;\;2 \cdot \frac{t\_3}{{\left(k \cdot \sqrt{t\_2}\right)}^{2}}\\
\mathbf{elif}\;t\_m \leq 2.85 \cdot 10^{+203}:\\
\;\;\;\;\frac{\frac{2}{\left({t\_m}^{1.5} \cdot \left(\sin k \cdot \frac{1}{\ell}\right)\right) \cdot \frac{{t\_m}^{1.5}}{\frac{\ell}{\tan k}}}}{{\left(\frac{k}{t\_m}\right)}^{2}}\\
\mathbf{else}:\\
\;\;\;\;\frac{2}{\frac{{k}^{2}}{\frac{t\_3}{t\_2}}}\\
\end{array}
\end{array}
\end{array}
if t < 1.01999999999999994e-60Initial program 35.7%
associate-*l*35.7%
associate-/r*35.7%
sub-neg35.7%
distribute-rgt-in30.9%
unpow230.9%
times-frac21.2%
sqr-neg21.2%
times-frac30.9%
unpow230.9%
distribute-rgt-in35.7%
+-commutative35.7%
associate-+l+40.6%
Simplified40.6%
Taylor expanded in t around 0 75.2%
*-commutative75.2%
add-sqr-sqrt10.8%
unpow210.8%
pow-prod-down12.9%
Applied egg-rr12.9%
if 1.01999999999999994e-60 < t < 2.85e203Initial program 46.6%
associate-/r*46.6%
associate-*l*46.6%
associate-*l/46.6%
associate-/l*46.6%
+-commutative46.6%
unpow246.6%
sqr-neg46.6%
distribute-frac-neg46.6%
distribute-frac-neg46.6%
unpow246.6%
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.7%
times-frac64.9%
sqrt-pow164.9%
metadata-eval64.9%
sqrt-pow185.6%
metadata-eval85.6%
Applied egg-rr85.6%
div-inv85.7%
Applied egg-rr85.7%
associate-/r/85.6%
Simplified85.6%
if 2.85e203 < t Initial program 3.7%
Taylor expanded in t around 0 70.8%
associate-/l*78.1%
Simplified78.1%
Final simplification32.0%
t_m = (fabs.f64 t)
t_s = (copysign.f64 1 t)
(FPCore (t_s t_m l k)
:precision binary64
(let* ((t_2 (* t_m (pow (sin k) 2.0))))
(*
t_s
(if (<= t_m 3.3e-61)
(* 2.0 (* (pow l 2.0) (* (cos k) (pow (* k (sqrt t_2)) -2.0))))
(if (<= t_m 3.3e+203)
(/
(/
2.0
(*
(* (pow t_m 1.5) (* (sin k) (/ 1.0 l)))
(/ (pow t_m 1.5) (/ l (tan k)))))
(pow (/ k t_m) 2.0))
(/ 2.0 (/ (pow k 2.0) (/ (* (pow l 2.0) (cos k)) t_2))))))))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 = t_m * pow(sin(k), 2.0);
double tmp;
if (t_m <= 3.3e-61) {
tmp = 2.0 * (pow(l, 2.0) * (cos(k) * pow((k * sqrt(t_2)), -2.0)));
} else if (t_m <= 3.3e+203) {
tmp = (2.0 / ((pow(t_m, 1.5) * (sin(k) * (1.0 / l))) * (pow(t_m, 1.5) / (l / tan(k))))) / pow((k / t_m), 2.0);
} else {
tmp = 2.0 / (pow(k, 2.0) / ((pow(l, 2.0) * cos(k)) / t_2));
}
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 = t_m * (sin(k) ** 2.0d0)
if (t_m <= 3.3d-61) then
tmp = 2.0d0 * ((l ** 2.0d0) * (cos(k) * ((k * sqrt(t_2)) ** (-2.0d0))))
else if (t_m <= 3.3d+203) then
tmp = (2.0d0 / (((t_m ** 1.5d0) * (sin(k) * (1.0d0 / l))) * ((t_m ** 1.5d0) / (l / tan(k))))) / ((k / t_m) ** 2.0d0)
else
tmp = 2.0d0 / ((k ** 2.0d0) / (((l ** 2.0d0) * cos(k)) / t_2))
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 = t_m * Math.pow(Math.sin(k), 2.0);
double tmp;
if (t_m <= 3.3e-61) {
tmp = 2.0 * (Math.pow(l, 2.0) * (Math.cos(k) * Math.pow((k * Math.sqrt(t_2)), -2.0)));
} else if (t_m <= 3.3e+203) {
tmp = (2.0 / ((Math.pow(t_m, 1.5) * (Math.sin(k) * (1.0 / l))) * (Math.pow(t_m, 1.5) / (l / Math.tan(k))))) / Math.pow((k / t_m), 2.0);
} else {
tmp = 2.0 / (Math.pow(k, 2.0) / ((Math.pow(l, 2.0) * Math.cos(k)) / t_2));
}
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 = t_m * math.pow(math.sin(k), 2.0) tmp = 0 if t_m <= 3.3e-61: tmp = 2.0 * (math.pow(l, 2.0) * (math.cos(k) * math.pow((k * math.sqrt(t_2)), -2.0))) elif t_m <= 3.3e+203: tmp = (2.0 / ((math.pow(t_m, 1.5) * (math.sin(k) * (1.0 / l))) * (math.pow(t_m, 1.5) / (l / math.tan(k))))) / math.pow((k / t_m), 2.0) else: tmp = 2.0 / (math.pow(k, 2.0) / ((math.pow(l, 2.0) * math.cos(k)) / t_2)) 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(t_m * (sin(k) ^ 2.0)) tmp = 0.0 if (t_m <= 3.3e-61) tmp = Float64(2.0 * Float64((l ^ 2.0) * Float64(cos(k) * (Float64(k * sqrt(t_2)) ^ -2.0)))); elseif (t_m <= 3.3e+203) tmp = Float64(Float64(2.0 / Float64(Float64((t_m ^ 1.5) * Float64(sin(k) * Float64(1.0 / l))) * Float64((t_m ^ 1.5) / Float64(l / tan(k))))) / (Float64(k / t_m) ^ 2.0)); else tmp = Float64(2.0 / Float64((k ^ 2.0) / Float64(Float64((l ^ 2.0) * cos(k)) / t_2))); 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 = t_m * (sin(k) ^ 2.0); tmp = 0.0; if (t_m <= 3.3e-61) tmp = 2.0 * ((l ^ 2.0) * (cos(k) * ((k * sqrt(t_2)) ^ -2.0))); elseif (t_m <= 3.3e+203) tmp = (2.0 / (((t_m ^ 1.5) * (sin(k) * (1.0 / l))) * ((t_m ^ 1.5) / (l / tan(k))))) / ((k / t_m) ^ 2.0); else tmp = 2.0 / ((k ^ 2.0) / (((l ^ 2.0) * cos(k)) / t_2)); 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[(t$95$m * N[Power[N[Sin[k], $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]}, N[(t$95$s * If[LessEqual[t$95$m, 3.3e-61], N[(2.0 * N[(N[Power[l, 2.0], $MachinePrecision] * N[(N[Cos[k], $MachinePrecision] * N[Power[N[(k * N[Sqrt[t$95$2], $MachinePrecision]), $MachinePrecision], -2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$m, 3.3e+203], N[(N[(2.0 / N[(N[(N[Power[t$95$m, 1.5], $MachinePrecision] * N[(N[Sin[k], $MachinePrecision] * N[(1.0 / l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(N[Power[t$95$m, 1.5], $MachinePrecision] / N[(l / N[Tan[k], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[Power[N[(k / t$95$m), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision], N[(2.0 / N[(N[Power[k, 2.0], $MachinePrecision] / N[(N[(N[Power[l, 2.0], $MachinePrecision] * N[Cos[k], $MachinePrecision]), $MachinePrecision] / t$95$2), $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 := t\_m \cdot {\sin k}^{2}\\
t\_s \cdot \begin{array}{l}
\mathbf{if}\;t\_m \leq 3.3 \cdot 10^{-61}:\\
\;\;\;\;2 \cdot \left({\ell}^{2} \cdot \left(\cos k \cdot {\left(k \cdot \sqrt{t\_2}\right)}^{-2}\right)\right)\\
\mathbf{elif}\;t\_m \leq 3.3 \cdot 10^{+203}:\\
\;\;\;\;\frac{\frac{2}{\left({t\_m}^{1.5} \cdot \left(\sin k \cdot \frac{1}{\ell}\right)\right) \cdot \frac{{t\_m}^{1.5}}{\frac{\ell}{\tan k}}}}{{\left(\frac{k}{t\_m}\right)}^{2}}\\
\mathbf{else}:\\
\;\;\;\;\frac{2}{\frac{{k}^{2}}{\frac{{\ell}^{2} \cdot \cos k}{t\_2}}}\\
\end{array}
\end{array}
\end{array}
if t < 3.29999999999999996e-61Initial program 35.7%
associate-*l*35.7%
associate-/r*35.7%
sub-neg35.7%
distribute-rgt-in30.9%
unpow230.9%
times-frac21.2%
sqr-neg21.2%
times-frac30.9%
unpow230.9%
distribute-rgt-in35.7%
+-commutative35.7%
associate-+l+40.6%
Simplified40.6%
Taylor expanded in t around 0 75.2%
*-commutative75.2%
add-sqr-sqrt10.8%
unpow210.8%
pow-prod-down12.9%
Applied egg-rr12.9%
div-inv12.9%
pow-flip12.9%
*-commutative12.9%
metadata-eval12.9%
Applied egg-rr12.9%
associate-*l*12.9%
Simplified12.9%
if 3.29999999999999996e-61 < t < 3.29999999999999989e203Initial program 46.6%
associate-/r*46.6%
associate-*l*46.6%
associate-*l/46.6%
associate-/l*46.6%
+-commutative46.6%
unpow246.6%
sqr-neg46.6%
distribute-frac-neg46.6%
distribute-frac-neg46.6%
unpow246.6%
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.7%
times-frac64.9%
sqrt-pow164.9%
metadata-eval64.9%
sqrt-pow185.6%
metadata-eval85.6%
Applied egg-rr85.6%
div-inv85.7%
Applied egg-rr85.7%
associate-/r/85.6%
Simplified85.6%
if 3.29999999999999989e203 < t Initial program 3.7%
Taylor expanded in t around 0 70.8%
associate-/l*78.1%
Simplified78.1%
Final simplification32.0%
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) (cos k))))
(*
t_s
(if (<= t_m 2.05e-60)
(* 2.0 (/ t_2 (pow (* k (* (sin k) (sqrt t_m))) 2.0)))
(if (<= t_m 2.95e+203)
(/
(/
2.0
(*
(* (pow t_m 1.5) (* (sin k) (/ 1.0 l)))
(/ (pow t_m 1.5) (/ l (tan k)))))
(pow (/ k t_m) 2.0))
(/ 2.0 (/ (pow k 2.0) (/ t_2 (* 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 t_2 = pow(l, 2.0) * cos(k);
double tmp;
if (t_m <= 2.05e-60) {
tmp = 2.0 * (t_2 / pow((k * (sin(k) * sqrt(t_m))), 2.0));
} else if (t_m <= 2.95e+203) {
tmp = (2.0 / ((pow(t_m, 1.5) * (sin(k) * (1.0 / l))) * (pow(t_m, 1.5) / (l / tan(k))))) / pow((k / t_m), 2.0);
} else {
tmp = 2.0 / (pow(k, 2.0) / (t_2 / (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) :: t_2
real(8) :: tmp
t_2 = (l ** 2.0d0) * cos(k)
if (t_m <= 2.05d-60) then
tmp = 2.0d0 * (t_2 / ((k * (sin(k) * sqrt(t_m))) ** 2.0d0))
else if (t_m <= 2.95d+203) then
tmp = (2.0d0 / (((t_m ** 1.5d0) * (sin(k) * (1.0d0 / l))) * ((t_m ** 1.5d0) / (l / tan(k))))) / ((k / t_m) ** 2.0d0)
else
tmp = 2.0d0 / ((k ** 2.0d0) / (t_2 / (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 t_2 = Math.pow(l, 2.0) * Math.cos(k);
double tmp;
if (t_m <= 2.05e-60) {
tmp = 2.0 * (t_2 / Math.pow((k * (Math.sin(k) * Math.sqrt(t_m))), 2.0));
} else if (t_m <= 2.95e+203) {
tmp = (2.0 / ((Math.pow(t_m, 1.5) * (Math.sin(k) * (1.0 / l))) * (Math.pow(t_m, 1.5) / (l / Math.tan(k))))) / Math.pow((k / t_m), 2.0);
} else {
tmp = 2.0 / (Math.pow(k, 2.0) / (t_2 / (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): t_2 = math.pow(l, 2.0) * math.cos(k) tmp = 0 if t_m <= 2.05e-60: tmp = 2.0 * (t_2 / math.pow((k * (math.sin(k) * math.sqrt(t_m))), 2.0)) elif t_m <= 2.95e+203: tmp = (2.0 / ((math.pow(t_m, 1.5) * (math.sin(k) * (1.0 / l))) * (math.pow(t_m, 1.5) / (l / math.tan(k))))) / math.pow((k / t_m), 2.0) else: tmp = 2.0 / (math.pow(k, 2.0) / (t_2 / (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) t_2 = Float64((l ^ 2.0) * cos(k)) tmp = 0.0 if (t_m <= 2.05e-60) tmp = Float64(2.0 * Float64(t_2 / (Float64(k * Float64(sin(k) * sqrt(t_m))) ^ 2.0))); elseif (t_m <= 2.95e+203) tmp = Float64(Float64(2.0 / Float64(Float64((t_m ^ 1.5) * Float64(sin(k) * Float64(1.0 / l))) * Float64((t_m ^ 1.5) / Float64(l / tan(k))))) / (Float64(k / t_m) ^ 2.0)); else tmp = Float64(2.0 / Float64((k ^ 2.0) / Float64(t_2 / 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) t_2 = (l ^ 2.0) * cos(k); tmp = 0.0; if (t_m <= 2.05e-60) tmp = 2.0 * (t_2 / ((k * (sin(k) * sqrt(t_m))) ^ 2.0)); elseif (t_m <= 2.95e+203) tmp = (2.0 / (((t_m ^ 1.5) * (sin(k) * (1.0 / l))) * ((t_m ^ 1.5) / (l / tan(k))))) / ((k / t_m) ^ 2.0); else tmp = 2.0 / ((k ^ 2.0) / (t_2 / (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_] := Block[{t$95$2 = N[(N[Power[l, 2.0], $MachinePrecision] * N[Cos[k], $MachinePrecision]), $MachinePrecision]}, N[(t$95$s * If[LessEqual[t$95$m, 2.05e-60], N[(2.0 * N[(t$95$2 / N[Power[N[(k * N[(N[Sin[k], $MachinePrecision] * N[Sqrt[t$95$m], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$m, 2.95e+203], N[(N[(2.0 / N[(N[(N[Power[t$95$m, 1.5], $MachinePrecision] * N[(N[Sin[k], $MachinePrecision] * N[(1.0 / l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(N[Power[t$95$m, 1.5], $MachinePrecision] / N[(l / N[Tan[k], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[Power[N[(k / t$95$m), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision], N[(2.0 / N[(N[Power[k, 2.0], $MachinePrecision] / N[(t$95$2 / 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)
\\
\begin{array}{l}
t_2 := {\ell}^{2} \cdot \cos k\\
t\_s \cdot \begin{array}{l}
\mathbf{if}\;t\_m \leq 2.05 \cdot 10^{-60}:\\
\;\;\;\;2 \cdot \frac{t\_2}{{\left(k \cdot \left(\sin k \cdot \sqrt{t\_m}\right)\right)}^{2}}\\
\mathbf{elif}\;t\_m \leq 2.95 \cdot 10^{+203}:\\
\;\;\;\;\frac{\frac{2}{\left({t\_m}^{1.5} \cdot \left(\sin k \cdot \frac{1}{\ell}\right)\right) \cdot \frac{{t\_m}^{1.5}}{\frac{\ell}{\tan k}}}}{{\left(\frac{k}{t\_m}\right)}^{2}}\\
\mathbf{else}:\\
\;\;\;\;\frac{2}{\frac{{k}^{2}}{\frac{t\_2}{t\_m \cdot {\sin k}^{2}}}}\\
\end{array}
\end{array}
\end{array}
if t < 2.05000000000000006e-60Initial program 35.7%
associate-*l*35.7%
associate-/r*35.7%
sub-neg35.7%
distribute-rgt-in30.9%
unpow230.9%
times-frac21.2%
sqr-neg21.2%
times-frac30.9%
unpow230.9%
distribute-rgt-in35.7%
+-commutative35.7%
associate-+l+40.6%
Simplified40.6%
Taylor expanded in t around 0 75.2%
*-commutative75.2%
add-sqr-sqrt10.8%
unpow210.8%
pow-prod-down12.9%
Applied egg-rr12.9%
Taylor expanded in k around inf 12.9%
if 2.05000000000000006e-60 < t < 2.94999999999999986e203Initial program 46.6%
associate-/r*46.6%
associate-*l*46.6%
associate-*l/46.6%
associate-/l*46.6%
+-commutative46.6%
unpow246.6%
sqr-neg46.6%
distribute-frac-neg46.6%
distribute-frac-neg46.6%
unpow246.6%
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.7%
times-frac64.9%
sqrt-pow164.9%
metadata-eval64.9%
sqrt-pow185.6%
metadata-eval85.6%
Applied egg-rr85.6%
div-inv85.7%
Applied egg-rr85.7%
associate-/r/85.6%
Simplified85.6%
if 2.94999999999999986e203 < t Initial program 3.7%
Taylor expanded in t around 0 70.8%
associate-/l*78.1%
Simplified78.1%
Final simplification32.0%
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) (cos k))))
(*
t_s
(if (<= t_m 8.6e-59)
(* 2.0 (/ t_2 (pow (* k (* (sin k) (sqrt t_m))) 2.0)))
(if (<= t_m 2.65e+203)
(/
(/
2.0
(* (/ (pow t_m 1.5) (/ l (tan k))) (/ (pow t_m 1.5) (/ l (sin k)))))
(pow (/ k t_m) 2.0))
(/ 2.0 (/ (pow k 2.0) (/ t_2 (* 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 t_2 = pow(l, 2.0) * cos(k);
double tmp;
if (t_m <= 8.6e-59) {
tmp = 2.0 * (t_2 / pow((k * (sin(k) * sqrt(t_m))), 2.0));
} else if (t_m <= 2.65e+203) {
tmp = (2.0 / ((pow(t_m, 1.5) / (l / tan(k))) * (pow(t_m, 1.5) / (l / sin(k))))) / pow((k / t_m), 2.0);
} else {
tmp = 2.0 / (pow(k, 2.0) / (t_2 / (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) :: t_2
real(8) :: tmp
t_2 = (l ** 2.0d0) * cos(k)
if (t_m <= 8.6d-59) then
tmp = 2.0d0 * (t_2 / ((k * (sin(k) * sqrt(t_m))) ** 2.0d0))
else if (t_m <= 2.65d+203) then
tmp = (2.0d0 / (((t_m ** 1.5d0) / (l / tan(k))) * ((t_m ** 1.5d0) / (l / sin(k))))) / ((k / t_m) ** 2.0d0)
else
tmp = 2.0d0 / ((k ** 2.0d0) / (t_2 / (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 t_2 = Math.pow(l, 2.0) * Math.cos(k);
double tmp;
if (t_m <= 8.6e-59) {
tmp = 2.0 * (t_2 / Math.pow((k * (Math.sin(k) * Math.sqrt(t_m))), 2.0));
} else if (t_m <= 2.65e+203) {
tmp = (2.0 / ((Math.pow(t_m, 1.5) / (l / Math.tan(k))) * (Math.pow(t_m, 1.5) / (l / Math.sin(k))))) / Math.pow((k / t_m), 2.0);
} else {
tmp = 2.0 / (Math.pow(k, 2.0) / (t_2 / (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): t_2 = math.pow(l, 2.0) * math.cos(k) tmp = 0 if t_m <= 8.6e-59: tmp = 2.0 * (t_2 / math.pow((k * (math.sin(k) * math.sqrt(t_m))), 2.0)) elif t_m <= 2.65e+203: tmp = (2.0 / ((math.pow(t_m, 1.5) / (l / math.tan(k))) * (math.pow(t_m, 1.5) / (l / math.sin(k))))) / math.pow((k / t_m), 2.0) else: tmp = 2.0 / (math.pow(k, 2.0) / (t_2 / (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) t_2 = Float64((l ^ 2.0) * cos(k)) tmp = 0.0 if (t_m <= 8.6e-59) tmp = Float64(2.0 * Float64(t_2 / (Float64(k * Float64(sin(k) * sqrt(t_m))) ^ 2.0))); elseif (t_m <= 2.65e+203) tmp = Float64(Float64(2.0 / Float64(Float64((t_m ^ 1.5) / Float64(l / tan(k))) * Float64((t_m ^ 1.5) / Float64(l / sin(k))))) / (Float64(k / t_m) ^ 2.0)); else tmp = Float64(2.0 / Float64((k ^ 2.0) / Float64(t_2 / 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) t_2 = (l ^ 2.0) * cos(k); tmp = 0.0; if (t_m <= 8.6e-59) tmp = 2.0 * (t_2 / ((k * (sin(k) * sqrt(t_m))) ^ 2.0)); elseif (t_m <= 2.65e+203) tmp = (2.0 / (((t_m ^ 1.5) / (l / tan(k))) * ((t_m ^ 1.5) / (l / sin(k))))) / ((k / t_m) ^ 2.0); else tmp = 2.0 / ((k ^ 2.0) / (t_2 / (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_] := Block[{t$95$2 = N[(N[Power[l, 2.0], $MachinePrecision] * N[Cos[k], $MachinePrecision]), $MachinePrecision]}, N[(t$95$s * If[LessEqual[t$95$m, 8.6e-59], N[(2.0 * N[(t$95$2 / N[Power[N[(k * N[(N[Sin[k], $MachinePrecision] * N[Sqrt[t$95$m], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$m, 2.65e+203], N[(N[(2.0 / N[(N[(N[Power[t$95$m, 1.5], $MachinePrecision] / N[(l / N[Tan[k], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(N[Power[t$95$m, 1.5], $MachinePrecision] / N[(l / N[Sin[k], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[Power[N[(k / t$95$m), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision], N[(2.0 / N[(N[Power[k, 2.0], $MachinePrecision] / N[(t$95$2 / 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)
\\
\begin{array}{l}
t_2 := {\ell}^{2} \cdot \cos k\\
t\_s \cdot \begin{array}{l}
\mathbf{if}\;t\_m \leq 8.6 \cdot 10^{-59}:\\
\;\;\;\;2 \cdot \frac{t\_2}{{\left(k \cdot \left(\sin k \cdot \sqrt{t\_m}\right)\right)}^{2}}\\
\mathbf{elif}\;t\_m \leq 2.65 \cdot 10^{+203}:\\
\;\;\;\;\frac{\frac{2}{\frac{{t\_m}^{1.5}}{\frac{\ell}{\tan k}} \cdot \frac{{t\_m}^{1.5}}{\frac{\ell}{\sin k}}}}{{\left(\frac{k}{t\_m}\right)}^{2}}\\
\mathbf{else}:\\
\;\;\;\;\frac{2}{\frac{{k}^{2}}{\frac{t\_2}{t\_m \cdot {\sin k}^{2}}}}\\
\end{array}
\end{array}
\end{array}
if t < 8.6000000000000006e-59Initial program 35.7%
associate-*l*35.7%
associate-/r*35.7%
sub-neg35.7%
distribute-rgt-in30.9%
unpow230.9%
times-frac21.2%
sqr-neg21.2%
times-frac30.9%
unpow230.9%
distribute-rgt-in35.7%
+-commutative35.7%
associate-+l+40.6%
Simplified40.6%
Taylor expanded in t around 0 75.2%
*-commutative75.2%
add-sqr-sqrt10.8%
unpow210.8%
pow-prod-down12.9%
Applied egg-rr12.9%
Taylor expanded in k around inf 12.9%
if 8.6000000000000006e-59 < t < 2.64999999999999994e203Initial program 46.6%
associate-/r*46.6%
associate-*l*46.6%
associate-*l/46.6%
associate-/l*46.6%
+-commutative46.6%
unpow246.6%
sqr-neg46.6%
distribute-frac-neg46.6%
distribute-frac-neg46.6%
unpow246.6%
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.7%
times-frac64.9%
sqrt-pow164.9%
metadata-eval64.9%
sqrt-pow185.6%
metadata-eval85.6%
Applied egg-rr85.6%
if 2.64999999999999994e203 < t Initial program 3.7%
Taylor expanded in t around 0 70.8%
associate-/l*78.1%
Simplified78.1%
Final simplification32.0%
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) (cos k))))
(*
t_s
(if (<= t_m 4.2e-57)
(* 2.0 (/ t_2 (pow (* k (* (sin k) (sqrt t_m))) 2.0)))
(if (<= t_m 2.45e+203)
(/
(/ 2.0 (/ (pow (/ (* (sin k) (pow t_m 1.5)) l) 2.0) (cos k)))
(pow (/ k t_m) 2.0))
(/ 2.0 (/ (pow k 2.0) (/ t_2 (* 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 t_2 = pow(l, 2.0) * cos(k);
double tmp;
if (t_m <= 4.2e-57) {
tmp = 2.0 * (t_2 / pow((k * (sin(k) * sqrt(t_m))), 2.0));
} else if (t_m <= 2.45e+203) {
tmp = (2.0 / (pow(((sin(k) * pow(t_m, 1.5)) / l), 2.0) / cos(k))) / pow((k / t_m), 2.0);
} else {
tmp = 2.0 / (pow(k, 2.0) / (t_2 / (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) :: t_2
real(8) :: tmp
t_2 = (l ** 2.0d0) * cos(k)
if (t_m <= 4.2d-57) then
tmp = 2.0d0 * (t_2 / ((k * (sin(k) * sqrt(t_m))) ** 2.0d0))
else if (t_m <= 2.45d+203) then
tmp = (2.0d0 / ((((sin(k) * (t_m ** 1.5d0)) / l) ** 2.0d0) / cos(k))) / ((k / t_m) ** 2.0d0)
else
tmp = 2.0d0 / ((k ** 2.0d0) / (t_2 / (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 t_2 = Math.pow(l, 2.0) * Math.cos(k);
double tmp;
if (t_m <= 4.2e-57) {
tmp = 2.0 * (t_2 / Math.pow((k * (Math.sin(k) * Math.sqrt(t_m))), 2.0));
} else if (t_m <= 2.45e+203) {
tmp = (2.0 / (Math.pow(((Math.sin(k) * Math.pow(t_m, 1.5)) / l), 2.0) / Math.cos(k))) / Math.pow((k / t_m), 2.0);
} else {
tmp = 2.0 / (Math.pow(k, 2.0) / (t_2 / (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): t_2 = math.pow(l, 2.0) * math.cos(k) tmp = 0 if t_m <= 4.2e-57: tmp = 2.0 * (t_2 / math.pow((k * (math.sin(k) * math.sqrt(t_m))), 2.0)) elif t_m <= 2.45e+203: tmp = (2.0 / (math.pow(((math.sin(k) * math.pow(t_m, 1.5)) / l), 2.0) / math.cos(k))) / math.pow((k / t_m), 2.0) else: tmp = 2.0 / (math.pow(k, 2.0) / (t_2 / (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) t_2 = Float64((l ^ 2.0) * cos(k)) tmp = 0.0 if (t_m <= 4.2e-57) tmp = Float64(2.0 * Float64(t_2 / (Float64(k * Float64(sin(k) * sqrt(t_m))) ^ 2.0))); elseif (t_m <= 2.45e+203) tmp = Float64(Float64(2.0 / Float64((Float64(Float64(sin(k) * (t_m ^ 1.5)) / l) ^ 2.0) / cos(k))) / (Float64(k / t_m) ^ 2.0)); else tmp = Float64(2.0 / Float64((k ^ 2.0) / Float64(t_2 / 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) t_2 = (l ^ 2.0) * cos(k); tmp = 0.0; if (t_m <= 4.2e-57) tmp = 2.0 * (t_2 / ((k * (sin(k) * sqrt(t_m))) ^ 2.0)); elseif (t_m <= 2.45e+203) tmp = (2.0 / ((((sin(k) * (t_m ^ 1.5)) / l) ^ 2.0) / cos(k))) / ((k / t_m) ^ 2.0); else tmp = 2.0 / ((k ^ 2.0) / (t_2 / (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_] := Block[{t$95$2 = N[(N[Power[l, 2.0], $MachinePrecision] * N[Cos[k], $MachinePrecision]), $MachinePrecision]}, N[(t$95$s * If[LessEqual[t$95$m, 4.2e-57], N[(2.0 * N[(t$95$2 / N[Power[N[(k * N[(N[Sin[k], $MachinePrecision] * N[Sqrt[t$95$m], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$m, 2.45e+203], N[(N[(2.0 / N[(N[Power[N[(N[(N[Sin[k], $MachinePrecision] * N[Power[t$95$m, 1.5], $MachinePrecision]), $MachinePrecision] / l), $MachinePrecision], 2.0], $MachinePrecision] / N[Cos[k], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[Power[N[(k / t$95$m), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision], N[(2.0 / N[(N[Power[k, 2.0], $MachinePrecision] / N[(t$95$2 / 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)
\\
\begin{array}{l}
t_2 := {\ell}^{2} \cdot \cos k\\
t\_s \cdot \begin{array}{l}
\mathbf{if}\;t\_m \leq 4.2 \cdot 10^{-57}:\\
\;\;\;\;2 \cdot \frac{t\_2}{{\left(k \cdot \left(\sin k \cdot \sqrt{t\_m}\right)\right)}^{2}}\\
\mathbf{elif}\;t\_m \leq 2.45 \cdot 10^{+203}:\\
\;\;\;\;\frac{\frac{2}{\frac{{\left(\frac{\sin k \cdot {t\_m}^{1.5}}{\ell}\right)}^{2}}{\cos k}}}{{\left(\frac{k}{t\_m}\right)}^{2}}\\
\mathbf{else}:\\
\;\;\;\;\frac{2}{\frac{{k}^{2}}{\frac{t\_2}{t\_m \cdot {\sin k}^{2}}}}\\
\end{array}
\end{array}
\end{array}
if t < 4.1999999999999999e-57Initial program 35.7%
associate-*l*35.7%
associate-/r*35.7%
sub-neg35.7%
distribute-rgt-in30.9%
unpow230.9%
times-frac21.2%
sqr-neg21.2%
times-frac30.9%
unpow230.9%
distribute-rgt-in35.7%
+-commutative35.7%
associate-+l+40.6%
Simplified40.6%
Taylor expanded in t around 0 75.2%
*-commutative75.2%
add-sqr-sqrt10.8%
unpow210.8%
pow-prod-down12.9%
Applied egg-rr12.9%
Taylor expanded in k around inf 12.9%
if 4.1999999999999999e-57 < t < 2.4499999999999999e203Initial program 46.6%
associate-/r*46.6%
associate-*l*46.6%
associate-*l/46.6%
associate-/l*46.6%
+-commutative46.6%
unpow246.6%
sqr-neg46.6%
distribute-frac-neg46.6%
distribute-frac-neg46.6%
unpow246.6%
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%
*-commutative57.9%
times-frac64.7%
Applied egg-rr64.7%
Taylor expanded in t around 0 57.8%
times-frac57.9%
associate-*r/57.9%
metadata-eval57.9%
pow-sqr57.9%
unpow257.9%
times-frac81.0%
unpow281.0%
swap-sqr85.7%
unpow185.7%
pow-plus85.7%
*-commutative85.7%
associate-*r/85.6%
metadata-eval85.6%
Simplified85.6%
if 2.4499999999999999e203 < t Initial program 3.7%
Taylor expanded in t around 0 70.8%
associate-/l*78.1%
Simplified78.1%
Final simplification32.0%
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 3.4e-74)
(* 2.0 (/ (* (pow l 2.0) (cos k)) (pow (* k (* (sin k) (sqrt t_m))) 2.0)))
(if (<= t_m 7.4e+58)
(/
(/ 2.0 (* (/ (pow t_m 2.0) (/ l (sin k))) (/ t_m (/ l (tan k)))))
(pow (/ k t_m) 2.0))
(*
2.0
(*
(/ (pow l 2.0) (pow k 2.0))
(/ (cos k) (* 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 (t_m <= 3.4e-74) {
tmp = 2.0 * ((pow(l, 2.0) * cos(k)) / pow((k * (sin(k) * sqrt(t_m))), 2.0));
} else if (t_m <= 7.4e+58) {
tmp = (2.0 / ((pow(t_m, 2.0) / (l / sin(k))) * (t_m / (l / tan(k))))) / pow((k / t_m), 2.0);
} else {
tmp = 2.0 * ((pow(l, 2.0) / pow(k, 2.0)) * (cos(k) / (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 (t_m <= 3.4d-74) then
tmp = 2.0d0 * (((l ** 2.0d0) * cos(k)) / ((k * (sin(k) * sqrt(t_m))) ** 2.0d0))
else if (t_m <= 7.4d+58) then
tmp = (2.0d0 / (((t_m ** 2.0d0) / (l / sin(k))) * (t_m / (l / tan(k))))) / ((k / t_m) ** 2.0d0)
else
tmp = 2.0d0 * (((l ** 2.0d0) / (k ** 2.0d0)) * (cos(k) / (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 (t_m <= 3.4e-74) {
tmp = 2.0 * ((Math.pow(l, 2.0) * Math.cos(k)) / Math.pow((k * (Math.sin(k) * Math.sqrt(t_m))), 2.0));
} else if (t_m <= 7.4e+58) {
tmp = (2.0 / ((Math.pow(t_m, 2.0) / (l / Math.sin(k))) * (t_m / (l / Math.tan(k))))) / Math.pow((k / t_m), 2.0);
} else {
tmp = 2.0 * ((Math.pow(l, 2.0) / Math.pow(k, 2.0)) * (Math.cos(k) / (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 t_m <= 3.4e-74: tmp = 2.0 * ((math.pow(l, 2.0) * math.cos(k)) / math.pow((k * (math.sin(k) * math.sqrt(t_m))), 2.0)) elif t_m <= 7.4e+58: tmp = (2.0 / ((math.pow(t_m, 2.0) / (l / math.sin(k))) * (t_m / (l / math.tan(k))))) / math.pow((k / t_m), 2.0) else: tmp = 2.0 * ((math.pow(l, 2.0) / math.pow(k, 2.0)) * (math.cos(k) / (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 (t_m <= 3.4e-74) tmp = Float64(2.0 * Float64(Float64((l ^ 2.0) * cos(k)) / (Float64(k * Float64(sin(k) * sqrt(t_m))) ^ 2.0))); elseif (t_m <= 7.4e+58) tmp = Float64(Float64(2.0 / Float64(Float64((t_m ^ 2.0) / Float64(l / sin(k))) * Float64(t_m / Float64(l / tan(k))))) / (Float64(k / t_m) ^ 2.0)); else tmp = Float64(2.0 * Float64(Float64((l ^ 2.0) / (k ^ 2.0)) * Float64(cos(k) / 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 (t_m <= 3.4e-74) tmp = 2.0 * (((l ^ 2.0) * cos(k)) / ((k * (sin(k) * sqrt(t_m))) ^ 2.0)); elseif (t_m <= 7.4e+58) tmp = (2.0 / (((t_m ^ 2.0) / (l / sin(k))) * (t_m / (l / tan(k))))) / ((k / t_m) ^ 2.0); else tmp = 2.0 * (((l ^ 2.0) / (k ^ 2.0)) * (cos(k) / (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[t$95$m, 3.4e-74], N[(2.0 * N[(N[(N[Power[l, 2.0], $MachinePrecision] * N[Cos[k], $MachinePrecision]), $MachinePrecision] / N[Power[N[(k * N[(N[Sin[k], $MachinePrecision] * N[Sqrt[t$95$m], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$m, 7.4e+58], N[(N[(2.0 / N[(N[(N[Power[t$95$m, 2.0], $MachinePrecision] / N[(l / N[Sin[k], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(t$95$m / N[(l / N[Tan[k], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[Power[N[(k / t$95$m), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision], N[(2.0 * N[(N[(N[Power[l, 2.0], $MachinePrecision] / N[Power[k, 2.0], $MachinePrecision]), $MachinePrecision] * N[(N[Cos[k], $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}\;t\_m \leq 3.4 \cdot 10^{-74}:\\
\;\;\;\;2 \cdot \frac{{\ell}^{2} \cdot \cos k}{{\left(k \cdot \left(\sin k \cdot \sqrt{t\_m}\right)\right)}^{2}}\\
\mathbf{elif}\;t\_m \leq 7.4 \cdot 10^{+58}:\\
\;\;\;\;\frac{\frac{2}{\frac{{t\_m}^{2}}{\frac{\ell}{\sin k}} \cdot \frac{t\_m}{\frac{\ell}{\tan k}}}}{{\left(\frac{k}{t\_m}\right)}^{2}}\\
\mathbf{else}:\\
\;\;\;\;2 \cdot \left(\frac{{\ell}^{2}}{{k}^{2}} \cdot \frac{\cos k}{t\_m \cdot {\sin k}^{2}}\right)\\
\end{array}
\end{array}
if t < 3.4000000000000001e-74Initial program 35.4%
associate-*l*35.4%
associate-/r*35.4%
sub-neg35.4%
distribute-rgt-in30.5%
unpow230.5%
times-frac20.8%
sqr-neg20.8%
times-frac30.5%
unpow230.5%
distribute-rgt-in35.4%
+-commutative35.4%
associate-+l+40.2%
Simplified40.2%
Taylor expanded in t around 0 75.1%
*-commutative75.1%
add-sqr-sqrt10.3%
unpow210.3%
pow-prod-down12.4%
Applied egg-rr12.4%
Taylor expanded in k around inf 12.4%
if 3.4000000000000001e-74 < t < 7.4000000000000004e58Initial program 59.0%
associate-/r*59.0%
associate-*l*59.0%
associate-*l/59.0%
associate-/l*59.0%
+-commutative59.0%
unpow259.0%
sqr-neg59.0%
distribute-frac-neg59.0%
distribute-frac-neg59.0%
unpow259.0%
associate--l+59.4%
metadata-eval59.4%
+-rgt-identity59.4%
unpow259.4%
distribute-frac-neg59.4%
distribute-frac-neg59.4%
sqr-neg59.4%
unpow259.4%
Simplified59.4%
unpow359.4%
times-frac76.4%
times-frac76.5%
pow276.5%
Applied egg-rr76.5%
if 7.4000000000000004e58 < t Initial program 22.2%
associate-*l*22.2%
associate-/r*22.2%
sub-neg22.2%
distribute-rgt-in22.2%
unpow222.2%
times-frac14.8%
sqr-neg14.8%
times-frac22.2%
unpow222.2%
distribute-rgt-in22.2%
+-commutative22.2%
associate-+l+47.9%
Simplified47.9%
Taylor expanded in t around 0 76.2%
times-frac76.7%
Simplified76.7%
Final simplification30.2%
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) (cos k))))
(*
t_s
(if (<= t_m 2.9e-74)
(* 2.0 (/ t_2 (pow (* k (* (sin k) (sqrt t_m))) 2.0)))
(if (<= t_m 1.2e+123)
(/
(/ 2.0 (* (/ (pow t_m 2.0) (/ l (sin k))) (/ t_m (/ l (tan k)))))
(pow (/ k t_m) 2.0))
(/ 2.0 (/ (pow k 2.0) (/ t_2 (* 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 t_2 = pow(l, 2.0) * cos(k);
double tmp;
if (t_m <= 2.9e-74) {
tmp = 2.0 * (t_2 / pow((k * (sin(k) * sqrt(t_m))), 2.0));
} else if (t_m <= 1.2e+123) {
tmp = (2.0 / ((pow(t_m, 2.0) / (l / sin(k))) * (t_m / (l / tan(k))))) / pow((k / t_m), 2.0);
} else {
tmp = 2.0 / (pow(k, 2.0) / (t_2 / (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) :: t_2
real(8) :: tmp
t_2 = (l ** 2.0d0) * cos(k)
if (t_m <= 2.9d-74) then
tmp = 2.0d0 * (t_2 / ((k * (sin(k) * sqrt(t_m))) ** 2.0d0))
else if (t_m <= 1.2d+123) then
tmp = (2.0d0 / (((t_m ** 2.0d0) / (l / sin(k))) * (t_m / (l / tan(k))))) / ((k / t_m) ** 2.0d0)
else
tmp = 2.0d0 / ((k ** 2.0d0) / (t_2 / (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 t_2 = Math.pow(l, 2.0) * Math.cos(k);
double tmp;
if (t_m <= 2.9e-74) {
tmp = 2.0 * (t_2 / Math.pow((k * (Math.sin(k) * Math.sqrt(t_m))), 2.0));
} else if (t_m <= 1.2e+123) {
tmp = (2.0 / ((Math.pow(t_m, 2.0) / (l / Math.sin(k))) * (t_m / (l / Math.tan(k))))) / Math.pow((k / t_m), 2.0);
} else {
tmp = 2.0 / (Math.pow(k, 2.0) / (t_2 / (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): t_2 = math.pow(l, 2.0) * math.cos(k) tmp = 0 if t_m <= 2.9e-74: tmp = 2.0 * (t_2 / math.pow((k * (math.sin(k) * math.sqrt(t_m))), 2.0)) elif t_m <= 1.2e+123: tmp = (2.0 / ((math.pow(t_m, 2.0) / (l / math.sin(k))) * (t_m / (l / math.tan(k))))) / math.pow((k / t_m), 2.0) else: tmp = 2.0 / (math.pow(k, 2.0) / (t_2 / (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) t_2 = Float64((l ^ 2.0) * cos(k)) tmp = 0.0 if (t_m <= 2.9e-74) tmp = Float64(2.0 * Float64(t_2 / (Float64(k * Float64(sin(k) * sqrt(t_m))) ^ 2.0))); elseif (t_m <= 1.2e+123) tmp = Float64(Float64(2.0 / Float64(Float64((t_m ^ 2.0) / Float64(l / sin(k))) * Float64(t_m / Float64(l / tan(k))))) / (Float64(k / t_m) ^ 2.0)); else tmp = Float64(2.0 / Float64((k ^ 2.0) / Float64(t_2 / 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) t_2 = (l ^ 2.0) * cos(k); tmp = 0.0; if (t_m <= 2.9e-74) tmp = 2.0 * (t_2 / ((k * (sin(k) * sqrt(t_m))) ^ 2.0)); elseif (t_m <= 1.2e+123) tmp = (2.0 / (((t_m ^ 2.0) / (l / sin(k))) * (t_m / (l / tan(k))))) / ((k / t_m) ^ 2.0); else tmp = 2.0 / ((k ^ 2.0) / (t_2 / (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_] := Block[{t$95$2 = N[(N[Power[l, 2.0], $MachinePrecision] * N[Cos[k], $MachinePrecision]), $MachinePrecision]}, N[(t$95$s * If[LessEqual[t$95$m, 2.9e-74], N[(2.0 * N[(t$95$2 / N[Power[N[(k * N[(N[Sin[k], $MachinePrecision] * N[Sqrt[t$95$m], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$m, 1.2e+123], N[(N[(2.0 / N[(N[(N[Power[t$95$m, 2.0], $MachinePrecision] / N[(l / N[Sin[k], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(t$95$m / N[(l / N[Tan[k], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[Power[N[(k / t$95$m), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision], N[(2.0 / N[(N[Power[k, 2.0], $MachinePrecision] / N[(t$95$2 / 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)
\\
\begin{array}{l}
t_2 := {\ell}^{2} \cdot \cos k\\
t\_s \cdot \begin{array}{l}
\mathbf{if}\;t\_m \leq 2.9 \cdot 10^{-74}:\\
\;\;\;\;2 \cdot \frac{t\_2}{{\left(k \cdot \left(\sin k \cdot \sqrt{t\_m}\right)\right)}^{2}}\\
\mathbf{elif}\;t\_m \leq 1.2 \cdot 10^{+123}:\\
\;\;\;\;\frac{\frac{2}{\frac{{t\_m}^{2}}{\frac{\ell}{\sin k}} \cdot \frac{t\_m}{\frac{\ell}{\tan k}}}}{{\left(\frac{k}{t\_m}\right)}^{2}}\\
\mathbf{else}:\\
\;\;\;\;\frac{2}{\frac{{k}^{2}}{\frac{t\_2}{t\_m \cdot {\sin k}^{2}}}}\\
\end{array}
\end{array}
\end{array}
if t < 2.9e-74Initial program 35.4%
associate-*l*35.4%
associate-/r*35.4%
sub-neg35.4%
distribute-rgt-in30.5%
unpow230.5%
times-frac20.8%
sqr-neg20.8%
times-frac30.5%
unpow230.5%
distribute-rgt-in35.4%
+-commutative35.4%
associate-+l+40.2%
Simplified40.2%
Taylor expanded in t around 0 75.1%
*-commutative75.1%
add-sqr-sqrt10.3%
unpow210.3%
pow-prod-down12.4%
Applied egg-rr12.4%
Taylor expanded in k around inf 12.4%
if 2.9e-74 < t < 1.19999999999999994e123Initial program 57.8%
associate-/r*57.8%
associate-*l*57.8%
associate-*l/57.8%
associate-/l*57.8%
+-commutative57.8%
unpow257.8%
sqr-neg57.8%
distribute-frac-neg57.8%
distribute-frac-neg57.8%
unpow257.8%
associate--l+61.2%
metadata-eval61.2%
+-rgt-identity61.2%
unpow261.2%
distribute-frac-neg61.2%
distribute-frac-neg61.2%
sqr-neg61.2%
unpow261.2%
Simplified61.2%
unpow361.2%
times-frac72.3%
times-frac83.8%
pow283.8%
Applied egg-rr83.8%
if 1.19999999999999994e123 < t Initial program 15.6%
Taylor expanded in t around 0 73.6%
associate-/l*78.2%
Simplified78.2%
Final simplification31.2%
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 3e-74) (not (<= t_m 9.2e+132)))
(* 2.0 (/ (* (pow l 2.0) (cos k)) (pow (* k (* (sin k) (sqrt t_m))) 2.0)))
(/
(/ 2.0 (* (/ (pow t_m 2.0) (/ l (sin k))) (/ t_m (/ l (tan k)))))
(pow (/ k t_m) 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 <= 3e-74) || !(t_m <= 9.2e+132)) {
tmp = 2.0 * ((pow(l, 2.0) * cos(k)) / pow((k * (sin(k) * sqrt(t_m))), 2.0));
} else {
tmp = (2.0 / ((pow(t_m, 2.0) / (l / sin(k))) * (t_m / (l / tan(k))))) / pow((k / t_m), 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 <= 3d-74) .or. (.not. (t_m <= 9.2d+132))) then
tmp = 2.0d0 * (((l ** 2.0d0) * cos(k)) / ((k * (sin(k) * sqrt(t_m))) ** 2.0d0))
else
tmp = (2.0d0 / (((t_m ** 2.0d0) / (l / sin(k))) * (t_m / (l / tan(k))))) / ((k / t_m) ** 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 <= 3e-74) || !(t_m <= 9.2e+132)) {
tmp = 2.0 * ((Math.pow(l, 2.0) * Math.cos(k)) / Math.pow((k * (Math.sin(k) * Math.sqrt(t_m))), 2.0));
} else {
tmp = (2.0 / ((Math.pow(t_m, 2.0) / (l / Math.sin(k))) * (t_m / (l / Math.tan(k))))) / Math.pow((k / t_m), 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 <= 3e-74) or not (t_m <= 9.2e+132): tmp = 2.0 * ((math.pow(l, 2.0) * math.cos(k)) / math.pow((k * (math.sin(k) * math.sqrt(t_m))), 2.0)) else: tmp = (2.0 / ((math.pow(t_m, 2.0) / (l / math.sin(k))) * (t_m / (l / math.tan(k))))) / math.pow((k / t_m), 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 <= 3e-74) || !(t_m <= 9.2e+132)) tmp = Float64(2.0 * Float64(Float64((l ^ 2.0) * cos(k)) / (Float64(k * Float64(sin(k) * sqrt(t_m))) ^ 2.0))); else tmp = Float64(Float64(2.0 / Float64(Float64((t_m ^ 2.0) / Float64(l / sin(k))) * Float64(t_m / Float64(l / tan(k))))) / (Float64(k / t_m) ^ 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 <= 3e-74) || ~((t_m <= 9.2e+132))) tmp = 2.0 * (((l ^ 2.0) * cos(k)) / ((k * (sin(k) * sqrt(t_m))) ^ 2.0)); else tmp = (2.0 / (((t_m ^ 2.0) / (l / sin(k))) * (t_m / (l / tan(k))))) / ((k / t_m) ^ 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[Or[LessEqual[t$95$m, 3e-74], N[Not[LessEqual[t$95$m, 9.2e+132]], $MachinePrecision]], N[(2.0 * N[(N[(N[Power[l, 2.0], $MachinePrecision] * N[Cos[k], $MachinePrecision]), $MachinePrecision] / N[Power[N[(k * N[(N[Sin[k], $MachinePrecision] * N[Sqrt[t$95$m], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 2.0], $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[(t$95$m / N[(l / N[Tan[k], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[Power[N[(k / t$95$m), $MachinePrecision], 2.0], $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 3 \cdot 10^{-74} \lor \neg \left(t\_m \leq 9.2 \cdot 10^{+132}\right):\\
\;\;\;\;2 \cdot \frac{{\ell}^{2} \cdot \cos k}{{\left(k \cdot \left(\sin k \cdot \sqrt{t\_m}\right)\right)}^{2}}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{2}{\frac{{t\_m}^{2}}{\frac{\ell}{\sin k}} \cdot \frac{t\_m}{\frac{\ell}{\tan k}}}}{{\left(\frac{k}{t\_m}\right)}^{2}}\\
\end{array}
\end{array}
if t < 3.00000000000000007e-74 or 9.2000000000000006e132 < t Initial program 31.8%
associate-*l*31.8%
associate-/r*31.8%
sub-neg31.8%
distribute-rgt-in27.8%
unpow227.8%
times-frac18.2%
sqr-neg18.2%
times-frac27.8%
unpow227.8%
distribute-rgt-in31.8%
+-commutative31.8%
associate-+l+41.0%
Simplified41.0%
Taylor expanded in t around 0 74.6%
*-commutative74.6%
add-sqr-sqrt22.0%
unpow222.0%
pow-prod-down23.8%
Applied egg-rr23.8%
Taylor expanded in k around inf 23.7%
if 3.00000000000000007e-74 < t < 9.2000000000000006e132Initial program 53.7%
associate-/r*53.7%
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+60.4%
metadata-eval60.4%
+-rgt-identity60.4%
unpow260.4%
distribute-frac-neg60.4%
distribute-frac-neg60.4%
sqr-neg60.4%
unpow260.4%
Simplified60.4%
unpow360.4%
times-frac70.7%
times-frac85.0%
pow285.0%
Applied egg-rr85.0%
Final simplification30.4%
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) (cos k))))
(*
t_s
(if (<= t_m 3.15e-74)
(* 2.0 (/ t_2 (* (pow k 2.0) (* t_m (- 0.5 (/ (cos (* 2.0 k)) 2.0))))))
(if (<= t_m 5.5e+132)
(/
(/ 2.0 (* (* (sin k) (/ t_m l)) (* (tan k) (/ (pow t_m 2.0) l))))
(pow (/ k t_m) 2.0))
(/ 2.0 (/ (pow k 2.0) (/ t_2 (* 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 t_2 = pow(l, 2.0) * cos(k);
double tmp;
if (t_m <= 3.15e-74) {
tmp = 2.0 * (t_2 / (pow(k, 2.0) * (t_m * (0.5 - (cos((2.0 * k)) / 2.0)))));
} else if (t_m <= 5.5e+132) {
tmp = (2.0 / ((sin(k) * (t_m / l)) * (tan(k) * (pow(t_m, 2.0) / l)))) / pow((k / t_m), 2.0);
} else {
tmp = 2.0 / (pow(k, 2.0) / (t_2 / (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) :: t_2
real(8) :: tmp
t_2 = (l ** 2.0d0) * cos(k)
if (t_m <= 3.15d-74) then
tmp = 2.0d0 * (t_2 / ((k ** 2.0d0) * (t_m * (0.5d0 - (cos((2.0d0 * k)) / 2.0d0)))))
else if (t_m <= 5.5d+132) then
tmp = (2.0d0 / ((sin(k) * (t_m / l)) * (tan(k) * ((t_m ** 2.0d0) / l)))) / ((k / t_m) ** 2.0d0)
else
tmp = 2.0d0 / ((k ** 2.0d0) / (t_2 / (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 t_2 = Math.pow(l, 2.0) * Math.cos(k);
double tmp;
if (t_m <= 3.15e-74) {
tmp = 2.0 * (t_2 / (Math.pow(k, 2.0) * (t_m * (0.5 - (Math.cos((2.0 * k)) / 2.0)))));
} else if (t_m <= 5.5e+132) {
tmp = (2.0 / ((Math.sin(k) * (t_m / l)) * (Math.tan(k) * (Math.pow(t_m, 2.0) / l)))) / Math.pow((k / t_m), 2.0);
} else {
tmp = 2.0 / (Math.pow(k, 2.0) / (t_2 / (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): t_2 = math.pow(l, 2.0) * math.cos(k) tmp = 0 if t_m <= 3.15e-74: tmp = 2.0 * (t_2 / (math.pow(k, 2.0) * (t_m * (0.5 - (math.cos((2.0 * k)) / 2.0))))) elif t_m <= 5.5e+132: tmp = (2.0 / ((math.sin(k) * (t_m / l)) * (math.tan(k) * (math.pow(t_m, 2.0) / l)))) / math.pow((k / t_m), 2.0) else: tmp = 2.0 / (math.pow(k, 2.0) / (t_2 / (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) t_2 = Float64((l ^ 2.0) * cos(k)) tmp = 0.0 if (t_m <= 3.15e-74) tmp = Float64(2.0 * Float64(t_2 / Float64((k ^ 2.0) * Float64(t_m * Float64(0.5 - Float64(cos(Float64(2.0 * k)) / 2.0)))))); elseif (t_m <= 5.5e+132) tmp = Float64(Float64(2.0 / Float64(Float64(sin(k) * Float64(t_m / l)) * Float64(tan(k) * Float64((t_m ^ 2.0) / l)))) / (Float64(k / t_m) ^ 2.0)); else tmp = Float64(2.0 / Float64((k ^ 2.0) / Float64(t_2 / 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) t_2 = (l ^ 2.0) * cos(k); tmp = 0.0; if (t_m <= 3.15e-74) tmp = 2.0 * (t_2 / ((k ^ 2.0) * (t_m * (0.5 - (cos((2.0 * k)) / 2.0))))); elseif (t_m <= 5.5e+132) tmp = (2.0 / ((sin(k) * (t_m / l)) * (tan(k) * ((t_m ^ 2.0) / l)))) / ((k / t_m) ^ 2.0); else tmp = 2.0 / ((k ^ 2.0) / (t_2 / (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_] := Block[{t$95$2 = N[(N[Power[l, 2.0], $MachinePrecision] * N[Cos[k], $MachinePrecision]), $MachinePrecision]}, N[(t$95$s * If[LessEqual[t$95$m, 3.15e-74], N[(2.0 * N[(t$95$2 / 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, 5.5e+132], N[(N[(2.0 / N[(N[(N[Sin[k], $MachinePrecision] * N[(t$95$m / l), $MachinePrecision]), $MachinePrecision] * N[(N[Tan[k], $MachinePrecision] * N[(N[Power[t$95$m, 2.0], $MachinePrecision] / l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[Power[N[(k / t$95$m), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision], N[(2.0 / N[(N[Power[k, 2.0], $MachinePrecision] / N[(t$95$2 / N[(t$95$m * N[Power[k, 2.0], $MachinePrecision]), $MachinePrecision]), $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 := {\ell}^{2} \cdot \cos k\\
t\_s \cdot \begin{array}{l}
\mathbf{if}\;t\_m \leq 3.15 \cdot 10^{-74}:\\
\;\;\;\;2 \cdot \frac{t\_2}{{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 5.5 \cdot 10^{+132}:\\
\;\;\;\;\frac{\frac{2}{\left(\sin k \cdot \frac{t\_m}{\ell}\right) \cdot \left(\tan k \cdot \frac{{t\_m}^{2}}{\ell}\right)}}{{\left(\frac{k}{t\_m}\right)}^{2}}\\
\mathbf{else}:\\
\;\;\;\;\frac{2}{\frac{{k}^{2}}{\frac{t\_2}{t\_m \cdot {k}^{2}}}}\\
\end{array}
\end{array}
\end{array}
if t < 3.15000000000000001e-74Initial program 35.4%
associate-*l*35.4%
associate-/r*35.4%
sub-neg35.4%
distribute-rgt-in30.5%
unpow230.5%
times-frac20.8%
sqr-neg20.8%
times-frac30.5%
unpow230.5%
distribute-rgt-in35.4%
+-commutative35.4%
associate-+l+40.2%
Simplified40.2%
Taylor expanded in t around 0 75.1%
unpow275.1%
sin-mult72.0%
Applied egg-rr72.0%
div-sub72.0%
+-inverses72.0%
cos-072.0%
metadata-eval72.0%
count-272.0%
*-commutative72.0%
Simplified72.0%
if 3.15000000000000001e-74 < t < 5.5e132Initial program 53.7%
associate-/r*53.7%
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+60.4%
metadata-eval60.4%
+-rgt-identity60.4%
unpow260.4%
distribute-frac-neg60.4%
distribute-frac-neg60.4%
sqr-neg60.4%
unpow260.4%
Simplified60.4%
cube-mult60.4%
times-frac70.7%
times-frac85.0%
pow285.0%
Applied egg-rr85.0%
associate-/r/84.9%
associate-/r/84.9%
Simplified84.9%
if 5.5e132 < t Initial program 16.3%
Taylor expanded in t around 0 72.4%
associate-/l*77.2%
Simplified77.2%
Taylor expanded in k around 0 70.4%
Final simplification73.1%
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) (cos k))))
(*
t_s
(if (<= t_m 3.6e-74)
(* 2.0 (/ t_2 (* (pow k 2.0) (* t_m (- 0.5 (/ (cos (* 2.0 k)) 2.0))))))
(if (<= t_m 1e+133)
(/
(/ 2.0 (* (/ (pow t_m 2.0) (/ l (sin k))) (/ t_m (/ l (tan k)))))
(pow (/ k t_m) 2.0))
(/ 2.0 (/ (pow k 2.0) (/ t_2 (* 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 t_2 = pow(l, 2.0) * cos(k);
double tmp;
if (t_m <= 3.6e-74) {
tmp = 2.0 * (t_2 / (pow(k, 2.0) * (t_m * (0.5 - (cos((2.0 * k)) / 2.0)))));
} else if (t_m <= 1e+133) {
tmp = (2.0 / ((pow(t_m, 2.0) / (l / sin(k))) * (t_m / (l / tan(k))))) / pow((k / t_m), 2.0);
} else {
tmp = 2.0 / (pow(k, 2.0) / (t_2 / (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) :: t_2
real(8) :: tmp
t_2 = (l ** 2.0d0) * cos(k)
if (t_m <= 3.6d-74) then
tmp = 2.0d0 * (t_2 / ((k ** 2.0d0) * (t_m * (0.5d0 - (cos((2.0d0 * k)) / 2.0d0)))))
else if (t_m <= 1d+133) then
tmp = (2.0d0 / (((t_m ** 2.0d0) / (l / sin(k))) * (t_m / (l / tan(k))))) / ((k / t_m) ** 2.0d0)
else
tmp = 2.0d0 / ((k ** 2.0d0) / (t_2 / (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 t_2 = Math.pow(l, 2.0) * Math.cos(k);
double tmp;
if (t_m <= 3.6e-74) {
tmp = 2.0 * (t_2 / (Math.pow(k, 2.0) * (t_m * (0.5 - (Math.cos((2.0 * k)) / 2.0)))));
} else if (t_m <= 1e+133) {
tmp = (2.0 / ((Math.pow(t_m, 2.0) / (l / Math.sin(k))) * (t_m / (l / Math.tan(k))))) / Math.pow((k / t_m), 2.0);
} else {
tmp = 2.0 / (Math.pow(k, 2.0) / (t_2 / (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): t_2 = math.pow(l, 2.0) * math.cos(k) tmp = 0 if t_m <= 3.6e-74: tmp = 2.0 * (t_2 / (math.pow(k, 2.0) * (t_m * (0.5 - (math.cos((2.0 * k)) / 2.0))))) elif t_m <= 1e+133: tmp = (2.0 / ((math.pow(t_m, 2.0) / (l / math.sin(k))) * (t_m / (l / math.tan(k))))) / math.pow((k / t_m), 2.0) else: tmp = 2.0 / (math.pow(k, 2.0) / (t_2 / (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) t_2 = Float64((l ^ 2.0) * cos(k)) tmp = 0.0 if (t_m <= 3.6e-74) tmp = Float64(2.0 * Float64(t_2 / Float64((k ^ 2.0) * Float64(t_m * Float64(0.5 - Float64(cos(Float64(2.0 * k)) / 2.0)))))); elseif (t_m <= 1e+133) tmp = Float64(Float64(2.0 / Float64(Float64((t_m ^ 2.0) / Float64(l / sin(k))) * Float64(t_m / Float64(l / tan(k))))) / (Float64(k / t_m) ^ 2.0)); else tmp = Float64(2.0 / Float64((k ^ 2.0) / Float64(t_2 / 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) t_2 = (l ^ 2.0) * cos(k); tmp = 0.0; if (t_m <= 3.6e-74) tmp = 2.0 * (t_2 / ((k ^ 2.0) * (t_m * (0.5 - (cos((2.0 * k)) / 2.0))))); elseif (t_m <= 1e+133) tmp = (2.0 / (((t_m ^ 2.0) / (l / sin(k))) * (t_m / (l / tan(k))))) / ((k / t_m) ^ 2.0); else tmp = 2.0 / ((k ^ 2.0) / (t_2 / (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_] := Block[{t$95$2 = N[(N[Power[l, 2.0], $MachinePrecision] * N[Cos[k], $MachinePrecision]), $MachinePrecision]}, N[(t$95$s * If[LessEqual[t$95$m, 3.6e-74], N[(2.0 * N[(t$95$2 / 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, 1e+133], N[(N[(2.0 / N[(N[(N[Power[t$95$m, 2.0], $MachinePrecision] / N[(l / N[Sin[k], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(t$95$m / N[(l / N[Tan[k], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[Power[N[(k / t$95$m), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision], N[(2.0 / N[(N[Power[k, 2.0], $MachinePrecision] / N[(t$95$2 / N[(t$95$m * N[Power[k, 2.0], $MachinePrecision]), $MachinePrecision]), $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 := {\ell}^{2} \cdot \cos k\\
t\_s \cdot \begin{array}{l}
\mathbf{if}\;t\_m \leq 3.6 \cdot 10^{-74}:\\
\;\;\;\;2 \cdot \frac{t\_2}{{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 10^{+133}:\\
\;\;\;\;\frac{\frac{2}{\frac{{t\_m}^{2}}{\frac{\ell}{\sin k}} \cdot \frac{t\_m}{\frac{\ell}{\tan k}}}}{{\left(\frac{k}{t\_m}\right)}^{2}}\\
\mathbf{else}:\\
\;\;\;\;\frac{2}{\frac{{k}^{2}}{\frac{t\_2}{t\_m \cdot {k}^{2}}}}\\
\end{array}
\end{array}
\end{array}
if t < 3.6000000000000002e-74Initial program 35.4%
associate-*l*35.4%
associate-/r*35.4%
sub-neg35.4%
distribute-rgt-in30.5%
unpow230.5%
times-frac20.8%
sqr-neg20.8%
times-frac30.5%
unpow230.5%
distribute-rgt-in35.4%
+-commutative35.4%
associate-+l+40.2%
Simplified40.2%
Taylor expanded in t around 0 75.1%
unpow275.1%
sin-mult72.0%
Applied egg-rr72.0%
div-sub72.0%
+-inverses72.0%
cos-072.0%
metadata-eval72.0%
count-272.0%
*-commutative72.0%
Simplified72.0%
if 3.6000000000000002e-74 < t < 1e133Initial program 53.7%
associate-/r*53.7%
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+60.4%
metadata-eval60.4%
+-rgt-identity60.4%
unpow260.4%
distribute-frac-neg60.4%
distribute-frac-neg60.4%
sqr-neg60.4%
unpow260.4%
Simplified60.4%
unpow360.4%
times-frac70.7%
times-frac85.0%
pow285.0%
Applied egg-rr85.0%
if 1e133 < t Initial program 16.3%
Taylor expanded in t around 0 72.4%
associate-/l*77.2%
Simplified77.2%
Taylor expanded in k around 0 70.4%
Final simplification73.1%
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 1.8e-74) (not (<= t_m 1.5e+34)))
(/ 2.0 (/ (pow k 2.0) (/ (* (pow l 2.0) (cos k)) (* t_m (pow k 2.0)))))
(*
(* (/ 2.0 (pow t_m 3.0)) (* (/ l (tan k)) (/ l (sin k))))
(pow (/ k t_m) -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 <= 1.8e-74) || !(t_m <= 1.5e+34)) {
tmp = 2.0 / (pow(k, 2.0) / ((pow(l, 2.0) * cos(k)) / (t_m * pow(k, 2.0))));
} else {
tmp = ((2.0 / pow(t_m, 3.0)) * ((l / tan(k)) * (l / sin(k)))) * pow((k / t_m), -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 <= 1.8d-74) .or. (.not. (t_m <= 1.5d+34))) then
tmp = 2.0d0 / ((k ** 2.0d0) / (((l ** 2.0d0) * cos(k)) / (t_m * (k ** 2.0d0))))
else
tmp = ((2.0d0 / (t_m ** 3.0d0)) * ((l / tan(k)) * (l / sin(k)))) * ((k / t_m) ** (-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 <= 1.8e-74) || !(t_m <= 1.5e+34)) {
tmp = 2.0 / (Math.pow(k, 2.0) / ((Math.pow(l, 2.0) * Math.cos(k)) / (t_m * Math.pow(k, 2.0))));
} else {
tmp = ((2.0 / Math.pow(t_m, 3.0)) * ((l / Math.tan(k)) * (l / Math.sin(k)))) * Math.pow((k / t_m), -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 <= 1.8e-74) or not (t_m <= 1.5e+34): tmp = 2.0 / (math.pow(k, 2.0) / ((math.pow(l, 2.0) * math.cos(k)) / (t_m * math.pow(k, 2.0)))) else: tmp = ((2.0 / math.pow(t_m, 3.0)) * ((l / math.tan(k)) * (l / math.sin(k)))) * math.pow((k / t_m), -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 <= 1.8e-74) || !(t_m <= 1.5e+34)) tmp = Float64(2.0 / Float64((k ^ 2.0) / Float64(Float64((l ^ 2.0) * cos(k)) / Float64(t_m * (k ^ 2.0))))); else tmp = Float64(Float64(Float64(2.0 / (t_m ^ 3.0)) * Float64(Float64(l / tan(k)) * Float64(l / sin(k)))) * (Float64(k / t_m) ^ -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 <= 1.8e-74) || ~((t_m <= 1.5e+34))) tmp = 2.0 / ((k ^ 2.0) / (((l ^ 2.0) * cos(k)) / (t_m * (k ^ 2.0)))); else tmp = ((2.0 / (t_m ^ 3.0)) * ((l / tan(k)) * (l / sin(k)))) * ((k / t_m) ^ -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[Or[LessEqual[t$95$m, 1.8e-74], N[Not[LessEqual[t$95$m, 1.5e+34]], $MachinePrecision]], N[(2.0 / N[(N[Power[k, 2.0], $MachinePrecision] / N[(N[(N[Power[l, 2.0], $MachinePrecision] * N[Cos[k], $MachinePrecision]), $MachinePrecision] / N[(t$95$m * N[Power[k, 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[(2.0 / N[Power[t$95$m, 3.0], $MachinePrecision]), $MachinePrecision] * N[(N[(l / N[Tan[k], $MachinePrecision]), $MachinePrecision] * N[(l / N[Sin[k], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[Power[N[(k / t$95$m), $MachinePrecision], -2.0], $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.8 \cdot 10^{-74} \lor \neg \left(t\_m \leq 1.5 \cdot 10^{+34}\right):\\
\;\;\;\;\frac{2}{\frac{{k}^{2}}{\frac{{\ell}^{2} \cdot \cos k}{t\_m \cdot {k}^{2}}}}\\
\mathbf{else}:\\
\;\;\;\;\left(\frac{2}{{t\_m}^{3}} \cdot \left(\frac{\ell}{\tan k} \cdot \frac{\ell}{\sin k}\right)\right) \cdot {\left(\frac{k}{t\_m}\right)}^{-2}\\
\end{array}
\end{array}
if t < 1.8000000000000001e-74 or 1.50000000000000009e34 < t Initial program 32.7%
Taylor expanded in t around 0 75.3%
associate-/l*75.6%
Simplified75.6%
Taylor expanded in k around 0 68.4%
if 1.8000000000000001e-74 < t < 1.50000000000000009e34Initial program 56.5%
associate-/r*56.5%
associate-*l*56.5%
associate-*l/56.5%
associate-/l*56.5%
+-commutative56.5%
unpow256.5%
sqr-neg56.5%
distribute-frac-neg56.5%
distribute-frac-neg56.5%
unpow256.5%
associate--l+56.8%
metadata-eval56.8%
+-rgt-identity56.8%
unpow256.8%
distribute-frac-neg56.8%
distribute-frac-neg56.8%
sqr-neg56.8%
unpow256.8%
Simplified56.8%
unpow356.8%
times-frac74.9%
times-frac75.0%
pow275.0%
Applied egg-rr75.0%
div-inv75.0%
frac-times75.0%
unpow275.0%
pow375.0%
pow-flip75.0%
metadata-eval75.0%
Applied egg-rr75.0%
associate-/r/74.9%
Simplified74.9%
Final simplification68.9%
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 1.85e-74) (not (<= t_m 5.5e+65)))
(/ 2.0 (/ (pow k 2.0) (/ (* (pow l 2.0) (cos k)) (* t_m (pow k 2.0)))))
(/
(/ 2.0 (/ (* (tan k) (/ (pow t_m 3.0) l)) (/ l (sin k))))
(pow (/ k t_m) 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 <= 1.85e-74) || !(t_m <= 5.5e+65)) {
tmp = 2.0 / (pow(k, 2.0) / ((pow(l, 2.0) * cos(k)) / (t_m * pow(k, 2.0))));
} else {
tmp = (2.0 / ((tan(k) * (pow(t_m, 3.0) / l)) / (l / sin(k)))) / pow((k / t_m), 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 <= 1.85d-74) .or. (.not. (t_m <= 5.5d+65))) then
tmp = 2.0d0 / ((k ** 2.0d0) / (((l ** 2.0d0) * cos(k)) / (t_m * (k ** 2.0d0))))
else
tmp = (2.0d0 / ((tan(k) * ((t_m ** 3.0d0) / l)) / (l / sin(k)))) / ((k / t_m) ** 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 <= 1.85e-74) || !(t_m <= 5.5e+65)) {
tmp = 2.0 / (Math.pow(k, 2.0) / ((Math.pow(l, 2.0) * Math.cos(k)) / (t_m * Math.pow(k, 2.0))));
} else {
tmp = (2.0 / ((Math.tan(k) * (Math.pow(t_m, 3.0) / l)) / (l / Math.sin(k)))) / Math.pow((k / t_m), 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 <= 1.85e-74) or not (t_m <= 5.5e+65): tmp = 2.0 / (math.pow(k, 2.0) / ((math.pow(l, 2.0) * math.cos(k)) / (t_m * math.pow(k, 2.0)))) else: tmp = (2.0 / ((math.tan(k) * (math.pow(t_m, 3.0) / l)) / (l / math.sin(k)))) / math.pow((k / t_m), 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 <= 1.85e-74) || !(t_m <= 5.5e+65)) tmp = Float64(2.0 / Float64((k ^ 2.0) / Float64(Float64((l ^ 2.0) * cos(k)) / Float64(t_m * (k ^ 2.0))))); else tmp = Float64(Float64(2.0 / Float64(Float64(tan(k) * Float64((t_m ^ 3.0) / l)) / Float64(l / sin(k)))) / (Float64(k / t_m) ^ 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 <= 1.85e-74) || ~((t_m <= 5.5e+65))) tmp = 2.0 / ((k ^ 2.0) / (((l ^ 2.0) * cos(k)) / (t_m * (k ^ 2.0)))); else tmp = (2.0 / ((tan(k) * ((t_m ^ 3.0) / l)) / (l / sin(k)))) / ((k / t_m) ^ 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[Or[LessEqual[t$95$m, 1.85e-74], N[Not[LessEqual[t$95$m, 5.5e+65]], $MachinePrecision]], N[(2.0 / N[(N[Power[k, 2.0], $MachinePrecision] / N[(N[(N[Power[l, 2.0], $MachinePrecision] * N[Cos[k], $MachinePrecision]), $MachinePrecision] / N[(t$95$m * N[Power[k, 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(2.0 / N[(N[(N[Tan[k], $MachinePrecision] * N[(N[Power[t$95$m, 3.0], $MachinePrecision] / l), $MachinePrecision]), $MachinePrecision] / N[(l / N[Sin[k], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[Power[N[(k / t$95$m), $MachinePrecision], 2.0], $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.85 \cdot 10^{-74} \lor \neg \left(t\_m \leq 5.5 \cdot 10^{+65}\right):\\
\;\;\;\;\frac{2}{\frac{{k}^{2}}{\frac{{\ell}^{2} \cdot \cos k}{t\_m \cdot {k}^{2}}}}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{2}{\frac{\tan k \cdot \frac{{t\_m}^{3}}{\ell}}{\frac{\ell}{\sin k}}}}{{\left(\frac{k}{t\_m}\right)}^{2}}\\
\end{array}
\end{array}
if t < 1.84999999999999997e-74 or 5.4999999999999996e65 < t Initial program 32.4%
Taylor expanded in t around 0 75.2%
associate-/l*75.5%
Simplified75.5%
Taylor expanded in k around 0 68.3%
if 1.84999999999999997e-74 < t < 5.4999999999999996e65Initial program 59.0%
associate-/r*59.0%
associate-*l*59.0%
associate-*l/59.0%
associate-/l*59.0%
+-commutative59.0%
unpow259.0%
sqr-neg59.0%
distribute-frac-neg59.0%
distribute-frac-neg59.0%
unpow259.0%
associate--l+59.4%
metadata-eval59.4%
+-rgt-identity59.4%
unpow259.4%
distribute-frac-neg59.4%
distribute-frac-neg59.4%
sqr-neg59.4%
unpow259.4%
Simplified59.4%
cube-mult59.4%
times-frac76.4%
times-frac76.5%
pow276.5%
Applied egg-rr76.5%
associate-*l/76.5%
associate-*r/76.4%
unpow276.4%
cube-mult76.6%
associate-/r/76.5%
Simplified76.5%
Final simplification68.9%
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) (cos k))))
(*
t_s
(if (<= t_m 2.55e-74)
(* 2.0 (/ t_2 (* (pow k 2.0) (* t_m (- 0.5 (/ (cos (* 2.0 k)) 2.0))))))
(if (<= t_m 5.5e+65)
(/
(/ 2.0 (/ (* (tan k) (/ (pow t_m 3.0) l)) (/ l (sin k))))
(pow (/ k t_m) 2.0))
(/ 2.0 (/ (pow k 2.0) (/ t_2 (* 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 t_2 = pow(l, 2.0) * cos(k);
double tmp;
if (t_m <= 2.55e-74) {
tmp = 2.0 * (t_2 / (pow(k, 2.0) * (t_m * (0.5 - (cos((2.0 * k)) / 2.0)))));
} else if (t_m <= 5.5e+65) {
tmp = (2.0 / ((tan(k) * (pow(t_m, 3.0) / l)) / (l / sin(k)))) / pow((k / t_m), 2.0);
} else {
tmp = 2.0 / (pow(k, 2.0) / (t_2 / (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) :: t_2
real(8) :: tmp
t_2 = (l ** 2.0d0) * cos(k)
if (t_m <= 2.55d-74) then
tmp = 2.0d0 * (t_2 / ((k ** 2.0d0) * (t_m * (0.5d0 - (cos((2.0d0 * k)) / 2.0d0)))))
else if (t_m <= 5.5d+65) then
tmp = (2.0d0 / ((tan(k) * ((t_m ** 3.0d0) / l)) / (l / sin(k)))) / ((k / t_m) ** 2.0d0)
else
tmp = 2.0d0 / ((k ** 2.0d0) / (t_2 / (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 t_2 = Math.pow(l, 2.0) * Math.cos(k);
double tmp;
if (t_m <= 2.55e-74) {
tmp = 2.0 * (t_2 / (Math.pow(k, 2.0) * (t_m * (0.5 - (Math.cos((2.0 * k)) / 2.0)))));
} else if (t_m <= 5.5e+65) {
tmp = (2.0 / ((Math.tan(k) * (Math.pow(t_m, 3.0) / l)) / (l / Math.sin(k)))) / Math.pow((k / t_m), 2.0);
} else {
tmp = 2.0 / (Math.pow(k, 2.0) / (t_2 / (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): t_2 = math.pow(l, 2.0) * math.cos(k) tmp = 0 if t_m <= 2.55e-74: tmp = 2.0 * (t_2 / (math.pow(k, 2.0) * (t_m * (0.5 - (math.cos((2.0 * k)) / 2.0))))) elif t_m <= 5.5e+65: tmp = (2.0 / ((math.tan(k) * (math.pow(t_m, 3.0) / l)) / (l / math.sin(k)))) / math.pow((k / t_m), 2.0) else: tmp = 2.0 / (math.pow(k, 2.0) / (t_2 / (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) t_2 = Float64((l ^ 2.0) * cos(k)) tmp = 0.0 if (t_m <= 2.55e-74) tmp = Float64(2.0 * Float64(t_2 / Float64((k ^ 2.0) * Float64(t_m * Float64(0.5 - Float64(cos(Float64(2.0 * k)) / 2.0)))))); elseif (t_m <= 5.5e+65) tmp = Float64(Float64(2.0 / Float64(Float64(tan(k) * Float64((t_m ^ 3.0) / l)) / Float64(l / sin(k)))) / (Float64(k / t_m) ^ 2.0)); else tmp = Float64(2.0 / Float64((k ^ 2.0) / Float64(t_2 / 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) t_2 = (l ^ 2.0) * cos(k); tmp = 0.0; if (t_m <= 2.55e-74) tmp = 2.0 * (t_2 / ((k ^ 2.0) * (t_m * (0.5 - (cos((2.0 * k)) / 2.0))))); elseif (t_m <= 5.5e+65) tmp = (2.0 / ((tan(k) * ((t_m ^ 3.0) / l)) / (l / sin(k)))) / ((k / t_m) ^ 2.0); else tmp = 2.0 / ((k ^ 2.0) / (t_2 / (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_] := Block[{t$95$2 = N[(N[Power[l, 2.0], $MachinePrecision] * N[Cos[k], $MachinePrecision]), $MachinePrecision]}, N[(t$95$s * If[LessEqual[t$95$m, 2.55e-74], N[(2.0 * N[(t$95$2 / 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, 5.5e+65], N[(N[(2.0 / N[(N[(N[Tan[k], $MachinePrecision] * N[(N[Power[t$95$m, 3.0], $MachinePrecision] / l), $MachinePrecision]), $MachinePrecision] / N[(l / N[Sin[k], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[Power[N[(k / t$95$m), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision], N[(2.0 / N[(N[Power[k, 2.0], $MachinePrecision] / N[(t$95$2 / N[(t$95$m * N[Power[k, 2.0], $MachinePrecision]), $MachinePrecision]), $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 := {\ell}^{2} \cdot \cos k\\
t\_s \cdot \begin{array}{l}
\mathbf{if}\;t\_m \leq 2.55 \cdot 10^{-74}:\\
\;\;\;\;2 \cdot \frac{t\_2}{{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 5.5 \cdot 10^{+65}:\\
\;\;\;\;\frac{\frac{2}{\frac{\tan k \cdot \frac{{t\_m}^{3}}{\ell}}{\frac{\ell}{\sin k}}}}{{\left(\frac{k}{t\_m}\right)}^{2}}\\
\mathbf{else}:\\
\;\;\;\;\frac{2}{\frac{{k}^{2}}{\frac{t\_2}{t\_m \cdot {k}^{2}}}}\\
\end{array}
\end{array}
\end{array}
if t < 2.5499999999999998e-74Initial program 35.4%
associate-*l*35.4%
associate-/r*35.4%
sub-neg35.4%
distribute-rgt-in30.5%
unpow230.5%
times-frac20.8%
sqr-neg20.8%
times-frac30.5%
unpow230.5%
distribute-rgt-in35.4%
+-commutative35.4%
associate-+l+40.2%
Simplified40.2%
Taylor expanded in t around 0 75.1%
unpow275.1%
sin-mult72.0%
Applied egg-rr72.0%
div-sub72.0%
+-inverses72.0%
cos-072.0%
metadata-eval72.0%
count-272.0%
*-commutative72.0%
Simplified72.0%
if 2.5499999999999998e-74 < t < 5.4999999999999996e65Initial program 59.0%
associate-/r*59.0%
associate-*l*59.0%
associate-*l/59.0%
associate-/l*59.0%
+-commutative59.0%
unpow259.0%
sqr-neg59.0%
distribute-frac-neg59.0%
distribute-frac-neg59.0%
unpow259.0%
associate--l+59.4%
metadata-eval59.4%
+-rgt-identity59.4%
unpow259.4%
distribute-frac-neg59.4%
distribute-frac-neg59.4%
sqr-neg59.4%
unpow259.4%
Simplified59.4%
cube-mult59.4%
times-frac76.4%
times-frac76.5%
pow276.5%
Applied egg-rr76.5%
associate-*l/76.5%
associate-*r/76.4%
unpow276.4%
cube-mult76.6%
associate-/r/76.5%
Simplified76.5%
if 5.4999999999999996e65 < t Initial program 22.2%
Taylor expanded in t around 0 75.8%
associate-/l*79.8%
Simplified79.8%
Taylor expanded in k around 0 74.2%
Final simplification72.8%
t_m = (fabs.f64 t)
t_s = (copysign.f64 1 t)
(FPCore (t_s t_m l k)
:precision binary64
(let* ((t_2 (* t_m (pow k 2.0))))
(*
t_s
(if (<= t_m 1.1e-128)
(* 2.0 (* (/ (pow l 2.0) (pow k 2.0)) (/ (cos k) t_2)))
(if (<= t_m 1.45e+45)
(/
(/ 2.0 (* (/ t_m (/ l (tan k))) (/ k (/ l (pow t_m 2.0)))))
(pow (/ k t_m) 2.0))
(/ 2.0 (/ (pow k 2.0) (/ (pow l 2.0) t_2))))))))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 = t_m * pow(k, 2.0);
double tmp;
if (t_m <= 1.1e-128) {
tmp = 2.0 * ((pow(l, 2.0) / pow(k, 2.0)) * (cos(k) / t_2));
} else if (t_m <= 1.45e+45) {
tmp = (2.0 / ((t_m / (l / tan(k))) * (k / (l / pow(t_m, 2.0))))) / pow((k / t_m), 2.0);
} else {
tmp = 2.0 / (pow(k, 2.0) / (pow(l, 2.0) / t_2));
}
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 = t_m * (k ** 2.0d0)
if (t_m <= 1.1d-128) then
tmp = 2.0d0 * (((l ** 2.0d0) / (k ** 2.0d0)) * (cos(k) / t_2))
else if (t_m <= 1.45d+45) then
tmp = (2.0d0 / ((t_m / (l / tan(k))) * (k / (l / (t_m ** 2.0d0))))) / ((k / t_m) ** 2.0d0)
else
tmp = 2.0d0 / ((k ** 2.0d0) / ((l ** 2.0d0) / t_2))
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 = t_m * Math.pow(k, 2.0);
double tmp;
if (t_m <= 1.1e-128) {
tmp = 2.0 * ((Math.pow(l, 2.0) / Math.pow(k, 2.0)) * (Math.cos(k) / t_2));
} else if (t_m <= 1.45e+45) {
tmp = (2.0 / ((t_m / (l / Math.tan(k))) * (k / (l / Math.pow(t_m, 2.0))))) / Math.pow((k / t_m), 2.0);
} else {
tmp = 2.0 / (Math.pow(k, 2.0) / (Math.pow(l, 2.0) / t_2));
}
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 = t_m * math.pow(k, 2.0) tmp = 0 if t_m <= 1.1e-128: tmp = 2.0 * ((math.pow(l, 2.0) / math.pow(k, 2.0)) * (math.cos(k) / t_2)) elif t_m <= 1.45e+45: tmp = (2.0 / ((t_m / (l / math.tan(k))) * (k / (l / math.pow(t_m, 2.0))))) / math.pow((k / t_m), 2.0) else: tmp = 2.0 / (math.pow(k, 2.0) / (math.pow(l, 2.0) / t_2)) 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(t_m * (k ^ 2.0)) tmp = 0.0 if (t_m <= 1.1e-128) tmp = Float64(2.0 * Float64(Float64((l ^ 2.0) / (k ^ 2.0)) * Float64(cos(k) / t_2))); elseif (t_m <= 1.45e+45) tmp = Float64(Float64(2.0 / Float64(Float64(t_m / Float64(l / tan(k))) * Float64(k / Float64(l / (t_m ^ 2.0))))) / (Float64(k / t_m) ^ 2.0)); else tmp = Float64(2.0 / Float64((k ^ 2.0) / Float64((l ^ 2.0) / t_2))); 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 = t_m * (k ^ 2.0); tmp = 0.0; if (t_m <= 1.1e-128) tmp = 2.0 * (((l ^ 2.0) / (k ^ 2.0)) * (cos(k) / t_2)); elseif (t_m <= 1.45e+45) tmp = (2.0 / ((t_m / (l / tan(k))) * (k / (l / (t_m ^ 2.0))))) / ((k / t_m) ^ 2.0); else tmp = 2.0 / ((k ^ 2.0) / ((l ^ 2.0) / t_2)); 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[(t$95$m * N[Power[k, 2.0], $MachinePrecision]), $MachinePrecision]}, N[(t$95$s * If[LessEqual[t$95$m, 1.1e-128], N[(2.0 * N[(N[(N[Power[l, 2.0], $MachinePrecision] / N[Power[k, 2.0], $MachinePrecision]), $MachinePrecision] * N[(N[Cos[k], $MachinePrecision] / t$95$2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$m, 1.45e+45], N[(N[(2.0 / N[(N[(t$95$m / N[(l / N[Tan[k], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(k / N[(l / N[Power[t$95$m, 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[Power[N[(k / t$95$m), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision], N[(2.0 / N[(N[Power[k, 2.0], $MachinePrecision] / N[(N[Power[l, 2.0], $MachinePrecision] / t$95$2), $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 := t\_m \cdot {k}^{2}\\
t\_s \cdot \begin{array}{l}
\mathbf{if}\;t\_m \leq 1.1 \cdot 10^{-128}:\\
\;\;\;\;2 \cdot \left(\frac{{\ell}^{2}}{{k}^{2}} \cdot \frac{\cos k}{t\_2}\right)\\
\mathbf{elif}\;t\_m \leq 1.45 \cdot 10^{+45}:\\
\;\;\;\;\frac{\frac{2}{\frac{t\_m}{\frac{\ell}{\tan k}} \cdot \frac{k}{\frac{\ell}{{t\_m}^{2}}}}}{{\left(\frac{k}{t\_m}\right)}^{2}}\\
\mathbf{else}:\\
\;\;\;\;\frac{2}{\frac{{k}^{2}}{\frac{{\ell}^{2}}{t\_2}}}\\
\end{array}
\end{array}
\end{array}
if t < 1.10000000000000005e-128Initial program 35.6%
associate-*l*35.6%
associate-/r*35.6%
sub-neg35.6%
distribute-rgt-in30.5%
unpow230.5%
times-frac20.2%
sqr-neg20.2%
times-frac30.5%
unpow230.5%
distribute-rgt-in35.6%
+-commutative35.6%
associate-+l+40.8%
Simplified40.8%
Taylor expanded in t around 0 76.5%
Taylor expanded in k around 0 66.2%
times-frac68.3%
*-commutative68.3%
Applied egg-rr68.3%
if 1.10000000000000005e-128 < t < 1.4499999999999999e45Initial program 46.6%
associate-/r*46.6%
associate-*l*46.6%
associate-*l/42.8%
associate-/l*46.6%
+-commutative46.6%
unpow246.6%
sqr-neg46.6%
distribute-frac-neg46.6%
distribute-frac-neg46.6%
unpow246.6%
associate--l+46.8%
metadata-eval46.8%
+-rgt-identity46.8%
unpow246.8%
distribute-frac-neg46.8%
distribute-frac-neg46.8%
sqr-neg46.8%
unpow246.8%
Simplified46.8%
unpow346.8%
times-frac58.1%
times-frac61.8%
pow261.8%
Applied egg-rr61.8%
Taylor expanded in k around 0 58.7%
associate-/l*62.4%
Simplified62.4%
if 1.4499999999999999e45 < t Initial program 23.6%
Taylor expanded in t around 0 76.2%
associate-/l*80.1%
Simplified80.1%
Taylor expanded in k around 0 74.6%
Final simplification69.0%
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 8e-125)
(* 2.0 (/ (* (pow l 2.0) (cos k)) (pow (* k (* k (sqrt t_m))) 2.0)))
(if (<= t_m 3.2e+40)
(/
(/ 2.0 (* (/ t_m (/ l (tan k))) (/ k (/ l (pow t_m 2.0)))))
(pow (/ k t_m) 2.0))
(/ 2.0 (/ (pow k 2.0) (/ (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) {
double tmp;
if (t_m <= 8e-125) {
tmp = 2.0 * ((pow(l, 2.0) * cos(k)) / pow((k * (k * sqrt(t_m))), 2.0));
} else if (t_m <= 3.2e+40) {
tmp = (2.0 / ((t_m / (l / tan(k))) * (k / (l / pow(t_m, 2.0))))) / pow((k / t_m), 2.0);
} else {
tmp = 2.0 / (pow(k, 2.0) / (pow(l, 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 <= 8d-125) then
tmp = 2.0d0 * (((l ** 2.0d0) * cos(k)) / ((k * (k * sqrt(t_m))) ** 2.0d0))
else if (t_m <= 3.2d+40) then
tmp = (2.0d0 / ((t_m / (l / tan(k))) * (k / (l / (t_m ** 2.0d0))))) / ((k / t_m) ** 2.0d0)
else
tmp = 2.0d0 / ((k ** 2.0d0) / ((l ** 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 <= 8e-125) {
tmp = 2.0 * ((Math.pow(l, 2.0) * Math.cos(k)) / Math.pow((k * (k * Math.sqrt(t_m))), 2.0));
} else if (t_m <= 3.2e+40) {
tmp = (2.0 / ((t_m / (l / Math.tan(k))) * (k / (l / Math.pow(t_m, 2.0))))) / Math.pow((k / t_m), 2.0);
} else {
tmp = 2.0 / (Math.pow(k, 2.0) / (Math.pow(l, 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 <= 8e-125: tmp = 2.0 * ((math.pow(l, 2.0) * math.cos(k)) / math.pow((k * (k * math.sqrt(t_m))), 2.0)) elif t_m <= 3.2e+40: tmp = (2.0 / ((t_m / (l / math.tan(k))) * (k / (l / math.pow(t_m, 2.0))))) / math.pow((k / t_m), 2.0) else: tmp = 2.0 / (math.pow(k, 2.0) / (math.pow(l, 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 <= 8e-125) tmp = Float64(2.0 * Float64(Float64((l ^ 2.0) * cos(k)) / (Float64(k * Float64(k * sqrt(t_m))) ^ 2.0))); elseif (t_m <= 3.2e+40) tmp = Float64(Float64(2.0 / Float64(Float64(t_m / Float64(l / tan(k))) * Float64(k / Float64(l / (t_m ^ 2.0))))) / (Float64(k / t_m) ^ 2.0)); else tmp = Float64(2.0 / Float64((k ^ 2.0) / Float64((l ^ 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 <= 8e-125) tmp = 2.0 * (((l ^ 2.0) * cos(k)) / ((k * (k * sqrt(t_m))) ^ 2.0)); elseif (t_m <= 3.2e+40) tmp = (2.0 / ((t_m / (l / tan(k))) * (k / (l / (t_m ^ 2.0))))) / ((k / t_m) ^ 2.0); else tmp = 2.0 / ((k ^ 2.0) / ((l ^ 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, 8e-125], N[(2.0 * N[(N[(N[Power[l, 2.0], $MachinePrecision] * N[Cos[k], $MachinePrecision]), $MachinePrecision] / N[Power[N[(k * N[(k * N[Sqrt[t$95$m], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$m, 3.2e+40], N[(N[(2.0 / N[(N[(t$95$m / N[(l / N[Tan[k], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(k / N[(l / N[Power[t$95$m, 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[Power[N[(k / t$95$m), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision], N[(2.0 / N[(N[Power[k, 2.0], $MachinePrecision] / N[(N[Power[l, 2.0], $MachinePrecision] / N[(t$95$m * N[Power[k, 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}\;t\_m \leq 8 \cdot 10^{-125}:\\
\;\;\;\;2 \cdot \frac{{\ell}^{2} \cdot \cos k}{{\left(k \cdot \left(k \cdot \sqrt{t\_m}\right)\right)}^{2}}\\
\mathbf{elif}\;t\_m \leq 3.2 \cdot 10^{+40}:\\
\;\;\;\;\frac{\frac{2}{\frac{t\_m}{\frac{\ell}{\tan k}} \cdot \frac{k}{\frac{\ell}{{t\_m}^{2}}}}}{{\left(\frac{k}{t\_m}\right)}^{2}}\\
\mathbf{else}:\\
\;\;\;\;\frac{2}{\frac{{k}^{2}}{\frac{{\ell}^{2}}{t\_m \cdot {k}^{2}}}}\\
\end{array}
\end{array}
if t < 8.0000000000000001e-125Initial program 35.6%
associate-*l*35.6%
associate-/r*35.6%
sub-neg35.6%
distribute-rgt-in30.5%
unpow230.5%
times-frac20.2%
sqr-neg20.2%
times-frac30.5%
unpow230.5%
distribute-rgt-in35.6%
+-commutative35.6%
associate-+l+40.8%
Simplified40.8%
Taylor expanded in t around 0 76.5%
*-commutative76.5%
add-sqr-sqrt8.0%
unpow28.0%
pow-prod-down9.7%
Applied egg-rr9.7%
Taylor expanded in k around 0 5.9%
if 8.0000000000000001e-125 < t < 3.19999999999999981e40Initial program 46.6%
associate-/r*46.6%
associate-*l*46.6%
associate-*l/42.8%
associate-/l*46.6%
+-commutative46.6%
unpow246.6%
sqr-neg46.6%
distribute-frac-neg46.6%
distribute-frac-neg46.6%
unpow246.6%
associate--l+46.8%
metadata-eval46.8%
+-rgt-identity46.8%
unpow246.8%
distribute-frac-neg46.8%
distribute-frac-neg46.8%
sqr-neg46.8%
unpow246.8%
Simplified46.8%
unpow346.8%
times-frac58.1%
times-frac61.8%
pow261.8%
Applied egg-rr61.8%
Taylor expanded in k around 0 58.7%
associate-/l*62.4%
Simplified62.4%
if 3.19999999999999981e40 < t Initial program 23.6%
Taylor expanded in t around 0 76.2%
associate-/l*80.1%
Simplified80.1%
Taylor expanded in k around 0 74.6%
Final simplification26.4%
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 k 2.0) (/ (* (pow l 2.0) (cos k)) (* 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 * (2.0 / (pow(k, 2.0) / ((pow(l, 2.0) * cos(k)) / (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 * (2.0d0 / ((k ** 2.0d0) / (((l ** 2.0d0) * cos(k)) / (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 * (2.0 / (Math.pow(k, 2.0) / ((Math.pow(l, 2.0) * Math.cos(k)) / (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 * (2.0 / (math.pow(k, 2.0) / ((math.pow(l, 2.0) * math.cos(k)) / (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(2.0 / Float64((k ^ 2.0) / Float64(Float64((l ^ 2.0) * cos(k)) / 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 * (2.0 / ((k ^ 2.0) / (((l ^ 2.0) * cos(k)) / (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[(2.0 / N[(N[Power[k, 2.0], $MachinePrecision] / N[(N[(N[Power[l, 2.0], $MachinePrecision] * N[Cos[k], $MachinePrecision]), $MachinePrecision] / N[(t$95$m * N[Power[k, 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 \frac{2}{\frac{{k}^{2}}{\frac{{\ell}^{2} \cdot \cos k}{t\_m \cdot {k}^{2}}}}
\end{array}
Initial program 34.2%
Taylor expanded in t around 0 74.2%
associate-/l*74.5%
Simplified74.5%
Taylor expanded in k around 0 67.7%
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 3e-141)
(* 2.0 (* (/ (pow l 2.0) (pow k 4.0)) (/ (cos k) t_m)))
(if (<= t_m 6e+41)
(/
(/ 2.0 (* (/ t_m (/ l (tan k))) (/ k (/ l (pow t_m 2.0)))))
(pow (/ k t_m) 2.0))
(/ 2.0 (/ (pow k 2.0) (/ (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) {
double tmp;
if (t_m <= 3e-141) {
tmp = 2.0 * ((pow(l, 2.0) / pow(k, 4.0)) * (cos(k) / t_m));
} else if (t_m <= 6e+41) {
tmp = (2.0 / ((t_m / (l / tan(k))) * (k / (l / pow(t_m, 2.0))))) / pow((k / t_m), 2.0);
} else {
tmp = 2.0 / (pow(k, 2.0) / (pow(l, 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 <= 3d-141) then
tmp = 2.0d0 * (((l ** 2.0d0) / (k ** 4.0d0)) * (cos(k) / t_m))
else if (t_m <= 6d+41) then
tmp = (2.0d0 / ((t_m / (l / tan(k))) * (k / (l / (t_m ** 2.0d0))))) / ((k / t_m) ** 2.0d0)
else
tmp = 2.0d0 / ((k ** 2.0d0) / ((l ** 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 <= 3e-141) {
tmp = 2.0 * ((Math.pow(l, 2.0) / Math.pow(k, 4.0)) * (Math.cos(k) / t_m));
} else if (t_m <= 6e+41) {
tmp = (2.0 / ((t_m / (l / Math.tan(k))) * (k / (l / Math.pow(t_m, 2.0))))) / Math.pow((k / t_m), 2.0);
} else {
tmp = 2.0 / (Math.pow(k, 2.0) / (Math.pow(l, 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 <= 3e-141: tmp = 2.0 * ((math.pow(l, 2.0) / math.pow(k, 4.0)) * (math.cos(k) / t_m)) elif t_m <= 6e+41: tmp = (2.0 / ((t_m / (l / math.tan(k))) * (k / (l / math.pow(t_m, 2.0))))) / math.pow((k / t_m), 2.0) else: tmp = 2.0 / (math.pow(k, 2.0) / (math.pow(l, 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 <= 3e-141) tmp = Float64(2.0 * Float64(Float64((l ^ 2.0) / (k ^ 4.0)) * Float64(cos(k) / t_m))); elseif (t_m <= 6e+41) tmp = Float64(Float64(2.0 / Float64(Float64(t_m / Float64(l / tan(k))) * Float64(k / Float64(l / (t_m ^ 2.0))))) / (Float64(k / t_m) ^ 2.0)); else tmp = Float64(2.0 / Float64((k ^ 2.0) / Float64((l ^ 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 <= 3e-141) tmp = 2.0 * (((l ^ 2.0) / (k ^ 4.0)) * (cos(k) / t_m)); elseif (t_m <= 6e+41) tmp = (2.0 / ((t_m / (l / tan(k))) * (k / (l / (t_m ^ 2.0))))) / ((k / t_m) ^ 2.0); else tmp = 2.0 / ((k ^ 2.0) / ((l ^ 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, 3e-141], N[(2.0 * N[(N[(N[Power[l, 2.0], $MachinePrecision] / N[Power[k, 4.0], $MachinePrecision]), $MachinePrecision] * N[(N[Cos[k], $MachinePrecision] / t$95$m), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$m, 6e+41], N[(N[(2.0 / N[(N[(t$95$m / N[(l / N[Tan[k], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(k / N[(l / N[Power[t$95$m, 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[Power[N[(k / t$95$m), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision], N[(2.0 / N[(N[Power[k, 2.0], $MachinePrecision] / N[(N[Power[l, 2.0], $MachinePrecision] / N[(t$95$m * N[Power[k, 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}\;t\_m \leq 3 \cdot 10^{-141}:\\
\;\;\;\;2 \cdot \left(\frac{{\ell}^{2}}{{k}^{4}} \cdot \frac{\cos k}{t\_m}\right)\\
\mathbf{elif}\;t\_m \leq 6 \cdot 10^{+41}:\\
\;\;\;\;\frac{\frac{2}{\frac{t\_m}{\frac{\ell}{\tan k}} \cdot \frac{k}{\frac{\ell}{{t\_m}^{2}}}}}{{\left(\frac{k}{t\_m}\right)}^{2}}\\
\mathbf{else}:\\
\;\;\;\;\frac{2}{\frac{{k}^{2}}{\frac{{\ell}^{2}}{t\_m \cdot {k}^{2}}}}\\
\end{array}
\end{array}
if t < 2.99999999999999983e-141Initial program 35.8%
associate-*l*35.8%
associate-/r*35.8%
sub-neg35.8%
distribute-rgt-in30.6%
unpow230.6%
times-frac20.3%
sqr-neg20.3%
times-frac30.6%
unpow230.6%
distribute-rgt-in35.8%
+-commutative35.8%
associate-+l+41.0%
Simplified41.0%
Taylor expanded in t around 0 76.3%
Taylor expanded in k around 0 66.0%
Taylor expanded in l around 0 64.7%
times-frac64.7%
Simplified64.7%
if 2.99999999999999983e-141 < t < 5.9999999999999997e41Initial program 44.9%
associate-/r*44.9%
associate-*l*44.9%
associate-*l/41.2%
associate-/l*44.9%
+-commutative44.9%
unpow244.9%
sqr-neg44.9%
distribute-frac-neg44.9%
distribute-frac-neg44.9%
unpow244.9%
associate--l+45.1%
metadata-eval45.1%
+-rgt-identity45.1%
unpow245.1%
distribute-frac-neg45.1%
distribute-frac-neg45.1%
sqr-neg45.1%
unpow245.1%
Simplified45.1%
unpow345.1%
times-frac56.0%
times-frac59.5%
pow259.5%
Applied egg-rr59.5%
Taylor expanded in k around 0 60.3%
associate-/l*63.8%
Simplified63.8%
if 5.9999999999999997e41 < t Initial program 23.6%
Taylor expanded in t around 0 76.2%
associate-/l*80.1%
Simplified80.1%
Taylor expanded in k around 0 74.6%
Final simplification66.7%
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 k 2.0) (/ (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 * (2.0 / (pow(k, 2.0) / (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 * (2.0d0 / ((k ** 2.0d0) / ((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 * (2.0 / (Math.pow(k, 2.0) / (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 * (2.0 / (math.pow(k, 2.0) / (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(2.0 / Float64((k ^ 2.0) / 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 * (2.0 / ((k ^ 2.0) / ((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[(2.0 / N[(N[Power[k, 2.0], $MachinePrecision] / N[(N[Power[l, 2.0], $MachinePrecision] / N[(t$95$m * N[Power[k, 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 \frac{2}{\frac{{k}^{2}}{\frac{{\ell}^{2}}{t\_m \cdot {k}^{2}}}}
\end{array}
Initial program 34.2%
Taylor expanded in t around 0 74.2%
associate-/l*74.5%
Simplified74.5%
Taylor expanded in k around 0 65.2%
Final simplification65.2%
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)) (/ (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) {
return t_s * (2.0 * ((pow(l, 2.0) / pow(k, 4.0)) * (cos(k) / 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)) * (cos(k) / 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)) * (Math.cos(k) / 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)) * (math.cos(k) / 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)) * Float64(cos(k) / 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)) * (cos(k) / 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] * N[(N[Cos[k], $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 \left(2 \cdot \left(\frac{{\ell}^{2}}{{k}^{4}} \cdot \frac{\cos k}{t\_m}\right)\right)
\end{array}
Initial program 34.2%
associate-*l*34.2%
associate-/r*34.2%
sub-neg34.2%
distribute-rgt-in30.6%
unpow230.6%
times-frac22.1%
sqr-neg22.1%
times-frac30.6%
unpow230.6%
distribute-rgt-in34.2%
+-commutative34.2%
associate-+l+43.1%
Simplified43.1%
Taylor expanded in t around 0 74.3%
Taylor expanded in k around 0 66.1%
Taylor expanded in l around 0 65.2%
times-frac64.5%
Simplified64.5%
Final simplification64.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) (cos k)) (* 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) * cos(k)) / (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) * cos(k)) / (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) * Math.cos(k)) / (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) * math.cos(k)) / (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) * cos(k)) / 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) * cos(k)) / (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] * N[Cos[k], $MachinePrecision]), $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} \cdot \cos k}{t\_m \cdot {k}^{4}}\right)
\end{array}
Initial program 34.2%
associate-*l*34.2%
associate-/r*34.2%
sub-neg34.2%
distribute-rgt-in30.6%
unpow230.6%
times-frac22.1%
sqr-neg22.1%
times-frac30.6%
unpow230.6%
distribute-rgt-in34.2%
+-commutative34.2%
associate-+l+43.1%
Simplified43.1%
Taylor expanded in t around 0 74.3%
Taylor expanded in k around 0 65.2%
Final simplification65.2%
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 34.2%
associate-*l*34.2%
associate-/r*34.2%
sub-neg34.2%
distribute-rgt-in30.6%
unpow230.6%
times-frac22.1%
sqr-neg22.1%
times-frac30.6%
unpow230.6%
distribute-rgt-in34.2%
+-commutative34.2%
associate-+l+43.1%
Simplified43.1%
Taylor expanded in k around 0 63.8%
Final simplification63.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 (/ (* t_m (pow k 4.0)) (pow l 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 * (2.0 / ((t_m * pow(k, 4.0)) / pow(l, 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 * (2.0d0 / ((t_m * (k ** 4.0d0)) / (l ** 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 * (2.0 / ((t_m * Math.pow(k, 4.0)) / Math.pow(l, 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 * (2.0 / ((t_m * math.pow(k, 4.0)) / math.pow(l, 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(2.0 / Float64(Float64(t_m * (k ^ 4.0)) / (l ^ 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 * (2.0 / ((t_m * (k ^ 4.0)) / (l ^ 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[(2.0 / N[(N[(t$95$m * N[Power[k, 4.0], $MachinePrecision]), $MachinePrecision] / N[Power[l, 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 \frac{2}{\frac{t\_m \cdot {k}^{4}}{{\ell}^{2}}}
\end{array}
Initial program 34.2%
Taylor expanded in t around 0 74.2%
associate-/l*74.5%
Simplified74.5%
add-sqr-sqrt28.2%
pow228.2%
Applied egg-rr28.2%
Taylor expanded in k around 0 63.8%
Final simplification63.8%
herbie shell --seed 2024034
(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))))