
(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 26 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 #s(literal 1 binary64) t)
(FPCore (t_s t_m l k)
:precision binary64
(*
t_s
(if (<= t_m 3.85e-246)
(pow (* (* l (/ (sqrt 2.0) (* k (sin k)))) (sqrt (/ (cos k) t_m))) 2.0)
(pow
(*
(/ (/ (cbrt (/ 2.0 (tan k))) (cbrt (sin k))) t_m)
(pow (cbrt (/ l (hypot 1.0 (hypot 1.0 (/ k t_m))))) 2.0))
3.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.85e-246) {
tmp = pow(((l * (sqrt(2.0) / (k * sin(k)))) * sqrt((cos(k) / t_m))), 2.0);
} else {
tmp = pow((((cbrt((2.0 / tan(k))) / cbrt(sin(k))) / t_m) * pow(cbrt((l / hypot(1.0, hypot(1.0, (k / t_m))))), 2.0)), 3.0);
}
return t_s * tmp;
}
t\_m = Math.abs(t);
t\_s = Math.copySign(1.0, t);
public static double code(double t_s, double t_m, double l, double k) {
double tmp;
if (t_m <= 3.85e-246) {
tmp = Math.pow(((l * (Math.sqrt(2.0) / (k * Math.sin(k)))) * Math.sqrt((Math.cos(k) / t_m))), 2.0);
} else {
tmp = Math.pow((((Math.cbrt((2.0 / Math.tan(k))) / Math.cbrt(Math.sin(k))) / t_m) * Math.pow(Math.cbrt((l / Math.hypot(1.0, Math.hypot(1.0, (k / t_m))))), 2.0)), 3.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.85e-246) tmp = Float64(Float64(l * Float64(sqrt(2.0) / Float64(k * sin(k)))) * sqrt(Float64(cos(k) / t_m))) ^ 2.0; else tmp = Float64(Float64(Float64(cbrt(Float64(2.0 / tan(k))) / cbrt(sin(k))) / t_m) * (cbrt(Float64(l / hypot(1.0, hypot(1.0, Float64(k / t_m))))) ^ 2.0)) ^ 3.0; end return Float64(t_s * tmp) end
t\_m = N[Abs[t], $MachinePrecision]
t\_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[t]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
code[t$95$s_, t$95$m_, l_, k_] := N[(t$95$s * If[LessEqual[t$95$m, 3.85e-246], N[Power[N[(N[(l * N[(N[Sqrt[2.0], $MachinePrecision] / N[(k * N[Sin[k], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[Sqrt[N[(N[Cos[k], $MachinePrecision] / t$95$m), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], 2.0], $MachinePrecision], N[Power[N[(N[(N[(N[Power[N[(2.0 / N[Tan[k], $MachinePrecision]), $MachinePrecision], 1/3], $MachinePrecision] / N[Power[N[Sin[k], $MachinePrecision], 1/3], $MachinePrecision]), $MachinePrecision] / t$95$m), $MachinePrecision] * N[Power[N[Power[N[(l / N[Sqrt[1.0 ^ 2 + N[Sqrt[1.0 ^ 2 + N[(k / t$95$m), $MachinePrecision] ^ 2], $MachinePrecision] ^ 2], $MachinePrecision]), $MachinePrecision], 1/3], $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision], 3.0], $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.85 \cdot 10^{-246}:\\
\;\;\;\;{\left(\left(\ell \cdot \frac{\sqrt{2}}{k \cdot \sin k}\right) \cdot \sqrt{\frac{\cos k}{t\_m}}\right)}^{2}\\
\mathbf{else}:\\
\;\;\;\;{\left(\frac{\frac{\sqrt[3]{\frac{2}{\tan k}}}{\sqrt[3]{\sin k}}}{t\_m} \cdot {\left(\sqrt[3]{\frac{\ell}{\mathsf{hypot}\left(1, \mathsf{hypot}\left(1, \frac{k}{t\_m}\right)\right)}}\right)}^{2}\right)}^{3}\\
\end{array}
\end{array}
if t < 3.8499999999999998e-246Initial program 64.9%
Simplified65.3%
add-sqr-sqrt35.9%
sqrt-div34.5%
sqrt-div34.5%
Applied egg-rr29.7%
unpow229.7%
Simplified33.9%
Taylor expanded in k around inf 29.3%
associate-/l*29.3%
Simplified29.3%
if 3.8499999999999998e-246 < t Initial program 51.4%
Simplified50.5%
associate-*r*54.7%
add-sqr-sqrt54.6%
times-frac54.7%
div-inv54.7%
frac-times54.7%
metadata-eval54.7%
Applied egg-rr54.7%
Simplified63.2%
add-cube-cbrt63.0%
pow363.0%
Applied egg-rr81.9%
cbrt-div96.6%
Applied egg-rr96.6%
t\_m = (fabs.f64 t)
t\_s = (copysign.f64 #s(literal 1 binary64) t)
(FPCore (t_s t_m l k)
:precision binary64
(let* ((t_2 (hypot 1.0 (hypot 1.0 (/ k t_m)))) (t_3 (/ 2.0 (tan k))))
(*
t_s
(if (<= t_m 1.7e-235)
(pow (* (* l (/ (sqrt 2.0) (* k (sin k)))) (sqrt (/ (cos k) t_m))) 2.0)
(if (<= t_m 6.2e-115)
(pow
(* (/ (cbrt (/ t_3 (sin k))) t_m) (pow (cbrt (/ (* t_m l) k)) 2.0))
3.0)
(if (<= t_m 2.7e+85)
(* (/ l t_2) (/ (* l t_3) (* t_2 (* (sin k) (pow t_m 3.0)))))
(pow
(*
(/ (/ (cbrt t_3) (cbrt (sin k))) t_m)
(pow (cbrt (* l (sqrt 0.5))) 2.0))
3.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 = hypot(1.0, hypot(1.0, (k / t_m)));
double t_3 = 2.0 / tan(k);
double tmp;
if (t_m <= 1.7e-235) {
tmp = pow(((l * (sqrt(2.0) / (k * sin(k)))) * sqrt((cos(k) / t_m))), 2.0);
} else if (t_m <= 6.2e-115) {
tmp = pow(((cbrt((t_3 / sin(k))) / t_m) * pow(cbrt(((t_m * l) / k)), 2.0)), 3.0);
} else if (t_m <= 2.7e+85) {
tmp = (l / t_2) * ((l * t_3) / (t_2 * (sin(k) * pow(t_m, 3.0))));
} else {
tmp = pow((((cbrt(t_3) / cbrt(sin(k))) / t_m) * pow(cbrt((l * sqrt(0.5))), 2.0)), 3.0);
}
return t_s * tmp;
}
t\_m = Math.abs(t);
t\_s = Math.copySign(1.0, t);
public static double code(double t_s, double t_m, double l, double k) {
double t_2 = Math.hypot(1.0, Math.hypot(1.0, (k / t_m)));
double t_3 = 2.0 / Math.tan(k);
double tmp;
if (t_m <= 1.7e-235) {
tmp = Math.pow(((l * (Math.sqrt(2.0) / (k * Math.sin(k)))) * Math.sqrt((Math.cos(k) / t_m))), 2.0);
} else if (t_m <= 6.2e-115) {
tmp = Math.pow(((Math.cbrt((t_3 / Math.sin(k))) / t_m) * Math.pow(Math.cbrt(((t_m * l) / k)), 2.0)), 3.0);
} else if (t_m <= 2.7e+85) {
tmp = (l / t_2) * ((l * t_3) / (t_2 * (Math.sin(k) * Math.pow(t_m, 3.0))));
} else {
tmp = Math.pow((((Math.cbrt(t_3) / Math.cbrt(Math.sin(k))) / t_m) * Math.pow(Math.cbrt((l * Math.sqrt(0.5))), 2.0)), 3.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 = hypot(1.0, hypot(1.0, Float64(k / t_m))) t_3 = Float64(2.0 / tan(k)) tmp = 0.0 if (t_m <= 1.7e-235) tmp = Float64(Float64(l * Float64(sqrt(2.0) / Float64(k * sin(k)))) * sqrt(Float64(cos(k) / t_m))) ^ 2.0; elseif (t_m <= 6.2e-115) tmp = Float64(Float64(cbrt(Float64(t_3 / sin(k))) / t_m) * (cbrt(Float64(Float64(t_m * l) / k)) ^ 2.0)) ^ 3.0; elseif (t_m <= 2.7e+85) tmp = Float64(Float64(l / t_2) * Float64(Float64(l * t_3) / Float64(t_2 * Float64(sin(k) * (t_m ^ 3.0))))); else tmp = Float64(Float64(Float64(cbrt(t_3) / cbrt(sin(k))) / t_m) * (cbrt(Float64(l * sqrt(0.5))) ^ 2.0)) ^ 3.0; end return Float64(t_s * tmp) end
t\_m = N[Abs[t], $MachinePrecision]
t\_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[t]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
code[t$95$s_, t$95$m_, l_, k_] := Block[{t$95$2 = N[Sqrt[1.0 ^ 2 + N[Sqrt[1.0 ^ 2 + N[(k / t$95$m), $MachinePrecision] ^ 2], $MachinePrecision] ^ 2], $MachinePrecision]}, Block[{t$95$3 = N[(2.0 / N[Tan[k], $MachinePrecision]), $MachinePrecision]}, N[(t$95$s * If[LessEqual[t$95$m, 1.7e-235], N[Power[N[(N[(l * N[(N[Sqrt[2.0], $MachinePrecision] / N[(k * N[Sin[k], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[Sqrt[N[(N[Cos[k], $MachinePrecision] / t$95$m), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], 2.0], $MachinePrecision], If[LessEqual[t$95$m, 6.2e-115], N[Power[N[(N[(N[Power[N[(t$95$3 / N[Sin[k], $MachinePrecision]), $MachinePrecision], 1/3], $MachinePrecision] / t$95$m), $MachinePrecision] * N[Power[N[Power[N[(N[(t$95$m * l), $MachinePrecision] / k), $MachinePrecision], 1/3], $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision], 3.0], $MachinePrecision], If[LessEqual[t$95$m, 2.7e+85], N[(N[(l / t$95$2), $MachinePrecision] * N[(N[(l * t$95$3), $MachinePrecision] / N[(t$95$2 * N[(N[Sin[k], $MachinePrecision] * N[Power[t$95$m, 3.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[Power[N[(N[(N[(N[Power[t$95$3, 1/3], $MachinePrecision] / N[Power[N[Sin[k], $MachinePrecision], 1/3], $MachinePrecision]), $MachinePrecision] / t$95$m), $MachinePrecision] * N[Power[N[Power[N[(l * N[Sqrt[0.5], $MachinePrecision]), $MachinePrecision], 1/3], $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision], 3.0], $MachinePrecision]]]]), $MachinePrecision]]]
\begin{array}{l}
t\_m = \left|t\right|
\\
t\_s = \mathsf{copysign}\left(1, t\right)
\\
\begin{array}{l}
t_2 := \mathsf{hypot}\left(1, \mathsf{hypot}\left(1, \frac{k}{t\_m}\right)\right)\\
t_3 := \frac{2}{\tan k}\\
t\_s \cdot \begin{array}{l}
\mathbf{if}\;t\_m \leq 1.7 \cdot 10^{-235}:\\
\;\;\;\;{\left(\left(\ell \cdot \frac{\sqrt{2}}{k \cdot \sin k}\right) \cdot \sqrt{\frac{\cos k}{t\_m}}\right)}^{2}\\
\mathbf{elif}\;t\_m \leq 6.2 \cdot 10^{-115}:\\
\;\;\;\;{\left(\frac{\sqrt[3]{\frac{t\_3}{\sin k}}}{t\_m} \cdot {\left(\sqrt[3]{\frac{t\_m \cdot \ell}{k}}\right)}^{2}\right)}^{3}\\
\mathbf{elif}\;t\_m \leq 2.7 \cdot 10^{+85}:\\
\;\;\;\;\frac{\ell}{t\_2} \cdot \frac{\ell \cdot t\_3}{t\_2 \cdot \left(\sin k \cdot {t\_m}^{3}\right)}\\
\mathbf{else}:\\
\;\;\;\;{\left(\frac{\frac{\sqrt[3]{t\_3}}{\sqrt[3]{\sin k}}}{t\_m} \cdot {\left(\sqrt[3]{\ell \cdot \sqrt{0.5}}\right)}^{2}\right)}^{3}\\
\end{array}
\end{array}
\end{array}
if t < 1.69999999999999986e-235Initial program 64.9%
Simplified65.3%
add-sqr-sqrt35.9%
sqrt-div34.5%
sqrt-div34.5%
Applied egg-rr29.7%
unpow229.7%
Simplified33.9%
Taylor expanded in k around inf 29.3%
associate-/l*29.3%
Simplified29.3%
if 1.69999999999999986e-235 < t < 6.20000000000000013e-115Initial program 38.1%
Simplified38.1%
associate-*r*38.1%
add-sqr-sqrt38.1%
times-frac38.1%
div-inv38.1%
frac-times38.1%
metadata-eval38.1%
Applied egg-rr38.1%
Simplified52.8%
add-cube-cbrt52.8%
pow352.8%
Applied egg-rr88.2%
Taylor expanded in k around inf 88.2%
if 6.20000000000000013e-115 < t < 2.69999999999999983e85Initial program 65.5%
Simplified62.7%
associate-*r*68.3%
add-sqr-sqrt68.1%
times-frac68.3%
div-inv68.3%
frac-times68.3%
metadata-eval68.3%
Applied egg-rr68.3%
Simplified85.2%
frac-times90.1%
Applied egg-rr90.1%
if 2.69999999999999983e85 < t Initial program 46.3%
Simplified46.3%
associate-*r*51.1%
add-sqr-sqrt51.1%
times-frac51.1%
div-inv51.1%
frac-times51.1%
metadata-eval51.1%
Applied egg-rr51.1%
Simplified51.1%
add-cube-cbrt51.1%
pow351.1%
Applied egg-rr79.5%
cbrt-div98.7%
Applied egg-rr98.7%
Taylor expanded in k around 0 93.4%
Final simplification57.4%
t\_m = (fabs.f64 t)
t\_s = (copysign.f64 #s(literal 1 binary64) t)
(FPCore (t_s t_m l k)
:precision binary64
(let* ((t_2 (/ 2.0 (tan k))))
(*
t_s
(if (<= k 1.05e-154)
(pow
(*
(/ (/ (cbrt t_2) (cbrt (sin k))) t_m)
(pow (* (pow 0.5 0.16666666666666666) (cbrt l)) 2.0))
3.0)
(pow
(*
(pow (cbrt (/ l (hypot 1.0 (hypot 1.0 (/ k t_m))))) 2.0)
(/ (cbrt (/ t_2 (sin k))) t_m))
3.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 = 2.0 / tan(k);
double tmp;
if (k <= 1.05e-154) {
tmp = pow((((cbrt(t_2) / cbrt(sin(k))) / t_m) * pow((pow(0.5, 0.16666666666666666) * cbrt(l)), 2.0)), 3.0);
} else {
tmp = pow((pow(cbrt((l / hypot(1.0, hypot(1.0, (k / t_m))))), 2.0) * (cbrt((t_2 / sin(k))) / t_m)), 3.0);
}
return t_s * tmp;
}
t\_m = Math.abs(t);
t\_s = Math.copySign(1.0, t);
public static double code(double t_s, double t_m, double l, double k) {
double t_2 = 2.0 / Math.tan(k);
double tmp;
if (k <= 1.05e-154) {
tmp = Math.pow((((Math.cbrt(t_2) / Math.cbrt(Math.sin(k))) / t_m) * Math.pow((Math.pow(0.5, 0.16666666666666666) * Math.cbrt(l)), 2.0)), 3.0);
} else {
tmp = Math.pow((Math.pow(Math.cbrt((l / Math.hypot(1.0, Math.hypot(1.0, (k / t_m))))), 2.0) * (Math.cbrt((t_2 / Math.sin(k))) / t_m)), 3.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(2.0 / tan(k)) tmp = 0.0 if (k <= 1.05e-154) tmp = Float64(Float64(Float64(cbrt(t_2) / cbrt(sin(k))) / t_m) * (Float64((0.5 ^ 0.16666666666666666) * cbrt(l)) ^ 2.0)) ^ 3.0; else tmp = Float64((cbrt(Float64(l / hypot(1.0, hypot(1.0, Float64(k / t_m))))) ^ 2.0) * Float64(cbrt(Float64(t_2 / sin(k))) / t_m)) ^ 3.0; end return Float64(t_s * tmp) end
t\_m = N[Abs[t], $MachinePrecision]
t\_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[t]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
code[t$95$s_, t$95$m_, l_, k_] := Block[{t$95$2 = N[(2.0 / N[Tan[k], $MachinePrecision]), $MachinePrecision]}, N[(t$95$s * If[LessEqual[k, 1.05e-154], N[Power[N[(N[(N[(N[Power[t$95$2, 1/3], $MachinePrecision] / N[Power[N[Sin[k], $MachinePrecision], 1/3], $MachinePrecision]), $MachinePrecision] / t$95$m), $MachinePrecision] * N[Power[N[(N[Power[0.5, 0.16666666666666666], $MachinePrecision] * N[Power[l, 1/3], $MachinePrecision]), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision], 3.0], $MachinePrecision], N[Power[N[(N[Power[N[Power[N[(l / N[Sqrt[1.0 ^ 2 + N[Sqrt[1.0 ^ 2 + N[(k / t$95$m), $MachinePrecision] ^ 2], $MachinePrecision] ^ 2], $MachinePrecision]), $MachinePrecision], 1/3], $MachinePrecision], 2.0], $MachinePrecision] * N[(N[Power[N[(t$95$2 / N[Sin[k], $MachinePrecision]), $MachinePrecision], 1/3], $MachinePrecision] / t$95$m), $MachinePrecision]), $MachinePrecision], 3.0], $MachinePrecision]]), $MachinePrecision]]
\begin{array}{l}
t\_m = \left|t\right|
\\
t\_s = \mathsf{copysign}\left(1, t\right)
\\
\begin{array}{l}
t_2 := \frac{2}{\tan k}\\
t\_s \cdot \begin{array}{l}
\mathbf{if}\;k \leq 1.05 \cdot 10^{-154}:\\
\;\;\;\;{\left(\frac{\frac{\sqrt[3]{t\_2}}{\sqrt[3]{\sin k}}}{t\_m} \cdot {\left({0.5}^{0.16666666666666666} \cdot \sqrt[3]{\ell}\right)}^{2}\right)}^{3}\\
\mathbf{else}:\\
\;\;\;\;{\left({\left(\sqrt[3]{\frac{\ell}{\mathsf{hypot}\left(1, \mathsf{hypot}\left(1, \frac{k}{t\_m}\right)\right)}}\right)}^{2} \cdot \frac{\sqrt[3]{\frac{t\_2}{\sin k}}}{t\_m}\right)}^{3}\\
\end{array}
\end{array}
\end{array}
if k < 1.04999999999999992e-154Initial program 58.4%
Simplified59.5%
associate-*r*63.8%
add-sqr-sqrt63.7%
times-frac63.8%
div-inv63.8%
frac-times63.8%
metadata-eval63.8%
Applied egg-rr63.8%
Simplified67.6%
add-cube-cbrt67.5%
pow367.5%
Applied egg-rr76.5%
cbrt-div94.3%
Applied egg-rr94.3%
Taylor expanded in k around 0 82.5%
if 1.04999999999999992e-154 < k Initial program 59.4%
Simplified57.1%
associate-*r*60.6%
add-sqr-sqrt60.5%
times-frac60.5%
div-inv60.5%
frac-times60.5%
metadata-eval60.5%
Applied egg-rr60.5%
Simplified73.4%
add-cube-cbrt73.2%
pow373.2%
Applied egg-rr94.2%
Final simplification87.0%
t\_m = (fabs.f64 t)
t\_s = (copysign.f64 #s(literal 1 binary64) t)
(FPCore (t_s t_m l k)
:precision binary64
(let* ((t_2 (pow (sin k) 2.0)))
(*
t_s
(if (<= k 2.8e-155)
(/
2.0
(*
(* (tan k) (pow (* (/ (pow t_m 1.5) l) (sqrt (sin k))) 2.0))
(+ 1.0 (+ 1.0 (pow (/ k t_m) 2.0)))))
(if (<= k 7.8e+24)
(/
2.0
(pow
(* (/ t_m (pow (cbrt l) 2.0)) (cbrt (* 2.0 (/ t_2 (cos k)))))
3.0))
(if (<= k 2.45e+135)
(* 2.0 (* (pow l 2.0) (/ (cos k) (* t_2 (* t_m (pow k 2.0))))))
(pow
(*
(/ (cbrt (/ (/ 2.0 (tan k)) (sin k))) t_m)
(pow (cbrt (/ (* t_m l) k)) 2.0))
3.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(sin(k), 2.0);
double tmp;
if (k <= 2.8e-155) {
tmp = 2.0 / ((tan(k) * pow(((pow(t_m, 1.5) / l) * sqrt(sin(k))), 2.0)) * (1.0 + (1.0 + pow((k / t_m), 2.0))));
} else if (k <= 7.8e+24) {
tmp = 2.0 / pow(((t_m / pow(cbrt(l), 2.0)) * cbrt((2.0 * (t_2 / cos(k))))), 3.0);
} else if (k <= 2.45e+135) {
tmp = 2.0 * (pow(l, 2.0) * (cos(k) / (t_2 * (t_m * pow(k, 2.0)))));
} else {
tmp = pow(((cbrt(((2.0 / tan(k)) / sin(k))) / t_m) * pow(cbrt(((t_m * l) / k)), 2.0)), 3.0);
}
return t_s * tmp;
}
t\_m = Math.abs(t);
t\_s = Math.copySign(1.0, t);
public static double code(double t_s, double t_m, double l, double k) {
double t_2 = Math.pow(Math.sin(k), 2.0);
double tmp;
if (k <= 2.8e-155) {
tmp = 2.0 / ((Math.tan(k) * Math.pow(((Math.pow(t_m, 1.5) / l) * Math.sqrt(Math.sin(k))), 2.0)) * (1.0 + (1.0 + Math.pow((k / t_m), 2.0))));
} else if (k <= 7.8e+24) {
tmp = 2.0 / Math.pow(((t_m / Math.pow(Math.cbrt(l), 2.0)) * Math.cbrt((2.0 * (t_2 / Math.cos(k))))), 3.0);
} else if (k <= 2.45e+135) {
tmp = 2.0 * (Math.pow(l, 2.0) * (Math.cos(k) / (t_2 * (t_m * Math.pow(k, 2.0)))));
} else {
tmp = Math.pow(((Math.cbrt(((2.0 / Math.tan(k)) / Math.sin(k))) / t_m) * Math.pow(Math.cbrt(((t_m * l) / k)), 2.0)), 3.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 = sin(k) ^ 2.0 tmp = 0.0 if (k <= 2.8e-155) tmp = Float64(2.0 / Float64(Float64(tan(k) * (Float64(Float64((t_m ^ 1.5) / l) * sqrt(sin(k))) ^ 2.0)) * Float64(1.0 + Float64(1.0 + (Float64(k / t_m) ^ 2.0))))); elseif (k <= 7.8e+24) tmp = Float64(2.0 / (Float64(Float64(t_m / (cbrt(l) ^ 2.0)) * cbrt(Float64(2.0 * Float64(t_2 / cos(k))))) ^ 3.0)); elseif (k <= 2.45e+135) tmp = Float64(2.0 * Float64((l ^ 2.0) * Float64(cos(k) / Float64(t_2 * Float64(t_m * (k ^ 2.0)))))); else tmp = Float64(Float64(cbrt(Float64(Float64(2.0 / tan(k)) / sin(k))) / t_m) * (cbrt(Float64(Float64(t_m * l) / k)) ^ 2.0)) ^ 3.0; end return Float64(t_s * tmp) end
t\_m = N[Abs[t], $MachinePrecision]
t\_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[t]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
code[t$95$s_, t$95$m_, l_, k_] := Block[{t$95$2 = N[Power[N[Sin[k], $MachinePrecision], 2.0], $MachinePrecision]}, N[(t$95$s * If[LessEqual[k, 2.8e-155], N[(2.0 / N[(N[(N[Tan[k], $MachinePrecision] * N[Power[N[(N[(N[Power[t$95$m, 1.5], $MachinePrecision] / l), $MachinePrecision] * N[Sqrt[N[Sin[k], $MachinePrecision]], $MachinePrecision]), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision] * N[(1.0 + N[(1.0 + N[Power[N[(k / t$95$m), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, 7.8e+24], N[(2.0 / N[Power[N[(N[(t$95$m / N[Power[N[Power[l, 1/3], $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision] * N[Power[N[(2.0 * N[(t$95$2 / N[Cos[k], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1/3], $MachinePrecision]), $MachinePrecision], 3.0], $MachinePrecision]), $MachinePrecision], If[LessEqual[k, 2.45e+135], N[(2.0 * N[(N[Power[l, 2.0], $MachinePrecision] * N[(N[Cos[k], $MachinePrecision] / N[(t$95$2 * N[(t$95$m * N[Power[k, 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[Power[N[(N[(N[Power[N[(N[(2.0 / N[Tan[k], $MachinePrecision]), $MachinePrecision] / N[Sin[k], $MachinePrecision]), $MachinePrecision], 1/3], $MachinePrecision] / t$95$m), $MachinePrecision] * N[Power[N[Power[N[(N[(t$95$m * l), $MachinePrecision] / k), $MachinePrecision], 1/3], $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision], 3.0], $MachinePrecision]]]]), $MachinePrecision]]
\begin{array}{l}
t\_m = \left|t\right|
\\
t\_s = \mathsf{copysign}\left(1, t\right)
\\
\begin{array}{l}
t_2 := {\sin k}^{2}\\
t\_s \cdot \begin{array}{l}
\mathbf{if}\;k \leq 2.8 \cdot 10^{-155}:\\
\;\;\;\;\frac{2}{\left(\tan k \cdot {\left(\frac{{t\_m}^{1.5}}{\ell} \cdot \sqrt{\sin k}\right)}^{2}\right) \cdot \left(1 + \left(1 + {\left(\frac{k}{t\_m}\right)}^{2}\right)\right)}\\
\mathbf{elif}\;k \leq 7.8 \cdot 10^{+24}:\\
\;\;\;\;\frac{2}{{\left(\frac{t\_m}{{\left(\sqrt[3]{\ell}\right)}^{2}} \cdot \sqrt[3]{2 \cdot \frac{t\_2}{\cos k}}\right)}^{3}}\\
\mathbf{elif}\;k \leq 2.45 \cdot 10^{+135}:\\
\;\;\;\;2 \cdot \left({\ell}^{2} \cdot \frac{\cos k}{t\_2 \cdot \left(t\_m \cdot {k}^{2}\right)}\right)\\
\mathbf{else}:\\
\;\;\;\;{\left(\frac{\sqrt[3]{\frac{\frac{2}{\tan k}}{\sin k}}}{t\_m} \cdot {\left(\sqrt[3]{\frac{t\_m \cdot \ell}{k}}\right)}^{2}\right)}^{3}\\
\end{array}
\end{array}
\end{array}
if k < 2.8e-155Initial program 58.4%
add-sqr-sqrt28.9%
pow228.9%
associate-/r*32.2%
*-commutative32.2%
sqrt-prod9.2%
associate-/r*7.8%
sqrt-div7.8%
sqrt-pow110.4%
metadata-eval10.4%
sqrt-prod5.7%
add-sqr-sqrt14.1%
Applied egg-rr14.1%
*-commutative14.1%
Simplified14.1%
if 2.8e-155 < k < 7.7999999999999995e24Initial program 55.4%
Simplified58.2%
Taylor expanded in t around inf 74.4%
add-cube-cbrt74.2%
pow374.1%
cbrt-prod74.1%
associate-/l/72.1%
pow272.1%
cbrt-div72.1%
unpow372.1%
add-cbrt-cube81.5%
pow281.5%
cbrt-unprod89.8%
pow289.8%
Applied egg-rr89.8%
if 7.7999999999999995e24 < k < 2.4500000000000001e135Initial program 76.7%
Simplified76.6%
associate-*r*82.8%
add-sqr-sqrt82.8%
times-frac82.7%
div-inv82.7%
frac-times82.7%
metadata-eval82.7%
Applied egg-rr82.7%
Simplified83.0%
Taylor expanded in k around inf 82.3%
associate-/l*82.3%
associate-*r*82.3%
Simplified82.3%
if 2.4500000000000001e135 < k Initial program 56.3%
Simplified56.3%
associate-*r*56.9%
add-sqr-sqrt56.9%
times-frac57.0%
div-inv57.0%
frac-times57.0%
metadata-eval57.0%
Applied egg-rr57.0%
Simplified71.0%
add-cube-cbrt70.8%
pow370.8%
Applied egg-rr92.2%
Taylor expanded in k around inf 84.7%
Final simplification42.1%
t\_m = (fabs.f64 t)
t\_s = (copysign.f64 #s(literal 1 binary64) t)
(FPCore (t_s t_m l k)
:precision binary64
(let* ((t_2 (/ (cbrt (/ (/ 2.0 (tan k)) (sin k))) t_m)))
(*
t_s
(if (<= k 1.05e-154)
(/
2.0
(*
(* (tan k) (pow (* (/ (pow t_m 1.5) l) (sqrt (sin k))) 2.0))
(+ 1.0 (+ 1.0 (pow (/ k t_m) 2.0)))))
(if (<= k 1.3e+24)
(pow (* t_2 (pow (cbrt (* l (sqrt 0.5))) 2.0)) 3.0)
(if (<= k 1.5e+138)
(*
2.0
(*
(pow l 2.0)
(/ (cos k) (* (pow (sin k) 2.0) (* t_m (pow k 2.0))))))
(pow (* t_2 (pow (cbrt (/ (* t_m l) k)) 2.0)) 3.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 = cbrt(((2.0 / tan(k)) / sin(k))) / t_m;
double tmp;
if (k <= 1.05e-154) {
tmp = 2.0 / ((tan(k) * pow(((pow(t_m, 1.5) / l) * sqrt(sin(k))), 2.0)) * (1.0 + (1.0 + pow((k / t_m), 2.0))));
} else if (k <= 1.3e+24) {
tmp = pow((t_2 * pow(cbrt((l * sqrt(0.5))), 2.0)), 3.0);
} else if (k <= 1.5e+138) {
tmp = 2.0 * (pow(l, 2.0) * (cos(k) / (pow(sin(k), 2.0) * (t_m * pow(k, 2.0)))));
} else {
tmp = pow((t_2 * pow(cbrt(((t_m * l) / k)), 2.0)), 3.0);
}
return t_s * tmp;
}
t\_m = Math.abs(t);
t\_s = Math.copySign(1.0, t);
public static double code(double t_s, double t_m, double l, double k) {
double t_2 = Math.cbrt(((2.0 / Math.tan(k)) / Math.sin(k))) / t_m;
double tmp;
if (k <= 1.05e-154) {
tmp = 2.0 / ((Math.tan(k) * Math.pow(((Math.pow(t_m, 1.5) / l) * Math.sqrt(Math.sin(k))), 2.0)) * (1.0 + (1.0 + Math.pow((k / t_m), 2.0))));
} else if (k <= 1.3e+24) {
tmp = Math.pow((t_2 * Math.pow(Math.cbrt((l * Math.sqrt(0.5))), 2.0)), 3.0);
} else if (k <= 1.5e+138) {
tmp = 2.0 * (Math.pow(l, 2.0) * (Math.cos(k) / (Math.pow(Math.sin(k), 2.0) * (t_m * Math.pow(k, 2.0)))));
} else {
tmp = Math.pow((t_2 * Math.pow(Math.cbrt(((t_m * l) / k)), 2.0)), 3.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(cbrt(Float64(Float64(2.0 / tan(k)) / sin(k))) / t_m) tmp = 0.0 if (k <= 1.05e-154) tmp = Float64(2.0 / Float64(Float64(tan(k) * (Float64(Float64((t_m ^ 1.5) / l) * sqrt(sin(k))) ^ 2.0)) * Float64(1.0 + Float64(1.0 + (Float64(k / t_m) ^ 2.0))))); elseif (k <= 1.3e+24) tmp = Float64(t_2 * (cbrt(Float64(l * sqrt(0.5))) ^ 2.0)) ^ 3.0; elseif (k <= 1.5e+138) tmp = Float64(2.0 * Float64((l ^ 2.0) * Float64(cos(k) / Float64((sin(k) ^ 2.0) * Float64(t_m * (k ^ 2.0)))))); else tmp = Float64(t_2 * (cbrt(Float64(Float64(t_m * l) / k)) ^ 2.0)) ^ 3.0; end return Float64(t_s * tmp) end
t\_m = N[Abs[t], $MachinePrecision]
t\_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[t]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
code[t$95$s_, t$95$m_, l_, k_] := Block[{t$95$2 = N[(N[Power[N[(N[(2.0 / N[Tan[k], $MachinePrecision]), $MachinePrecision] / N[Sin[k], $MachinePrecision]), $MachinePrecision], 1/3], $MachinePrecision] / t$95$m), $MachinePrecision]}, N[(t$95$s * If[LessEqual[k, 1.05e-154], N[(2.0 / N[(N[(N[Tan[k], $MachinePrecision] * N[Power[N[(N[(N[Power[t$95$m, 1.5], $MachinePrecision] / l), $MachinePrecision] * N[Sqrt[N[Sin[k], $MachinePrecision]], $MachinePrecision]), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision] * N[(1.0 + N[(1.0 + N[Power[N[(k / t$95$m), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, 1.3e+24], N[Power[N[(t$95$2 * N[Power[N[Power[N[(l * N[Sqrt[0.5], $MachinePrecision]), $MachinePrecision], 1/3], $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision], 3.0], $MachinePrecision], If[LessEqual[k, 1.5e+138], N[(2.0 * N[(N[Power[l, 2.0], $MachinePrecision] * N[(N[Cos[k], $MachinePrecision] / N[(N[Power[N[Sin[k], $MachinePrecision], 2.0], $MachinePrecision] * N[(t$95$m * N[Power[k, 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[Power[N[(t$95$2 * N[Power[N[Power[N[(N[(t$95$m * l), $MachinePrecision] / k), $MachinePrecision], 1/3], $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision], 3.0], $MachinePrecision]]]]), $MachinePrecision]]
\begin{array}{l}
t\_m = \left|t\right|
\\
t\_s = \mathsf{copysign}\left(1, t\right)
\\
\begin{array}{l}
t_2 := \frac{\sqrt[3]{\frac{\frac{2}{\tan k}}{\sin k}}}{t\_m}\\
t\_s \cdot \begin{array}{l}
\mathbf{if}\;k \leq 1.05 \cdot 10^{-154}:\\
\;\;\;\;\frac{2}{\left(\tan k \cdot {\left(\frac{{t\_m}^{1.5}}{\ell} \cdot \sqrt{\sin k}\right)}^{2}\right) \cdot \left(1 + \left(1 + {\left(\frac{k}{t\_m}\right)}^{2}\right)\right)}\\
\mathbf{elif}\;k \leq 1.3 \cdot 10^{+24}:\\
\;\;\;\;{\left(t\_2 \cdot {\left(\sqrt[3]{\ell \cdot \sqrt{0.5}}\right)}^{2}\right)}^{3}\\
\mathbf{elif}\;k \leq 1.5 \cdot 10^{+138}:\\
\;\;\;\;2 \cdot \left({\ell}^{2} \cdot \frac{\cos k}{{\sin k}^{2} \cdot \left(t\_m \cdot {k}^{2}\right)}\right)\\
\mathbf{else}:\\
\;\;\;\;{\left(t\_2 \cdot {\left(\sqrt[3]{\frac{t\_m \cdot \ell}{k}}\right)}^{2}\right)}^{3}\\
\end{array}
\end{array}
\end{array}
if k < 1.04999999999999992e-154Initial program 58.4%
add-sqr-sqrt28.9%
pow228.9%
associate-/r*32.2%
*-commutative32.2%
sqrt-prod9.2%
associate-/r*7.8%
sqrt-div7.8%
sqrt-pow110.4%
metadata-eval10.4%
sqrt-prod5.7%
add-sqr-sqrt14.1%
Applied egg-rr14.1%
*-commutative14.1%
Simplified14.1%
if 1.04999999999999992e-154 < k < 1.2999999999999999e24Initial program 55.4%
Simplified49.8%
associate-*r*55.0%
add-sqr-sqrt54.7%
times-frac54.8%
div-inv54.8%
frac-times54.8%
metadata-eval54.8%
Applied egg-rr54.8%
Simplified71.9%
add-cube-cbrt71.7%
pow371.7%
Applied egg-rr94.3%
Taylor expanded in k around 0 89.6%
if 1.2999999999999999e24 < k < 1.50000000000000005e138Initial program 76.7%
Simplified76.6%
associate-*r*82.8%
add-sqr-sqrt82.8%
times-frac82.7%
div-inv82.7%
frac-times82.7%
metadata-eval82.7%
Applied egg-rr82.7%
Simplified83.0%
Taylor expanded in k around inf 82.3%
associate-/l*82.3%
associate-*r*82.3%
Simplified82.3%
if 1.50000000000000005e138 < k Initial program 56.3%
Simplified56.3%
associate-*r*56.9%
add-sqr-sqrt56.9%
times-frac57.0%
div-inv57.0%
frac-times57.0%
metadata-eval57.0%
Applied egg-rr57.0%
Simplified71.0%
add-cube-cbrt70.8%
pow370.8%
Applied egg-rr92.2%
Taylor expanded in k around inf 84.7%
Final simplification42.0%
t\_m = (fabs.f64 t)
t\_s = (copysign.f64 #s(literal 1 binary64) t)
(FPCore (t_s t_m l k)
:precision binary64
(*
t_s
(if (<= k 5.2e-157)
(/
2.0
(*
(* (tan k) (pow (* (/ (pow t_m 1.5) l) (sqrt (sin k))) 2.0))
(+ 1.0 (+ 1.0 (pow (/ k t_m) 2.0)))))
(if (<= k 1.95e-16)
(/
2.0
(pow (* (/ t_m (pow (cbrt l) 2.0)) (cbrt (* 2.0 (pow k 2.0)))) 3.0))
(if (<= k 4.6e+139)
(/
2.0
(/ (* (pow k 2.0) (* t_m (/ (pow (sin k) 2.0) (cos k)))) (pow l 2.0)))
(pow
(*
(/ (cbrt (/ (/ 2.0 (tan k)) (sin k))) t_m)
(pow (cbrt (/ (* t_m l) k)) 2.0))
3.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 (k <= 5.2e-157) {
tmp = 2.0 / ((tan(k) * pow(((pow(t_m, 1.5) / l) * sqrt(sin(k))), 2.0)) * (1.0 + (1.0 + pow((k / t_m), 2.0))));
} else if (k <= 1.95e-16) {
tmp = 2.0 / pow(((t_m / pow(cbrt(l), 2.0)) * cbrt((2.0 * pow(k, 2.0)))), 3.0);
} else if (k <= 4.6e+139) {
tmp = 2.0 / ((pow(k, 2.0) * (t_m * (pow(sin(k), 2.0) / cos(k)))) / pow(l, 2.0));
} else {
tmp = pow(((cbrt(((2.0 / tan(k)) / sin(k))) / t_m) * pow(cbrt(((t_m * l) / k)), 2.0)), 3.0);
}
return t_s * tmp;
}
t\_m = Math.abs(t);
t\_s = Math.copySign(1.0, t);
public static double code(double t_s, double t_m, double l, double k) {
double tmp;
if (k <= 5.2e-157) {
tmp = 2.0 / ((Math.tan(k) * Math.pow(((Math.pow(t_m, 1.5) / l) * Math.sqrt(Math.sin(k))), 2.0)) * (1.0 + (1.0 + Math.pow((k / t_m), 2.0))));
} else if (k <= 1.95e-16) {
tmp = 2.0 / Math.pow(((t_m / Math.pow(Math.cbrt(l), 2.0)) * Math.cbrt((2.0 * Math.pow(k, 2.0)))), 3.0);
} else if (k <= 4.6e+139) {
tmp = 2.0 / ((Math.pow(k, 2.0) * (t_m * (Math.pow(Math.sin(k), 2.0) / Math.cos(k)))) / Math.pow(l, 2.0));
} else {
tmp = Math.pow(((Math.cbrt(((2.0 / Math.tan(k)) / Math.sin(k))) / t_m) * Math.pow(Math.cbrt(((t_m * l) / k)), 2.0)), 3.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 (k <= 5.2e-157) tmp = Float64(2.0 / Float64(Float64(tan(k) * (Float64(Float64((t_m ^ 1.5) / l) * sqrt(sin(k))) ^ 2.0)) * Float64(1.0 + Float64(1.0 + (Float64(k / t_m) ^ 2.0))))); elseif (k <= 1.95e-16) tmp = Float64(2.0 / (Float64(Float64(t_m / (cbrt(l) ^ 2.0)) * cbrt(Float64(2.0 * (k ^ 2.0)))) ^ 3.0)); elseif (k <= 4.6e+139) tmp = Float64(2.0 / Float64(Float64((k ^ 2.0) * Float64(t_m * Float64((sin(k) ^ 2.0) / cos(k)))) / (l ^ 2.0))); else tmp = Float64(Float64(cbrt(Float64(Float64(2.0 / tan(k)) / sin(k))) / t_m) * (cbrt(Float64(Float64(t_m * l) / k)) ^ 2.0)) ^ 3.0; end return Float64(t_s * tmp) end
t\_m = N[Abs[t], $MachinePrecision]
t\_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[t]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
code[t$95$s_, t$95$m_, l_, k_] := N[(t$95$s * If[LessEqual[k, 5.2e-157], N[(2.0 / N[(N[(N[Tan[k], $MachinePrecision] * N[Power[N[(N[(N[Power[t$95$m, 1.5], $MachinePrecision] / l), $MachinePrecision] * N[Sqrt[N[Sin[k], $MachinePrecision]], $MachinePrecision]), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision] * N[(1.0 + N[(1.0 + N[Power[N[(k / t$95$m), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, 1.95e-16], N[(2.0 / N[Power[N[(N[(t$95$m / N[Power[N[Power[l, 1/3], $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision] * N[Power[N[(2.0 * N[Power[k, 2.0], $MachinePrecision]), $MachinePrecision], 1/3], $MachinePrecision]), $MachinePrecision], 3.0], $MachinePrecision]), $MachinePrecision], If[LessEqual[k, 4.6e+139], N[(2.0 / N[(N[(N[Power[k, 2.0], $MachinePrecision] * N[(t$95$m * N[(N[Power[N[Sin[k], $MachinePrecision], 2.0], $MachinePrecision] / N[Cos[k], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[Power[l, 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[Power[N[(N[(N[Power[N[(N[(2.0 / N[Tan[k], $MachinePrecision]), $MachinePrecision] / N[Sin[k], $MachinePrecision]), $MachinePrecision], 1/3], $MachinePrecision] / t$95$m), $MachinePrecision] * N[Power[N[Power[N[(N[(t$95$m * l), $MachinePrecision] / k), $MachinePrecision], 1/3], $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision], 3.0], $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}\;k \leq 5.2 \cdot 10^{-157}:\\
\;\;\;\;\frac{2}{\left(\tan k \cdot {\left(\frac{{t\_m}^{1.5}}{\ell} \cdot \sqrt{\sin k}\right)}^{2}\right) \cdot \left(1 + \left(1 + {\left(\frac{k}{t\_m}\right)}^{2}\right)\right)}\\
\mathbf{elif}\;k \leq 1.95 \cdot 10^{-16}:\\
\;\;\;\;\frac{2}{{\left(\frac{t\_m}{{\left(\sqrt[3]{\ell}\right)}^{2}} \cdot \sqrt[3]{2 \cdot {k}^{2}}\right)}^{3}}\\
\mathbf{elif}\;k \leq 4.6 \cdot 10^{+139}:\\
\;\;\;\;\frac{2}{\frac{{k}^{2} \cdot \left(t\_m \cdot \frac{{\sin k}^{2}}{\cos k}\right)}{{\ell}^{2}}}\\
\mathbf{else}:\\
\;\;\;\;{\left(\frac{\sqrt[3]{\frac{\frac{2}{\tan k}}{\sin k}}}{t\_m} \cdot {\left(\sqrt[3]{\frac{t\_m \cdot \ell}{k}}\right)}^{2}\right)}^{3}\\
\end{array}
\end{array}
if k < 5.19999999999999977e-157Initial program 58.4%
add-sqr-sqrt28.9%
pow228.9%
associate-/r*32.2%
*-commutative32.2%
sqrt-prod9.2%
associate-/r*7.8%
sqrt-div7.8%
sqrt-pow110.4%
metadata-eval10.4%
sqrt-prod5.7%
add-sqr-sqrt14.1%
Applied egg-rr14.1%
*-commutative14.1%
Simplified14.1%
if 5.19999999999999977e-157 < k < 1.94999999999999989e-16Initial program 55.1%
Simplified55.5%
Taylor expanded in k around 0 69.2%
add-cube-cbrt68.9%
pow368.9%
cbrt-prod68.8%
associate-/l/69.4%
pow269.4%
cbrt-div69.3%
unpow369.3%
add-cbrt-cube80.7%
pow280.7%
cbrt-unprod87.8%
pow287.8%
Applied egg-rr87.8%
if 1.94999999999999989e-16 < k < 4.6e139Initial program 70.9%
Simplified79.4%
add-sqr-sqrt25.2%
pow225.2%
associate-/r*20.8%
sqrt-div20.8%
sqrt-pow120.8%
metadata-eval20.8%
sqrt-prod8.3%
add-sqr-sqrt25.2%
Applied egg-rr25.2%
Taylor expanded in t around 0 79.5%
times-frac76.2%
Simplified76.2%
associate-*l/79.5%
associate-/l*79.5%
Applied egg-rr79.5%
if 4.6e139 < k Initial program 56.3%
Simplified56.3%
associate-*r*56.9%
add-sqr-sqrt56.9%
times-frac57.0%
div-inv57.0%
frac-times57.0%
metadata-eval57.0%
Applied egg-rr57.0%
Simplified71.0%
add-cube-cbrt70.8%
pow370.8%
Applied egg-rr92.2%
Taylor expanded in k around inf 84.7%
Final simplification41.3%
t\_m = (fabs.f64 t)
t\_s = (copysign.f64 #s(literal 1 binary64) t)
(FPCore (t_s t_m l k)
:precision binary64
(*
t_s
(if (<= k 2e-194)
(/
(* (pow (/ (cbrt (/ 2.0 k)) (* t_m (cbrt (sin k)))) 3.0) (* l l))
(+ 2.0 (pow (/ k t_m) 2.0)))
(if (<= k 1.7e-16)
(/
2.0
(pow (* (/ t_m (pow (cbrt l) 2.0)) (cbrt (* 2.0 (pow k 2.0)))) 3.0))
(if (<= k 3e+136)
(/
2.0
(/ (* (pow k 2.0) (* t_m (/ (pow (sin k) 2.0) (cos k)))) (pow l 2.0)))
(pow
(*
(/ (cbrt (/ (/ 2.0 (tan k)) (sin k))) t_m)
(pow (cbrt (/ (* t_m l) k)) 2.0))
3.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 (k <= 2e-194) {
tmp = (pow((cbrt((2.0 / k)) / (t_m * cbrt(sin(k)))), 3.0) * (l * l)) / (2.0 + pow((k / t_m), 2.0));
} else if (k <= 1.7e-16) {
tmp = 2.0 / pow(((t_m / pow(cbrt(l), 2.0)) * cbrt((2.0 * pow(k, 2.0)))), 3.0);
} else if (k <= 3e+136) {
tmp = 2.0 / ((pow(k, 2.0) * (t_m * (pow(sin(k), 2.0) / cos(k)))) / pow(l, 2.0));
} else {
tmp = pow(((cbrt(((2.0 / tan(k)) / sin(k))) / t_m) * pow(cbrt(((t_m * l) / k)), 2.0)), 3.0);
}
return t_s * tmp;
}
t\_m = Math.abs(t);
t\_s = Math.copySign(1.0, t);
public static double code(double t_s, double t_m, double l, double k) {
double tmp;
if (k <= 2e-194) {
tmp = (Math.pow((Math.cbrt((2.0 / k)) / (t_m * Math.cbrt(Math.sin(k)))), 3.0) * (l * l)) / (2.0 + Math.pow((k / t_m), 2.0));
} else if (k <= 1.7e-16) {
tmp = 2.0 / Math.pow(((t_m / Math.pow(Math.cbrt(l), 2.0)) * Math.cbrt((2.0 * Math.pow(k, 2.0)))), 3.0);
} else if (k <= 3e+136) {
tmp = 2.0 / ((Math.pow(k, 2.0) * (t_m * (Math.pow(Math.sin(k), 2.0) / Math.cos(k)))) / Math.pow(l, 2.0));
} else {
tmp = Math.pow(((Math.cbrt(((2.0 / Math.tan(k)) / Math.sin(k))) / t_m) * Math.pow(Math.cbrt(((t_m * l) / k)), 2.0)), 3.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 (k <= 2e-194) tmp = Float64(Float64((Float64(cbrt(Float64(2.0 / k)) / Float64(t_m * cbrt(sin(k)))) ^ 3.0) * Float64(l * l)) / Float64(2.0 + (Float64(k / t_m) ^ 2.0))); elseif (k <= 1.7e-16) tmp = Float64(2.0 / (Float64(Float64(t_m / (cbrt(l) ^ 2.0)) * cbrt(Float64(2.0 * (k ^ 2.0)))) ^ 3.0)); elseif (k <= 3e+136) tmp = Float64(2.0 / Float64(Float64((k ^ 2.0) * Float64(t_m * Float64((sin(k) ^ 2.0) / cos(k)))) / (l ^ 2.0))); else tmp = Float64(Float64(cbrt(Float64(Float64(2.0 / tan(k)) / sin(k))) / t_m) * (cbrt(Float64(Float64(t_m * l) / k)) ^ 2.0)) ^ 3.0; end return Float64(t_s * tmp) end
t\_m = N[Abs[t], $MachinePrecision]
t\_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[t]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
code[t$95$s_, t$95$m_, l_, k_] := N[(t$95$s * If[LessEqual[k, 2e-194], N[(N[(N[Power[N[(N[Power[N[(2.0 / k), $MachinePrecision], 1/3], $MachinePrecision] / N[(t$95$m * N[Power[N[Sin[k], $MachinePrecision], 1/3], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 3.0], $MachinePrecision] * N[(l * l), $MachinePrecision]), $MachinePrecision] / N[(2.0 + N[Power[N[(k / t$95$m), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, 1.7e-16], N[(2.0 / N[Power[N[(N[(t$95$m / N[Power[N[Power[l, 1/3], $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision] * N[Power[N[(2.0 * N[Power[k, 2.0], $MachinePrecision]), $MachinePrecision], 1/3], $MachinePrecision]), $MachinePrecision], 3.0], $MachinePrecision]), $MachinePrecision], If[LessEqual[k, 3e+136], N[(2.0 / N[(N[(N[Power[k, 2.0], $MachinePrecision] * N[(t$95$m * N[(N[Power[N[Sin[k], $MachinePrecision], 2.0], $MachinePrecision] / N[Cos[k], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[Power[l, 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[Power[N[(N[(N[Power[N[(N[(2.0 / N[Tan[k], $MachinePrecision]), $MachinePrecision] / N[Sin[k], $MachinePrecision]), $MachinePrecision], 1/3], $MachinePrecision] / t$95$m), $MachinePrecision] * N[Power[N[Power[N[(N[(t$95$m * l), $MachinePrecision] / k), $MachinePrecision], 1/3], $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision], 3.0], $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}\;k \leq 2 \cdot 10^{-194}:\\
\;\;\;\;\frac{{\left(\frac{\sqrt[3]{\frac{2}{k}}}{t\_m \cdot \sqrt[3]{\sin k}}\right)}^{3} \cdot \left(\ell \cdot \ell\right)}{2 + {\left(\frac{k}{t\_m}\right)}^{2}}\\
\mathbf{elif}\;k \leq 1.7 \cdot 10^{-16}:\\
\;\;\;\;\frac{2}{{\left(\frac{t\_m}{{\left(\sqrt[3]{\ell}\right)}^{2}} \cdot \sqrt[3]{2 \cdot {k}^{2}}\right)}^{3}}\\
\mathbf{elif}\;k \leq 3 \cdot 10^{+136}:\\
\;\;\;\;\frac{2}{\frac{{k}^{2} \cdot \left(t\_m \cdot \frac{{\sin k}^{2}}{\cos k}\right)}{{\ell}^{2}}}\\
\mathbf{else}:\\
\;\;\;\;{\left(\frac{\sqrt[3]{\frac{\frac{2}{\tan k}}{\sin k}}}{t\_m} \cdot {\left(\sqrt[3]{\frac{t\_m \cdot \ell}{k}}\right)}^{2}\right)}^{3}\\
\end{array}
\end{array}
if k < 2.00000000000000004e-194Initial program 58.3%
Simplified59.4%
Taylor expanded in k around 0 57.0%
add-cube-cbrt56.9%
pow356.9%
cbrt-div56.9%
*-commutative56.9%
cbrt-prod56.9%
unpow356.9%
add-cbrt-cube67.0%
Applied egg-rr67.0%
if 2.00000000000000004e-194 < k < 1.7e-16Initial program 56.2%
Simplified56.6%
Taylor expanded in k around 0 67.2%
add-cube-cbrt67.0%
pow367.0%
cbrt-prod66.9%
associate-/l/65.0%
pow265.0%
cbrt-div64.9%
unpow364.9%
add-cbrt-cube76.0%
pow276.0%
cbrt-unprod84.0%
pow284.0%
Applied egg-rr84.0%
if 1.7e-16 < k < 2.99999999999999979e136Initial program 70.9%
Simplified79.4%
add-sqr-sqrt25.2%
pow225.2%
associate-/r*20.8%
sqrt-div20.8%
sqrt-pow120.8%
metadata-eval20.8%
sqrt-prod8.3%
add-sqr-sqrt25.2%
Applied egg-rr25.2%
Taylor expanded in t around 0 79.5%
times-frac76.2%
Simplified76.2%
associate-*l/79.5%
associate-/l*79.5%
Applied egg-rr79.5%
if 2.99999999999999979e136 < k Initial program 56.3%
Simplified56.3%
associate-*r*56.9%
add-sqr-sqrt56.9%
times-frac57.0%
div-inv57.0%
frac-times57.0%
metadata-eval57.0%
Applied egg-rr57.0%
Simplified71.0%
add-cube-cbrt70.8%
pow370.8%
Applied egg-rr92.2%
Taylor expanded in k around inf 84.7%
Final simplification73.9%
t\_m = (fabs.f64 t)
t\_s = (copysign.f64 #s(literal 1 binary64) t)
(FPCore (t_s t_m l k)
:precision binary64
(*
t_s
(if (<= k 2e-194)
(/
(* (pow (/ (cbrt (/ 2.0 k)) (* t_m (cbrt (sin k)))) 3.0) (* l l))
(+ 2.0 (pow (/ k t_m) 2.0)))
(if (<= k 8.2e-17)
(/
2.0
(pow (* (/ t_m (pow (cbrt l) 2.0)) (cbrt (* 2.0 (pow k 2.0)))) 3.0))
(/
2.0
(/
(* (pow k 2.0) (* t_m (/ (pow (sin k) 2.0) (cos k))))
(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) {
double tmp;
if (k <= 2e-194) {
tmp = (pow((cbrt((2.0 / k)) / (t_m * cbrt(sin(k)))), 3.0) * (l * l)) / (2.0 + pow((k / t_m), 2.0));
} else if (k <= 8.2e-17) {
tmp = 2.0 / pow(((t_m / pow(cbrt(l), 2.0)) * cbrt((2.0 * pow(k, 2.0)))), 3.0);
} else {
tmp = 2.0 / ((pow(k, 2.0) * (t_m * (pow(sin(k), 2.0) / cos(k)))) / pow(l, 2.0));
}
return t_s * tmp;
}
t\_m = Math.abs(t);
t\_s = Math.copySign(1.0, t);
public static double code(double t_s, double t_m, double l, double k) {
double tmp;
if (k <= 2e-194) {
tmp = (Math.pow((Math.cbrt((2.0 / k)) / (t_m * Math.cbrt(Math.sin(k)))), 3.0) * (l * l)) / (2.0 + Math.pow((k / t_m), 2.0));
} else if (k <= 8.2e-17) {
tmp = 2.0 / Math.pow(((t_m / Math.pow(Math.cbrt(l), 2.0)) * Math.cbrt((2.0 * Math.pow(k, 2.0)))), 3.0);
} else {
tmp = 2.0 / ((Math.pow(k, 2.0) * (t_m * (Math.pow(Math.sin(k), 2.0) / Math.cos(k)))) / Math.pow(l, 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 (k <= 2e-194) tmp = Float64(Float64((Float64(cbrt(Float64(2.0 / k)) / Float64(t_m * cbrt(sin(k)))) ^ 3.0) * Float64(l * l)) / Float64(2.0 + (Float64(k / t_m) ^ 2.0))); elseif (k <= 8.2e-17) tmp = Float64(2.0 / (Float64(Float64(t_m / (cbrt(l) ^ 2.0)) * cbrt(Float64(2.0 * (k ^ 2.0)))) ^ 3.0)); else tmp = Float64(2.0 / Float64(Float64((k ^ 2.0) * Float64(t_m * Float64((sin(k) ^ 2.0) / cos(k)))) / (l ^ 2.0))); end return Float64(t_s * tmp) end
t\_m = N[Abs[t], $MachinePrecision]
t\_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[t]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
code[t$95$s_, t$95$m_, l_, k_] := N[(t$95$s * If[LessEqual[k, 2e-194], N[(N[(N[Power[N[(N[Power[N[(2.0 / k), $MachinePrecision], 1/3], $MachinePrecision] / N[(t$95$m * N[Power[N[Sin[k], $MachinePrecision], 1/3], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 3.0], $MachinePrecision] * N[(l * l), $MachinePrecision]), $MachinePrecision] / N[(2.0 + N[Power[N[(k / t$95$m), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, 8.2e-17], N[(2.0 / N[Power[N[(N[(t$95$m / N[Power[N[Power[l, 1/3], $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision] * N[Power[N[(2.0 * N[Power[k, 2.0], $MachinePrecision]), $MachinePrecision], 1/3], $MachinePrecision]), $MachinePrecision], 3.0], $MachinePrecision]), $MachinePrecision], N[(2.0 / N[(N[(N[Power[k, 2.0], $MachinePrecision] * N[(t$95$m * N[(N[Power[N[Sin[k], $MachinePrecision], 2.0], $MachinePrecision] / N[Cos[k], $MachinePrecision]), $MachinePrecision]), $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 \begin{array}{l}
\mathbf{if}\;k \leq 2 \cdot 10^{-194}:\\
\;\;\;\;\frac{{\left(\frac{\sqrt[3]{\frac{2}{k}}}{t\_m \cdot \sqrt[3]{\sin k}}\right)}^{3} \cdot \left(\ell \cdot \ell\right)}{2 + {\left(\frac{k}{t\_m}\right)}^{2}}\\
\mathbf{elif}\;k \leq 8.2 \cdot 10^{-17}:\\
\;\;\;\;\frac{2}{{\left(\frac{t\_m}{{\left(\sqrt[3]{\ell}\right)}^{2}} \cdot \sqrt[3]{2 \cdot {k}^{2}}\right)}^{3}}\\
\mathbf{else}:\\
\;\;\;\;\frac{2}{\frac{{k}^{2} \cdot \left(t\_m \cdot \frac{{\sin k}^{2}}{\cos k}\right)}{{\ell}^{2}}}\\
\end{array}
\end{array}
if k < 2.00000000000000004e-194Initial program 58.3%
Simplified59.4%
Taylor expanded in k around 0 57.0%
add-cube-cbrt56.9%
pow356.9%
cbrt-div56.9%
*-commutative56.9%
cbrt-prod56.9%
unpow356.9%
add-cbrt-cube67.0%
Applied egg-rr67.0%
if 2.00000000000000004e-194 < k < 8.2000000000000001e-17Initial program 56.2%
Simplified56.6%
Taylor expanded in k around 0 67.2%
add-cube-cbrt67.0%
pow367.0%
cbrt-prod66.9%
associate-/l/65.0%
pow265.0%
cbrt-div64.9%
unpow364.9%
add-cbrt-cube76.0%
pow276.0%
cbrt-unprod84.0%
pow284.0%
Applied egg-rr84.0%
if 8.2000000000000001e-17 < k Initial program 61.7%
Simplified65.3%
add-sqr-sqrt25.1%
pow225.1%
associate-/r*23.2%
sqrt-div23.2%
sqrt-pow124.8%
metadata-eval24.8%
sqrt-prod7.8%
add-sqr-sqrt29.6%
Applied egg-rr29.6%
Taylor expanded in t around 0 77.2%
times-frac76.0%
Simplified76.0%
associate-*l/77.2%
associate-/l*77.2%
Applied egg-rr77.2%
Final simplification72.5%
t\_m = (fabs.f64 t)
t\_s = (copysign.f64 #s(literal 1 binary64) t)
(FPCore (t_s t_m l k)
:precision binary64
(*
t_s
(if (<= k 2.4e-169)
(pow
(* (* l (* (sqrt 0.5) (/ (sqrt 2.0) k))) (sqrt (/ 1.0 (pow t_m 3.0))))
2.0)
(if (<= k 1.95e-16)
(/
2.0
(pow (* (/ t_m (pow (cbrt l) 2.0)) (cbrt (* 2.0 (pow k 2.0)))) 3.0))
(/
2.0
(/
(* (pow k 2.0) (* t_m (/ (pow (sin k) 2.0) (cos k))))
(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) {
double tmp;
if (k <= 2.4e-169) {
tmp = pow(((l * (sqrt(0.5) * (sqrt(2.0) / k))) * sqrt((1.0 / pow(t_m, 3.0)))), 2.0);
} else if (k <= 1.95e-16) {
tmp = 2.0 / pow(((t_m / pow(cbrt(l), 2.0)) * cbrt((2.0 * pow(k, 2.0)))), 3.0);
} else {
tmp = 2.0 / ((pow(k, 2.0) * (t_m * (pow(sin(k), 2.0) / cos(k)))) / pow(l, 2.0));
}
return t_s * tmp;
}
t\_m = Math.abs(t);
t\_s = Math.copySign(1.0, t);
public static double code(double t_s, double t_m, double l, double k) {
double tmp;
if (k <= 2.4e-169) {
tmp = Math.pow(((l * (Math.sqrt(0.5) * (Math.sqrt(2.0) / k))) * Math.sqrt((1.0 / Math.pow(t_m, 3.0)))), 2.0);
} else if (k <= 1.95e-16) {
tmp = 2.0 / Math.pow(((t_m / Math.pow(Math.cbrt(l), 2.0)) * Math.cbrt((2.0 * Math.pow(k, 2.0)))), 3.0);
} else {
tmp = 2.0 / ((Math.pow(k, 2.0) * (t_m * (Math.pow(Math.sin(k), 2.0) / Math.cos(k)))) / Math.pow(l, 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 (k <= 2.4e-169) tmp = Float64(Float64(l * Float64(sqrt(0.5) * Float64(sqrt(2.0) / k))) * sqrt(Float64(1.0 / (t_m ^ 3.0)))) ^ 2.0; elseif (k <= 1.95e-16) tmp = Float64(2.0 / (Float64(Float64(t_m / (cbrt(l) ^ 2.0)) * cbrt(Float64(2.0 * (k ^ 2.0)))) ^ 3.0)); else tmp = Float64(2.0 / Float64(Float64((k ^ 2.0) * Float64(t_m * Float64((sin(k) ^ 2.0) / cos(k)))) / (l ^ 2.0))); end return Float64(t_s * tmp) end
t\_m = N[Abs[t], $MachinePrecision]
t\_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[t]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
code[t$95$s_, t$95$m_, l_, k_] := N[(t$95$s * If[LessEqual[k, 2.4e-169], N[Power[N[(N[(l * N[(N[Sqrt[0.5], $MachinePrecision] * N[(N[Sqrt[2.0], $MachinePrecision] / k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[Sqrt[N[(1.0 / N[Power[t$95$m, 3.0], $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], 2.0], $MachinePrecision], If[LessEqual[k, 1.95e-16], N[(2.0 / N[Power[N[(N[(t$95$m / N[Power[N[Power[l, 1/3], $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision] * N[Power[N[(2.0 * N[Power[k, 2.0], $MachinePrecision]), $MachinePrecision], 1/3], $MachinePrecision]), $MachinePrecision], 3.0], $MachinePrecision]), $MachinePrecision], N[(2.0 / N[(N[(N[Power[k, 2.0], $MachinePrecision] * N[(t$95$m * N[(N[Power[N[Sin[k], $MachinePrecision], 2.0], $MachinePrecision] / N[Cos[k], $MachinePrecision]), $MachinePrecision]), $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 \begin{array}{l}
\mathbf{if}\;k \leq 2.4 \cdot 10^{-169}:\\
\;\;\;\;{\left(\left(\ell \cdot \left(\sqrt{0.5} \cdot \frac{\sqrt{2}}{k}\right)\right) \cdot \sqrt{\frac{1}{{t\_m}^{3}}}\right)}^{2}\\
\mathbf{elif}\;k \leq 1.95 \cdot 10^{-16}:\\
\;\;\;\;\frac{2}{{\left(\frac{t\_m}{{\left(\sqrt[3]{\ell}\right)}^{2}} \cdot \sqrt[3]{2 \cdot {k}^{2}}\right)}^{3}}\\
\mathbf{else}:\\
\;\;\;\;\frac{2}{\frac{{k}^{2} \cdot \left(t\_m \cdot \frac{{\sin k}^{2}}{\cos k}\right)}{{\ell}^{2}}}\\
\end{array}
\end{array}
if k < 2.40000000000000011e-169Initial program 59.3%
Simplified60.4%
add-sqr-sqrt38.8%
sqrt-div37.5%
sqrt-div37.5%
Applied egg-rr36.0%
unpow236.0%
Simplified38.6%
Taylor expanded in k around 0 39.1%
associate-/l*39.1%
associate-/l*39.1%
Simplified39.1%
if 2.40000000000000011e-169 < k < 1.94999999999999989e-16Initial program 51.9%
Simplified55.0%
Taylor expanded in k around 0 67.3%
add-cube-cbrt67.0%
pow367.0%
cbrt-prod66.9%
associate-/l/64.7%
pow264.7%
cbrt-div64.7%
unpow364.7%
add-cbrt-cube77.4%
pow277.4%
cbrt-unprod86.6%
pow286.6%
Applied egg-rr86.6%
if 1.94999999999999989e-16 < k Initial program 61.7%
Simplified65.3%
add-sqr-sqrt25.1%
pow225.1%
associate-/r*23.2%
sqrt-div23.2%
sqrt-pow124.8%
metadata-eval24.8%
sqrt-prod7.8%
add-sqr-sqrt29.6%
Applied egg-rr29.6%
Taylor expanded in t around 0 77.2%
times-frac76.0%
Simplified76.0%
associate-*l/77.2%
associate-/l*77.2%
Applied egg-rr77.2%
t\_m = (fabs.f64 t)
t\_s = (copysign.f64 #s(literal 1 binary64) t)
(FPCore (t_s t_m l k)
:precision binary64
(*
t_s
(if (<= k 6.5e-170)
(pow
(* (* l (* (sqrt 0.5) (/ (sqrt 2.0) k))) (sqrt (/ 1.0 (pow t_m 3.0))))
2.0)
(if (<= k 1.25e-16)
(/
2.0
(pow (* (/ t_m (pow (cbrt l) 2.0)) (cbrt (* 2.0 (pow k 2.0)))) 3.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 (k <= 6.5e-170) {
tmp = pow(((l * (sqrt(0.5) * (sqrt(2.0) / k))) * sqrt((1.0 / pow(t_m, 3.0)))), 2.0);
} else if (k <= 1.25e-16) {
tmp = 2.0 / pow(((t_m / pow(cbrt(l), 2.0)) * cbrt((2.0 * pow(k, 2.0)))), 3.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 = 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 (k <= 6.5e-170) {
tmp = Math.pow(((l * (Math.sqrt(0.5) * (Math.sqrt(2.0) / k))) * Math.sqrt((1.0 / Math.pow(t_m, 3.0)))), 2.0);
} else if (k <= 1.25e-16) {
tmp = 2.0 / Math.pow(((t_m / Math.pow(Math.cbrt(l), 2.0)) * Math.cbrt((2.0 * Math.pow(k, 2.0)))), 3.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 (k <= 6.5e-170) tmp = Float64(Float64(l * Float64(sqrt(0.5) * Float64(sqrt(2.0) / k))) * sqrt(Float64(1.0 / (t_m ^ 3.0)))) ^ 2.0; elseif (k <= 1.25e-16) tmp = Float64(2.0 / (Float64(Float64(t_m / (cbrt(l) ^ 2.0)) * cbrt(Float64(2.0 * (k ^ 2.0)))) ^ 3.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 = 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[k, 6.5e-170], N[Power[N[(N[(l * N[(N[Sqrt[0.5], $MachinePrecision] * N[(N[Sqrt[2.0], $MachinePrecision] / k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[Sqrt[N[(1.0 / N[Power[t$95$m, 3.0], $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], 2.0], $MachinePrecision], If[LessEqual[k, 1.25e-16], N[(2.0 / N[Power[N[(N[(t$95$m / N[Power[N[Power[l, 1/3], $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision] * N[Power[N[(2.0 * N[Power[k, 2.0], $MachinePrecision]), $MachinePrecision], 1/3], $MachinePrecision]), $MachinePrecision], 3.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}\;k \leq 6.5 \cdot 10^{-170}:\\
\;\;\;\;{\left(\left(\ell \cdot \left(\sqrt{0.5} \cdot \frac{\sqrt{2}}{k}\right)\right) \cdot \sqrt{\frac{1}{{t\_m}^{3}}}\right)}^{2}\\
\mathbf{elif}\;k \leq 1.25 \cdot 10^{-16}:\\
\;\;\;\;\frac{2}{{\left(\frac{t\_m}{{\left(\sqrt[3]{\ell}\right)}^{2}} \cdot \sqrt[3]{2 \cdot {k}^{2}}\right)}^{3}}\\
\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 k < 6.50000000000000035e-170Initial program 59.3%
Simplified60.4%
add-sqr-sqrt38.8%
sqrt-div37.5%
sqrt-div37.5%
Applied egg-rr36.0%
unpow236.0%
Simplified38.6%
Taylor expanded in k around 0 39.1%
associate-/l*39.1%
associate-/l*39.1%
Simplified39.1%
if 6.50000000000000035e-170 < k < 1.2500000000000001e-16Initial program 51.9%
Simplified55.0%
Taylor expanded in k around 0 67.3%
add-cube-cbrt67.0%
pow367.0%
cbrt-prod66.9%
associate-/l/64.7%
pow264.7%
cbrt-div64.7%
unpow364.7%
add-cbrt-cube77.4%
pow277.4%
cbrt-unprod86.6%
pow286.6%
Applied egg-rr86.6%
if 1.2500000000000001e-16 < k Initial program 61.7%
Taylor expanded in t around 0 77.2%
times-frac76.1%
Simplified76.1%
t\_m = (fabs.f64 t)
t\_s = (copysign.f64 #s(literal 1 binary64) t)
(FPCore (t_s t_m l k)
:precision binary64
(*
t_s
(if (<= k 2.4e-169)
(pow
(* (* l (* (sqrt 0.5) (/ (sqrt 2.0) k))) (sqrt (/ 1.0 (pow t_m 3.0))))
2.0)
(if (<= k 1.6e-16)
(/
2.0
(pow (* (/ t_m (pow (cbrt l) 2.0)) (cbrt (* 2.0 (pow k 2.0)))) 3.0))
(/
2.0
(* (/ (* k k) (pow l 2.0)) (/ (* t_m (pow (sin k) 2.0)) (cos k))))))))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 (k <= 2.4e-169) {
tmp = pow(((l * (sqrt(0.5) * (sqrt(2.0) / k))) * sqrt((1.0 / pow(t_m, 3.0)))), 2.0);
} else if (k <= 1.6e-16) {
tmp = 2.0 / pow(((t_m / pow(cbrt(l), 2.0)) * cbrt((2.0 * pow(k, 2.0)))), 3.0);
} else {
tmp = 2.0 / (((k * k) / pow(l, 2.0)) * ((t_m * pow(sin(k), 2.0)) / cos(k)));
}
return t_s * tmp;
}
t\_m = Math.abs(t);
t\_s = Math.copySign(1.0, t);
public static double code(double t_s, double t_m, double l, double k) {
double tmp;
if (k <= 2.4e-169) {
tmp = Math.pow(((l * (Math.sqrt(0.5) * (Math.sqrt(2.0) / k))) * Math.sqrt((1.0 / Math.pow(t_m, 3.0)))), 2.0);
} else if (k <= 1.6e-16) {
tmp = 2.0 / Math.pow(((t_m / Math.pow(Math.cbrt(l), 2.0)) * Math.cbrt((2.0 * Math.pow(k, 2.0)))), 3.0);
} else {
tmp = 2.0 / (((k * k) / Math.pow(l, 2.0)) * ((t_m * Math.pow(Math.sin(k), 2.0)) / Math.cos(k)));
}
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 (k <= 2.4e-169) tmp = Float64(Float64(l * Float64(sqrt(0.5) * Float64(sqrt(2.0) / k))) * sqrt(Float64(1.0 / (t_m ^ 3.0)))) ^ 2.0; elseif (k <= 1.6e-16) tmp = Float64(2.0 / (Float64(Float64(t_m / (cbrt(l) ^ 2.0)) * cbrt(Float64(2.0 * (k ^ 2.0)))) ^ 3.0)); else tmp = Float64(2.0 / Float64(Float64(Float64(k * k) / (l ^ 2.0)) * Float64(Float64(t_m * (sin(k) ^ 2.0)) / cos(k)))); end return Float64(t_s * tmp) end
t\_m = N[Abs[t], $MachinePrecision]
t\_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[t]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
code[t$95$s_, t$95$m_, l_, k_] := N[(t$95$s * If[LessEqual[k, 2.4e-169], N[Power[N[(N[(l * N[(N[Sqrt[0.5], $MachinePrecision] * N[(N[Sqrt[2.0], $MachinePrecision] / k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[Sqrt[N[(1.0 / N[Power[t$95$m, 3.0], $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], 2.0], $MachinePrecision], If[LessEqual[k, 1.6e-16], N[(2.0 / N[Power[N[(N[(t$95$m / N[Power[N[Power[l, 1/3], $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision] * N[Power[N[(2.0 * N[Power[k, 2.0], $MachinePrecision]), $MachinePrecision], 1/3], $MachinePrecision]), $MachinePrecision], 3.0], $MachinePrecision]), $MachinePrecision], N[(2.0 / N[(N[(N[(k * k), $MachinePrecision] / N[Power[l, 2.0], $MachinePrecision]), $MachinePrecision] * N[(N[(t$95$m * N[Power[N[Sin[k], $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision] / N[Cos[k], $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}\;k \leq 2.4 \cdot 10^{-169}:\\
\;\;\;\;{\left(\left(\ell \cdot \left(\sqrt{0.5} \cdot \frac{\sqrt{2}}{k}\right)\right) \cdot \sqrt{\frac{1}{{t\_m}^{3}}}\right)}^{2}\\
\mathbf{elif}\;k \leq 1.6 \cdot 10^{-16}:\\
\;\;\;\;\frac{2}{{\left(\frac{t\_m}{{\left(\sqrt[3]{\ell}\right)}^{2}} \cdot \sqrt[3]{2 \cdot {k}^{2}}\right)}^{3}}\\
\mathbf{else}:\\
\;\;\;\;\frac{2}{\frac{k \cdot k}{{\ell}^{2}} \cdot \frac{t\_m \cdot {\sin k}^{2}}{\cos k}}\\
\end{array}
\end{array}
if k < 2.40000000000000011e-169Initial program 59.3%
Simplified60.4%
add-sqr-sqrt38.8%
sqrt-div37.5%
sqrt-div37.5%
Applied egg-rr36.0%
unpow236.0%
Simplified38.6%
Taylor expanded in k around 0 39.1%
associate-/l*39.1%
associate-/l*39.1%
Simplified39.1%
if 2.40000000000000011e-169 < k < 1.60000000000000011e-16Initial program 51.9%
Simplified55.0%
Taylor expanded in k around 0 67.3%
add-cube-cbrt67.0%
pow367.0%
cbrt-prod66.9%
associate-/l/64.7%
pow264.7%
cbrt-div64.7%
unpow364.7%
add-cbrt-cube77.4%
pow277.4%
cbrt-unprod86.6%
pow286.6%
Applied egg-rr86.6%
if 1.60000000000000011e-16 < k Initial program 61.7%
Simplified65.3%
add-sqr-sqrt25.1%
pow225.1%
associate-/r*23.2%
sqrt-div23.2%
sqrt-pow124.8%
metadata-eval24.8%
sqrt-prod7.8%
add-sqr-sqrt29.6%
Applied egg-rr29.6%
Taylor expanded in t around 0 77.2%
times-frac76.0%
Simplified76.0%
unpow276.0%
Applied egg-rr76.0%
t\_m = (fabs.f64 t)
t\_s = (copysign.f64 #s(literal 1 binary64) t)
(FPCore (t_s t_m l k)
:precision binary64
(*
t_s
(if (<= k 1.75e-194)
(/
(* (* l l) (/ (/ 2.0 k) (pow (* t_m (cbrt (sin k))) 3.0)))
(+ 2.0 (pow (/ k t_m) 2.0)))
(if (<= k 1.85e-16)
(/
2.0
(pow (* (/ t_m (pow (cbrt l) 2.0)) (cbrt (* 2.0 (pow k 2.0)))) 3.0))
(/
2.0
(* (/ (* k k) (pow l 2.0)) (/ (* t_m (pow (sin k) 2.0)) (cos k))))))))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 (k <= 1.75e-194) {
tmp = ((l * l) * ((2.0 / k) / pow((t_m * cbrt(sin(k))), 3.0))) / (2.0 + pow((k / t_m), 2.0));
} else if (k <= 1.85e-16) {
tmp = 2.0 / pow(((t_m / pow(cbrt(l), 2.0)) * cbrt((2.0 * pow(k, 2.0)))), 3.0);
} else {
tmp = 2.0 / (((k * k) / pow(l, 2.0)) * ((t_m * pow(sin(k), 2.0)) / cos(k)));
}
return t_s * tmp;
}
t\_m = Math.abs(t);
t\_s = Math.copySign(1.0, t);
public static double code(double t_s, double t_m, double l, double k) {
double tmp;
if (k <= 1.75e-194) {
tmp = ((l * l) * ((2.0 / k) / Math.pow((t_m * Math.cbrt(Math.sin(k))), 3.0))) / (2.0 + Math.pow((k / t_m), 2.0));
} else if (k <= 1.85e-16) {
tmp = 2.0 / Math.pow(((t_m / Math.pow(Math.cbrt(l), 2.0)) * Math.cbrt((2.0 * Math.pow(k, 2.0)))), 3.0);
} else {
tmp = 2.0 / (((k * k) / Math.pow(l, 2.0)) * ((t_m * Math.pow(Math.sin(k), 2.0)) / Math.cos(k)));
}
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 (k <= 1.75e-194) tmp = Float64(Float64(Float64(l * l) * Float64(Float64(2.0 / k) / (Float64(t_m * cbrt(sin(k))) ^ 3.0))) / Float64(2.0 + (Float64(k / t_m) ^ 2.0))); elseif (k <= 1.85e-16) tmp = Float64(2.0 / (Float64(Float64(t_m / (cbrt(l) ^ 2.0)) * cbrt(Float64(2.0 * (k ^ 2.0)))) ^ 3.0)); else tmp = Float64(2.0 / Float64(Float64(Float64(k * k) / (l ^ 2.0)) * Float64(Float64(t_m * (sin(k) ^ 2.0)) / cos(k)))); end return Float64(t_s * tmp) end
t\_m = N[Abs[t], $MachinePrecision]
t\_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[t]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
code[t$95$s_, t$95$m_, l_, k_] := N[(t$95$s * If[LessEqual[k, 1.75e-194], N[(N[(N[(l * l), $MachinePrecision] * N[(N[(2.0 / k), $MachinePrecision] / N[Power[N[(t$95$m * N[Power[N[Sin[k], $MachinePrecision], 1/3], $MachinePrecision]), $MachinePrecision], 3.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(2.0 + N[Power[N[(k / t$95$m), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, 1.85e-16], N[(2.0 / N[Power[N[(N[(t$95$m / N[Power[N[Power[l, 1/3], $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision] * N[Power[N[(2.0 * N[Power[k, 2.0], $MachinePrecision]), $MachinePrecision], 1/3], $MachinePrecision]), $MachinePrecision], 3.0], $MachinePrecision]), $MachinePrecision], N[(2.0 / N[(N[(N[(k * k), $MachinePrecision] / N[Power[l, 2.0], $MachinePrecision]), $MachinePrecision] * N[(N[(t$95$m * N[Power[N[Sin[k], $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision] / N[Cos[k], $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}\;k \leq 1.75 \cdot 10^{-194}:\\
\;\;\;\;\frac{\left(\ell \cdot \ell\right) \cdot \frac{\frac{2}{k}}{{\left(t\_m \cdot \sqrt[3]{\sin k}\right)}^{3}}}{2 + {\left(\frac{k}{t\_m}\right)}^{2}}\\
\mathbf{elif}\;k \leq 1.85 \cdot 10^{-16}:\\
\;\;\;\;\frac{2}{{\left(\frac{t\_m}{{\left(\sqrt[3]{\ell}\right)}^{2}} \cdot \sqrt[3]{2 \cdot {k}^{2}}\right)}^{3}}\\
\mathbf{else}:\\
\;\;\;\;\frac{2}{\frac{k \cdot k}{{\ell}^{2}} \cdot \frac{t\_m \cdot {\sin k}^{2}}{\cos k}}\\
\end{array}
\end{array}
if k < 1.7500000000000001e-194Initial program 58.3%
Simplified59.4%
Taylor expanded in k around 0 57.0%
add-cube-cbrt56.9%
pow256.9%
cbrt-div57.0%
*-commutative57.0%
cbrt-prod56.9%
unpow356.9%
add-cbrt-cube56.9%
cbrt-div56.9%
*-commutative56.9%
cbrt-prod56.9%
unpow356.9%
add-cbrt-cube67.0%
Applied egg-rr67.0%
unpow267.0%
unpow367.0%
cube-div62.2%
rem-cube-cbrt62.2%
*-commutative62.2%
Simplified62.2%
if 1.7500000000000001e-194 < k < 1.85e-16Initial program 56.2%
Simplified56.6%
Taylor expanded in k around 0 67.2%
add-cube-cbrt67.0%
pow367.0%
cbrt-prod66.9%
associate-/l/65.0%
pow265.0%
cbrt-div64.9%
unpow364.9%
add-cbrt-cube76.0%
pow276.0%
cbrt-unprod84.0%
pow284.0%
Applied egg-rr84.0%
if 1.85e-16 < k Initial program 61.7%
Simplified65.3%
add-sqr-sqrt25.1%
pow225.1%
associate-/r*23.2%
sqrt-div23.2%
sqrt-pow124.8%
metadata-eval24.8%
sqrt-prod7.8%
add-sqr-sqrt29.6%
Applied egg-rr29.6%
Taylor expanded in t around 0 77.2%
times-frac76.0%
Simplified76.0%
unpow276.0%
Applied egg-rr76.0%
Final simplification69.5%
t\_m = (fabs.f64 t)
t\_s = (copysign.f64 #s(literal 1 binary64) t)
(FPCore (t_s t_m l k)
:precision binary64
(let* ((t_2 (pow (sin k) 2.0)) (t_3 (+ 2.0 (pow (/ k t_m) 2.0))))
(*
t_s
(if (<= t_m 1.6e-156)
(/ 2.0 (* (/ (* k k) (pow l 2.0)) (/ (* t_m t_2) (cos k))))
(if (<= t_m 5e-38)
(*
(* 2.0 (* (/ l k) (/ (cos k) (* t_2 (pow t_m 2.0)))))
(* l (/ t_m k)))
(if (<= t_m 9.6e+95)
(* (* l (/ (/ 2.0 (tan k)) (* (sin k) (pow t_m 3.0)))) (/ l t_3))
(/
(* (* l l) (/ (/ 2.0 k) (pow (* t_m (cbrt (sin k))) 3.0)))
t_3)))))))t\_m = fabs(t);
t\_s = copysign(1.0, t);
double code(double t_s, double t_m, double l, double k) {
double t_2 = pow(sin(k), 2.0);
double t_3 = 2.0 + pow((k / t_m), 2.0);
double tmp;
if (t_m <= 1.6e-156) {
tmp = 2.0 / (((k * k) / pow(l, 2.0)) * ((t_m * t_2) / cos(k)));
} else if (t_m <= 5e-38) {
tmp = (2.0 * ((l / k) * (cos(k) / (t_2 * pow(t_m, 2.0))))) * (l * (t_m / k));
} else if (t_m <= 9.6e+95) {
tmp = (l * ((2.0 / tan(k)) / (sin(k) * pow(t_m, 3.0)))) * (l / t_3);
} else {
tmp = ((l * l) * ((2.0 / k) / pow((t_m * cbrt(sin(k))), 3.0))) / t_3;
}
return t_s * tmp;
}
t\_m = Math.abs(t);
t\_s = Math.copySign(1.0, t);
public static double code(double t_s, double t_m, double l, double k) {
double t_2 = Math.pow(Math.sin(k), 2.0);
double t_3 = 2.0 + Math.pow((k / t_m), 2.0);
double tmp;
if (t_m <= 1.6e-156) {
tmp = 2.0 / (((k * k) / Math.pow(l, 2.0)) * ((t_m * t_2) / Math.cos(k)));
} else if (t_m <= 5e-38) {
tmp = (2.0 * ((l / k) * (Math.cos(k) / (t_2 * Math.pow(t_m, 2.0))))) * (l * (t_m / k));
} else if (t_m <= 9.6e+95) {
tmp = (l * ((2.0 / Math.tan(k)) / (Math.sin(k) * Math.pow(t_m, 3.0)))) * (l / t_3);
} else {
tmp = ((l * l) * ((2.0 / k) / Math.pow((t_m * Math.cbrt(Math.sin(k))), 3.0))) / t_3;
}
return t_s * tmp;
}
t\_m = abs(t) t\_s = copysign(1.0, t) function code(t_s, t_m, l, k) t_2 = sin(k) ^ 2.0 t_3 = Float64(2.0 + (Float64(k / t_m) ^ 2.0)) tmp = 0.0 if (t_m <= 1.6e-156) tmp = Float64(2.0 / Float64(Float64(Float64(k * k) / (l ^ 2.0)) * Float64(Float64(t_m * t_2) / cos(k)))); elseif (t_m <= 5e-38) tmp = Float64(Float64(2.0 * Float64(Float64(l / k) * Float64(cos(k) / Float64(t_2 * (t_m ^ 2.0))))) * Float64(l * Float64(t_m / k))); elseif (t_m <= 9.6e+95) tmp = Float64(Float64(l * Float64(Float64(2.0 / tan(k)) / Float64(sin(k) * (t_m ^ 3.0)))) * Float64(l / t_3)); else tmp = Float64(Float64(Float64(l * l) * Float64(Float64(2.0 / k) / (Float64(t_m * cbrt(sin(k))) ^ 3.0))) / t_3); end return Float64(t_s * tmp) end
t\_m = N[Abs[t], $MachinePrecision]
t\_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[t]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
code[t$95$s_, t$95$m_, l_, k_] := Block[{t$95$2 = N[Power[N[Sin[k], $MachinePrecision], 2.0], $MachinePrecision]}, Block[{t$95$3 = N[(2.0 + N[Power[N[(k / t$95$m), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]}, N[(t$95$s * If[LessEqual[t$95$m, 1.6e-156], N[(2.0 / N[(N[(N[(k * k), $MachinePrecision] / N[Power[l, 2.0], $MachinePrecision]), $MachinePrecision] * N[(N[(t$95$m * t$95$2), $MachinePrecision] / N[Cos[k], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$m, 5e-38], N[(N[(2.0 * N[(N[(l / k), $MachinePrecision] * N[(N[Cos[k], $MachinePrecision] / N[(t$95$2 * N[Power[t$95$m, 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(l * N[(t$95$m / k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$m, 9.6e+95], N[(N[(l * N[(N[(2.0 / N[Tan[k], $MachinePrecision]), $MachinePrecision] / N[(N[Sin[k], $MachinePrecision] * N[Power[t$95$m, 3.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(l / t$95$3), $MachinePrecision]), $MachinePrecision], N[(N[(N[(l * l), $MachinePrecision] * N[(N[(2.0 / k), $MachinePrecision] / N[Power[N[(t$95$m * N[Power[N[Sin[k], $MachinePrecision], 1/3], $MachinePrecision]), $MachinePrecision], 3.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / t$95$3), $MachinePrecision]]]]), $MachinePrecision]]]
\begin{array}{l}
t\_m = \left|t\right|
\\
t\_s = \mathsf{copysign}\left(1, t\right)
\\
\begin{array}{l}
t_2 := {\sin k}^{2}\\
t_3 := 2 + {\left(\frac{k}{t\_m}\right)}^{2}\\
t\_s \cdot \begin{array}{l}
\mathbf{if}\;t\_m \leq 1.6 \cdot 10^{-156}:\\
\;\;\;\;\frac{2}{\frac{k \cdot k}{{\ell}^{2}} \cdot \frac{t\_m \cdot t\_2}{\cos k}}\\
\mathbf{elif}\;t\_m \leq 5 \cdot 10^{-38}:\\
\;\;\;\;\left(2 \cdot \left(\frac{\ell}{k} \cdot \frac{\cos k}{t\_2 \cdot {t\_m}^{2}}\right)\right) \cdot \left(\ell \cdot \frac{t\_m}{k}\right)\\
\mathbf{elif}\;t\_m \leq 9.6 \cdot 10^{+95}:\\
\;\;\;\;\left(\ell \cdot \frac{\frac{2}{\tan k}}{\sin k \cdot {t\_m}^{3}}\right) \cdot \frac{\ell}{t\_3}\\
\mathbf{else}:\\
\;\;\;\;\frac{\left(\ell \cdot \ell\right) \cdot \frac{\frac{2}{k}}{{\left(t\_m \cdot \sqrt[3]{\sin k}\right)}^{3}}}{t\_3}\\
\end{array}
\end{array}
\end{array}
if t < 1.59999999999999991e-156Initial program 61.9%
Simplified63.2%
add-sqr-sqrt7.1%
pow27.1%
associate-/r*6.5%
sqrt-div6.5%
sqrt-pow17.1%
metadata-eval7.1%
sqrt-prod1.9%
add-sqr-sqrt7.7%
Applied egg-rr7.7%
Taylor expanded in t around 0 70.5%
times-frac70.3%
Simplified70.3%
unpow270.3%
Applied egg-rr70.3%
if 1.59999999999999991e-156 < t < 5.00000000000000033e-38Initial program 54.2%
Simplified50.3%
associate-*r*54.9%
add-sqr-sqrt54.9%
times-frac55.1%
div-inv55.1%
frac-times55.1%
metadata-eval55.1%
Applied egg-rr55.1%
Simplified73.9%
Taylor expanded in k around inf 42.8%
times-frac42.7%
Simplified42.7%
Taylor expanded in k around inf 85.4%
associate-/l*85.4%
Simplified85.4%
if 5.00000000000000033e-38 < t < 9.6000000000000002e95Initial program 76.7%
Simplified76.1%
associate-*r*81.1%
*-un-lft-identity81.1%
times-frac81.1%
div-inv81.2%
frac-times81.3%
metadata-eval81.3%
Applied egg-rr81.3%
/-rgt-identity81.3%
*-commutative81.3%
associate-/r*81.1%
*-commutative81.1%
Simplified81.1%
if 9.6000000000000002e95 < t Initial program 45.3%
Simplified45.3%
Taylor expanded in k around 0 45.3%
add-cube-cbrt45.3%
pow245.3%
cbrt-div45.3%
*-commutative45.3%
cbrt-prod45.3%
unpow345.3%
add-cbrt-cube45.3%
cbrt-div45.3%
*-commutative45.3%
cbrt-prod45.3%
unpow345.3%
add-cbrt-cube63.5%
Applied egg-rr63.5%
unpow263.5%
unpow363.5%
cube-div56.2%
rem-cube-cbrt56.2%
*-commutative56.2%
Simplified56.2%
Final simplification69.7%
t\_m = (fabs.f64 t)
t\_s = (copysign.f64 #s(literal 1 binary64) t)
(FPCore (t_s t_m l k)
:precision binary64
(let* ((t_2 (pow (sin k) 2.0)))
(*
t_s
(if (<= t_m 1.6e-156)
(/ 2.0 (* (/ (* k k) (pow l 2.0)) (/ (* t_m t_2) (cos k))))
(if (<= t_m 1.02e-38)
(*
(* 2.0 (* (/ l k) (/ (cos k) (* t_2 (pow t_m 2.0)))))
(* l (/ t_m k)))
(*
(* l (/ (/ 2.0 (tan k)) (* (sin k) (pow t_m 3.0))))
(/ l (+ 2.0 (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 t_2 = pow(sin(k), 2.0);
double tmp;
if (t_m <= 1.6e-156) {
tmp = 2.0 / (((k * k) / pow(l, 2.0)) * ((t_m * t_2) / cos(k)));
} else if (t_m <= 1.02e-38) {
tmp = (2.0 * ((l / k) * (cos(k) / (t_2 * pow(t_m, 2.0))))) * (l * (t_m / k));
} else {
tmp = (l * ((2.0 / tan(k)) / (sin(k) * pow(t_m, 3.0)))) * (l / (2.0 + 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) :: t_2
real(8) :: tmp
t_2 = sin(k) ** 2.0d0
if (t_m <= 1.6d-156) then
tmp = 2.0d0 / (((k * k) / (l ** 2.0d0)) * ((t_m * t_2) / cos(k)))
else if (t_m <= 1.02d-38) then
tmp = (2.0d0 * ((l / k) * (cos(k) / (t_2 * (t_m ** 2.0d0))))) * (l * (t_m / k))
else
tmp = (l * ((2.0d0 / tan(k)) / (sin(k) * (t_m ** 3.0d0)))) * (l / (2.0d0 + ((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 t_2 = Math.pow(Math.sin(k), 2.0);
double tmp;
if (t_m <= 1.6e-156) {
tmp = 2.0 / (((k * k) / Math.pow(l, 2.0)) * ((t_m * t_2) / Math.cos(k)));
} else if (t_m <= 1.02e-38) {
tmp = (2.0 * ((l / k) * (Math.cos(k) / (t_2 * Math.pow(t_m, 2.0))))) * (l * (t_m / k));
} else {
tmp = (l * ((2.0 / Math.tan(k)) / (Math.sin(k) * Math.pow(t_m, 3.0)))) * (l / (2.0 + 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): t_2 = math.pow(math.sin(k), 2.0) tmp = 0 if t_m <= 1.6e-156: tmp = 2.0 / (((k * k) / math.pow(l, 2.0)) * ((t_m * t_2) / math.cos(k))) elif t_m <= 1.02e-38: tmp = (2.0 * ((l / k) * (math.cos(k) / (t_2 * math.pow(t_m, 2.0))))) * (l * (t_m / k)) else: tmp = (l * ((2.0 / math.tan(k)) / (math.sin(k) * math.pow(t_m, 3.0)))) * (l / (2.0 + 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) t_2 = sin(k) ^ 2.0 tmp = 0.0 if (t_m <= 1.6e-156) tmp = Float64(2.0 / Float64(Float64(Float64(k * k) / (l ^ 2.0)) * Float64(Float64(t_m * t_2) / cos(k)))); elseif (t_m <= 1.02e-38) tmp = Float64(Float64(2.0 * Float64(Float64(l / k) * Float64(cos(k) / Float64(t_2 * (t_m ^ 2.0))))) * Float64(l * Float64(t_m / k))); else tmp = Float64(Float64(l * Float64(Float64(2.0 / tan(k)) / Float64(sin(k) * (t_m ^ 3.0)))) * Float64(l / Float64(2.0 + (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) t_2 = sin(k) ^ 2.0; tmp = 0.0; if (t_m <= 1.6e-156) tmp = 2.0 / (((k * k) / (l ^ 2.0)) * ((t_m * t_2) / cos(k))); elseif (t_m <= 1.02e-38) tmp = (2.0 * ((l / k) * (cos(k) / (t_2 * (t_m ^ 2.0))))) * (l * (t_m / k)); else tmp = (l * ((2.0 / tan(k)) / (sin(k) * (t_m ^ 3.0)))) * (l / (2.0 + ((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_] := Block[{t$95$2 = N[Power[N[Sin[k], $MachinePrecision], 2.0], $MachinePrecision]}, N[(t$95$s * If[LessEqual[t$95$m, 1.6e-156], N[(2.0 / N[(N[(N[(k * k), $MachinePrecision] / N[Power[l, 2.0], $MachinePrecision]), $MachinePrecision] * N[(N[(t$95$m * t$95$2), $MachinePrecision] / N[Cos[k], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$m, 1.02e-38], N[(N[(2.0 * N[(N[(l / k), $MachinePrecision] * N[(N[Cos[k], $MachinePrecision] / N[(t$95$2 * N[Power[t$95$m, 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(l * N[(t$95$m / k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(l * N[(N[(2.0 / N[Tan[k], $MachinePrecision]), $MachinePrecision] / N[(N[Sin[k], $MachinePrecision] * N[Power[t$95$m, 3.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(l / N[(2.0 + N[Power[N[(k / t$95$m), $MachinePrecision], 2.0], $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 := {\sin k}^{2}\\
t\_s \cdot \begin{array}{l}
\mathbf{if}\;t\_m \leq 1.6 \cdot 10^{-156}:\\
\;\;\;\;\frac{2}{\frac{k \cdot k}{{\ell}^{2}} \cdot \frac{t\_m \cdot t\_2}{\cos k}}\\
\mathbf{elif}\;t\_m \leq 1.02 \cdot 10^{-38}:\\
\;\;\;\;\left(2 \cdot \left(\frac{\ell}{k} \cdot \frac{\cos k}{t\_2 \cdot {t\_m}^{2}}\right)\right) \cdot \left(\ell \cdot \frac{t\_m}{k}\right)\\
\mathbf{else}:\\
\;\;\;\;\left(\ell \cdot \frac{\frac{2}{\tan k}}{\sin k \cdot {t\_m}^{3}}\right) \cdot \frac{\ell}{2 + {\left(\frac{k}{t\_m}\right)}^{2}}\\
\end{array}
\end{array}
\end{array}
if t < 1.59999999999999991e-156Initial program 61.9%
Simplified63.2%
add-sqr-sqrt7.1%
pow27.1%
associate-/r*6.5%
sqrt-div6.5%
sqrt-pow17.1%
metadata-eval7.1%
sqrt-prod1.9%
add-sqr-sqrt7.7%
Applied egg-rr7.7%
Taylor expanded in t around 0 70.5%
times-frac70.3%
Simplified70.3%
unpow270.3%
Applied egg-rr70.3%
if 1.59999999999999991e-156 < t < 1.01999999999999998e-38Initial program 54.2%
Simplified50.3%
associate-*r*54.9%
add-sqr-sqrt54.9%
times-frac55.1%
div-inv55.1%
frac-times55.1%
metadata-eval55.1%
Applied egg-rr55.1%
Simplified73.9%
Taylor expanded in k around inf 42.8%
times-frac42.7%
Simplified42.7%
Taylor expanded in k around inf 85.4%
associate-/l*85.4%
Simplified85.4%
if 1.01999999999999998e-38 < t Initial program 54.1%
Simplified53.9%
associate-*r*58.9%
*-un-lft-identity58.9%
times-frac58.9%
div-inv58.9%
frac-times58.9%
metadata-eval58.9%
Applied egg-rr58.9%
/-rgt-identity58.9%
*-commutative58.9%
associate-/r*58.9%
*-commutative58.9%
Simplified58.9%
Final simplification68.5%
t\_m = (fabs.f64 t)
t\_s = (copysign.f64 #s(literal 1 binary64) t)
(FPCore (t_s t_m l k)
:precision binary64
(let* ((t_2 (pow (sin k) 2.0)))
(*
t_s
(if (<= t_m 1.6e-156)
(/ 2.0 (* (/ (* k k) (pow l 2.0)) (/ (* t_m t_2) (cos k))))
(if (<= t_m 6.1e-12)
(*
(* 2.0 (* (/ l k) (/ (cos k) (* t_2 (pow t_m 2.0)))))
(* l (/ t_m k)))
(/
2.0
(* (* 2.0 (/ t_2 (cos k))) (* (/ (pow t_m 2.0) l) (/ t_m l)))))))))t\_m = fabs(t);
t\_s = copysign(1.0, t);
double code(double t_s, double t_m, double l, double k) {
double t_2 = pow(sin(k), 2.0);
double tmp;
if (t_m <= 1.6e-156) {
tmp = 2.0 / (((k * k) / pow(l, 2.0)) * ((t_m * t_2) / cos(k)));
} else if (t_m <= 6.1e-12) {
tmp = (2.0 * ((l / k) * (cos(k) / (t_2 * pow(t_m, 2.0))))) * (l * (t_m / k));
} else {
tmp = 2.0 / ((2.0 * (t_2 / cos(k))) * ((pow(t_m, 2.0) / l) * (t_m / l)));
}
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 = sin(k) ** 2.0d0
if (t_m <= 1.6d-156) then
tmp = 2.0d0 / (((k * k) / (l ** 2.0d0)) * ((t_m * t_2) / cos(k)))
else if (t_m <= 6.1d-12) then
tmp = (2.0d0 * ((l / k) * (cos(k) / (t_2 * (t_m ** 2.0d0))))) * (l * (t_m / k))
else
tmp = 2.0d0 / ((2.0d0 * (t_2 / cos(k))) * (((t_m ** 2.0d0) / l) * (t_m / l)))
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(Math.sin(k), 2.0);
double tmp;
if (t_m <= 1.6e-156) {
tmp = 2.0 / (((k * k) / Math.pow(l, 2.0)) * ((t_m * t_2) / Math.cos(k)));
} else if (t_m <= 6.1e-12) {
tmp = (2.0 * ((l / k) * (Math.cos(k) / (t_2 * Math.pow(t_m, 2.0))))) * (l * (t_m / k));
} else {
tmp = 2.0 / ((2.0 * (t_2 / Math.cos(k))) * ((Math.pow(t_m, 2.0) / l) * (t_m / l)));
}
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(math.sin(k), 2.0) tmp = 0 if t_m <= 1.6e-156: tmp = 2.0 / (((k * k) / math.pow(l, 2.0)) * ((t_m * t_2) / math.cos(k))) elif t_m <= 6.1e-12: tmp = (2.0 * ((l / k) * (math.cos(k) / (t_2 * math.pow(t_m, 2.0))))) * (l * (t_m / k)) else: tmp = 2.0 / ((2.0 * (t_2 / math.cos(k))) * ((math.pow(t_m, 2.0) / l) * (t_m / l))) return t_s * tmp
t\_m = abs(t) t\_s = copysign(1.0, t) function code(t_s, t_m, l, k) t_2 = sin(k) ^ 2.0 tmp = 0.0 if (t_m <= 1.6e-156) tmp = Float64(2.0 / Float64(Float64(Float64(k * k) / (l ^ 2.0)) * Float64(Float64(t_m * t_2) / cos(k)))); elseif (t_m <= 6.1e-12) tmp = Float64(Float64(2.0 * Float64(Float64(l / k) * Float64(cos(k) / Float64(t_2 * (t_m ^ 2.0))))) * Float64(l * Float64(t_m / k))); else tmp = Float64(2.0 / Float64(Float64(2.0 * Float64(t_2 / cos(k))) * Float64(Float64((t_m ^ 2.0) / l) * Float64(t_m / l)))); 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 = sin(k) ^ 2.0; tmp = 0.0; if (t_m <= 1.6e-156) tmp = 2.0 / (((k * k) / (l ^ 2.0)) * ((t_m * t_2) / cos(k))); elseif (t_m <= 6.1e-12) tmp = (2.0 * ((l / k) * (cos(k) / (t_2 * (t_m ^ 2.0))))) * (l * (t_m / k)); else tmp = 2.0 / ((2.0 * (t_2 / cos(k))) * (((t_m ^ 2.0) / l) * (t_m / l))); 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[Power[N[Sin[k], $MachinePrecision], 2.0], $MachinePrecision]}, N[(t$95$s * If[LessEqual[t$95$m, 1.6e-156], N[(2.0 / N[(N[(N[(k * k), $MachinePrecision] / N[Power[l, 2.0], $MachinePrecision]), $MachinePrecision] * N[(N[(t$95$m * t$95$2), $MachinePrecision] / N[Cos[k], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$m, 6.1e-12], N[(N[(2.0 * N[(N[(l / k), $MachinePrecision] * N[(N[Cos[k], $MachinePrecision] / N[(t$95$2 * N[Power[t$95$m, 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(l * N[(t$95$m / k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(2.0 / N[(N[(2.0 * N[(t$95$2 / N[Cos[k], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(N[(N[Power[t$95$m, 2.0], $MachinePrecision] / l), $MachinePrecision] * N[(t$95$m / l), $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 := {\sin k}^{2}\\
t\_s \cdot \begin{array}{l}
\mathbf{if}\;t\_m \leq 1.6 \cdot 10^{-156}:\\
\;\;\;\;\frac{2}{\frac{k \cdot k}{{\ell}^{2}} \cdot \frac{t\_m \cdot t\_2}{\cos k}}\\
\mathbf{elif}\;t\_m \leq 6.1 \cdot 10^{-12}:\\
\;\;\;\;\left(2 \cdot \left(\frac{\ell}{k} \cdot \frac{\cos k}{t\_2 \cdot {t\_m}^{2}}\right)\right) \cdot \left(\ell \cdot \frac{t\_m}{k}\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{2}{\left(2 \cdot \frac{t\_2}{\cos k}\right) \cdot \left(\frac{{t\_m}^{2}}{\ell} \cdot \frac{t\_m}{\ell}\right)}\\
\end{array}
\end{array}
\end{array}
if t < 1.59999999999999991e-156Initial program 61.9%
Simplified63.2%
add-sqr-sqrt7.1%
pow27.1%
associate-/r*6.5%
sqrt-div6.5%
sqrt-pow17.1%
metadata-eval7.1%
sqrt-prod1.9%
add-sqr-sqrt7.7%
Applied egg-rr7.7%
Taylor expanded in t around 0 70.5%
times-frac70.3%
Simplified70.3%
unpow270.3%
Applied egg-rr70.3%
if 1.59999999999999991e-156 < t < 6.1000000000000003e-12Initial program 58.9%
Simplified55.4%
associate-*r*59.6%
add-sqr-sqrt59.6%
times-frac59.8%
div-inv59.8%
frac-times59.8%
metadata-eval59.8%
Applied egg-rr59.8%
Simplified76.6%
Taylor expanded in k around inf 45.5%
times-frac45.4%
Simplified45.4%
Taylor expanded in k around inf 86.8%
associate-/l*86.8%
Simplified86.8%
if 6.1000000000000003e-12 < t Initial program 52.2%
Simplified47.1%
Taylor expanded in t around inf 45.4%
associate-/r*41.9%
unpow341.9%
times-frac55.0%
pow255.0%
Applied egg-rr55.0%
Final simplification67.8%
t\_m = (fabs.f64 t)
t\_s = (copysign.f64 #s(literal 1 binary64) t)
(FPCore (t_s t_m l k)
:precision binary64
(*
t_s
(if (<= k 7.6e-17)
(/ 2.0 (* (pow (/ t_m (pow (cbrt l) 2.0)) 3.0) (* 2.0 (* k k))))
(/
2.0
(* (/ (* k k) (pow l 2.0)) (/ (* t_m (pow (sin k) 2.0)) (cos k)))))))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 (k <= 7.6e-17) {
tmp = 2.0 / (pow((t_m / pow(cbrt(l), 2.0)), 3.0) * (2.0 * (k * k)));
} else {
tmp = 2.0 / (((k * k) / pow(l, 2.0)) * ((t_m * pow(sin(k), 2.0)) / cos(k)));
}
return t_s * tmp;
}
t\_m = Math.abs(t);
t\_s = Math.copySign(1.0, t);
public static double code(double t_s, double t_m, double l, double k) {
double tmp;
if (k <= 7.6e-17) {
tmp = 2.0 / (Math.pow((t_m / Math.pow(Math.cbrt(l), 2.0)), 3.0) * (2.0 * (k * k)));
} else {
tmp = 2.0 / (((k * k) / Math.pow(l, 2.0)) * ((t_m * Math.pow(Math.sin(k), 2.0)) / Math.cos(k)));
}
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 (k <= 7.6e-17) tmp = Float64(2.0 / Float64((Float64(t_m / (cbrt(l) ^ 2.0)) ^ 3.0) * Float64(2.0 * Float64(k * k)))); else tmp = Float64(2.0 / Float64(Float64(Float64(k * k) / (l ^ 2.0)) * Float64(Float64(t_m * (sin(k) ^ 2.0)) / cos(k)))); end return Float64(t_s * tmp) end
t\_m = N[Abs[t], $MachinePrecision]
t\_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[t]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
code[t$95$s_, t$95$m_, l_, k_] := N[(t$95$s * If[LessEqual[k, 7.6e-17], N[(2.0 / N[(N[Power[N[(t$95$m / N[Power[N[Power[l, 1/3], $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision], 3.0], $MachinePrecision] * N[(2.0 * N[(k * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(2.0 / N[(N[(N[(k * k), $MachinePrecision] / N[Power[l, 2.0], $MachinePrecision]), $MachinePrecision] * N[(N[(t$95$m * N[Power[N[Sin[k], $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision] / N[Cos[k], $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}\;k \leq 7.6 \cdot 10^{-17}:\\
\;\;\;\;\frac{2}{{\left(\frac{t\_m}{{\left(\sqrt[3]{\ell}\right)}^{2}}\right)}^{3} \cdot \left(2 \cdot \left(k \cdot k\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{2}{\frac{k \cdot k}{{\ell}^{2}} \cdot \frac{t\_m \cdot {\sin k}^{2}}{\cos k}}\\
\end{array}
\end{array}
if k < 7.6000000000000002e-17Initial program 57.8%
Simplified56.4%
Taylor expanded in k around 0 56.9%
add-cube-cbrt56.8%
pow356.8%
cbrt-prod56.8%
associate-/l/53.5%
pow253.5%
cbrt-div54.0%
unpow354.0%
add-cbrt-cube64.7%
pow264.7%
cbrt-unprod69.2%
pow269.2%
Applied egg-rr69.2%
cube-prod62.5%
rem-cube-cbrt62.5%
Simplified62.5%
unpow257.0%
Applied egg-rr62.5%
if 7.6000000000000002e-17 < k Initial program 61.7%
Simplified65.3%
add-sqr-sqrt25.1%
pow225.1%
associate-/r*23.2%
sqrt-div23.2%
sqrt-pow124.8%
metadata-eval24.8%
sqrt-prod7.8%
add-sqr-sqrt29.6%
Applied egg-rr29.6%
Taylor expanded in t around 0 77.2%
times-frac76.0%
Simplified76.0%
unpow276.0%
Applied egg-rr76.0%
t\_m = (fabs.f64 t)
t\_s = (copysign.f64 #s(literal 1 binary64) t)
(FPCore (t_s t_m l k)
:precision binary64
(*
t_s
(if (<= k 8.5e-17)
(/ 2.0 (* (pow (/ t_m (pow (cbrt l) 2.0)) 3.0) (* 2.0 (* k k))))
(/ 2.0 (* (/ (pow k 2.0) (pow l 2.0)) (/ (* t_m (pow k 2.0)) (cos k)))))))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 (k <= 8.5e-17) {
tmp = 2.0 / (pow((t_m / pow(cbrt(l), 2.0)), 3.0) * (2.0 * (k * k)));
} else {
tmp = 2.0 / ((pow(k, 2.0) / pow(l, 2.0)) * ((t_m * pow(k, 2.0)) / cos(k)));
}
return t_s * tmp;
}
t\_m = Math.abs(t);
t\_s = Math.copySign(1.0, t);
public static double code(double t_s, double t_m, double l, double k) {
double tmp;
if (k <= 8.5e-17) {
tmp = 2.0 / (Math.pow((t_m / Math.pow(Math.cbrt(l), 2.0)), 3.0) * (2.0 * (k * k)));
} else {
tmp = 2.0 / ((Math.pow(k, 2.0) / Math.pow(l, 2.0)) * ((t_m * Math.pow(k, 2.0)) / Math.cos(k)));
}
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 (k <= 8.5e-17) tmp = Float64(2.0 / Float64((Float64(t_m / (cbrt(l) ^ 2.0)) ^ 3.0) * Float64(2.0 * Float64(k * k)))); else tmp = Float64(2.0 / Float64(Float64((k ^ 2.0) / (l ^ 2.0)) * Float64(Float64(t_m * (k ^ 2.0)) / cos(k)))); end return Float64(t_s * tmp) end
t\_m = N[Abs[t], $MachinePrecision]
t\_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[t]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
code[t$95$s_, t$95$m_, l_, k_] := N[(t$95$s * If[LessEqual[k, 8.5e-17], N[(2.0 / N[(N[Power[N[(t$95$m / N[Power[N[Power[l, 1/3], $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision], 3.0], $MachinePrecision] * N[(2.0 * N[(k * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(2.0 / N[(N[(N[Power[k, 2.0], $MachinePrecision] / N[Power[l, 2.0], $MachinePrecision]), $MachinePrecision] * N[(N[(t$95$m * N[Power[k, 2.0], $MachinePrecision]), $MachinePrecision] / N[Cos[k], $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}\;k \leq 8.5 \cdot 10^{-17}:\\
\;\;\;\;\frac{2}{{\left(\frac{t\_m}{{\left(\sqrt[3]{\ell}\right)}^{2}}\right)}^{3} \cdot \left(2 \cdot \left(k \cdot k\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{2}{\frac{{k}^{2}}{{\ell}^{2}} \cdot \frac{t\_m \cdot {k}^{2}}{\cos k}}\\
\end{array}
\end{array}
if k < 8.5e-17Initial program 57.8%
Simplified56.4%
Taylor expanded in k around 0 56.9%
add-cube-cbrt56.8%
pow356.8%
cbrt-prod56.8%
associate-/l/53.5%
pow253.5%
cbrt-div54.0%
unpow354.0%
add-cbrt-cube64.7%
pow264.7%
cbrt-unprod69.2%
pow269.2%
Applied egg-rr69.2%
cube-prod62.5%
rem-cube-cbrt62.5%
Simplified62.5%
unpow257.0%
Applied egg-rr62.5%
if 8.5e-17 < k Initial program 61.7%
Simplified65.3%
add-sqr-sqrt25.1%
pow225.1%
associate-/r*23.2%
sqrt-div23.2%
sqrt-pow124.8%
metadata-eval24.8%
sqrt-prod7.8%
add-sqr-sqrt29.6%
Applied egg-rr29.6%
Taylor expanded in t around 0 77.2%
times-frac76.0%
Simplified76.0%
Taylor expanded in k around 0 70.0%
Final simplification64.4%
t\_m = (fabs.f64 t)
t\_s = (copysign.f64 #s(literal 1 binary64) t)
(FPCore (t_s t_m l k)
:precision binary64
(let* ((t_2 (* 2.0 (pow k 2.0))))
(*
t_s
(if (<= t_m 7.8e-125)
(/ (* 2.0 (pow l 2.0)) (* (pow k 3.0) (* t_m (sin k))))
(if (<= t_m 1.15e+95)
(/ 2.0 (* (pow t_m 3.0) (/ (/ t_2 l) l)))
(/ 2.0 (* t_2 (pow (/ t_m (pow l 0.6666666666666666)) 3.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 = 2.0 * pow(k, 2.0);
double tmp;
if (t_m <= 7.8e-125) {
tmp = (2.0 * pow(l, 2.0)) / (pow(k, 3.0) * (t_m * sin(k)));
} else if (t_m <= 1.15e+95) {
tmp = 2.0 / (pow(t_m, 3.0) * ((t_2 / l) / l));
} else {
tmp = 2.0 / (t_2 * pow((t_m / pow(l, 0.6666666666666666)), 3.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 = 2.0d0 * (k ** 2.0d0)
if (t_m <= 7.8d-125) then
tmp = (2.0d0 * (l ** 2.0d0)) / ((k ** 3.0d0) * (t_m * sin(k)))
else if (t_m <= 1.15d+95) then
tmp = 2.0d0 / ((t_m ** 3.0d0) * ((t_2 / l) / l))
else
tmp = 2.0d0 / (t_2 * ((t_m / (l ** 0.6666666666666666d0)) ** 3.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 = 2.0 * Math.pow(k, 2.0);
double tmp;
if (t_m <= 7.8e-125) {
tmp = (2.0 * Math.pow(l, 2.0)) / (Math.pow(k, 3.0) * (t_m * Math.sin(k)));
} else if (t_m <= 1.15e+95) {
tmp = 2.0 / (Math.pow(t_m, 3.0) * ((t_2 / l) / l));
} else {
tmp = 2.0 / (t_2 * Math.pow((t_m / Math.pow(l, 0.6666666666666666)), 3.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 = 2.0 * math.pow(k, 2.0) tmp = 0 if t_m <= 7.8e-125: tmp = (2.0 * math.pow(l, 2.0)) / (math.pow(k, 3.0) * (t_m * math.sin(k))) elif t_m <= 1.15e+95: tmp = 2.0 / (math.pow(t_m, 3.0) * ((t_2 / l) / l)) else: tmp = 2.0 / (t_2 * math.pow((t_m / math.pow(l, 0.6666666666666666)), 3.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(2.0 * (k ^ 2.0)) tmp = 0.0 if (t_m <= 7.8e-125) tmp = Float64(Float64(2.0 * (l ^ 2.0)) / Float64((k ^ 3.0) * Float64(t_m * sin(k)))); elseif (t_m <= 1.15e+95) tmp = Float64(2.0 / Float64((t_m ^ 3.0) * Float64(Float64(t_2 / l) / l))); else tmp = Float64(2.0 / Float64(t_2 * (Float64(t_m / (l ^ 0.6666666666666666)) ^ 3.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 = 2.0 * (k ^ 2.0); tmp = 0.0; if (t_m <= 7.8e-125) tmp = (2.0 * (l ^ 2.0)) / ((k ^ 3.0) * (t_m * sin(k))); elseif (t_m <= 1.15e+95) tmp = 2.0 / ((t_m ^ 3.0) * ((t_2 / l) / l)); else tmp = 2.0 / (t_2 * ((t_m / (l ^ 0.6666666666666666)) ^ 3.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[(2.0 * N[Power[k, 2.0], $MachinePrecision]), $MachinePrecision]}, N[(t$95$s * If[LessEqual[t$95$m, 7.8e-125], N[(N[(2.0 * N[Power[l, 2.0], $MachinePrecision]), $MachinePrecision] / N[(N[Power[k, 3.0], $MachinePrecision] * N[(t$95$m * N[Sin[k], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$m, 1.15e+95], N[(2.0 / N[(N[Power[t$95$m, 3.0], $MachinePrecision] * N[(N[(t$95$2 / l), $MachinePrecision] / l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(2.0 / N[(t$95$2 * N[Power[N[(t$95$m / N[Power[l, 0.6666666666666666], $MachinePrecision]), $MachinePrecision], 3.0], $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 := 2 \cdot {k}^{2}\\
t\_s \cdot \begin{array}{l}
\mathbf{if}\;t\_m \leq 7.8 \cdot 10^{-125}:\\
\;\;\;\;\frac{2 \cdot {\ell}^{2}}{{k}^{3} \cdot \left(t\_m \cdot \sin k\right)}\\
\mathbf{elif}\;t\_m \leq 1.15 \cdot 10^{+95}:\\
\;\;\;\;\frac{2}{{t\_m}^{3} \cdot \frac{\frac{t\_2}{\ell}}{\ell}}\\
\mathbf{else}:\\
\;\;\;\;\frac{2}{t\_2 \cdot {\left(\frac{t\_m}{{\ell}^{0.6666666666666666}}\right)}^{3}}\\
\end{array}
\end{array}
\end{array}
if t < 7.79999999999999965e-125Initial program 61.4%
Simplified61.7%
Taylor expanded in k around 0 60.0%
Taylor expanded in k around inf 65.7%
associate-*r/65.7%
Simplified65.7%
if 7.79999999999999965e-125 < t < 1.14999999999999999e95Initial program 66.4%
Simplified64.2%
Taylor expanded in k around 0 54.9%
associate-*l/56.8%
Applied egg-rr56.8%
associate-/l*61.2%
Simplified61.2%
associate-*l/59.2%
associate-/l*59.2%
Applied egg-rr59.2%
associate-/l*61.4%
associate-*r/61.4%
Simplified61.4%
if 1.14999999999999999e95 < t Initial program 45.3%
Simplified42.1%
Taylor expanded in k around 0 42.1%
add-cube-cbrt42.1%
pow342.1%
cbrt-prod42.1%
associate-/l/37.5%
pow237.5%
cbrt-div37.5%
unpow337.5%
add-cbrt-cube56.2%
pow256.2%
cbrt-unprod65.6%
pow265.6%
Applied egg-rr65.6%
cube-prod56.6%
rem-cube-cbrt56.6%
Simplified56.6%
add-exp-log56.2%
log-pow20.8%
Applied egg-rr20.8%
*-commutative20.8%
exp-to-pow56.6%
pow256.6%
pow1/320.9%
pow1/320.8%
pow-prod-up20.8%
metadata-eval20.8%
Applied egg-rr20.8%
Final simplification55.5%
t\_m = (fabs.f64 t)
t\_s = (copysign.f64 #s(literal 1 binary64) t)
(FPCore (t_s t_m l k)
:precision binary64
(*
t_s
(if (<= k 1.95e-16)
(/ 2.0 (* (pow (/ t_m (pow (cbrt l) 2.0)) 3.0) (* 2.0 (* k k))))
(/ (* 2.0 (pow l 2.0)) (* (pow k 3.0) (* t_m (sin k)))))))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 (k <= 1.95e-16) {
tmp = 2.0 / (pow((t_m / pow(cbrt(l), 2.0)), 3.0) * (2.0 * (k * k)));
} else {
tmp = (2.0 * pow(l, 2.0)) / (pow(k, 3.0) * (t_m * sin(k)));
}
return t_s * tmp;
}
t\_m = Math.abs(t);
t\_s = Math.copySign(1.0, t);
public static double code(double t_s, double t_m, double l, double k) {
double tmp;
if (k <= 1.95e-16) {
tmp = 2.0 / (Math.pow((t_m / Math.pow(Math.cbrt(l), 2.0)), 3.0) * (2.0 * (k * k)));
} else {
tmp = (2.0 * Math.pow(l, 2.0)) / (Math.pow(k, 3.0) * (t_m * Math.sin(k)));
}
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 (k <= 1.95e-16) tmp = Float64(2.0 / Float64((Float64(t_m / (cbrt(l) ^ 2.0)) ^ 3.0) * Float64(2.0 * Float64(k * k)))); else tmp = Float64(Float64(2.0 * (l ^ 2.0)) / Float64((k ^ 3.0) * Float64(t_m * sin(k)))); end return Float64(t_s * tmp) end
t\_m = N[Abs[t], $MachinePrecision]
t\_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[t]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
code[t$95$s_, t$95$m_, l_, k_] := N[(t$95$s * If[LessEqual[k, 1.95e-16], N[(2.0 / N[(N[Power[N[(t$95$m / N[Power[N[Power[l, 1/3], $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision], 3.0], $MachinePrecision] * N[(2.0 * N[(k * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(2.0 * N[Power[l, 2.0], $MachinePrecision]), $MachinePrecision] / N[(N[Power[k, 3.0], $MachinePrecision] * N[(t$95$m * N[Sin[k], $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}\;k \leq 1.95 \cdot 10^{-16}:\\
\;\;\;\;\frac{2}{{\left(\frac{t\_m}{{\left(\sqrt[3]{\ell}\right)}^{2}}\right)}^{3} \cdot \left(2 \cdot \left(k \cdot k\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{2 \cdot {\ell}^{2}}{{k}^{3} \cdot \left(t\_m \cdot \sin k\right)}\\
\end{array}
\end{array}
if k < 1.94999999999999989e-16Initial program 57.8%
Simplified56.4%
Taylor expanded in k around 0 56.9%
add-cube-cbrt56.8%
pow356.8%
cbrt-prod56.8%
associate-/l/53.5%
pow253.5%
cbrt-div54.0%
unpow354.0%
add-cbrt-cube64.7%
pow264.7%
cbrt-unprod69.2%
pow269.2%
Applied egg-rr69.2%
cube-prod62.5%
rem-cube-cbrt62.5%
Simplified62.5%
unpow257.0%
Applied egg-rr62.5%
if 1.94999999999999989e-16 < k Initial program 61.7%
Simplified61.7%
Taylor expanded in k around 0 57.3%
Taylor expanded in k around inf 69.8%
associate-*r/69.8%
Simplified69.8%
t\_m = (fabs.f64 t)
t\_s = (copysign.f64 #s(literal 1 binary64) t)
(FPCore (t_s t_m l k)
:precision binary64
(*
t_s
(if (<= k 1.95e-16)
(/ 2.0 (* (* 2.0 (pow k 2.0)) (pow (/ (pow t_m 1.5) l) 2.0)))
(/ (* 2.0 (pow l 2.0)) (* (pow k 3.0) (* t_m (sin k)))))))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 (k <= 1.95e-16) {
tmp = 2.0 / ((2.0 * pow(k, 2.0)) * pow((pow(t_m, 1.5) / l), 2.0));
} else {
tmp = (2.0 * pow(l, 2.0)) / (pow(k, 3.0) * (t_m * sin(k)));
}
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 (k <= 1.95d-16) then
tmp = 2.0d0 / ((2.0d0 * (k ** 2.0d0)) * (((t_m ** 1.5d0) / l) ** 2.0d0))
else
tmp = (2.0d0 * (l ** 2.0d0)) / ((k ** 3.0d0) * (t_m * sin(k)))
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 (k <= 1.95e-16) {
tmp = 2.0 / ((2.0 * Math.pow(k, 2.0)) * Math.pow((Math.pow(t_m, 1.5) / l), 2.0));
} else {
tmp = (2.0 * Math.pow(l, 2.0)) / (Math.pow(k, 3.0) * (t_m * Math.sin(k)));
}
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 k <= 1.95e-16: tmp = 2.0 / ((2.0 * math.pow(k, 2.0)) * math.pow((math.pow(t_m, 1.5) / l), 2.0)) else: tmp = (2.0 * math.pow(l, 2.0)) / (math.pow(k, 3.0) * (t_m * math.sin(k))) 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 (k <= 1.95e-16) tmp = Float64(2.0 / Float64(Float64(2.0 * (k ^ 2.0)) * (Float64((t_m ^ 1.5) / l) ^ 2.0))); else tmp = Float64(Float64(2.0 * (l ^ 2.0)) / Float64((k ^ 3.0) * Float64(t_m * sin(k)))); 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 (k <= 1.95e-16) tmp = 2.0 / ((2.0 * (k ^ 2.0)) * (((t_m ^ 1.5) / l) ^ 2.0)); else tmp = (2.0 * (l ^ 2.0)) / ((k ^ 3.0) * (t_m * sin(k))); 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[k, 1.95e-16], N[(2.0 / N[(N[(2.0 * N[Power[k, 2.0], $MachinePrecision]), $MachinePrecision] * N[Power[N[(N[Power[t$95$m, 1.5], $MachinePrecision] / l), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(2.0 * N[Power[l, 2.0], $MachinePrecision]), $MachinePrecision] / N[(N[Power[k, 3.0], $MachinePrecision] * N[(t$95$m * N[Sin[k], $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}\;k \leq 1.95 \cdot 10^{-16}:\\
\;\;\;\;\frac{2}{\left(2 \cdot {k}^{2}\right) \cdot {\left(\frac{{t\_m}^{1.5}}{\ell}\right)}^{2}}\\
\mathbf{else}:\\
\;\;\;\;\frac{2 \cdot {\ell}^{2}}{{k}^{3} \cdot \left(t\_m \cdot \sin k\right)}\\
\end{array}
\end{array}
if k < 1.94999999999999989e-16Initial program 57.8%
Simplified56.4%
Taylor expanded in k around 0 56.9%
add-sqr-sqrt24.5%
pow224.5%
associate-/r*22.7%
sqrt-div22.7%
sqrt-pow126.9%
metadata-eval26.9%
sqrt-prod13.2%
add-sqr-sqrt30.6%
Applied egg-rr28.3%
if 1.94999999999999989e-16 < k Initial program 61.7%
Simplified61.7%
Taylor expanded in k around 0 57.3%
Taylor expanded in k around inf 69.8%
associate-*r/69.8%
Simplified69.8%
Final simplification38.8%
t\_m = (fabs.f64 t)
t\_s = (copysign.f64 #s(literal 1 binary64) t)
(FPCore (t_s t_m l k)
:precision binary64
(*
t_s
(if (<= t_m 7.8e-125)
(/ (* 2.0 (pow l 2.0)) (* (pow k 3.0) (* t_m (sin k))))
(if (<= t_m 1.35e+151)
(/ 2.0 (* (* t_m (/ (pow t_m 2.0) l)) (/ (* 2.0 (* k k)) l)))
(/
(* (* l l) (/ (/ 2.0 k) (* k (pow t_m 3.0))))
(+ 2.0 (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 <= 7.8e-125) {
tmp = (2.0 * pow(l, 2.0)) / (pow(k, 3.0) * (t_m * sin(k)));
} else if (t_m <= 1.35e+151) {
tmp = 2.0 / ((t_m * (pow(t_m, 2.0) / l)) * ((2.0 * (k * k)) / l));
} else {
tmp = ((l * l) * ((2.0 / k) / (k * pow(t_m, 3.0)))) / (2.0 + 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 <= 7.8d-125) then
tmp = (2.0d0 * (l ** 2.0d0)) / ((k ** 3.0d0) * (t_m * sin(k)))
else if (t_m <= 1.35d+151) then
tmp = 2.0d0 / ((t_m * ((t_m ** 2.0d0) / l)) * ((2.0d0 * (k * k)) / l))
else
tmp = ((l * l) * ((2.0d0 / k) / (k * (t_m ** 3.0d0)))) / (2.0d0 + ((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 <= 7.8e-125) {
tmp = (2.0 * Math.pow(l, 2.0)) / (Math.pow(k, 3.0) * (t_m * Math.sin(k)));
} else if (t_m <= 1.35e+151) {
tmp = 2.0 / ((t_m * (Math.pow(t_m, 2.0) / l)) * ((2.0 * (k * k)) / l));
} else {
tmp = ((l * l) * ((2.0 / k) / (k * Math.pow(t_m, 3.0)))) / (2.0 + 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 <= 7.8e-125: tmp = (2.0 * math.pow(l, 2.0)) / (math.pow(k, 3.0) * (t_m * math.sin(k))) elif t_m <= 1.35e+151: tmp = 2.0 / ((t_m * (math.pow(t_m, 2.0) / l)) * ((2.0 * (k * k)) / l)) else: tmp = ((l * l) * ((2.0 / k) / (k * math.pow(t_m, 3.0)))) / (2.0 + 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 <= 7.8e-125) tmp = Float64(Float64(2.0 * (l ^ 2.0)) / Float64((k ^ 3.0) * Float64(t_m * sin(k)))); elseif (t_m <= 1.35e+151) tmp = Float64(2.0 / Float64(Float64(t_m * Float64((t_m ^ 2.0) / l)) * Float64(Float64(2.0 * Float64(k * k)) / l))); else tmp = Float64(Float64(Float64(l * l) * Float64(Float64(2.0 / k) / Float64(k * (t_m ^ 3.0)))) / Float64(2.0 + (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 <= 7.8e-125) tmp = (2.0 * (l ^ 2.0)) / ((k ^ 3.0) * (t_m * sin(k))); elseif (t_m <= 1.35e+151) tmp = 2.0 / ((t_m * ((t_m ^ 2.0) / l)) * ((2.0 * (k * k)) / l)); else tmp = ((l * l) * ((2.0 / k) / (k * (t_m ^ 3.0)))) / (2.0 + ((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[LessEqual[t$95$m, 7.8e-125], N[(N[(2.0 * N[Power[l, 2.0], $MachinePrecision]), $MachinePrecision] / N[(N[Power[k, 3.0], $MachinePrecision] * N[(t$95$m * N[Sin[k], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$m, 1.35e+151], N[(2.0 / N[(N[(t$95$m * N[(N[Power[t$95$m, 2.0], $MachinePrecision] / l), $MachinePrecision]), $MachinePrecision] * N[(N[(2.0 * N[(k * k), $MachinePrecision]), $MachinePrecision] / l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[(l * l), $MachinePrecision] * N[(N[(2.0 / k), $MachinePrecision] / N[(k * N[Power[t$95$m, 3.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(2.0 + N[Power[N[(k / t$95$m), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]), $MachinePrecision]
\begin{array}{l}
t\_m = \left|t\right|
\\
t\_s = \mathsf{copysign}\left(1, t\right)
\\
t\_s \cdot \begin{array}{l}
\mathbf{if}\;t\_m \leq 7.8 \cdot 10^{-125}:\\
\;\;\;\;\frac{2 \cdot {\ell}^{2}}{{k}^{3} \cdot \left(t\_m \cdot \sin k\right)}\\
\mathbf{elif}\;t\_m \leq 1.35 \cdot 10^{+151}:\\
\;\;\;\;\frac{2}{\left(t\_m \cdot \frac{{t\_m}^{2}}{\ell}\right) \cdot \frac{2 \cdot \left(k \cdot k\right)}{\ell}}\\
\mathbf{else}:\\
\;\;\;\;\frac{\left(\ell \cdot \ell\right) \cdot \frac{\frac{2}{k}}{k \cdot {t\_m}^{3}}}{2 + {\left(\frac{k}{t\_m}\right)}^{2}}\\
\end{array}
\end{array}
if t < 7.79999999999999965e-125Initial program 61.4%
Simplified61.7%
Taylor expanded in k around 0 60.0%
Taylor expanded in k around inf 65.7%
associate-*r/65.7%
Simplified65.7%
if 7.79999999999999965e-125 < t < 1.3500000000000001e151Initial program 58.2%
Simplified55.2%
Taylor expanded in k around 0 48.7%
associate-*l/50.0%
Applied egg-rr50.0%
associate-/l*53.1%
Simplified53.1%
unpow252.3%
Applied egg-rr53.1%
cube-mult53.1%
*-un-lft-identity53.1%
times-frac61.5%
pow261.5%
Applied egg-rr61.5%
if 1.3500000000000001e151 < t Initial program 48.1%
Simplified48.1%
Taylor expanded in k around 0 48.1%
Taylor expanded in k around 0 48.1%
Final simplification62.3%
t\_m = (fabs.f64 t)
t\_s = (copysign.f64 #s(literal 1 binary64) t)
(FPCore (t_s t_m l k)
:precision binary64
(*
t_s
(if (<= t_m 2e-94)
(/ 2.0 (* (pow k 4.0) (/ t_m (pow l 2.0))))
(if (<= t_m 3.9e+151)
(/ 2.0 (* (* t_m (/ (pow t_m 2.0) l)) (/ (* 2.0 (* k k)) l)))
(/
(* (* l l) (/ (/ 2.0 k) (* k (pow t_m 3.0))))
(+ 2.0 (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 <= 2e-94) {
tmp = 2.0 / (pow(k, 4.0) * (t_m / pow(l, 2.0)));
} else if (t_m <= 3.9e+151) {
tmp = 2.0 / ((t_m * (pow(t_m, 2.0) / l)) * ((2.0 * (k * k)) / l));
} else {
tmp = ((l * l) * ((2.0 / k) / (k * pow(t_m, 3.0)))) / (2.0 + 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 <= 2d-94) then
tmp = 2.0d0 / ((k ** 4.0d0) * (t_m / (l ** 2.0d0)))
else if (t_m <= 3.9d+151) then
tmp = 2.0d0 / ((t_m * ((t_m ** 2.0d0) / l)) * ((2.0d0 * (k * k)) / l))
else
tmp = ((l * l) * ((2.0d0 / k) / (k * (t_m ** 3.0d0)))) / (2.0d0 + ((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 <= 2e-94) {
tmp = 2.0 / (Math.pow(k, 4.0) * (t_m / Math.pow(l, 2.0)));
} else if (t_m <= 3.9e+151) {
tmp = 2.0 / ((t_m * (Math.pow(t_m, 2.0) / l)) * ((2.0 * (k * k)) / l));
} else {
tmp = ((l * l) * ((2.0 / k) / (k * Math.pow(t_m, 3.0)))) / (2.0 + 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 <= 2e-94: tmp = 2.0 / (math.pow(k, 4.0) * (t_m / math.pow(l, 2.0))) elif t_m <= 3.9e+151: tmp = 2.0 / ((t_m * (math.pow(t_m, 2.0) / l)) * ((2.0 * (k * k)) / l)) else: tmp = ((l * l) * ((2.0 / k) / (k * math.pow(t_m, 3.0)))) / (2.0 + 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 <= 2e-94) tmp = Float64(2.0 / Float64((k ^ 4.0) * Float64(t_m / (l ^ 2.0)))); elseif (t_m <= 3.9e+151) tmp = Float64(2.0 / Float64(Float64(t_m * Float64((t_m ^ 2.0) / l)) * Float64(Float64(2.0 * Float64(k * k)) / l))); else tmp = Float64(Float64(Float64(l * l) * Float64(Float64(2.0 / k) / Float64(k * (t_m ^ 3.0)))) / Float64(2.0 + (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 <= 2e-94) tmp = 2.0 / ((k ^ 4.0) * (t_m / (l ^ 2.0))); elseif (t_m <= 3.9e+151) tmp = 2.0 / ((t_m * ((t_m ^ 2.0) / l)) * ((2.0 * (k * k)) / l)); else tmp = ((l * l) * ((2.0 / k) / (k * (t_m ^ 3.0)))) / (2.0 + ((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[LessEqual[t$95$m, 2e-94], N[(2.0 / N[(N[Power[k, 4.0], $MachinePrecision] * N[(t$95$m / N[Power[l, 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$m, 3.9e+151], N[(2.0 / N[(N[(t$95$m * N[(N[Power[t$95$m, 2.0], $MachinePrecision] / l), $MachinePrecision]), $MachinePrecision] * N[(N[(2.0 * N[(k * k), $MachinePrecision]), $MachinePrecision] / l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[(l * l), $MachinePrecision] * N[(N[(2.0 / k), $MachinePrecision] / N[(k * N[Power[t$95$m, 3.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(2.0 + N[Power[N[(k / t$95$m), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]), $MachinePrecision]
\begin{array}{l}
t\_m = \left|t\right|
\\
t\_s = \mathsf{copysign}\left(1, t\right)
\\
t\_s \cdot \begin{array}{l}
\mathbf{if}\;t\_m \leq 2 \cdot 10^{-94}:\\
\;\;\;\;\frac{2}{{k}^{4} \cdot \frac{t\_m}{{\ell}^{2}}}\\
\mathbf{elif}\;t\_m \leq 3.9 \cdot 10^{+151}:\\
\;\;\;\;\frac{2}{\left(t\_m \cdot \frac{{t\_m}^{2}}{\ell}\right) \cdot \frac{2 \cdot \left(k \cdot k\right)}{\ell}}\\
\mathbf{else}:\\
\;\;\;\;\frac{\left(\ell \cdot \ell\right) \cdot \frac{\frac{2}{k}}{k \cdot {t\_m}^{3}}}{2 + {\left(\frac{k}{t\_m}\right)}^{2}}\\
\end{array}
\end{array}
if t < 1.9999999999999999e-94Initial program 60.8%
Simplified62.1%
add-sqr-sqrt9.7%
pow29.7%
associate-/r*9.0%
sqrt-div9.0%
sqrt-pow110.8%
metadata-eval10.8%
sqrt-prod3.6%
add-sqr-sqrt11.5%
Applied egg-rr11.5%
Taylor expanded in t around 0 70.7%
times-frac70.5%
Simplified70.5%
Taylor expanded in k around 0 63.1%
associate-/l*63.8%
Simplified63.8%
if 1.9999999999999999e-94 < t < 3.89999999999999976e151Initial program 59.9%
Simplified56.5%
Taylor expanded in k around 0 47.6%
associate-*l/49.0%
Applied egg-rr49.0%
associate-/l*52.4%
Simplified52.4%
unpow251.5%
Applied egg-rr52.4%
cube-mult52.4%
*-un-lft-identity52.4%
times-frac61.6%
pow261.6%
Applied egg-rr61.6%
if 3.89999999999999976e151 < t Initial program 48.1%
Simplified48.1%
Taylor expanded in k around 0 48.1%
Taylor expanded in k around 0 48.1%
Final simplification61.1%
t\_m = (fabs.f64 t)
t\_s = (copysign.f64 #s(literal 1 binary64) t)
(FPCore (t_s t_m l k)
:precision binary64
(*
t_s
(if (<= k 3.5e+91)
(/ 2.0 (* (* t_m (/ (pow t_m 2.0) l)) (/ (* 2.0 (* k k)) l)))
(/ 2.0 (* (pow k 4.0) (/ t_m (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) {
double tmp;
if (k <= 3.5e+91) {
tmp = 2.0 / ((t_m * (pow(t_m, 2.0) / l)) * ((2.0 * (k * k)) / l));
} else {
tmp = 2.0 / (pow(k, 4.0) * (t_m / pow(l, 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 (k <= 3.5d+91) then
tmp = 2.0d0 / ((t_m * ((t_m ** 2.0d0) / l)) * ((2.0d0 * (k * k)) / l))
else
tmp = 2.0d0 / ((k ** 4.0d0) * (t_m / (l ** 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 (k <= 3.5e+91) {
tmp = 2.0 / ((t_m * (Math.pow(t_m, 2.0) / l)) * ((2.0 * (k * k)) / l));
} else {
tmp = 2.0 / (Math.pow(k, 4.0) * (t_m / Math.pow(l, 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 k <= 3.5e+91: tmp = 2.0 / ((t_m * (math.pow(t_m, 2.0) / l)) * ((2.0 * (k * k)) / l)) else: tmp = 2.0 / (math.pow(k, 4.0) * (t_m / math.pow(l, 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 (k <= 3.5e+91) tmp = Float64(2.0 / Float64(Float64(t_m * Float64((t_m ^ 2.0) / l)) * Float64(Float64(2.0 * Float64(k * k)) / l))); else tmp = Float64(2.0 / Float64((k ^ 4.0) * Float64(t_m / (l ^ 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 (k <= 3.5e+91) tmp = 2.0 / ((t_m * ((t_m ^ 2.0) / l)) * ((2.0 * (k * k)) / l)); else tmp = 2.0 / ((k ^ 4.0) * (t_m / (l ^ 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[k, 3.5e+91], N[(2.0 / N[(N[(t$95$m * N[(N[Power[t$95$m, 2.0], $MachinePrecision] / l), $MachinePrecision]), $MachinePrecision] * N[(N[(2.0 * N[(k * k), $MachinePrecision]), $MachinePrecision] / l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(2.0 / N[(N[Power[k, 4.0], $MachinePrecision] * N[(t$95$m / N[Power[l, 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]), $MachinePrecision]
\begin{array}{l}
t\_m = \left|t\right|
\\
t\_s = \mathsf{copysign}\left(1, t\right)
\\
t\_s \cdot \begin{array}{l}
\mathbf{if}\;k \leq 3.5 \cdot 10^{+91}:\\
\;\;\;\;\frac{2}{\left(t\_m \cdot \frac{{t\_m}^{2}}{\ell}\right) \cdot \frac{2 \cdot \left(k \cdot k\right)}{\ell}}\\
\mathbf{else}:\\
\;\;\;\;\frac{2}{{k}^{4} \cdot \frac{t\_m}{{\ell}^{2}}}\\
\end{array}
\end{array}
if k < 3.50000000000000001e91Initial program 58.9%
Simplified58.1%
Taylor expanded in k around 0 59.1%
associate-*l/59.9%
Applied egg-rr59.9%
associate-/l*59.7%
Simplified59.7%
unpow258.7%
Applied egg-rr59.7%
cube-mult59.7%
*-un-lft-identity59.7%
times-frac63.5%
pow263.5%
Applied egg-rr63.5%
if 3.50000000000000001e91 < k Initial program 58.6%
Simplified61.1%
add-sqr-sqrt23.5%
pow223.5%
associate-/r*23.1%
sqrt-div23.1%
sqrt-pow125.2%
metadata-eval25.2%
sqrt-prod8.5%
add-sqr-sqrt29.5%
Applied egg-rr29.5%
Taylor expanded in t around 0 77.3%
times-frac75.5%
Simplified75.5%
Taylor expanded in k around 0 67.3%
associate-/l*67.3%
Simplified67.3%
Final simplification64.2%
t\_m = (fabs.f64 t) t\_s = (copysign.f64 #s(literal 1 binary64) t) (FPCore (t_s t_m l k) :precision binary64 (* t_s (/ 2.0 (* (* t_m (/ (pow t_m 2.0) l)) (/ (* 2.0 (* k k)) l)))))
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(t_m, 2.0) / l)) * ((2.0 * (k * k)) / l)));
}
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 * ((t_m ** 2.0d0) / l)) * ((2.0d0 * (k * k)) / l)))
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(t_m, 2.0) / l)) * ((2.0 * (k * k)) / l)));
}
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(t_m, 2.0) / l)) * ((2.0 * (k * k)) / l)))
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 * Float64((t_m ^ 2.0) / l)) * Float64(Float64(2.0 * Float64(k * k)) / l)))) 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 * ((t_m ^ 2.0) / l)) * ((2.0 * (k * k)) / l))); 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[(N[Power[t$95$m, 2.0], $MachinePrecision] / l), $MachinePrecision]), $MachinePrecision] * N[(N[(2.0 * N[(k * k), $MachinePrecision]), $MachinePrecision] / l), $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}{\left(t\_m \cdot \frac{{t\_m}^{2}}{\ell}\right) \cdot \frac{2 \cdot \left(k \cdot k\right)}{\ell}}
\end{array}
Initial program 58.8%
Simplified58.6%
Taylor expanded in k around 0 58.3%
associate-*l/59.1%
Applied egg-rr59.1%
associate-/l*58.8%
Simplified58.8%
unpow261.8%
Applied egg-rr58.8%
cube-mult58.9%
*-un-lft-identity58.9%
times-frac62.8%
pow262.8%
Applied egg-rr62.8%
Final simplification62.8%
t\_m = (fabs.f64 t) t\_s = (copysign.f64 #s(literal 1 binary64) t) (FPCore (t_s t_m l k) :precision binary64 (* t_s (/ 2.0 (* (/ (* 2.0 (* k k)) l) (/ (* t_m (pow t_m 2.0)) l)))))
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 / (((2.0 * (k * k)) / l) * ((t_m * pow(t_m, 2.0)) / l)));
}
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 / (((2.0d0 * (k * k)) / l) * ((t_m * (t_m ** 2.0d0)) / l)))
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 / (((2.0 * (k * k)) / l) * ((t_m * Math.pow(t_m, 2.0)) / l)));
}
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 / (((2.0 * (k * k)) / l) * ((t_m * math.pow(t_m, 2.0)) / l)))
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(Float64(2.0 * Float64(k * k)) / l) * Float64(Float64(t_m * (t_m ^ 2.0)) / l)))) 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 / (((2.0 * (k * k)) / l) * ((t_m * (t_m ^ 2.0)) / l))); 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[(2.0 * N[(k * k), $MachinePrecision]), $MachinePrecision] / l), $MachinePrecision] * N[(N[(t$95$m * N[Power[t$95$m, 2.0], $MachinePrecision]), $MachinePrecision] / l), $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{2 \cdot \left(k \cdot k\right)}{\ell} \cdot \frac{t\_m \cdot {t\_m}^{2}}{\ell}}
\end{array}
Initial program 58.8%
Simplified58.6%
Taylor expanded in k around 0 58.3%
associate-*l/59.1%
Applied egg-rr59.1%
associate-/l*58.8%
Simplified58.8%
unpow261.8%
Applied egg-rr58.8%
unpow358.9%
pow258.9%
Applied egg-rr58.9%
Final simplification58.9%
t\_m = (fabs.f64 t) t\_s = (copysign.f64 #s(literal 1 binary64) t) (FPCore (t_s t_m l k) :precision binary64 (* t_s (/ 2.0 (* (/ (* 2.0 (* k k)) l) (/ (pow t_m 3.0) l)))))
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 / (((2.0 * (k * k)) / l) * (pow(t_m, 3.0) / l)));
}
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 / (((2.0d0 * (k * k)) / l) * ((t_m ** 3.0d0) / l)))
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 / (((2.0 * (k * k)) / l) * (Math.pow(t_m, 3.0) / l)));
}
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 / (((2.0 * (k * k)) / l) * (math.pow(t_m, 3.0) / l)))
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(Float64(2.0 * Float64(k * k)) / l) * Float64((t_m ^ 3.0) / l)))) 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 / (((2.0 * (k * k)) / l) * ((t_m ^ 3.0) / l))); 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[(2.0 * N[(k * k), $MachinePrecision]), $MachinePrecision] / l), $MachinePrecision] * N[(N[Power[t$95$m, 3.0], $MachinePrecision] / l), $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{2 \cdot \left(k \cdot k\right)}{\ell} \cdot \frac{{t\_m}^{3}}{\ell}}
\end{array}
Initial program 58.8%
Simplified58.6%
Taylor expanded in k around 0 58.3%
associate-*l/59.1%
Applied egg-rr59.1%
associate-/l*58.8%
Simplified58.8%
unpow261.8%
Applied egg-rr58.8%
Final simplification58.8%
herbie shell --seed 2024163
(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))))