
(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 20 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (t l k) :precision binary64 (/ 2.0 (* (* (* (/ (pow t 3.0) (* l l)) (sin k)) (tan k)) (+ (+ 1.0 (pow (/ k t) 2.0)) 1.0))))
double code(double t, double l, double k) {
return 2.0 / ((((pow(t, 3.0) / (l * l)) * sin(k)) * tan(k)) * ((1.0 + pow((k / t), 2.0)) + 1.0));
}
real(8) function code(t, l, k)
real(8), intent (in) :: t
real(8), intent (in) :: l
real(8), intent (in) :: k
code = 2.0d0 / (((((t ** 3.0d0) / (l * l)) * sin(k)) * tan(k)) * ((1.0d0 + ((k / t) ** 2.0d0)) + 1.0d0))
end function
public static double code(double t, double l, double k) {
return 2.0 / ((((Math.pow(t, 3.0) / (l * l)) * Math.sin(k)) * Math.tan(k)) * ((1.0 + Math.pow((k / t), 2.0)) + 1.0));
}
def code(t, l, k): return 2.0 / ((((math.pow(t, 3.0) / (l * l)) * math.sin(k)) * math.tan(k)) * ((1.0 + math.pow((k / t), 2.0)) + 1.0))
function code(t, l, k) return Float64(2.0 / Float64(Float64(Float64(Float64((t ^ 3.0) / Float64(l * l)) * sin(k)) * tan(k)) * Float64(Float64(1.0 + (Float64(k / t) ^ 2.0)) + 1.0))) end
function tmp = code(t, l, k) tmp = 2.0 / (((((t ^ 3.0) / (l * l)) * sin(k)) * tan(k)) * ((1.0 + ((k / t) ^ 2.0)) + 1.0)); end
code[t_, l_, k_] := N[(2.0 / N[(N[(N[(N[(N[Power[t, 3.0], $MachinePrecision] / N[(l * l), $MachinePrecision]), $MachinePrecision] * N[Sin[k], $MachinePrecision]), $MachinePrecision] * N[Tan[k], $MachinePrecision]), $MachinePrecision] * N[(N[(1.0 + N[Power[N[(k / t), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{2}{\left(\left(\frac{{t}^{3}}{\ell \cdot \ell} \cdot \sin k\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)}
\end{array}
t\_m = (fabs.f64 t)
t\_s = (copysign.f64 1 t)
(FPCore (t_s t_m l k)
:precision binary64
(let* ((t_2 (cbrt (/ 2.0 (sin k)))) (t_3 (/ t_m (pow (cbrt l) 2.0))))
(*
t_s
(if (<= t_m 1.3e-99)
(pow (* (/ (* l (sqrt 2.0)) (* k (sin k))) (sqrt (/ (cos k) t_m))) 2.0)
(*
(/ (pow (/ t_2 t_3) 2.0) (+ 2.0 (pow (/ k t_m) 2.0)))
(/ t_2 (* t_3 (tan k))))))))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 / sin(k)));
double t_3 = t_m / pow(cbrt(l), 2.0);
double tmp;
if (t_m <= 1.3e-99) {
tmp = pow((((l * sqrt(2.0)) / (k * sin(k))) * sqrt((cos(k) / t_m))), 2.0);
} else {
tmp = (pow((t_2 / t_3), 2.0) / (2.0 + pow((k / t_m), 2.0))) * (t_2 / (t_3 * tan(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 t_2 = Math.cbrt((2.0 / Math.sin(k)));
double t_3 = t_m / Math.pow(Math.cbrt(l), 2.0);
double tmp;
if (t_m <= 1.3e-99) {
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((t_2 / t_3), 2.0) / (2.0 + Math.pow((k / t_m), 2.0))) * (t_2 / (t_3 * Math.tan(k)));
}
return t_s * tmp;
}
t\_m = abs(t) t\_s = copysign(1.0, t) function code(t_s, t_m, l, k) t_2 = cbrt(Float64(2.0 / sin(k))) t_3 = Float64(t_m / (cbrt(l) ^ 2.0)) tmp = 0.0 if (t_m <= 1.3e-99) tmp = Float64(Float64(Float64(l * sqrt(2.0)) / Float64(k * sin(k))) * sqrt(Float64(cos(k) / t_m))) ^ 2.0; else tmp = Float64(Float64((Float64(t_2 / t_3) ^ 2.0) / Float64(2.0 + (Float64(k / t_m) ^ 2.0))) * Float64(t_2 / Float64(t_3 * tan(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_] := Block[{t$95$2 = N[Power[N[(2.0 / N[Sin[k], $MachinePrecision]), $MachinePrecision], 1/3], $MachinePrecision]}, Block[{t$95$3 = N[(t$95$m / N[Power[N[Power[l, 1/3], $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]}, N[(t$95$s * If[LessEqual[t$95$m, 1.3e-99], N[Power[N[(N[(N[(l * N[Sqrt[2.0], $MachinePrecision]), $MachinePrecision] / N[(k * N[Sin[k], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[Sqrt[N[(N[Cos[k], $MachinePrecision] / t$95$m), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], 2.0], $MachinePrecision], N[(N[(N[Power[N[(t$95$2 / t$95$3), $MachinePrecision], 2.0], $MachinePrecision] / N[(2.0 + N[Power[N[(k / t$95$m), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(t$95$2 / N[(t$95$3 * N[Tan[k], $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 := \sqrt[3]{\frac{2}{\sin k}}\\
t_3 := \frac{t\_m}{{\left(\sqrt[3]{\ell}\right)}^{2}}\\
t\_s \cdot \begin{array}{l}
\mathbf{if}\;t\_m \leq 1.3 \cdot 10^{-99}:\\
\;\;\;\;{\left(\frac{\ell \cdot \sqrt{2}}{k \cdot \sin k} \cdot \sqrt{\frac{\cos k}{t\_m}}\right)}^{2}\\
\mathbf{else}:\\
\;\;\;\;\frac{{\left(\frac{t\_2}{t\_3}\right)}^{2}}{2 + {\left(\frac{k}{t\_m}\right)}^{2}} \cdot \frac{t\_2}{t\_3 \cdot \tan k}\\
\end{array}
\end{array}
\end{array}
if t < 1.30000000000000003e-99Initial program 46.1%
Simplified52.4%
add-sqr-sqrt36.2%
pow236.2%
Applied egg-rr5.9%
Taylor expanded in k around inf 34.4%
if 1.30000000000000003e-99 < t Initial program 64.9%
Simplified73.2%
associate-/l/73.2%
add-cube-cbrt73.0%
times-frac73.0%
Applied egg-rr93.1%
associate-/l/93.1%
Simplified93.1%
Final simplification54.4%
t\_m = (fabs.f64 t)
t\_s = (copysign.f64 1 t)
(FPCore (t_s t_m l k)
:precision binary64
(let* ((t_2 (/ (pow t_m 1.5) l)) (t_3 (cbrt (/ 1.0 k))))
(*
t_s
(if (<= t_m 1.5e-102)
(pow (* (/ (* l (sqrt 2.0)) (* k (sin k))) (sqrt (/ (cos k) t_m))) 2.0)
(if (<= t_m 3.3e+192)
(/
(/ (* (/ 2.0 t_2) (/ (/ 1.0 (sin k)) t_2)) (tan k))
(+ 2.0 (pow (/ k t_m) 2.0)))
(pow (* (/ (pow (cbrt l) 2.0) t_m) (* t_3 t_3)) 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(t_m, 1.5) / l;
double t_3 = cbrt((1.0 / k));
double tmp;
if (t_m <= 1.5e-102) {
tmp = pow((((l * sqrt(2.0)) / (k * sin(k))) * sqrt((cos(k) / t_m))), 2.0);
} else if (t_m <= 3.3e+192) {
tmp = (((2.0 / t_2) * ((1.0 / sin(k)) / t_2)) / tan(k)) / (2.0 + pow((k / t_m), 2.0));
} else {
tmp = pow(((pow(cbrt(l), 2.0) / t_m) * (t_3 * t_3)), 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(t_m, 1.5) / l;
double t_3 = Math.cbrt((1.0 / k));
double tmp;
if (t_m <= 1.5e-102) {
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 <= 3.3e+192) {
tmp = (((2.0 / t_2) * ((1.0 / Math.sin(k)) / t_2)) / Math.tan(k)) / (2.0 + Math.pow((k / t_m), 2.0));
} else {
tmp = Math.pow(((Math.pow(Math.cbrt(l), 2.0) / t_m) * (t_3 * t_3)), 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((t_m ^ 1.5) / l) t_3 = cbrt(Float64(1.0 / k)) tmp = 0.0 if (t_m <= 1.5e-102) tmp = Float64(Float64(Float64(l * sqrt(2.0)) / Float64(k * sin(k))) * sqrt(Float64(cos(k) / t_m))) ^ 2.0; elseif (t_m <= 3.3e+192) tmp = Float64(Float64(Float64(Float64(2.0 / t_2) * Float64(Float64(1.0 / sin(k)) / t_2)) / tan(k)) / Float64(2.0 + (Float64(k / t_m) ^ 2.0))); else tmp = Float64(Float64((cbrt(l) ^ 2.0) / t_m) * Float64(t_3 * t_3)) ^ 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[t$95$m, 1.5], $MachinePrecision] / l), $MachinePrecision]}, Block[{t$95$3 = N[Power[N[(1.0 / k), $MachinePrecision], 1/3], $MachinePrecision]}, N[(t$95$s * If[LessEqual[t$95$m, 1.5e-102], N[Power[N[(N[(N[(l * N[Sqrt[2.0], $MachinePrecision]), $MachinePrecision] / N[(k * N[Sin[k], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[Sqrt[N[(N[Cos[k], $MachinePrecision] / t$95$m), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], 2.0], $MachinePrecision], If[LessEqual[t$95$m, 3.3e+192], N[(N[(N[(N[(2.0 / t$95$2), $MachinePrecision] * N[(N[(1.0 / N[Sin[k], $MachinePrecision]), $MachinePrecision] / t$95$2), $MachinePrecision]), $MachinePrecision] / N[Tan[k], $MachinePrecision]), $MachinePrecision] / N[(2.0 + N[Power[N[(k / t$95$m), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[Power[N[(N[(N[Power[N[Power[l, 1/3], $MachinePrecision], 2.0], $MachinePrecision] / t$95$m), $MachinePrecision] * N[(t$95$3 * t$95$3), $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{{t\_m}^{1.5}}{\ell}\\
t_3 := \sqrt[3]{\frac{1}{k}}\\
t\_s \cdot \begin{array}{l}
\mathbf{if}\;t\_m \leq 1.5 \cdot 10^{-102}:\\
\;\;\;\;{\left(\frac{\ell \cdot \sqrt{2}}{k \cdot \sin k} \cdot \sqrt{\frac{\cos k}{t\_m}}\right)}^{2}\\
\mathbf{elif}\;t\_m \leq 3.3 \cdot 10^{+192}:\\
\;\;\;\;\frac{\frac{\frac{2}{t\_2} \cdot \frac{\frac{1}{\sin k}}{t\_2}}{\tan k}}{2 + {\left(\frac{k}{t\_m}\right)}^{2}}\\
\mathbf{else}:\\
\;\;\;\;{\left(\frac{{\left(\sqrt[3]{\ell}\right)}^{2}}{t\_m} \cdot \left(t\_3 \cdot t\_3\right)\right)}^{3}\\
\end{array}
\end{array}
\end{array}
if t < 1.5e-102Initial program 46.1%
Simplified52.4%
add-sqr-sqrt36.2%
pow236.2%
Applied egg-rr5.9%
Taylor expanded in k around inf 34.4%
if 1.5e-102 < t < 3.3000000000000001e192Initial program 62.6%
Simplified69.1%
div-inv69.1%
add-sqr-sqrt69.1%
times-frac69.1%
associate-/r*62.5%
sqrt-div62.5%
sqrt-pow162.5%
metadata-eval62.5%
sqrt-prod41.8%
add-sqr-sqrt59.7%
associate-/r*54.6%
sqrt-div54.7%
sqrt-pow158.0%
metadata-eval58.0%
sqrt-prod52.4%
add-sqr-sqrt87.4%
Applied egg-rr87.4%
if 3.3000000000000001e192 < t Initial program 71.0%
Simplified84.0%
associate-/l/84.0%
add-cube-cbrt84.0%
times-frac84.0%
Applied egg-rr99.5%
associate-/l/99.5%
Simplified99.5%
Taylor expanded in k around 0 58.5%
*-commutative58.5%
associate-/r*58.5%
Simplified58.5%
add-cube-cbrt58.5%
pow258.5%
div-inv58.5%
cbrt-prod58.5%
cbrt-div58.5%
unpow258.5%
cbrt-prod58.5%
unpow258.5%
unpow358.5%
add-cbrt-cube58.5%
pow-flip58.5%
metadata-eval58.5%
div-inv58.5%
Applied egg-rr79.4%
unpow279.4%
unpow379.4%
Simplified79.4%
pow1/378.8%
sqr-pow78.8%
unpow-prod-down41.9%
metadata-eval41.9%
unpow-141.9%
metadata-eval41.9%
unpow-141.9%
Applied egg-rr41.9%
unpow1/341.9%
unpow1/395.4%
Simplified95.4%
Final simplification53.1%
t\_m = (fabs.f64 t)
t\_s = (copysign.f64 1 t)
(FPCore (t_s t_m l k)
:precision binary64
(let* ((t_2 (cbrt (/ 1.0 k))))
(*
t_s
(if (<= t_m 4.2e-103)
(pow (* (/ (* l (sqrt 2.0)) (* k (sin k))) (sqrt (/ (cos k) t_m))) 2.0)
(if (<= t_m 6.2e+171)
(/
(/ (* l (pow (/ (cbrt (* l (/ 2.0 (sin k)))) t_m) 3.0)) (tan k))
(+ 2.0 (pow (/ k t_m) 2.0)))
(pow (* (/ (pow (cbrt l) 2.0) t_m) (* t_2 t_2)) 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((1.0 / k));
double tmp;
if (t_m <= 4.2e-103) {
tmp = pow((((l * sqrt(2.0)) / (k * sin(k))) * sqrt((cos(k) / t_m))), 2.0);
} else if (t_m <= 6.2e+171) {
tmp = ((l * pow((cbrt((l * (2.0 / sin(k)))) / t_m), 3.0)) / tan(k)) / (2.0 + pow((k / t_m), 2.0));
} else {
tmp = pow(((pow(cbrt(l), 2.0) / t_m) * (t_2 * t_2)), 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((1.0 / k));
double tmp;
if (t_m <= 4.2e-103) {
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+171) {
tmp = ((l * Math.pow((Math.cbrt((l * (2.0 / Math.sin(k)))) / t_m), 3.0)) / Math.tan(k)) / (2.0 + Math.pow((k / t_m), 2.0));
} else {
tmp = Math.pow(((Math.pow(Math.cbrt(l), 2.0) / t_m) * (t_2 * t_2)), 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 = cbrt(Float64(1.0 / k)) tmp = 0.0 if (t_m <= 4.2e-103) tmp = Float64(Float64(Float64(l * sqrt(2.0)) / Float64(k * sin(k))) * sqrt(Float64(cos(k) / t_m))) ^ 2.0; elseif (t_m <= 6.2e+171) tmp = Float64(Float64(Float64(l * (Float64(cbrt(Float64(l * Float64(2.0 / sin(k)))) / t_m) ^ 3.0)) / tan(k)) / Float64(2.0 + (Float64(k / t_m) ^ 2.0))); else tmp = Float64(Float64((cbrt(l) ^ 2.0) / t_m) * Float64(t_2 * t_2)) ^ 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[(1.0 / k), $MachinePrecision], 1/3], $MachinePrecision]}, N[(t$95$s * If[LessEqual[t$95$m, 4.2e-103], N[Power[N[(N[(N[(l * N[Sqrt[2.0], $MachinePrecision]), $MachinePrecision] / N[(k * N[Sin[k], $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+171], N[(N[(N[(l * N[Power[N[(N[Power[N[(l * N[(2.0 / N[Sin[k], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1/3], $MachinePrecision] / t$95$m), $MachinePrecision], 3.0], $MachinePrecision]), $MachinePrecision] / N[Tan[k], $MachinePrecision]), $MachinePrecision] / N[(2.0 + N[Power[N[(k / t$95$m), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[Power[N[(N[(N[Power[N[Power[l, 1/3], $MachinePrecision], 2.0], $MachinePrecision] / t$95$m), $MachinePrecision] * N[(t$95$2 * t$95$2), $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 := \sqrt[3]{\frac{1}{k}}\\
t\_s \cdot \begin{array}{l}
\mathbf{if}\;t\_m \leq 4.2 \cdot 10^{-103}:\\
\;\;\;\;{\left(\frac{\ell \cdot \sqrt{2}}{k \cdot \sin k} \cdot \sqrt{\frac{\cos k}{t\_m}}\right)}^{2}\\
\mathbf{elif}\;t\_m \leq 6.2 \cdot 10^{+171}:\\
\;\;\;\;\frac{\frac{\ell \cdot {\left(\frac{\sqrt[3]{\ell \cdot \frac{2}{\sin k}}}{t\_m}\right)}^{3}}{\tan k}}{2 + {\left(\frac{k}{t\_m}\right)}^{2}}\\
\mathbf{else}:\\
\;\;\;\;{\left(\frac{{\left(\sqrt[3]{\ell}\right)}^{2}}{t\_m} \cdot \left(t\_2 \cdot t\_2\right)\right)}^{3}\\
\end{array}
\end{array}
\end{array}
if t < 4.20000000000000009e-103Initial program 46.1%
Simplified52.4%
add-sqr-sqrt36.2%
pow236.2%
Applied egg-rr5.9%
Taylor expanded in k around inf 34.4%
if 4.20000000000000009e-103 < t < 6.1999999999999998e171Initial program 66.7%
Simplified73.9%
associate-/r/75.6%
div-inv75.5%
clear-num75.6%
Applied egg-rr75.6%
add-cube-cbrt75.2%
pow375.2%
*-commutative75.2%
cbrt-prod75.2%
associate-*r/75.2%
cbrt-div75.0%
unpow375.0%
add-cbrt-cube85.3%
Applied egg-rr85.3%
cube-prod85.3%
rem-cube-cbrt85.5%
*-commutative85.5%
Simplified85.5%
if 6.1999999999999998e171 < t Initial program 61.6%
Simplified72.0%
associate-/l/72.0%
add-cube-cbrt72.0%
times-frac72.0%
Applied egg-rr99.0%
associate-/l/99.1%
Simplified99.1%
Taylor expanded in k around 0 51.7%
*-commutative51.7%
associate-/r*51.7%
Simplified51.7%
add-cube-cbrt51.7%
pow251.7%
div-inv51.7%
cbrt-prod51.7%
cbrt-div51.7%
unpow251.7%
cbrt-prod51.7%
unpow251.7%
unpow351.7%
add-cbrt-cube51.7%
pow-flip51.7%
metadata-eval51.7%
div-inv51.7%
Applied egg-rr71.7%
unpow271.7%
unpow371.7%
Simplified71.7%
pow1/370.9%
sqr-pow70.9%
unpow-prod-down35.8%
metadata-eval35.8%
unpow-135.8%
metadata-eval35.8%
unpow-135.8%
Applied egg-rr35.8%
unpow1/335.8%
unpow1/392.8%
Simplified92.8%
Final simplification52.6%
t\_m = (fabs.f64 t)
t\_s = (copysign.f64 1 t)
(FPCore (t_s t_m l k)
:precision binary64
(let* ((t_2 (cbrt (/ 1.0 k))))
(*
t_s
(if (<= t_m 2.9e-99)
(pow (* (/ (* l (sqrt 2.0)) (* k (sin k))) (sqrt (/ (cos k) t_m))) 2.0)
(if (<= t_m 8.6e+110)
(*
(/
(* (/ 2.0 (sin k)) (/ l (pow t_m 3.0)))
(+ 2.0 (pow (/ k t_m) 2.0)))
(/ l (tan k)))
(pow (* (/ (pow (cbrt l) 2.0) t_m) (* t_2 t_2)) 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((1.0 / k));
double tmp;
if (t_m <= 2.9e-99) {
tmp = pow((((l * sqrt(2.0)) / (k * sin(k))) * sqrt((cos(k) / t_m))), 2.0);
} else if (t_m <= 8.6e+110) {
tmp = (((2.0 / sin(k)) * (l / pow(t_m, 3.0))) / (2.0 + pow((k / t_m), 2.0))) * (l / tan(k));
} else {
tmp = pow(((pow(cbrt(l), 2.0) / t_m) * (t_2 * t_2)), 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((1.0 / k));
double tmp;
if (t_m <= 2.9e-99) {
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 <= 8.6e+110) {
tmp = (((2.0 / Math.sin(k)) * (l / Math.pow(t_m, 3.0))) / (2.0 + Math.pow((k / t_m), 2.0))) * (l / Math.tan(k));
} else {
tmp = Math.pow(((Math.pow(Math.cbrt(l), 2.0) / t_m) * (t_2 * t_2)), 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 = cbrt(Float64(1.0 / k)) tmp = 0.0 if (t_m <= 2.9e-99) tmp = Float64(Float64(Float64(l * sqrt(2.0)) / Float64(k * sin(k))) * sqrt(Float64(cos(k) / t_m))) ^ 2.0; elseif (t_m <= 8.6e+110) tmp = Float64(Float64(Float64(Float64(2.0 / sin(k)) * Float64(l / (t_m ^ 3.0))) / Float64(2.0 + (Float64(k / t_m) ^ 2.0))) * Float64(l / tan(k))); else tmp = Float64(Float64((cbrt(l) ^ 2.0) / t_m) * Float64(t_2 * t_2)) ^ 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[(1.0 / k), $MachinePrecision], 1/3], $MachinePrecision]}, N[(t$95$s * If[LessEqual[t$95$m, 2.9e-99], N[Power[N[(N[(N[(l * N[Sqrt[2.0], $MachinePrecision]), $MachinePrecision] / N[(k * N[Sin[k], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[Sqrt[N[(N[Cos[k], $MachinePrecision] / t$95$m), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], 2.0], $MachinePrecision], If[LessEqual[t$95$m, 8.6e+110], N[(N[(N[(N[(2.0 / N[Sin[k], $MachinePrecision]), $MachinePrecision] * N[(l / N[Power[t$95$m, 3.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(2.0 + N[Power[N[(k / t$95$m), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(l / N[Tan[k], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[Power[N[(N[(N[Power[N[Power[l, 1/3], $MachinePrecision], 2.0], $MachinePrecision] / t$95$m), $MachinePrecision] * N[(t$95$2 * t$95$2), $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 := \sqrt[3]{\frac{1}{k}}\\
t\_s \cdot \begin{array}{l}
\mathbf{if}\;t\_m \leq 2.9 \cdot 10^{-99}:\\
\;\;\;\;{\left(\frac{\ell \cdot \sqrt{2}}{k \cdot \sin k} \cdot \sqrt{\frac{\cos k}{t\_m}}\right)}^{2}\\
\mathbf{elif}\;t\_m \leq 8.6 \cdot 10^{+110}:\\
\;\;\;\;\frac{\frac{2}{\sin k} \cdot \frac{\ell}{{t\_m}^{3}}}{2 + {\left(\frac{k}{t\_m}\right)}^{2}} \cdot \frac{\ell}{\tan k}\\
\mathbf{else}:\\
\;\;\;\;{\left(\frac{{\left(\sqrt[3]{\ell}\right)}^{2}}{t\_m} \cdot \left(t\_2 \cdot t\_2\right)\right)}^{3}\\
\end{array}
\end{array}
\end{array}
if t < 2.89999999999999985e-99Initial program 46.1%
Simplified52.4%
add-sqr-sqrt36.2%
pow236.2%
Applied egg-rr5.9%
Taylor expanded in k around inf 34.4%
if 2.89999999999999985e-99 < t < 8.60000000000000014e110Initial program 72.0%
Simplified81.2%
associate-/l/81.2%
associate-/r/83.6%
times-frac85.8%
div-inv85.8%
clear-num85.8%
Applied egg-rr85.8%
if 8.60000000000000014e110 < t Initial program 58.3%
Simplified65.7%
associate-/l/65.7%
add-cube-cbrt65.7%
times-frac65.7%
Applied egg-rr98.8%
associate-/l/98.8%
Simplified98.8%
Taylor expanded in k around 0 49.1%
*-commutative49.1%
associate-/r*49.1%
Simplified49.1%
add-cube-cbrt49.1%
pow249.1%
div-inv49.1%
cbrt-prod49.1%
cbrt-div49.1%
unpow249.1%
cbrt-prod49.1%
unpow249.1%
unpow349.1%
add-cbrt-cube49.1%
pow-flip49.1%
metadata-eval49.1%
div-inv49.1%
Applied egg-rr65.5%
unpow265.5%
unpow365.5%
Simplified65.5%
pow1/364.7%
sqr-pow64.7%
unpow-prod-down33.3%
metadata-eval33.3%
unpow-133.3%
metadata-eval33.3%
unpow-133.3%
Applied egg-rr33.3%
unpow1/333.4%
unpow1/386.4%
Simplified86.4%
Final simplification52.0%
t\_m = (fabs.f64 t)
t\_s = (copysign.f64 1 t)
(FPCore (t_s t_m l k)
:precision binary64
(*
t_s
(if (<= t_m 1.12e-113)
(/ 2.0 (* (* k k) (/ (* t_m (pow (sin k) 2.0)) (* (cos k) (pow l 2.0)))))
(if (<= t_m 8.6e+110)
(*
(/ (* (/ 2.0 (sin k)) (/ l (pow t_m 3.0))) (+ 2.0 (pow (/ k t_m) 2.0)))
(/ l (tan k)))
(pow
(*
(/ (pow (cbrt l) 2.0) t_m)
(exp (* (* -2.0 (log k)) 0.3333333333333333)))
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 <= 1.12e-113) {
tmp = 2.0 / ((k * k) * ((t_m * pow(sin(k), 2.0)) / (cos(k) * pow(l, 2.0))));
} else if (t_m <= 8.6e+110) {
tmp = (((2.0 / sin(k)) * (l / pow(t_m, 3.0))) / (2.0 + pow((k / t_m), 2.0))) * (l / tan(k));
} else {
tmp = pow(((pow(cbrt(l), 2.0) / t_m) * exp(((-2.0 * log(k)) * 0.3333333333333333))), 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 <= 1.12e-113) {
tmp = 2.0 / ((k * k) * ((t_m * Math.pow(Math.sin(k), 2.0)) / (Math.cos(k) * Math.pow(l, 2.0))));
} else if (t_m <= 8.6e+110) {
tmp = (((2.0 / Math.sin(k)) * (l / Math.pow(t_m, 3.0))) / (2.0 + Math.pow((k / t_m), 2.0))) * (l / Math.tan(k));
} else {
tmp = Math.pow(((Math.pow(Math.cbrt(l), 2.0) / t_m) * Math.exp(((-2.0 * Math.log(k)) * 0.3333333333333333))), 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 <= 1.12e-113) tmp = Float64(2.0 / Float64(Float64(k * k) * Float64(Float64(t_m * (sin(k) ^ 2.0)) / Float64(cos(k) * (l ^ 2.0))))); elseif (t_m <= 8.6e+110) tmp = Float64(Float64(Float64(Float64(2.0 / sin(k)) * Float64(l / (t_m ^ 3.0))) / Float64(2.0 + (Float64(k / t_m) ^ 2.0))) * Float64(l / tan(k))); else tmp = Float64(Float64((cbrt(l) ^ 2.0) / t_m) * exp(Float64(Float64(-2.0 * log(k)) * 0.3333333333333333))) ^ 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, 1.12e-113], N[(2.0 / N[(N[(k * k), $MachinePrecision] * N[(N[(t$95$m * N[Power[N[Sin[k], $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision] / N[(N[Cos[k], $MachinePrecision] * N[Power[l, 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$m, 8.6e+110], N[(N[(N[(N[(2.0 / N[Sin[k], $MachinePrecision]), $MachinePrecision] * N[(l / N[Power[t$95$m, 3.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(2.0 + N[Power[N[(k / t$95$m), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(l / N[Tan[k], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[Power[N[(N[(N[Power[N[Power[l, 1/3], $MachinePrecision], 2.0], $MachinePrecision] / t$95$m), $MachinePrecision] * N[Exp[N[(N[(-2.0 * N[Log[k], $MachinePrecision]), $MachinePrecision] * 0.3333333333333333), $MachinePrecision]], $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 1.12 \cdot 10^{-113}:\\
\;\;\;\;\frac{2}{\left(k \cdot k\right) \cdot \frac{t\_m \cdot {\sin k}^{2}}{\cos k \cdot {\ell}^{2}}}\\
\mathbf{elif}\;t\_m \leq 8.6 \cdot 10^{+110}:\\
\;\;\;\;\frac{\frac{2}{\sin k} \cdot \frac{\ell}{{t\_m}^{3}}}{2 + {\left(\frac{k}{t\_m}\right)}^{2}} \cdot \frac{\ell}{\tan k}\\
\mathbf{else}:\\
\;\;\;\;{\left(\frac{{\left(\sqrt[3]{\ell}\right)}^{2}}{t\_m} \cdot e^{\left(-2 \cdot \log k\right) \cdot 0.3333333333333333}\right)}^{3}\\
\end{array}
\end{array}
if t < 1.1200000000000001e-113Initial program 46.1%
unpow346.0%
times-frac59.5%
pow259.5%
Applied egg-rr59.5%
Taylor expanded in t around 0 53.1%
associate-/l*53.6%
*-commutative53.6%
Simplified53.6%
unpow242.3%
Applied egg-rr53.6%
if 1.1200000000000001e-113 < t < 8.60000000000000014e110Initial program 71.0%
Simplified79.8%
associate-/l/79.8%
associate-/r/82.0%
times-frac84.2%
div-inv84.1%
clear-num84.2%
Applied egg-rr84.2%
if 8.60000000000000014e110 < t Initial program 58.3%
Simplified65.7%
associate-/l/65.7%
add-cube-cbrt65.7%
times-frac65.7%
Applied egg-rr98.8%
associate-/l/98.8%
Simplified98.8%
Taylor expanded in k around 0 49.1%
*-commutative49.1%
associate-/r*49.1%
Simplified49.1%
add-cube-cbrt49.1%
pow249.1%
div-inv49.1%
cbrt-prod49.1%
cbrt-div49.1%
unpow249.1%
cbrt-prod49.1%
unpow249.1%
unpow349.1%
add-cbrt-cube49.1%
pow-flip49.1%
metadata-eval49.1%
div-inv49.1%
Applied egg-rr65.5%
unpow265.5%
unpow365.5%
Simplified65.5%
pow1/364.7%
pow-to-exp64.9%
log-pow33.3%
Applied egg-rr33.3%
Final simplification55.3%
t\_m = (fabs.f64 t)
t\_s = (copysign.f64 1 t)
(FPCore (t_s t_m l k)
:precision binary64
(*
t_s
(if (<= t_m 1.15e-99)
(pow (* (sqrt (/ (cos k) t_m)) (* (/ l k) (/ (sqrt 2.0) (sin k)))) 2.0)
(if (<= t_m 8.6e+110)
(*
(/ (* (/ 2.0 (sin k)) (/ l (pow t_m 3.0))) (+ 2.0 (pow (/ k t_m) 2.0)))
(/ l (tan k)))
(pow
(*
(/ (pow (cbrt l) 2.0) t_m)
(exp (* (* -2.0 (log k)) 0.3333333333333333)))
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 <= 1.15e-99) {
tmp = pow((sqrt((cos(k) / t_m)) * ((l / k) * (sqrt(2.0) / sin(k)))), 2.0);
} else if (t_m <= 8.6e+110) {
tmp = (((2.0 / sin(k)) * (l / pow(t_m, 3.0))) / (2.0 + pow((k / t_m), 2.0))) * (l / tan(k));
} else {
tmp = pow(((pow(cbrt(l), 2.0) / t_m) * exp(((-2.0 * log(k)) * 0.3333333333333333))), 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 <= 1.15e-99) {
tmp = Math.pow((Math.sqrt((Math.cos(k) / t_m)) * ((l / k) * (Math.sqrt(2.0) / Math.sin(k)))), 2.0);
} else if (t_m <= 8.6e+110) {
tmp = (((2.0 / Math.sin(k)) * (l / Math.pow(t_m, 3.0))) / (2.0 + Math.pow((k / t_m), 2.0))) * (l / Math.tan(k));
} else {
tmp = Math.pow(((Math.pow(Math.cbrt(l), 2.0) / t_m) * Math.exp(((-2.0 * Math.log(k)) * 0.3333333333333333))), 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 <= 1.15e-99) tmp = Float64(sqrt(Float64(cos(k) / t_m)) * Float64(Float64(l / k) * Float64(sqrt(2.0) / sin(k)))) ^ 2.0; elseif (t_m <= 8.6e+110) tmp = Float64(Float64(Float64(Float64(2.0 / sin(k)) * Float64(l / (t_m ^ 3.0))) / Float64(2.0 + (Float64(k / t_m) ^ 2.0))) * Float64(l / tan(k))); else tmp = Float64(Float64((cbrt(l) ^ 2.0) / t_m) * exp(Float64(Float64(-2.0 * log(k)) * 0.3333333333333333))) ^ 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, 1.15e-99], N[Power[N[(N[Sqrt[N[(N[Cos[k], $MachinePrecision] / t$95$m), $MachinePrecision]], $MachinePrecision] * N[(N[(l / k), $MachinePrecision] * N[(N[Sqrt[2.0], $MachinePrecision] / N[Sin[k], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 2.0], $MachinePrecision], If[LessEqual[t$95$m, 8.6e+110], N[(N[(N[(N[(2.0 / N[Sin[k], $MachinePrecision]), $MachinePrecision] * N[(l / N[Power[t$95$m, 3.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(2.0 + N[Power[N[(k / t$95$m), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(l / N[Tan[k], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[Power[N[(N[(N[Power[N[Power[l, 1/3], $MachinePrecision], 2.0], $MachinePrecision] / t$95$m), $MachinePrecision] * N[Exp[N[(N[(-2.0 * N[Log[k], $MachinePrecision]), $MachinePrecision] * 0.3333333333333333), $MachinePrecision]], $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 1.15 \cdot 10^{-99}:\\
\;\;\;\;{\left(\sqrt{\frac{\cos k}{t\_m}} \cdot \left(\frac{\ell}{k} \cdot \frac{\sqrt{2}}{\sin k}\right)\right)}^{2}\\
\mathbf{elif}\;t\_m \leq 8.6 \cdot 10^{+110}:\\
\;\;\;\;\frac{\frac{2}{\sin k} \cdot \frac{\ell}{{t\_m}^{3}}}{2 + {\left(\frac{k}{t\_m}\right)}^{2}} \cdot \frac{\ell}{\tan k}\\
\mathbf{else}:\\
\;\;\;\;{\left(\frac{{\left(\sqrt[3]{\ell}\right)}^{2}}{t\_m} \cdot e^{\left(-2 \cdot \log k\right) \cdot 0.3333333333333333}\right)}^{3}\\
\end{array}
\end{array}
if t < 1.1499999999999999e-99Initial program 46.1%
Simplified52.4%
add-sqr-sqrt36.2%
pow236.2%
Applied egg-rr5.9%
Taylor expanded in k around inf 34.4%
times-frac34.4%
Simplified34.4%
if 1.1499999999999999e-99 < t < 8.60000000000000014e110Initial program 72.0%
Simplified81.2%
associate-/l/81.2%
associate-/r/83.6%
times-frac85.8%
div-inv85.8%
clear-num85.8%
Applied egg-rr85.8%
if 8.60000000000000014e110 < t Initial program 58.3%
Simplified65.7%
associate-/l/65.7%
add-cube-cbrt65.7%
times-frac65.7%
Applied egg-rr98.8%
associate-/l/98.8%
Simplified98.8%
Taylor expanded in k around 0 49.1%
*-commutative49.1%
associate-/r*49.1%
Simplified49.1%
add-cube-cbrt49.1%
pow249.1%
div-inv49.1%
cbrt-prod49.1%
cbrt-div49.1%
unpow249.1%
cbrt-prod49.1%
unpow249.1%
unpow349.1%
add-cbrt-cube49.1%
pow-flip49.1%
metadata-eval49.1%
div-inv49.1%
Applied egg-rr65.5%
unpow265.5%
unpow365.5%
Simplified65.5%
pow1/364.7%
pow-to-exp64.9%
log-pow33.3%
Applied egg-rr33.3%
Final simplification42.6%
t\_m = (fabs.f64 t)
t\_s = (copysign.f64 1 t)
(FPCore (t_s t_m l k)
:precision binary64
(*
t_s
(if (<= t_m 2.1e-98)
(pow (* (/ (* l (sqrt 2.0)) (* k (sin k))) (sqrt (/ (cos k) t_m))) 2.0)
(if (<= t_m 8.6e+110)
(*
(/ (* (/ 2.0 (sin k)) (/ l (pow t_m 3.0))) (+ 2.0 (pow (/ k t_m) 2.0)))
(/ l (tan k)))
(pow
(*
(/ (pow (cbrt l) 2.0) t_m)
(exp (* (* -2.0 (log k)) 0.3333333333333333)))
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 <= 2.1e-98) {
tmp = pow((((l * sqrt(2.0)) / (k * sin(k))) * sqrt((cos(k) / t_m))), 2.0);
} else if (t_m <= 8.6e+110) {
tmp = (((2.0 / sin(k)) * (l / pow(t_m, 3.0))) / (2.0 + pow((k / t_m), 2.0))) * (l / tan(k));
} else {
tmp = pow(((pow(cbrt(l), 2.0) / t_m) * exp(((-2.0 * log(k)) * 0.3333333333333333))), 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 <= 2.1e-98) {
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 <= 8.6e+110) {
tmp = (((2.0 / Math.sin(k)) * (l / Math.pow(t_m, 3.0))) / (2.0 + Math.pow((k / t_m), 2.0))) * (l / Math.tan(k));
} else {
tmp = Math.pow(((Math.pow(Math.cbrt(l), 2.0) / t_m) * Math.exp(((-2.0 * Math.log(k)) * 0.3333333333333333))), 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 <= 2.1e-98) tmp = Float64(Float64(Float64(l * sqrt(2.0)) / Float64(k * sin(k))) * sqrt(Float64(cos(k) / t_m))) ^ 2.0; elseif (t_m <= 8.6e+110) tmp = Float64(Float64(Float64(Float64(2.0 / sin(k)) * Float64(l / (t_m ^ 3.0))) / Float64(2.0 + (Float64(k / t_m) ^ 2.0))) * Float64(l / tan(k))); else tmp = Float64(Float64((cbrt(l) ^ 2.0) / t_m) * exp(Float64(Float64(-2.0 * log(k)) * 0.3333333333333333))) ^ 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, 2.1e-98], N[Power[N[(N[(N[(l * N[Sqrt[2.0], $MachinePrecision]), $MachinePrecision] / N[(k * N[Sin[k], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[Sqrt[N[(N[Cos[k], $MachinePrecision] / t$95$m), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], 2.0], $MachinePrecision], If[LessEqual[t$95$m, 8.6e+110], N[(N[(N[(N[(2.0 / N[Sin[k], $MachinePrecision]), $MachinePrecision] * N[(l / N[Power[t$95$m, 3.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(2.0 + N[Power[N[(k / t$95$m), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(l / N[Tan[k], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[Power[N[(N[(N[Power[N[Power[l, 1/3], $MachinePrecision], 2.0], $MachinePrecision] / t$95$m), $MachinePrecision] * N[Exp[N[(N[(-2.0 * N[Log[k], $MachinePrecision]), $MachinePrecision] * 0.3333333333333333), $MachinePrecision]], $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 2.1 \cdot 10^{-98}:\\
\;\;\;\;{\left(\frac{\ell \cdot \sqrt{2}}{k \cdot \sin k} \cdot \sqrt{\frac{\cos k}{t\_m}}\right)}^{2}\\
\mathbf{elif}\;t\_m \leq 8.6 \cdot 10^{+110}:\\
\;\;\;\;\frac{\frac{2}{\sin k} \cdot \frac{\ell}{{t\_m}^{3}}}{2 + {\left(\frac{k}{t\_m}\right)}^{2}} \cdot \frac{\ell}{\tan k}\\
\mathbf{else}:\\
\;\;\;\;{\left(\frac{{\left(\sqrt[3]{\ell}\right)}^{2}}{t\_m} \cdot e^{\left(-2 \cdot \log k\right) \cdot 0.3333333333333333}\right)}^{3}\\
\end{array}
\end{array}
if t < 2.09999999999999992e-98Initial program 46.1%
Simplified52.4%
add-sqr-sqrt36.2%
pow236.2%
Applied egg-rr5.9%
Taylor expanded in k around inf 34.4%
if 2.09999999999999992e-98 < t < 8.60000000000000014e110Initial program 72.0%
Simplified81.2%
associate-/l/81.2%
associate-/r/83.6%
times-frac85.8%
div-inv85.8%
clear-num85.8%
Applied egg-rr85.8%
if 8.60000000000000014e110 < t Initial program 58.3%
Simplified65.7%
associate-/l/65.7%
add-cube-cbrt65.7%
times-frac65.7%
Applied egg-rr98.8%
associate-/l/98.8%
Simplified98.8%
Taylor expanded in k around 0 49.1%
*-commutative49.1%
associate-/r*49.1%
Simplified49.1%
add-cube-cbrt49.1%
pow249.1%
div-inv49.1%
cbrt-prod49.1%
cbrt-div49.1%
unpow249.1%
cbrt-prod49.1%
unpow249.1%
unpow349.1%
add-cbrt-cube49.1%
pow-flip49.1%
metadata-eval49.1%
div-inv49.1%
Applied egg-rr65.5%
unpow265.5%
unpow365.5%
Simplified65.5%
pow1/364.7%
pow-to-exp64.9%
log-pow33.3%
Applied egg-rr33.3%
Final simplification42.6%
t\_m = (fabs.f64 t)
t\_s = (copysign.f64 1 t)
(FPCore (t_s t_m l k)
:precision binary64
(*
t_s
(if (<= t_m 1.12e-113)
(/ 2.0 (* (* k k) (/ (* t_m (pow (sin k) 2.0)) (* (cos k) (pow l 2.0)))))
(if (<= t_m 8.6e+110)
(*
(* l (/ (/ 2.0 (sin k)) (pow t_m 3.0)))
(/ l (* (+ 2.0 (pow (/ k t_m) 2.0)) (tan k))))
(pow (* (/ (pow (cbrt l) 2.0) t_m) (pow k -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 tmp;
if (t_m <= 1.12e-113) {
tmp = 2.0 / ((k * k) * ((t_m * pow(sin(k), 2.0)) / (cos(k) * pow(l, 2.0))));
} else if (t_m <= 8.6e+110) {
tmp = (l * ((2.0 / sin(k)) / pow(t_m, 3.0))) * (l / ((2.0 + pow((k / t_m), 2.0)) * tan(k)));
} else {
tmp = pow(((pow(cbrt(l), 2.0) / t_m) * pow(k, -0.6666666666666666)), 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 <= 1.12e-113) {
tmp = 2.0 / ((k * k) * ((t_m * Math.pow(Math.sin(k), 2.0)) / (Math.cos(k) * Math.pow(l, 2.0))));
} else if (t_m <= 8.6e+110) {
tmp = (l * ((2.0 / Math.sin(k)) / Math.pow(t_m, 3.0))) * (l / ((2.0 + Math.pow((k / t_m), 2.0)) * Math.tan(k)));
} else {
tmp = Math.pow(((Math.pow(Math.cbrt(l), 2.0) / t_m) * Math.pow(k, -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) tmp = 0.0 if (t_m <= 1.12e-113) tmp = Float64(2.0 / Float64(Float64(k * k) * Float64(Float64(t_m * (sin(k) ^ 2.0)) / Float64(cos(k) * (l ^ 2.0))))); elseif (t_m <= 8.6e+110) tmp = Float64(Float64(l * Float64(Float64(2.0 / sin(k)) / (t_m ^ 3.0))) * Float64(l / Float64(Float64(2.0 + (Float64(k / t_m) ^ 2.0)) * tan(k)))); else tmp = Float64(Float64((cbrt(l) ^ 2.0) / t_m) * (k ^ -0.6666666666666666)) ^ 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, 1.12e-113], N[(2.0 / N[(N[(k * k), $MachinePrecision] * N[(N[(t$95$m * N[Power[N[Sin[k], $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision] / N[(N[Cos[k], $MachinePrecision] * N[Power[l, 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$m, 8.6e+110], N[(N[(l * N[(N[(2.0 / N[Sin[k], $MachinePrecision]), $MachinePrecision] / N[Power[t$95$m, 3.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(l / N[(N[(2.0 + N[Power[N[(k / t$95$m), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision] * N[Tan[k], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[Power[N[(N[(N[Power[N[Power[l, 1/3], $MachinePrecision], 2.0], $MachinePrecision] / t$95$m), $MachinePrecision] * N[Power[k, -0.6666666666666666], $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 1.12 \cdot 10^{-113}:\\
\;\;\;\;\frac{2}{\left(k \cdot k\right) \cdot \frac{t\_m \cdot {\sin k}^{2}}{\cos k \cdot {\ell}^{2}}}\\
\mathbf{elif}\;t\_m \leq 8.6 \cdot 10^{+110}:\\
\;\;\;\;\left(\ell \cdot \frac{\frac{2}{\sin k}}{{t\_m}^{3}}\right) \cdot \frac{\ell}{\left(2 + {\left(\frac{k}{t\_m}\right)}^{2}\right) \cdot \tan k}\\
\mathbf{else}:\\
\;\;\;\;{\left(\frac{{\left(\sqrt[3]{\ell}\right)}^{2}}{t\_m} \cdot {k}^{-0.6666666666666666}\right)}^{3}\\
\end{array}
\end{array}
if t < 1.1200000000000001e-113Initial program 46.1%
unpow346.0%
times-frac59.5%
pow259.5%
Applied egg-rr59.5%
Taylor expanded in t around 0 53.1%
associate-/l*53.6%
*-commutative53.6%
Simplified53.6%
unpow242.3%
Applied egg-rr53.6%
if 1.1200000000000001e-113 < t < 8.60000000000000014e110Initial program 71.0%
Simplified79.8%
add-cube-cbrt79.5%
pow379.4%
cbrt-div79.3%
rem-cbrt-cube81.6%
Applied egg-rr81.6%
*-un-lft-identity81.6%
associate-/l/81.6%
associate-/r/83.6%
cube-div81.6%
pow381.5%
add-cube-cbrt82.0%
Applied egg-rr82.0%
*-lft-identity82.0%
associate-/l*84.3%
associate-/r/79.9%
Simplified79.9%
if 8.60000000000000014e110 < t Initial program 58.3%
Simplified65.7%
associate-/l/65.7%
add-cube-cbrt65.7%
times-frac65.7%
Applied egg-rr98.8%
associate-/l/98.8%
Simplified98.8%
Taylor expanded in k around 0 49.1%
*-commutative49.1%
associate-/r*49.1%
Simplified49.1%
add-cube-cbrt49.1%
pow249.1%
div-inv49.1%
cbrt-prod49.1%
cbrt-div49.1%
unpow249.1%
cbrt-prod49.1%
unpow249.1%
unpow349.1%
add-cbrt-cube49.1%
pow-flip49.1%
metadata-eval49.1%
div-inv49.1%
Applied egg-rr65.5%
unpow265.5%
unpow365.5%
Simplified65.5%
pow1/364.7%
pow-pow33.3%
metadata-eval33.3%
Applied egg-rr33.3%
Final simplification54.6%
t\_m = (fabs.f64 t)
t\_s = (copysign.f64 1 t)
(FPCore (t_s t_m l k)
:precision binary64
(*
t_s
(if (<= t_m 1.12e-113)
(/ 2.0 (* (* k k) (/ (* t_m (pow (sin k) 2.0)) (* (cos k) (pow l 2.0)))))
(if (<= t_m 8.6e+110)
(*
(/ (* (/ 2.0 (sin k)) (/ l (pow t_m 3.0))) (+ 2.0 (pow (/ k t_m) 2.0)))
(/ l (tan k)))
(pow (* (/ (pow (cbrt l) 2.0) t_m) (pow k -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 tmp;
if (t_m <= 1.12e-113) {
tmp = 2.0 / ((k * k) * ((t_m * pow(sin(k), 2.0)) / (cos(k) * pow(l, 2.0))));
} else if (t_m <= 8.6e+110) {
tmp = (((2.0 / sin(k)) * (l / pow(t_m, 3.0))) / (2.0 + pow((k / t_m), 2.0))) * (l / tan(k));
} else {
tmp = pow(((pow(cbrt(l), 2.0) / t_m) * pow(k, -0.6666666666666666)), 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 <= 1.12e-113) {
tmp = 2.0 / ((k * k) * ((t_m * Math.pow(Math.sin(k), 2.0)) / (Math.cos(k) * Math.pow(l, 2.0))));
} else if (t_m <= 8.6e+110) {
tmp = (((2.0 / Math.sin(k)) * (l / Math.pow(t_m, 3.0))) / (2.0 + Math.pow((k / t_m), 2.0))) * (l / Math.tan(k));
} else {
tmp = Math.pow(((Math.pow(Math.cbrt(l), 2.0) / t_m) * Math.pow(k, -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) tmp = 0.0 if (t_m <= 1.12e-113) tmp = Float64(2.0 / Float64(Float64(k * k) * Float64(Float64(t_m * (sin(k) ^ 2.0)) / Float64(cos(k) * (l ^ 2.0))))); elseif (t_m <= 8.6e+110) tmp = Float64(Float64(Float64(Float64(2.0 / sin(k)) * Float64(l / (t_m ^ 3.0))) / Float64(2.0 + (Float64(k / t_m) ^ 2.0))) * Float64(l / tan(k))); else tmp = Float64(Float64((cbrt(l) ^ 2.0) / t_m) * (k ^ -0.6666666666666666)) ^ 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, 1.12e-113], N[(2.0 / N[(N[(k * k), $MachinePrecision] * N[(N[(t$95$m * N[Power[N[Sin[k], $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision] / N[(N[Cos[k], $MachinePrecision] * N[Power[l, 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$m, 8.6e+110], N[(N[(N[(N[(2.0 / N[Sin[k], $MachinePrecision]), $MachinePrecision] * N[(l / N[Power[t$95$m, 3.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(2.0 + N[Power[N[(k / t$95$m), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(l / N[Tan[k], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[Power[N[(N[(N[Power[N[Power[l, 1/3], $MachinePrecision], 2.0], $MachinePrecision] / t$95$m), $MachinePrecision] * N[Power[k, -0.6666666666666666], $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 1.12 \cdot 10^{-113}:\\
\;\;\;\;\frac{2}{\left(k \cdot k\right) \cdot \frac{t\_m \cdot {\sin k}^{2}}{\cos k \cdot {\ell}^{2}}}\\
\mathbf{elif}\;t\_m \leq 8.6 \cdot 10^{+110}:\\
\;\;\;\;\frac{\frac{2}{\sin k} \cdot \frac{\ell}{{t\_m}^{3}}}{2 + {\left(\frac{k}{t\_m}\right)}^{2}} \cdot \frac{\ell}{\tan k}\\
\mathbf{else}:\\
\;\;\;\;{\left(\frac{{\left(\sqrt[3]{\ell}\right)}^{2}}{t\_m} \cdot {k}^{-0.6666666666666666}\right)}^{3}\\
\end{array}
\end{array}
if t < 1.1200000000000001e-113Initial program 46.1%
unpow346.0%
times-frac59.5%
pow259.5%
Applied egg-rr59.5%
Taylor expanded in t around 0 53.1%
associate-/l*53.6%
*-commutative53.6%
Simplified53.6%
unpow242.3%
Applied egg-rr53.6%
if 1.1200000000000001e-113 < t < 8.60000000000000014e110Initial program 71.0%
Simplified79.8%
associate-/l/79.8%
associate-/r/82.0%
times-frac84.2%
div-inv84.1%
clear-num84.2%
Applied egg-rr84.2%
if 8.60000000000000014e110 < t Initial program 58.3%
Simplified65.7%
associate-/l/65.7%
add-cube-cbrt65.7%
times-frac65.7%
Applied egg-rr98.8%
associate-/l/98.8%
Simplified98.8%
Taylor expanded in k around 0 49.1%
*-commutative49.1%
associate-/r*49.1%
Simplified49.1%
add-cube-cbrt49.1%
pow249.1%
div-inv49.1%
cbrt-prod49.1%
cbrt-div49.1%
unpow249.1%
cbrt-prod49.1%
unpow249.1%
unpow349.1%
add-cbrt-cube49.1%
pow-flip49.1%
metadata-eval49.1%
div-inv49.1%
Applied egg-rr65.5%
unpow265.5%
unpow365.5%
Simplified65.5%
pow1/364.7%
pow-pow33.3%
metadata-eval33.3%
Applied egg-rr33.3%
Final simplification55.3%
t\_m = (fabs.f64 t)
t\_s = (copysign.f64 1 t)
(FPCore (t_s t_m l k)
:precision binary64
(*
t_s
(if (<= k 2.4e-22)
(pow (* (/ (pow (cbrt l) 2.0) t_m) (pow k -0.6666666666666666)) 3.0)
(/
2.0
(* (* k k) (/ (* 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-22) {
tmp = pow(((pow(cbrt(l), 2.0) / t_m) * pow(k, -0.6666666666666666)), 3.0);
} else {
tmp = 2.0 / ((k * k) * ((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-22) {
tmp = Math.pow(((Math.pow(Math.cbrt(l), 2.0) / t_m) * Math.pow(k, -0.6666666666666666)), 3.0);
} else {
tmp = 2.0 / ((k * k) * ((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-22) tmp = Float64(Float64((cbrt(l) ^ 2.0) / t_m) * (k ^ -0.6666666666666666)) ^ 3.0; else tmp = Float64(2.0 / Float64(Float64(k * k) * Float64(Float64(t_m * (sin(k) ^ 2.0)) / Float64(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-22], N[Power[N[(N[(N[Power[N[Power[l, 1/3], $MachinePrecision], 2.0], $MachinePrecision] / t$95$m), $MachinePrecision] * N[Power[k, -0.6666666666666666], $MachinePrecision]), $MachinePrecision], 3.0], $MachinePrecision], N[(2.0 / N[(N[(k * k), $MachinePrecision] * N[(N[(t$95$m * N[Power[N[Sin[k], $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision] / N[(N[Cos[k], $MachinePrecision] * N[Power[l, 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 2.4 \cdot 10^{-22}:\\
\;\;\;\;{\left(\frac{{\left(\sqrt[3]{\ell}\right)}^{2}}{t\_m} \cdot {k}^{-0.6666666666666666}\right)}^{3}\\
\mathbf{else}:\\
\;\;\;\;\frac{2}{\left(k \cdot k\right) \cdot \frac{t\_m \cdot {\sin k}^{2}}{\cos k \cdot {\ell}^{2}}}\\
\end{array}
\end{array}
if k < 2.40000000000000002e-22Initial program 52.5%
Simplified60.6%
associate-/l/60.6%
add-cube-cbrt60.4%
times-frac60.4%
Applied egg-rr83.9%
associate-/l/83.9%
Simplified83.9%
Taylor expanded in k around 0 43.5%
*-commutative43.5%
associate-/r*44.2%
Simplified44.2%
add-cube-cbrt44.2%
pow244.2%
div-inv42.5%
cbrt-prod42.5%
cbrt-div42.5%
unpow242.5%
cbrt-prod42.5%
unpow242.5%
unpow342.5%
add-cbrt-cube42.5%
pow-flip42.5%
metadata-eval42.5%
div-inv42.5%
Applied egg-rr60.2%
unpow260.2%
unpow360.2%
Simplified60.2%
pow1/359.3%
pow-pow26.1%
metadata-eval26.1%
Applied egg-rr26.1%
if 2.40000000000000002e-22 < k Initial program 52.5%
unpow352.5%
times-frac60.8%
pow260.8%
Applied egg-rr60.8%
Taylor expanded in t around 0 66.5%
associate-/l*66.5%
*-commutative66.5%
Simplified66.5%
unpow249.6%
Applied egg-rr66.5%
Final simplification36.5%
t\_m = (fabs.f64 t)
t\_s = (copysign.f64 1 t)
(FPCore (t_s t_m l k)
:precision binary64
(*
t_s
(if (<= k 2.4e-22)
(pow (* (/ (pow (cbrt l) 2.0) t_m) (pow k -0.6666666666666666)) 3.0)
(/ 2.0 (* (pow k 2.0) (* (/ (pow k 2.0) (pow l 2.0)) (/ t_m (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-22) {
tmp = pow(((pow(cbrt(l), 2.0) / t_m) * pow(k, -0.6666666666666666)), 3.0);
} else {
tmp = 2.0 / (pow(k, 2.0) * ((pow(k, 2.0) / pow(l, 2.0)) * (t_m / 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-22) {
tmp = Math.pow(((Math.pow(Math.cbrt(l), 2.0) / t_m) * Math.pow(k, -0.6666666666666666)), 3.0);
} else {
tmp = 2.0 / (Math.pow(k, 2.0) * ((Math.pow(k, 2.0) / Math.pow(l, 2.0)) * (t_m / 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-22) tmp = Float64(Float64((cbrt(l) ^ 2.0) / t_m) * (k ^ -0.6666666666666666)) ^ 3.0; else tmp = Float64(2.0 / Float64((k ^ 2.0) * Float64(Float64((k ^ 2.0) / (l ^ 2.0)) * Float64(t_m / 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-22], N[Power[N[(N[(N[Power[N[Power[l, 1/3], $MachinePrecision], 2.0], $MachinePrecision] / t$95$m), $MachinePrecision] * N[Power[k, -0.6666666666666666], $MachinePrecision]), $MachinePrecision], 3.0], $MachinePrecision], N[(2.0 / N[(N[Power[k, 2.0], $MachinePrecision] * N[(N[(N[Power[k, 2.0], $MachinePrecision] / N[Power[l, 2.0], $MachinePrecision]), $MachinePrecision] * N[(t$95$m / N[Cos[k], $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 2.4 \cdot 10^{-22}:\\
\;\;\;\;{\left(\frac{{\left(\sqrt[3]{\ell}\right)}^{2}}{t\_m} \cdot {k}^{-0.6666666666666666}\right)}^{3}\\
\mathbf{else}:\\
\;\;\;\;\frac{2}{{k}^{2} \cdot \left(\frac{{k}^{2}}{{\ell}^{2}} \cdot \frac{t\_m}{\cos k}\right)}\\
\end{array}
\end{array}
if k < 2.40000000000000002e-22Initial program 52.5%
Simplified60.6%
associate-/l/60.6%
add-cube-cbrt60.4%
times-frac60.4%
Applied egg-rr83.9%
associate-/l/83.9%
Simplified83.9%
Taylor expanded in k around 0 43.5%
*-commutative43.5%
associate-/r*44.2%
Simplified44.2%
add-cube-cbrt44.2%
pow244.2%
div-inv42.5%
cbrt-prod42.5%
cbrt-div42.5%
unpow242.5%
cbrt-prod42.5%
unpow242.5%
unpow342.5%
add-cbrt-cube42.5%
pow-flip42.5%
metadata-eval42.5%
div-inv42.5%
Applied egg-rr60.2%
unpow260.2%
unpow360.2%
Simplified60.2%
pow1/359.3%
pow-pow26.1%
metadata-eval26.1%
Applied egg-rr26.1%
if 2.40000000000000002e-22 < k Initial program 52.5%
unpow352.5%
times-frac60.8%
pow260.8%
Applied egg-rr60.8%
Taylor expanded in t around 0 66.5%
associate-/l*66.5%
*-commutative66.5%
Simplified66.5%
Taylor expanded in k around 0 63.8%
times-frac63.9%
Applied egg-rr63.9%
Final simplification35.9%
t\_m = (fabs.f64 t)
t\_s = (copysign.f64 1 t)
(FPCore (t_s t_m l k)
:precision binary64
(*
t_s
(if (<= t_m 2.8e-67)
(/ 2.0 (* (pow k 2.0) (* (pow k 2.0) (/ t_m (pow l 2.0)))))
(if (<= t_m 3.2e-17)
(/ (pow (/ (pow (cbrt l) 2.0) t_m) 3.0) (pow k 2.0))
(/ (pow l 2.0) (pow (* t_m (pow (cbrt 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 (t_m <= 2.8e-67) {
tmp = 2.0 / (pow(k, 2.0) * (pow(k, 2.0) * (t_m / pow(l, 2.0))));
} else if (t_m <= 3.2e-17) {
tmp = pow((pow(cbrt(l), 2.0) / t_m), 3.0) / pow(k, 2.0);
} else {
tmp = pow(l, 2.0) / pow((t_m * pow(cbrt(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 (t_m <= 2.8e-67) {
tmp = 2.0 / (Math.pow(k, 2.0) * (Math.pow(k, 2.0) * (t_m / Math.pow(l, 2.0))));
} else if (t_m <= 3.2e-17) {
tmp = Math.pow((Math.pow(Math.cbrt(l), 2.0) / t_m), 3.0) / Math.pow(k, 2.0);
} else {
tmp = Math.pow(l, 2.0) / Math.pow((t_m * Math.pow(Math.cbrt(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 (t_m <= 2.8e-67) tmp = Float64(2.0 / Float64((k ^ 2.0) * Float64((k ^ 2.0) * Float64(t_m / (l ^ 2.0))))); elseif (t_m <= 3.2e-17) tmp = Float64((Float64((cbrt(l) ^ 2.0) / t_m) ^ 3.0) / (k ^ 2.0)); else tmp = Float64((l ^ 2.0) / (Float64(t_m * (cbrt(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[t$95$m, 2.8e-67], N[(2.0 / N[(N[Power[k, 2.0], $MachinePrecision] * N[(N[Power[k, 2.0], $MachinePrecision] * N[(t$95$m / N[Power[l, 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$m, 3.2e-17], N[(N[Power[N[(N[Power[N[Power[l, 1/3], $MachinePrecision], 2.0], $MachinePrecision] / t$95$m), $MachinePrecision], 3.0], $MachinePrecision] / N[Power[k, 2.0], $MachinePrecision]), $MachinePrecision], N[(N[Power[l, 2.0], $MachinePrecision] / N[Power[N[(t$95$m * N[Power[N[Power[k, 1/3], $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision], 3.0], $MachinePrecision]), $MachinePrecision]]]), $MachinePrecision]
\begin{array}{l}
t\_m = \left|t\right|
\\
t\_s = \mathsf{copysign}\left(1, t\right)
\\
t\_s \cdot \begin{array}{l}
\mathbf{if}\;t\_m \leq 2.8 \cdot 10^{-67}:\\
\;\;\;\;\frac{2}{{k}^{2} \cdot \left({k}^{2} \cdot \frac{t\_m}{{\ell}^{2}}\right)}\\
\mathbf{elif}\;t\_m \leq 3.2 \cdot 10^{-17}:\\
\;\;\;\;\frac{{\left(\frac{{\left(\sqrt[3]{\ell}\right)}^{2}}{t\_m}\right)}^{3}}{{k}^{2}}\\
\mathbf{else}:\\
\;\;\;\;\frac{{\ell}^{2}}{{\left(t\_m \cdot {\left(\sqrt[3]{k}\right)}^{2}\right)}^{3}}\\
\end{array}
\end{array}
if t < 2.8000000000000001e-67Initial program 47.5%
unpow347.5%
times-frac61.1%
pow261.1%
Applied egg-rr61.1%
Taylor expanded in t around 0 54.1%
associate-/l*54.5%
*-commutative54.5%
Simplified54.5%
Taylor expanded in k around 0 49.9%
associate-/l*50.8%
Simplified50.8%
if 2.8000000000000001e-67 < t < 3.2000000000000002e-17Initial program 67.5%
Simplified75.6%
associate-/l/75.6%
add-cube-cbrt75.5%
times-frac75.5%
Applied egg-rr82.8%
associate-/l/82.8%
Simplified82.8%
Taylor expanded in k around 0 43.1%
*-commutative43.1%
associate-/r*58.4%
Simplified58.4%
add-cube-cbrt58.1%
pow258.1%
cbrt-div58.2%
unpow258.2%
cbrt-prod58.1%
unpow258.1%
unpow358.1%
add-cbrt-cube58.1%
cbrt-div58.4%
unpow258.4%
cbrt-prod66.4%
unpow266.4%
unpow366.4%
add-cbrt-cube66.4%
Applied egg-rr66.4%
unpow266.4%
unpow366.4%
Simplified66.4%
if 3.2000000000000002e-17 < t Initial program 63.5%
Simplified70.2%
Taylor expanded in k around 0 50.8%
*-commutative50.8%
Simplified50.8%
add-cube-cbrt50.8%
pow250.8%
cbrt-div50.8%
cbrt-prod50.7%
unpow350.7%
add-cbrt-cube50.8%
unpow250.8%
cbrt-prod50.8%
pow250.8%
cbrt-div50.8%
cbrt-prod50.8%
unpow350.8%
add-cbrt-cube54.3%
unpow254.3%
cbrt-prod69.8%
pow269.8%
Applied egg-rr69.8%
unpow269.8%
unpow369.7%
cube-div68.0%
rem-cube-cbrt68.0%
Simplified68.0%
Final simplification55.9%
t\_m = (fabs.f64 t)
t\_s = (copysign.f64 1 t)
(FPCore (t_s t_m l k)
:precision binary64
(*
t_s
(if (<= t_m 2.8e-24)
(/ 2.0 (* (pow k 2.0) (* (pow k 2.0) (/ t_m (pow l 2.0)))))
(/ (pow l 2.0) (pow (* t_m (pow (cbrt 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 (t_m <= 2.8e-24) {
tmp = 2.0 / (pow(k, 2.0) * (pow(k, 2.0) * (t_m / pow(l, 2.0))));
} else {
tmp = pow(l, 2.0) / pow((t_m * pow(cbrt(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 (t_m <= 2.8e-24) {
tmp = 2.0 / (Math.pow(k, 2.0) * (Math.pow(k, 2.0) * (t_m / Math.pow(l, 2.0))));
} else {
tmp = Math.pow(l, 2.0) / Math.pow((t_m * Math.pow(Math.cbrt(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 (t_m <= 2.8e-24) tmp = Float64(2.0 / Float64((k ^ 2.0) * Float64((k ^ 2.0) * Float64(t_m / (l ^ 2.0))))); else tmp = Float64((l ^ 2.0) / (Float64(t_m * (cbrt(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[t$95$m, 2.8e-24], N[(2.0 / N[(N[Power[k, 2.0], $MachinePrecision] * N[(N[Power[k, 2.0], $MachinePrecision] * N[(t$95$m / N[Power[l, 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[Power[l, 2.0], $MachinePrecision] / N[Power[N[(t$95$m * N[Power[N[Power[k, 1/3], $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision], 3.0], $MachinePrecision]), $MachinePrecision]]), $MachinePrecision]
\begin{array}{l}
t\_m = \left|t\right|
\\
t\_s = \mathsf{copysign}\left(1, t\right)
\\
t\_s \cdot \begin{array}{l}
\mathbf{if}\;t\_m \leq 2.8 \cdot 10^{-24}:\\
\;\;\;\;\frac{2}{{k}^{2} \cdot \left({k}^{2} \cdot \frac{t\_m}{{\ell}^{2}}\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{{\ell}^{2}}{{\left(t\_m \cdot {\left(\sqrt[3]{k}\right)}^{2}\right)}^{3}}\\
\end{array}
\end{array}
if t < 2.8000000000000002e-24Initial program 48.5%
unpow348.4%
times-frac61.8%
pow261.8%
Applied egg-rr61.8%
Taylor expanded in t around 0 53.6%
associate-/l*54.1%
*-commutative54.1%
Simplified54.1%
Taylor expanded in k around 0 49.2%
associate-/l*50.1%
Simplified50.1%
if 2.8000000000000002e-24 < t Initial program 64.1%
Simplified70.7%
Taylor expanded in k around 0 51.6%
*-commutative51.6%
Simplified51.6%
add-cube-cbrt51.6%
pow251.6%
cbrt-div51.5%
cbrt-prod51.5%
unpow351.5%
add-cbrt-cube51.5%
unpow251.5%
cbrt-prod51.5%
pow251.5%
cbrt-div51.6%
cbrt-prod51.5%
unpow351.5%
add-cbrt-cube55.0%
unpow255.0%
cbrt-prod70.2%
pow270.2%
Applied egg-rr70.2%
unpow270.2%
unpow370.2%
cube-div68.4%
rem-cube-cbrt68.4%
Simplified68.4%
Final simplification54.8%
t\_m = (fabs.f64 t)
t\_s = (copysign.f64 1 t)
(FPCore (t_s t_m l k)
:precision binary64
(*
t_s
(if (<= k 2.4e-22)
(pow (* (/ (pow (cbrt l) 2.0) t_m) (pow k -0.6666666666666666)) 3.0)
(/ 2.0 (* (pow k 4.0) (/ t_m (* (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-22) {
tmp = pow(((pow(cbrt(l), 2.0) / t_m) * pow(k, -0.6666666666666666)), 3.0);
} else {
tmp = 2.0 / (pow(k, 4.0) * (t_m / (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-22) {
tmp = Math.pow(((Math.pow(Math.cbrt(l), 2.0) / t_m) * Math.pow(k, -0.6666666666666666)), 3.0);
} else {
tmp = 2.0 / (Math.pow(k, 4.0) * (t_m / (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-22) tmp = Float64(Float64((cbrt(l) ^ 2.0) / t_m) * (k ^ -0.6666666666666666)) ^ 3.0; else tmp = Float64(2.0 / Float64((k ^ 4.0) * Float64(t_m / Float64(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-22], N[Power[N[(N[(N[Power[N[Power[l, 1/3], $MachinePrecision], 2.0], $MachinePrecision] / t$95$m), $MachinePrecision] * N[Power[k, -0.6666666666666666], $MachinePrecision]), $MachinePrecision], 3.0], $MachinePrecision], N[(2.0 / N[(N[Power[k, 4.0], $MachinePrecision] * N[(t$95$m / N[(N[Cos[k], $MachinePrecision] * N[Power[l, 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 2.4 \cdot 10^{-22}:\\
\;\;\;\;{\left(\frac{{\left(\sqrt[3]{\ell}\right)}^{2}}{t\_m} \cdot {k}^{-0.6666666666666666}\right)}^{3}\\
\mathbf{else}:\\
\;\;\;\;\frac{2}{{k}^{4} \cdot \frac{t\_m}{\cos k \cdot {\ell}^{2}}}\\
\end{array}
\end{array}
if k < 2.40000000000000002e-22Initial program 52.5%
Simplified60.6%
associate-/l/60.6%
add-cube-cbrt60.4%
times-frac60.4%
Applied egg-rr83.9%
associate-/l/83.9%
Simplified83.9%
Taylor expanded in k around 0 43.5%
*-commutative43.5%
associate-/r*44.2%
Simplified44.2%
add-cube-cbrt44.2%
pow244.2%
div-inv42.5%
cbrt-prod42.5%
cbrt-div42.5%
unpow242.5%
cbrt-prod42.5%
unpow242.5%
unpow342.5%
add-cbrt-cube42.5%
pow-flip42.5%
metadata-eval42.5%
div-inv42.5%
Applied egg-rr60.2%
unpow260.2%
unpow360.2%
Simplified60.2%
pow1/359.3%
pow-pow26.1%
metadata-eval26.1%
Applied egg-rr26.1%
if 2.40000000000000002e-22 < k Initial program 52.5%
unpow352.5%
times-frac60.8%
pow260.8%
Applied egg-rr60.8%
Taylor expanded in t around 0 66.5%
associate-/l*66.5%
*-commutative66.5%
Simplified66.5%
Taylor expanded in k around 0 63.8%
Taylor expanded in k around inf 59.2%
associate-/l*59.3%
Simplified59.3%
Final simplification34.7%
t\_m = (fabs.f64 t)
t\_s = (copysign.f64 1 t)
(FPCore (t_s t_m l k)
:precision binary64
(*
t_s
(if (<= t_m 2.6e-67)
(/ 2.0 (* (pow k 2.0) (* (pow k 2.0) (/ t_m (pow l 2.0)))))
(/ (/ (pow l 2.0) (pow t_m 3.0)) (* k 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 (t_m <= 2.6e-67) {
tmp = 2.0 / (pow(k, 2.0) * (pow(k, 2.0) * (t_m / pow(l, 2.0))));
} else {
tmp = (pow(l, 2.0) / pow(t_m, 3.0)) / (k * 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 (t_m <= 2.6d-67) then
tmp = 2.0d0 / ((k ** 2.0d0) * ((k ** 2.0d0) * (t_m / (l ** 2.0d0))))
else
tmp = ((l ** 2.0d0) / (t_m ** 3.0d0)) / (k * 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 (t_m <= 2.6e-67) {
tmp = 2.0 / (Math.pow(k, 2.0) * (Math.pow(k, 2.0) * (t_m / Math.pow(l, 2.0))));
} else {
tmp = (Math.pow(l, 2.0) / Math.pow(t_m, 3.0)) / (k * 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 t_m <= 2.6e-67: tmp = 2.0 / (math.pow(k, 2.0) * (math.pow(k, 2.0) * (t_m / math.pow(l, 2.0)))) else: tmp = (math.pow(l, 2.0) / math.pow(t_m, 3.0)) / (k * 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 (t_m <= 2.6e-67) tmp = Float64(2.0 / Float64((k ^ 2.0) * Float64((k ^ 2.0) * Float64(t_m / (l ^ 2.0))))); else tmp = Float64(Float64((l ^ 2.0) / (t_m ^ 3.0)) / Float64(k * 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 (t_m <= 2.6e-67) tmp = 2.0 / ((k ^ 2.0) * ((k ^ 2.0) * (t_m / (l ^ 2.0)))); else tmp = ((l ^ 2.0) / (t_m ^ 3.0)) / (k * 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[t$95$m, 2.6e-67], N[(2.0 / N[(N[Power[k, 2.0], $MachinePrecision] * N[(N[Power[k, 2.0], $MachinePrecision] * N[(t$95$m / N[Power[l, 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[Power[l, 2.0], $MachinePrecision] / N[Power[t$95$m, 3.0], $MachinePrecision]), $MachinePrecision] / N[(k * k), $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.6 \cdot 10^{-67}:\\
\;\;\;\;\frac{2}{{k}^{2} \cdot \left({k}^{2} \cdot \frac{t\_m}{{\ell}^{2}}\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{{\ell}^{2}}{{t\_m}^{3}}}{k \cdot k}\\
\end{array}
\end{array}
if t < 2.5999999999999999e-67Initial program 47.5%
unpow347.5%
times-frac61.1%
pow261.1%
Applied egg-rr61.1%
Taylor expanded in t around 0 54.1%
associate-/l*54.5%
*-commutative54.5%
Simplified54.5%
Taylor expanded in k around 0 49.9%
associate-/l*50.8%
Simplified50.8%
if 2.5999999999999999e-67 < t Initial program 64.2%
Simplified71.1%
associate-/l/71.1%
add-cube-cbrt70.9%
times-frac70.9%
Applied egg-rr93.7%
associate-/l/93.7%
Simplified93.7%
Taylor expanded in k around 0 49.6%
*-commutative49.6%
associate-/r*52.0%
Simplified52.0%
unpow252.0%
Applied egg-rr52.0%
Final simplification51.2%
t\_m = (fabs.f64 t)
t\_s = (copysign.f64 1 t)
(FPCore (t_s t_m l k)
:precision binary64
(*
t_s
(if (<= t_m 2.8e-67)
(/ 2.0 (* (pow k 4.0) (/ t_m (* (cos k) (pow l 2.0)))))
(/ (/ (pow l 2.0) (pow t_m 3.0)) (* k 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 (t_m <= 2.8e-67) {
tmp = 2.0 / (pow(k, 4.0) * (t_m / (cos(k) * pow(l, 2.0))));
} else {
tmp = (pow(l, 2.0) / pow(t_m, 3.0)) / (k * 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 (t_m <= 2.8d-67) then
tmp = 2.0d0 / ((k ** 4.0d0) * (t_m / (cos(k) * (l ** 2.0d0))))
else
tmp = ((l ** 2.0d0) / (t_m ** 3.0d0)) / (k * 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 (t_m <= 2.8e-67) {
tmp = 2.0 / (Math.pow(k, 4.0) * (t_m / (Math.cos(k) * Math.pow(l, 2.0))));
} else {
tmp = (Math.pow(l, 2.0) / Math.pow(t_m, 3.0)) / (k * 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 t_m <= 2.8e-67: tmp = 2.0 / (math.pow(k, 4.0) * (t_m / (math.cos(k) * math.pow(l, 2.0)))) else: tmp = (math.pow(l, 2.0) / math.pow(t_m, 3.0)) / (k * 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 (t_m <= 2.8e-67) tmp = Float64(2.0 / Float64((k ^ 4.0) * Float64(t_m / Float64(cos(k) * (l ^ 2.0))))); else tmp = Float64(Float64((l ^ 2.0) / (t_m ^ 3.0)) / Float64(k * 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 (t_m <= 2.8e-67) tmp = 2.0 / ((k ^ 4.0) * (t_m / (cos(k) * (l ^ 2.0)))); else tmp = ((l ^ 2.0) / (t_m ^ 3.0)) / (k * 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[t$95$m, 2.8e-67], N[(2.0 / N[(N[Power[k, 4.0], $MachinePrecision] * N[(t$95$m / N[(N[Cos[k], $MachinePrecision] * N[Power[l, 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[Power[l, 2.0], $MachinePrecision] / N[Power[t$95$m, 3.0], $MachinePrecision]), $MachinePrecision] / N[(k * k), $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.8 \cdot 10^{-67}:\\
\;\;\;\;\frac{2}{{k}^{4} \cdot \frac{t\_m}{\cos k \cdot {\ell}^{2}}}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{{\ell}^{2}}{{t\_m}^{3}}}{k \cdot k}\\
\end{array}
\end{array}
if t < 2.8000000000000001e-67Initial program 47.5%
unpow347.5%
times-frac61.1%
pow261.1%
Applied egg-rr61.1%
Taylor expanded in t around 0 54.1%
associate-/l*54.5%
*-commutative54.5%
Simplified54.5%
Taylor expanded in k around 0 52.4%
Taylor expanded in k around inf 49.1%
associate-/l*50.4%
Simplified50.4%
if 2.8000000000000001e-67 < t Initial program 64.2%
Simplified71.1%
associate-/l/71.1%
add-cube-cbrt70.9%
times-frac70.9%
Applied egg-rr93.7%
associate-/l/93.7%
Simplified93.7%
Taylor expanded in k around 0 49.6%
*-commutative49.6%
associate-/r*52.0%
Simplified52.0%
unpow252.0%
Applied egg-rr52.0%
Final simplification50.9%
t\_m = (fabs.f64 t)
t\_s = (copysign.f64 1 t)
(FPCore (t_s t_m l k)
:precision binary64
(*
t_s
(if (<= t_m 2.6e-67)
(/ 2.0 (* (pow k 4.0) (/ 1.0 (/ (pow l 2.0) t_m))))
(/ (/ (pow l 2.0) (pow t_m 3.0)) (* k 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 (t_m <= 2.6e-67) {
tmp = 2.0 / (pow(k, 4.0) * (1.0 / (pow(l, 2.0) / t_m)));
} else {
tmp = (pow(l, 2.0) / pow(t_m, 3.0)) / (k * 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 (t_m <= 2.6d-67) then
tmp = 2.0d0 / ((k ** 4.0d0) * (1.0d0 / ((l ** 2.0d0) / t_m)))
else
tmp = ((l ** 2.0d0) / (t_m ** 3.0d0)) / (k * 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 (t_m <= 2.6e-67) {
tmp = 2.0 / (Math.pow(k, 4.0) * (1.0 / (Math.pow(l, 2.0) / t_m)));
} else {
tmp = (Math.pow(l, 2.0) / Math.pow(t_m, 3.0)) / (k * 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 t_m <= 2.6e-67: tmp = 2.0 / (math.pow(k, 4.0) * (1.0 / (math.pow(l, 2.0) / t_m))) else: tmp = (math.pow(l, 2.0) / math.pow(t_m, 3.0)) / (k * 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 (t_m <= 2.6e-67) tmp = Float64(2.0 / Float64((k ^ 4.0) * Float64(1.0 / Float64((l ^ 2.0) / t_m)))); else tmp = Float64(Float64((l ^ 2.0) / (t_m ^ 3.0)) / Float64(k * 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 (t_m <= 2.6e-67) tmp = 2.0 / ((k ^ 4.0) * (1.0 / ((l ^ 2.0) / t_m))); else tmp = ((l ^ 2.0) / (t_m ^ 3.0)) / (k * 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[t$95$m, 2.6e-67], N[(2.0 / N[(N[Power[k, 4.0], $MachinePrecision] * N[(1.0 / N[(N[Power[l, 2.0], $MachinePrecision] / t$95$m), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[Power[l, 2.0], $MachinePrecision] / N[Power[t$95$m, 3.0], $MachinePrecision]), $MachinePrecision] / N[(k * k), $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.6 \cdot 10^{-67}:\\
\;\;\;\;\frac{2}{{k}^{4} \cdot \frac{1}{\frac{{\ell}^{2}}{t\_m}}}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{{\ell}^{2}}{{t\_m}^{3}}}{k \cdot k}\\
\end{array}
\end{array}
if t < 2.5999999999999999e-67Initial program 47.5%
unpow347.5%
times-frac61.1%
pow261.1%
Applied egg-rr61.1%
Taylor expanded in t around 0 54.1%
associate-/l*54.5%
*-commutative54.5%
Simplified54.5%
Taylor expanded in k around 0 47.8%
associate-/l*49.1%
Simplified49.1%
clear-num49.1%
inv-pow49.1%
Applied egg-rr49.1%
unpow-149.1%
Simplified49.1%
if 2.5999999999999999e-67 < t Initial program 64.2%
Simplified71.1%
associate-/l/71.1%
add-cube-cbrt70.9%
times-frac70.9%
Applied egg-rr93.7%
associate-/l/93.7%
Simplified93.7%
Taylor expanded in k around 0 49.6%
*-commutative49.6%
associate-/r*52.0%
Simplified52.0%
unpow252.0%
Applied egg-rr52.0%
Final simplification50.0%
t\_m = (fabs.f64 t)
t\_s = (copysign.f64 1 t)
(FPCore (t_s t_m l k)
:precision binary64
(*
t_s
(if (<= t_m 2.8e-67)
(/ 2.0 (* (pow k 4.0) (/ t_m (pow l 2.0))))
(/ (/ (pow l 2.0) (pow t_m 3.0)) (* k 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 (t_m <= 2.8e-67) {
tmp = 2.0 / (pow(k, 4.0) * (t_m / pow(l, 2.0)));
} else {
tmp = (pow(l, 2.0) / pow(t_m, 3.0)) / (k * 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 (t_m <= 2.8d-67) then
tmp = 2.0d0 / ((k ** 4.0d0) * (t_m / (l ** 2.0d0)))
else
tmp = ((l ** 2.0d0) / (t_m ** 3.0d0)) / (k * 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 (t_m <= 2.8e-67) {
tmp = 2.0 / (Math.pow(k, 4.0) * (t_m / Math.pow(l, 2.0)));
} else {
tmp = (Math.pow(l, 2.0) / Math.pow(t_m, 3.0)) / (k * 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 t_m <= 2.8e-67: tmp = 2.0 / (math.pow(k, 4.0) * (t_m / math.pow(l, 2.0))) else: tmp = (math.pow(l, 2.0) / math.pow(t_m, 3.0)) / (k * 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 (t_m <= 2.8e-67) tmp = Float64(2.0 / Float64((k ^ 4.0) * Float64(t_m / (l ^ 2.0)))); else tmp = Float64(Float64((l ^ 2.0) / (t_m ^ 3.0)) / Float64(k * 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 (t_m <= 2.8e-67) tmp = 2.0 / ((k ^ 4.0) * (t_m / (l ^ 2.0))); else tmp = ((l ^ 2.0) / (t_m ^ 3.0)) / (k * 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[t$95$m, 2.8e-67], N[(2.0 / N[(N[Power[k, 4.0], $MachinePrecision] * N[(t$95$m / N[Power[l, 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[Power[l, 2.0], $MachinePrecision] / N[Power[t$95$m, 3.0], $MachinePrecision]), $MachinePrecision] / N[(k * k), $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.8 \cdot 10^{-67}:\\
\;\;\;\;\frac{2}{{k}^{4} \cdot \frac{t\_m}{{\ell}^{2}}}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{{\ell}^{2}}{{t\_m}^{3}}}{k \cdot k}\\
\end{array}
\end{array}
if t < 2.8000000000000001e-67Initial program 47.5%
unpow347.5%
times-frac61.1%
pow261.1%
Applied egg-rr61.1%
Taylor expanded in t around 0 54.1%
associate-/l*54.5%
*-commutative54.5%
Simplified54.5%
Taylor expanded in k around 0 47.8%
associate-/l*49.1%
Simplified49.1%
if 2.8000000000000001e-67 < t Initial program 64.2%
Simplified71.1%
associate-/l/71.1%
add-cube-cbrt70.9%
times-frac70.9%
Applied egg-rr93.7%
associate-/l/93.7%
Simplified93.7%
Taylor expanded in k around 0 49.6%
*-commutative49.6%
associate-/r*52.0%
Simplified52.0%
unpow252.0%
Applied egg-rr52.0%
Final simplification49.9%
t\_m = (fabs.f64 t) t\_s = (copysign.f64 1 t) (FPCore (t_s t_m l k) :precision binary64 (* t_s (* 2.0 (/ (pow l 2.0) (* t_m (pow k 4.0))))))
t\_m = fabs(t);
t\_s = copysign(1.0, t);
double code(double t_s, double t_m, double l, double k) {
return t_s * (2.0 * (pow(l, 2.0) / (t_m * pow(k, 4.0))));
}
t\_m = abs(t)
t\_s = copysign(1.0d0, t)
real(8) function code(t_s, t_m, l, k)
real(8), intent (in) :: t_s
real(8), intent (in) :: t_m
real(8), intent (in) :: l
real(8), intent (in) :: k
code = t_s * (2.0d0 * ((l ** 2.0d0) / (t_m * (k ** 4.0d0))))
end function
t\_m = Math.abs(t);
t\_s = Math.copySign(1.0, t);
public static double code(double t_s, double t_m, double l, double k) {
return t_s * (2.0 * (Math.pow(l, 2.0) / (t_m * Math.pow(k, 4.0))));
}
t\_m = math.fabs(t) t\_s = math.copysign(1.0, t) def code(t_s, t_m, l, k): return t_s * (2.0 * (math.pow(l, 2.0) / (t_m * math.pow(k, 4.0))))
t\_m = abs(t) t\_s = copysign(1.0, t) function code(t_s, t_m, l, k) return Float64(t_s * Float64(2.0 * Float64((l ^ 2.0) / Float64(t_m * (k ^ 4.0))))) end
t\_m = abs(t); t\_s = sign(t) * abs(1.0); function tmp = code(t_s, t_m, l, k) tmp = t_s * (2.0 * ((l ^ 2.0) / (t_m * (k ^ 4.0)))); end
t\_m = N[Abs[t], $MachinePrecision]
t\_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[t]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
code[t$95$s_, t$95$m_, l_, k_] := N[(t$95$s * N[(2.0 * N[(N[Power[l, 2.0], $MachinePrecision] / N[(t$95$m * N[Power[k, 4.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
t\_m = \left|t\right|
\\
t\_s = \mathsf{copysign}\left(1, t\right)
\\
t\_s \cdot \left(2 \cdot \frac{{\ell}^{2}}{t\_m \cdot {k}^{4}}\right)
\end{array}
Initial program 52.5%
unpow352.5%
times-frac65.6%
pow265.6%
Applied egg-rr65.6%
Taylor expanded in t around 0 51.5%
associate-/l*52.7%
*-commutative52.7%
Simplified52.7%
Taylor expanded in k around 0 45.6%
associate-/l*46.9%
Simplified46.9%
Taylor expanded in k around 0 45.7%
Final simplification45.7%
t\_m = (fabs.f64 t) t\_s = (copysign.f64 1 t) (FPCore (t_s t_m l k) :precision binary64 (* t_s (/ 2.0 (* (pow k 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) {
return t_s * (2.0 / (pow(k, 4.0) * (t_m / pow(l, 2.0))));
}
t\_m = abs(t)
t\_s = copysign(1.0d0, t)
real(8) function code(t_s, t_m, l, k)
real(8), intent (in) :: t_s
real(8), intent (in) :: t_m
real(8), intent (in) :: l
real(8), intent (in) :: k
code = t_s * (2.0d0 / ((k ** 4.0d0) * (t_m / (l ** 2.0d0))))
end function
t\_m = Math.abs(t);
t\_s = Math.copySign(1.0, t);
public static double code(double t_s, double t_m, double l, double k) {
return t_s * (2.0 / (Math.pow(k, 4.0) * (t_m / Math.pow(l, 2.0))));
}
t\_m = math.fabs(t) t\_s = math.copysign(1.0, t) def code(t_s, t_m, l, k): return t_s * (2.0 / (math.pow(k, 4.0) * (t_m / math.pow(l, 2.0))))
t\_m = abs(t) t\_s = copysign(1.0, t) function code(t_s, t_m, l, k) return Float64(t_s * Float64(2.0 / Float64((k ^ 4.0) * Float64(t_m / (l ^ 2.0))))) end
t\_m = abs(t); t\_s = sign(t) * abs(1.0); function tmp = code(t_s, t_m, l, k) tmp = t_s * (2.0 / ((k ^ 4.0) * (t_m / (l ^ 2.0)))); end
t\_m = N[Abs[t], $MachinePrecision]
t\_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[t]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
code[t$95$s_, t$95$m_, l_, k_] := N[(t$95$s * N[(2.0 / N[(N[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 \frac{2}{{k}^{4} \cdot \frac{t\_m}{{\ell}^{2}}}
\end{array}
Initial program 52.5%
unpow352.5%
times-frac65.6%
pow265.6%
Applied egg-rr65.6%
Taylor expanded in t around 0 51.5%
associate-/l*52.7%
*-commutative52.7%
Simplified52.7%
Taylor expanded in k around 0 45.6%
associate-/l*46.9%
Simplified46.9%
Final simplification46.9%
herbie shell --seed 2024050
(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))))