
(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 15 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 7.8e-11)
(* (/ 2.0 (* (sin k) (tan k))) (pow (* (/ k l) (sqrt t_m)) -2.0))
(pow (/ (pow (cbrt l) 2.0) (* 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 <= 7.8e-11) {
tmp = (2.0 / (sin(k) * tan(k))) * pow(((k / l) * sqrt(t_m)), -2.0);
} else {
tmp = pow((pow(cbrt(l), 2.0) / (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 <= 7.8e-11) {
tmp = (2.0 / (Math.sin(k) * Math.tan(k))) * Math.pow(((k / l) * Math.sqrt(t_m)), -2.0);
} else {
tmp = Math.pow((Math.pow(Math.cbrt(l), 2.0) / (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 <= 7.8e-11) tmp = Float64(Float64(2.0 / Float64(sin(k) * tan(k))) * (Float64(Float64(k / l) * sqrt(t_m)) ^ -2.0)); else tmp = Float64((cbrt(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, 7.8e-11], N[(N[(2.0 / N[(N[Sin[k], $MachinePrecision] * N[Tan[k], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[Power[N[(N[(k / l), $MachinePrecision] * N[Sqrt[t$95$m], $MachinePrecision]), $MachinePrecision], -2.0], $MachinePrecision]), $MachinePrecision], N[Power[N[(N[Power[N[Power[l, 1/3], $MachinePrecision], 2.0], $MachinePrecision] / N[(t$95$m * N[Power[N[Power[k, 1/3], $MachinePrecision], 2.0], $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 7.8 \cdot 10^{-11}:\\
\;\;\;\;\frac{2}{\sin k \cdot \tan k} \cdot {\left(\frac{k}{\ell} \cdot \sqrt{t\_m}\right)}^{-2}\\
\mathbf{else}:\\
\;\;\;\;{\left(\frac{{\left(\sqrt[3]{\ell}\right)}^{2}}{t\_m \cdot {\left(\sqrt[3]{k}\right)}^{2}}\right)}^{3}\\
\end{array}
\end{array}
if t < 7.80000000000000021e-11Initial program 46.6%
Simplified46.8%
associate-*l*44.6%
associate-/r*50.2%
associate-+r+50.2%
metadata-eval50.2%
associate-*l*50.1%
add-sqr-sqrt22.0%
pow222.0%
Applied egg-rr22.3%
associate-*r*22.3%
Simplified22.3%
*-un-lft-identity22.3%
*-commutative22.3%
unpow-prod-down22.3%
pow222.3%
add-sqr-sqrt28.6%
*-commutative28.6%
Applied egg-rr28.6%
*-lft-identity28.6%
associate-/r*28.7%
Simplified28.7%
Taylor expanded in k around inf 35.0%
div-inv35.0%
pow-flip35.0%
metadata-eval35.0%
Applied egg-rr35.0%
if 7.80000000000000021e-11 < t Initial program 64.4%
Simplified62.9%
add-sqr-sqrt62.8%
pow262.8%
associate-/r*57.9%
sqrt-div57.9%
sqrt-pow161.3%
metadata-eval61.3%
sqrt-prod29.9%
add-sqr-sqrt70.3%
Applied egg-rr70.3%
Taylor expanded in k around 0 54.9%
*-commutative54.9%
Simplified54.9%
add-cube-cbrt54.9%
pow254.9%
pow254.9%
cbrt-div54.9%
unpow254.9%
cbrt-prod54.9%
pow254.9%
cbrt-prod54.8%
rem-cbrt-cube54.9%
cbrt-prod54.8%
pow254.8%
pow254.8%
cbrt-div54.8%
Applied egg-rr87.7%
unpow287.7%
unpow387.7%
Simplified87.7%
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 1.75e-9)
(* (/ 2.0 (* (sin k) (tan k))) (pow (* (/ k l) (sqrt t_m)) -2.0))
(pow (/ (sqrt 2.0) (* (/ (pow t_m 1.5) l) (* k (sqrt 2.0)))) 2.0))))t\_m = fabs(t);
t\_s = copysign(1.0, t);
double code(double t_s, double t_m, double l, double k) {
double tmp;
if (t_m <= 1.75e-9) {
tmp = (2.0 / (sin(k) * tan(k))) * pow(((k / l) * sqrt(t_m)), -2.0);
} else {
tmp = pow((sqrt(2.0) / ((pow(t_m, 1.5) / l) * (k * sqrt(2.0)))), 2.0);
}
return t_s * tmp;
}
t\_m = abs(t)
t\_s = copysign(1.0d0, t)
real(8) function code(t_s, t_m, l, k)
real(8), intent (in) :: t_s
real(8), intent (in) :: t_m
real(8), intent (in) :: l
real(8), intent (in) :: k
real(8) :: tmp
if (t_m <= 1.75d-9) then
tmp = (2.0d0 / (sin(k) * tan(k))) * (((k / l) * sqrt(t_m)) ** (-2.0d0))
else
tmp = (sqrt(2.0d0) / (((t_m ** 1.5d0) / l) * (k * sqrt(2.0d0)))) ** 2.0d0
end if
code = t_s * tmp
end function
t\_m = Math.abs(t);
t\_s = Math.copySign(1.0, t);
public static double code(double t_s, double t_m, double l, double k) {
double tmp;
if (t_m <= 1.75e-9) {
tmp = (2.0 / (Math.sin(k) * Math.tan(k))) * Math.pow(((k / l) * Math.sqrt(t_m)), -2.0);
} else {
tmp = Math.pow((Math.sqrt(2.0) / ((Math.pow(t_m, 1.5) / l) * (k * Math.sqrt(2.0)))), 2.0);
}
return t_s * tmp;
}
t\_m = math.fabs(t) t\_s = math.copysign(1.0, t) def code(t_s, t_m, l, k): tmp = 0 if t_m <= 1.75e-9: tmp = (2.0 / (math.sin(k) * math.tan(k))) * math.pow(((k / l) * math.sqrt(t_m)), -2.0) else: tmp = math.pow((math.sqrt(2.0) / ((math.pow(t_m, 1.5) / l) * (k * math.sqrt(2.0)))), 2.0) return t_s * tmp
t\_m = abs(t) t\_s = copysign(1.0, t) function code(t_s, t_m, l, k) tmp = 0.0 if (t_m <= 1.75e-9) tmp = Float64(Float64(2.0 / Float64(sin(k) * tan(k))) * (Float64(Float64(k / l) * sqrt(t_m)) ^ -2.0)); else tmp = Float64(sqrt(2.0) / Float64(Float64((t_m ^ 1.5) / l) * Float64(k * sqrt(2.0)))) ^ 2.0; end return Float64(t_s * tmp) end
t\_m = abs(t); t\_s = sign(t) * abs(1.0); function tmp_2 = code(t_s, t_m, l, k) tmp = 0.0; if (t_m <= 1.75e-9) tmp = (2.0 / (sin(k) * tan(k))) * (((k / l) * sqrt(t_m)) ^ -2.0); else tmp = (sqrt(2.0) / (((t_m ^ 1.5) / l) * (k * sqrt(2.0)))) ^ 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, 1.75e-9], N[(N[(2.0 / N[(N[Sin[k], $MachinePrecision] * N[Tan[k], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[Power[N[(N[(k / l), $MachinePrecision] * N[Sqrt[t$95$m], $MachinePrecision]), $MachinePrecision], -2.0], $MachinePrecision]), $MachinePrecision], N[Power[N[(N[Sqrt[2.0], $MachinePrecision] / N[(N[(N[Power[t$95$m, 1.5], $MachinePrecision] / l), $MachinePrecision] * N[(k * N[Sqrt[2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 2.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.75 \cdot 10^{-9}:\\
\;\;\;\;\frac{2}{\sin k \cdot \tan k} \cdot {\left(\frac{k}{\ell} \cdot \sqrt{t\_m}\right)}^{-2}\\
\mathbf{else}:\\
\;\;\;\;{\left(\frac{\sqrt{2}}{\frac{{t\_m}^{1.5}}{\ell} \cdot \left(k \cdot \sqrt{2}\right)}\right)}^{2}\\
\end{array}
\end{array}
if t < 1.75e-9Initial program 46.6%
Simplified46.8%
associate-*l*44.6%
associate-/r*50.2%
associate-+r+50.2%
metadata-eval50.2%
associate-*l*50.1%
add-sqr-sqrt22.0%
pow222.0%
Applied egg-rr22.3%
associate-*r*22.3%
Simplified22.3%
*-un-lft-identity22.3%
*-commutative22.3%
unpow-prod-down22.3%
pow222.3%
add-sqr-sqrt28.6%
*-commutative28.6%
Applied egg-rr28.6%
*-lft-identity28.6%
associate-/r*28.7%
Simplified28.7%
Taylor expanded in k around inf 35.0%
div-inv35.0%
pow-flip35.0%
metadata-eval35.0%
Applied egg-rr35.0%
if 1.75e-9 < t Initial program 64.4%
Simplified62.9%
Taylor expanded in k around 0 57.1%
add-exp-log57.1%
log-pow57.0%
Applied egg-rr57.0%
add-sqr-sqrt57.0%
Applied egg-rr77.7%
unpow277.7%
Simplified77.7%
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 6e-8)
(* 2.0 (/ (pow (* k (/ (sqrt t_m) l)) -2.0) (* (sin k) (tan k))))
(pow (/ (sqrt 2.0) (* (/ (pow t_m 1.5) l) (* k (sqrt 2.0)))) 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 <= 6e-8) {
tmp = 2.0 * (pow((k * (sqrt(t_m) / l)), -2.0) / (sin(k) * tan(k)));
} else {
tmp = pow((sqrt(2.0) / ((pow(t_m, 1.5) / l) * (k * sqrt(2.0)))), 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 <= 6d-8) then
tmp = 2.0d0 * (((k * (sqrt(t_m) / l)) ** (-2.0d0)) / (sin(k) * tan(k)))
else
tmp = (sqrt(2.0d0) / (((t_m ** 1.5d0) / l) * (k * sqrt(2.0d0)))) ** 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 <= 6e-8) {
tmp = 2.0 * (Math.pow((k * (Math.sqrt(t_m) / l)), -2.0) / (Math.sin(k) * Math.tan(k)));
} else {
tmp = Math.pow((Math.sqrt(2.0) / ((Math.pow(t_m, 1.5) / l) * (k * Math.sqrt(2.0)))), 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 <= 6e-8: tmp = 2.0 * (math.pow((k * (math.sqrt(t_m) / l)), -2.0) / (math.sin(k) * math.tan(k))) else: tmp = math.pow((math.sqrt(2.0) / ((math.pow(t_m, 1.5) / l) * (k * math.sqrt(2.0)))), 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 <= 6e-8) tmp = Float64(2.0 * Float64((Float64(k * Float64(sqrt(t_m) / l)) ^ -2.0) / Float64(sin(k) * tan(k)))); else tmp = Float64(sqrt(2.0) / Float64(Float64((t_m ^ 1.5) / l) * Float64(k * sqrt(2.0)))) ^ 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 <= 6e-8) tmp = 2.0 * (((k * (sqrt(t_m) / l)) ^ -2.0) / (sin(k) * tan(k))); else tmp = (sqrt(2.0) / (((t_m ^ 1.5) / l) * (k * sqrt(2.0)))) ^ 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, 6e-8], N[(2.0 * N[(N[Power[N[(k * N[(N[Sqrt[t$95$m], $MachinePrecision] / l), $MachinePrecision]), $MachinePrecision], -2.0], $MachinePrecision] / N[(N[Sin[k], $MachinePrecision] * N[Tan[k], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[Power[N[(N[Sqrt[2.0], $MachinePrecision] / N[(N[(N[Power[t$95$m, 1.5], $MachinePrecision] / l), $MachinePrecision] * N[(k * N[Sqrt[2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 2.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 6 \cdot 10^{-8}:\\
\;\;\;\;2 \cdot \frac{{\left(k \cdot \frac{\sqrt{t\_m}}{\ell}\right)}^{-2}}{\sin k \cdot \tan k}\\
\mathbf{else}:\\
\;\;\;\;{\left(\frac{\sqrt{2}}{\frac{{t\_m}^{1.5}}{\ell} \cdot \left(k \cdot \sqrt{2}\right)}\right)}^{2}\\
\end{array}
\end{array}
if t < 5.99999999999999946e-8Initial program 46.6%
Simplified46.8%
associate-*l*44.6%
associate-/r*50.2%
associate-+r+50.2%
metadata-eval50.2%
associate-*l*50.1%
add-sqr-sqrt22.0%
pow222.0%
Applied egg-rr22.3%
associate-*r*22.3%
Simplified22.3%
*-un-lft-identity22.3%
*-commutative22.3%
unpow-prod-down22.3%
pow222.3%
add-sqr-sqrt28.6%
*-commutative28.6%
Applied egg-rr28.6%
*-lft-identity28.6%
associate-/r*28.7%
Simplified28.7%
Taylor expanded in k around inf 35.0%
div-inv35.0%
pow-flip35.0%
metadata-eval35.0%
Applied egg-rr35.0%
associate-*l/35.0%
associate-/l*35.0%
associate-*l/35.1%
associate-/l*34.6%
Simplified34.6%
if 5.99999999999999946e-8 < t Initial program 64.4%
Simplified62.9%
Taylor expanded in k around 0 57.1%
add-exp-log57.1%
log-pow57.0%
Applied egg-rr57.0%
add-sqr-sqrt57.0%
Applied egg-rr77.7%
unpow277.7%
Simplified77.7%
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 2.2e-11)
(/ 1.0 (* t_m (/ (pow (/ k l) 2.0) (/ (/ 2.0 (sin k)) (tan k)))))
(pow (/ (sqrt 2.0) (* (/ (pow t_m 1.5) l) (* k (sqrt 2.0)))) 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 <= 2.2e-11) {
tmp = 1.0 / (t_m * (pow((k / l), 2.0) / ((2.0 / sin(k)) / tan(k))));
} else {
tmp = pow((sqrt(2.0) / ((pow(t_m, 1.5) / l) * (k * sqrt(2.0)))), 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 <= 2.2d-11) then
tmp = 1.0d0 / (t_m * (((k / l) ** 2.0d0) / ((2.0d0 / sin(k)) / tan(k))))
else
tmp = (sqrt(2.0d0) / (((t_m ** 1.5d0) / l) * (k * sqrt(2.0d0)))) ** 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 <= 2.2e-11) {
tmp = 1.0 / (t_m * (Math.pow((k / l), 2.0) / ((2.0 / Math.sin(k)) / Math.tan(k))));
} else {
tmp = Math.pow((Math.sqrt(2.0) / ((Math.pow(t_m, 1.5) / l) * (k * Math.sqrt(2.0)))), 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 <= 2.2e-11: tmp = 1.0 / (t_m * (math.pow((k / l), 2.0) / ((2.0 / math.sin(k)) / math.tan(k)))) else: tmp = math.pow((math.sqrt(2.0) / ((math.pow(t_m, 1.5) / l) * (k * math.sqrt(2.0)))), 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 <= 2.2e-11) tmp = Float64(1.0 / Float64(t_m * Float64((Float64(k / l) ^ 2.0) / Float64(Float64(2.0 / sin(k)) / tan(k))))); else tmp = Float64(sqrt(2.0) / Float64(Float64((t_m ^ 1.5) / l) * Float64(k * sqrt(2.0)))) ^ 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 <= 2.2e-11) tmp = 1.0 / (t_m * (((k / l) ^ 2.0) / ((2.0 / sin(k)) / tan(k)))); else tmp = (sqrt(2.0) / (((t_m ^ 1.5) / l) * (k * sqrt(2.0)))) ^ 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, 2.2e-11], N[(1.0 / N[(t$95$m * N[(N[Power[N[(k / l), $MachinePrecision], 2.0], $MachinePrecision] / N[(N[(2.0 / N[Sin[k], $MachinePrecision]), $MachinePrecision] / N[Tan[k], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[Power[N[(N[Sqrt[2.0], $MachinePrecision] / N[(N[(N[Power[t$95$m, 1.5], $MachinePrecision] / l), $MachinePrecision] * N[(k * N[Sqrt[2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 2.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.2 \cdot 10^{-11}:\\
\;\;\;\;\frac{1}{t\_m \cdot \frac{{\left(\frac{k}{\ell}\right)}^{2}}{\frac{\frac{2}{\sin k}}{\tan k}}}\\
\mathbf{else}:\\
\;\;\;\;{\left(\frac{\sqrt{2}}{\frac{{t\_m}^{1.5}}{\ell} \cdot \left(k \cdot \sqrt{2}\right)}\right)}^{2}\\
\end{array}
\end{array}
if t < 2.2000000000000002e-11Initial program 46.6%
Simplified46.8%
associate-*l*44.6%
associate-/r*50.2%
associate-+r+50.2%
metadata-eval50.2%
associate-*l*50.1%
add-sqr-sqrt22.0%
pow222.0%
Applied egg-rr22.3%
associate-*r*22.3%
Simplified22.3%
*-un-lft-identity22.3%
*-commutative22.3%
unpow-prod-down22.3%
pow222.3%
add-sqr-sqrt28.6%
*-commutative28.6%
Applied egg-rr28.6%
*-lft-identity28.6%
associate-/r*28.7%
Simplified28.7%
Taylor expanded in k around inf 35.0%
clear-num35.0%
inv-pow35.0%
*-commutative35.0%
unpow-prod-down32.0%
pow232.0%
add-sqr-sqrt77.7%
Applied egg-rr77.7%
unpow-177.7%
associate-/l*77.2%
associate-/r*77.3%
Simplified77.3%
if 2.2000000000000002e-11 < t Initial program 64.4%
Simplified62.9%
Taylor expanded in k around 0 57.1%
add-exp-log57.1%
log-pow57.0%
Applied egg-rr57.0%
add-sqr-sqrt57.0%
Applied egg-rr77.7%
unpow277.7%
Simplified77.7%
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 8.2e-78)
(* 2.0 (/ (/ (pow l 2.0) (pow k 4.0)) t_m))
(if (<= t_m 3.25e+100)
(/ 2.0 (* 2.0 (* (pow (/ k l) 2.0) (pow t_m 3.0))))
(if (<= t_m 3.2e+205)
(/ (pow l 2.0) (pow (* k (pow t_m 1.5)) 2.0))
(pow (* l (/ (sqrt (/ 1.0 (pow t_m 3.0))) k)) 2.0))))))t\_m = fabs(t);
t\_s = copysign(1.0, t);
double code(double t_s, double t_m, double l, double k) {
double tmp;
if (t_m <= 8.2e-78) {
tmp = 2.0 * ((pow(l, 2.0) / pow(k, 4.0)) / t_m);
} else if (t_m <= 3.25e+100) {
tmp = 2.0 / (2.0 * (pow((k / l), 2.0) * pow(t_m, 3.0)));
} else if (t_m <= 3.2e+205) {
tmp = pow(l, 2.0) / pow((k * pow(t_m, 1.5)), 2.0);
} else {
tmp = pow((l * (sqrt((1.0 / pow(t_m, 3.0))) / k)), 2.0);
}
return t_s * tmp;
}
t\_m = abs(t)
t\_s = copysign(1.0d0, t)
real(8) function code(t_s, t_m, l, k)
real(8), intent (in) :: t_s
real(8), intent (in) :: t_m
real(8), intent (in) :: l
real(8), intent (in) :: k
real(8) :: tmp
if (t_m <= 8.2d-78) then
tmp = 2.0d0 * (((l ** 2.0d0) / (k ** 4.0d0)) / t_m)
else if (t_m <= 3.25d+100) then
tmp = 2.0d0 / (2.0d0 * (((k / l) ** 2.0d0) * (t_m ** 3.0d0)))
else if (t_m <= 3.2d+205) then
tmp = (l ** 2.0d0) / ((k * (t_m ** 1.5d0)) ** 2.0d0)
else
tmp = (l * (sqrt((1.0d0 / (t_m ** 3.0d0))) / k)) ** 2.0d0
end if
code = t_s * tmp
end function
t\_m = Math.abs(t);
t\_s = Math.copySign(1.0, t);
public static double code(double t_s, double t_m, double l, double k) {
double tmp;
if (t_m <= 8.2e-78) {
tmp = 2.0 * ((Math.pow(l, 2.0) / Math.pow(k, 4.0)) / t_m);
} else if (t_m <= 3.25e+100) {
tmp = 2.0 / (2.0 * (Math.pow((k / l), 2.0) * Math.pow(t_m, 3.0)));
} else if (t_m <= 3.2e+205) {
tmp = Math.pow(l, 2.0) / Math.pow((k * Math.pow(t_m, 1.5)), 2.0);
} else {
tmp = Math.pow((l * (Math.sqrt((1.0 / Math.pow(t_m, 3.0))) / k)), 2.0);
}
return t_s * tmp;
}
t\_m = math.fabs(t) t\_s = math.copysign(1.0, t) def code(t_s, t_m, l, k): tmp = 0 if t_m <= 8.2e-78: tmp = 2.0 * ((math.pow(l, 2.0) / math.pow(k, 4.0)) / t_m) elif t_m <= 3.25e+100: tmp = 2.0 / (2.0 * (math.pow((k / l), 2.0) * math.pow(t_m, 3.0))) elif t_m <= 3.2e+205: tmp = math.pow(l, 2.0) / math.pow((k * math.pow(t_m, 1.5)), 2.0) else: tmp = math.pow((l * (math.sqrt((1.0 / math.pow(t_m, 3.0))) / k)), 2.0) return t_s * tmp
t\_m = abs(t) t\_s = copysign(1.0, t) function code(t_s, t_m, l, k) tmp = 0.0 if (t_m <= 8.2e-78) tmp = Float64(2.0 * Float64(Float64((l ^ 2.0) / (k ^ 4.0)) / t_m)); elseif (t_m <= 3.25e+100) tmp = Float64(2.0 / Float64(2.0 * Float64((Float64(k / l) ^ 2.0) * (t_m ^ 3.0)))); elseif (t_m <= 3.2e+205) tmp = Float64((l ^ 2.0) / (Float64(k * (t_m ^ 1.5)) ^ 2.0)); else tmp = Float64(l * Float64(sqrt(Float64(1.0 / (t_m ^ 3.0))) / k)) ^ 2.0; end return Float64(t_s * tmp) end
t\_m = abs(t); t\_s = sign(t) * abs(1.0); function tmp_2 = code(t_s, t_m, l, k) tmp = 0.0; if (t_m <= 8.2e-78) tmp = 2.0 * (((l ^ 2.0) / (k ^ 4.0)) / t_m); elseif (t_m <= 3.25e+100) tmp = 2.0 / (2.0 * (((k / l) ^ 2.0) * (t_m ^ 3.0))); elseif (t_m <= 3.2e+205) tmp = (l ^ 2.0) / ((k * (t_m ^ 1.5)) ^ 2.0); else tmp = (l * (sqrt((1.0 / (t_m ^ 3.0))) / k)) ^ 2.0; end tmp_2 = t_s * tmp; end
t\_m = N[Abs[t], $MachinePrecision]
t\_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[t]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
code[t$95$s_, t$95$m_, l_, k_] := N[(t$95$s * If[LessEqual[t$95$m, 8.2e-78], N[(2.0 * N[(N[(N[Power[l, 2.0], $MachinePrecision] / N[Power[k, 4.0], $MachinePrecision]), $MachinePrecision] / t$95$m), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$m, 3.25e+100], N[(2.0 / N[(2.0 * N[(N[Power[N[(k / l), $MachinePrecision], 2.0], $MachinePrecision] * N[Power[t$95$m, 3.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$m, 3.2e+205], N[(N[Power[l, 2.0], $MachinePrecision] / N[Power[N[(k * N[Power[t$95$m, 1.5], $MachinePrecision]), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision], N[Power[N[(l * N[(N[Sqrt[N[(1.0 / N[Power[t$95$m, 3.0], $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / k), $MachinePrecision]), $MachinePrecision], 2.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 8.2 \cdot 10^{-78}:\\
\;\;\;\;2 \cdot \frac{\frac{{\ell}^{2}}{{k}^{4}}}{t\_m}\\
\mathbf{elif}\;t\_m \leq 3.25 \cdot 10^{+100}:\\
\;\;\;\;\frac{2}{2 \cdot \left({\left(\frac{k}{\ell}\right)}^{2} \cdot {t\_m}^{3}\right)}\\
\mathbf{elif}\;t\_m \leq 3.2 \cdot 10^{+205}:\\
\;\;\;\;\frac{{\ell}^{2}}{{\left(k \cdot {t\_m}^{1.5}\right)}^{2}}\\
\mathbf{else}:\\
\;\;\;\;{\left(\ell \cdot \frac{\sqrt{\frac{1}{{t\_m}^{3}}}}{k}\right)}^{2}\\
\end{array}
\end{array}
if t < 8.1999999999999996e-78Initial program 44.4%
Simplified44.6%
associate-*l*42.2%
associate-/r*48.3%
associate-+r+48.3%
metadata-eval48.3%
associate-*l*48.3%
add-sqr-sqrt18.4%
pow218.4%
Applied egg-rr16.5%
associate-*r*16.5%
Simplified16.5%
*-un-lft-identity16.5%
*-commutative16.5%
unpow-prod-down16.5%
pow216.5%
add-sqr-sqrt21.8%
*-commutative21.8%
Applied egg-rr21.8%
*-lft-identity21.8%
associate-/r*21.8%
Simplified21.8%
Taylor expanded in k around inf 29.3%
Taylor expanded in k around 0 50.8%
associate-/r*52.3%
Simplified52.3%
if 8.1999999999999996e-78 < t < 3.25e100Initial program 75.2%
Simplified72.5%
Taylor expanded in k around 0 56.6%
unpow256.6%
Applied egg-rr56.6%
associate-/r*56.6%
unpow356.6%
times-frac56.6%
pow256.6%
Applied egg-rr56.6%
Taylor expanded in t around 0 56.6%
*-commutative56.6%
associate-/l*58.9%
unpow258.9%
unpow258.9%
times-frac72.9%
unpow272.9%
Simplified72.9%
if 3.25e100 < t < 3.19999999999999996e205Initial program 57.6%
Simplified57.6%
add-sqr-sqrt57.6%
pow257.6%
associate-/r*57.2%
sqrt-div57.2%
sqrt-pow168.2%
metadata-eval68.2%
sqrt-prod42.4%
add-sqr-sqrt81.7%
Applied egg-rr81.7%
Taylor expanded in k around 0 57.2%
*-commutative57.2%
Simplified57.2%
pow257.2%
add-sqr-sqrt57.2%
pow257.2%
*-commutative57.2%
sqrt-prod57.2%
sqrt-prod23.9%
add-sqr-sqrt57.6%
sqrt-pow181.4%
metadata-eval81.4%
Applied egg-rr81.4%
if 3.19999999999999996e205 < t Initial program 52.3%
Simplified53.0%
Taylor expanded in k around 0 53.0%
add-exp-log53.0%
log-pow53.0%
Applied egg-rr53.0%
add-sqr-sqrt53.0%
Applied egg-rr62.9%
unpow262.9%
associate-/r*62.9%
Simplified62.9%
Taylor expanded in t around 0 62.2%
associate-*l/62.9%
associate-/l*62.9%
Simplified62.9%
Final simplification59.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 (<= t_m 4e-9)
(/ 1.0 (* t_m (/ (pow (/ k l) 2.0) (/ (/ 2.0 (sin k)) (tan k)))))
(/ 2.0 (pow (* (/ (pow t_m 1.5) l) (* k (sqrt 2.0))) 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 <= 4e-9) {
tmp = 1.0 / (t_m * (pow((k / l), 2.0) / ((2.0 / sin(k)) / tan(k))));
} else {
tmp = 2.0 / pow(((pow(t_m, 1.5) / l) * (k * sqrt(2.0))), 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 <= 4d-9) then
tmp = 1.0d0 / (t_m * (((k / l) ** 2.0d0) / ((2.0d0 / sin(k)) / tan(k))))
else
tmp = 2.0d0 / ((((t_m ** 1.5d0) / l) * (k * sqrt(2.0d0))) ** 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 <= 4e-9) {
tmp = 1.0 / (t_m * (Math.pow((k / l), 2.0) / ((2.0 / Math.sin(k)) / Math.tan(k))));
} else {
tmp = 2.0 / Math.pow(((Math.pow(t_m, 1.5) / l) * (k * Math.sqrt(2.0))), 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 <= 4e-9: tmp = 1.0 / (t_m * (math.pow((k / l), 2.0) / ((2.0 / math.sin(k)) / math.tan(k)))) else: tmp = 2.0 / math.pow(((math.pow(t_m, 1.5) / l) * (k * math.sqrt(2.0))), 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 <= 4e-9) tmp = Float64(1.0 / Float64(t_m * Float64((Float64(k / l) ^ 2.0) / Float64(Float64(2.0 / sin(k)) / tan(k))))); else tmp = Float64(2.0 / (Float64(Float64((t_m ^ 1.5) / l) * Float64(k * sqrt(2.0))) ^ 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 <= 4e-9) tmp = 1.0 / (t_m * (((k / l) ^ 2.0) / ((2.0 / sin(k)) / tan(k)))); else tmp = 2.0 / ((((t_m ^ 1.5) / l) * (k * sqrt(2.0))) ^ 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, 4e-9], N[(1.0 / N[(t$95$m * N[(N[Power[N[(k / l), $MachinePrecision], 2.0], $MachinePrecision] / N[(N[(2.0 / N[Sin[k], $MachinePrecision]), $MachinePrecision] / N[Tan[k], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(2.0 / N[Power[N[(N[(N[Power[t$95$m, 1.5], $MachinePrecision] / l), $MachinePrecision] * N[(k * N[Sqrt[2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]]), $MachinePrecision]
\begin{array}{l}
t\_m = \left|t\right|
\\
t\_s = \mathsf{copysign}\left(1, t\right)
\\
t\_s \cdot \begin{array}{l}
\mathbf{if}\;t\_m \leq 4 \cdot 10^{-9}:\\
\;\;\;\;\frac{1}{t\_m \cdot \frac{{\left(\frac{k}{\ell}\right)}^{2}}{\frac{\frac{2}{\sin k}}{\tan k}}}\\
\mathbf{else}:\\
\;\;\;\;\frac{2}{{\left(\frac{{t\_m}^{1.5}}{\ell} \cdot \left(k \cdot \sqrt{2}\right)\right)}^{2}}\\
\end{array}
\end{array}
if t < 4.00000000000000025e-9Initial program 46.6%
Simplified46.8%
associate-*l*44.6%
associate-/r*50.2%
associate-+r+50.2%
metadata-eval50.2%
associate-*l*50.1%
add-sqr-sqrt22.0%
pow222.0%
Applied egg-rr22.3%
associate-*r*22.3%
Simplified22.3%
*-un-lft-identity22.3%
*-commutative22.3%
unpow-prod-down22.3%
pow222.3%
add-sqr-sqrt28.6%
*-commutative28.6%
Applied egg-rr28.6%
*-lft-identity28.6%
associate-/r*28.7%
Simplified28.7%
Taylor expanded in k around inf 35.0%
clear-num35.0%
inv-pow35.0%
*-commutative35.0%
unpow-prod-down32.0%
pow232.0%
add-sqr-sqrt77.7%
Applied egg-rr77.7%
unpow-177.7%
associate-/l*77.2%
associate-/r*77.3%
Simplified77.3%
if 4.00000000000000025e-9 < t Initial program 64.4%
Simplified62.9%
Taylor expanded in k around 0 57.1%
add-exp-log57.1%
log-pow57.0%
Applied egg-rr57.0%
div-inv57.0%
add-sqr-sqrt57.0%
pow257.0%
Applied egg-rr77.6%
associate-*r/77.6%
metadata-eval77.6%
Simplified77.6%
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-10)
(* (/ (/ 2.0 (sin k)) (tan k)) (/ 1.0 (* t_m (pow (/ k l) 2.0))))
(/ 2.0 (pow (* (/ (pow t_m 1.5) l) (* k (sqrt 2.0))) 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-10) {
tmp = ((2.0 / sin(k)) / tan(k)) * (1.0 / (t_m * pow((k / l), 2.0)));
} else {
tmp = 2.0 / pow(((pow(t_m, 1.5) / l) * (k * sqrt(2.0))), 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-10) then
tmp = ((2.0d0 / sin(k)) / tan(k)) * (1.0d0 / (t_m * ((k / l) ** 2.0d0)))
else
tmp = 2.0d0 / ((((t_m ** 1.5d0) / l) * (k * sqrt(2.0d0))) ** 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-10) {
tmp = ((2.0 / Math.sin(k)) / Math.tan(k)) * (1.0 / (t_m * Math.pow((k / l), 2.0)));
} else {
tmp = 2.0 / Math.pow(((Math.pow(t_m, 1.5) / l) * (k * Math.sqrt(2.0))), 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-10: tmp = ((2.0 / math.sin(k)) / math.tan(k)) * (1.0 / (t_m * math.pow((k / l), 2.0))) else: tmp = 2.0 / math.pow(((math.pow(t_m, 1.5) / l) * (k * math.sqrt(2.0))), 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-10) tmp = Float64(Float64(Float64(2.0 / sin(k)) / tan(k)) * Float64(1.0 / Float64(t_m * (Float64(k / l) ^ 2.0)))); else tmp = Float64(2.0 / (Float64(Float64((t_m ^ 1.5) / l) * Float64(k * sqrt(2.0))) ^ 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-10) tmp = ((2.0 / sin(k)) / tan(k)) * (1.0 / (t_m * ((k / l) ^ 2.0))); else tmp = 2.0 / ((((t_m ^ 1.5) / l) * (k * sqrt(2.0))) ^ 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-10], N[(N[(N[(2.0 / N[Sin[k], $MachinePrecision]), $MachinePrecision] / N[Tan[k], $MachinePrecision]), $MachinePrecision] * N[(1.0 / N[(t$95$m * N[Power[N[(k / l), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(2.0 / N[Power[N[(N[(N[Power[t$95$m, 1.5], $MachinePrecision] / l), $MachinePrecision] * N[(k * N[Sqrt[2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]]), $MachinePrecision]
\begin{array}{l}
t\_m = \left|t\right|
\\
t\_s = \mathsf{copysign}\left(1, t\right)
\\
t\_s \cdot \begin{array}{l}
\mathbf{if}\;t\_m \leq 2 \cdot 10^{-10}:\\
\;\;\;\;\frac{\frac{2}{\sin k}}{\tan k} \cdot \frac{1}{t\_m \cdot {\left(\frac{k}{\ell}\right)}^{2}}\\
\mathbf{else}:\\
\;\;\;\;\frac{2}{{\left(\frac{{t\_m}^{1.5}}{\ell} \cdot \left(k \cdot \sqrt{2}\right)\right)}^{2}}\\
\end{array}
\end{array}
if t < 2.00000000000000007e-10Initial program 46.6%
Simplified46.8%
associate-*l*44.6%
associate-/r*50.2%
associate-+r+50.2%
metadata-eval50.2%
associate-*l*50.1%
add-sqr-sqrt22.0%
pow222.0%
Applied egg-rr22.3%
associate-*r*22.3%
Simplified22.3%
*-un-lft-identity22.3%
*-commutative22.3%
unpow-prod-down22.3%
pow222.3%
add-sqr-sqrt28.6%
*-commutative28.6%
Applied egg-rr28.6%
*-lft-identity28.6%
associate-/r*28.7%
Simplified28.7%
Taylor expanded in k around inf 35.0%
clear-num35.0%
inv-pow35.0%
*-commutative35.0%
unpow-prod-down32.0%
pow232.0%
add-sqr-sqrt77.7%
Applied egg-rr77.7%
unpow-177.7%
associate-/r/77.7%
associate-/r*77.7%
Simplified77.7%
if 2.00000000000000007e-10 < t Initial program 64.4%
Simplified62.9%
Taylor expanded in k around 0 57.1%
add-exp-log57.1%
log-pow57.0%
Applied egg-rr57.0%
div-inv57.0%
add-sqr-sqrt57.0%
pow257.0%
Applied egg-rr77.6%
associate-*r/77.6%
metadata-eval77.6%
Simplified77.6%
Final simplification77.7%
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 1.35e-9)
(/ 2.0 (* t_m (* (* (sin k) (tan k)) (pow (/ k l) 2.0))))
(/ 2.0 (pow (* (/ (pow t_m 1.5) l) (* k (sqrt 2.0))) 2.0)))))t\_m = fabs(t);
t\_s = copysign(1.0, t);
double code(double t_s, double t_m, double l, double k) {
double tmp;
if (t_m <= 1.35e-9) {
tmp = 2.0 / (t_m * ((sin(k) * tan(k)) * pow((k / l), 2.0)));
} else {
tmp = 2.0 / pow(((pow(t_m, 1.5) / l) * (k * sqrt(2.0))), 2.0);
}
return t_s * tmp;
}
t\_m = abs(t)
t\_s = copysign(1.0d0, t)
real(8) function code(t_s, t_m, l, k)
real(8), intent (in) :: t_s
real(8), intent (in) :: t_m
real(8), intent (in) :: l
real(8), intent (in) :: k
real(8) :: tmp
if (t_m <= 1.35d-9) then
tmp = 2.0d0 / (t_m * ((sin(k) * tan(k)) * ((k / l) ** 2.0d0)))
else
tmp = 2.0d0 / ((((t_m ** 1.5d0) / l) * (k * sqrt(2.0d0))) ** 2.0d0)
end if
code = t_s * tmp
end function
t\_m = Math.abs(t);
t\_s = Math.copySign(1.0, t);
public static double code(double t_s, double t_m, double l, double k) {
double tmp;
if (t_m <= 1.35e-9) {
tmp = 2.0 / (t_m * ((Math.sin(k) * Math.tan(k)) * Math.pow((k / l), 2.0)));
} else {
tmp = 2.0 / Math.pow(((Math.pow(t_m, 1.5) / l) * (k * Math.sqrt(2.0))), 2.0);
}
return t_s * tmp;
}
t\_m = math.fabs(t) t\_s = math.copysign(1.0, t) def code(t_s, t_m, l, k): tmp = 0 if t_m <= 1.35e-9: tmp = 2.0 / (t_m * ((math.sin(k) * math.tan(k)) * math.pow((k / l), 2.0))) else: tmp = 2.0 / math.pow(((math.pow(t_m, 1.5) / l) * (k * math.sqrt(2.0))), 2.0) return t_s * tmp
t\_m = abs(t) t\_s = copysign(1.0, t) function code(t_s, t_m, l, k) tmp = 0.0 if (t_m <= 1.35e-9) tmp = Float64(2.0 / Float64(t_m * Float64(Float64(sin(k) * tan(k)) * (Float64(k / l) ^ 2.0)))); else tmp = Float64(2.0 / (Float64(Float64((t_m ^ 1.5) / l) * Float64(k * sqrt(2.0))) ^ 2.0)); end return Float64(t_s * tmp) end
t\_m = abs(t); t\_s = sign(t) * abs(1.0); function tmp_2 = code(t_s, t_m, l, k) tmp = 0.0; if (t_m <= 1.35e-9) tmp = 2.0 / (t_m * ((sin(k) * tan(k)) * ((k / l) ^ 2.0))); else tmp = 2.0 / ((((t_m ^ 1.5) / l) * (k * sqrt(2.0))) ^ 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, 1.35e-9], N[(2.0 / N[(t$95$m * N[(N[(N[Sin[k], $MachinePrecision] * N[Tan[k], $MachinePrecision]), $MachinePrecision] * N[Power[N[(k / l), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(2.0 / N[Power[N[(N[(N[Power[t$95$m, 1.5], $MachinePrecision] / l), $MachinePrecision] * N[(k * N[Sqrt[2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]]), $MachinePrecision]
\begin{array}{l}
t\_m = \left|t\right|
\\
t\_s = \mathsf{copysign}\left(1, t\right)
\\
t\_s \cdot \begin{array}{l}
\mathbf{if}\;t\_m \leq 1.35 \cdot 10^{-9}:\\
\;\;\;\;\frac{2}{t\_m \cdot \left(\left(\sin k \cdot \tan k\right) \cdot {\left(\frac{k}{\ell}\right)}^{2}\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{2}{{\left(\frac{{t\_m}^{1.5}}{\ell} \cdot \left(k \cdot \sqrt{2}\right)\right)}^{2}}\\
\end{array}
\end{array}
if t < 1.3500000000000001e-9Initial program 46.6%
Simplified46.8%
associate-*l*44.6%
associate-/r*50.2%
associate-+r+50.2%
metadata-eval50.2%
associate-*l*50.1%
add-sqr-sqrt22.0%
pow222.0%
Applied egg-rr22.3%
associate-*r*22.3%
Simplified22.3%
*-un-lft-identity22.3%
*-commutative22.3%
unpow-prod-down22.3%
pow222.3%
add-sqr-sqrt28.6%
*-commutative28.6%
Applied egg-rr28.6%
*-lft-identity28.6%
associate-/r*28.7%
Simplified28.7%
Taylor expanded in k around inf 35.0%
*-un-lft-identity35.0%
associate-/l/35.0%
*-commutative35.0%
unpow-prod-down32.1%
pow232.1%
add-sqr-sqrt77.7%
Applied egg-rr77.7%
*-lft-identity77.7%
associate-*l*77.2%
Simplified77.2%
if 1.3500000000000001e-9 < t Initial program 64.4%
Simplified62.9%
Taylor expanded in k around 0 57.1%
add-exp-log57.1%
log-pow57.0%
Applied egg-rr57.0%
div-inv57.0%
add-sqr-sqrt57.0%
pow257.0%
Applied egg-rr77.6%
associate-*r/77.6%
metadata-eval77.6%
Simplified77.6%
Final simplification77.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 3.8e-72)
(/ (/ 2.0 (pow k 2.0)) (pow (* (/ k l) (sqrt t_m)) 2.0))
(/ 2.0 (pow (* (/ (pow t_m 1.5) l) (* k (sqrt 2.0))) 2.0)))))t\_m = fabs(t);
t\_s = copysign(1.0, t);
double code(double t_s, double t_m, double l, double k) {
double tmp;
if (t_m <= 3.8e-72) {
tmp = (2.0 / pow(k, 2.0)) / pow(((k / l) * sqrt(t_m)), 2.0);
} else {
tmp = 2.0 / pow(((pow(t_m, 1.5) / l) * (k * sqrt(2.0))), 2.0);
}
return t_s * tmp;
}
t\_m = abs(t)
t\_s = copysign(1.0d0, t)
real(8) function code(t_s, t_m, l, k)
real(8), intent (in) :: t_s
real(8), intent (in) :: t_m
real(8), intent (in) :: l
real(8), intent (in) :: k
real(8) :: tmp
if (t_m <= 3.8d-72) then
tmp = (2.0d0 / (k ** 2.0d0)) / (((k / l) * sqrt(t_m)) ** 2.0d0)
else
tmp = 2.0d0 / ((((t_m ** 1.5d0) / l) * (k * sqrt(2.0d0))) ** 2.0d0)
end if
code = t_s * tmp
end function
t\_m = Math.abs(t);
t\_s = Math.copySign(1.0, t);
public static double code(double t_s, double t_m, double l, double k) {
double tmp;
if (t_m <= 3.8e-72) {
tmp = (2.0 / Math.pow(k, 2.0)) / Math.pow(((k / l) * Math.sqrt(t_m)), 2.0);
} else {
tmp = 2.0 / Math.pow(((Math.pow(t_m, 1.5) / l) * (k * Math.sqrt(2.0))), 2.0);
}
return t_s * tmp;
}
t\_m = math.fabs(t) t\_s = math.copysign(1.0, t) def code(t_s, t_m, l, k): tmp = 0 if t_m <= 3.8e-72: tmp = (2.0 / math.pow(k, 2.0)) / math.pow(((k / l) * math.sqrt(t_m)), 2.0) else: tmp = 2.0 / math.pow(((math.pow(t_m, 1.5) / l) * (k * math.sqrt(2.0))), 2.0) return t_s * tmp
t\_m = abs(t) t\_s = copysign(1.0, t) function code(t_s, t_m, l, k) tmp = 0.0 if (t_m <= 3.8e-72) tmp = Float64(Float64(2.0 / (k ^ 2.0)) / (Float64(Float64(k / l) * sqrt(t_m)) ^ 2.0)); else tmp = Float64(2.0 / (Float64(Float64((t_m ^ 1.5) / l) * Float64(k * sqrt(2.0))) ^ 2.0)); end return Float64(t_s * tmp) end
t\_m = abs(t); t\_s = sign(t) * abs(1.0); function tmp_2 = code(t_s, t_m, l, k) tmp = 0.0; if (t_m <= 3.8e-72) tmp = (2.0 / (k ^ 2.0)) / (((k / l) * sqrt(t_m)) ^ 2.0); else tmp = 2.0 / ((((t_m ^ 1.5) / l) * (k * sqrt(2.0))) ^ 2.0); end tmp_2 = t_s * tmp; end
t\_m = N[Abs[t], $MachinePrecision]
t\_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[t]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
code[t$95$s_, t$95$m_, l_, k_] := N[(t$95$s * If[LessEqual[t$95$m, 3.8e-72], N[(N[(2.0 / N[Power[k, 2.0], $MachinePrecision]), $MachinePrecision] / N[Power[N[(N[(k / l), $MachinePrecision] * N[Sqrt[t$95$m], $MachinePrecision]), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision], N[(2.0 / N[Power[N[(N[(N[Power[t$95$m, 1.5], $MachinePrecision] / l), $MachinePrecision] * N[(k * N[Sqrt[2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]]), $MachinePrecision]
\begin{array}{l}
t\_m = \left|t\right|
\\
t\_s = \mathsf{copysign}\left(1, t\right)
\\
t\_s \cdot \begin{array}{l}
\mathbf{if}\;t\_m \leq 3.8 \cdot 10^{-72}:\\
\;\;\;\;\frac{\frac{2}{{k}^{2}}}{{\left(\frac{k}{\ell} \cdot \sqrt{t\_m}\right)}^{2}}\\
\mathbf{else}:\\
\;\;\;\;\frac{2}{{\left(\frac{{t\_m}^{1.5}}{\ell} \cdot \left(k \cdot \sqrt{2}\right)\right)}^{2}}\\
\end{array}
\end{array}
if t < 3.80000000000000002e-72Initial program 45.0%
Simplified45.3%
associate-*l*42.8%
associate-/r*48.9%
associate-+r+48.9%
metadata-eval48.9%
associate-*l*48.9%
add-sqr-sqrt19.3%
pow219.3%
Applied egg-rr17.4%
associate-*r*17.4%
Simplified17.4%
*-un-lft-identity17.4%
*-commutative17.4%
unpow-prod-down17.4%
pow217.4%
add-sqr-sqrt22.7%
*-commutative22.7%
Applied egg-rr22.7%
*-lft-identity22.7%
associate-/r*22.7%
Simplified22.7%
Taylor expanded in k around inf 30.1%
Taylor expanded in k around 0 19.1%
if 3.80000000000000002e-72 < t Initial program 64.2%
Simplified63.0%
Taylor expanded in k around 0 57.1%
add-exp-log57.0%
log-pow56.9%
Applied egg-rr56.9%
div-inv56.9%
add-sqr-sqrt56.9%
pow256.9%
Applied egg-rr75.1%
associate-*r/75.1%
metadata-eval75.1%
Simplified75.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 (<= t_m 7.5e-81)
(* 2.0 (/ (* (pow l 2.0) (cos k)) (* t_m (pow k 4.0))))
(/ 2.0 (pow (* (/ (pow t_m 1.5) l) (* k (sqrt 2.0))) 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.5e-81) {
tmp = 2.0 * ((pow(l, 2.0) * cos(k)) / (t_m * pow(k, 4.0)));
} else {
tmp = 2.0 / pow(((pow(t_m, 1.5) / l) * (k * sqrt(2.0))), 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.5d-81) then
tmp = 2.0d0 * (((l ** 2.0d0) * cos(k)) / (t_m * (k ** 4.0d0)))
else
tmp = 2.0d0 / ((((t_m ** 1.5d0) / l) * (k * sqrt(2.0d0))) ** 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.5e-81) {
tmp = 2.0 * ((Math.pow(l, 2.0) * Math.cos(k)) / (t_m * Math.pow(k, 4.0)));
} else {
tmp = 2.0 / Math.pow(((Math.pow(t_m, 1.5) / l) * (k * Math.sqrt(2.0))), 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.5e-81: tmp = 2.0 * ((math.pow(l, 2.0) * math.cos(k)) / (t_m * math.pow(k, 4.0))) else: tmp = 2.0 / math.pow(((math.pow(t_m, 1.5) / l) * (k * math.sqrt(2.0))), 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.5e-81) tmp = Float64(2.0 * Float64(Float64((l ^ 2.0) * cos(k)) / Float64(t_m * (k ^ 4.0)))); else tmp = Float64(2.0 / (Float64(Float64((t_m ^ 1.5) / l) * Float64(k * sqrt(2.0))) ^ 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.5e-81) tmp = 2.0 * (((l ^ 2.0) * cos(k)) / (t_m * (k ^ 4.0))); else tmp = 2.0 / ((((t_m ^ 1.5) / l) * (k * sqrt(2.0))) ^ 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.5e-81], N[(2.0 * N[(N[(N[Power[l, 2.0], $MachinePrecision] * N[Cos[k], $MachinePrecision]), $MachinePrecision] / N[(t$95$m * N[Power[k, 4.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(2.0 / N[Power[N[(N[(N[Power[t$95$m, 1.5], $MachinePrecision] / l), $MachinePrecision] * N[(k * N[Sqrt[2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]]), $MachinePrecision]
\begin{array}{l}
t\_m = \left|t\right|
\\
t\_s = \mathsf{copysign}\left(1, t\right)
\\
t\_s \cdot \begin{array}{l}
\mathbf{if}\;t\_m \leq 7.5 \cdot 10^{-81}:\\
\;\;\;\;2 \cdot \frac{{\ell}^{2} \cdot \cos k}{t\_m \cdot {k}^{4}}\\
\mathbf{else}:\\
\;\;\;\;\frac{2}{{\left(\frac{{t\_m}^{1.5}}{\ell} \cdot \left(k \cdot \sqrt{2}\right)\right)}^{2}}\\
\end{array}
\end{array}
if t < 7.50000000000000018e-81Initial program 44.1%
Simplified44.3%
associate-*l*41.9%
associate-/r*48.0%
associate-+r+48.0%
metadata-eval48.0%
associate-*l*48.0%
add-sqr-sqrt17.9%
pow217.9%
Applied egg-rr16.0%
associate-*r*16.0%
Simplified16.0%
*-un-lft-identity16.0%
*-commutative16.0%
unpow-prod-down16.0%
pow216.0%
add-sqr-sqrt21.3%
*-commutative21.3%
Applied egg-rr21.3%
*-lft-identity21.3%
associate-/r*21.3%
Simplified21.3%
Taylor expanded in k around inf 65.0%
associate-*r*65.1%
unpow265.1%
rem-square-sqrt22.0%
swap-sqr24.2%
unpow224.2%
swap-sqr24.2%
*-commutative24.2%
*-commutative24.2%
unpow224.2%
Simplified24.2%
Taylor expanded in k around 0 53.0%
if 7.50000000000000018e-81 < t Initial program 65.4%
Simplified64.3%
Taylor expanded in k around 0 55.4%
add-exp-log55.3%
log-pow55.2%
Applied egg-rr55.2%
div-inv55.2%
add-sqr-sqrt55.2%
pow255.2%
Applied egg-rr72.7%
associate-*r/72.7%
metadata-eval72.7%
Simplified72.7%
Final simplification59.7%
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 4e-80)
(* 2.0 (/ (* (pow l 2.0) (cos k)) (* t_m (pow k 4.0))))
(pow (* (/ l k) (sqrt (/ 1.0 (pow t_m 3.0)))) 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 <= 4e-80) {
tmp = 2.0 * ((pow(l, 2.0) * cos(k)) / (t_m * pow(k, 4.0)));
} else {
tmp = pow(((l / k) * sqrt((1.0 / pow(t_m, 3.0)))), 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 <= 4d-80) then
tmp = 2.0d0 * (((l ** 2.0d0) * cos(k)) / (t_m * (k ** 4.0d0)))
else
tmp = ((l / k) * sqrt((1.0d0 / (t_m ** 3.0d0)))) ** 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 <= 4e-80) {
tmp = 2.0 * ((Math.pow(l, 2.0) * Math.cos(k)) / (t_m * Math.pow(k, 4.0)));
} else {
tmp = Math.pow(((l / k) * Math.sqrt((1.0 / Math.pow(t_m, 3.0)))), 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 <= 4e-80: tmp = 2.0 * ((math.pow(l, 2.0) * math.cos(k)) / (t_m * math.pow(k, 4.0))) else: tmp = math.pow(((l / k) * math.sqrt((1.0 / math.pow(t_m, 3.0)))), 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 <= 4e-80) tmp = Float64(2.0 * Float64(Float64((l ^ 2.0) * cos(k)) / Float64(t_m * (k ^ 4.0)))); else tmp = Float64(Float64(l / k) * sqrt(Float64(1.0 / (t_m ^ 3.0)))) ^ 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 <= 4e-80) tmp = 2.0 * (((l ^ 2.0) * cos(k)) / (t_m * (k ^ 4.0))); else tmp = ((l / k) * sqrt((1.0 / (t_m ^ 3.0)))) ^ 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, 4e-80], N[(2.0 * N[(N[(N[Power[l, 2.0], $MachinePrecision] * N[Cos[k], $MachinePrecision]), $MachinePrecision] / N[(t$95$m * N[Power[k, 4.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[Power[N[(N[(l / k), $MachinePrecision] * N[Sqrt[N[(1.0 / N[Power[t$95$m, 3.0], $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], 2.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 4 \cdot 10^{-80}:\\
\;\;\;\;2 \cdot \frac{{\ell}^{2} \cdot \cos k}{t\_m \cdot {k}^{4}}\\
\mathbf{else}:\\
\;\;\;\;{\left(\frac{\ell}{k} \cdot \sqrt{\frac{1}{{t\_m}^{3}}}\right)}^{2}\\
\end{array}
\end{array}
if t < 3.99999999999999985e-80Initial program 44.1%
Simplified44.3%
associate-*l*41.9%
associate-/r*48.0%
associate-+r+48.0%
metadata-eval48.0%
associate-*l*48.0%
add-sqr-sqrt17.9%
pow217.9%
Applied egg-rr16.0%
associate-*r*16.0%
Simplified16.0%
*-un-lft-identity16.0%
*-commutative16.0%
unpow-prod-down16.0%
pow216.0%
add-sqr-sqrt21.3%
*-commutative21.3%
Applied egg-rr21.3%
*-lft-identity21.3%
associate-/r*21.3%
Simplified21.3%
Taylor expanded in k around inf 65.0%
associate-*r*65.1%
unpow265.1%
rem-square-sqrt22.0%
swap-sqr24.2%
unpow224.2%
swap-sqr24.2%
*-commutative24.2%
*-commutative24.2%
unpow224.2%
Simplified24.2%
Taylor expanded in k around 0 53.0%
if 3.99999999999999985e-80 < t Initial program 65.4%
Simplified64.3%
Taylor expanded in k around 0 55.4%
add-exp-log55.3%
log-pow55.2%
Applied egg-rr55.2%
add-sqr-sqrt55.2%
Applied egg-rr72.8%
unpow272.8%
associate-/r*72.8%
Simplified72.8%
Taylor expanded in t around 0 65.8%
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
(*
t_s
(if (<= t_m 2.6e-72)
(* 2.0 (/ (/ (pow l 2.0) (pow k 4.0)) t_m))
(pow (* (/ l k) (sqrt (/ 1.0 (pow t_m 3.0)))) 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 <= 2.6e-72) {
tmp = 2.0 * ((pow(l, 2.0) / pow(k, 4.0)) / t_m);
} else {
tmp = pow(((l / k) * sqrt((1.0 / pow(t_m, 3.0)))), 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 <= 2.6d-72) then
tmp = 2.0d0 * (((l ** 2.0d0) / (k ** 4.0d0)) / t_m)
else
tmp = ((l / k) * sqrt((1.0d0 / (t_m ** 3.0d0)))) ** 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 <= 2.6e-72) {
tmp = 2.0 * ((Math.pow(l, 2.0) / Math.pow(k, 4.0)) / t_m);
} else {
tmp = Math.pow(((l / k) * Math.sqrt((1.0 / Math.pow(t_m, 3.0)))), 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 <= 2.6e-72: tmp = 2.0 * ((math.pow(l, 2.0) / math.pow(k, 4.0)) / t_m) else: tmp = math.pow(((l / k) * math.sqrt((1.0 / math.pow(t_m, 3.0)))), 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 <= 2.6e-72) tmp = Float64(2.0 * Float64(Float64((l ^ 2.0) / (k ^ 4.0)) / t_m)); else tmp = Float64(Float64(l / k) * sqrt(Float64(1.0 / (t_m ^ 3.0)))) ^ 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 <= 2.6e-72) tmp = 2.0 * (((l ^ 2.0) / (k ^ 4.0)) / t_m); else tmp = ((l / k) * sqrt((1.0 / (t_m ^ 3.0)))) ^ 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, 2.6e-72], N[(2.0 * N[(N[(N[Power[l, 2.0], $MachinePrecision] / N[Power[k, 4.0], $MachinePrecision]), $MachinePrecision] / t$95$m), $MachinePrecision]), $MachinePrecision], N[Power[N[(N[(l / k), $MachinePrecision] * N[Sqrt[N[(1.0 / N[Power[t$95$m, 3.0], $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], 2.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.6 \cdot 10^{-72}:\\
\;\;\;\;2 \cdot \frac{\frac{{\ell}^{2}}{{k}^{4}}}{t\_m}\\
\mathbf{else}:\\
\;\;\;\;{\left(\frac{\ell}{k} \cdot \sqrt{\frac{1}{{t\_m}^{3}}}\right)}^{2}\\
\end{array}
\end{array}
if t < 2.59999999999999996e-72Initial program 45.0%
Simplified45.3%
associate-*l*42.8%
associate-/r*48.9%
associate-+r+48.9%
metadata-eval48.9%
associate-*l*48.9%
add-sqr-sqrt19.3%
pow219.3%
Applied egg-rr17.4%
associate-*r*17.4%
Simplified17.4%
*-un-lft-identity17.4%
*-commutative17.4%
unpow-prod-down17.4%
pow217.4%
add-sqr-sqrt22.7%
*-commutative22.7%
Applied egg-rr22.7%
*-lft-identity22.7%
associate-/r*22.7%
Simplified22.7%
Taylor expanded in k around inf 30.1%
Taylor expanded in k around 0 50.9%
associate-/r*52.3%
Simplified52.3%
if 2.59999999999999996e-72 < t Initial program 64.2%
Simplified63.0%
Taylor expanded in k around 0 57.1%
add-exp-log57.0%
log-pow56.9%
Applied egg-rr56.9%
add-sqr-sqrt56.9%
Applied egg-rr75.2%
unpow275.2%
associate-/r*75.2%
Simplified75.2%
Taylor expanded in t around 0 67.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 (<= t_m 7.4e-78)
(* 2.0 (/ (/ (pow l 2.0) (pow k 4.0)) t_m))
(/ 2.0 (* 2.0 (* (pow (/ k l) 2.0) (pow 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 tmp;
if (t_m <= 7.4e-78) {
tmp = 2.0 * ((pow(l, 2.0) / pow(k, 4.0)) / t_m);
} else {
tmp = 2.0 / (2.0 * (pow((k / l), 2.0) * pow(t_m, 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) :: tmp
if (t_m <= 7.4d-78) then
tmp = 2.0d0 * (((l ** 2.0d0) / (k ** 4.0d0)) / t_m)
else
tmp = 2.0d0 / (2.0d0 * (((k / l) ** 2.0d0) * (t_m ** 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 tmp;
if (t_m <= 7.4e-78) {
tmp = 2.0 * ((Math.pow(l, 2.0) / Math.pow(k, 4.0)) / t_m);
} else {
tmp = 2.0 / (2.0 * (Math.pow((k / l), 2.0) * Math.pow(t_m, 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): tmp = 0 if t_m <= 7.4e-78: tmp = 2.0 * ((math.pow(l, 2.0) / math.pow(k, 4.0)) / t_m) else: tmp = 2.0 / (2.0 * (math.pow((k / l), 2.0) * math.pow(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) tmp = 0.0 if (t_m <= 7.4e-78) tmp = Float64(2.0 * Float64(Float64((l ^ 2.0) / (k ^ 4.0)) / t_m)); else tmp = Float64(2.0 / Float64(2.0 * Float64((Float64(k / l) ^ 2.0) * (t_m ^ 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) tmp = 0.0; if (t_m <= 7.4e-78) tmp = 2.0 * (((l ^ 2.0) / (k ^ 4.0)) / t_m); else tmp = 2.0 / (2.0 * (((k / l) ^ 2.0) * (t_m ^ 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_] := N[(t$95$s * If[LessEqual[t$95$m, 7.4e-78], N[(2.0 * N[(N[(N[Power[l, 2.0], $MachinePrecision] / N[Power[k, 4.0], $MachinePrecision]), $MachinePrecision] / t$95$m), $MachinePrecision]), $MachinePrecision], N[(2.0 / N[(2.0 * N[(N[Power[N[(k / l), $MachinePrecision], 2.0], $MachinePrecision] * N[Power[t$95$m, 3.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]), $MachinePrecision]
\begin{array}{l}
t\_m = \left|t\right|
\\
t\_s = \mathsf{copysign}\left(1, t\right)
\\
t\_s \cdot \begin{array}{l}
\mathbf{if}\;t\_m \leq 7.4 \cdot 10^{-78}:\\
\;\;\;\;2 \cdot \frac{\frac{{\ell}^{2}}{{k}^{4}}}{t\_m}\\
\mathbf{else}:\\
\;\;\;\;\frac{2}{2 \cdot \left({\left(\frac{k}{\ell}\right)}^{2} \cdot {t\_m}^{3}\right)}\\
\end{array}
\end{array}
if t < 7.40000000000000011e-78Initial program 44.4%
Simplified44.6%
associate-*l*42.2%
associate-/r*48.3%
associate-+r+48.3%
metadata-eval48.3%
associate-*l*48.3%
add-sqr-sqrt18.4%
pow218.4%
Applied egg-rr16.5%
associate-*r*16.5%
Simplified16.5%
*-un-lft-identity16.5%
*-commutative16.5%
unpow-prod-down16.5%
pow216.5%
add-sqr-sqrt21.8%
*-commutative21.8%
Applied egg-rr21.8%
*-lft-identity21.8%
associate-/r*21.8%
Simplified21.8%
Taylor expanded in k around inf 29.3%
Taylor expanded in k around 0 50.8%
associate-/r*52.3%
Simplified52.3%
if 7.40000000000000011e-78 < t Initial program 65.0%
Simplified63.9%
Taylor expanded in k around 0 55.9%
unpow255.9%
Applied egg-rr55.9%
associate-/r*53.1%
unpow353.1%
times-frac59.5%
pow259.5%
Applied egg-rr59.5%
Taylor expanded in t around 0 53.1%
*-commutative53.1%
associate-/l*53.2%
unpow253.2%
unpow253.2%
times-frac63.8%
unpow263.8%
Simplified63.8%
Final simplification56.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 (<= t_m 3.4e-72)
(* 2.0 (/ (/ (pow l 2.0) (pow k 4.0)) t_m))
(/ 2.0 (* (* (/ (* t_m t_m) l) (/ t_m l)) (* 2.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 <= 3.4e-72) {
tmp = 2.0 * ((pow(l, 2.0) / pow(k, 4.0)) / t_m);
} else {
tmp = 2.0 / ((((t_m * t_m) / l) * (t_m / l)) * (2.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 <= 3.4d-72) then
tmp = 2.0d0 * (((l ** 2.0d0) / (k ** 4.0d0)) / t_m)
else
tmp = 2.0d0 / ((((t_m * t_m) / l) * (t_m / l)) * (2.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 <= 3.4e-72) {
tmp = 2.0 * ((Math.pow(l, 2.0) / Math.pow(k, 4.0)) / t_m);
} else {
tmp = 2.0 / ((((t_m * t_m) / l) * (t_m / l)) * (2.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 <= 3.4e-72: tmp = 2.0 * ((math.pow(l, 2.0) / math.pow(k, 4.0)) / t_m) else: tmp = 2.0 / ((((t_m * t_m) / l) * (t_m / l)) * (2.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 <= 3.4e-72) tmp = Float64(2.0 * Float64(Float64((l ^ 2.0) / (k ^ 4.0)) / t_m)); else tmp = Float64(2.0 / Float64(Float64(Float64(Float64(t_m * t_m) / l) * Float64(t_m / l)) * Float64(2.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 <= 3.4e-72) tmp = 2.0 * (((l ^ 2.0) / (k ^ 4.0)) / t_m); else tmp = 2.0 / ((((t_m * t_m) / l) * (t_m / l)) * (2.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, 3.4e-72], N[(2.0 * N[(N[(N[Power[l, 2.0], $MachinePrecision] / N[Power[k, 4.0], $MachinePrecision]), $MachinePrecision] / t$95$m), $MachinePrecision]), $MachinePrecision], N[(2.0 / N[(N[(N[(N[(t$95$m * t$95$m), $MachinePrecision] / l), $MachinePrecision] * N[(t$95$m / l), $MachinePrecision]), $MachinePrecision] * N[(2.0 * N[(k * 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}\;t\_m \leq 3.4 \cdot 10^{-72}:\\
\;\;\;\;2 \cdot \frac{\frac{{\ell}^{2}}{{k}^{4}}}{t\_m}\\
\mathbf{else}:\\
\;\;\;\;\frac{2}{\left(\frac{t\_m \cdot t\_m}{\ell} \cdot \frac{t\_m}{\ell}\right) \cdot \left(2 \cdot \left(k \cdot k\right)\right)}\\
\end{array}
\end{array}
if t < 3.3999999999999998e-72Initial program 45.0%
Simplified45.3%
associate-*l*42.8%
associate-/r*48.9%
associate-+r+48.9%
metadata-eval48.9%
associate-*l*48.9%
add-sqr-sqrt19.3%
pow219.3%
Applied egg-rr17.4%
associate-*r*17.4%
Simplified17.4%
*-un-lft-identity17.4%
*-commutative17.4%
unpow-prod-down17.4%
pow217.4%
add-sqr-sqrt22.7%
*-commutative22.7%
Applied egg-rr22.7%
*-lft-identity22.7%
associate-/r*22.7%
Simplified22.7%
Taylor expanded in k around inf 30.1%
Taylor expanded in k around 0 50.9%
associate-/r*52.3%
Simplified52.3%
if 3.3999999999999998e-72 < t Initial program 64.2%
Simplified63.0%
Taylor expanded in k around 0 57.1%
unpow257.1%
Applied egg-rr57.1%
associate-/r*54.2%
unpow354.2%
times-frac60.8%
pow260.8%
Applied egg-rr60.8%
unpow260.8%
Applied egg-rr60.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 (* (* (/ (* t_m t_m) l) (/ t_m l)) (* 2.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) {
return t_s * (2.0 / ((((t_m * t_m) / l) * (t_m / l)) * (2.0 * (k * k))));
}
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) / l) * (t_m / l)) * (2.0d0 * (k * k))))
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 * t_m) / l) * (t_m / l)) * (2.0 * (k * k))));
}
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 * t_m) / l) * (t_m / l)) * (2.0 * (k * k))))
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(Float64(t_m * t_m) / l) * Float64(t_m / l)) * Float64(2.0 * Float64(k * k))))) 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) / l) * (t_m / l)) * (2.0 * (k * k)))); 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[(N[(t$95$m * t$95$m), $MachinePrecision] / l), $MachinePrecision] * N[(t$95$m / l), $MachinePrecision]), $MachinePrecision] * N[(2.0 * N[(k * 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 \frac{2}{\left(\frac{t\_m \cdot t\_m}{\ell} \cdot \frac{t\_m}{\ell}\right) \cdot \left(2 \cdot \left(k \cdot k\right)\right)}
\end{array}
Initial program 51.3%
Simplified53.5%
Taylor expanded in k around 0 51.5%
unpow251.5%
Applied egg-rr51.5%
associate-/r*47.2%
unpow347.2%
times-frac55.8%
pow255.8%
Applied egg-rr55.8%
unpow255.8%
Applied egg-rr55.8%
herbie shell --seed 2024130
(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))))