
(FPCore (t l k) :precision binary64 (/ 2.0 (* (* (* (/ (pow t 3.0) (* l l)) (sin k)) (tan k)) (+ (+ 1.0 (pow (/ k t) 2.0)) 1.0))))
double code(double t, double l, double k) {
return 2.0 / ((((pow(t, 3.0) / (l * l)) * sin(k)) * tan(k)) * ((1.0 + pow((k / t), 2.0)) + 1.0));
}
real(8) function code(t, l, k)
real(8), intent (in) :: t
real(8), intent (in) :: l
real(8), intent (in) :: k
code = 2.0d0 / (((((t ** 3.0d0) / (l * l)) * sin(k)) * tan(k)) * ((1.0d0 + ((k / t) ** 2.0d0)) + 1.0d0))
end function
public static double code(double t, double l, double k) {
return 2.0 / ((((Math.pow(t, 3.0) / (l * l)) * Math.sin(k)) * Math.tan(k)) * ((1.0 + Math.pow((k / t), 2.0)) + 1.0));
}
def code(t, l, k): return 2.0 / ((((math.pow(t, 3.0) / (l * l)) * math.sin(k)) * math.tan(k)) * ((1.0 + math.pow((k / t), 2.0)) + 1.0))
function code(t, l, k) return Float64(2.0 / Float64(Float64(Float64(Float64((t ^ 3.0) / Float64(l * l)) * sin(k)) * tan(k)) * Float64(Float64(1.0 + (Float64(k / t) ^ 2.0)) + 1.0))) end
function tmp = code(t, l, k) tmp = 2.0 / (((((t ^ 3.0) / (l * l)) * sin(k)) * tan(k)) * ((1.0 + ((k / t) ^ 2.0)) + 1.0)); end
code[t_, l_, k_] := N[(2.0 / N[(N[(N[(N[(N[Power[t, 3.0], $MachinePrecision] / N[(l * l), $MachinePrecision]), $MachinePrecision] * N[Sin[k], $MachinePrecision]), $MachinePrecision] * N[Tan[k], $MachinePrecision]), $MachinePrecision] * N[(N[(1.0 + N[Power[N[(k / t), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{2}{\left(\left(\frac{{t}^{3}}{\ell \cdot \ell} \cdot \sin k\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 27 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (t l k) :precision binary64 (/ 2.0 (* (* (* (/ (pow t 3.0) (* l l)) (sin k)) (tan k)) (+ (+ 1.0 (pow (/ k t) 2.0)) 1.0))))
double code(double t, double l, double k) {
return 2.0 / ((((pow(t, 3.0) / (l * l)) * sin(k)) * tan(k)) * ((1.0 + pow((k / t), 2.0)) + 1.0));
}
real(8) function code(t, l, k)
real(8), intent (in) :: t
real(8), intent (in) :: l
real(8), intent (in) :: k
code = 2.0d0 / (((((t ** 3.0d0) / (l * l)) * sin(k)) * tan(k)) * ((1.0d0 + ((k / t) ** 2.0d0)) + 1.0d0))
end function
public static double code(double t, double l, double k) {
return 2.0 / ((((Math.pow(t, 3.0) / (l * l)) * Math.sin(k)) * Math.tan(k)) * ((1.0 + Math.pow((k / t), 2.0)) + 1.0));
}
def code(t, l, k): return 2.0 / ((((math.pow(t, 3.0) / (l * l)) * math.sin(k)) * math.tan(k)) * ((1.0 + math.pow((k / t), 2.0)) + 1.0))
function code(t, l, k) return Float64(2.0 / Float64(Float64(Float64(Float64((t ^ 3.0) / Float64(l * l)) * sin(k)) * tan(k)) * Float64(Float64(1.0 + (Float64(k / t) ^ 2.0)) + 1.0))) end
function tmp = code(t, l, k) tmp = 2.0 / (((((t ^ 3.0) / (l * l)) * sin(k)) * tan(k)) * ((1.0 + ((k / t) ^ 2.0)) + 1.0)); end
code[t_, l_, k_] := N[(2.0 / N[(N[(N[(N[(N[Power[t, 3.0], $MachinePrecision] / N[(l * l), $MachinePrecision]), $MachinePrecision] * N[Sin[k], $MachinePrecision]), $MachinePrecision] * N[Tan[k], $MachinePrecision]), $MachinePrecision] * N[(N[(1.0 + N[Power[N[(k / t), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{2}{\left(\left(\frac{{t}^{3}}{\ell \cdot \ell} \cdot \sin k\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)}
\end{array}
t_m = (fabs.f64 t)
t_s = (copysign.f64 1 t)
(FPCore (t_s t_m l k)
:precision binary64
(*
t_s
(if (<= t_m 4.2e-42)
(* (/ (cos k) t_m) (pow (* l (/ (sqrt 2.0) (* k (sin k)))) 2.0))
(/
2.0
(pow
(*
(* (* t_m (pow (cbrt l) -2.0)) (cbrt (sin k)))
(cbrt (* (tan k) (+ 2.0 (pow (/ k t_m) 2.0)))))
3.0)))))t_m = fabs(t);
t_s = copysign(1.0, t);
double code(double t_s, double t_m, double l, double k) {
double tmp;
if (t_m <= 4.2e-42) {
tmp = (cos(k) / t_m) * pow((l * (sqrt(2.0) / (k * sin(k)))), 2.0);
} else {
tmp = 2.0 / pow((((t_m * pow(cbrt(l), -2.0)) * cbrt(sin(k))) * cbrt((tan(k) * (2.0 + pow((k / t_m), 2.0))))), 3.0);
}
return t_s * tmp;
}
t_m = Math.abs(t);
t_s = Math.copySign(1.0, t);
public static double code(double t_s, double t_m, double l, double k) {
double tmp;
if (t_m <= 4.2e-42) {
tmp = (Math.cos(k) / t_m) * Math.pow((l * (Math.sqrt(2.0) / (k * Math.sin(k)))), 2.0);
} else {
tmp = 2.0 / Math.pow((((t_m * Math.pow(Math.cbrt(l), -2.0)) * Math.cbrt(Math.sin(k))) * Math.cbrt((Math.tan(k) * (2.0 + Math.pow((k / t_m), 2.0))))), 3.0);
}
return t_s * tmp;
}
t_m = abs(t) t_s = copysign(1.0, t) function code(t_s, t_m, l, k) tmp = 0.0 if (t_m <= 4.2e-42) tmp = Float64(Float64(cos(k) / t_m) * (Float64(l * Float64(sqrt(2.0) / Float64(k * sin(k)))) ^ 2.0)); else tmp = Float64(2.0 / (Float64(Float64(Float64(t_m * (cbrt(l) ^ -2.0)) * cbrt(sin(k))) * cbrt(Float64(tan(k) * Float64(2.0 + (Float64(k / t_m) ^ 2.0))))) ^ 3.0)); end return Float64(t_s * tmp) end
t_m = N[Abs[t], $MachinePrecision]
t_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[t]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
code[t$95$s_, t$95$m_, l_, k_] := N[(t$95$s * If[LessEqual[t$95$m, 4.2e-42], N[(N[(N[Cos[k], $MachinePrecision] / t$95$m), $MachinePrecision] * N[Power[N[(l * N[(N[Sqrt[2.0], $MachinePrecision] / N[(k * N[Sin[k], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision], N[(2.0 / N[Power[N[(N[(N[(t$95$m * N[Power[N[Power[l, 1/3], $MachinePrecision], -2.0], $MachinePrecision]), $MachinePrecision] * N[Power[N[Sin[k], $MachinePrecision], 1/3], $MachinePrecision]), $MachinePrecision] * N[Power[N[(N[Tan[k], $MachinePrecision] * N[(2.0 + N[Power[N[(k / t$95$m), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1/3], $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 4.2 \cdot 10^{-42}:\\
\;\;\;\;\frac{\cos k}{t_m} \cdot {\left(\ell \cdot \frac{\sqrt{2}}{k \cdot \sin k}\right)}^{2}\\
\mathbf{else}:\\
\;\;\;\;\frac{2}{{\left(\left(\left(t_m \cdot {\left(\sqrt[3]{\ell}\right)}^{-2}\right) \cdot \sqrt[3]{\sin k}\right) \cdot \sqrt[3]{\tan k \cdot \left(2 + {\left(\frac{k}{t_m}\right)}^{2}\right)}\right)}^{3}}\\
\end{array}
\end{array}
if t < 4.20000000000000013e-42Initial program 49.0%
Simplified49.0%
add-sqr-sqrt38.3%
Applied egg-rr43.8%
unpow243.8%
associate-/l*43.8%
associate-*r*43.8%
*-commutative43.8%
Simplified43.8%
Taylor expanded in k around inf 39.7%
expm1-log1p-u39.4%
expm1-udef34.7%
*-commutative34.7%
unpow-prod-down34.6%
pow234.6%
add-sqr-sqrt54.2%
times-frac54.7%
Applied egg-rr54.7%
expm1-def58.1%
expm1-log1p75.1%
associate-*r/75.2%
associate-*l/75.2%
associate-/r*75.2%
*-rgt-identity75.2%
associate-*r/75.2%
associate-*l*75.2%
associate-*r/75.2%
*-commutative75.2%
*-lft-identity75.2%
Simplified75.2%
if 4.20000000000000013e-42 < t Initial program 63.2%
associate-*l*63.2%
*-commutative63.2%
*-commutative63.2%
associate-/r*69.1%
distribute-rgt-in69.1%
unpow269.1%
times-frac52.5%
sqr-neg52.5%
times-frac69.1%
unpow269.1%
distribute-rgt-in69.1%
+-commutative69.1%
Simplified69.1%
associate-/r*63.2%
unpow363.2%
times-frac78.0%
pow278.0%
Applied egg-rr78.0%
add-cube-cbrt77.9%
pow377.9%
cbrt-prod77.8%
frac-times63.2%
unpow263.2%
unpow363.1%
unpow263.1%
cbrt-div66.0%
unpow366.0%
add-cbrt-cube78.2%
unpow278.2%
cbrt-prod90.7%
pow290.7%
Applied egg-rr90.7%
add-cube-cbrt90.6%
pow390.6%
Applied egg-rr90.6%
add-cube-cbrt90.5%
pow390.5%
Applied egg-rr97.5%
Final simplification80.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 4.5e-42)
(* (/ (cos k) t_m) (pow (* l (/ (sqrt 2.0) (* k (sin k)))) 2.0))
(/
2.0
(*
(* (tan k) (+ 2.0 (pow (/ k t_m) 2.0)))
(pow (* (cbrt (sin k)) (/ t_m (pow (cbrt l) 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 <= 4.5e-42) {
tmp = (cos(k) / t_m) * pow((l * (sqrt(2.0) / (k * sin(k)))), 2.0);
} else {
tmp = 2.0 / ((tan(k) * (2.0 + pow((k / t_m), 2.0))) * pow((cbrt(sin(k)) * (t_m / pow(cbrt(l), 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 <= 4.5e-42) {
tmp = (Math.cos(k) / t_m) * Math.pow((l * (Math.sqrt(2.0) / (k * Math.sin(k)))), 2.0);
} else {
tmp = 2.0 / ((Math.tan(k) * (2.0 + Math.pow((k / t_m), 2.0))) * Math.pow((Math.cbrt(Math.sin(k)) * (t_m / Math.pow(Math.cbrt(l), 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 <= 4.5e-42) tmp = Float64(Float64(cos(k) / t_m) * (Float64(l * Float64(sqrt(2.0) / Float64(k * sin(k)))) ^ 2.0)); else tmp = Float64(2.0 / Float64(Float64(tan(k) * Float64(2.0 + (Float64(k / t_m) ^ 2.0))) * (Float64(cbrt(sin(k)) * Float64(t_m / (cbrt(l) ^ 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, 4.5e-42], N[(N[(N[Cos[k], $MachinePrecision] / t$95$m), $MachinePrecision] * N[Power[N[(l * N[(N[Sqrt[2.0], $MachinePrecision] / N[(k * N[Sin[k], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision], N[(2.0 / N[(N[(N[Tan[k], $MachinePrecision] * N[(2.0 + N[Power[N[(k / t$95$m), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[Power[N[(N[Power[N[Sin[k], $MachinePrecision], 1/3], $MachinePrecision] * N[(t$95$m / N[Power[N[Power[l, 1/3], $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 3.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]), $MachinePrecision]
\begin{array}{l}
t_m = \left|t\right|
\\
t_s = \mathsf{copysign}\left(1, t\right)
\\
t_s \cdot \begin{array}{l}
\mathbf{if}\;t_m \leq 4.5 \cdot 10^{-42}:\\
\;\;\;\;\frac{\cos k}{t_m} \cdot {\left(\ell \cdot \frac{\sqrt{2}}{k \cdot \sin k}\right)}^{2}\\
\mathbf{else}:\\
\;\;\;\;\frac{2}{\left(\tan k \cdot \left(2 + {\left(\frac{k}{t_m}\right)}^{2}\right)\right) \cdot {\left(\sqrt[3]{\sin k} \cdot \frac{t_m}{{\left(\sqrt[3]{\ell}\right)}^{2}}\right)}^{3}}\\
\end{array}
\end{array}
if t < 4.5e-42Initial program 49.0%
Simplified49.0%
add-sqr-sqrt38.3%
Applied egg-rr43.8%
unpow243.8%
associate-/l*43.8%
associate-*r*43.8%
*-commutative43.8%
Simplified43.8%
Taylor expanded in k around inf 39.7%
expm1-log1p-u39.4%
expm1-udef34.7%
*-commutative34.7%
unpow-prod-down34.6%
pow234.6%
add-sqr-sqrt54.2%
times-frac54.7%
Applied egg-rr54.7%
expm1-def58.1%
expm1-log1p75.1%
associate-*r/75.2%
associate-*l/75.2%
associate-/r*75.2%
*-rgt-identity75.2%
associate-*r/75.2%
associate-*l*75.2%
associate-*r/75.2%
*-commutative75.2%
*-lft-identity75.2%
Simplified75.2%
if 4.5e-42 < t Initial program 63.2%
associate-*l*63.2%
*-commutative63.2%
*-commutative63.2%
associate-/r*69.1%
distribute-rgt-in69.1%
unpow269.1%
times-frac52.5%
sqr-neg52.5%
times-frac69.1%
unpow269.1%
distribute-rgt-in69.1%
+-commutative69.1%
Simplified69.1%
associate-/r*63.2%
unpow363.2%
times-frac78.0%
pow278.0%
Applied egg-rr78.0%
add-cube-cbrt77.9%
pow377.9%
cbrt-prod77.8%
frac-times63.2%
unpow263.2%
unpow363.1%
unpow263.1%
cbrt-div66.0%
unpow366.0%
add-cbrt-cube78.2%
unpow278.2%
cbrt-prod90.7%
pow290.7%
Applied egg-rr90.7%
Final simplification79.1%
t_m = (fabs.f64 t)
t_s = (copysign.f64 1 t)
(FPCore (t_s t_m l k)
:precision binary64
(let* ((t_2 (* (tan k) (+ 2.0 (pow (/ k t_m) 2.0)))))
(*
t_s
(if (<= t_m 4.4e-42)
(* (/ (cos k) t_m) (pow (* l (/ (sqrt 2.0) (* k (sin k)))) 2.0))
(if (<= t_m 4.2e+102)
(/ 2.0 (* t_2 (* (/ 1.0 l) (* (sin k) (/ (pow t_m 3.0) l)))))
(/ 2.0 (* (sin k) (* t_2 (pow (* t_m (pow (cbrt l) -2.0)) 3.0)))))))))t_m = fabs(t);
t_s = copysign(1.0, t);
double code(double t_s, double t_m, double l, double k) {
double t_2 = tan(k) * (2.0 + pow((k / t_m), 2.0));
double tmp;
if (t_m <= 4.4e-42) {
tmp = (cos(k) / t_m) * pow((l * (sqrt(2.0) / (k * sin(k)))), 2.0);
} else if (t_m <= 4.2e+102) {
tmp = 2.0 / (t_2 * ((1.0 / l) * (sin(k) * (pow(t_m, 3.0) / l))));
} else {
tmp = 2.0 / (sin(k) * (t_2 * pow((t_m * pow(cbrt(l), -2.0)), 3.0)));
}
return t_s * tmp;
}
t_m = Math.abs(t);
t_s = Math.copySign(1.0, t);
public static double code(double t_s, double t_m, double l, double k) {
double t_2 = Math.tan(k) * (2.0 + Math.pow((k / t_m), 2.0));
double tmp;
if (t_m <= 4.4e-42) {
tmp = (Math.cos(k) / t_m) * Math.pow((l * (Math.sqrt(2.0) / (k * Math.sin(k)))), 2.0);
} else if (t_m <= 4.2e+102) {
tmp = 2.0 / (t_2 * ((1.0 / l) * (Math.sin(k) * (Math.pow(t_m, 3.0) / l))));
} else {
tmp = 2.0 / (Math.sin(k) * (t_2 * Math.pow((t_m * Math.pow(Math.cbrt(l), -2.0)), 3.0)));
}
return t_s * tmp;
}
t_m = abs(t) t_s = copysign(1.0, t) function code(t_s, t_m, l, k) t_2 = Float64(tan(k) * Float64(2.0 + (Float64(k / t_m) ^ 2.0))) tmp = 0.0 if (t_m <= 4.4e-42) tmp = Float64(Float64(cos(k) / t_m) * (Float64(l * Float64(sqrt(2.0) / Float64(k * sin(k)))) ^ 2.0)); elseif (t_m <= 4.2e+102) tmp = Float64(2.0 / Float64(t_2 * Float64(Float64(1.0 / l) * Float64(sin(k) * Float64((t_m ^ 3.0) / l))))); else tmp = Float64(2.0 / Float64(sin(k) * Float64(t_2 * (Float64(t_m * (cbrt(l) ^ -2.0)) ^ 3.0)))); end return Float64(t_s * tmp) end
t_m = N[Abs[t], $MachinePrecision]
t_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[t]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
code[t$95$s_, t$95$m_, l_, k_] := Block[{t$95$2 = N[(N[Tan[k], $MachinePrecision] * N[(2.0 + N[Power[N[(k / t$95$m), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, N[(t$95$s * If[LessEqual[t$95$m, 4.4e-42], N[(N[(N[Cos[k], $MachinePrecision] / t$95$m), $MachinePrecision] * N[Power[N[(l * N[(N[Sqrt[2.0], $MachinePrecision] / N[(k * N[Sin[k], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$m, 4.2e+102], N[(2.0 / N[(t$95$2 * N[(N[(1.0 / l), $MachinePrecision] * N[(N[Sin[k], $MachinePrecision] * N[(N[Power[t$95$m, 3.0], $MachinePrecision] / l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(2.0 / N[(N[Sin[k], $MachinePrecision] * N[(t$95$2 * N[Power[N[(t$95$m * N[Power[N[Power[l, 1/3], $MachinePrecision], -2.0], $MachinePrecision]), $MachinePrecision], 3.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]), $MachinePrecision]]
\begin{array}{l}
t_m = \left|t\right|
\\
t_s = \mathsf{copysign}\left(1, t\right)
\\
\begin{array}{l}
t_2 := \tan k \cdot \left(2 + {\left(\frac{k}{t_m}\right)}^{2}\right)\\
t_s \cdot \begin{array}{l}
\mathbf{if}\;t_m \leq 4.4 \cdot 10^{-42}:\\
\;\;\;\;\frac{\cos k}{t_m} \cdot {\left(\ell \cdot \frac{\sqrt{2}}{k \cdot \sin k}\right)}^{2}\\
\mathbf{elif}\;t_m \leq 4.2 \cdot 10^{+102}:\\
\;\;\;\;\frac{2}{t_2 \cdot \left(\frac{1}{\ell} \cdot \left(\sin k \cdot \frac{{t_m}^{3}}{\ell}\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{2}{\sin k \cdot \left(t_2 \cdot {\left(t_m \cdot {\left(\sqrt[3]{\ell}\right)}^{-2}\right)}^{3}\right)}\\
\end{array}
\end{array}
\end{array}
if t < 4.4000000000000001e-42Initial program 49.0%
Simplified49.0%
add-sqr-sqrt38.3%
Applied egg-rr43.8%
unpow243.8%
associate-/l*43.8%
associate-*r*43.8%
*-commutative43.8%
Simplified43.8%
Taylor expanded in k around inf 39.7%
expm1-log1p-u39.4%
expm1-udef34.7%
*-commutative34.7%
unpow-prod-down34.6%
pow234.6%
add-sqr-sqrt54.2%
times-frac54.7%
Applied egg-rr54.7%
expm1-def58.1%
expm1-log1p75.1%
associate-*r/75.2%
associate-*l/75.2%
associate-/r*75.2%
*-rgt-identity75.2%
associate-*r/75.2%
associate-*l*75.2%
associate-*r/75.2%
*-commutative75.2%
*-lft-identity75.2%
Simplified75.2%
if 4.4000000000000001e-42 < t < 4.20000000000000003e102Initial program 76.5%
associate-*l*76.6%
*-commutative76.6%
*-commutative76.6%
associate-/r*81.4%
distribute-rgt-in81.4%
unpow281.4%
times-frac72.8%
sqr-neg72.8%
times-frac81.4%
unpow281.4%
distribute-rgt-in81.4%
+-commutative81.4%
Simplified81.4%
associate-*l/95.0%
clear-num95.0%
Applied egg-rr95.0%
associate-/r/94.9%
*-commutative94.9%
Simplified94.9%
if 4.20000000000000003e102 < t Initial program 56.8%
associate-*l*56.8%
*-commutative56.8%
*-commutative56.8%
associate-/r*63.3%
distribute-rgt-in63.3%
unpow263.3%
times-frac42.9%
sqr-neg42.9%
times-frac63.3%
unpow263.3%
distribute-rgt-in63.3%
+-commutative63.3%
Simplified63.3%
associate-/r*56.8%
unpow356.8%
times-frac76.4%
pow276.4%
Applied egg-rr76.4%
add-cube-cbrt76.4%
pow376.4%
cbrt-prod76.3%
frac-times56.8%
unpow256.8%
unpow356.8%
unpow256.8%
cbrt-div56.8%
unpow356.8%
add-cbrt-cube74.8%
unpow274.8%
cbrt-prod89.1%
pow289.1%
Applied egg-rr89.1%
add-cube-cbrt89.0%
pow389.0%
Applied egg-rr89.0%
expm1-log1p-u65.9%
expm1-udef53.3%
Applied egg-rr51.3%
expm1-def62.1%
expm1-log1p85.1%
associate-*l*85.1%
Simplified85.1%
Final simplification78.5%
t_m = (fabs.f64 t)
t_s = (copysign.f64 1 t)
(FPCore (t_s t_m l k)
:precision binary64
(let* ((t_2 (* (tan k) (+ 2.0 (pow (/ k t_m) 2.0)))))
(*
t_s
(if (<= t_m 4.2e-42)
(* (/ (cos k) t_m) (pow (* l (/ (sqrt 2.0) (* k (sin k)))) 2.0))
(if (<= t_m 6.5e+69)
(/ 2.0 (* t_2 (* (/ 1.0 l) (* (sin k) (/ (pow t_m 3.0) l)))))
(if (<= t_m 1.25e+183)
(/ 2.0 (* t_2 (* (sin k) (pow (/ (pow t_m 1.5) l) 2.0))))
(/
2.0
(*
(pow (* (cbrt (sin k)) (/ t_m (pow (cbrt l) 2.0))) 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 t_2 = tan(k) * (2.0 + pow((k / t_m), 2.0));
double tmp;
if (t_m <= 4.2e-42) {
tmp = (cos(k) / t_m) * pow((l * (sqrt(2.0) / (k * sin(k)))), 2.0);
} else if (t_m <= 6.5e+69) {
tmp = 2.0 / (t_2 * ((1.0 / l) * (sin(k) * (pow(t_m, 3.0) / l))));
} else if (t_m <= 1.25e+183) {
tmp = 2.0 / (t_2 * (sin(k) * pow((pow(t_m, 1.5) / l), 2.0)));
} else {
tmp = 2.0 / (pow((cbrt(sin(k)) * (t_m / pow(cbrt(l), 2.0))), 3.0) * (k * 2.0));
}
return t_s * tmp;
}
t_m = Math.abs(t);
t_s = Math.copySign(1.0, t);
public static double code(double t_s, double t_m, double l, double k) {
double t_2 = Math.tan(k) * (2.0 + Math.pow((k / t_m), 2.0));
double tmp;
if (t_m <= 4.2e-42) {
tmp = (Math.cos(k) / t_m) * Math.pow((l * (Math.sqrt(2.0) / (k * Math.sin(k)))), 2.0);
} else if (t_m <= 6.5e+69) {
tmp = 2.0 / (t_2 * ((1.0 / l) * (Math.sin(k) * (Math.pow(t_m, 3.0) / l))));
} else if (t_m <= 1.25e+183) {
tmp = 2.0 / (t_2 * (Math.sin(k) * Math.pow((Math.pow(t_m, 1.5) / l), 2.0)));
} else {
tmp = 2.0 / (Math.pow((Math.cbrt(Math.sin(k)) * (t_m / Math.pow(Math.cbrt(l), 2.0))), 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) t_2 = Float64(tan(k) * Float64(2.0 + (Float64(k / t_m) ^ 2.0))) tmp = 0.0 if (t_m <= 4.2e-42) tmp = Float64(Float64(cos(k) / t_m) * (Float64(l * Float64(sqrt(2.0) / Float64(k * sin(k)))) ^ 2.0)); elseif (t_m <= 6.5e+69) tmp = Float64(2.0 / Float64(t_2 * Float64(Float64(1.0 / l) * Float64(sin(k) * Float64((t_m ^ 3.0) / l))))); elseif (t_m <= 1.25e+183) tmp = Float64(2.0 / Float64(t_2 * Float64(sin(k) * (Float64((t_m ^ 1.5) / l) ^ 2.0)))); else tmp = Float64(2.0 / Float64((Float64(cbrt(sin(k)) * Float64(t_m / (cbrt(l) ^ 2.0))) ^ 3.0) * Float64(k * 2.0))); end return Float64(t_s * tmp) end
t_m = N[Abs[t], $MachinePrecision]
t_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[t]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
code[t$95$s_, t$95$m_, l_, k_] := Block[{t$95$2 = N[(N[Tan[k], $MachinePrecision] * N[(2.0 + N[Power[N[(k / t$95$m), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, N[(t$95$s * If[LessEqual[t$95$m, 4.2e-42], N[(N[(N[Cos[k], $MachinePrecision] / t$95$m), $MachinePrecision] * N[Power[N[(l * N[(N[Sqrt[2.0], $MachinePrecision] / N[(k * N[Sin[k], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$m, 6.5e+69], N[(2.0 / N[(t$95$2 * N[(N[(1.0 / l), $MachinePrecision] * N[(N[Sin[k], $MachinePrecision] * N[(N[Power[t$95$m, 3.0], $MachinePrecision] / l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$m, 1.25e+183], N[(2.0 / N[(t$95$2 * N[(N[Sin[k], $MachinePrecision] * N[Power[N[(N[Power[t$95$m, 1.5], $MachinePrecision] / l), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(2.0 / N[(N[Power[N[(N[Power[N[Sin[k], $MachinePrecision], 1/3], $MachinePrecision] * N[(t$95$m / N[Power[N[Power[l, 1/3], $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 3.0], $MachinePrecision] * N[(k * 2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]), $MachinePrecision]]
\begin{array}{l}
t_m = \left|t\right|
\\
t_s = \mathsf{copysign}\left(1, t\right)
\\
\begin{array}{l}
t_2 := \tan k \cdot \left(2 + {\left(\frac{k}{t_m}\right)}^{2}\right)\\
t_s \cdot \begin{array}{l}
\mathbf{if}\;t_m \leq 4.2 \cdot 10^{-42}:\\
\;\;\;\;\frac{\cos k}{t_m} \cdot {\left(\ell \cdot \frac{\sqrt{2}}{k \cdot \sin k}\right)}^{2}\\
\mathbf{elif}\;t_m \leq 6.5 \cdot 10^{+69}:\\
\;\;\;\;\frac{2}{t_2 \cdot \left(\frac{1}{\ell} \cdot \left(\sin k \cdot \frac{{t_m}^{3}}{\ell}\right)\right)}\\
\mathbf{elif}\;t_m \leq 1.25 \cdot 10^{+183}:\\
\;\;\;\;\frac{2}{t_2 \cdot \left(\sin k \cdot {\left(\frac{{t_m}^{1.5}}{\ell}\right)}^{2}\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{2}{{\left(\sqrt[3]{\sin k} \cdot \frac{t_m}{{\left(\sqrt[3]{\ell}\right)}^{2}}\right)}^{3} \cdot \left(k \cdot 2\right)}\\
\end{array}
\end{array}
\end{array}
if t < 4.20000000000000013e-42Initial program 49.0%
Simplified49.0%
add-sqr-sqrt38.3%
Applied egg-rr43.8%
unpow243.8%
associate-/l*43.8%
associate-*r*43.8%
*-commutative43.8%
Simplified43.8%
Taylor expanded in k around inf 39.7%
expm1-log1p-u39.4%
expm1-udef34.7%
*-commutative34.7%
unpow-prod-down34.6%
pow234.6%
add-sqr-sqrt54.2%
times-frac54.7%
Applied egg-rr54.7%
expm1-def58.1%
expm1-log1p75.1%
associate-*r/75.2%
associate-*l/75.2%
associate-/r*75.2%
*-rgt-identity75.2%
associate-*r/75.2%
associate-*l*75.2%
associate-*r/75.2%
*-commutative75.2%
*-lft-identity75.2%
Simplified75.2%
if 4.20000000000000013e-42 < t < 6.5000000000000001e69Initial program 79.2%
associate-*l*79.2%
*-commutative79.2%
*-commutative79.2%
associate-/r*84.5%
distribute-rgt-in84.5%
unpow284.5%
times-frac75.0%
sqr-neg75.0%
times-frac84.5%
unpow284.5%
distribute-rgt-in84.5%
+-commutative84.5%
Simplified84.5%
associate-*l/99.5%
clear-num99.5%
Applied egg-rr99.5%
associate-/r/99.5%
*-commutative99.5%
Simplified99.5%
if 6.5000000000000001e69 < t < 1.25000000000000002e183Initial program 46.1%
associate-*l*46.1%
*-commutative46.1%
*-commutative46.1%
associate-/r*46.7%
distribute-rgt-in46.7%
unpow246.7%
times-frac36.1%
sqr-neg36.1%
times-frac46.7%
unpow246.7%
distribute-rgt-in46.7%
+-commutative46.7%
Simplified46.7%
associate-/r*46.1%
add-sqr-sqrt46.1%
pow246.1%
sqrt-div46.1%
sqrt-pow172.3%
metadata-eval72.3%
sqrt-prod41.9%
add-sqr-sqrt87.2%
Applied egg-rr87.2%
if 1.25000000000000002e183 < t Initial program 64.0%
associate-*l*64.0%
*-commutative64.0%
*-commutative64.0%
associate-/r*74.2%
distribute-rgt-in74.2%
unpow274.2%
times-frac48.2%
sqr-neg48.2%
times-frac74.2%
unpow274.2%
distribute-rgt-in74.2%
+-commutative74.2%
Simplified74.2%
associate-/r*64.0%
unpow364.0%
times-frac74.2%
pow274.2%
Applied egg-rr74.2%
add-cube-cbrt74.2%
pow374.2%
cbrt-prod74.2%
frac-times64.0%
unpow264.0%
unpow364.0%
unpow264.0%
cbrt-div64.0%
unpow364.0%
add-cbrt-cube75.1%
unpow275.1%
cbrt-prod88.2%
pow288.2%
Applied egg-rr88.2%
Taylor expanded in k around 0 88.2%
*-commutative81.4%
Simplified88.2%
Final simplification79.3%
t_m = (fabs.f64 t)
t_s = (copysign.f64 1 t)
(FPCore (t_s t_m l k)
:precision binary64
(let* ((t_2 (* (tan k) (+ 2.0 (pow (/ k t_m) 2.0)))))
(*
t_s
(if (<= t_m 4.2e-42)
(* (/ (cos k) t_m) (pow (* l (/ (sqrt 2.0) (* k (sin k)))) 2.0))
(if (<= t_m 9.5e+68)
(/ 2.0 (* t_2 (* (/ 1.0 l) (* (sin k) (/ (pow t_m 3.0) l)))))
(if (<= t_m 1.34e+154)
(/ 2.0 (* t_2 (* (sin k) (* (/ (pow t_m 2.0) l) (/ t_m l)))))
(/
2.0
(*
(pow (* (cbrt (sin k)) (/ t_m (pow (cbrt l) 2.0))) 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 t_2 = tan(k) * (2.0 + pow((k / t_m), 2.0));
double tmp;
if (t_m <= 4.2e-42) {
tmp = (cos(k) / t_m) * pow((l * (sqrt(2.0) / (k * sin(k)))), 2.0);
} else if (t_m <= 9.5e+68) {
tmp = 2.0 / (t_2 * ((1.0 / l) * (sin(k) * (pow(t_m, 3.0) / l))));
} else if (t_m <= 1.34e+154) {
tmp = 2.0 / (t_2 * (sin(k) * ((pow(t_m, 2.0) / l) * (t_m / l))));
} else {
tmp = 2.0 / (pow((cbrt(sin(k)) * (t_m / pow(cbrt(l), 2.0))), 3.0) * (k * 2.0));
}
return t_s * tmp;
}
t_m = Math.abs(t);
t_s = Math.copySign(1.0, t);
public static double code(double t_s, double t_m, double l, double k) {
double t_2 = Math.tan(k) * (2.0 + Math.pow((k / t_m), 2.0));
double tmp;
if (t_m <= 4.2e-42) {
tmp = (Math.cos(k) / t_m) * Math.pow((l * (Math.sqrt(2.0) / (k * Math.sin(k)))), 2.0);
} else if (t_m <= 9.5e+68) {
tmp = 2.0 / (t_2 * ((1.0 / l) * (Math.sin(k) * (Math.pow(t_m, 3.0) / l))));
} else if (t_m <= 1.34e+154) {
tmp = 2.0 / (t_2 * (Math.sin(k) * ((Math.pow(t_m, 2.0) / l) * (t_m / l))));
} else {
tmp = 2.0 / (Math.pow((Math.cbrt(Math.sin(k)) * (t_m / Math.pow(Math.cbrt(l), 2.0))), 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) t_2 = Float64(tan(k) * Float64(2.0 + (Float64(k / t_m) ^ 2.0))) tmp = 0.0 if (t_m <= 4.2e-42) tmp = Float64(Float64(cos(k) / t_m) * (Float64(l * Float64(sqrt(2.0) / Float64(k * sin(k)))) ^ 2.0)); elseif (t_m <= 9.5e+68) tmp = Float64(2.0 / Float64(t_2 * Float64(Float64(1.0 / l) * Float64(sin(k) * Float64((t_m ^ 3.0) / l))))); elseif (t_m <= 1.34e+154) tmp = Float64(2.0 / Float64(t_2 * Float64(sin(k) * Float64(Float64((t_m ^ 2.0) / l) * Float64(t_m / l))))); else tmp = Float64(2.0 / Float64((Float64(cbrt(sin(k)) * Float64(t_m / (cbrt(l) ^ 2.0))) ^ 3.0) * Float64(k * 2.0))); end return Float64(t_s * tmp) end
t_m = N[Abs[t], $MachinePrecision]
t_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[t]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
code[t$95$s_, t$95$m_, l_, k_] := Block[{t$95$2 = N[(N[Tan[k], $MachinePrecision] * N[(2.0 + N[Power[N[(k / t$95$m), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, N[(t$95$s * If[LessEqual[t$95$m, 4.2e-42], N[(N[(N[Cos[k], $MachinePrecision] / t$95$m), $MachinePrecision] * N[Power[N[(l * N[(N[Sqrt[2.0], $MachinePrecision] / N[(k * N[Sin[k], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$m, 9.5e+68], N[(2.0 / N[(t$95$2 * N[(N[(1.0 / l), $MachinePrecision] * N[(N[Sin[k], $MachinePrecision] * N[(N[Power[t$95$m, 3.0], $MachinePrecision] / l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$m, 1.34e+154], N[(2.0 / N[(t$95$2 * N[(N[Sin[k], $MachinePrecision] * N[(N[(N[Power[t$95$m, 2.0], $MachinePrecision] / l), $MachinePrecision] * N[(t$95$m / l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(2.0 / N[(N[Power[N[(N[Power[N[Sin[k], $MachinePrecision], 1/3], $MachinePrecision] * N[(t$95$m / N[Power[N[Power[l, 1/3], $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 3.0], $MachinePrecision] * N[(k * 2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]), $MachinePrecision]]
\begin{array}{l}
t_m = \left|t\right|
\\
t_s = \mathsf{copysign}\left(1, t\right)
\\
\begin{array}{l}
t_2 := \tan k \cdot \left(2 + {\left(\frac{k}{t_m}\right)}^{2}\right)\\
t_s \cdot \begin{array}{l}
\mathbf{if}\;t_m \leq 4.2 \cdot 10^{-42}:\\
\;\;\;\;\frac{\cos k}{t_m} \cdot {\left(\ell \cdot \frac{\sqrt{2}}{k \cdot \sin k}\right)}^{2}\\
\mathbf{elif}\;t_m \leq 9.5 \cdot 10^{+68}:\\
\;\;\;\;\frac{2}{t_2 \cdot \left(\frac{1}{\ell} \cdot \left(\sin k \cdot \frac{{t_m}^{3}}{\ell}\right)\right)}\\
\mathbf{elif}\;t_m \leq 1.34 \cdot 10^{+154}:\\
\;\;\;\;\frac{2}{t_2 \cdot \left(\sin k \cdot \left(\frac{{t_m}^{2}}{\ell} \cdot \frac{t_m}{\ell}\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{2}{{\left(\sqrt[3]{\sin k} \cdot \frac{t_m}{{\left(\sqrt[3]{\ell}\right)}^{2}}\right)}^{3} \cdot \left(k \cdot 2\right)}\\
\end{array}
\end{array}
\end{array}
if t < 4.20000000000000013e-42Initial program 49.0%
Simplified49.0%
add-sqr-sqrt38.3%
Applied egg-rr43.8%
unpow243.8%
associate-/l*43.8%
associate-*r*43.8%
*-commutative43.8%
Simplified43.8%
Taylor expanded in k around inf 39.7%
expm1-log1p-u39.4%
expm1-udef34.7%
*-commutative34.7%
unpow-prod-down34.6%
pow234.6%
add-sqr-sqrt54.2%
times-frac54.7%
Applied egg-rr54.7%
expm1-def58.1%
expm1-log1p75.1%
associate-*r/75.2%
associate-*l/75.2%
associate-/r*75.2%
*-rgt-identity75.2%
associate-*r/75.2%
associate-*l*75.2%
associate-*r/75.2%
*-commutative75.2%
*-lft-identity75.2%
Simplified75.2%
if 4.20000000000000013e-42 < t < 9.50000000000000069e68Initial program 79.2%
associate-*l*79.2%
*-commutative79.2%
*-commutative79.2%
associate-/r*84.5%
distribute-rgt-in84.5%
unpow284.5%
times-frac75.0%
sqr-neg75.0%
times-frac84.5%
unpow284.5%
distribute-rgt-in84.5%
+-commutative84.5%
Simplified84.5%
associate-*l/99.5%
clear-num99.5%
Applied egg-rr99.5%
associate-/r/99.5%
*-commutative99.5%
Simplified99.5%
if 9.50000000000000069e68 < t < 1.34000000000000001e154Initial program 38.4%
associate-*l*38.4%
*-commutative38.4%
*-commutative38.4%
associate-/r*39.1%
distribute-rgt-in39.1%
unpow239.1%
times-frac39.1%
sqr-neg39.1%
times-frac39.1%
unpow239.1%
distribute-rgt-in39.1%
+-commutative39.1%
Simplified39.1%
associate-/r*38.4%
unpow338.4%
times-frac87.2%
pow287.2%
Applied egg-rr87.2%
if 1.34000000000000001e154 < t Initial program 63.0%
associate-*l*63.0%
*-commutative63.0%
*-commutative63.0%
associate-/r*71.2%
distribute-rgt-in71.2%
unpow271.2%
times-frac44.7%
sqr-neg44.7%
times-frac71.2%
unpow271.2%
distribute-rgt-in71.2%
+-commutative71.2%
Simplified71.2%
associate-/r*63.0%
unpow363.0%
times-frac71.2%
pow271.2%
Applied egg-rr71.2%
add-cube-cbrt71.2%
pow371.2%
cbrt-prod71.2%
frac-times63.0%
unpow263.0%
unpow363.0%
unpow263.0%
cbrt-div63.0%
unpow363.0%
add-cbrt-cube74.7%
unpow274.7%
cbrt-prod87.8%
pow287.8%
Applied egg-rr87.8%
Taylor expanded in k around 0 87.8%
*-commutative82.5%
Simplified87.8%
Final simplification79.2%
t_m = (fabs.f64 t)
t_s = (copysign.f64 1 t)
(FPCore (t_s t_m l k)
:precision binary64
(let* ((t_2 (* (tan k) (+ 2.0 (pow (/ k t_m) 2.0)))))
(*
t_s
(if (<= t_m 4e-42)
(* (/ (cos k) t_m) (pow (* l (/ (sqrt 2.0) (* k (sin k)))) 2.0))
(if (<= t_m 6.5e+69)
(/ 2.0 (* t_2 (/ (* (sin k) (/ (pow t_m 3.0) l)) l)))
(if (<= t_m 1.45e+154)
(/ 2.0 (* t_2 (* (sin k) (* (/ (pow t_m 2.0) l) (/ t_m l)))))
(/
2.0
(*
(* k 2.0)
(* (sin k) (pow (/ (/ t_m (cbrt l)) (cbrt l)) 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 = tan(k) * (2.0 + pow((k / t_m), 2.0));
double tmp;
if (t_m <= 4e-42) {
tmp = (cos(k) / t_m) * pow((l * (sqrt(2.0) / (k * sin(k)))), 2.0);
} else if (t_m <= 6.5e+69) {
tmp = 2.0 / (t_2 * ((sin(k) * (pow(t_m, 3.0) / l)) / l));
} else if (t_m <= 1.45e+154) {
tmp = 2.0 / (t_2 * (sin(k) * ((pow(t_m, 2.0) / l) * (t_m / l))));
} else {
tmp = 2.0 / ((k * 2.0) * (sin(k) * pow(((t_m / cbrt(l)) / cbrt(l)), 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.tan(k) * (2.0 + Math.pow((k / t_m), 2.0));
double tmp;
if (t_m <= 4e-42) {
tmp = (Math.cos(k) / t_m) * Math.pow((l * (Math.sqrt(2.0) / (k * Math.sin(k)))), 2.0);
} else if (t_m <= 6.5e+69) {
tmp = 2.0 / (t_2 * ((Math.sin(k) * (Math.pow(t_m, 3.0) / l)) / l));
} else if (t_m <= 1.45e+154) {
tmp = 2.0 / (t_2 * (Math.sin(k) * ((Math.pow(t_m, 2.0) / l) * (t_m / l))));
} else {
tmp = 2.0 / ((k * 2.0) * (Math.sin(k) * Math.pow(((t_m / Math.cbrt(l)) / Math.cbrt(l)), 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(tan(k) * Float64(2.0 + (Float64(k / t_m) ^ 2.0))) tmp = 0.0 if (t_m <= 4e-42) tmp = Float64(Float64(cos(k) / t_m) * (Float64(l * Float64(sqrt(2.0) / Float64(k * sin(k)))) ^ 2.0)); elseif (t_m <= 6.5e+69) tmp = Float64(2.0 / Float64(t_2 * Float64(Float64(sin(k) * Float64((t_m ^ 3.0) / l)) / l))); elseif (t_m <= 1.45e+154) tmp = Float64(2.0 / Float64(t_2 * Float64(sin(k) * Float64(Float64((t_m ^ 2.0) / l) * Float64(t_m / l))))); else tmp = Float64(2.0 / Float64(Float64(k * 2.0) * Float64(sin(k) * (Float64(Float64(t_m / cbrt(l)) / cbrt(l)) ^ 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[Tan[k], $MachinePrecision] * N[(2.0 + N[Power[N[(k / t$95$m), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, N[(t$95$s * If[LessEqual[t$95$m, 4e-42], N[(N[(N[Cos[k], $MachinePrecision] / t$95$m), $MachinePrecision] * N[Power[N[(l * N[(N[Sqrt[2.0], $MachinePrecision] / N[(k * N[Sin[k], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$m, 6.5e+69], N[(2.0 / N[(t$95$2 * N[(N[(N[Sin[k], $MachinePrecision] * N[(N[Power[t$95$m, 3.0], $MachinePrecision] / l), $MachinePrecision]), $MachinePrecision] / l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$m, 1.45e+154], N[(2.0 / N[(t$95$2 * N[(N[Sin[k], $MachinePrecision] * N[(N[(N[Power[t$95$m, 2.0], $MachinePrecision] / l), $MachinePrecision] * N[(t$95$m / l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(2.0 / N[(N[(k * 2.0), $MachinePrecision] * N[(N[Sin[k], $MachinePrecision] * N[Power[N[(N[(t$95$m / N[Power[l, 1/3], $MachinePrecision]), $MachinePrecision] / N[Power[l, 1/3], $MachinePrecision]), $MachinePrecision], 3.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]), $MachinePrecision]]
\begin{array}{l}
t_m = \left|t\right|
\\
t_s = \mathsf{copysign}\left(1, t\right)
\\
\begin{array}{l}
t_2 := \tan k \cdot \left(2 + {\left(\frac{k}{t_m}\right)}^{2}\right)\\
t_s \cdot \begin{array}{l}
\mathbf{if}\;t_m \leq 4 \cdot 10^{-42}:\\
\;\;\;\;\frac{\cos k}{t_m} \cdot {\left(\ell \cdot \frac{\sqrt{2}}{k \cdot \sin k}\right)}^{2}\\
\mathbf{elif}\;t_m \leq 6.5 \cdot 10^{+69}:\\
\;\;\;\;\frac{2}{t_2 \cdot \frac{\sin k \cdot \frac{{t_m}^{3}}{\ell}}{\ell}}\\
\mathbf{elif}\;t_m \leq 1.45 \cdot 10^{+154}:\\
\;\;\;\;\frac{2}{t_2 \cdot \left(\sin k \cdot \left(\frac{{t_m}^{2}}{\ell} \cdot \frac{t_m}{\ell}\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{2}{\left(k \cdot 2\right) \cdot \left(\sin k \cdot {\left(\frac{\frac{t_m}{\sqrt[3]{\ell}}}{\sqrt[3]{\ell}}\right)}^{3}\right)}\\
\end{array}
\end{array}
\end{array}
if t < 4.00000000000000015e-42Initial program 49.0%
Simplified49.0%
add-sqr-sqrt38.3%
Applied egg-rr43.8%
unpow243.8%
associate-/l*43.8%
associate-*r*43.8%
*-commutative43.8%
Simplified43.8%
Taylor expanded in k around inf 39.7%
expm1-log1p-u39.4%
expm1-udef34.7%
*-commutative34.7%
unpow-prod-down34.6%
pow234.6%
add-sqr-sqrt54.2%
times-frac54.7%
Applied egg-rr54.7%
expm1-def58.1%
expm1-log1p75.1%
associate-*r/75.2%
associate-*l/75.2%
associate-/r*75.2%
*-rgt-identity75.2%
associate-*r/75.2%
associate-*l*75.2%
associate-*r/75.2%
*-commutative75.2%
*-lft-identity75.2%
Simplified75.2%
if 4.00000000000000015e-42 < t < 6.5000000000000001e69Initial program 79.2%
associate-*l*79.2%
*-commutative79.2%
*-commutative79.2%
associate-/r*84.5%
distribute-rgt-in84.5%
unpow284.5%
times-frac75.0%
sqr-neg75.0%
times-frac84.5%
unpow284.5%
distribute-rgt-in84.5%
+-commutative84.5%
Simplified84.5%
associate-*l/99.5%
Applied egg-rr99.5%
if 6.5000000000000001e69 < t < 1.4499999999999999e154Initial program 38.4%
associate-*l*38.4%
*-commutative38.4%
*-commutative38.4%
associate-/r*39.1%
distribute-rgt-in39.1%
unpow239.1%
times-frac39.1%
sqr-neg39.1%
times-frac39.1%
unpow239.1%
distribute-rgt-in39.1%
+-commutative39.1%
Simplified39.1%
associate-/r*38.4%
unpow338.4%
times-frac87.2%
pow287.2%
Applied egg-rr87.2%
if 1.4499999999999999e154 < t Initial program 63.0%
associate-*l*63.0%
*-commutative63.0%
*-commutative63.0%
associate-/r*71.2%
distribute-rgt-in71.2%
unpow271.2%
times-frac44.7%
sqr-neg44.7%
times-frac71.2%
unpow271.2%
distribute-rgt-in71.2%
+-commutative71.2%
Simplified71.2%
add-cube-cbrt71.2%
*-un-lft-identity71.2%
times-frac71.2%
pow271.2%
cbrt-div71.2%
rem-cbrt-cube71.2%
cbrt-div71.2%
rem-cbrt-cube82.5%
Applied egg-rr82.5%
Taylor expanded in k around 0 82.5%
*-commutative82.5%
Simplified82.5%
add-cube-cbrt82.5%
pow382.5%
frac-times73.9%
unpow273.9%
*-un-lft-identity73.9%
cbrt-div73.9%
add-cbrt-cube82.4%
Applied egg-rr82.4%
Final simplification78.5%
t_m = (fabs.f64 t)
t_s = (copysign.f64 1 t)
(FPCore (t_s t_m l k)
:precision binary64
(let* ((t_2 (* (tan k) (+ 2.0 (pow (/ k t_m) 2.0)))))
(*
t_s
(if (<= t_m 4e-42)
(* (/ (cos k) t_m) (pow (* l (/ (sqrt 2.0) (* k (sin k)))) 2.0))
(if (<= t_m 2e+68)
(/ 2.0 (* t_2 (* (/ 1.0 l) (* (sin k) (/ (pow t_m 3.0) l)))))
(if (<= t_m 1.34e+154)
(/ 2.0 (* t_2 (* (sin k) (* (/ (pow t_m 2.0) l) (/ t_m l)))))
(/
2.0
(*
(* k 2.0)
(* (sin k) (pow (/ (/ t_m (cbrt l)) (cbrt l)) 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 = tan(k) * (2.0 + pow((k / t_m), 2.0));
double tmp;
if (t_m <= 4e-42) {
tmp = (cos(k) / t_m) * pow((l * (sqrt(2.0) / (k * sin(k)))), 2.0);
} else if (t_m <= 2e+68) {
tmp = 2.0 / (t_2 * ((1.0 / l) * (sin(k) * (pow(t_m, 3.0) / l))));
} else if (t_m <= 1.34e+154) {
tmp = 2.0 / (t_2 * (sin(k) * ((pow(t_m, 2.0) / l) * (t_m / l))));
} else {
tmp = 2.0 / ((k * 2.0) * (sin(k) * pow(((t_m / cbrt(l)) / cbrt(l)), 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.tan(k) * (2.0 + Math.pow((k / t_m), 2.0));
double tmp;
if (t_m <= 4e-42) {
tmp = (Math.cos(k) / t_m) * Math.pow((l * (Math.sqrt(2.0) / (k * Math.sin(k)))), 2.0);
} else if (t_m <= 2e+68) {
tmp = 2.0 / (t_2 * ((1.0 / l) * (Math.sin(k) * (Math.pow(t_m, 3.0) / l))));
} else if (t_m <= 1.34e+154) {
tmp = 2.0 / (t_2 * (Math.sin(k) * ((Math.pow(t_m, 2.0) / l) * (t_m / l))));
} else {
tmp = 2.0 / ((k * 2.0) * (Math.sin(k) * Math.pow(((t_m / Math.cbrt(l)) / Math.cbrt(l)), 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(tan(k) * Float64(2.0 + (Float64(k / t_m) ^ 2.0))) tmp = 0.0 if (t_m <= 4e-42) tmp = Float64(Float64(cos(k) / t_m) * (Float64(l * Float64(sqrt(2.0) / Float64(k * sin(k)))) ^ 2.0)); elseif (t_m <= 2e+68) tmp = Float64(2.0 / Float64(t_2 * Float64(Float64(1.0 / l) * Float64(sin(k) * Float64((t_m ^ 3.0) / l))))); elseif (t_m <= 1.34e+154) tmp = Float64(2.0 / Float64(t_2 * Float64(sin(k) * Float64(Float64((t_m ^ 2.0) / l) * Float64(t_m / l))))); else tmp = Float64(2.0 / Float64(Float64(k * 2.0) * Float64(sin(k) * (Float64(Float64(t_m / cbrt(l)) / cbrt(l)) ^ 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[Tan[k], $MachinePrecision] * N[(2.0 + N[Power[N[(k / t$95$m), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, N[(t$95$s * If[LessEqual[t$95$m, 4e-42], N[(N[(N[Cos[k], $MachinePrecision] / t$95$m), $MachinePrecision] * N[Power[N[(l * N[(N[Sqrt[2.0], $MachinePrecision] / N[(k * N[Sin[k], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$m, 2e+68], N[(2.0 / N[(t$95$2 * N[(N[(1.0 / l), $MachinePrecision] * N[(N[Sin[k], $MachinePrecision] * N[(N[Power[t$95$m, 3.0], $MachinePrecision] / l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$m, 1.34e+154], N[(2.0 / N[(t$95$2 * N[(N[Sin[k], $MachinePrecision] * N[(N[(N[Power[t$95$m, 2.0], $MachinePrecision] / l), $MachinePrecision] * N[(t$95$m / l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(2.0 / N[(N[(k * 2.0), $MachinePrecision] * N[(N[Sin[k], $MachinePrecision] * N[Power[N[(N[(t$95$m / N[Power[l, 1/3], $MachinePrecision]), $MachinePrecision] / N[Power[l, 1/3], $MachinePrecision]), $MachinePrecision], 3.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]), $MachinePrecision]]
\begin{array}{l}
t_m = \left|t\right|
\\
t_s = \mathsf{copysign}\left(1, t\right)
\\
\begin{array}{l}
t_2 := \tan k \cdot \left(2 + {\left(\frac{k}{t_m}\right)}^{2}\right)\\
t_s \cdot \begin{array}{l}
\mathbf{if}\;t_m \leq 4 \cdot 10^{-42}:\\
\;\;\;\;\frac{\cos k}{t_m} \cdot {\left(\ell \cdot \frac{\sqrt{2}}{k \cdot \sin k}\right)}^{2}\\
\mathbf{elif}\;t_m \leq 2 \cdot 10^{+68}:\\
\;\;\;\;\frac{2}{t_2 \cdot \left(\frac{1}{\ell} \cdot \left(\sin k \cdot \frac{{t_m}^{3}}{\ell}\right)\right)}\\
\mathbf{elif}\;t_m \leq 1.34 \cdot 10^{+154}:\\
\;\;\;\;\frac{2}{t_2 \cdot \left(\sin k \cdot \left(\frac{{t_m}^{2}}{\ell} \cdot \frac{t_m}{\ell}\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{2}{\left(k \cdot 2\right) \cdot \left(\sin k \cdot {\left(\frac{\frac{t_m}{\sqrt[3]{\ell}}}{\sqrt[3]{\ell}}\right)}^{3}\right)}\\
\end{array}
\end{array}
\end{array}
if t < 4.00000000000000015e-42Initial program 49.0%
Simplified49.0%
add-sqr-sqrt38.3%
Applied egg-rr43.8%
unpow243.8%
associate-/l*43.8%
associate-*r*43.8%
*-commutative43.8%
Simplified43.8%
Taylor expanded in k around inf 39.7%
expm1-log1p-u39.4%
expm1-udef34.7%
*-commutative34.7%
unpow-prod-down34.6%
pow234.6%
add-sqr-sqrt54.2%
times-frac54.7%
Applied egg-rr54.7%
expm1-def58.1%
expm1-log1p75.1%
associate-*r/75.2%
associate-*l/75.2%
associate-/r*75.2%
*-rgt-identity75.2%
associate-*r/75.2%
associate-*l*75.2%
associate-*r/75.2%
*-commutative75.2%
*-lft-identity75.2%
Simplified75.2%
if 4.00000000000000015e-42 < t < 1.99999999999999991e68Initial program 79.2%
associate-*l*79.2%
*-commutative79.2%
*-commutative79.2%
associate-/r*84.5%
distribute-rgt-in84.5%
unpow284.5%
times-frac75.0%
sqr-neg75.0%
times-frac84.5%
unpow284.5%
distribute-rgt-in84.5%
+-commutative84.5%
Simplified84.5%
associate-*l/99.5%
clear-num99.5%
Applied egg-rr99.5%
associate-/r/99.5%
*-commutative99.5%
Simplified99.5%
if 1.99999999999999991e68 < t < 1.34000000000000001e154Initial program 38.4%
associate-*l*38.4%
*-commutative38.4%
*-commutative38.4%
associate-/r*39.1%
distribute-rgt-in39.1%
unpow239.1%
times-frac39.1%
sqr-neg39.1%
times-frac39.1%
unpow239.1%
distribute-rgt-in39.1%
+-commutative39.1%
Simplified39.1%
associate-/r*38.4%
unpow338.4%
times-frac87.2%
pow287.2%
Applied egg-rr87.2%
if 1.34000000000000001e154 < t Initial program 63.0%
associate-*l*63.0%
*-commutative63.0%
*-commutative63.0%
associate-/r*71.2%
distribute-rgt-in71.2%
unpow271.2%
times-frac44.7%
sqr-neg44.7%
times-frac71.2%
unpow271.2%
distribute-rgt-in71.2%
+-commutative71.2%
Simplified71.2%
add-cube-cbrt71.2%
*-un-lft-identity71.2%
times-frac71.2%
pow271.2%
cbrt-div71.2%
rem-cbrt-cube71.2%
cbrt-div71.2%
rem-cbrt-cube82.5%
Applied egg-rr82.5%
Taylor expanded in k around 0 82.5%
*-commutative82.5%
Simplified82.5%
add-cube-cbrt82.5%
pow382.5%
frac-times73.9%
unpow273.9%
*-un-lft-identity73.9%
cbrt-div73.9%
add-cbrt-cube82.4%
Applied egg-rr82.4%
Final simplification78.5%
t_m = (fabs.f64 t)
t_s = (copysign.f64 1 t)
(FPCore (t_s t_m l k)
:precision binary64
(*
t_s
(if (<= t_m 4.5e-42)
(* (/ (cos k) t_m) (pow (* l (/ (sqrt 2.0) (* k (sin k)))) 2.0))
(if (<= t_m 2.4e+102)
(pow (/ l (* k (sqrt (pow t_m 3.0)))) 2.0)
(if (<= t_m 1.34e+154)
(/
2.0
(*
(* (sin k) (* (/ (pow t_m 2.0) l) (/ t_m l)))
(* 2.0 (/ (sin k) (cos k)))))
(if (<= t_m 9.2e+235)
(/ (* l l) (pow (* t_m (pow (cbrt k) 2.0)) 3.0))
(/
2.0
(*
(* k 2.0)
(* (sin k) (pow (/ (/ t_m (cbrt l)) (cbrt l)) 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 <= 4.5e-42) {
tmp = (cos(k) / t_m) * pow((l * (sqrt(2.0) / (k * sin(k)))), 2.0);
} else if (t_m <= 2.4e+102) {
tmp = pow((l / (k * sqrt(pow(t_m, 3.0)))), 2.0);
} else if (t_m <= 1.34e+154) {
tmp = 2.0 / ((sin(k) * ((pow(t_m, 2.0) / l) * (t_m / l))) * (2.0 * (sin(k) / cos(k))));
} else if (t_m <= 9.2e+235) {
tmp = (l * l) / pow((t_m * pow(cbrt(k), 2.0)), 3.0);
} else {
tmp = 2.0 / ((k * 2.0) * (sin(k) * pow(((t_m / cbrt(l)) / cbrt(l)), 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 <= 4.5e-42) {
tmp = (Math.cos(k) / t_m) * Math.pow((l * (Math.sqrt(2.0) / (k * Math.sin(k)))), 2.0);
} else if (t_m <= 2.4e+102) {
tmp = Math.pow((l / (k * Math.sqrt(Math.pow(t_m, 3.0)))), 2.0);
} else if (t_m <= 1.34e+154) {
tmp = 2.0 / ((Math.sin(k) * ((Math.pow(t_m, 2.0) / l) * (t_m / l))) * (2.0 * (Math.sin(k) / Math.cos(k))));
} else if (t_m <= 9.2e+235) {
tmp = (l * l) / Math.pow((t_m * Math.pow(Math.cbrt(k), 2.0)), 3.0);
} else {
tmp = 2.0 / ((k * 2.0) * (Math.sin(k) * Math.pow(((t_m / Math.cbrt(l)) / Math.cbrt(l)), 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 <= 4.5e-42) tmp = Float64(Float64(cos(k) / t_m) * (Float64(l * Float64(sqrt(2.0) / Float64(k * sin(k)))) ^ 2.0)); elseif (t_m <= 2.4e+102) tmp = Float64(l / Float64(k * sqrt((t_m ^ 3.0)))) ^ 2.0; elseif (t_m <= 1.34e+154) tmp = Float64(2.0 / Float64(Float64(sin(k) * Float64(Float64((t_m ^ 2.0) / l) * Float64(t_m / l))) * Float64(2.0 * Float64(sin(k) / cos(k))))); elseif (t_m <= 9.2e+235) tmp = Float64(Float64(l * l) / (Float64(t_m * (cbrt(k) ^ 2.0)) ^ 3.0)); else tmp = Float64(2.0 / Float64(Float64(k * 2.0) * Float64(sin(k) * (Float64(Float64(t_m / cbrt(l)) / cbrt(l)) ^ 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, 4.5e-42], N[(N[(N[Cos[k], $MachinePrecision] / t$95$m), $MachinePrecision] * N[Power[N[(l * N[(N[Sqrt[2.0], $MachinePrecision] / N[(k * N[Sin[k], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$m, 2.4e+102], N[Power[N[(l / N[(k * N[Sqrt[N[Power[t$95$m, 3.0], $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 2.0], $MachinePrecision], If[LessEqual[t$95$m, 1.34e+154], N[(2.0 / N[(N[(N[Sin[k], $MachinePrecision] * N[(N[(N[Power[t$95$m, 2.0], $MachinePrecision] / l), $MachinePrecision] * N[(t$95$m / l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(2.0 * N[(N[Sin[k], $MachinePrecision] / N[Cos[k], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$m, 9.2e+235], N[(N[(l * l), $MachinePrecision] / N[Power[N[(t$95$m * N[Power[N[Power[k, 1/3], $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision], 3.0], $MachinePrecision]), $MachinePrecision], N[(2.0 / N[(N[(k * 2.0), $MachinePrecision] * N[(N[Sin[k], $MachinePrecision] * N[Power[N[(N[(t$95$m / N[Power[l, 1/3], $MachinePrecision]), $MachinePrecision] / N[Power[l, 1/3], $MachinePrecision]), $MachinePrecision], 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 4.5 \cdot 10^{-42}:\\
\;\;\;\;\frac{\cos k}{t_m} \cdot {\left(\ell \cdot \frac{\sqrt{2}}{k \cdot \sin k}\right)}^{2}\\
\mathbf{elif}\;t_m \leq 2.4 \cdot 10^{+102}:\\
\;\;\;\;{\left(\frac{\ell}{k \cdot \sqrt{{t_m}^{3}}}\right)}^{2}\\
\mathbf{elif}\;t_m \leq 1.34 \cdot 10^{+154}:\\
\;\;\;\;\frac{2}{\left(\sin k \cdot \left(\frac{{t_m}^{2}}{\ell} \cdot \frac{t_m}{\ell}\right)\right) \cdot \left(2 \cdot \frac{\sin k}{\cos k}\right)}\\
\mathbf{elif}\;t_m \leq 9.2 \cdot 10^{+235}:\\
\;\;\;\;\frac{\ell \cdot \ell}{{\left(t_m \cdot {\left(\sqrt[3]{k}\right)}^{2}\right)}^{3}}\\
\mathbf{else}:\\
\;\;\;\;\frac{2}{\left(k \cdot 2\right) \cdot \left(\sin k \cdot {\left(\frac{\frac{t_m}{\sqrt[3]{\ell}}}{\sqrt[3]{\ell}}\right)}^{3}\right)}\\
\end{array}
\end{array}
if t < 4.5e-42Initial program 49.0%
Simplified49.0%
add-sqr-sqrt38.3%
Applied egg-rr43.8%
unpow243.8%
associate-/l*43.8%
associate-*r*43.8%
*-commutative43.8%
Simplified43.8%
Taylor expanded in k around inf 39.7%
expm1-log1p-u39.4%
expm1-udef34.7%
*-commutative34.7%
unpow-prod-down34.6%
pow234.6%
add-sqr-sqrt54.2%
times-frac54.7%
Applied egg-rr54.7%
expm1-def58.1%
expm1-log1p75.1%
associate-*r/75.2%
associate-*l/75.2%
associate-/r*75.2%
*-rgt-identity75.2%
associate-*r/75.2%
associate-*l*75.2%
associate-*r/75.2%
*-commutative75.2%
*-lft-identity75.2%
Simplified75.2%
if 4.5e-42 < t < 2.39999999999999994e102Initial program 76.5%
Simplified81.0%
add-sqr-sqrt71.5%
Applied egg-rr71.6%
unpow271.6%
associate-/l*71.8%
associate-*r*71.8%
*-commutative71.8%
Simplified71.8%
Taylor expanded in k around 0 81.6%
if 2.39999999999999994e102 < t < 1.34000000000000001e154Initial program 35.8%
associate-*l*35.8%
*-commutative35.8%
*-commutative35.8%
associate-/r*36.6%
distribute-rgt-in36.6%
unpow236.6%
times-frac36.6%
sqr-neg36.6%
times-frac36.6%
unpow236.6%
distribute-rgt-in36.6%
+-commutative36.6%
Simplified36.6%
associate-/r*35.8%
unpow335.8%
times-frac94.3%
pow294.3%
Applied egg-rr94.3%
Taylor expanded in t around inf 94.4%
if 1.34000000000000001e154 < t < 9.2e235Initial program 58.7%
Simplified38.6%
Taylor expanded in k around 0 38.6%
unpow238.6%
Applied egg-rr38.6%
add-cube-cbrt38.6%
pow338.6%
*-commutative38.6%
cbrt-prod38.6%
unpow338.6%
add-cbrt-cube52.9%
unpow252.9%
cbrt-prod85.6%
pow285.6%
Applied egg-rr85.6%
if 9.2e235 < t Initial program 70.1%
associate-*l*70.1%
*-commutative70.1%
*-commutative70.1%
associate-/r*85.6%
distribute-rgt-in85.6%
unpow285.6%
times-frac54.8%
sqr-neg54.8%
times-frac85.6%
unpow285.6%
distribute-rgt-in85.6%
+-commutative85.6%
Simplified85.6%
add-cube-cbrt85.6%
*-un-lft-identity85.6%
times-frac85.6%
pow285.6%
cbrt-div85.6%
rem-cbrt-cube85.6%
cbrt-div85.6%
rem-cbrt-cube85.6%
Applied egg-rr85.6%
Taylor expanded in k around 0 85.6%
*-commutative85.6%
Simplified85.6%
add-cube-cbrt85.6%
pow385.6%
frac-times85.6%
unpow285.6%
*-un-lft-identity85.6%
cbrt-div85.6%
add-cbrt-cube85.6%
Applied egg-rr85.6%
Final simplification77.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 4.4e-42)
(* (/ (cos k) t_m) (pow (* l (/ (sqrt 2.0) (* k (sin k)))) 2.0))
(if (<= t_m 3.2e+88)
(/
2.0
(*
(* (tan k) (+ 2.0 (pow (/ k t_m) 2.0)))
(/ (* (sin k) (/ (pow t_m 3.0) l)) l)))
(if (<= t_m 1.34e+154)
(/
2.0
(*
(* (sin k) (* (/ (pow t_m 2.0) l) (/ t_m l)))
(* 2.0 (/ (sin k) (cos k)))))
(if (<= t_m 2.4e+236)
(/ (* l l) (pow (* t_m (pow (cbrt k) 2.0)) 3.0))
(/
2.0
(*
(* k 2.0)
(* (sin k) (pow (/ (/ t_m (cbrt l)) (cbrt l)) 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 <= 4.4e-42) {
tmp = (cos(k) / t_m) * pow((l * (sqrt(2.0) / (k * sin(k)))), 2.0);
} else if (t_m <= 3.2e+88) {
tmp = 2.0 / ((tan(k) * (2.0 + pow((k / t_m), 2.0))) * ((sin(k) * (pow(t_m, 3.0) / l)) / l));
} else if (t_m <= 1.34e+154) {
tmp = 2.0 / ((sin(k) * ((pow(t_m, 2.0) / l) * (t_m / l))) * (2.0 * (sin(k) / cos(k))));
} else if (t_m <= 2.4e+236) {
tmp = (l * l) / pow((t_m * pow(cbrt(k), 2.0)), 3.0);
} else {
tmp = 2.0 / ((k * 2.0) * (sin(k) * pow(((t_m / cbrt(l)) / cbrt(l)), 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 <= 4.4e-42) {
tmp = (Math.cos(k) / t_m) * Math.pow((l * (Math.sqrt(2.0) / (k * Math.sin(k)))), 2.0);
} else if (t_m <= 3.2e+88) {
tmp = 2.0 / ((Math.tan(k) * (2.0 + Math.pow((k / t_m), 2.0))) * ((Math.sin(k) * (Math.pow(t_m, 3.0) / l)) / l));
} else if (t_m <= 1.34e+154) {
tmp = 2.0 / ((Math.sin(k) * ((Math.pow(t_m, 2.0) / l) * (t_m / l))) * (2.0 * (Math.sin(k) / Math.cos(k))));
} else if (t_m <= 2.4e+236) {
tmp = (l * l) / Math.pow((t_m * Math.pow(Math.cbrt(k), 2.0)), 3.0);
} else {
tmp = 2.0 / ((k * 2.0) * (Math.sin(k) * Math.pow(((t_m / Math.cbrt(l)) / Math.cbrt(l)), 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 <= 4.4e-42) tmp = Float64(Float64(cos(k) / t_m) * (Float64(l * Float64(sqrt(2.0) / Float64(k * sin(k)))) ^ 2.0)); elseif (t_m <= 3.2e+88) tmp = Float64(2.0 / Float64(Float64(tan(k) * Float64(2.0 + (Float64(k / t_m) ^ 2.0))) * Float64(Float64(sin(k) * Float64((t_m ^ 3.0) / l)) / l))); elseif (t_m <= 1.34e+154) tmp = Float64(2.0 / Float64(Float64(sin(k) * Float64(Float64((t_m ^ 2.0) / l) * Float64(t_m / l))) * Float64(2.0 * Float64(sin(k) / cos(k))))); elseif (t_m <= 2.4e+236) tmp = Float64(Float64(l * l) / (Float64(t_m * (cbrt(k) ^ 2.0)) ^ 3.0)); else tmp = Float64(2.0 / Float64(Float64(k * 2.0) * Float64(sin(k) * (Float64(Float64(t_m / cbrt(l)) / cbrt(l)) ^ 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, 4.4e-42], N[(N[(N[Cos[k], $MachinePrecision] / t$95$m), $MachinePrecision] * N[Power[N[(l * N[(N[Sqrt[2.0], $MachinePrecision] / N[(k * N[Sin[k], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$m, 3.2e+88], N[(2.0 / N[(N[(N[Tan[k], $MachinePrecision] * N[(2.0 + N[Power[N[(k / t$95$m), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(N[(N[Sin[k], $MachinePrecision] * N[(N[Power[t$95$m, 3.0], $MachinePrecision] / l), $MachinePrecision]), $MachinePrecision] / l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$m, 1.34e+154], N[(2.0 / N[(N[(N[Sin[k], $MachinePrecision] * N[(N[(N[Power[t$95$m, 2.0], $MachinePrecision] / l), $MachinePrecision] * N[(t$95$m / l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(2.0 * N[(N[Sin[k], $MachinePrecision] / N[Cos[k], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$m, 2.4e+236], N[(N[(l * l), $MachinePrecision] / N[Power[N[(t$95$m * N[Power[N[Power[k, 1/3], $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision], 3.0], $MachinePrecision]), $MachinePrecision], N[(2.0 / N[(N[(k * 2.0), $MachinePrecision] * N[(N[Sin[k], $MachinePrecision] * N[Power[N[(N[(t$95$m / N[Power[l, 1/3], $MachinePrecision]), $MachinePrecision] / N[Power[l, 1/3], $MachinePrecision]), $MachinePrecision], 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 4.4 \cdot 10^{-42}:\\
\;\;\;\;\frac{\cos k}{t_m} \cdot {\left(\ell \cdot \frac{\sqrt{2}}{k \cdot \sin k}\right)}^{2}\\
\mathbf{elif}\;t_m \leq 3.2 \cdot 10^{+88}:\\
\;\;\;\;\frac{2}{\left(\tan k \cdot \left(2 + {\left(\frac{k}{t_m}\right)}^{2}\right)\right) \cdot \frac{\sin k \cdot \frac{{t_m}^{3}}{\ell}}{\ell}}\\
\mathbf{elif}\;t_m \leq 1.34 \cdot 10^{+154}:\\
\;\;\;\;\frac{2}{\left(\sin k \cdot \left(\frac{{t_m}^{2}}{\ell} \cdot \frac{t_m}{\ell}\right)\right) \cdot \left(2 \cdot \frac{\sin k}{\cos k}\right)}\\
\mathbf{elif}\;t_m \leq 2.4 \cdot 10^{+236}:\\
\;\;\;\;\frac{\ell \cdot \ell}{{\left(t_m \cdot {\left(\sqrt[3]{k}\right)}^{2}\right)}^{3}}\\
\mathbf{else}:\\
\;\;\;\;\frac{2}{\left(k \cdot 2\right) \cdot \left(\sin k \cdot {\left(\frac{\frac{t_m}{\sqrt[3]{\ell}}}{\sqrt[3]{\ell}}\right)}^{3}\right)}\\
\end{array}
\end{array}
if t < 4.4000000000000001e-42Initial program 49.0%
Simplified49.0%
add-sqr-sqrt38.3%
Applied egg-rr43.8%
unpow243.8%
associate-/l*43.8%
associate-*r*43.8%
*-commutative43.8%
Simplified43.8%
Taylor expanded in k around inf 39.7%
expm1-log1p-u39.4%
expm1-udef34.7%
*-commutative34.7%
unpow-prod-down34.6%
pow234.6%
add-sqr-sqrt54.2%
times-frac54.7%
Applied egg-rr54.7%
expm1-def58.1%
expm1-log1p75.1%
associate-*r/75.2%
associate-*l/75.2%
associate-/r*75.2%
*-rgt-identity75.2%
associate-*r/75.2%
associate-*l*75.2%
associate-*r/75.2%
*-commutative75.2%
*-lft-identity75.2%
Simplified75.2%
if 4.4000000000000001e-42 < t < 3.1999999999999999e88Initial program 80.2%
associate-*l*80.3%
*-commutative80.3%
*-commutative80.3%
associate-/r*85.3%
distribute-rgt-in85.3%
unpow285.3%
times-frac76.3%
sqr-neg76.3%
times-frac85.3%
unpow285.3%
distribute-rgt-in85.3%
+-commutative85.3%
Simplified85.3%
associate-*l/99.5%
Applied egg-rr99.5%
if 3.1999999999999999e88 < t < 1.34000000000000001e154Initial program 32.8%
associate-*l*32.8%
*-commutative32.8%
*-commutative32.8%
associate-/r*33.6%
distribute-rgt-in33.6%
unpow233.6%
times-frac33.6%
sqr-neg33.6%
times-frac33.6%
unpow233.6%
distribute-rgt-in33.6%
+-commutative33.6%
Simplified33.6%
associate-/r*32.8%
unpow332.8%
times-frac86.0%
pow286.0%
Applied egg-rr86.0%
Taylor expanded in t around inf 86.2%
if 1.34000000000000001e154 < t < 2.40000000000000013e236Initial program 58.7%
Simplified38.6%
Taylor expanded in k around 0 38.6%
unpow238.6%
Applied egg-rr38.6%
add-cube-cbrt38.6%
pow338.6%
*-commutative38.6%
cbrt-prod38.6%
unpow338.6%
add-cbrt-cube52.9%
unpow252.9%
cbrt-prod85.6%
pow285.6%
Applied egg-rr85.6%
if 2.40000000000000013e236 < t Initial program 70.1%
associate-*l*70.1%
*-commutative70.1%
*-commutative70.1%
associate-/r*85.6%
distribute-rgt-in85.6%
unpow285.6%
times-frac54.8%
sqr-neg54.8%
times-frac85.6%
unpow285.6%
distribute-rgt-in85.6%
+-commutative85.6%
Simplified85.6%
add-cube-cbrt85.6%
*-un-lft-identity85.6%
times-frac85.6%
pow285.6%
cbrt-div85.6%
rem-cbrt-cube85.6%
cbrt-div85.6%
rem-cbrt-cube85.6%
Applied egg-rr85.6%
Taylor expanded in k around 0 85.6%
*-commutative85.6%
Simplified85.6%
add-cube-cbrt85.6%
pow385.6%
frac-times85.6%
unpow285.6%
*-un-lft-identity85.6%
cbrt-div85.6%
add-cbrt-cube85.6%
Applied egg-rr85.6%
Final simplification79.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 4.5e-42)
(* (/ (cos k) t_m) (pow (* l (/ (sqrt 2.0) (* k (sin k)))) 2.0))
(if (<= t_m 4.2e+102)
(pow (/ l (* k (sqrt (pow t_m 3.0)))) 2.0)
(/
2.0
(* (* k 2.0) (* (sin k) (pow (/ (/ t_m (cbrt l)) (cbrt l)) 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 <= 4.5e-42) {
tmp = (cos(k) / t_m) * pow((l * (sqrt(2.0) / (k * sin(k)))), 2.0);
} else if (t_m <= 4.2e+102) {
tmp = pow((l / (k * sqrt(pow(t_m, 3.0)))), 2.0);
} else {
tmp = 2.0 / ((k * 2.0) * (sin(k) * pow(((t_m / cbrt(l)) / cbrt(l)), 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 <= 4.5e-42) {
tmp = (Math.cos(k) / t_m) * Math.pow((l * (Math.sqrt(2.0) / (k * Math.sin(k)))), 2.0);
} else if (t_m <= 4.2e+102) {
tmp = Math.pow((l / (k * Math.sqrt(Math.pow(t_m, 3.0)))), 2.0);
} else {
tmp = 2.0 / ((k * 2.0) * (Math.sin(k) * Math.pow(((t_m / Math.cbrt(l)) / Math.cbrt(l)), 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 <= 4.5e-42) tmp = Float64(Float64(cos(k) / t_m) * (Float64(l * Float64(sqrt(2.0) / Float64(k * sin(k)))) ^ 2.0)); elseif (t_m <= 4.2e+102) tmp = Float64(l / Float64(k * sqrt((t_m ^ 3.0)))) ^ 2.0; else tmp = Float64(2.0 / Float64(Float64(k * 2.0) * Float64(sin(k) * (Float64(Float64(t_m / cbrt(l)) / cbrt(l)) ^ 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, 4.5e-42], N[(N[(N[Cos[k], $MachinePrecision] / t$95$m), $MachinePrecision] * N[Power[N[(l * N[(N[Sqrt[2.0], $MachinePrecision] / N[(k * N[Sin[k], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$m, 4.2e+102], N[Power[N[(l / N[(k * N[Sqrt[N[Power[t$95$m, 3.0], $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 2.0], $MachinePrecision], N[(2.0 / N[(N[(k * 2.0), $MachinePrecision] * N[(N[Sin[k], $MachinePrecision] * N[Power[N[(N[(t$95$m / N[Power[l, 1/3], $MachinePrecision]), $MachinePrecision] / N[Power[l, 1/3], $MachinePrecision]), $MachinePrecision], 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 4.5 \cdot 10^{-42}:\\
\;\;\;\;\frac{\cos k}{t_m} \cdot {\left(\ell \cdot \frac{\sqrt{2}}{k \cdot \sin k}\right)}^{2}\\
\mathbf{elif}\;t_m \leq 4.2 \cdot 10^{+102}:\\
\;\;\;\;{\left(\frac{\ell}{k \cdot \sqrt{{t_m}^{3}}}\right)}^{2}\\
\mathbf{else}:\\
\;\;\;\;\frac{2}{\left(k \cdot 2\right) \cdot \left(\sin k \cdot {\left(\frac{\frac{t_m}{\sqrt[3]{\ell}}}{\sqrt[3]{\ell}}\right)}^{3}\right)}\\
\end{array}
\end{array}
if t < 4.5e-42Initial program 49.0%
Simplified49.0%
add-sqr-sqrt38.3%
Applied egg-rr43.8%
unpow243.8%
associate-/l*43.8%
associate-*r*43.8%
*-commutative43.8%
Simplified43.8%
Taylor expanded in k around inf 39.7%
expm1-log1p-u39.4%
expm1-udef34.7%
*-commutative34.7%
unpow-prod-down34.6%
pow234.6%
add-sqr-sqrt54.2%
times-frac54.7%
Applied egg-rr54.7%
expm1-def58.1%
expm1-log1p75.1%
associate-*r/75.2%
associate-*l/75.2%
associate-/r*75.2%
*-rgt-identity75.2%
associate-*r/75.2%
associate-*l*75.2%
associate-*r/75.2%
*-commutative75.2%
*-lft-identity75.2%
Simplified75.2%
if 4.5e-42 < t < 4.20000000000000003e102Initial program 76.5%
Simplified81.0%
add-sqr-sqrt71.5%
Applied egg-rr71.6%
unpow271.6%
associate-/l*71.8%
associate-*r*71.8%
*-commutative71.8%
Simplified71.8%
Taylor expanded in k around 0 81.6%
if 4.20000000000000003e102 < t Initial program 56.8%
associate-*l*56.8%
*-commutative56.8%
*-commutative56.8%
associate-/r*63.3%
distribute-rgt-in63.3%
unpow263.3%
times-frac42.9%
sqr-neg42.9%
times-frac63.3%
unpow263.3%
distribute-rgt-in63.3%
+-commutative63.3%
Simplified63.3%
add-cube-cbrt63.3%
*-un-lft-identity63.3%
times-frac63.3%
pow263.3%
cbrt-div63.3%
rem-cbrt-cube63.3%
cbrt-div63.3%
rem-cbrt-cube85.1%
Applied egg-rr85.1%
Taylor expanded in k around 0 80.8%
*-commutative80.8%
Simplified80.8%
add-cube-cbrt80.8%
pow380.8%
frac-times74.1%
unpow274.1%
*-un-lft-identity74.1%
cbrt-div74.1%
add-cbrt-cube80.7%
Applied egg-rr80.7%
Final simplification76.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 4.5e-42)
(* (/ (cos k) t_m) (pow (* l (/ (sqrt 2.0) (* k (sin k)))) 2.0))
(if (<= t_m 4.2e+102)
(pow (/ l (* k (sqrt (pow t_m 3.0)))) 2.0)
(/ 2.0 (* (* k 2.0) (* (sin k) (/ (pow (/ t_m (cbrt l)) 3.0) l))))))))t_m = fabs(t);
t_s = copysign(1.0, t);
double code(double t_s, double t_m, double l, double k) {
double tmp;
if (t_m <= 4.5e-42) {
tmp = (cos(k) / t_m) * pow((l * (sqrt(2.0) / (k * sin(k)))), 2.0);
} else if (t_m <= 4.2e+102) {
tmp = pow((l / (k * sqrt(pow(t_m, 3.0)))), 2.0);
} else {
tmp = 2.0 / ((k * 2.0) * (sin(k) * (pow((t_m / cbrt(l)), 3.0) / l)));
}
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 <= 4.5e-42) {
tmp = (Math.cos(k) / t_m) * Math.pow((l * (Math.sqrt(2.0) / (k * Math.sin(k)))), 2.0);
} else if (t_m <= 4.2e+102) {
tmp = Math.pow((l / (k * Math.sqrt(Math.pow(t_m, 3.0)))), 2.0);
} else {
tmp = 2.0 / ((k * 2.0) * (Math.sin(k) * (Math.pow((t_m / Math.cbrt(l)), 3.0) / l)));
}
return t_s * tmp;
}
t_m = abs(t) t_s = copysign(1.0, t) function code(t_s, t_m, l, k) tmp = 0.0 if (t_m <= 4.5e-42) tmp = Float64(Float64(cos(k) / t_m) * (Float64(l * Float64(sqrt(2.0) / Float64(k * sin(k)))) ^ 2.0)); elseif (t_m <= 4.2e+102) tmp = Float64(l / Float64(k * sqrt((t_m ^ 3.0)))) ^ 2.0; else tmp = Float64(2.0 / Float64(Float64(k * 2.0) * Float64(sin(k) * Float64((Float64(t_m / cbrt(l)) ^ 3.0) / l)))); 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, 4.5e-42], N[(N[(N[Cos[k], $MachinePrecision] / t$95$m), $MachinePrecision] * N[Power[N[(l * N[(N[Sqrt[2.0], $MachinePrecision] / N[(k * N[Sin[k], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$m, 4.2e+102], N[Power[N[(l / N[(k * N[Sqrt[N[Power[t$95$m, 3.0], $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 2.0], $MachinePrecision], N[(2.0 / N[(N[(k * 2.0), $MachinePrecision] * N[(N[Sin[k], $MachinePrecision] * N[(N[Power[N[(t$95$m / N[Power[l, 1/3], $MachinePrecision]), $MachinePrecision], 3.0], $MachinePrecision] / l), $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 4.5 \cdot 10^{-42}:\\
\;\;\;\;\frac{\cos k}{t_m} \cdot {\left(\ell \cdot \frac{\sqrt{2}}{k \cdot \sin k}\right)}^{2}\\
\mathbf{elif}\;t_m \leq 4.2 \cdot 10^{+102}:\\
\;\;\;\;{\left(\frac{\ell}{k \cdot \sqrt{{t_m}^{3}}}\right)}^{2}\\
\mathbf{else}:\\
\;\;\;\;\frac{2}{\left(k \cdot 2\right) \cdot \left(\sin k \cdot \frac{{\left(\frac{t_m}{\sqrt[3]{\ell}}\right)}^{3}}{\ell}\right)}\\
\end{array}
\end{array}
if t < 4.5e-42Initial program 49.0%
Simplified49.0%
add-sqr-sqrt38.3%
Applied egg-rr43.8%
unpow243.8%
associate-/l*43.8%
associate-*r*43.8%
*-commutative43.8%
Simplified43.8%
Taylor expanded in k around inf 39.7%
expm1-log1p-u39.4%
expm1-udef34.7%
*-commutative34.7%
unpow-prod-down34.6%
pow234.6%
add-sqr-sqrt54.2%
times-frac54.7%
Applied egg-rr54.7%
expm1-def58.1%
expm1-log1p75.1%
associate-*r/75.2%
associate-*l/75.2%
associate-/r*75.2%
*-rgt-identity75.2%
associate-*r/75.2%
associate-*l*75.2%
associate-*r/75.2%
*-commutative75.2%
*-lft-identity75.2%
Simplified75.2%
if 4.5e-42 < t < 4.20000000000000003e102Initial program 76.5%
Simplified81.0%
add-sqr-sqrt71.5%
Applied egg-rr71.6%
unpow271.6%
associate-/l*71.8%
associate-*r*71.8%
*-commutative71.8%
Simplified71.8%
Taylor expanded in k around 0 81.6%
if 4.20000000000000003e102 < t Initial program 56.8%
associate-*l*56.8%
*-commutative56.8%
*-commutative56.8%
associate-/r*63.3%
distribute-rgt-in63.3%
unpow263.3%
times-frac42.9%
sqr-neg42.9%
times-frac63.3%
unpow263.3%
distribute-rgt-in63.3%
+-commutative63.3%
Simplified63.3%
add-cube-cbrt63.3%
*-un-lft-identity63.3%
times-frac63.3%
pow263.3%
cbrt-div63.3%
rem-cbrt-cube63.3%
cbrt-div63.3%
rem-cbrt-cube85.1%
Applied egg-rr85.1%
Taylor expanded in k around 0 80.8%
*-commutative80.8%
Simplified80.8%
expm1-log1p-u80.3%
expm1-udef80.3%
frac-times73.9%
pow-plus73.9%
metadata-eval73.9%
*-un-lft-identity73.9%
Applied egg-rr73.9%
expm1-def73.9%
expm1-log1p74.2%
Simplified74.2%
Final simplification75.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 3.5e-51)
(pow (* (sqrt (/ 1.0 t_m)) (/ l (/ (pow k 2.0) (sqrt 2.0)))) 2.0)
(if (<= t_m 1.15e+102)
(pow (/ l (* k (sqrt (pow t_m 3.0)))) 2.0)
(/ 2.0 (* (* k 2.0) (* (sin k) (/ (pow (/ t_m (cbrt l)) 3.0) l))))))))t_m = fabs(t);
t_s = copysign(1.0, t);
double code(double t_s, double t_m, double l, double k) {
double tmp;
if (t_m <= 3.5e-51) {
tmp = pow((sqrt((1.0 / t_m)) * (l / (pow(k, 2.0) / sqrt(2.0)))), 2.0);
} else if (t_m <= 1.15e+102) {
tmp = pow((l / (k * sqrt(pow(t_m, 3.0)))), 2.0);
} else {
tmp = 2.0 / ((k * 2.0) * (sin(k) * (pow((t_m / cbrt(l)), 3.0) / l)));
}
return t_s * tmp;
}
t_m = Math.abs(t);
t_s = Math.copySign(1.0, t);
public static double code(double t_s, double t_m, double l, double k) {
double tmp;
if (t_m <= 3.5e-51) {
tmp = Math.pow((Math.sqrt((1.0 / t_m)) * (l / (Math.pow(k, 2.0) / Math.sqrt(2.0)))), 2.0);
} else if (t_m <= 1.15e+102) {
tmp = Math.pow((l / (k * Math.sqrt(Math.pow(t_m, 3.0)))), 2.0);
} else {
tmp = 2.0 / ((k * 2.0) * (Math.sin(k) * (Math.pow((t_m / Math.cbrt(l)), 3.0) / l)));
}
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.5e-51) tmp = Float64(sqrt(Float64(1.0 / t_m)) * Float64(l / Float64((k ^ 2.0) / sqrt(2.0)))) ^ 2.0; elseif (t_m <= 1.15e+102) tmp = Float64(l / Float64(k * sqrt((t_m ^ 3.0)))) ^ 2.0; else tmp = Float64(2.0 / Float64(Float64(k * 2.0) * Float64(sin(k) * Float64((Float64(t_m / cbrt(l)) ^ 3.0) / l)))); end return Float64(t_s * tmp) end
t_m = N[Abs[t], $MachinePrecision]
t_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[t]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
code[t$95$s_, t$95$m_, l_, k_] := N[(t$95$s * If[LessEqual[t$95$m, 3.5e-51], N[Power[N[(N[Sqrt[N[(1.0 / t$95$m), $MachinePrecision]], $MachinePrecision] * N[(l / N[(N[Power[k, 2.0], $MachinePrecision] / N[Sqrt[2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 2.0], $MachinePrecision], If[LessEqual[t$95$m, 1.15e+102], N[Power[N[(l / N[(k * N[Sqrt[N[Power[t$95$m, 3.0], $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 2.0], $MachinePrecision], N[(2.0 / N[(N[(k * 2.0), $MachinePrecision] * N[(N[Sin[k], $MachinePrecision] * N[(N[Power[N[(t$95$m / N[Power[l, 1/3], $MachinePrecision]), $MachinePrecision], 3.0], $MachinePrecision] / l), $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.5 \cdot 10^{-51}:\\
\;\;\;\;{\left(\sqrt{\frac{1}{t_m}} \cdot \frac{\ell}{\frac{{k}^{2}}{\sqrt{2}}}\right)}^{2}\\
\mathbf{elif}\;t_m \leq 1.15 \cdot 10^{+102}:\\
\;\;\;\;{\left(\frac{\ell}{k \cdot \sqrt{{t_m}^{3}}}\right)}^{2}\\
\mathbf{else}:\\
\;\;\;\;\frac{2}{\left(k \cdot 2\right) \cdot \left(\sin k \cdot \frac{{\left(\frac{t_m}{\sqrt[3]{\ell}}\right)}^{3}}{\ell}\right)}\\
\end{array}
\end{array}
if t < 3.4999999999999997e-51Initial program 48.5%
Simplified48.4%
add-sqr-sqrt37.7%
Applied egg-rr43.2%
unpow243.2%
associate-/l*43.2%
associate-*r*43.2%
*-commutative43.2%
Simplified43.2%
Taylor expanded in k around inf 39.1%
Taylor expanded in k around 0 22.7%
associate-/l*22.7%
Simplified22.7%
if 3.4999999999999997e-51 < t < 1.1499999999999999e102Initial program 78.6%
Simplified82.7%
add-sqr-sqrt74.0%
Applied egg-rr74.1%
unpow274.1%
associate-/l*74.2%
associate-*r*74.2%
*-commutative74.2%
Simplified74.2%
Taylor expanded in k around 0 83.2%
if 1.1499999999999999e102 < t Initial program 56.8%
associate-*l*56.8%
*-commutative56.8%
*-commutative56.8%
associate-/r*63.3%
distribute-rgt-in63.3%
unpow263.3%
times-frac42.9%
sqr-neg42.9%
times-frac63.3%
unpow263.3%
distribute-rgt-in63.3%
+-commutative63.3%
Simplified63.3%
add-cube-cbrt63.3%
*-un-lft-identity63.3%
times-frac63.3%
pow263.3%
cbrt-div63.3%
rem-cbrt-cube63.3%
cbrt-div63.3%
rem-cbrt-cube85.1%
Applied egg-rr85.1%
Taylor expanded in k around 0 80.8%
*-commutative80.8%
Simplified80.8%
expm1-log1p-u80.3%
expm1-udef80.3%
frac-times73.9%
pow-plus73.9%
metadata-eval73.9%
*-un-lft-identity73.9%
Applied egg-rr73.9%
expm1-def73.9%
expm1-log1p74.2%
Simplified74.2%
Final simplification37.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.2e-51)
(pow (* (/ (* l (sqrt 2.0)) (pow k 2.0)) (sqrt (/ 1.0 t_m))) 2.0)
(if (<= t_m 4.2e+102)
(pow (/ l (* k (sqrt (pow t_m 3.0)))) 2.0)
(/ 2.0 (* (* k 2.0) (* (sin k) (/ (pow (/ t_m (cbrt l)) 3.0) l))))))))t_m = fabs(t);
t_s = copysign(1.0, t);
double code(double t_s, double t_m, double l, double k) {
double tmp;
if (t_m <= 2.2e-51) {
tmp = pow((((l * sqrt(2.0)) / pow(k, 2.0)) * sqrt((1.0 / t_m))), 2.0);
} else if (t_m <= 4.2e+102) {
tmp = pow((l / (k * sqrt(pow(t_m, 3.0)))), 2.0);
} else {
tmp = 2.0 / ((k * 2.0) * (sin(k) * (pow((t_m / cbrt(l)), 3.0) / l)));
}
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.2e-51) {
tmp = Math.pow((((l * Math.sqrt(2.0)) / Math.pow(k, 2.0)) * Math.sqrt((1.0 / t_m))), 2.0);
} else if (t_m <= 4.2e+102) {
tmp = Math.pow((l / (k * Math.sqrt(Math.pow(t_m, 3.0)))), 2.0);
} else {
tmp = 2.0 / ((k * 2.0) * (Math.sin(k) * (Math.pow((t_m / Math.cbrt(l)), 3.0) / l)));
}
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-51) tmp = Float64(Float64(Float64(l * sqrt(2.0)) / (k ^ 2.0)) * sqrt(Float64(1.0 / t_m))) ^ 2.0; elseif (t_m <= 4.2e+102) tmp = Float64(l / Float64(k * sqrt((t_m ^ 3.0)))) ^ 2.0; else tmp = Float64(2.0 / Float64(Float64(k * 2.0) * Float64(sin(k) * Float64((Float64(t_m / cbrt(l)) ^ 3.0) / l)))); 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.2e-51], N[Power[N[(N[(N[(l * N[Sqrt[2.0], $MachinePrecision]), $MachinePrecision] / N[Power[k, 2.0], $MachinePrecision]), $MachinePrecision] * N[Sqrt[N[(1.0 / t$95$m), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], 2.0], $MachinePrecision], If[LessEqual[t$95$m, 4.2e+102], N[Power[N[(l / N[(k * N[Sqrt[N[Power[t$95$m, 3.0], $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 2.0], $MachinePrecision], N[(2.0 / N[(N[(k * 2.0), $MachinePrecision] * N[(N[Sin[k], $MachinePrecision] * N[(N[Power[N[(t$95$m / N[Power[l, 1/3], $MachinePrecision]), $MachinePrecision], 3.0], $MachinePrecision] / l), $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 2.2 \cdot 10^{-51}:\\
\;\;\;\;{\left(\frac{\ell \cdot \sqrt{2}}{{k}^{2}} \cdot \sqrt{\frac{1}{t_m}}\right)}^{2}\\
\mathbf{elif}\;t_m \leq 4.2 \cdot 10^{+102}:\\
\;\;\;\;{\left(\frac{\ell}{k \cdot \sqrt{{t_m}^{3}}}\right)}^{2}\\
\mathbf{else}:\\
\;\;\;\;\frac{2}{\left(k \cdot 2\right) \cdot \left(\sin k \cdot \frac{{\left(\frac{t_m}{\sqrt[3]{\ell}}\right)}^{3}}{\ell}\right)}\\
\end{array}
\end{array}
if t < 2.2e-51Initial program 48.5%
Simplified48.4%
add-sqr-sqrt37.7%
Applied egg-rr43.2%
unpow243.2%
associate-/l*43.2%
associate-*r*43.2%
*-commutative43.2%
Simplified43.2%
Taylor expanded in k around inf 39.1%
Taylor expanded in k around 0 22.7%
if 2.2e-51 < t < 4.20000000000000003e102Initial program 78.6%
Simplified82.7%
add-sqr-sqrt74.0%
Applied egg-rr74.1%
unpow274.1%
associate-/l*74.2%
associate-*r*74.2%
*-commutative74.2%
Simplified74.2%
Taylor expanded in k around 0 83.2%
if 4.20000000000000003e102 < t Initial program 56.8%
associate-*l*56.8%
*-commutative56.8%
*-commutative56.8%
associate-/r*63.3%
distribute-rgt-in63.3%
unpow263.3%
times-frac42.9%
sqr-neg42.9%
times-frac63.3%
unpow263.3%
distribute-rgt-in63.3%
+-commutative63.3%
Simplified63.3%
add-cube-cbrt63.3%
*-un-lft-identity63.3%
times-frac63.3%
pow263.3%
cbrt-div63.3%
rem-cbrt-cube63.3%
cbrt-div63.3%
rem-cbrt-cube85.1%
Applied egg-rr85.1%
Taylor expanded in k around 0 80.8%
*-commutative80.8%
Simplified80.8%
expm1-log1p-u80.3%
expm1-udef80.3%
frac-times73.9%
pow-plus73.9%
metadata-eval73.9%
*-un-lft-identity73.9%
Applied egg-rr73.9%
expm1-def73.9%
expm1-log1p74.2%
Simplified74.2%
Final simplification37.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.25e-51)
(pow (* (/ l (pow k 2.0)) (/ (sqrt 2.0) (sqrt t_m))) 2.0)
(if (<= t_m 4.2e+102)
(pow (/ l (* k (sqrt (pow t_m 3.0)))) 2.0)
(/ 2.0 (* (* k 2.0) (* (sin k) (/ (pow (/ t_m (cbrt l)) 3.0) l))))))))t_m = fabs(t);
t_s = copysign(1.0, t);
double code(double t_s, double t_m, double l, double k) {
double tmp;
if (t_m <= 2.25e-51) {
tmp = pow(((l / pow(k, 2.0)) * (sqrt(2.0) / sqrt(t_m))), 2.0);
} else if (t_m <= 4.2e+102) {
tmp = pow((l / (k * sqrt(pow(t_m, 3.0)))), 2.0);
} else {
tmp = 2.0 / ((k * 2.0) * (sin(k) * (pow((t_m / cbrt(l)), 3.0) / l)));
}
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.25e-51) {
tmp = Math.pow(((l / Math.pow(k, 2.0)) * (Math.sqrt(2.0) / Math.sqrt(t_m))), 2.0);
} else if (t_m <= 4.2e+102) {
tmp = Math.pow((l / (k * Math.sqrt(Math.pow(t_m, 3.0)))), 2.0);
} else {
tmp = 2.0 / ((k * 2.0) * (Math.sin(k) * (Math.pow((t_m / Math.cbrt(l)), 3.0) / l)));
}
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.25e-51) tmp = Float64(Float64(l / (k ^ 2.0)) * Float64(sqrt(2.0) / sqrt(t_m))) ^ 2.0; elseif (t_m <= 4.2e+102) tmp = Float64(l / Float64(k * sqrt((t_m ^ 3.0)))) ^ 2.0; else tmp = Float64(2.0 / Float64(Float64(k * 2.0) * Float64(sin(k) * Float64((Float64(t_m / cbrt(l)) ^ 3.0) / l)))); 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.25e-51], N[Power[N[(N[(l / N[Power[k, 2.0], $MachinePrecision]), $MachinePrecision] * N[(N[Sqrt[2.0], $MachinePrecision] / N[Sqrt[t$95$m], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 2.0], $MachinePrecision], If[LessEqual[t$95$m, 4.2e+102], N[Power[N[(l / N[(k * N[Sqrt[N[Power[t$95$m, 3.0], $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 2.0], $MachinePrecision], N[(2.0 / N[(N[(k * 2.0), $MachinePrecision] * N[(N[Sin[k], $MachinePrecision] * N[(N[Power[N[(t$95$m / N[Power[l, 1/3], $MachinePrecision]), $MachinePrecision], 3.0], $MachinePrecision] / l), $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 2.25 \cdot 10^{-51}:\\
\;\;\;\;{\left(\frac{\ell}{{k}^{2}} \cdot \frac{\sqrt{2}}{\sqrt{t_m}}\right)}^{2}\\
\mathbf{elif}\;t_m \leq 4.2 \cdot 10^{+102}:\\
\;\;\;\;{\left(\frac{\ell}{k \cdot \sqrt{{t_m}^{3}}}\right)}^{2}\\
\mathbf{else}:\\
\;\;\;\;\frac{2}{\left(k \cdot 2\right) \cdot \left(\sin k \cdot \frac{{\left(\frac{t_m}{\sqrt[3]{\ell}}\right)}^{3}}{\ell}\right)}\\
\end{array}
\end{array}
if t < 2.24999999999999987e-51Initial program 48.5%
Simplified48.4%
add-sqr-sqrt37.7%
Applied egg-rr43.2%
unpow243.2%
associate-/l*43.2%
associate-*r*43.2%
*-commutative43.2%
Simplified43.2%
Taylor expanded in k around 0 39.8%
Taylor expanded in k around inf 22.3%
expm1-log1p-u14.4%
expm1-udef14.2%
Applied egg-rr14.2%
expm1-def14.4%
expm1-log1p22.3%
associate-/r/22.3%
associate-/r/22.6%
Simplified22.6%
if 2.24999999999999987e-51 < t < 4.20000000000000003e102Initial program 78.6%
Simplified82.7%
add-sqr-sqrt74.0%
Applied egg-rr74.1%
unpow274.1%
associate-/l*74.2%
associate-*r*74.2%
*-commutative74.2%
Simplified74.2%
Taylor expanded in k around 0 83.2%
if 4.20000000000000003e102 < t Initial program 56.8%
associate-*l*56.8%
*-commutative56.8%
*-commutative56.8%
associate-/r*63.3%
distribute-rgt-in63.3%
unpow263.3%
times-frac42.9%
sqr-neg42.9%
times-frac63.3%
unpow263.3%
distribute-rgt-in63.3%
+-commutative63.3%
Simplified63.3%
add-cube-cbrt63.3%
*-un-lft-identity63.3%
times-frac63.3%
pow263.3%
cbrt-div63.3%
rem-cbrt-cube63.3%
cbrt-div63.3%
rem-cbrt-cube85.1%
Applied egg-rr85.1%
Taylor expanded in k around 0 80.8%
*-commutative80.8%
Simplified80.8%
expm1-log1p-u80.3%
expm1-udef80.3%
frac-times73.9%
pow-plus73.9%
metadata-eval73.9%
*-un-lft-identity73.9%
Applied egg-rr73.9%
expm1-def73.9%
expm1-log1p74.2%
Simplified74.2%
Final simplification36.9%
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.7e-247)
(pow (* (/ l k) (sqrt (/ 1.0 (pow t_m 3.0)))) 2.0)
(if (<= k 2.2e+97)
(/ 2.0 (* (* k 2.0) (* (sin k) (/ (pow (/ t_m (cbrt l)) 3.0) l))))
(pow (/ (cbrt (* l (* l (pow k -2.0)))) 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 (k <= 2.7e-247) {
tmp = pow(((l / k) * sqrt((1.0 / pow(t_m, 3.0)))), 2.0);
} else if (k <= 2.2e+97) {
tmp = 2.0 / ((k * 2.0) * (sin(k) * (pow((t_m / cbrt(l)), 3.0) / l)));
} else {
tmp = pow((cbrt((l * (l * pow(k, -2.0)))) / t_m), 3.0);
}
return t_s * tmp;
}
t_m = Math.abs(t);
t_s = Math.copySign(1.0, t);
public static double code(double t_s, double t_m, double l, double k) {
double tmp;
if (k <= 2.7e-247) {
tmp = Math.pow(((l / k) * Math.sqrt((1.0 / Math.pow(t_m, 3.0)))), 2.0);
} else if (k <= 2.2e+97) {
tmp = 2.0 / ((k * 2.0) * (Math.sin(k) * (Math.pow((t_m / Math.cbrt(l)), 3.0) / l)));
} else {
tmp = Math.pow((Math.cbrt((l * (l * Math.pow(k, -2.0)))) / 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 (k <= 2.7e-247) tmp = Float64(Float64(l / k) * sqrt(Float64(1.0 / (t_m ^ 3.0)))) ^ 2.0; elseif (k <= 2.2e+97) tmp = Float64(2.0 / Float64(Float64(k * 2.0) * Float64(sin(k) * Float64((Float64(t_m / cbrt(l)) ^ 3.0) / l)))); else tmp = Float64(cbrt(Float64(l * Float64(l * (k ^ -2.0)))) / t_m) ^ 3.0; end return Float64(t_s * tmp) end
t_m = N[Abs[t], $MachinePrecision]
t_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[t]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
code[t$95$s_, t$95$m_, l_, k_] := N[(t$95$s * If[LessEqual[k, 2.7e-247], 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], If[LessEqual[k, 2.2e+97], N[(2.0 / N[(N[(k * 2.0), $MachinePrecision] * N[(N[Sin[k], $MachinePrecision] * N[(N[Power[N[(t$95$m / N[Power[l, 1/3], $MachinePrecision]), $MachinePrecision], 3.0], $MachinePrecision] / l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[Power[N[(N[Power[N[(l * N[(l * N[Power[k, -2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1/3], $MachinePrecision] / t$95$m), $MachinePrecision], 3.0], $MachinePrecision]]]), $MachinePrecision]
\begin{array}{l}
t_m = \left|t\right|
\\
t_s = \mathsf{copysign}\left(1, t\right)
\\
t_s \cdot \begin{array}{l}
\mathbf{if}\;k \leq 2.7 \cdot 10^{-247}:\\
\;\;\;\;{\left(\frac{\ell}{k} \cdot \sqrt{\frac{1}{{t_m}^{3}}}\right)}^{2}\\
\mathbf{elif}\;k \leq 2.2 \cdot 10^{+97}:\\
\;\;\;\;\frac{2}{\left(k \cdot 2\right) \cdot \left(\sin k \cdot \frac{{\left(\frac{t_m}{\sqrt[3]{\ell}}\right)}^{3}}{\ell}\right)}\\
\mathbf{else}:\\
\;\;\;\;{\left(\frac{\sqrt[3]{\ell \cdot \left(\ell \cdot {k}^{-2}\right)}}{t_m}\right)}^{3}\\
\end{array}
\end{array}
if k < 2.70000000000000008e-247Initial program 53.8%
Simplified53.1%
add-sqr-sqrt46.5%
Applied egg-rr52.9%
unpow252.9%
associate-/l*53.0%
associate-*r*53.0%
*-commutative53.0%
Simplified53.0%
Taylor expanded in k around 0 48.9%
if 2.70000000000000008e-247 < k < 2.2000000000000001e97Initial program 50.3%
associate-*l*50.3%
*-commutative50.3%
*-commutative50.3%
associate-/r*57.8%
distribute-rgt-in57.8%
unpow257.8%
times-frac51.9%
sqr-neg51.9%
times-frac57.8%
unpow257.8%
distribute-rgt-in57.8%
+-commutative57.8%
Simplified57.8%
add-cube-cbrt57.6%
*-un-lft-identity57.6%
times-frac57.6%
pow257.6%
cbrt-div57.5%
rem-cbrt-cube57.6%
cbrt-div57.5%
rem-cbrt-cube68.6%
Applied egg-rr68.6%
Taylor expanded in k around 0 71.2%
*-commutative71.2%
Simplified71.2%
expm1-log1p-u50.7%
expm1-udef34.4%
frac-times34.4%
pow-plus34.4%
metadata-eval34.4%
*-un-lft-identity34.4%
Applied egg-rr34.4%
expm1-def50.7%
expm1-log1p71.2%
Simplified71.2%
if 2.2000000000000001e97 < k Initial program 52.5%
Simplified52.5%
Taylor expanded in k around 0 50.8%
unpow250.8%
Applied egg-rr50.8%
times-frac55.4%
Applied egg-rr55.4%
add-cube-cbrt55.4%
pow355.4%
associate-*r/55.6%
cbrt-div55.6%
div-inv55.6%
pow-flip55.6%
metadata-eval55.6%
unpow355.6%
add-cbrt-cube70.2%
Applied egg-rr70.2%
Final simplification58.6%
t_m = (fabs.f64 t)
t_s = (copysign.f64 1 t)
(FPCore (t_s t_m l k)
:precision binary64
(*
t_s
(if (<= k 7.5e-247)
(pow (* (/ l k) (sqrt (/ 1.0 (pow t_m 3.0)))) 2.0)
(if (<= k 8.2e+96)
(/ 2.0 (* (* k 2.0) (* (sin k) (* (/ (pow t_m 2.0) l) (/ t_m l)))))
(pow (/ (cbrt (* l (* l (pow k -2.0)))) 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 (k <= 7.5e-247) {
tmp = pow(((l / k) * sqrt((1.0 / pow(t_m, 3.0)))), 2.0);
} else if (k <= 8.2e+96) {
tmp = 2.0 / ((k * 2.0) * (sin(k) * ((pow(t_m, 2.0) / l) * (t_m / l))));
} else {
tmp = pow((cbrt((l * (l * pow(k, -2.0)))) / t_m), 3.0);
}
return t_s * tmp;
}
t_m = Math.abs(t);
t_s = Math.copySign(1.0, t);
public static double code(double t_s, double t_m, double l, double k) {
double tmp;
if (k <= 7.5e-247) {
tmp = Math.pow(((l / k) * Math.sqrt((1.0 / Math.pow(t_m, 3.0)))), 2.0);
} else if (k <= 8.2e+96) {
tmp = 2.0 / ((k * 2.0) * (Math.sin(k) * ((Math.pow(t_m, 2.0) / l) * (t_m / l))));
} else {
tmp = Math.pow((Math.cbrt((l * (l * Math.pow(k, -2.0)))) / 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 (k <= 7.5e-247) tmp = Float64(Float64(l / k) * sqrt(Float64(1.0 / (t_m ^ 3.0)))) ^ 2.0; elseif (k <= 8.2e+96) tmp = Float64(2.0 / Float64(Float64(k * 2.0) * Float64(sin(k) * Float64(Float64((t_m ^ 2.0) / l) * Float64(t_m / l))))); else tmp = Float64(cbrt(Float64(l * Float64(l * (k ^ -2.0)))) / t_m) ^ 3.0; end return Float64(t_s * tmp) end
t_m = N[Abs[t], $MachinePrecision]
t_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[t]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
code[t$95$s_, t$95$m_, l_, k_] := N[(t$95$s * If[LessEqual[k, 7.5e-247], 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], If[LessEqual[k, 8.2e+96], N[(2.0 / N[(N[(k * 2.0), $MachinePrecision] * N[(N[Sin[k], $MachinePrecision] * N[(N[(N[Power[t$95$m, 2.0], $MachinePrecision] / l), $MachinePrecision] * N[(t$95$m / l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[Power[N[(N[Power[N[(l * N[(l * N[Power[k, -2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1/3], $MachinePrecision] / t$95$m), $MachinePrecision], 3.0], $MachinePrecision]]]), $MachinePrecision]
\begin{array}{l}
t_m = \left|t\right|
\\
t_s = \mathsf{copysign}\left(1, t\right)
\\
t_s \cdot \begin{array}{l}
\mathbf{if}\;k \leq 7.5 \cdot 10^{-247}:\\
\;\;\;\;{\left(\frac{\ell}{k} \cdot \sqrt{\frac{1}{{t_m}^{3}}}\right)}^{2}\\
\mathbf{elif}\;k \leq 8.2 \cdot 10^{+96}:\\
\;\;\;\;\frac{2}{\left(k \cdot 2\right) \cdot \left(\sin k \cdot \left(\frac{{t_m}^{2}}{\ell} \cdot \frac{t_m}{\ell}\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;{\left(\frac{\sqrt[3]{\ell \cdot \left(\ell \cdot {k}^{-2}\right)}}{t_m}\right)}^{3}\\
\end{array}
\end{array}
if k < 7.5e-247Initial program 53.8%
Simplified53.1%
add-sqr-sqrt46.5%
Applied egg-rr52.9%
unpow252.9%
associate-/l*53.0%
associate-*r*53.0%
*-commutative53.0%
Simplified53.0%
Taylor expanded in k around 0 48.9%
if 7.5e-247 < k < 8.19999999999999996e96Initial program 50.3%
associate-*l*50.3%
*-commutative50.3%
*-commutative50.3%
associate-/r*57.8%
distribute-rgt-in57.8%
unpow257.8%
times-frac51.9%
sqr-neg51.9%
times-frac57.8%
unpow257.8%
distribute-rgt-in57.8%
+-commutative57.8%
Simplified57.8%
associate-/r*50.3%
unpow350.3%
times-frac67.0%
pow267.0%
Applied egg-rr67.0%
Taylor expanded in k around 0 71.4%
*-commutative71.2%
Simplified71.4%
if 8.19999999999999996e96 < k Initial program 52.5%
Simplified52.5%
Taylor expanded in k around 0 50.8%
unpow250.8%
Applied egg-rr50.8%
times-frac55.4%
Applied egg-rr55.4%
add-cube-cbrt55.4%
pow355.4%
associate-*r/55.6%
cbrt-div55.6%
div-inv55.6%
pow-flip55.6%
metadata-eval55.6%
unpow355.6%
add-cbrt-cube70.2%
Applied egg-rr70.2%
Final simplification58.6%
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.7e-230)
(/ (* l l) (pow (* t_m (pow (cbrt k) 2.0)) 3.0))
(if (<= k 1.7e+128)
(/ 2.0 (* (* k 2.0) (* (sin k) (* (/ (pow t_m 2.0) l) (/ t_m l)))))
(* (/ (pow l 2.0) (pow k 4.0)) (/ 2.0 t_m))))))t_m = fabs(t);
t_s = copysign(1.0, t);
double code(double t_s, double t_m, double l, double k) {
double tmp;
if (k <= 2.7e-230) {
tmp = (l * l) / pow((t_m * pow(cbrt(k), 2.0)), 3.0);
} else if (k <= 1.7e+128) {
tmp = 2.0 / ((k * 2.0) * (sin(k) * ((pow(t_m, 2.0) / l) * (t_m / l))));
} else {
tmp = (pow(l, 2.0) / pow(k, 4.0)) * (2.0 / t_m);
}
return t_s * tmp;
}
t_m = Math.abs(t);
t_s = Math.copySign(1.0, t);
public static double code(double t_s, double t_m, double l, double k) {
double tmp;
if (k <= 2.7e-230) {
tmp = (l * l) / Math.pow((t_m * Math.pow(Math.cbrt(k), 2.0)), 3.0);
} else if (k <= 1.7e+128) {
tmp = 2.0 / ((k * 2.0) * (Math.sin(k) * ((Math.pow(t_m, 2.0) / l) * (t_m / l))));
} else {
tmp = (Math.pow(l, 2.0) / Math.pow(k, 4.0)) * (2.0 / t_m);
}
return t_s * tmp;
}
t_m = abs(t) t_s = copysign(1.0, t) function code(t_s, t_m, l, k) tmp = 0.0 if (k <= 2.7e-230) tmp = Float64(Float64(l * l) / (Float64(t_m * (cbrt(k) ^ 2.0)) ^ 3.0)); elseif (k <= 1.7e+128) tmp = Float64(2.0 / Float64(Float64(k * 2.0) * Float64(sin(k) * Float64(Float64((t_m ^ 2.0) / l) * Float64(t_m / l))))); else tmp = Float64(Float64((l ^ 2.0) / (k ^ 4.0)) * Float64(2.0 / t_m)); end return Float64(t_s * tmp) end
t_m = N[Abs[t], $MachinePrecision]
t_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[t]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
code[t$95$s_, t$95$m_, l_, k_] := N[(t$95$s * If[LessEqual[k, 2.7e-230], N[(N[(l * l), $MachinePrecision] / N[Power[N[(t$95$m * N[Power[N[Power[k, 1/3], $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision], 3.0], $MachinePrecision]), $MachinePrecision], If[LessEqual[k, 1.7e+128], N[(2.0 / N[(N[(k * 2.0), $MachinePrecision] * N[(N[Sin[k], $MachinePrecision] * N[(N[(N[Power[t$95$m, 2.0], $MachinePrecision] / l), $MachinePrecision] * N[(t$95$m / l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[Power[l, 2.0], $MachinePrecision] / N[Power[k, 4.0], $MachinePrecision]), $MachinePrecision] * N[(2.0 / t$95$m), $MachinePrecision]), $MachinePrecision]]]), $MachinePrecision]
\begin{array}{l}
t_m = \left|t\right|
\\
t_s = \mathsf{copysign}\left(1, t\right)
\\
t_s \cdot \begin{array}{l}
\mathbf{if}\;k \leq 2.7 \cdot 10^{-230}:\\
\;\;\;\;\frac{\ell \cdot \ell}{{\left(t_m \cdot {\left(\sqrt[3]{k}\right)}^{2}\right)}^{3}}\\
\mathbf{elif}\;k \leq 1.7 \cdot 10^{+128}:\\
\;\;\;\;\frac{2}{\left(k \cdot 2\right) \cdot \left(\sin k \cdot \left(\frac{{t_m}^{2}}{\ell} \cdot \frac{t_m}{\ell}\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{{\ell}^{2}}{{k}^{4}} \cdot \frac{2}{t_m}\\
\end{array}
\end{array}
if k < 2.70000000000000011e-230Initial program 54.4%
Simplified46.6%
Taylor expanded in k around 0 46.8%
unpow246.8%
Applied egg-rr46.8%
add-cube-cbrt46.8%
pow346.8%
*-commutative46.8%
cbrt-prod46.8%
unpow346.8%
add-cbrt-cube55.3%
unpow255.3%
cbrt-prod62.2%
pow262.2%
Applied egg-rr62.2%
if 2.70000000000000011e-230 < k < 1.6999999999999999e128Initial program 48.9%
associate-*l*48.9%
*-commutative48.9%
*-commutative48.9%
associate-/r*56.2%
distribute-rgt-in56.2%
unpow256.2%
times-frac50.5%
sqr-neg50.5%
times-frac56.2%
unpow256.2%
distribute-rgt-in56.2%
+-commutative56.2%
Simplified56.2%
associate-/r*48.9%
unpow349.0%
times-frac66.5%
pow266.5%
Applied egg-rr66.5%
Taylor expanded in k around 0 69.5%
*-commutative69.3%
Simplified69.5%
if 1.6999999999999999e128 < k Initial program 52.6%
Simplified52.6%
add-sqr-sqrt52.6%
Applied egg-rr38.0%
unpow238.0%
associate-/l*38.0%
associate-*r*38.0%
*-commutative38.0%
Simplified38.0%
Taylor expanded in k around inf 47.3%
Taylor expanded in k around 0 69.0%
times-frac69.0%
unpow269.0%
rem-square-sqrt69.0%
Simplified69.0%
Final simplification65.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.05e-247)
(pow (* (/ l k) (sqrt (/ 1.0 (pow t_m 3.0)))) 2.0)
(if (<= k 6.5e+125)
(/ 2.0 (* (* k 2.0) (* (sin k) (* (/ (pow t_m 2.0) l) (/ t_m l)))))
(* (/ (pow l 2.0) (pow k 4.0)) (/ 2.0 t_m))))))t_m = fabs(t);
t_s = copysign(1.0, t);
double code(double t_s, double t_m, double l, double k) {
double tmp;
if (k <= 2.05e-247) {
tmp = pow(((l / k) * sqrt((1.0 / pow(t_m, 3.0)))), 2.0);
} else if (k <= 6.5e+125) {
tmp = 2.0 / ((k * 2.0) * (sin(k) * ((pow(t_m, 2.0) / l) * (t_m / l))));
} else {
tmp = (pow(l, 2.0) / pow(k, 4.0)) * (2.0 / t_m);
}
return t_s * tmp;
}
t_m = abs(t)
t_s = copysign(1.0d0, t)
real(8) function code(t_s, t_m, l, k)
real(8), intent (in) :: t_s
real(8), intent (in) :: t_m
real(8), intent (in) :: l
real(8), intent (in) :: k
real(8) :: tmp
if (k <= 2.05d-247) then
tmp = ((l / k) * sqrt((1.0d0 / (t_m ** 3.0d0)))) ** 2.0d0
else if (k <= 6.5d+125) then
tmp = 2.0d0 / ((k * 2.0d0) * (sin(k) * (((t_m ** 2.0d0) / l) * (t_m / l))))
else
tmp = ((l ** 2.0d0) / (k ** 4.0d0)) * (2.0d0 / t_m)
end if
code = t_s * tmp
end function
t_m = Math.abs(t);
t_s = Math.copySign(1.0, t);
public static double code(double t_s, double t_m, double l, double k) {
double tmp;
if (k <= 2.05e-247) {
tmp = Math.pow(((l / k) * Math.sqrt((1.0 / Math.pow(t_m, 3.0)))), 2.0);
} else if (k <= 6.5e+125) {
tmp = 2.0 / ((k * 2.0) * (Math.sin(k) * ((Math.pow(t_m, 2.0) / l) * (t_m / l))));
} else {
tmp = (Math.pow(l, 2.0) / Math.pow(k, 4.0)) * (2.0 / t_m);
}
return t_s * tmp;
}
t_m = math.fabs(t) t_s = math.copysign(1.0, t) def code(t_s, t_m, l, k): tmp = 0 if k <= 2.05e-247: tmp = math.pow(((l / k) * math.sqrt((1.0 / math.pow(t_m, 3.0)))), 2.0) elif k <= 6.5e+125: tmp = 2.0 / ((k * 2.0) * (math.sin(k) * ((math.pow(t_m, 2.0) / l) * (t_m / l)))) else: tmp = (math.pow(l, 2.0) / math.pow(k, 4.0)) * (2.0 / t_m) return t_s * tmp
t_m = abs(t) t_s = copysign(1.0, t) function code(t_s, t_m, l, k) tmp = 0.0 if (k <= 2.05e-247) tmp = Float64(Float64(l / k) * sqrt(Float64(1.0 / (t_m ^ 3.0)))) ^ 2.0; elseif (k <= 6.5e+125) tmp = Float64(2.0 / Float64(Float64(k * 2.0) * Float64(sin(k) * Float64(Float64((t_m ^ 2.0) / l) * Float64(t_m / l))))); else tmp = Float64(Float64((l ^ 2.0) / (k ^ 4.0)) * Float64(2.0 / t_m)); end return Float64(t_s * tmp) end
t_m = abs(t); t_s = sign(t) * abs(1.0); function tmp_2 = code(t_s, t_m, l, k) tmp = 0.0; if (k <= 2.05e-247) tmp = ((l / k) * sqrt((1.0 / (t_m ^ 3.0)))) ^ 2.0; elseif (k <= 6.5e+125) tmp = 2.0 / ((k * 2.0) * (sin(k) * (((t_m ^ 2.0) / l) * (t_m / l)))); else tmp = ((l ^ 2.0) / (k ^ 4.0)) * (2.0 / t_m); end tmp_2 = t_s * tmp; end
t_m = N[Abs[t], $MachinePrecision]
t_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[t]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
code[t$95$s_, t$95$m_, l_, k_] := N[(t$95$s * If[LessEqual[k, 2.05e-247], 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], If[LessEqual[k, 6.5e+125], N[(2.0 / N[(N[(k * 2.0), $MachinePrecision] * N[(N[Sin[k], $MachinePrecision] * N[(N[(N[Power[t$95$m, 2.0], $MachinePrecision] / l), $MachinePrecision] * N[(t$95$m / l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[Power[l, 2.0], $MachinePrecision] / N[Power[k, 4.0], $MachinePrecision]), $MachinePrecision] * N[(2.0 / t$95$m), $MachinePrecision]), $MachinePrecision]]]), $MachinePrecision]
\begin{array}{l}
t_m = \left|t\right|
\\
t_s = \mathsf{copysign}\left(1, t\right)
\\
t_s \cdot \begin{array}{l}
\mathbf{if}\;k \leq 2.05 \cdot 10^{-247}:\\
\;\;\;\;{\left(\frac{\ell}{k} \cdot \sqrt{\frac{1}{{t_m}^{3}}}\right)}^{2}\\
\mathbf{elif}\;k \leq 6.5 \cdot 10^{+125}:\\
\;\;\;\;\frac{2}{\left(k \cdot 2\right) \cdot \left(\sin k \cdot \left(\frac{{t_m}^{2}}{\ell} \cdot \frac{t_m}{\ell}\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{{\ell}^{2}}{{k}^{4}} \cdot \frac{2}{t_m}\\
\end{array}
\end{array}
if k < 2.0499999999999999e-247Initial program 53.8%
Simplified53.1%
add-sqr-sqrt46.5%
Applied egg-rr52.9%
unpow252.9%
associate-/l*53.0%
associate-*r*53.0%
*-commutative53.0%
Simplified53.0%
Taylor expanded in k around 0 48.9%
if 2.0499999999999999e-247 < k < 6.4999999999999999e125Initial program 50.3%
associate-*l*50.3%
*-commutative50.3%
*-commutative50.3%
associate-/r*57.4%
distribute-rgt-in57.4%
unpow257.4%
times-frac51.9%
sqr-neg51.9%
times-frac57.4%
unpow257.4%
distribute-rgt-in57.4%
+-commutative57.4%
Simplified57.4%
associate-/r*50.3%
unpow350.4%
times-frac67.4%
pow267.4%
Applied egg-rr67.4%
Taylor expanded in k around 0 70.3%
*-commutative70.1%
Simplified70.3%
if 6.4999999999999999e125 < k Initial program 52.6%
Simplified52.6%
add-sqr-sqrt52.6%
Applied egg-rr38.0%
unpow238.0%
associate-/l*38.0%
associate-*r*38.0%
*-commutative38.0%
Simplified38.0%
Taylor expanded in k around inf 47.3%
Taylor expanded in k around 0 69.0%
times-frac69.0%
unpow269.0%
rem-square-sqrt69.0%
Simplified69.0%
Final simplification58.1%
t_m = (fabs.f64 t)
t_s = (copysign.f64 1 t)
(FPCore (t_s t_m l k)
:precision binary64
(*
t_s
(if (<= k 2e-247)
(pow (/ l (* k (sqrt (pow t_m 3.0)))) 2.0)
(if (<= k 1.15e+128)
(/ 2.0 (* (* k 2.0) (* (sin k) (* (/ (pow t_m 2.0) l) (/ t_m l)))))
(* (/ (pow l 2.0) (pow k 4.0)) (/ 2.0 t_m))))))t_m = fabs(t);
t_s = copysign(1.0, t);
double code(double t_s, double t_m, double l, double k) {
double tmp;
if (k <= 2e-247) {
tmp = pow((l / (k * sqrt(pow(t_m, 3.0)))), 2.0);
} else if (k <= 1.15e+128) {
tmp = 2.0 / ((k * 2.0) * (sin(k) * ((pow(t_m, 2.0) / l) * (t_m / l))));
} else {
tmp = (pow(l, 2.0) / pow(k, 4.0)) * (2.0 / t_m);
}
return t_s * tmp;
}
t_m = abs(t)
t_s = copysign(1.0d0, t)
real(8) function code(t_s, t_m, l, k)
real(8), intent (in) :: t_s
real(8), intent (in) :: t_m
real(8), intent (in) :: l
real(8), intent (in) :: k
real(8) :: tmp
if (k <= 2d-247) then
tmp = (l / (k * sqrt((t_m ** 3.0d0)))) ** 2.0d0
else if (k <= 1.15d+128) then
tmp = 2.0d0 / ((k * 2.0d0) * (sin(k) * (((t_m ** 2.0d0) / l) * (t_m / l))))
else
tmp = ((l ** 2.0d0) / (k ** 4.0d0)) * (2.0d0 / t_m)
end if
code = t_s * tmp
end function
t_m = Math.abs(t);
t_s = Math.copySign(1.0, t);
public static double code(double t_s, double t_m, double l, double k) {
double tmp;
if (k <= 2e-247) {
tmp = Math.pow((l / (k * Math.sqrt(Math.pow(t_m, 3.0)))), 2.0);
} else if (k <= 1.15e+128) {
tmp = 2.0 / ((k * 2.0) * (Math.sin(k) * ((Math.pow(t_m, 2.0) / l) * (t_m / l))));
} else {
tmp = (Math.pow(l, 2.0) / Math.pow(k, 4.0)) * (2.0 / t_m);
}
return t_s * tmp;
}
t_m = math.fabs(t) t_s = math.copysign(1.0, t) def code(t_s, t_m, l, k): tmp = 0 if k <= 2e-247: tmp = math.pow((l / (k * math.sqrt(math.pow(t_m, 3.0)))), 2.0) elif k <= 1.15e+128: tmp = 2.0 / ((k * 2.0) * (math.sin(k) * ((math.pow(t_m, 2.0) / l) * (t_m / l)))) else: tmp = (math.pow(l, 2.0) / math.pow(k, 4.0)) * (2.0 / t_m) return t_s * tmp
t_m = abs(t) t_s = copysign(1.0, t) function code(t_s, t_m, l, k) tmp = 0.0 if (k <= 2e-247) tmp = Float64(l / Float64(k * sqrt((t_m ^ 3.0)))) ^ 2.0; elseif (k <= 1.15e+128) tmp = Float64(2.0 / Float64(Float64(k * 2.0) * Float64(sin(k) * Float64(Float64((t_m ^ 2.0) / l) * Float64(t_m / l))))); else tmp = Float64(Float64((l ^ 2.0) / (k ^ 4.0)) * Float64(2.0 / t_m)); end return Float64(t_s * tmp) end
t_m = abs(t); t_s = sign(t) * abs(1.0); function tmp_2 = code(t_s, t_m, l, k) tmp = 0.0; if (k <= 2e-247) tmp = (l / (k * sqrt((t_m ^ 3.0)))) ^ 2.0; elseif (k <= 1.15e+128) tmp = 2.0 / ((k * 2.0) * (sin(k) * (((t_m ^ 2.0) / l) * (t_m / l)))); else tmp = ((l ^ 2.0) / (k ^ 4.0)) * (2.0 / t_m); end tmp_2 = t_s * tmp; end
t_m = N[Abs[t], $MachinePrecision]
t_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[t]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
code[t$95$s_, t$95$m_, l_, k_] := N[(t$95$s * If[LessEqual[k, 2e-247], N[Power[N[(l / N[(k * N[Sqrt[N[Power[t$95$m, 3.0], $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 2.0], $MachinePrecision], If[LessEqual[k, 1.15e+128], N[(2.0 / N[(N[(k * 2.0), $MachinePrecision] * N[(N[Sin[k], $MachinePrecision] * N[(N[(N[Power[t$95$m, 2.0], $MachinePrecision] / l), $MachinePrecision] * N[(t$95$m / l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[Power[l, 2.0], $MachinePrecision] / N[Power[k, 4.0], $MachinePrecision]), $MachinePrecision] * N[(2.0 / t$95$m), $MachinePrecision]), $MachinePrecision]]]), $MachinePrecision]
\begin{array}{l}
t_m = \left|t\right|
\\
t_s = \mathsf{copysign}\left(1, t\right)
\\
t_s \cdot \begin{array}{l}
\mathbf{if}\;k \leq 2 \cdot 10^{-247}:\\
\;\;\;\;{\left(\frac{\ell}{k \cdot \sqrt{{t_m}^{3}}}\right)}^{2}\\
\mathbf{elif}\;k \leq 1.15 \cdot 10^{+128}:\\
\;\;\;\;\frac{2}{\left(k \cdot 2\right) \cdot \left(\sin k \cdot \left(\frac{{t_m}^{2}}{\ell} \cdot \frac{t_m}{\ell}\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{{\ell}^{2}}{{k}^{4}} \cdot \frac{2}{t_m}\\
\end{array}
\end{array}
if k < 2e-247Initial program 53.8%
Simplified53.1%
add-sqr-sqrt46.5%
Applied egg-rr52.9%
unpow252.9%
associate-/l*53.0%
associate-*r*53.0%
*-commutative53.0%
Simplified53.0%
Taylor expanded in k around 0 34.3%
if 2e-247 < k < 1.14999999999999999e128Initial program 50.3%
associate-*l*50.3%
*-commutative50.3%
*-commutative50.3%
associate-/r*57.4%
distribute-rgt-in57.4%
unpow257.4%
times-frac51.9%
sqr-neg51.9%
times-frac57.4%
unpow257.4%
distribute-rgt-in57.4%
+-commutative57.4%
Simplified57.4%
associate-/r*50.3%
unpow350.4%
times-frac67.4%
pow267.4%
Applied egg-rr67.4%
Taylor expanded in k around 0 70.3%
*-commutative70.1%
Simplified70.3%
if 1.14999999999999999e128 < k Initial program 52.6%
Simplified52.6%
add-sqr-sqrt52.6%
Applied egg-rr38.0%
unpow238.0%
associate-/l*38.0%
associate-*r*38.0%
*-commutative38.0%
Simplified38.0%
Taylor expanded in k around inf 47.3%
Taylor expanded in k around 0 69.0%
times-frac69.0%
unpow269.0%
rem-square-sqrt69.0%
Simplified69.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 (<= k 1.5e+128)
(/ 2.0 (* (* k 2.0) (* (sin k) (* (/ (pow t_m 2.0) l) (/ t_m l)))))
(* (/ (pow l 2.0) (pow k 4.0)) (/ 2.0 t_m)))))t_m = fabs(t);
t_s = copysign(1.0, t);
double code(double t_s, double t_m, double l, double k) {
double tmp;
if (k <= 1.5e+128) {
tmp = 2.0 / ((k * 2.0) * (sin(k) * ((pow(t_m, 2.0) / l) * (t_m / l))));
} else {
tmp = (pow(l, 2.0) / pow(k, 4.0)) * (2.0 / t_m);
}
return t_s * tmp;
}
t_m = abs(t)
t_s = copysign(1.0d0, t)
real(8) function code(t_s, t_m, l, k)
real(8), intent (in) :: t_s
real(8), intent (in) :: t_m
real(8), intent (in) :: l
real(8), intent (in) :: k
real(8) :: tmp
if (k <= 1.5d+128) then
tmp = 2.0d0 / ((k * 2.0d0) * (sin(k) * (((t_m ** 2.0d0) / l) * (t_m / l))))
else
tmp = ((l ** 2.0d0) / (k ** 4.0d0)) * (2.0d0 / t_m)
end if
code = t_s * tmp
end function
t_m = Math.abs(t);
t_s = Math.copySign(1.0, t);
public static double code(double t_s, double t_m, double l, double k) {
double tmp;
if (k <= 1.5e+128) {
tmp = 2.0 / ((k * 2.0) * (Math.sin(k) * ((Math.pow(t_m, 2.0) / l) * (t_m / l))));
} else {
tmp = (Math.pow(l, 2.0) / Math.pow(k, 4.0)) * (2.0 / t_m);
}
return t_s * tmp;
}
t_m = math.fabs(t) t_s = math.copysign(1.0, t) def code(t_s, t_m, l, k): tmp = 0 if k <= 1.5e+128: tmp = 2.0 / ((k * 2.0) * (math.sin(k) * ((math.pow(t_m, 2.0) / l) * (t_m / l)))) else: tmp = (math.pow(l, 2.0) / math.pow(k, 4.0)) * (2.0 / t_m) return t_s * tmp
t_m = abs(t) t_s = copysign(1.0, t) function code(t_s, t_m, l, k) tmp = 0.0 if (k <= 1.5e+128) tmp = Float64(2.0 / Float64(Float64(k * 2.0) * Float64(sin(k) * Float64(Float64((t_m ^ 2.0) / l) * Float64(t_m / l))))); else tmp = Float64(Float64((l ^ 2.0) / (k ^ 4.0)) * Float64(2.0 / t_m)); end return Float64(t_s * tmp) end
t_m = abs(t); t_s = sign(t) * abs(1.0); function tmp_2 = code(t_s, t_m, l, k) tmp = 0.0; if (k <= 1.5e+128) tmp = 2.0 / ((k * 2.0) * (sin(k) * (((t_m ^ 2.0) / l) * (t_m / l)))); else tmp = ((l ^ 2.0) / (k ^ 4.0)) * (2.0 / t_m); end tmp_2 = t_s * tmp; end
t_m = N[Abs[t], $MachinePrecision]
t_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[t]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
code[t$95$s_, t$95$m_, l_, k_] := N[(t$95$s * If[LessEqual[k, 1.5e+128], N[(2.0 / N[(N[(k * 2.0), $MachinePrecision] * N[(N[Sin[k], $MachinePrecision] * N[(N[(N[Power[t$95$m, 2.0], $MachinePrecision] / l), $MachinePrecision] * N[(t$95$m / l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[Power[l, 2.0], $MachinePrecision] / N[Power[k, 4.0], $MachinePrecision]), $MachinePrecision] * N[(2.0 / t$95$m), $MachinePrecision]), $MachinePrecision]]), $MachinePrecision]
\begin{array}{l}
t_m = \left|t\right|
\\
t_s = \mathsf{copysign}\left(1, t\right)
\\
t_s \cdot \begin{array}{l}
\mathbf{if}\;k \leq 1.5 \cdot 10^{+128}:\\
\;\;\;\;\frac{2}{\left(k \cdot 2\right) \cdot \left(\sin k \cdot \left(\frac{{t_m}^{2}}{\ell} \cdot \frac{t_m}{\ell}\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{{\ell}^{2}}{{k}^{4}} \cdot \frac{2}{t_m}\\
\end{array}
\end{array}
if k < 1.4999999999999999e128Initial program 52.6%
associate-*l*52.6%
*-commutative52.6%
*-commutative52.6%
associate-/r*60.0%
distribute-rgt-in60.0%
unpow260.0%
times-frac45.7%
sqr-neg45.7%
times-frac60.0%
unpow260.0%
distribute-rgt-in60.0%
+-commutative60.0%
Simplified60.0%
associate-/r*52.6%
unpow352.6%
times-frac67.0%
pow267.0%
Applied egg-rr67.0%
Taylor expanded in k around 0 63.5%
*-commutative65.7%
Simplified63.5%
if 1.4999999999999999e128 < k Initial program 52.6%
Simplified52.6%
add-sqr-sqrt52.6%
Applied egg-rr38.0%
unpow238.0%
associate-/l*38.0%
associate-*r*38.0%
*-commutative38.0%
Simplified38.0%
Taylor expanded in k around inf 47.3%
Taylor expanded in k around 0 69.0%
times-frac69.0%
unpow269.0%
rem-square-sqrt69.0%
Simplified69.0%
Final simplification64.4%
t_m = (fabs.f64 t)
t_s = (copysign.f64 1 t)
(FPCore (t_s t_m l k)
:precision binary64
(*
t_s
(if (<= k 5.8e+87)
(/ 2.0 (* (* k 2.0) (* (sin k) (/ (/ (pow t_m 3.0) l) l))))
(* (/ (pow l 2.0) (pow k 4.0)) (/ 2.0 t_m)))))t_m = fabs(t);
t_s = copysign(1.0, t);
double code(double t_s, double t_m, double l, double k) {
double tmp;
if (k <= 5.8e+87) {
tmp = 2.0 / ((k * 2.0) * (sin(k) * ((pow(t_m, 3.0) / l) / l)));
} else {
tmp = (pow(l, 2.0) / pow(k, 4.0)) * (2.0 / t_m);
}
return t_s * tmp;
}
t_m = abs(t)
t_s = copysign(1.0d0, t)
real(8) function code(t_s, t_m, l, k)
real(8), intent (in) :: t_s
real(8), intent (in) :: t_m
real(8), intent (in) :: l
real(8), intent (in) :: k
real(8) :: tmp
if (k <= 5.8d+87) then
tmp = 2.0d0 / ((k * 2.0d0) * (sin(k) * (((t_m ** 3.0d0) / l) / l)))
else
tmp = ((l ** 2.0d0) / (k ** 4.0d0)) * (2.0d0 / t_m)
end if
code = t_s * tmp
end function
t_m = Math.abs(t);
t_s = Math.copySign(1.0, t);
public static double code(double t_s, double t_m, double l, double k) {
double tmp;
if (k <= 5.8e+87) {
tmp = 2.0 / ((k * 2.0) * (Math.sin(k) * ((Math.pow(t_m, 3.0) / l) / l)));
} else {
tmp = (Math.pow(l, 2.0) / Math.pow(k, 4.0)) * (2.0 / t_m);
}
return t_s * tmp;
}
t_m = math.fabs(t) t_s = math.copysign(1.0, t) def code(t_s, t_m, l, k): tmp = 0 if k <= 5.8e+87: tmp = 2.0 / ((k * 2.0) * (math.sin(k) * ((math.pow(t_m, 3.0) / l) / l))) else: tmp = (math.pow(l, 2.0) / math.pow(k, 4.0)) * (2.0 / t_m) return t_s * tmp
t_m = abs(t) t_s = copysign(1.0, t) function code(t_s, t_m, l, k) tmp = 0.0 if (k <= 5.8e+87) tmp = Float64(2.0 / Float64(Float64(k * 2.0) * Float64(sin(k) * Float64(Float64((t_m ^ 3.0) / l) / l)))); else tmp = Float64(Float64((l ^ 2.0) / (k ^ 4.0)) * Float64(2.0 / t_m)); end return Float64(t_s * tmp) end
t_m = abs(t); t_s = sign(t) * abs(1.0); function tmp_2 = code(t_s, t_m, l, k) tmp = 0.0; if (k <= 5.8e+87) tmp = 2.0 / ((k * 2.0) * (sin(k) * (((t_m ^ 3.0) / l) / l))); else tmp = ((l ^ 2.0) / (k ^ 4.0)) * (2.0 / t_m); end tmp_2 = t_s * tmp; end
t_m = N[Abs[t], $MachinePrecision]
t_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[t]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
code[t$95$s_, t$95$m_, l_, k_] := N[(t$95$s * If[LessEqual[k, 5.8e+87], N[(2.0 / N[(N[(k * 2.0), $MachinePrecision] * N[(N[Sin[k], $MachinePrecision] * N[(N[(N[Power[t$95$m, 3.0], $MachinePrecision] / l), $MachinePrecision] / l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[Power[l, 2.0], $MachinePrecision] / N[Power[k, 4.0], $MachinePrecision]), $MachinePrecision] * N[(2.0 / t$95$m), $MachinePrecision]), $MachinePrecision]]), $MachinePrecision]
\begin{array}{l}
t_m = \left|t\right|
\\
t_s = \mathsf{copysign}\left(1, t\right)
\\
t_s \cdot \begin{array}{l}
\mathbf{if}\;k \leq 5.8 \cdot 10^{+87}:\\
\;\;\;\;\frac{2}{\left(k \cdot 2\right) \cdot \left(\sin k \cdot \frac{\frac{{t_m}^{3}}{\ell}}{\ell}\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{{\ell}^{2}}{{k}^{4}} \cdot \frac{2}{t_m}\\
\end{array}
\end{array}
if k < 5.7999999999999996e87Initial program 53.9%
associate-*l*53.9%
*-commutative53.9%
*-commutative53.9%
associate-/r*61.6%
distribute-rgt-in61.6%
unpow261.6%
times-frac46.7%
sqr-neg46.7%
times-frac61.6%
unpow261.6%
distribute-rgt-in61.6%
+-commutative61.6%
Simplified61.6%
add-cube-cbrt61.5%
*-un-lft-identity61.5%
times-frac61.5%
pow261.5%
cbrt-div61.5%
rem-cbrt-cube61.5%
cbrt-div61.5%
rem-cbrt-cube72.7%
Applied egg-rr72.7%
Taylor expanded in k around 0 67.0%
*-commutative67.0%
Simplified67.0%
expm1-log1p-u45.7%
expm1-udef35.4%
frac-times34.0%
pow-plus34.0%
metadata-eval34.0%
*-un-lft-identity34.0%
Applied egg-rr34.0%
expm1-def44.4%
expm1-log1p65.1%
cube-div62.2%
rem-cube-cbrt62.2%
Simplified62.2%
if 5.7999999999999996e87 < k Initial program 47.2%
Simplified47.2%
add-sqr-sqrt47.2%
Applied egg-rr37.2%
unpow237.2%
associate-/l*37.3%
associate-*r*37.3%
*-commutative37.3%
Simplified37.3%
Taylor expanded in k around inf 46.7%
Taylor expanded in k around 0 62.8%
times-frac62.8%
unpow262.8%
rem-square-sqrt62.8%
Simplified62.8%
Final simplification62.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 9.5e-160)
(/ 2.0 (* (* k 2.0) (/ k (/ (pow l 2.0) (pow t_m 3.0)))))
(if (<= k 1.1e+89)
(* (* l (pow k -2.0)) (/ l (pow t_m 3.0)))
(* (/ (pow l 2.0) (pow k 4.0)) (/ 2.0 t_m))))))t_m = fabs(t);
t_s = copysign(1.0, t);
double code(double t_s, double t_m, double l, double k) {
double tmp;
if (k <= 9.5e-160) {
tmp = 2.0 / ((k * 2.0) * (k / (pow(l, 2.0) / pow(t_m, 3.0))));
} else if (k <= 1.1e+89) {
tmp = (l * pow(k, -2.0)) * (l / pow(t_m, 3.0));
} else {
tmp = (pow(l, 2.0) / pow(k, 4.0)) * (2.0 / t_m);
}
return t_s * tmp;
}
t_m = abs(t)
t_s = copysign(1.0d0, t)
real(8) function code(t_s, t_m, l, k)
real(8), intent (in) :: t_s
real(8), intent (in) :: t_m
real(8), intent (in) :: l
real(8), intent (in) :: k
real(8) :: tmp
if (k <= 9.5d-160) then
tmp = 2.0d0 / ((k * 2.0d0) * (k / ((l ** 2.0d0) / (t_m ** 3.0d0))))
else if (k <= 1.1d+89) then
tmp = (l * (k ** (-2.0d0))) * (l / (t_m ** 3.0d0))
else
tmp = ((l ** 2.0d0) / (k ** 4.0d0)) * (2.0d0 / t_m)
end if
code = t_s * tmp
end function
t_m = Math.abs(t);
t_s = Math.copySign(1.0, t);
public static double code(double t_s, double t_m, double l, double k) {
double tmp;
if (k <= 9.5e-160) {
tmp = 2.0 / ((k * 2.0) * (k / (Math.pow(l, 2.0) / Math.pow(t_m, 3.0))));
} else if (k <= 1.1e+89) {
tmp = (l * Math.pow(k, -2.0)) * (l / Math.pow(t_m, 3.0));
} else {
tmp = (Math.pow(l, 2.0) / Math.pow(k, 4.0)) * (2.0 / t_m);
}
return t_s * tmp;
}
t_m = math.fabs(t) t_s = math.copysign(1.0, t) def code(t_s, t_m, l, k): tmp = 0 if k <= 9.5e-160: tmp = 2.0 / ((k * 2.0) * (k / (math.pow(l, 2.0) / math.pow(t_m, 3.0)))) elif k <= 1.1e+89: tmp = (l * math.pow(k, -2.0)) * (l / math.pow(t_m, 3.0)) else: tmp = (math.pow(l, 2.0) / math.pow(k, 4.0)) * (2.0 / t_m) return t_s * tmp
t_m = abs(t) t_s = copysign(1.0, t) function code(t_s, t_m, l, k) tmp = 0.0 if (k <= 9.5e-160) tmp = Float64(2.0 / Float64(Float64(k * 2.0) * Float64(k / Float64((l ^ 2.0) / (t_m ^ 3.0))))); elseif (k <= 1.1e+89) tmp = Float64(Float64(l * (k ^ -2.0)) * Float64(l / (t_m ^ 3.0))); else tmp = Float64(Float64((l ^ 2.0) / (k ^ 4.0)) * Float64(2.0 / t_m)); end return Float64(t_s * tmp) end
t_m = abs(t); t_s = sign(t) * abs(1.0); function tmp_2 = code(t_s, t_m, l, k) tmp = 0.0; if (k <= 9.5e-160) tmp = 2.0 / ((k * 2.0) * (k / ((l ^ 2.0) / (t_m ^ 3.0)))); elseif (k <= 1.1e+89) tmp = (l * (k ^ -2.0)) * (l / (t_m ^ 3.0)); else tmp = ((l ^ 2.0) / (k ^ 4.0)) * (2.0 / t_m); end tmp_2 = t_s * tmp; end
t_m = N[Abs[t], $MachinePrecision]
t_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[t]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
code[t$95$s_, t$95$m_, l_, k_] := N[(t$95$s * If[LessEqual[k, 9.5e-160], N[(2.0 / N[(N[(k * 2.0), $MachinePrecision] * N[(k / N[(N[Power[l, 2.0], $MachinePrecision] / N[Power[t$95$m, 3.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, 1.1e+89], N[(N[(l * N[Power[k, -2.0], $MachinePrecision]), $MachinePrecision] * N[(l / N[Power[t$95$m, 3.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[Power[l, 2.0], $MachinePrecision] / N[Power[k, 4.0], $MachinePrecision]), $MachinePrecision] * N[(2.0 / t$95$m), $MachinePrecision]), $MachinePrecision]]]), $MachinePrecision]
\begin{array}{l}
t_m = \left|t\right|
\\
t_s = \mathsf{copysign}\left(1, t\right)
\\
t_s \cdot \begin{array}{l}
\mathbf{if}\;k \leq 9.5 \cdot 10^{-160}:\\
\;\;\;\;\frac{2}{\left(k \cdot 2\right) \cdot \frac{k}{\frac{{\ell}^{2}}{{t_m}^{3}}}}\\
\mathbf{elif}\;k \leq 1.1 \cdot 10^{+89}:\\
\;\;\;\;\left(\ell \cdot {k}^{-2}\right) \cdot \frac{\ell}{{t_m}^{3}}\\
\mathbf{else}:\\
\;\;\;\;\frac{{\ell}^{2}}{{k}^{4}} \cdot \frac{2}{t_m}\\
\end{array}
\end{array}
if k < 9.5000000000000002e-160Initial program 54.3%
associate-*l*54.3%
*-commutative54.3%
*-commutative54.3%
associate-/r*62.1%
distribute-rgt-in62.1%
unpow262.1%
times-frac43.7%
sqr-neg43.7%
times-frac62.1%
unpow262.1%
distribute-rgt-in62.1%
+-commutative62.1%
Simplified62.1%
add-cube-cbrt62.0%
*-un-lft-identity62.0%
times-frac62.0%
pow262.0%
cbrt-div62.0%
rem-cbrt-cube62.0%
cbrt-div62.0%
rem-cbrt-cube73.7%
Applied egg-rr73.7%
Taylor expanded in k around 0 64.7%
*-commutative64.7%
Simplified64.7%
Taylor expanded in k around 0 54.7%
associate-/l*52.8%
Simplified52.8%
if 9.5000000000000002e-160 < k < 1.1e89Initial program 53.0%
Simplified53.0%
Taylor expanded in k around 0 60.4%
unpow260.4%
Applied egg-rr60.4%
times-frac66.2%
Applied egg-rr66.2%
expm1-log1p-u36.1%
expm1-udef34.1%
div-inv34.1%
pow-flip34.1%
metadata-eval34.1%
Applied egg-rr34.1%
expm1-def36.1%
expm1-log1p66.1%
Simplified66.1%
if 1.1e89 < k Initial program 47.2%
Simplified47.2%
add-sqr-sqrt47.2%
Applied egg-rr37.2%
unpow237.2%
associate-/l*37.3%
associate-*r*37.3%
*-commutative37.3%
Simplified37.3%
Taylor expanded in k around inf 46.7%
Taylor expanded in k around 0 62.8%
times-frac62.8%
unpow262.8%
rem-square-sqrt62.8%
Simplified62.8%
Final simplification57.6%
t_m = (fabs.f64 t)
t_s = (copysign.f64 1 t)
(FPCore (t_s t_m l k)
:precision binary64
(*
t_s
(if (<= k 9.5e-160)
(/ 2.0 (* (* k 2.0) (/ (* k (pow t_m 3.0)) (pow l 2.0))))
(if (<= k 1.25e+89)
(* (* l (pow k -2.0)) (/ l (pow t_m 3.0)))
(* (/ (pow l 2.0) (pow k 4.0)) (/ 2.0 t_m))))))t_m = fabs(t);
t_s = copysign(1.0, t);
double code(double t_s, double t_m, double l, double k) {
double tmp;
if (k <= 9.5e-160) {
tmp = 2.0 / ((k * 2.0) * ((k * pow(t_m, 3.0)) / pow(l, 2.0)));
} else if (k <= 1.25e+89) {
tmp = (l * pow(k, -2.0)) * (l / pow(t_m, 3.0));
} else {
tmp = (pow(l, 2.0) / pow(k, 4.0)) * (2.0 / t_m);
}
return t_s * tmp;
}
t_m = abs(t)
t_s = copysign(1.0d0, t)
real(8) function code(t_s, t_m, l, k)
real(8), intent (in) :: t_s
real(8), intent (in) :: t_m
real(8), intent (in) :: l
real(8), intent (in) :: k
real(8) :: tmp
if (k <= 9.5d-160) then
tmp = 2.0d0 / ((k * 2.0d0) * ((k * (t_m ** 3.0d0)) / (l ** 2.0d0)))
else if (k <= 1.25d+89) then
tmp = (l * (k ** (-2.0d0))) * (l / (t_m ** 3.0d0))
else
tmp = ((l ** 2.0d0) / (k ** 4.0d0)) * (2.0d0 / t_m)
end if
code = t_s * tmp
end function
t_m = Math.abs(t);
t_s = Math.copySign(1.0, t);
public static double code(double t_s, double t_m, double l, double k) {
double tmp;
if (k <= 9.5e-160) {
tmp = 2.0 / ((k * 2.0) * ((k * Math.pow(t_m, 3.0)) / Math.pow(l, 2.0)));
} else if (k <= 1.25e+89) {
tmp = (l * Math.pow(k, -2.0)) * (l / Math.pow(t_m, 3.0));
} else {
tmp = (Math.pow(l, 2.0) / Math.pow(k, 4.0)) * (2.0 / t_m);
}
return t_s * tmp;
}
t_m = math.fabs(t) t_s = math.copysign(1.0, t) def code(t_s, t_m, l, k): tmp = 0 if k <= 9.5e-160: tmp = 2.0 / ((k * 2.0) * ((k * math.pow(t_m, 3.0)) / math.pow(l, 2.0))) elif k <= 1.25e+89: tmp = (l * math.pow(k, -2.0)) * (l / math.pow(t_m, 3.0)) else: tmp = (math.pow(l, 2.0) / math.pow(k, 4.0)) * (2.0 / t_m) return t_s * tmp
t_m = abs(t) t_s = copysign(1.0, t) function code(t_s, t_m, l, k) tmp = 0.0 if (k <= 9.5e-160) tmp = Float64(2.0 / Float64(Float64(k * 2.0) * Float64(Float64(k * (t_m ^ 3.0)) / (l ^ 2.0)))); elseif (k <= 1.25e+89) tmp = Float64(Float64(l * (k ^ -2.0)) * Float64(l / (t_m ^ 3.0))); else tmp = Float64(Float64((l ^ 2.0) / (k ^ 4.0)) * Float64(2.0 / t_m)); end return Float64(t_s * tmp) end
t_m = abs(t); t_s = sign(t) * abs(1.0); function tmp_2 = code(t_s, t_m, l, k) tmp = 0.0; if (k <= 9.5e-160) tmp = 2.0 / ((k * 2.0) * ((k * (t_m ^ 3.0)) / (l ^ 2.0))); elseif (k <= 1.25e+89) tmp = (l * (k ^ -2.0)) * (l / (t_m ^ 3.0)); else tmp = ((l ^ 2.0) / (k ^ 4.0)) * (2.0 / t_m); end tmp_2 = t_s * tmp; end
t_m = N[Abs[t], $MachinePrecision]
t_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[t]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
code[t$95$s_, t$95$m_, l_, k_] := N[(t$95$s * If[LessEqual[k, 9.5e-160], N[(2.0 / N[(N[(k * 2.0), $MachinePrecision] * N[(N[(k * N[Power[t$95$m, 3.0], $MachinePrecision]), $MachinePrecision] / N[Power[l, 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, 1.25e+89], N[(N[(l * N[Power[k, -2.0], $MachinePrecision]), $MachinePrecision] * N[(l / N[Power[t$95$m, 3.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[Power[l, 2.0], $MachinePrecision] / N[Power[k, 4.0], $MachinePrecision]), $MachinePrecision] * N[(2.0 / t$95$m), $MachinePrecision]), $MachinePrecision]]]), $MachinePrecision]
\begin{array}{l}
t_m = \left|t\right|
\\
t_s = \mathsf{copysign}\left(1, t\right)
\\
t_s \cdot \begin{array}{l}
\mathbf{if}\;k \leq 9.5 \cdot 10^{-160}:\\
\;\;\;\;\frac{2}{\left(k \cdot 2\right) \cdot \frac{k \cdot {t_m}^{3}}{{\ell}^{2}}}\\
\mathbf{elif}\;k \leq 1.25 \cdot 10^{+89}:\\
\;\;\;\;\left(\ell \cdot {k}^{-2}\right) \cdot \frac{\ell}{{t_m}^{3}}\\
\mathbf{else}:\\
\;\;\;\;\frac{{\ell}^{2}}{{k}^{4}} \cdot \frac{2}{t_m}\\
\end{array}
\end{array}
if k < 9.5000000000000002e-160Initial program 54.3%
associate-*l*54.3%
*-commutative54.3%
*-commutative54.3%
associate-/r*62.1%
distribute-rgt-in62.1%
unpow262.1%
times-frac43.7%
sqr-neg43.7%
times-frac62.1%
unpow262.1%
distribute-rgt-in62.1%
+-commutative62.1%
Simplified62.1%
add-cube-cbrt62.0%
*-un-lft-identity62.0%
times-frac62.0%
pow262.0%
cbrt-div62.0%
rem-cbrt-cube62.0%
cbrt-div62.0%
rem-cbrt-cube73.7%
Applied egg-rr73.7%
Taylor expanded in k around 0 64.7%
*-commutative64.7%
Simplified64.7%
Taylor expanded in k around 0 54.7%
if 9.5000000000000002e-160 < k < 1.24999999999999996e89Initial program 53.0%
Simplified53.0%
Taylor expanded in k around 0 60.4%
unpow260.4%
Applied egg-rr60.4%
times-frac66.2%
Applied egg-rr66.2%
expm1-log1p-u36.1%
expm1-udef34.1%
div-inv34.1%
pow-flip34.1%
metadata-eval34.1%
Applied egg-rr34.1%
expm1-def36.1%
expm1-log1p66.1%
Simplified66.1%
if 1.24999999999999996e89 < k Initial program 47.2%
Simplified47.2%
add-sqr-sqrt47.2%
Applied egg-rr37.2%
unpow237.2%
associate-/l*37.3%
associate-*r*37.3%
*-commutative37.3%
Simplified37.3%
Taylor expanded in k around inf 46.7%
Taylor expanded in k around 0 62.8%
times-frac62.8%
unpow262.8%
rem-square-sqrt62.8%
Simplified62.8%
Final simplification58.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 3.7e-88)
(* (/ (pow l 2.0) t_m) (/ 2.0 (pow k 4.0)))
(* (/ l (pow k 2.0)) (/ l (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 <= 3.7e-88) {
tmp = (pow(l, 2.0) / t_m) * (2.0 / pow(k, 4.0));
} else {
tmp = (l / pow(k, 2.0)) * (l / 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 <= 3.7d-88) then
tmp = ((l ** 2.0d0) / t_m) * (2.0d0 / (k ** 4.0d0))
else
tmp = (l / (k ** 2.0d0)) * (l / (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 <= 3.7e-88) {
tmp = (Math.pow(l, 2.0) / t_m) * (2.0 / Math.pow(k, 4.0));
} else {
tmp = (l / Math.pow(k, 2.0)) * (l / 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 <= 3.7e-88: tmp = (math.pow(l, 2.0) / t_m) * (2.0 / math.pow(k, 4.0)) else: tmp = (l / math.pow(k, 2.0)) * (l / 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 <= 3.7e-88) tmp = Float64(Float64((l ^ 2.0) / t_m) * Float64(2.0 / (k ^ 4.0))); else tmp = Float64(Float64(l / (k ^ 2.0)) * Float64(l / (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 <= 3.7e-88) tmp = ((l ^ 2.0) / t_m) * (2.0 / (k ^ 4.0)); else tmp = (l / (k ^ 2.0)) * (l / (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, 3.7e-88], N[(N[(N[Power[l, 2.0], $MachinePrecision] / t$95$m), $MachinePrecision] * N[(2.0 / N[Power[k, 4.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(l / N[Power[k, 2.0], $MachinePrecision]), $MachinePrecision] * N[(l / N[Power[t$95$m, 3.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]), $MachinePrecision]
\begin{array}{l}
t_m = \left|t\right|
\\
t_s = \mathsf{copysign}\left(1, t\right)
\\
t_s \cdot \begin{array}{l}
\mathbf{if}\;t_m \leq 3.7 \cdot 10^{-88}:\\
\;\;\;\;\frac{{\ell}^{2}}{t_m} \cdot \frac{2}{{k}^{4}}\\
\mathbf{else}:\\
\;\;\;\;\frac{\ell}{{k}^{2}} \cdot \frac{\ell}{{t_m}^{3}}\\
\end{array}
\end{array}
if t < 3.6999999999999997e-88Initial program 47.9%
Simplified47.8%
add-sqr-sqrt37.4%
Applied egg-rr42.5%
unpow242.5%
associate-/l*42.6%
associate-*r*42.6%
*-commutative42.6%
Simplified42.6%
Taylor expanded in k around 0 39.5%
Taylor expanded in k around inf 21.7%
Taylor expanded in l around 0 52.1%
unpow252.1%
rem-square-sqrt52.1%
*-commutative52.1%
times-frac52.5%
Simplified52.5%
if 3.6999999999999997e-88 < t Initial program 64.9%
Simplified54.8%
Taylor expanded in k around 0 49.3%
unpow249.3%
Applied egg-rr49.3%
times-frac54.7%
Applied egg-rr54.7%
Final simplification53.1%
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.45e-92)
(* (/ (pow l 2.0) (pow k 4.0)) (/ 2.0 t_m))
(* (/ l (pow k 2.0)) (/ l (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 <= 2.45e-92) {
tmp = (pow(l, 2.0) / pow(k, 4.0)) * (2.0 / t_m);
} else {
tmp = (l / pow(k, 2.0)) * (l / 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 <= 2.45d-92) then
tmp = ((l ** 2.0d0) / (k ** 4.0d0)) * (2.0d0 / t_m)
else
tmp = (l / (k ** 2.0d0)) * (l / (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 <= 2.45e-92) {
tmp = (Math.pow(l, 2.0) / Math.pow(k, 4.0)) * (2.0 / t_m);
} else {
tmp = (l / Math.pow(k, 2.0)) * (l / 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 <= 2.45e-92: tmp = (math.pow(l, 2.0) / math.pow(k, 4.0)) * (2.0 / t_m) else: tmp = (l / math.pow(k, 2.0)) * (l / 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 <= 2.45e-92) tmp = Float64(Float64((l ^ 2.0) / (k ^ 4.0)) * Float64(2.0 / t_m)); else tmp = Float64(Float64(l / (k ^ 2.0)) * Float64(l / (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 <= 2.45e-92) tmp = ((l ^ 2.0) / (k ^ 4.0)) * (2.0 / t_m); else tmp = (l / (k ^ 2.0)) * (l / (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, 2.45e-92], N[(N[(N[Power[l, 2.0], $MachinePrecision] / N[Power[k, 4.0], $MachinePrecision]), $MachinePrecision] * N[(2.0 / t$95$m), $MachinePrecision]), $MachinePrecision], N[(N[(l / N[Power[k, 2.0], $MachinePrecision]), $MachinePrecision] * N[(l / N[Power[t$95$m, 3.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]), $MachinePrecision]
\begin{array}{l}
t_m = \left|t\right|
\\
t_s = \mathsf{copysign}\left(1, t\right)
\\
t_s \cdot \begin{array}{l}
\mathbf{if}\;t_m \leq 2.45 \cdot 10^{-92}:\\
\;\;\;\;\frac{{\ell}^{2}}{{k}^{4}} \cdot \frac{2}{t_m}\\
\mathbf{else}:\\
\;\;\;\;\frac{\ell}{{k}^{2}} \cdot \frac{\ell}{{t_m}^{3}}\\
\end{array}
\end{array}
if t < 2.45e-92Initial program 47.1%
Simplified47.0%
add-sqr-sqrt36.4%
Applied egg-rr42.7%
unpow242.7%
associate-/l*42.7%
associate-*r*42.7%
*-commutative42.7%
Simplified42.7%
Taylor expanded in k around inf 38.4%
Taylor expanded in k around 0 51.3%
times-frac51.4%
unpow251.4%
rem-square-sqrt51.4%
Simplified51.4%
if 2.45e-92 < t Initial program 66.3%
Simplified56.6%
Taylor expanded in k around 0 51.4%
unpow251.4%
Applied egg-rr51.4%
times-frac56.5%
Applied egg-rr56.5%
Final simplification52.9%
t_m = (fabs.f64 t) t_s = (copysign.f64 1 t) (FPCore (t_s t_m l k) :precision binary64 (* t_s (* (* l (pow k -2.0)) (/ l (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) {
return t_s * ((l * pow(k, -2.0)) * (l / pow(t_m, 3.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 * ((l * (k ** (-2.0d0))) * (l / (t_m ** 3.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 * ((l * Math.pow(k, -2.0)) * (l / Math.pow(t_m, 3.0)));
}
t_m = math.fabs(t) t_s = math.copysign(1.0, t) def code(t_s, t_m, l, k): return t_s * ((l * math.pow(k, -2.0)) * (l / math.pow(t_m, 3.0)))
t_m = abs(t) t_s = copysign(1.0, t) function code(t_s, t_m, l, k) return Float64(t_s * Float64(Float64(l * (k ^ -2.0)) * Float64(l / (t_m ^ 3.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 * ((l * (k ^ -2.0)) * (l / (t_m ^ 3.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[(N[(l * N[Power[k, -2.0], $MachinePrecision]), $MachinePrecision] * N[(l / N[Power[t$95$m, 3.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
t_m = \left|t\right|
\\
t_s = \mathsf{copysign}\left(1, t\right)
\\
t_s \cdot \left(\left(\ell \cdot {k}^{-2}\right) \cdot \frac{\ell}{{t_m}^{3}}\right)
\end{array}
Initial program 52.6%
Simplified47.8%
Taylor expanded in k around 0 49.3%
unpow249.3%
Applied egg-rr49.3%
times-frac55.2%
Applied egg-rr55.2%
expm1-log1p-u41.1%
expm1-udef40.2%
div-inv40.2%
pow-flip40.2%
metadata-eval40.2%
Applied egg-rr40.2%
expm1-def41.1%
expm1-log1p55.1%
Simplified55.1%
Final simplification55.1%
t_m = (fabs.f64 t) t_s = (copysign.f64 1 t) (FPCore (t_s t_m l k) :precision binary64 (* t_s (* (/ l (pow k 2.0)) (/ l (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) {
return t_s * ((l / pow(k, 2.0)) * (l / pow(t_m, 3.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 * ((l / (k ** 2.0d0)) * (l / (t_m ** 3.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 * ((l / Math.pow(k, 2.0)) * (l / Math.pow(t_m, 3.0)));
}
t_m = math.fabs(t) t_s = math.copysign(1.0, t) def code(t_s, t_m, l, k): return t_s * ((l / math.pow(k, 2.0)) * (l / math.pow(t_m, 3.0)))
t_m = abs(t) t_s = copysign(1.0, t) function code(t_s, t_m, l, k) return Float64(t_s * Float64(Float64(l / (k ^ 2.0)) * Float64(l / (t_m ^ 3.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 * ((l / (k ^ 2.0)) * (l / (t_m ^ 3.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[(N[(l / N[Power[k, 2.0], $MachinePrecision]), $MachinePrecision] * N[(l / N[Power[t$95$m, 3.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
t_m = \left|t\right|
\\
t_s = \mathsf{copysign}\left(1, t\right)
\\
t_s \cdot \left(\frac{\ell}{{k}^{2}} \cdot \frac{\ell}{{t_m}^{3}}\right)
\end{array}
Initial program 52.6%
Simplified47.8%
Taylor expanded in k around 0 49.3%
unpow249.3%
Applied egg-rr49.3%
times-frac55.2%
Applied egg-rr55.2%
Final simplification55.2%
herbie shell --seed 2023334
(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))))