
(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 18 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 1.58e-55)
(/
2.0
(* (* (* (/ k l) (/ 1.0 l)) (/ k (cos k))) (* t_m (pow (sin k) 2.0))))
(/
2.0
(*
(/ (pow (/ (pow t_m 0.75) (/ (/ l (pow t_m 0.75)) (sin k))) 2.0) (cos k))
(+ 2.0 (pow (/ k t_m) 2.0)))))))t_m = fabs(t);
t_s = copysign(1.0, t);
double code(double t_s, double t_m, double l, double k) {
double tmp;
if (t_m <= 1.58e-55) {
tmp = 2.0 / ((((k / l) * (1.0 / l)) * (k / cos(k))) * (t_m * pow(sin(k), 2.0)));
} else {
tmp = 2.0 / ((pow((pow(t_m, 0.75) / ((l / pow(t_m, 0.75)) / sin(k))), 2.0) / cos(k)) * (2.0 + pow((k / t_m), 2.0)));
}
return t_s * tmp;
}
t_m = abs(t)
t_s = copysign(1.0d0, t)
real(8) function code(t_s, t_m, l, k)
real(8), intent (in) :: t_s
real(8), intent (in) :: t_m
real(8), intent (in) :: l
real(8), intent (in) :: k
real(8) :: tmp
if (t_m <= 1.58d-55) then
tmp = 2.0d0 / ((((k / l) * (1.0d0 / l)) * (k / cos(k))) * (t_m * (sin(k) ** 2.0d0)))
else
tmp = 2.0d0 / (((((t_m ** 0.75d0) / ((l / (t_m ** 0.75d0)) / sin(k))) ** 2.0d0) / cos(k)) * (2.0d0 + ((k / t_m) ** 2.0d0)))
end if
code = t_s * tmp
end function
t_m = Math.abs(t);
t_s = Math.copySign(1.0, t);
public static double code(double t_s, double t_m, double l, double k) {
double tmp;
if (t_m <= 1.58e-55) {
tmp = 2.0 / ((((k / l) * (1.0 / l)) * (k / Math.cos(k))) * (t_m * Math.pow(Math.sin(k), 2.0)));
} else {
tmp = 2.0 / ((Math.pow((Math.pow(t_m, 0.75) / ((l / Math.pow(t_m, 0.75)) / Math.sin(k))), 2.0) / Math.cos(k)) * (2.0 + Math.pow((k / t_m), 2.0)));
}
return t_s * tmp;
}
t_m = math.fabs(t) t_s = math.copysign(1.0, t) def code(t_s, t_m, l, k): tmp = 0 if t_m <= 1.58e-55: tmp = 2.0 / ((((k / l) * (1.0 / l)) * (k / math.cos(k))) * (t_m * math.pow(math.sin(k), 2.0))) else: tmp = 2.0 / ((math.pow((math.pow(t_m, 0.75) / ((l / math.pow(t_m, 0.75)) / math.sin(k))), 2.0) / math.cos(k)) * (2.0 + math.pow((k / t_m), 2.0))) return t_s * tmp
t_m = abs(t) t_s = copysign(1.0, t) function code(t_s, t_m, l, k) tmp = 0.0 if (t_m <= 1.58e-55) tmp = Float64(2.0 / Float64(Float64(Float64(Float64(k / l) * Float64(1.0 / l)) * Float64(k / cos(k))) * Float64(t_m * (sin(k) ^ 2.0)))); else tmp = Float64(2.0 / Float64(Float64((Float64((t_m ^ 0.75) / Float64(Float64(l / (t_m ^ 0.75)) / sin(k))) ^ 2.0) / cos(k)) * Float64(2.0 + (Float64(k / t_m) ^ 2.0)))); end return Float64(t_s * tmp) end
t_m = abs(t); t_s = sign(t) * abs(1.0); function tmp_2 = code(t_s, t_m, l, k) tmp = 0.0; if (t_m <= 1.58e-55) tmp = 2.0 / ((((k / l) * (1.0 / l)) * (k / cos(k))) * (t_m * (sin(k) ^ 2.0))); else tmp = 2.0 / (((((t_m ^ 0.75) / ((l / (t_m ^ 0.75)) / sin(k))) ^ 2.0) / cos(k)) * (2.0 + ((k / t_m) ^ 2.0))); end tmp_2 = t_s * tmp; end
t_m = N[Abs[t], $MachinePrecision]
t_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[t]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
code[t$95$s_, t$95$m_, l_, k_] := N[(t$95$s * If[LessEqual[t$95$m, 1.58e-55], N[(2.0 / N[(N[(N[(N[(k / l), $MachinePrecision] * N[(1.0 / l), $MachinePrecision]), $MachinePrecision] * N[(k / N[Cos[k], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(t$95$m * N[Power[N[Sin[k], $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(2.0 / N[(N[(N[Power[N[(N[Power[t$95$m, 0.75], $MachinePrecision] / N[(N[(l / N[Power[t$95$m, 0.75], $MachinePrecision]), $MachinePrecision] / N[Sin[k], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 2.0], $MachinePrecision] / N[Cos[k], $MachinePrecision]), $MachinePrecision] * N[(2.0 + N[Power[N[(k / t$95$m), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]), $MachinePrecision]
\begin{array}{l}
t_m = \left|t\right|
\\
t_s = \mathsf{copysign}\left(1, t\right)
\\
t_s \cdot \begin{array}{l}
\mathbf{if}\;t_m \leq 1.58 \cdot 10^{-55}:\\
\;\;\;\;\frac{2}{\left(\left(\frac{k}{\ell} \cdot \frac{1}{\ell}\right) \cdot \frac{k}{\cos k}\right) \cdot \left(t_m \cdot {\sin k}^{2}\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{2}{\frac{{\left(\frac{{t_m}^{0.75}}{\frac{\frac{\ell}{{t_m}^{0.75}}}{\sin k}}\right)}^{2}}{\cos k} \cdot \left(2 + {\left(\frac{k}{t_m}\right)}^{2}\right)}\\
\end{array}
\end{array}
if t < 1.58000000000000007e-55Initial program 49.6%
Taylor expanded in t around 0 66.7%
associate-/l*66.8%
associate-/r/66.3%
Simplified66.3%
unpow266.3%
times-frac70.0%
Applied egg-rr70.0%
*-un-lft-identity70.0%
metadata-eval70.0%
unpow270.0%
times-frac75.9%
metadata-eval75.9%
Applied egg-rr75.9%
*-commutative75.9%
Simplified75.9%
if 1.58000000000000007e-55 < t Initial program 63.8%
Simplified72.2%
associate-/l/64.8%
associate-*l/63.8%
add-sqr-sqrt63.7%
associate-*l*63.7%
sqrt-div63.7%
sqrt-pow163.7%
sqrt-prod28.8%
add-sqr-sqrt53.3%
metadata-eval53.3%
sqrt-div54.4%
sqrt-pow155.7%
sqrt-prod39.1%
add-sqr-sqrt82.0%
metadata-eval82.0%
Applied egg-rr82.0%
tan-quot82.0%
associate-*r/82.0%
*-commutative82.0%
associate-*r*85.1%
pow185.1%
metadata-eval85.1%
pow185.1%
metadata-eval85.1%
pow-sqr85.1%
associate-*l/85.1%
associate-/l*81.7%
metadata-eval81.7%
metadata-eval81.7%
Applied egg-rr81.7%
sqr-pow81.6%
div-inv81.6%
times-frac94.8%
metadata-eval94.8%
metadata-eval94.8%
Applied egg-rr94.8%
associate-/r/94.9%
/-rgt-identity94.9%
Simplified94.9%
associate-*l/92.6%
associate-/l*94.8%
Applied egg-rr94.8%
associate-/r*94.9%
Simplified94.9%
Final simplification82.3%
t_m = (fabs.f64 t)
t_s = (copysign.f64 1 t)
(FPCore (t_s t_m l k)
:precision binary64
(*
t_s
(if (<= t_m 6.1e-55)
(/
2.0
(* (* (* (/ k l) (/ 1.0 l)) (/ k (cos k))) (* t_m (pow (sin k) 2.0))))
(/
2.0
(*
(+ 2.0 (pow (/ k t_m) 2.0))
(/
(pow (* (/ (pow t_m 0.75) l) (* (sin k) (pow t_m 0.75))) 2.0)
(cos k)))))))t_m = fabs(t);
t_s = copysign(1.0, t);
double code(double t_s, double t_m, double l, double k) {
double tmp;
if (t_m <= 6.1e-55) {
tmp = 2.0 / ((((k / l) * (1.0 / l)) * (k / cos(k))) * (t_m * pow(sin(k), 2.0)));
} else {
tmp = 2.0 / ((2.0 + pow((k / t_m), 2.0)) * (pow(((pow(t_m, 0.75) / l) * (sin(k) * pow(t_m, 0.75))), 2.0) / cos(k)));
}
return t_s * tmp;
}
t_m = abs(t)
t_s = copysign(1.0d0, t)
real(8) function code(t_s, t_m, l, k)
real(8), intent (in) :: t_s
real(8), intent (in) :: t_m
real(8), intent (in) :: l
real(8), intent (in) :: k
real(8) :: tmp
if (t_m <= 6.1d-55) then
tmp = 2.0d0 / ((((k / l) * (1.0d0 / l)) * (k / cos(k))) * (t_m * (sin(k) ** 2.0d0)))
else
tmp = 2.0d0 / ((2.0d0 + ((k / t_m) ** 2.0d0)) * (((((t_m ** 0.75d0) / l) * (sin(k) * (t_m ** 0.75d0))) ** 2.0d0) / cos(k)))
end if
code = t_s * tmp
end function
t_m = Math.abs(t);
t_s = Math.copySign(1.0, t);
public static double code(double t_s, double t_m, double l, double k) {
double tmp;
if (t_m <= 6.1e-55) {
tmp = 2.0 / ((((k / l) * (1.0 / l)) * (k / Math.cos(k))) * (t_m * Math.pow(Math.sin(k), 2.0)));
} else {
tmp = 2.0 / ((2.0 + Math.pow((k / t_m), 2.0)) * (Math.pow(((Math.pow(t_m, 0.75) / l) * (Math.sin(k) * Math.pow(t_m, 0.75))), 2.0) / Math.cos(k)));
}
return t_s * tmp;
}
t_m = math.fabs(t) t_s = math.copysign(1.0, t) def code(t_s, t_m, l, k): tmp = 0 if t_m <= 6.1e-55: tmp = 2.0 / ((((k / l) * (1.0 / l)) * (k / math.cos(k))) * (t_m * math.pow(math.sin(k), 2.0))) else: tmp = 2.0 / ((2.0 + math.pow((k / t_m), 2.0)) * (math.pow(((math.pow(t_m, 0.75) / l) * (math.sin(k) * math.pow(t_m, 0.75))), 2.0) / math.cos(k))) return t_s * tmp
t_m = abs(t) t_s = copysign(1.0, t) function code(t_s, t_m, l, k) tmp = 0.0 if (t_m <= 6.1e-55) tmp = Float64(2.0 / Float64(Float64(Float64(Float64(k / l) * Float64(1.0 / l)) * Float64(k / cos(k))) * Float64(t_m * (sin(k) ^ 2.0)))); else tmp = Float64(2.0 / Float64(Float64(2.0 + (Float64(k / t_m) ^ 2.0)) * Float64((Float64(Float64((t_m ^ 0.75) / l) * Float64(sin(k) * (t_m ^ 0.75))) ^ 2.0) / cos(k)))); end return Float64(t_s * tmp) end
t_m = abs(t); t_s = sign(t) * abs(1.0); function tmp_2 = code(t_s, t_m, l, k) tmp = 0.0; if (t_m <= 6.1e-55) tmp = 2.0 / ((((k / l) * (1.0 / l)) * (k / cos(k))) * (t_m * (sin(k) ^ 2.0))); else tmp = 2.0 / ((2.0 + ((k / t_m) ^ 2.0)) * (((((t_m ^ 0.75) / l) * (sin(k) * (t_m ^ 0.75))) ^ 2.0) / cos(k))); end tmp_2 = t_s * tmp; end
t_m = N[Abs[t], $MachinePrecision]
t_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[t]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
code[t$95$s_, t$95$m_, l_, k_] := N[(t$95$s * If[LessEqual[t$95$m, 6.1e-55], N[(2.0 / N[(N[(N[(N[(k / l), $MachinePrecision] * N[(1.0 / l), $MachinePrecision]), $MachinePrecision] * N[(k / N[Cos[k], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(t$95$m * N[Power[N[Sin[k], $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(2.0 / N[(N[(2.0 + N[Power[N[(k / t$95$m), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision] * N[(N[Power[N[(N[(N[Power[t$95$m, 0.75], $MachinePrecision] / l), $MachinePrecision] * N[(N[Sin[k], $MachinePrecision] * N[Power[t$95$m, 0.75], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 2.0], $MachinePrecision] / N[Cos[k], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]), $MachinePrecision]
\begin{array}{l}
t_m = \left|t\right|
\\
t_s = \mathsf{copysign}\left(1, t\right)
\\
t_s \cdot \begin{array}{l}
\mathbf{if}\;t_m \leq 6.1 \cdot 10^{-55}:\\
\;\;\;\;\frac{2}{\left(\left(\frac{k}{\ell} \cdot \frac{1}{\ell}\right) \cdot \frac{k}{\cos k}\right) \cdot \left(t_m \cdot {\sin k}^{2}\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{2}{\left(2 + {\left(\frac{k}{t_m}\right)}^{2}\right) \cdot \frac{{\left(\frac{{t_m}^{0.75}}{\ell} \cdot \left(\sin k \cdot {t_m}^{0.75}\right)\right)}^{2}}{\cos k}}\\
\end{array}
\end{array}
if t < 6.1000000000000001e-55Initial program 49.6%
Taylor expanded in t around 0 66.7%
associate-/l*66.8%
associate-/r/66.3%
Simplified66.3%
unpow266.3%
times-frac70.0%
Applied egg-rr70.0%
*-un-lft-identity70.0%
metadata-eval70.0%
unpow270.0%
times-frac75.9%
metadata-eval75.9%
Applied egg-rr75.9%
*-commutative75.9%
Simplified75.9%
if 6.1000000000000001e-55 < t Initial program 63.8%
Simplified72.2%
associate-/l/64.8%
associate-*l/63.8%
add-sqr-sqrt63.7%
associate-*l*63.7%
sqrt-div63.7%
sqrt-pow163.7%
sqrt-prod28.8%
add-sqr-sqrt53.3%
metadata-eval53.3%
sqrt-div54.4%
sqrt-pow155.7%
sqrt-prod39.1%
add-sqr-sqrt82.0%
metadata-eval82.0%
Applied egg-rr82.0%
tan-quot82.0%
associate-*r/82.0%
*-commutative82.0%
associate-*r*85.1%
pow185.1%
metadata-eval85.1%
pow185.1%
metadata-eval85.1%
pow-sqr85.1%
associate-*l/85.1%
associate-/l*81.7%
metadata-eval81.7%
metadata-eval81.7%
Applied egg-rr81.7%
sqr-pow81.6%
div-inv81.6%
times-frac94.8%
metadata-eval94.8%
metadata-eval94.8%
Applied egg-rr94.8%
associate-/r/94.9%
/-rgt-identity94.9%
Simplified94.9%
Final simplification82.3%
t_m = (fabs.f64 t)
t_s = (copysign.f64 1 t)
(FPCore (t_s t_m l k)
:precision binary64
(let* ((t_2 (+ 2.0 (pow (/ k t_m) 2.0))))
(*
t_s
(if (<= t_m 3.5e-57)
(/
2.0
(* (* (* (/ k l) (/ 1.0 l)) (/ k (cos k))) (* t_m (pow (sin k) 2.0))))
(if (<= t_m 8.5e+203)
(/ 2.0 (* (/ t_2 (cos k)) (pow (* (sin k) (/ (pow t_m 1.5) l)) 2.0)))
(/
2.0
(*
t_2
(/
(pow (* (/ (pow t_m 0.75) l) (* k (pow t_m 0.75))) 2.0)
(cos k)))))))))t_m = fabs(t);
t_s = copysign(1.0, t);
double code(double t_s, double t_m, double l, double k) {
double t_2 = 2.0 + pow((k / t_m), 2.0);
double tmp;
if (t_m <= 3.5e-57) {
tmp = 2.0 / ((((k / l) * (1.0 / l)) * (k / cos(k))) * (t_m * pow(sin(k), 2.0)));
} else if (t_m <= 8.5e+203) {
tmp = 2.0 / ((t_2 / cos(k)) * pow((sin(k) * (pow(t_m, 1.5) / l)), 2.0));
} else {
tmp = 2.0 / (t_2 * (pow(((pow(t_m, 0.75) / l) * (k * pow(t_m, 0.75))), 2.0) / cos(k)));
}
return t_s * tmp;
}
t_m = abs(t)
t_s = copysign(1.0d0, t)
real(8) function code(t_s, t_m, l, k)
real(8), intent (in) :: t_s
real(8), intent (in) :: t_m
real(8), intent (in) :: l
real(8), intent (in) :: k
real(8) :: t_2
real(8) :: tmp
t_2 = 2.0d0 + ((k / t_m) ** 2.0d0)
if (t_m <= 3.5d-57) then
tmp = 2.0d0 / ((((k / l) * (1.0d0 / l)) * (k / cos(k))) * (t_m * (sin(k) ** 2.0d0)))
else if (t_m <= 8.5d+203) then
tmp = 2.0d0 / ((t_2 / cos(k)) * ((sin(k) * ((t_m ** 1.5d0) / l)) ** 2.0d0))
else
tmp = 2.0d0 / (t_2 * (((((t_m ** 0.75d0) / l) * (k * (t_m ** 0.75d0))) ** 2.0d0) / cos(k)))
end if
code = t_s * tmp
end function
t_m = Math.abs(t);
t_s = Math.copySign(1.0, t);
public static double code(double t_s, double t_m, double l, double k) {
double t_2 = 2.0 + Math.pow((k / t_m), 2.0);
double tmp;
if (t_m <= 3.5e-57) {
tmp = 2.0 / ((((k / l) * (1.0 / l)) * (k / Math.cos(k))) * (t_m * Math.pow(Math.sin(k), 2.0)));
} else if (t_m <= 8.5e+203) {
tmp = 2.0 / ((t_2 / Math.cos(k)) * Math.pow((Math.sin(k) * (Math.pow(t_m, 1.5) / l)), 2.0));
} else {
tmp = 2.0 / (t_2 * (Math.pow(((Math.pow(t_m, 0.75) / l) * (k * Math.pow(t_m, 0.75))), 2.0) / Math.cos(k)));
}
return t_s * tmp;
}
t_m = math.fabs(t) t_s = math.copysign(1.0, t) def code(t_s, t_m, l, k): t_2 = 2.0 + math.pow((k / t_m), 2.0) tmp = 0 if t_m <= 3.5e-57: tmp = 2.0 / ((((k / l) * (1.0 / l)) * (k / math.cos(k))) * (t_m * math.pow(math.sin(k), 2.0))) elif t_m <= 8.5e+203: tmp = 2.0 / ((t_2 / math.cos(k)) * math.pow((math.sin(k) * (math.pow(t_m, 1.5) / l)), 2.0)) else: tmp = 2.0 / (t_2 * (math.pow(((math.pow(t_m, 0.75) / l) * (k * math.pow(t_m, 0.75))), 2.0) / math.cos(k))) return t_s * tmp
t_m = abs(t) t_s = copysign(1.0, t) function code(t_s, t_m, l, k) t_2 = Float64(2.0 + (Float64(k / t_m) ^ 2.0)) tmp = 0.0 if (t_m <= 3.5e-57) tmp = Float64(2.0 / Float64(Float64(Float64(Float64(k / l) * Float64(1.0 / l)) * Float64(k / cos(k))) * Float64(t_m * (sin(k) ^ 2.0)))); elseif (t_m <= 8.5e+203) tmp = Float64(2.0 / Float64(Float64(t_2 / cos(k)) * (Float64(sin(k) * Float64((t_m ^ 1.5) / l)) ^ 2.0))); else tmp = Float64(2.0 / Float64(t_2 * Float64((Float64(Float64((t_m ^ 0.75) / l) * Float64(k * (t_m ^ 0.75))) ^ 2.0) / cos(k)))); end return Float64(t_s * tmp) end
t_m = abs(t); t_s = sign(t) * abs(1.0); function tmp_2 = code(t_s, t_m, l, k) t_2 = 2.0 + ((k / t_m) ^ 2.0); tmp = 0.0; if (t_m <= 3.5e-57) tmp = 2.0 / ((((k / l) * (1.0 / l)) * (k / cos(k))) * (t_m * (sin(k) ^ 2.0))); elseif (t_m <= 8.5e+203) tmp = 2.0 / ((t_2 / cos(k)) * ((sin(k) * ((t_m ^ 1.5) / l)) ^ 2.0)); else tmp = 2.0 / (t_2 * (((((t_m ^ 0.75) / l) * (k * (t_m ^ 0.75))) ^ 2.0) / cos(k))); end tmp_2 = t_s * tmp; end
t_m = N[Abs[t], $MachinePrecision]
t_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[t]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
code[t$95$s_, t$95$m_, l_, k_] := Block[{t$95$2 = N[(2.0 + N[Power[N[(k / t$95$m), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]}, N[(t$95$s * If[LessEqual[t$95$m, 3.5e-57], N[(2.0 / N[(N[(N[(N[(k / l), $MachinePrecision] * N[(1.0 / l), $MachinePrecision]), $MachinePrecision] * N[(k / N[Cos[k], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(t$95$m * N[Power[N[Sin[k], $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$m, 8.5e+203], N[(2.0 / N[(N[(t$95$2 / N[Cos[k], $MachinePrecision]), $MachinePrecision] * N[Power[N[(N[Sin[k], $MachinePrecision] * N[(N[Power[t$95$m, 1.5], $MachinePrecision] / l), $MachinePrecision]), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(2.0 / N[(t$95$2 * N[(N[Power[N[(N[(N[Power[t$95$m, 0.75], $MachinePrecision] / l), $MachinePrecision] * N[(k * N[Power[t$95$m, 0.75], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 2.0], $MachinePrecision] / N[Cos[k], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]), $MachinePrecision]]
\begin{array}{l}
t_m = \left|t\right|
\\
t_s = \mathsf{copysign}\left(1, t\right)
\\
\begin{array}{l}
t_2 := 2 + {\left(\frac{k}{t_m}\right)}^{2}\\
t_s \cdot \begin{array}{l}
\mathbf{if}\;t_m \leq 3.5 \cdot 10^{-57}:\\
\;\;\;\;\frac{2}{\left(\left(\frac{k}{\ell} \cdot \frac{1}{\ell}\right) \cdot \frac{k}{\cos k}\right) \cdot \left(t_m \cdot {\sin k}^{2}\right)}\\
\mathbf{elif}\;t_m \leq 8.5 \cdot 10^{+203}:\\
\;\;\;\;\frac{2}{\frac{t_2}{\cos k} \cdot {\left(\sin k \cdot \frac{{t_m}^{1.5}}{\ell}\right)}^{2}}\\
\mathbf{else}:\\
\;\;\;\;\frac{2}{t_2 \cdot \frac{{\left(\frac{{t_m}^{0.75}}{\ell} \cdot \left(k \cdot {t_m}^{0.75}\right)\right)}^{2}}{\cos k}}\\
\end{array}
\end{array}
\end{array}
if t < 3.49999999999999991e-57Initial program 49.6%
Taylor expanded in t around 0 66.7%
associate-/l*66.8%
associate-/r/66.3%
Simplified66.3%
unpow266.3%
times-frac70.0%
Applied egg-rr70.0%
*-un-lft-identity70.0%
metadata-eval70.0%
unpow270.0%
times-frac75.9%
metadata-eval75.9%
Applied egg-rr75.9%
*-commutative75.9%
Simplified75.9%
if 3.49999999999999991e-57 < t < 8.50000000000000025e203Initial program 67.8%
Simplified74.5%
associate-/l/69.3%
associate-*l/67.8%
add-sqr-sqrt67.7%
associate-*l*67.7%
sqrt-div67.7%
sqrt-pow167.7%
sqrt-prod34.4%
add-sqr-sqrt52.9%
metadata-eval52.9%
sqrt-div54.4%
sqrt-pow156.2%
sqrt-prod47.3%
add-sqr-sqrt88.5%
metadata-eval88.5%
Applied egg-rr88.5%
tan-quot88.5%
associate-*r/88.5%
*-commutative88.5%
associate-*r*93.0%
pow193.0%
metadata-eval93.0%
pow193.0%
metadata-eval93.0%
pow-sqr93.0%
associate-*l/92.9%
associate-/l*88.5%
metadata-eval88.5%
metadata-eval88.5%
Applied egg-rr88.5%
*-commutative88.5%
clear-num88.5%
un-div-inv88.5%
div-inv88.5%
clear-num89.3%
Applied egg-rr89.3%
associate-/r/89.2%
associate-*r/92.9%
*-commutative92.9%
associate-*r/93.1%
Simplified93.1%
if 8.50000000000000025e203 < t Initial program 54.4%
Simplified66.7%
associate-/l/54.4%
associate-*l/54.4%
add-sqr-sqrt54.4%
associate-*l*54.4%
sqrt-div54.4%
sqrt-pow154.4%
sqrt-prod15.6%
add-sqr-sqrt54.4%
metadata-eval54.4%
sqrt-div54.4%
sqrt-pow154.4%
sqrt-prod19.9%
add-sqr-sqrt66.7%
metadata-eval66.7%
Applied egg-rr66.7%
tan-quot66.7%
associate-*r/66.7%
*-commutative66.7%
associate-*r*66.7%
pow166.7%
metadata-eval66.7%
pow166.7%
metadata-eval66.7%
pow-sqr66.7%
associate-*l/66.7%
associate-/l*65.7%
metadata-eval65.7%
metadata-eval65.7%
Applied egg-rr65.7%
sqr-pow65.7%
div-inv65.7%
times-frac99.4%
metadata-eval99.4%
metadata-eval99.4%
Applied egg-rr99.4%
associate-/r/99.3%
/-rgt-identity99.3%
Simplified99.3%
Taylor expanded in k around 0 99.3%
Final simplification82.4%
t_m = (fabs.f64 t)
t_s = (copysign.f64 1 t)
(FPCore (t_s t_m l k)
:precision binary64
(*
t_s
(if (<= t_m 3e-55)
(/
2.0
(* (* (* (/ k l) (/ 1.0 l)) (/ k (cos k))) (* t_m (pow (sin k) 2.0))))
(*
(cos k)
(/
-2.0
(*
(pow (/ (sin k) (/ l (pow t_m 1.5))) 2.0)
(- -2.0 (pow (/ k t_m) 2.0))))))))t_m = fabs(t);
t_s = copysign(1.0, t);
double code(double t_s, double t_m, double l, double k) {
double tmp;
if (t_m <= 3e-55) {
tmp = 2.0 / ((((k / l) * (1.0 / l)) * (k / cos(k))) * (t_m * pow(sin(k), 2.0)));
} else {
tmp = cos(k) * (-2.0 / (pow((sin(k) / (l / pow(t_m, 1.5))), 2.0) * (-2.0 - pow((k / t_m), 2.0))));
}
return t_s * tmp;
}
t_m = abs(t)
t_s = copysign(1.0d0, t)
real(8) function code(t_s, t_m, l, k)
real(8), intent (in) :: t_s
real(8), intent (in) :: t_m
real(8), intent (in) :: l
real(8), intent (in) :: k
real(8) :: tmp
if (t_m <= 3d-55) then
tmp = 2.0d0 / ((((k / l) * (1.0d0 / l)) * (k / cos(k))) * (t_m * (sin(k) ** 2.0d0)))
else
tmp = cos(k) * ((-2.0d0) / (((sin(k) / (l / (t_m ** 1.5d0))) ** 2.0d0) * ((-2.0d0) - ((k / t_m) ** 2.0d0))))
end if
code = t_s * tmp
end function
t_m = Math.abs(t);
t_s = Math.copySign(1.0, t);
public static double code(double t_s, double t_m, double l, double k) {
double tmp;
if (t_m <= 3e-55) {
tmp = 2.0 / ((((k / l) * (1.0 / l)) * (k / Math.cos(k))) * (t_m * Math.pow(Math.sin(k), 2.0)));
} else {
tmp = Math.cos(k) * (-2.0 / (Math.pow((Math.sin(k) / (l / Math.pow(t_m, 1.5))), 2.0) * (-2.0 - Math.pow((k / t_m), 2.0))));
}
return t_s * tmp;
}
t_m = math.fabs(t) t_s = math.copysign(1.0, t) def code(t_s, t_m, l, k): tmp = 0 if t_m <= 3e-55: tmp = 2.0 / ((((k / l) * (1.0 / l)) * (k / math.cos(k))) * (t_m * math.pow(math.sin(k), 2.0))) else: tmp = math.cos(k) * (-2.0 / (math.pow((math.sin(k) / (l / math.pow(t_m, 1.5))), 2.0) * (-2.0 - math.pow((k / t_m), 2.0)))) return t_s * tmp
t_m = abs(t) t_s = copysign(1.0, t) function code(t_s, t_m, l, k) tmp = 0.0 if (t_m <= 3e-55) tmp = Float64(2.0 / Float64(Float64(Float64(Float64(k / l) * Float64(1.0 / l)) * Float64(k / cos(k))) * Float64(t_m * (sin(k) ^ 2.0)))); else tmp = Float64(cos(k) * Float64(-2.0 / Float64((Float64(sin(k) / Float64(l / (t_m ^ 1.5))) ^ 2.0) * Float64(-2.0 - (Float64(k / t_m) ^ 2.0))))); end return Float64(t_s * tmp) end
t_m = abs(t); t_s = sign(t) * abs(1.0); function tmp_2 = code(t_s, t_m, l, k) tmp = 0.0; if (t_m <= 3e-55) tmp = 2.0 / ((((k / l) * (1.0 / l)) * (k / cos(k))) * (t_m * (sin(k) ^ 2.0))); else tmp = cos(k) * (-2.0 / (((sin(k) / (l / (t_m ^ 1.5))) ^ 2.0) * (-2.0 - ((k / t_m) ^ 2.0)))); end tmp_2 = t_s * tmp; end
t_m = N[Abs[t], $MachinePrecision]
t_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[t]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
code[t$95$s_, t$95$m_, l_, k_] := N[(t$95$s * If[LessEqual[t$95$m, 3e-55], N[(2.0 / N[(N[(N[(N[(k / l), $MachinePrecision] * N[(1.0 / l), $MachinePrecision]), $MachinePrecision] * N[(k / N[Cos[k], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(t$95$m * N[Power[N[Sin[k], $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[Cos[k], $MachinePrecision] * N[(-2.0 / N[(N[Power[N[(N[Sin[k], $MachinePrecision] / N[(l / N[Power[t$95$m, 1.5], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 2.0], $MachinePrecision] * N[(-2.0 - N[Power[N[(k / t$95$m), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]), $MachinePrecision]
\begin{array}{l}
t_m = \left|t\right|
\\
t_s = \mathsf{copysign}\left(1, t\right)
\\
t_s \cdot \begin{array}{l}
\mathbf{if}\;t_m \leq 3 \cdot 10^{-55}:\\
\;\;\;\;\frac{2}{\left(\left(\frac{k}{\ell} \cdot \frac{1}{\ell}\right) \cdot \frac{k}{\cos k}\right) \cdot \left(t_m \cdot {\sin k}^{2}\right)}\\
\mathbf{else}:\\
\;\;\;\;\cos k \cdot \frac{-2}{{\left(\frac{\sin k}{\frac{\ell}{{t_m}^{1.5}}}\right)}^{2} \cdot \left(-2 - {\left(\frac{k}{t_m}\right)}^{2}\right)}\\
\end{array}
\end{array}
if t < 3.00000000000000016e-55Initial program 49.6%
Taylor expanded in t around 0 66.7%
associate-/l*66.8%
associate-/r/66.3%
Simplified66.3%
unpow266.3%
times-frac70.0%
Applied egg-rr70.0%
*-un-lft-identity70.0%
metadata-eval70.0%
unpow270.0%
times-frac75.9%
metadata-eval75.9%
Applied egg-rr75.9%
*-commutative75.9%
Simplified75.9%
if 3.00000000000000016e-55 < t Initial program 63.8%
Simplified72.2%
associate-/l/64.8%
associate-*l/63.8%
add-sqr-sqrt63.7%
associate-*l*63.7%
sqrt-div63.7%
sqrt-pow163.7%
sqrt-prod28.8%
add-sqr-sqrt53.3%
metadata-eval53.3%
sqrt-div54.4%
sqrt-pow155.7%
sqrt-prod39.1%
add-sqr-sqrt82.0%
metadata-eval82.0%
Applied egg-rr82.0%
tan-quot82.0%
associate-*r/82.0%
*-commutative82.0%
associate-*r*85.1%
pow185.1%
metadata-eval85.1%
pow185.1%
metadata-eval85.1%
pow-sqr85.1%
associate-*l/85.1%
associate-/l*81.7%
metadata-eval81.7%
metadata-eval81.7%
Applied egg-rr81.7%
sqr-pow81.6%
div-inv81.6%
times-frac94.8%
metadata-eval94.8%
metadata-eval94.8%
Applied egg-rr94.8%
associate-/r/94.9%
/-rgt-identity94.9%
Simplified94.9%
Applied egg-rr82.2%
associate-*r/82.2%
metadata-eval82.2%
associate-*l/82.2%
associate-/r/82.2%
*-commutative82.2%
associate-/r/85.0%
unsub-neg85.0%
Simplified85.0%
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 2.8e-57)
(/
2.0
(* (* (* (/ k l) (/ 1.0 l)) (/ k (cos k))) (* t_m (pow (sin k) 2.0))))
(/
2.0
(*
(/ (+ 2.0 (pow (/ k t_m) 2.0)) (cos k))
(pow (* (sin k) (/ (pow t_m 1.5) l)) 2.0))))))t_m = fabs(t);
t_s = copysign(1.0, t);
double code(double t_s, double t_m, double l, double k) {
double tmp;
if (t_m <= 2.8e-57) {
tmp = 2.0 / ((((k / l) * (1.0 / l)) * (k / cos(k))) * (t_m * pow(sin(k), 2.0)));
} else {
tmp = 2.0 / (((2.0 + pow((k / t_m), 2.0)) / cos(k)) * pow((sin(k) * (pow(t_m, 1.5) / l)), 2.0));
}
return t_s * tmp;
}
t_m = abs(t)
t_s = copysign(1.0d0, t)
real(8) function code(t_s, t_m, l, k)
real(8), intent (in) :: t_s
real(8), intent (in) :: t_m
real(8), intent (in) :: l
real(8), intent (in) :: k
real(8) :: tmp
if (t_m <= 2.8d-57) then
tmp = 2.0d0 / ((((k / l) * (1.0d0 / l)) * (k / cos(k))) * (t_m * (sin(k) ** 2.0d0)))
else
tmp = 2.0d0 / (((2.0d0 + ((k / t_m) ** 2.0d0)) / cos(k)) * ((sin(k) * ((t_m ** 1.5d0) / l)) ** 2.0d0))
end if
code = t_s * tmp
end function
t_m = Math.abs(t);
t_s = Math.copySign(1.0, t);
public static double code(double t_s, double t_m, double l, double k) {
double tmp;
if (t_m <= 2.8e-57) {
tmp = 2.0 / ((((k / l) * (1.0 / l)) * (k / Math.cos(k))) * (t_m * Math.pow(Math.sin(k), 2.0)));
} else {
tmp = 2.0 / (((2.0 + Math.pow((k / t_m), 2.0)) / Math.cos(k)) * Math.pow((Math.sin(k) * (Math.pow(t_m, 1.5) / l)), 2.0));
}
return t_s * tmp;
}
t_m = math.fabs(t) t_s = math.copysign(1.0, t) def code(t_s, t_m, l, k): tmp = 0 if t_m <= 2.8e-57: tmp = 2.0 / ((((k / l) * (1.0 / l)) * (k / math.cos(k))) * (t_m * math.pow(math.sin(k), 2.0))) else: tmp = 2.0 / (((2.0 + math.pow((k / t_m), 2.0)) / math.cos(k)) * math.pow((math.sin(k) * (math.pow(t_m, 1.5) / l)), 2.0)) return t_s * tmp
t_m = abs(t) t_s = copysign(1.0, t) function code(t_s, t_m, l, k) tmp = 0.0 if (t_m <= 2.8e-57) tmp = Float64(2.0 / Float64(Float64(Float64(Float64(k / l) * Float64(1.0 / l)) * Float64(k / cos(k))) * Float64(t_m * (sin(k) ^ 2.0)))); else tmp = Float64(2.0 / Float64(Float64(Float64(2.0 + (Float64(k / t_m) ^ 2.0)) / cos(k)) * (Float64(sin(k) * Float64((t_m ^ 1.5) / l)) ^ 2.0))); end return Float64(t_s * tmp) end
t_m = abs(t); t_s = sign(t) * abs(1.0); function tmp_2 = code(t_s, t_m, l, k) tmp = 0.0; if (t_m <= 2.8e-57) tmp = 2.0 / ((((k / l) * (1.0 / l)) * (k / cos(k))) * (t_m * (sin(k) ^ 2.0))); else tmp = 2.0 / (((2.0 + ((k / t_m) ^ 2.0)) / cos(k)) * ((sin(k) * ((t_m ^ 1.5) / l)) ^ 2.0)); end tmp_2 = t_s * tmp; end
t_m = N[Abs[t], $MachinePrecision]
t_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[t]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
code[t$95$s_, t$95$m_, l_, k_] := N[(t$95$s * If[LessEqual[t$95$m, 2.8e-57], N[(2.0 / N[(N[(N[(N[(k / l), $MachinePrecision] * N[(1.0 / l), $MachinePrecision]), $MachinePrecision] * N[(k / N[Cos[k], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(t$95$m * N[Power[N[Sin[k], $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(2.0 / N[(N[(N[(2.0 + N[Power[N[(k / t$95$m), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision] / N[Cos[k], $MachinePrecision]), $MachinePrecision] * N[Power[N[(N[Sin[k], $MachinePrecision] * N[(N[Power[t$95$m, 1.5], $MachinePrecision] / l), $MachinePrecision]), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]), $MachinePrecision]
\begin{array}{l}
t_m = \left|t\right|
\\
t_s = \mathsf{copysign}\left(1, t\right)
\\
t_s \cdot \begin{array}{l}
\mathbf{if}\;t_m \leq 2.8 \cdot 10^{-57}:\\
\;\;\;\;\frac{2}{\left(\left(\frac{k}{\ell} \cdot \frac{1}{\ell}\right) \cdot \frac{k}{\cos k}\right) \cdot \left(t_m \cdot {\sin k}^{2}\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{2}{\frac{2 + {\left(\frac{k}{t_m}\right)}^{2}}{\cos k} \cdot {\left(\sin k \cdot \frac{{t_m}^{1.5}}{\ell}\right)}^{2}}\\
\end{array}
\end{array}
if t < 2.7999999999999999e-57Initial program 49.6%
Taylor expanded in t around 0 66.7%
associate-/l*66.8%
associate-/r/66.3%
Simplified66.3%
unpow266.3%
times-frac70.0%
Applied egg-rr70.0%
*-un-lft-identity70.0%
metadata-eval70.0%
unpow270.0%
times-frac75.9%
metadata-eval75.9%
Applied egg-rr75.9%
*-commutative75.9%
Simplified75.9%
if 2.7999999999999999e-57 < t Initial program 63.8%
Simplified72.2%
associate-/l/64.8%
associate-*l/63.8%
add-sqr-sqrt63.7%
associate-*l*63.7%
sqrt-div63.7%
sqrt-pow163.7%
sqrt-prod28.8%
add-sqr-sqrt53.3%
metadata-eval53.3%
sqrt-div54.4%
sqrt-pow155.7%
sqrt-prod39.1%
add-sqr-sqrt82.0%
metadata-eval82.0%
Applied egg-rr82.0%
tan-quot82.0%
associate-*r/82.0%
*-commutative82.0%
associate-*r*85.1%
pow185.1%
metadata-eval85.1%
pow185.1%
metadata-eval85.1%
pow-sqr85.1%
associate-*l/85.1%
associate-/l*81.7%
metadata-eval81.7%
metadata-eval81.7%
Applied egg-rr81.7%
*-commutative81.7%
clear-num81.7%
un-div-inv81.7%
div-inv81.7%
clear-num82.3%
Applied egg-rr82.3%
associate-/r/82.2%
associate-*r/85.1%
*-commutative85.1%
associate-*r/85.2%
Simplified85.2%
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 2.5e-56)
(/
2.0
(* (* (* (/ k l) (/ 1.0 l)) (/ k (cos k))) (* t_m (pow (sin k) 2.0))))
(/
2.0
(*
(/ (pow (/ (pow t_m 1.5) (/ l (sin k))) 2.0) (cos k))
(+ 2.0 (/ (/ k t_m) (/ t_m k))))))))t_m = fabs(t);
t_s = copysign(1.0, t);
double code(double t_s, double t_m, double l, double k) {
double tmp;
if (t_m <= 2.5e-56) {
tmp = 2.0 / ((((k / l) * (1.0 / l)) * (k / cos(k))) * (t_m * pow(sin(k), 2.0)));
} else {
tmp = 2.0 / ((pow((pow(t_m, 1.5) / (l / sin(k))), 2.0) / cos(k)) * (2.0 + ((k / t_m) / (t_m / k))));
}
return t_s * tmp;
}
t_m = abs(t)
t_s = copysign(1.0d0, t)
real(8) function code(t_s, t_m, l, k)
real(8), intent (in) :: t_s
real(8), intent (in) :: t_m
real(8), intent (in) :: l
real(8), intent (in) :: k
real(8) :: tmp
if (t_m <= 2.5d-56) then
tmp = 2.0d0 / ((((k / l) * (1.0d0 / l)) * (k / cos(k))) * (t_m * (sin(k) ** 2.0d0)))
else
tmp = 2.0d0 / (((((t_m ** 1.5d0) / (l / sin(k))) ** 2.0d0) / cos(k)) * (2.0d0 + ((k / t_m) / (t_m / k))))
end if
code = t_s * tmp
end function
t_m = Math.abs(t);
t_s = Math.copySign(1.0, t);
public static double code(double t_s, double t_m, double l, double k) {
double tmp;
if (t_m <= 2.5e-56) {
tmp = 2.0 / ((((k / l) * (1.0 / l)) * (k / Math.cos(k))) * (t_m * Math.pow(Math.sin(k), 2.0)));
} else {
tmp = 2.0 / ((Math.pow((Math.pow(t_m, 1.5) / (l / Math.sin(k))), 2.0) / Math.cos(k)) * (2.0 + ((k / t_m) / (t_m / k))));
}
return t_s * tmp;
}
t_m = math.fabs(t) t_s = math.copysign(1.0, t) def code(t_s, t_m, l, k): tmp = 0 if t_m <= 2.5e-56: tmp = 2.0 / ((((k / l) * (1.0 / l)) * (k / math.cos(k))) * (t_m * math.pow(math.sin(k), 2.0))) else: tmp = 2.0 / ((math.pow((math.pow(t_m, 1.5) / (l / math.sin(k))), 2.0) / math.cos(k)) * (2.0 + ((k / t_m) / (t_m / k)))) return t_s * tmp
t_m = abs(t) t_s = copysign(1.0, t) function code(t_s, t_m, l, k) tmp = 0.0 if (t_m <= 2.5e-56) tmp = Float64(2.0 / Float64(Float64(Float64(Float64(k / l) * Float64(1.0 / l)) * Float64(k / cos(k))) * Float64(t_m * (sin(k) ^ 2.0)))); else tmp = Float64(2.0 / Float64(Float64((Float64((t_m ^ 1.5) / Float64(l / sin(k))) ^ 2.0) / cos(k)) * Float64(2.0 + Float64(Float64(k / t_m) / Float64(t_m / k))))); end return Float64(t_s * tmp) end
t_m = abs(t); t_s = sign(t) * abs(1.0); function tmp_2 = code(t_s, t_m, l, k) tmp = 0.0; if (t_m <= 2.5e-56) tmp = 2.0 / ((((k / l) * (1.0 / l)) * (k / cos(k))) * (t_m * (sin(k) ^ 2.0))); else tmp = 2.0 / (((((t_m ^ 1.5) / (l / sin(k))) ^ 2.0) / cos(k)) * (2.0 + ((k / t_m) / (t_m / k)))); end tmp_2 = t_s * tmp; end
t_m = N[Abs[t], $MachinePrecision]
t_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[t]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
code[t$95$s_, t$95$m_, l_, k_] := N[(t$95$s * If[LessEqual[t$95$m, 2.5e-56], N[(2.0 / N[(N[(N[(N[(k / l), $MachinePrecision] * N[(1.0 / l), $MachinePrecision]), $MachinePrecision] * N[(k / N[Cos[k], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(t$95$m * N[Power[N[Sin[k], $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(2.0 / N[(N[(N[Power[N[(N[Power[t$95$m, 1.5], $MachinePrecision] / N[(l / N[Sin[k], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 2.0], $MachinePrecision] / N[Cos[k], $MachinePrecision]), $MachinePrecision] * N[(2.0 + N[(N[(k / t$95$m), $MachinePrecision] / N[(t$95$m / k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]), $MachinePrecision]
\begin{array}{l}
t_m = \left|t\right|
\\
t_s = \mathsf{copysign}\left(1, t\right)
\\
t_s \cdot \begin{array}{l}
\mathbf{if}\;t_m \leq 2.5 \cdot 10^{-56}:\\
\;\;\;\;\frac{2}{\left(\left(\frac{k}{\ell} \cdot \frac{1}{\ell}\right) \cdot \frac{k}{\cos k}\right) \cdot \left(t_m \cdot {\sin k}^{2}\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{2}{\frac{{\left(\frac{{t_m}^{1.5}}{\frac{\ell}{\sin k}}\right)}^{2}}{\cos k} \cdot \left(2 + \frac{\frac{k}{t_m}}{\frac{t_m}{k}}\right)}\\
\end{array}
\end{array}
if t < 2.49999999999999999e-56Initial program 49.6%
Taylor expanded in t around 0 66.7%
associate-/l*66.8%
associate-/r/66.3%
Simplified66.3%
unpow266.3%
times-frac70.0%
Applied egg-rr70.0%
*-un-lft-identity70.0%
metadata-eval70.0%
unpow270.0%
times-frac75.9%
metadata-eval75.9%
Applied egg-rr75.9%
*-commutative75.9%
Simplified75.9%
if 2.49999999999999999e-56 < t Initial program 63.8%
Simplified72.2%
associate-/l/64.8%
associate-*l/63.8%
add-sqr-sqrt63.7%
associate-*l*63.7%
sqrt-div63.7%
sqrt-pow163.7%
sqrt-prod28.8%
add-sqr-sqrt53.3%
metadata-eval53.3%
sqrt-div54.4%
sqrt-pow155.7%
sqrt-prod39.1%
add-sqr-sqrt82.0%
metadata-eval82.0%
Applied egg-rr82.0%
tan-quot82.0%
associate-*r/82.0%
*-commutative82.0%
associate-*r*85.1%
pow185.1%
metadata-eval85.1%
pow185.1%
metadata-eval85.1%
pow-sqr85.1%
associate-*l/85.1%
associate-/l*81.7%
metadata-eval81.7%
metadata-eval81.7%
Applied egg-rr81.7%
unpow281.7%
clear-num81.6%
un-div-inv81.7%
Applied egg-rr81.7%
Final simplification77.8%
t_m = (fabs.f64 t)
t_s = (copysign.f64 1 t)
(FPCore (t_s t_m l k)
:precision binary64
(let* ((t_2 (/ l (* k (pow t_m 1.5))))
(t_3 (/ k (cos k)))
(t_4 (* t_m (pow (sin k) 2.0))))
(*
t_s
(if (<= k 0.55)
(* t_2 t_2)
(if (<= k 1e+185)
(/ 2.0 (/ (- k) (/ (- (pow l 2.0)) (* t_3 t_4))))
(/ 2.0 (* (* (* (/ k l) (/ 1.0 l)) t_3) t_4)))))))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 = l / (k * pow(t_m, 1.5));
double t_3 = k / cos(k);
double t_4 = t_m * pow(sin(k), 2.0);
double tmp;
if (k <= 0.55) {
tmp = t_2 * t_2;
} else if (k <= 1e+185) {
tmp = 2.0 / (-k / (-pow(l, 2.0) / (t_3 * t_4)));
} else {
tmp = 2.0 / ((((k / l) * (1.0 / l)) * t_3) * t_4);
}
return t_s * tmp;
}
t_m = abs(t)
t_s = copysign(1.0d0, t)
real(8) function code(t_s, t_m, l, k)
real(8), intent (in) :: t_s
real(8), intent (in) :: t_m
real(8), intent (in) :: l
real(8), intent (in) :: k
real(8) :: t_2
real(8) :: t_3
real(8) :: t_4
real(8) :: tmp
t_2 = l / (k * (t_m ** 1.5d0))
t_3 = k / cos(k)
t_4 = t_m * (sin(k) ** 2.0d0)
if (k <= 0.55d0) then
tmp = t_2 * t_2
else if (k <= 1d+185) then
tmp = 2.0d0 / (-k / (-(l ** 2.0d0) / (t_3 * t_4)))
else
tmp = 2.0d0 / ((((k / l) * (1.0d0 / l)) * t_3) * t_4)
end if
code = t_s * tmp
end function
t_m = Math.abs(t);
t_s = Math.copySign(1.0, t);
public static double code(double t_s, double t_m, double l, double k) {
double t_2 = l / (k * Math.pow(t_m, 1.5));
double t_3 = k / Math.cos(k);
double t_4 = t_m * Math.pow(Math.sin(k), 2.0);
double tmp;
if (k <= 0.55) {
tmp = t_2 * t_2;
} else if (k <= 1e+185) {
tmp = 2.0 / (-k / (-Math.pow(l, 2.0) / (t_3 * t_4)));
} else {
tmp = 2.0 / ((((k / l) * (1.0 / l)) * t_3) * t_4);
}
return t_s * tmp;
}
t_m = math.fabs(t) t_s = math.copysign(1.0, t) def code(t_s, t_m, l, k): t_2 = l / (k * math.pow(t_m, 1.5)) t_3 = k / math.cos(k) t_4 = t_m * math.pow(math.sin(k), 2.0) tmp = 0 if k <= 0.55: tmp = t_2 * t_2 elif k <= 1e+185: tmp = 2.0 / (-k / (-math.pow(l, 2.0) / (t_3 * t_4))) else: tmp = 2.0 / ((((k / l) * (1.0 / l)) * t_3) * t_4) return t_s * tmp
t_m = abs(t) t_s = copysign(1.0, t) function code(t_s, t_m, l, k) t_2 = Float64(l / Float64(k * (t_m ^ 1.5))) t_3 = Float64(k / cos(k)) t_4 = Float64(t_m * (sin(k) ^ 2.0)) tmp = 0.0 if (k <= 0.55) tmp = Float64(t_2 * t_2); elseif (k <= 1e+185) tmp = Float64(2.0 / Float64(Float64(-k) / Float64(Float64(-(l ^ 2.0)) / Float64(t_3 * t_4)))); else tmp = Float64(2.0 / Float64(Float64(Float64(Float64(k / l) * Float64(1.0 / l)) * t_3) * t_4)); end return Float64(t_s * tmp) end
t_m = abs(t); t_s = sign(t) * abs(1.0); function tmp_2 = code(t_s, t_m, l, k) t_2 = l / (k * (t_m ^ 1.5)); t_3 = k / cos(k); t_4 = t_m * (sin(k) ^ 2.0); tmp = 0.0; if (k <= 0.55) tmp = t_2 * t_2; elseif (k <= 1e+185) tmp = 2.0 / (-k / (-(l ^ 2.0) / (t_3 * t_4))); else tmp = 2.0 / ((((k / l) * (1.0 / l)) * t_3) * t_4); end tmp_2 = t_s * tmp; end
t_m = N[Abs[t], $MachinePrecision]
t_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[t]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
code[t$95$s_, t$95$m_, l_, k_] := Block[{t$95$2 = N[(l / N[(k * N[Power[t$95$m, 1.5], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(k / N[Cos[k], $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(t$95$m * N[Power[N[Sin[k], $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]}, N[(t$95$s * If[LessEqual[k, 0.55], N[(t$95$2 * t$95$2), $MachinePrecision], If[LessEqual[k, 1e+185], N[(2.0 / N[((-k) / N[((-N[Power[l, 2.0], $MachinePrecision]) / N[(t$95$3 * t$95$4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(2.0 / N[(N[(N[(N[(k / l), $MachinePrecision] * N[(1.0 / l), $MachinePrecision]), $MachinePrecision] * t$95$3), $MachinePrecision] * t$95$4), $MachinePrecision]), $MachinePrecision]]]), $MachinePrecision]]]]
\begin{array}{l}
t_m = \left|t\right|
\\
t_s = \mathsf{copysign}\left(1, t\right)
\\
\begin{array}{l}
t_2 := \frac{\ell}{k \cdot {t_m}^{1.5}}\\
t_3 := \frac{k}{\cos k}\\
t_4 := t_m \cdot {\sin k}^{2}\\
t_s \cdot \begin{array}{l}
\mathbf{if}\;k \leq 0.55:\\
\;\;\;\;t_2 \cdot t_2\\
\mathbf{elif}\;k \leq 10^{+185}:\\
\;\;\;\;\frac{2}{\frac{-k}{\frac{-{\ell}^{2}}{t_3 \cdot t_4}}}\\
\mathbf{else}:\\
\;\;\;\;\frac{2}{\left(\left(\frac{k}{\ell} \cdot \frac{1}{\ell}\right) \cdot t_3\right) \cdot t_4}\\
\end{array}
\end{array}
\end{array}
if k < 0.55000000000000004Initial program 55.9%
*-commutative55.9%
associate-*r*55.9%
*-commutative55.9%
associate-/r*55.9%
associate-/l/55.9%
associate-/r/55.8%
associate-/r/55.8%
associate-/l*61.0%
+-commutative61.0%
associate-+r+61.0%
metadata-eval61.0%
Simplified61.0%
Taylor expanded in k around 0 49.7%
unpow249.7%
add-sqr-sqrt24.7%
times-frac28.4%
*-commutative28.4%
sqrt-prod28.4%
sqrt-pow128.4%
metadata-eval28.4%
unpow228.4%
sqrt-prod9.9%
add-sqr-sqrt20.6%
*-commutative20.6%
sqrt-prod21.5%
sqrt-pow123.4%
metadata-eval23.4%
unpow223.4%
sqrt-prod14.6%
add-sqr-sqrt36.6%
Applied egg-rr36.6%
if 0.55000000000000004 < k < 9.9999999999999998e184Initial program 54.6%
Taylor expanded in t around 0 79.2%
associate-/l*75.4%
associate-/r/71.6%
Simplified71.6%
unpow271.6%
times-frac71.6%
Applied egg-rr71.6%
associate-*l*83.2%
frac-2neg83.2%
associate-*l/86.9%
Applied egg-rr86.9%
associate-/l*86.9%
*-commutative86.9%
Simplified86.9%
if 9.9999999999999998e184 < k Initial program 42.3%
Taylor expanded in t around 0 62.0%
associate-/l*61.5%
associate-/r/62.0%
Simplified62.0%
unpow262.0%
times-frac70.7%
Applied egg-rr70.7%
*-un-lft-identity70.7%
metadata-eval70.7%
unpow270.7%
times-frac89.0%
metadata-eval89.0%
Applied egg-rr89.0%
*-commutative89.0%
Simplified89.0%
Final simplification46.6%
t_m = (fabs.f64 t)
t_s = (copysign.f64 1 t)
(FPCore (t_s t_m l k)
:precision binary64
(let* ((t_2 (/ k (cos k)))
(t_3 (/ l (* k (pow t_m 1.5))))
(t_4 (* t_m (pow (sin k) 2.0))))
(*
t_s
(if (<= k 0.97)
(* t_3 t_3)
(if (<= k 1.85e+183)
(/ 2.0 (/ (* k (* t_2 t_4)) (pow l 2.0)))
(/ 2.0 (* (* (* (/ k l) (/ 1.0 l)) t_2) t_4)))))))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 = k / cos(k);
double t_3 = l / (k * pow(t_m, 1.5));
double t_4 = t_m * pow(sin(k), 2.0);
double tmp;
if (k <= 0.97) {
tmp = t_3 * t_3;
} else if (k <= 1.85e+183) {
tmp = 2.0 / ((k * (t_2 * t_4)) / pow(l, 2.0));
} else {
tmp = 2.0 / ((((k / l) * (1.0 / l)) * t_2) * t_4);
}
return t_s * tmp;
}
t_m = abs(t)
t_s = copysign(1.0d0, t)
real(8) function code(t_s, t_m, l, k)
real(8), intent (in) :: t_s
real(8), intent (in) :: t_m
real(8), intent (in) :: l
real(8), intent (in) :: k
real(8) :: t_2
real(8) :: t_3
real(8) :: t_4
real(8) :: tmp
t_2 = k / cos(k)
t_3 = l / (k * (t_m ** 1.5d0))
t_4 = t_m * (sin(k) ** 2.0d0)
if (k <= 0.97d0) then
tmp = t_3 * t_3
else if (k <= 1.85d+183) then
tmp = 2.0d0 / ((k * (t_2 * t_4)) / (l ** 2.0d0))
else
tmp = 2.0d0 / ((((k / l) * (1.0d0 / l)) * t_2) * t_4)
end if
code = t_s * tmp
end function
t_m = Math.abs(t);
t_s = Math.copySign(1.0, t);
public static double code(double t_s, double t_m, double l, double k) {
double t_2 = k / Math.cos(k);
double t_3 = l / (k * Math.pow(t_m, 1.5));
double t_4 = t_m * Math.pow(Math.sin(k), 2.0);
double tmp;
if (k <= 0.97) {
tmp = t_3 * t_3;
} else if (k <= 1.85e+183) {
tmp = 2.0 / ((k * (t_2 * t_4)) / Math.pow(l, 2.0));
} else {
tmp = 2.0 / ((((k / l) * (1.0 / l)) * t_2) * t_4);
}
return t_s * tmp;
}
t_m = math.fabs(t) t_s = math.copysign(1.0, t) def code(t_s, t_m, l, k): t_2 = k / math.cos(k) t_3 = l / (k * math.pow(t_m, 1.5)) t_4 = t_m * math.pow(math.sin(k), 2.0) tmp = 0 if k <= 0.97: tmp = t_3 * t_3 elif k <= 1.85e+183: tmp = 2.0 / ((k * (t_2 * t_4)) / math.pow(l, 2.0)) else: tmp = 2.0 / ((((k / l) * (1.0 / l)) * t_2) * t_4) 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(k / cos(k)) t_3 = Float64(l / Float64(k * (t_m ^ 1.5))) t_4 = Float64(t_m * (sin(k) ^ 2.0)) tmp = 0.0 if (k <= 0.97) tmp = Float64(t_3 * t_3); elseif (k <= 1.85e+183) tmp = Float64(2.0 / Float64(Float64(k * Float64(t_2 * t_4)) / (l ^ 2.0))); else tmp = Float64(2.0 / Float64(Float64(Float64(Float64(k / l) * Float64(1.0 / l)) * t_2) * t_4)); end return Float64(t_s * tmp) end
t_m = abs(t); t_s = sign(t) * abs(1.0); function tmp_2 = code(t_s, t_m, l, k) t_2 = k / cos(k); t_3 = l / (k * (t_m ^ 1.5)); t_4 = t_m * (sin(k) ^ 2.0); tmp = 0.0; if (k <= 0.97) tmp = t_3 * t_3; elseif (k <= 1.85e+183) tmp = 2.0 / ((k * (t_2 * t_4)) / (l ^ 2.0)); else tmp = 2.0 / ((((k / l) * (1.0 / l)) * t_2) * t_4); end tmp_2 = t_s * tmp; end
t_m = N[Abs[t], $MachinePrecision]
t_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[t]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
code[t$95$s_, t$95$m_, l_, k_] := Block[{t$95$2 = N[(k / N[Cos[k], $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(l / N[(k * N[Power[t$95$m, 1.5], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(t$95$m * N[Power[N[Sin[k], $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]}, N[(t$95$s * If[LessEqual[k, 0.97], N[(t$95$3 * t$95$3), $MachinePrecision], If[LessEqual[k, 1.85e+183], N[(2.0 / N[(N[(k * N[(t$95$2 * t$95$4), $MachinePrecision]), $MachinePrecision] / N[Power[l, 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(2.0 / N[(N[(N[(N[(k / l), $MachinePrecision] * N[(1.0 / l), $MachinePrecision]), $MachinePrecision] * t$95$2), $MachinePrecision] * t$95$4), $MachinePrecision]), $MachinePrecision]]]), $MachinePrecision]]]]
\begin{array}{l}
t_m = \left|t\right|
\\
t_s = \mathsf{copysign}\left(1, t\right)
\\
\begin{array}{l}
t_2 := \frac{k}{\cos k}\\
t_3 := \frac{\ell}{k \cdot {t_m}^{1.5}}\\
t_4 := t_m \cdot {\sin k}^{2}\\
t_s \cdot \begin{array}{l}
\mathbf{if}\;k \leq 0.97:\\
\;\;\;\;t_3 \cdot t_3\\
\mathbf{elif}\;k \leq 1.85 \cdot 10^{+183}:\\
\;\;\;\;\frac{2}{\frac{k \cdot \left(t_2 \cdot t_4\right)}{{\ell}^{2}}}\\
\mathbf{else}:\\
\;\;\;\;\frac{2}{\left(\left(\frac{k}{\ell} \cdot \frac{1}{\ell}\right) \cdot t_2\right) \cdot t_4}\\
\end{array}
\end{array}
\end{array}
if k < 0.96999999999999997Initial program 55.9%
*-commutative55.9%
associate-*r*55.9%
*-commutative55.9%
associate-/r*55.9%
associate-/l/55.9%
associate-/r/55.8%
associate-/r/55.8%
associate-/l*61.0%
+-commutative61.0%
associate-+r+61.0%
metadata-eval61.0%
Simplified61.0%
Taylor expanded in k around 0 49.7%
unpow249.7%
add-sqr-sqrt24.7%
times-frac28.4%
*-commutative28.4%
sqrt-prod28.4%
sqrt-pow128.4%
metadata-eval28.4%
unpow228.4%
sqrt-prod9.9%
add-sqr-sqrt20.6%
*-commutative20.6%
sqrt-prod21.5%
sqrt-pow123.4%
metadata-eval23.4%
unpow223.4%
sqrt-prod14.6%
add-sqr-sqrt36.6%
Applied egg-rr36.6%
if 0.96999999999999997 < k < 1.8500000000000001e183Initial program 54.6%
Taylor expanded in t around 0 79.2%
associate-/l*75.4%
associate-/r/71.6%
Simplified71.6%
unpow271.6%
times-frac71.6%
Applied egg-rr71.6%
associate-*l*83.2%
associate-*l/86.9%
Applied egg-rr86.9%
if 1.8500000000000001e183 < k Initial program 42.3%
Taylor expanded in t around 0 62.0%
associate-/l*61.5%
associate-/r/62.0%
Simplified62.0%
unpow262.0%
times-frac70.7%
Applied egg-rr70.7%
*-un-lft-identity70.7%
metadata-eval70.7%
unpow270.7%
times-frac89.0%
metadata-eval89.0%
Applied egg-rr89.0%
*-commutative89.0%
Simplified89.0%
Final simplification46.6%
t_m = (fabs.f64 t)
t_s = (copysign.f64 1 t)
(FPCore (t_s t_m l k)
:precision binary64
(let* ((t_2 (/ l (* k (pow t_m 1.5)))))
(*
t_s
(if (<= k 0.68)
(* t_2 t_2)
(/
2.0
(*
(* (* (/ k l) (/ 1.0 l)) (/ k (cos k)))
(* t_m (pow (sin k) 2.0))))))))t_m = fabs(t);
t_s = copysign(1.0, t);
double code(double t_s, double t_m, double l, double k) {
double t_2 = l / (k * pow(t_m, 1.5));
double tmp;
if (k <= 0.68) {
tmp = t_2 * t_2;
} else {
tmp = 2.0 / ((((k / l) * (1.0 / l)) * (k / cos(k))) * (t_m * pow(sin(k), 2.0)));
}
return t_s * tmp;
}
t_m = abs(t)
t_s = copysign(1.0d0, t)
real(8) function code(t_s, t_m, l, k)
real(8), intent (in) :: t_s
real(8), intent (in) :: t_m
real(8), intent (in) :: l
real(8), intent (in) :: k
real(8) :: t_2
real(8) :: tmp
t_2 = l / (k * (t_m ** 1.5d0))
if (k <= 0.68d0) then
tmp = t_2 * t_2
else
tmp = 2.0d0 / ((((k / l) * (1.0d0 / l)) * (k / cos(k))) * (t_m * (sin(k) ** 2.0d0)))
end if
code = t_s * tmp
end function
t_m = Math.abs(t);
t_s = Math.copySign(1.0, t);
public static double code(double t_s, double t_m, double l, double k) {
double t_2 = l / (k * Math.pow(t_m, 1.5));
double tmp;
if (k <= 0.68) {
tmp = t_2 * t_2;
} else {
tmp = 2.0 / ((((k / l) * (1.0 / l)) * (k / Math.cos(k))) * (t_m * Math.pow(Math.sin(k), 2.0)));
}
return t_s * tmp;
}
t_m = math.fabs(t) t_s = math.copysign(1.0, t) def code(t_s, t_m, l, k): t_2 = l / (k * math.pow(t_m, 1.5)) tmp = 0 if k <= 0.68: tmp = t_2 * t_2 else: tmp = 2.0 / ((((k / l) * (1.0 / l)) * (k / math.cos(k))) * (t_m * math.pow(math.sin(k), 2.0))) return t_s * tmp
t_m = abs(t) t_s = copysign(1.0, t) function code(t_s, t_m, l, k) t_2 = Float64(l / Float64(k * (t_m ^ 1.5))) tmp = 0.0 if (k <= 0.68) tmp = Float64(t_2 * t_2); else tmp = Float64(2.0 / Float64(Float64(Float64(Float64(k / l) * Float64(1.0 / l)) * Float64(k / cos(k))) * Float64(t_m * (sin(k) ^ 2.0)))); end return Float64(t_s * tmp) end
t_m = abs(t); t_s = sign(t) * abs(1.0); function tmp_2 = code(t_s, t_m, l, k) t_2 = l / (k * (t_m ^ 1.5)); tmp = 0.0; if (k <= 0.68) tmp = t_2 * t_2; else tmp = 2.0 / ((((k / l) * (1.0 / l)) * (k / cos(k))) * (t_m * (sin(k) ^ 2.0))); end tmp_2 = t_s * tmp; end
t_m = N[Abs[t], $MachinePrecision]
t_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[t]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
code[t$95$s_, t$95$m_, l_, k_] := Block[{t$95$2 = N[(l / N[(k * N[Power[t$95$m, 1.5], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, N[(t$95$s * If[LessEqual[k, 0.68], N[(t$95$2 * t$95$2), $MachinePrecision], N[(2.0 / N[(N[(N[(N[(k / l), $MachinePrecision] * N[(1.0 / l), $MachinePrecision]), $MachinePrecision] * N[(k / N[Cos[k], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(t$95$m * N[Power[N[Sin[k], $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]), $MachinePrecision]]
\begin{array}{l}
t_m = \left|t\right|
\\
t_s = \mathsf{copysign}\left(1, t\right)
\\
\begin{array}{l}
t_2 := \frac{\ell}{k \cdot {t_m}^{1.5}}\\
t_s \cdot \begin{array}{l}
\mathbf{if}\;k \leq 0.68:\\
\;\;\;\;t_2 \cdot t_2\\
\mathbf{else}:\\
\;\;\;\;\frac{2}{\left(\left(\frac{k}{\ell} \cdot \frac{1}{\ell}\right) \cdot \frac{k}{\cos k}\right) \cdot \left(t_m \cdot {\sin k}^{2}\right)}\\
\end{array}
\end{array}
\end{array}
if k < 0.680000000000000049Initial program 55.9%
*-commutative55.9%
associate-*r*55.9%
*-commutative55.9%
associate-/r*55.9%
associate-/l/55.9%
associate-/r/55.8%
associate-/r/55.8%
associate-/l*61.0%
+-commutative61.0%
associate-+r+61.0%
metadata-eval61.0%
Simplified61.0%
Taylor expanded in k around 0 49.7%
unpow249.7%
add-sqr-sqrt24.7%
times-frac28.4%
*-commutative28.4%
sqrt-prod28.4%
sqrt-pow128.4%
metadata-eval28.4%
unpow228.4%
sqrt-prod9.9%
add-sqr-sqrt20.6%
*-commutative20.6%
sqrt-prod21.5%
sqrt-pow123.4%
metadata-eval23.4%
unpow223.4%
sqrt-prod14.6%
add-sqr-sqrt36.6%
Applied egg-rr36.6%
if 0.680000000000000049 < k Initial program 48.2%
Taylor expanded in t around 0 70.2%
associate-/l*68.2%
associate-/r/66.6%
Simplified66.6%
unpow266.6%
times-frac71.1%
Applied egg-rr71.1%
*-un-lft-identity71.1%
metadata-eval71.1%
unpow271.1%
times-frac80.6%
metadata-eval80.6%
Applied egg-rr80.6%
*-commutative80.6%
Simplified80.6%
Final simplification45.2%
t_m = (fabs.f64 t)
t_s = (copysign.f64 1 t)
(FPCore (t_s t_m l k)
:precision binary64
(let* ((t_2 (/ l (* k (pow t_m 1.5)))))
(*
t_s
(if (<= k 1.95e+30)
(* t_2 t_2)
(/ 2.0 (* (* (/ k (cos k)) (/ k (pow l 2.0))) (* t_m (pow k 2.0))))))))t_m = fabs(t);
t_s = copysign(1.0, t);
double code(double t_s, double t_m, double l, double k) {
double t_2 = l / (k * pow(t_m, 1.5));
double tmp;
if (k <= 1.95e+30) {
tmp = t_2 * t_2;
} else {
tmp = 2.0 / (((k / cos(k)) * (k / pow(l, 2.0))) * (t_m * pow(k, 2.0)));
}
return t_s * tmp;
}
t_m = abs(t)
t_s = copysign(1.0d0, t)
real(8) function code(t_s, t_m, l, k)
real(8), intent (in) :: t_s
real(8), intent (in) :: t_m
real(8), intent (in) :: l
real(8), intent (in) :: k
real(8) :: t_2
real(8) :: tmp
t_2 = l / (k * (t_m ** 1.5d0))
if (k <= 1.95d+30) then
tmp = t_2 * t_2
else
tmp = 2.0d0 / (((k / cos(k)) * (k / (l ** 2.0d0))) * (t_m * (k ** 2.0d0)))
end if
code = t_s * tmp
end function
t_m = Math.abs(t);
t_s = Math.copySign(1.0, t);
public static double code(double t_s, double t_m, double l, double k) {
double t_2 = l / (k * Math.pow(t_m, 1.5));
double tmp;
if (k <= 1.95e+30) {
tmp = t_2 * t_2;
} else {
tmp = 2.0 / (((k / Math.cos(k)) * (k / Math.pow(l, 2.0))) * (t_m * Math.pow(k, 2.0)));
}
return t_s * tmp;
}
t_m = math.fabs(t) t_s = math.copysign(1.0, t) def code(t_s, t_m, l, k): t_2 = l / (k * math.pow(t_m, 1.5)) tmp = 0 if k <= 1.95e+30: tmp = t_2 * t_2 else: tmp = 2.0 / (((k / math.cos(k)) * (k / math.pow(l, 2.0))) * (t_m * math.pow(k, 2.0))) return t_s * tmp
t_m = abs(t) t_s = copysign(1.0, t) function code(t_s, t_m, l, k) t_2 = Float64(l / Float64(k * (t_m ^ 1.5))) tmp = 0.0 if (k <= 1.95e+30) tmp = Float64(t_2 * t_2); else tmp = Float64(2.0 / Float64(Float64(Float64(k / cos(k)) * Float64(k / (l ^ 2.0))) * Float64(t_m * (k ^ 2.0)))); end return Float64(t_s * tmp) end
t_m = abs(t); t_s = sign(t) * abs(1.0); function tmp_2 = code(t_s, t_m, l, k) t_2 = l / (k * (t_m ^ 1.5)); tmp = 0.0; if (k <= 1.95e+30) tmp = t_2 * t_2; else tmp = 2.0 / (((k / cos(k)) * (k / (l ^ 2.0))) * (t_m * (k ^ 2.0))); end tmp_2 = t_s * tmp; end
t_m = N[Abs[t], $MachinePrecision]
t_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[t]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
code[t$95$s_, t$95$m_, l_, k_] := Block[{t$95$2 = N[(l / N[(k * N[Power[t$95$m, 1.5], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, N[(t$95$s * If[LessEqual[k, 1.95e+30], N[(t$95$2 * t$95$2), $MachinePrecision], N[(2.0 / N[(N[(N[(k / N[Cos[k], $MachinePrecision]), $MachinePrecision] * N[(k / N[Power[l, 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(t$95$m * N[Power[k, 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]), $MachinePrecision]]
\begin{array}{l}
t_m = \left|t\right|
\\
t_s = \mathsf{copysign}\left(1, t\right)
\\
\begin{array}{l}
t_2 := \frac{\ell}{k \cdot {t_m}^{1.5}}\\
t_s \cdot \begin{array}{l}
\mathbf{if}\;k \leq 1.95 \cdot 10^{+30}:\\
\;\;\;\;t_2 \cdot t_2\\
\mathbf{else}:\\
\;\;\;\;\frac{2}{\left(\frac{k}{\cos k} \cdot \frac{k}{{\ell}^{2}}\right) \cdot \left(t_m \cdot {k}^{2}\right)}\\
\end{array}
\end{array}
\end{array}
if k < 1.95000000000000005e30Initial program 55.4%
*-commutative55.4%
associate-*r*55.4%
*-commutative55.4%
associate-/r*55.4%
associate-/l/55.4%
associate-/r/55.3%
associate-/r/55.3%
associate-/l*60.5%
+-commutative60.5%
associate-+r+60.5%
metadata-eval60.5%
Simplified60.5%
Taylor expanded in k around 0 49.8%
unpow249.8%
add-sqr-sqrt24.9%
times-frac28.6%
*-commutative28.6%
sqrt-prod28.6%
sqrt-pow128.6%
metadata-eval28.6%
unpow228.6%
sqrt-prod10.3%
add-sqr-sqrt20.9%
*-commutative20.9%
sqrt-prod21.8%
sqrt-pow123.7%
metadata-eval23.7%
unpow223.7%
sqrt-prod15.0%
add-sqr-sqrt36.7%
Applied egg-rr36.7%
if 1.95000000000000005e30 < k Initial program 50.1%
Taylor expanded in t around 0 71.0%
associate-/l*68.9%
associate-/r/67.2%
Simplified67.2%
unpow267.2%
times-frac71.9%
Applied egg-rr71.9%
Taylor expanded in k around 0 62.1%
Final simplification41.5%
t_m = (fabs.f64 t)
t_s = (copysign.f64 1 t)
(FPCore (t_s t_m l k)
:precision binary64
(let* ((t_2 (/ l (* k (pow t_m 1.5)))))
(*
t_s
(if (<= t_m 4.1e-243)
(/ 2.0 (/ (pow k 4.0) (/ (pow l 2.0) t_m)))
(if (<= t_m 3.3e+52)
(/ (/ (pow (/ l k) 2.0) (pow t_m 1.5)) (pow t_m 1.5))
(* t_2 t_2))))))t_m = fabs(t);
t_s = copysign(1.0, t);
double code(double t_s, double t_m, double l, double k) {
double t_2 = l / (k * pow(t_m, 1.5));
double tmp;
if (t_m <= 4.1e-243) {
tmp = 2.0 / (pow(k, 4.0) / (pow(l, 2.0) / t_m));
} else if (t_m <= 3.3e+52) {
tmp = (pow((l / k), 2.0) / pow(t_m, 1.5)) / pow(t_m, 1.5);
} else {
tmp = t_2 * t_2;
}
return t_s * tmp;
}
t_m = abs(t)
t_s = copysign(1.0d0, t)
real(8) function code(t_s, t_m, l, k)
real(8), intent (in) :: t_s
real(8), intent (in) :: t_m
real(8), intent (in) :: l
real(8), intent (in) :: k
real(8) :: t_2
real(8) :: tmp
t_2 = l / (k * (t_m ** 1.5d0))
if (t_m <= 4.1d-243) then
tmp = 2.0d0 / ((k ** 4.0d0) / ((l ** 2.0d0) / t_m))
else if (t_m <= 3.3d+52) then
tmp = (((l / k) ** 2.0d0) / (t_m ** 1.5d0)) / (t_m ** 1.5d0)
else
tmp = t_2 * t_2
end if
code = t_s * tmp
end function
t_m = Math.abs(t);
t_s = Math.copySign(1.0, t);
public static double code(double t_s, double t_m, double l, double k) {
double t_2 = l / (k * Math.pow(t_m, 1.5));
double tmp;
if (t_m <= 4.1e-243) {
tmp = 2.0 / (Math.pow(k, 4.0) / (Math.pow(l, 2.0) / t_m));
} else if (t_m <= 3.3e+52) {
tmp = (Math.pow((l / k), 2.0) / Math.pow(t_m, 1.5)) / Math.pow(t_m, 1.5);
} else {
tmp = t_2 * t_2;
}
return t_s * tmp;
}
t_m = math.fabs(t) t_s = math.copysign(1.0, t) def code(t_s, t_m, l, k): t_2 = l / (k * math.pow(t_m, 1.5)) tmp = 0 if t_m <= 4.1e-243: tmp = 2.0 / (math.pow(k, 4.0) / (math.pow(l, 2.0) / t_m)) elif t_m <= 3.3e+52: tmp = (math.pow((l / k), 2.0) / math.pow(t_m, 1.5)) / math.pow(t_m, 1.5) else: tmp = t_2 * t_2 return t_s * tmp
t_m = abs(t) t_s = copysign(1.0, t) function code(t_s, t_m, l, k) t_2 = Float64(l / Float64(k * (t_m ^ 1.5))) tmp = 0.0 if (t_m <= 4.1e-243) tmp = Float64(2.0 / Float64((k ^ 4.0) / Float64((l ^ 2.0) / t_m))); elseif (t_m <= 3.3e+52) tmp = Float64(Float64((Float64(l / k) ^ 2.0) / (t_m ^ 1.5)) / (t_m ^ 1.5)); else tmp = Float64(t_2 * t_2); end return Float64(t_s * tmp) end
t_m = abs(t); t_s = sign(t) * abs(1.0); function tmp_2 = code(t_s, t_m, l, k) t_2 = l / (k * (t_m ^ 1.5)); tmp = 0.0; if (t_m <= 4.1e-243) tmp = 2.0 / ((k ^ 4.0) / ((l ^ 2.0) / t_m)); elseif (t_m <= 3.3e+52) tmp = (((l / k) ^ 2.0) / (t_m ^ 1.5)) / (t_m ^ 1.5); else tmp = t_2 * t_2; end tmp_2 = t_s * tmp; end
t_m = N[Abs[t], $MachinePrecision]
t_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[t]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
code[t$95$s_, t$95$m_, l_, k_] := Block[{t$95$2 = N[(l / N[(k * N[Power[t$95$m, 1.5], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, N[(t$95$s * If[LessEqual[t$95$m, 4.1e-243], N[(2.0 / N[(N[Power[k, 4.0], $MachinePrecision] / N[(N[Power[l, 2.0], $MachinePrecision] / t$95$m), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$m, 3.3e+52], N[(N[(N[Power[N[(l / k), $MachinePrecision], 2.0], $MachinePrecision] / N[Power[t$95$m, 1.5], $MachinePrecision]), $MachinePrecision] / N[Power[t$95$m, 1.5], $MachinePrecision]), $MachinePrecision], N[(t$95$2 * t$95$2), $MachinePrecision]]]), $MachinePrecision]]
\begin{array}{l}
t_m = \left|t\right|
\\
t_s = \mathsf{copysign}\left(1, t\right)
\\
\begin{array}{l}
t_2 := \frac{\ell}{k \cdot {t_m}^{1.5}}\\
t_s \cdot \begin{array}{l}
\mathbf{if}\;t_m \leq 4.1 \cdot 10^{-243}:\\
\;\;\;\;\frac{2}{\frac{{k}^{4}}{\frac{{\ell}^{2}}{t_m}}}\\
\mathbf{elif}\;t_m \leq 3.3 \cdot 10^{+52}:\\
\;\;\;\;\frac{\frac{{\left(\frac{\ell}{k}\right)}^{2}}{{t_m}^{1.5}}}{{t_m}^{1.5}}\\
\mathbf{else}:\\
\;\;\;\;t_2 \cdot t_2\\
\end{array}
\end{array}
\end{array}
if t < 4.09999999999999981e-243Initial program 49.8%
Taylor expanded in t around 0 64.2%
associate-/l*64.4%
associate-/r/63.7%
Simplified63.7%
Taylor expanded in k around 0 56.5%
associate-/l*57.9%
Simplified57.9%
if 4.09999999999999981e-243 < t < 3.3e52Initial program 62.2%
*-commutative62.2%
associate-*r*62.2%
*-commutative62.2%
associate-/r*62.2%
associate-/l/62.4%
associate-/r/62.4%
associate-/r/62.3%
associate-/l*69.9%
+-commutative69.9%
associate-+r+69.9%
metadata-eval69.9%
Simplified69.9%
Taylor expanded in k around 0 51.2%
unpow251.2%
*-commutative51.2%
times-frac61.6%
Applied egg-rr61.6%
*-un-lft-identity61.6%
metadata-eval61.6%
unpow261.6%
times-frac65.9%
metadata-eval65.9%
Applied egg-rr65.9%
associate-*l/65.8%
metadata-eval65.8%
pow-sqr65.7%
associate-*r*65.7%
div-inv65.7%
associate-/r*71.9%
pow171.9%
pow171.9%
pow-sqr71.9%
metadata-eval71.9%
Applied egg-rr71.9%
if 3.3e52 < t Initial program 55.8%
*-commutative55.8%
associate-*r*55.8%
*-commutative55.8%
associate-/r*55.8%
associate-/l/55.8%
associate-/r/55.5%
associate-/r/57.1%
associate-/l*58.6%
+-commutative58.6%
associate-+r+58.6%
metadata-eval58.6%
Simplified58.6%
Taylor expanded in k around 0 47.1%
unpow247.1%
add-sqr-sqrt47.1%
times-frac52.9%
*-commutative52.9%
sqrt-prod52.9%
sqrt-pow152.9%
metadata-eval52.9%
unpow252.9%
sqrt-prod24.0%
add-sqr-sqrt51.2%
*-commutative51.2%
sqrt-prod51.2%
sqrt-pow157.6%
metadata-eval57.6%
unpow257.6%
sqrt-prod37.0%
add-sqr-sqrt72.9%
Applied egg-rr72.9%
Final simplification65.0%
t_m = (fabs.f64 t)
t_s = (copysign.f64 1 t)
(FPCore (t_s t_m l k)
:precision binary64
(let* ((t_2 (/ l (* k (pow t_m 1.5)))))
(*
t_s
(if (<= k 5.2e+30)
(* t_2 t_2)
(/ 2.0 (/ (* t_m (pow k 4.0)) (pow l 2.0)))))))t_m = fabs(t);
t_s = copysign(1.0, t);
double code(double t_s, double t_m, double l, double k) {
double t_2 = l / (k * pow(t_m, 1.5));
double tmp;
if (k <= 5.2e+30) {
tmp = t_2 * t_2;
} else {
tmp = 2.0 / ((t_m * pow(k, 4.0)) / pow(l, 2.0));
}
return t_s * tmp;
}
t_m = abs(t)
t_s = copysign(1.0d0, t)
real(8) function code(t_s, t_m, l, k)
real(8), intent (in) :: t_s
real(8), intent (in) :: t_m
real(8), intent (in) :: l
real(8), intent (in) :: k
real(8) :: t_2
real(8) :: tmp
t_2 = l / (k * (t_m ** 1.5d0))
if (k <= 5.2d+30) then
tmp = t_2 * t_2
else
tmp = 2.0d0 / ((t_m * (k ** 4.0d0)) / (l ** 2.0d0))
end if
code = t_s * tmp
end function
t_m = Math.abs(t);
t_s = Math.copySign(1.0, t);
public static double code(double t_s, double t_m, double l, double k) {
double t_2 = l / (k * Math.pow(t_m, 1.5));
double tmp;
if (k <= 5.2e+30) {
tmp = t_2 * t_2;
} else {
tmp = 2.0 / ((t_m * Math.pow(k, 4.0)) / Math.pow(l, 2.0));
}
return t_s * tmp;
}
t_m = math.fabs(t) t_s = math.copysign(1.0, t) def code(t_s, t_m, l, k): t_2 = l / (k * math.pow(t_m, 1.5)) tmp = 0 if k <= 5.2e+30: tmp = t_2 * t_2 else: tmp = 2.0 / ((t_m * math.pow(k, 4.0)) / math.pow(l, 2.0)) return t_s * tmp
t_m = abs(t) t_s = copysign(1.0, t) function code(t_s, t_m, l, k) t_2 = Float64(l / Float64(k * (t_m ^ 1.5))) tmp = 0.0 if (k <= 5.2e+30) tmp = Float64(t_2 * t_2); else tmp = Float64(2.0 / Float64(Float64(t_m * (k ^ 4.0)) / (l ^ 2.0))); end return Float64(t_s * tmp) end
t_m = abs(t); t_s = sign(t) * abs(1.0); function tmp_2 = code(t_s, t_m, l, k) t_2 = l / (k * (t_m ^ 1.5)); tmp = 0.0; if (k <= 5.2e+30) tmp = t_2 * t_2; else tmp = 2.0 / ((t_m * (k ^ 4.0)) / (l ^ 2.0)); end tmp_2 = t_s * tmp; end
t_m = N[Abs[t], $MachinePrecision]
t_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[t]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
code[t$95$s_, t$95$m_, l_, k_] := Block[{t$95$2 = N[(l / N[(k * N[Power[t$95$m, 1.5], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, N[(t$95$s * If[LessEqual[k, 5.2e+30], N[(t$95$2 * t$95$2), $MachinePrecision], N[(2.0 / N[(N[(t$95$m * N[Power[k, 4.0], $MachinePrecision]), $MachinePrecision] / N[Power[l, 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]), $MachinePrecision]]
\begin{array}{l}
t_m = \left|t\right|
\\
t_s = \mathsf{copysign}\left(1, t\right)
\\
\begin{array}{l}
t_2 := \frac{\ell}{k \cdot {t_m}^{1.5}}\\
t_s \cdot \begin{array}{l}
\mathbf{if}\;k \leq 5.2 \cdot 10^{+30}:\\
\;\;\;\;t_2 \cdot t_2\\
\mathbf{else}:\\
\;\;\;\;\frac{2}{\frac{t_m \cdot {k}^{4}}{{\ell}^{2}}}\\
\end{array}
\end{array}
\end{array}
if k < 5.19999999999999977e30Initial program 55.4%
*-commutative55.4%
associate-*r*55.4%
*-commutative55.4%
associate-/r*55.4%
associate-/l/55.4%
associate-/r/55.3%
associate-/r/55.3%
associate-/l*60.5%
+-commutative60.5%
associate-+r+60.5%
metadata-eval60.5%
Simplified60.5%
Taylor expanded in k around 0 49.8%
unpow249.8%
add-sqr-sqrt24.9%
times-frac28.6%
*-commutative28.6%
sqrt-prod28.6%
sqrt-pow128.6%
metadata-eval28.6%
unpow228.6%
sqrt-prod10.3%
add-sqr-sqrt20.9%
*-commutative20.9%
sqrt-prod21.8%
sqrt-pow123.7%
metadata-eval23.7%
unpow223.7%
sqrt-prod15.0%
add-sqr-sqrt36.7%
Applied egg-rr36.7%
if 5.19999999999999977e30 < k Initial program 50.1%
Taylor expanded in t around 0 71.0%
associate-/l*68.9%
associate-/r/67.2%
Simplified67.2%
Taylor expanded in k around 0 61.8%
Final simplification41.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 1.85e-198)
(/ (* l (/ l k)) (* k (pow t_m 3.0)))
(if (<= k 2.35e+120)
(* (* (/ 1.0 t_m) (/ l (pow t_m 2.0))) (* (/ l k) (/ 1.0 k)))
(/ 2.0 (/ (* t_m (pow k 4.0)) (pow l 2.0)))))))t_m = fabs(t);
t_s = copysign(1.0, t);
double code(double t_s, double t_m, double l, double k) {
double tmp;
if (k <= 1.85e-198) {
tmp = (l * (l / k)) / (k * pow(t_m, 3.0));
} else if (k <= 2.35e+120) {
tmp = ((1.0 / t_m) * (l / pow(t_m, 2.0))) * ((l / k) * (1.0 / k));
} else {
tmp = 2.0 / ((t_m * pow(k, 4.0)) / pow(l, 2.0));
}
return t_s * tmp;
}
t_m = abs(t)
t_s = copysign(1.0d0, t)
real(8) function code(t_s, t_m, l, k)
real(8), intent (in) :: t_s
real(8), intent (in) :: t_m
real(8), intent (in) :: l
real(8), intent (in) :: k
real(8) :: tmp
if (k <= 1.85d-198) then
tmp = (l * (l / k)) / (k * (t_m ** 3.0d0))
else if (k <= 2.35d+120) then
tmp = ((1.0d0 / t_m) * (l / (t_m ** 2.0d0))) * ((l / k) * (1.0d0 / k))
else
tmp = 2.0d0 / ((t_m * (k ** 4.0d0)) / (l ** 2.0d0))
end if
code = t_s * tmp
end function
t_m = Math.abs(t);
t_s = Math.copySign(1.0, t);
public static double code(double t_s, double t_m, double l, double k) {
double tmp;
if (k <= 1.85e-198) {
tmp = (l * (l / k)) / (k * Math.pow(t_m, 3.0));
} else if (k <= 2.35e+120) {
tmp = ((1.0 / t_m) * (l / Math.pow(t_m, 2.0))) * ((l / k) * (1.0 / k));
} else {
tmp = 2.0 / ((t_m * Math.pow(k, 4.0)) / Math.pow(l, 2.0));
}
return t_s * tmp;
}
t_m = math.fabs(t) t_s = math.copysign(1.0, t) def code(t_s, t_m, l, k): tmp = 0 if k <= 1.85e-198: tmp = (l * (l / k)) / (k * math.pow(t_m, 3.0)) elif k <= 2.35e+120: tmp = ((1.0 / t_m) * (l / math.pow(t_m, 2.0))) * ((l / k) * (1.0 / k)) else: tmp = 2.0 / ((t_m * math.pow(k, 4.0)) / math.pow(l, 2.0)) return t_s * tmp
t_m = abs(t) t_s = copysign(1.0, t) function code(t_s, t_m, l, k) tmp = 0.0 if (k <= 1.85e-198) tmp = Float64(Float64(l * Float64(l / k)) / Float64(k * (t_m ^ 3.0))); elseif (k <= 2.35e+120) tmp = Float64(Float64(Float64(1.0 / t_m) * Float64(l / (t_m ^ 2.0))) * Float64(Float64(l / k) * Float64(1.0 / k))); else tmp = Float64(2.0 / Float64(Float64(t_m * (k ^ 4.0)) / (l ^ 2.0))); end return Float64(t_s * tmp) end
t_m = abs(t); t_s = sign(t) * abs(1.0); function tmp_2 = code(t_s, t_m, l, k) tmp = 0.0; if (k <= 1.85e-198) tmp = (l * (l / k)) / (k * (t_m ^ 3.0)); elseif (k <= 2.35e+120) tmp = ((1.0 / t_m) * (l / (t_m ^ 2.0))) * ((l / k) * (1.0 / k)); else tmp = 2.0 / ((t_m * (k ^ 4.0)) / (l ^ 2.0)); end tmp_2 = t_s * tmp; end
t_m = N[Abs[t], $MachinePrecision]
t_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[t]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
code[t$95$s_, t$95$m_, l_, k_] := N[(t$95$s * If[LessEqual[k, 1.85e-198], N[(N[(l * N[(l / k), $MachinePrecision]), $MachinePrecision] / N[(k * N[Power[t$95$m, 3.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, 2.35e+120], N[(N[(N[(1.0 / t$95$m), $MachinePrecision] * N[(l / N[Power[t$95$m, 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(N[(l / k), $MachinePrecision] * N[(1.0 / k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(2.0 / N[(N[(t$95$m * N[Power[k, 4.0], $MachinePrecision]), $MachinePrecision] / N[Power[l, 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]), $MachinePrecision]
\begin{array}{l}
t_m = \left|t\right|
\\
t_s = \mathsf{copysign}\left(1, t\right)
\\
t_s \cdot \begin{array}{l}
\mathbf{if}\;k \leq 1.85 \cdot 10^{-198}:\\
\;\;\;\;\frac{\ell \cdot \frac{\ell}{k}}{k \cdot {t_m}^{3}}\\
\mathbf{elif}\;k \leq 2.35 \cdot 10^{+120}:\\
\;\;\;\;\left(\frac{1}{t_m} \cdot \frac{\ell}{{t_m}^{2}}\right) \cdot \left(\frac{\ell}{k} \cdot \frac{1}{k}\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{2}{\frac{t_m \cdot {k}^{4}}{{\ell}^{2}}}\\
\end{array}
\end{array}
if k < 1.84999999999999986e-198Initial program 55.4%
*-commutative55.4%
associate-*r*55.4%
*-commutative55.4%
associate-/r*55.4%
associate-/l/55.4%
associate-/r/55.9%
associate-/r/56.5%
associate-/l*61.5%
+-commutative61.5%
associate-+r+61.5%
metadata-eval61.5%
Simplified61.5%
Taylor expanded in k around 0 47.1%
unpow247.1%
*-commutative47.1%
times-frac53.6%
Applied egg-rr53.6%
*-un-lft-identity53.6%
metadata-eval53.6%
unpow253.6%
times-frac60.8%
metadata-eval60.8%
Applied egg-rr60.8%
*-commutative60.8%
associate-*l/60.9%
*-un-lft-identity60.9%
frac-times60.3%
Applied egg-rr60.3%
if 1.84999999999999986e-198 < k < 2.34999999999999997e120Initial program 57.4%
*-commutative57.4%
associate-*r*57.4%
*-commutative57.4%
associate-/r*57.3%
associate-/l/57.3%
associate-/r/55.9%
associate-/r/54.3%
associate-/l*58.8%
+-commutative58.8%
associate-+r+58.8%
metadata-eval58.8%
Simplified58.8%
Taylor expanded in k around 0 56.4%
unpow256.4%
*-commutative56.4%
times-frac62.6%
Applied egg-rr62.6%
*-un-lft-identity62.6%
metadata-eval62.6%
unpow262.6%
times-frac67.7%
metadata-eval67.7%
Applied egg-rr67.7%
*-un-lft-identity67.7%
metadata-eval67.7%
cube-mult67.7%
times-frac69.1%
metadata-eval69.1%
pow169.1%
metadata-eval69.1%
pow169.1%
metadata-eval69.1%
pow-sqr69.1%
metadata-eval69.1%
metadata-eval69.1%
Applied egg-rr69.1%
if 2.34999999999999997e120 < k Initial program 44.1%
Taylor expanded in t around 0 65.4%
associate-/l*62.4%
associate-/r/60.0%
Simplified60.0%
Taylor expanded in k around 0 62.7%
Final simplification62.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.4e+120)
(/ (/ (pow (/ l k) 2.0) t_m) (pow t_m 2.0))
(/ 2.0 (/ (* t_m (pow k 4.0)) (pow l 2.0))))))t_m = fabs(t);
t_s = copysign(1.0, t);
double code(double t_s, double t_m, double l, double k) {
double tmp;
if (k <= 2.4e+120) {
tmp = (pow((l / k), 2.0) / t_m) / pow(t_m, 2.0);
} else {
tmp = 2.0 / ((t_m * pow(k, 4.0)) / pow(l, 2.0));
}
return t_s * tmp;
}
t_m = abs(t)
t_s = copysign(1.0d0, t)
real(8) function code(t_s, t_m, l, k)
real(8), intent (in) :: t_s
real(8), intent (in) :: t_m
real(8), intent (in) :: l
real(8), intent (in) :: k
real(8) :: tmp
if (k <= 2.4d+120) then
tmp = (((l / k) ** 2.0d0) / t_m) / (t_m ** 2.0d0)
else
tmp = 2.0d0 / ((t_m * (k ** 4.0d0)) / (l ** 2.0d0))
end if
code = t_s * tmp
end function
t_m = Math.abs(t);
t_s = Math.copySign(1.0, t);
public static double code(double t_s, double t_m, double l, double k) {
double tmp;
if (k <= 2.4e+120) {
tmp = (Math.pow((l / k), 2.0) / t_m) / Math.pow(t_m, 2.0);
} else {
tmp = 2.0 / ((t_m * Math.pow(k, 4.0)) / Math.pow(l, 2.0));
}
return t_s * tmp;
}
t_m = math.fabs(t) t_s = math.copysign(1.0, t) def code(t_s, t_m, l, k): tmp = 0 if k <= 2.4e+120: tmp = (math.pow((l / k), 2.0) / t_m) / math.pow(t_m, 2.0) else: tmp = 2.0 / ((t_m * math.pow(k, 4.0)) / math.pow(l, 2.0)) return t_s * tmp
t_m = abs(t) t_s = copysign(1.0, t) function code(t_s, t_m, l, k) tmp = 0.0 if (k <= 2.4e+120) tmp = Float64(Float64((Float64(l / k) ^ 2.0) / t_m) / (t_m ^ 2.0)); else tmp = Float64(2.0 / Float64(Float64(t_m * (k ^ 4.0)) / (l ^ 2.0))); end return Float64(t_s * tmp) end
t_m = abs(t); t_s = sign(t) * abs(1.0); function tmp_2 = code(t_s, t_m, l, k) tmp = 0.0; if (k <= 2.4e+120) tmp = (((l / k) ^ 2.0) / t_m) / (t_m ^ 2.0); else tmp = 2.0 / ((t_m * (k ^ 4.0)) / (l ^ 2.0)); end tmp_2 = t_s * tmp; end
t_m = N[Abs[t], $MachinePrecision]
t_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[t]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
code[t$95$s_, t$95$m_, l_, k_] := N[(t$95$s * If[LessEqual[k, 2.4e+120], N[(N[(N[Power[N[(l / k), $MachinePrecision], 2.0], $MachinePrecision] / t$95$m), $MachinePrecision] / N[Power[t$95$m, 2.0], $MachinePrecision]), $MachinePrecision], N[(2.0 / N[(N[(t$95$m * N[Power[k, 4.0], $MachinePrecision]), $MachinePrecision] / N[Power[l, 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]), $MachinePrecision]
\begin{array}{l}
t_m = \left|t\right|
\\
t_s = \mathsf{copysign}\left(1, t\right)
\\
t_s \cdot \begin{array}{l}
\mathbf{if}\;k \leq 2.4 \cdot 10^{+120}:\\
\;\;\;\;\frac{\frac{{\left(\frac{\ell}{k}\right)}^{2}}{t_m}}{{t_m}^{2}}\\
\mathbf{else}:\\
\;\;\;\;\frac{2}{\frac{t_m \cdot {k}^{4}}{{\ell}^{2}}}\\
\end{array}
\end{array}
if k < 2.40000000000000001e120Initial program 56.0%
*-commutative56.0%
associate-*r*56.0%
*-commutative56.0%
associate-/r*55.9%
associate-/l/56.0%
associate-/r/55.9%
associate-/r/55.8%
associate-/l*60.7%
+-commutative60.7%
associate-+r+60.7%
metadata-eval60.7%
Simplified60.7%
Taylor expanded in k around 0 49.9%
unpow249.9%
*-commutative49.9%
times-frac56.3%
Applied egg-rr56.3%
*-un-lft-identity56.3%
metadata-eval56.3%
unpow256.3%
times-frac62.9%
metadata-eval62.9%
Applied egg-rr62.9%
associate-*l/62.6%
cube-mult62.6%
associate-*r*64.0%
div-inv64.0%
associate-/r*67.9%
pow167.9%
pow167.9%
pow-sqr67.9%
metadata-eval67.9%
pow167.9%
pow167.9%
pow-sqr67.9%
metadata-eval67.9%
Applied egg-rr67.9%
if 2.40000000000000001e120 < k Initial program 44.1%
Taylor expanded in t around 0 65.4%
associate-/l*62.4%
associate-/r/60.0%
Simplified60.0%
Taylor expanded in k around 0 62.7%
Final simplification67.2%
t_m = (fabs.f64 t)
t_s = (copysign.f64 1 t)
(FPCore (t_s t_m l k)
:precision binary64
(*
t_s
(if (<= k 3.3e-199)
(/ (* l (/ l k)) (* k (pow t_m 3.0)))
(* (* (/ 1.0 t_m) (/ l (pow t_m 2.0))) (* (/ l k) (/ 1.0 k))))))t_m = fabs(t);
t_s = copysign(1.0, t);
double code(double t_s, double t_m, double l, double k) {
double tmp;
if (k <= 3.3e-199) {
tmp = (l * (l / k)) / (k * pow(t_m, 3.0));
} else {
tmp = ((1.0 / t_m) * (l / pow(t_m, 2.0))) * ((l / k) * (1.0 / k));
}
return t_s * tmp;
}
t_m = abs(t)
t_s = copysign(1.0d0, t)
real(8) function code(t_s, t_m, l, k)
real(8), intent (in) :: t_s
real(8), intent (in) :: t_m
real(8), intent (in) :: l
real(8), intent (in) :: k
real(8) :: tmp
if (k <= 3.3d-199) then
tmp = (l * (l / k)) / (k * (t_m ** 3.0d0))
else
tmp = ((1.0d0 / t_m) * (l / (t_m ** 2.0d0))) * ((l / k) * (1.0d0 / k))
end if
code = t_s * tmp
end function
t_m = Math.abs(t);
t_s = Math.copySign(1.0, t);
public static double code(double t_s, double t_m, double l, double k) {
double tmp;
if (k <= 3.3e-199) {
tmp = (l * (l / k)) / (k * Math.pow(t_m, 3.0));
} else {
tmp = ((1.0 / t_m) * (l / Math.pow(t_m, 2.0))) * ((l / k) * (1.0 / k));
}
return t_s * tmp;
}
t_m = math.fabs(t) t_s = math.copysign(1.0, t) def code(t_s, t_m, l, k): tmp = 0 if k <= 3.3e-199: tmp = (l * (l / k)) / (k * math.pow(t_m, 3.0)) else: tmp = ((1.0 / t_m) * (l / math.pow(t_m, 2.0))) * ((l / k) * (1.0 / k)) return t_s * tmp
t_m = abs(t) t_s = copysign(1.0, t) function code(t_s, t_m, l, k) tmp = 0.0 if (k <= 3.3e-199) tmp = Float64(Float64(l * Float64(l / k)) / Float64(k * (t_m ^ 3.0))); else tmp = Float64(Float64(Float64(1.0 / t_m) * Float64(l / (t_m ^ 2.0))) * Float64(Float64(l / k) * Float64(1.0 / k))); end return Float64(t_s * tmp) end
t_m = abs(t); t_s = sign(t) * abs(1.0); function tmp_2 = code(t_s, t_m, l, k) tmp = 0.0; if (k <= 3.3e-199) tmp = (l * (l / k)) / (k * (t_m ^ 3.0)); else tmp = ((1.0 / t_m) * (l / (t_m ^ 2.0))) * ((l / k) * (1.0 / k)); end tmp_2 = t_s * tmp; end
t_m = N[Abs[t], $MachinePrecision]
t_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[t]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
code[t$95$s_, t$95$m_, l_, k_] := N[(t$95$s * If[LessEqual[k, 3.3e-199], N[(N[(l * N[(l / k), $MachinePrecision]), $MachinePrecision] / N[(k * N[Power[t$95$m, 3.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[(1.0 / t$95$m), $MachinePrecision] * N[(l / N[Power[t$95$m, 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(N[(l / k), $MachinePrecision] * N[(1.0 / k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]), $MachinePrecision]
\begin{array}{l}
t_m = \left|t\right|
\\
t_s = \mathsf{copysign}\left(1, t\right)
\\
t_s \cdot \begin{array}{l}
\mathbf{if}\;k \leq 3.3 \cdot 10^{-199}:\\
\;\;\;\;\frac{\ell \cdot \frac{\ell}{k}}{k \cdot {t_m}^{3}}\\
\mathbf{else}:\\
\;\;\;\;\left(\frac{1}{t_m} \cdot \frac{\ell}{{t_m}^{2}}\right) \cdot \left(\frac{\ell}{k} \cdot \frac{1}{k}\right)\\
\end{array}
\end{array}
if k < 3.3000000000000002e-199Initial program 55.4%
*-commutative55.4%
associate-*r*55.4%
*-commutative55.4%
associate-/r*55.4%
associate-/l/55.4%
associate-/r/55.9%
associate-/r/56.5%
associate-/l*61.5%
+-commutative61.5%
associate-+r+61.5%
metadata-eval61.5%
Simplified61.5%
Taylor expanded in k around 0 47.1%
unpow247.1%
*-commutative47.1%
times-frac53.6%
Applied egg-rr53.6%
*-un-lft-identity53.6%
metadata-eval53.6%
unpow253.6%
times-frac60.8%
metadata-eval60.8%
Applied egg-rr60.8%
*-commutative60.8%
associate-*l/60.9%
*-un-lft-identity60.9%
frac-times60.3%
Applied egg-rr60.3%
if 3.3000000000000002e-199 < k Initial program 52.9%
*-commutative52.9%
associate-*r*52.9%
*-commutative52.9%
associate-/r*52.9%
associate-/l/52.9%
associate-/r/51.9%
associate-/r/50.9%
associate-/l*53.9%
+-commutative53.9%
associate-+r+53.9%
metadata-eval53.9%
Simplified53.9%
Taylor expanded in k around 0 52.3%
unpow252.3%
*-commutative52.3%
times-frac56.5%
Applied egg-rr56.5%
*-un-lft-identity56.5%
metadata-eval56.5%
unpow256.5%
times-frac60.0%
metadata-eval60.0%
Applied egg-rr60.0%
*-un-lft-identity60.0%
metadata-eval60.0%
cube-mult60.0%
times-frac62.9%
metadata-eval62.9%
pow162.9%
metadata-eval62.9%
pow162.9%
metadata-eval62.9%
pow-sqr62.9%
metadata-eval62.9%
metadata-eval62.9%
Applied egg-rr62.9%
Final simplification61.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 6.5e-180)
(/ (* l (/ l k)) (* k (pow t_m 3.0)))
(* (/ l (pow t_m 3.0)) (/ (/ l k) k)))))t_m = fabs(t);
t_s = copysign(1.0, t);
double code(double t_s, double t_m, double l, double k) {
double tmp;
if (k <= 6.5e-180) {
tmp = (l * (l / k)) / (k * pow(t_m, 3.0));
} else {
tmp = (l / pow(t_m, 3.0)) * ((l / k) / k);
}
return t_s * tmp;
}
t_m = abs(t)
t_s = copysign(1.0d0, t)
real(8) function code(t_s, t_m, l, k)
real(8), intent (in) :: t_s
real(8), intent (in) :: t_m
real(8), intent (in) :: l
real(8), intent (in) :: k
real(8) :: tmp
if (k <= 6.5d-180) then
tmp = (l * (l / k)) / (k * (t_m ** 3.0d0))
else
tmp = (l / (t_m ** 3.0d0)) * ((l / k) / k)
end if
code = t_s * tmp
end function
t_m = Math.abs(t);
t_s = Math.copySign(1.0, t);
public static double code(double t_s, double t_m, double l, double k) {
double tmp;
if (k <= 6.5e-180) {
tmp = (l * (l / k)) / (k * Math.pow(t_m, 3.0));
} else {
tmp = (l / Math.pow(t_m, 3.0)) * ((l / k) / k);
}
return t_s * tmp;
}
t_m = math.fabs(t) t_s = math.copysign(1.0, t) def code(t_s, t_m, l, k): tmp = 0 if k <= 6.5e-180: tmp = (l * (l / k)) / (k * math.pow(t_m, 3.0)) else: tmp = (l / math.pow(t_m, 3.0)) * ((l / k) / k) return t_s * tmp
t_m = abs(t) t_s = copysign(1.0, t) function code(t_s, t_m, l, k) tmp = 0.0 if (k <= 6.5e-180) tmp = Float64(Float64(l * Float64(l / k)) / Float64(k * (t_m ^ 3.0))); else tmp = Float64(Float64(l / (t_m ^ 3.0)) * Float64(Float64(l / k) / k)); end return Float64(t_s * tmp) end
t_m = abs(t); t_s = sign(t) * abs(1.0); function tmp_2 = code(t_s, t_m, l, k) tmp = 0.0; if (k <= 6.5e-180) tmp = (l * (l / k)) / (k * (t_m ^ 3.0)); else tmp = (l / (t_m ^ 3.0)) * ((l / k) / k); end tmp_2 = t_s * tmp; end
t_m = N[Abs[t], $MachinePrecision]
t_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[t]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
code[t$95$s_, t$95$m_, l_, k_] := N[(t$95$s * If[LessEqual[k, 6.5e-180], N[(N[(l * N[(l / k), $MachinePrecision]), $MachinePrecision] / N[(k * N[Power[t$95$m, 3.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(l / N[Power[t$95$m, 3.0], $MachinePrecision]), $MachinePrecision] * N[(N[(l / k), $MachinePrecision] / k), $MachinePrecision]), $MachinePrecision]]), $MachinePrecision]
\begin{array}{l}
t_m = \left|t\right|
\\
t_s = \mathsf{copysign}\left(1, t\right)
\\
t_s \cdot \begin{array}{l}
\mathbf{if}\;k \leq 6.5 \cdot 10^{-180}:\\
\;\;\;\;\frac{\ell \cdot \frac{\ell}{k}}{k \cdot {t_m}^{3}}\\
\mathbf{else}:\\
\;\;\;\;\frac{\ell}{{t_m}^{3}} \cdot \frac{\frac{\ell}{k}}{k}\\
\end{array}
\end{array}
if k < 6.50000000000000013e-180Initial program 56.7%
*-commutative56.7%
associate-*r*56.7%
*-commutative56.7%
associate-/r*56.7%
associate-/l/56.8%
associate-/r/57.2%
associate-/r/57.8%
associate-/l*62.6%
+-commutative62.6%
associate-+r+62.6%
metadata-eval62.6%
Simplified62.6%
Taylor expanded in k around 0 47.6%
unpow247.6%
*-commutative47.6%
times-frac53.8%
Applied egg-rr53.8%
*-un-lft-identity53.8%
metadata-eval53.8%
unpow253.8%
times-frac61.9%
metadata-eval61.9%
Applied egg-rr61.9%
*-commutative61.9%
associate-*l/61.9%
*-un-lft-identity61.9%
frac-times61.4%
Applied egg-rr61.4%
if 6.50000000000000013e-180 < k Initial program 50.4%
*-commutative50.4%
associate-*r*50.4%
*-commutative50.4%
associate-/r*50.4%
associate-/l/50.4%
associate-/r/49.4%
associate-/r/48.3%
associate-/l*51.4%
+-commutative51.4%
associate-+r+51.4%
metadata-eval51.4%
Simplified51.4%
Taylor expanded in k around 0 52.0%
unpow252.0%
*-commutative52.0%
times-frac56.3%
Applied egg-rr56.3%
*-un-lft-identity56.3%
metadata-eval56.3%
unpow256.3%
times-frac58.1%
metadata-eval58.1%
Applied egg-rr58.1%
associate-*l/58.2%
*-un-lft-identity58.2%
Applied egg-rr58.2%
Final simplification60.2%
t_m = (fabs.f64 t)
t_s = (copysign.f64 1 t)
(FPCore (t_s t_m l k)
:precision binary64
(*
t_s
(if (<= t_m 1.85e+52)
(* (/ l (pow t_m 3.0)) (/ (/ l k) k))
(/ (* l (/ l (* k (pow t_m 3.0)))) k))))t_m = fabs(t);
t_s = copysign(1.0, t);
double code(double t_s, double t_m, double l, double k) {
double tmp;
if (t_m <= 1.85e+52) {
tmp = (l / pow(t_m, 3.0)) * ((l / k) / k);
} else {
tmp = (l * (l / (k * pow(t_m, 3.0)))) / k;
}
return t_s * tmp;
}
t_m = abs(t)
t_s = copysign(1.0d0, t)
real(8) function code(t_s, t_m, l, k)
real(8), intent (in) :: t_s
real(8), intent (in) :: t_m
real(8), intent (in) :: l
real(8), intent (in) :: k
real(8) :: tmp
if (t_m <= 1.85d+52) then
tmp = (l / (t_m ** 3.0d0)) * ((l / k) / k)
else
tmp = (l * (l / (k * (t_m ** 3.0d0)))) / k
end if
code = t_s * tmp
end function
t_m = Math.abs(t);
t_s = Math.copySign(1.0, t);
public static double code(double t_s, double t_m, double l, double k) {
double tmp;
if (t_m <= 1.85e+52) {
tmp = (l / Math.pow(t_m, 3.0)) * ((l / k) / k);
} else {
tmp = (l * (l / (k * Math.pow(t_m, 3.0)))) / k;
}
return t_s * tmp;
}
t_m = math.fabs(t) t_s = math.copysign(1.0, t) def code(t_s, t_m, l, k): tmp = 0 if t_m <= 1.85e+52: tmp = (l / math.pow(t_m, 3.0)) * ((l / k) / k) else: tmp = (l * (l / (k * math.pow(t_m, 3.0)))) / k return t_s * tmp
t_m = abs(t) t_s = copysign(1.0, t) function code(t_s, t_m, l, k) tmp = 0.0 if (t_m <= 1.85e+52) tmp = Float64(Float64(l / (t_m ^ 3.0)) * Float64(Float64(l / k) / k)); else tmp = Float64(Float64(l * Float64(l / Float64(k * (t_m ^ 3.0)))) / k); end return Float64(t_s * tmp) end
t_m = abs(t); t_s = sign(t) * abs(1.0); function tmp_2 = code(t_s, t_m, l, k) tmp = 0.0; if (t_m <= 1.85e+52) tmp = (l / (t_m ^ 3.0)) * ((l / k) / k); else tmp = (l * (l / (k * (t_m ^ 3.0)))) / k; end tmp_2 = t_s * tmp; end
t_m = N[Abs[t], $MachinePrecision]
t_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[t]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
code[t$95$s_, t$95$m_, l_, k_] := N[(t$95$s * If[LessEqual[t$95$m, 1.85e+52], N[(N[(l / N[Power[t$95$m, 3.0], $MachinePrecision]), $MachinePrecision] * N[(N[(l / k), $MachinePrecision] / k), $MachinePrecision]), $MachinePrecision], N[(N[(l * N[(l / N[(k * N[Power[t$95$m, 3.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / k), $MachinePrecision]]), $MachinePrecision]
\begin{array}{l}
t_m = \left|t\right|
\\
t_s = \mathsf{copysign}\left(1, t\right)
\\
t_s \cdot \begin{array}{l}
\mathbf{if}\;t_m \leq 1.85 \cdot 10^{+52}:\\
\;\;\;\;\frac{\ell}{{t_m}^{3}} \cdot \frac{\frac{\ell}{k}}{k}\\
\mathbf{else}:\\
\;\;\;\;\frac{\ell \cdot \frac{\ell}{k \cdot {t_m}^{3}}}{k}\\
\end{array}
\end{array}
if t < 1.85e52Initial program 54.0%
*-commutative54.0%
associate-*r*54.0%
*-commutative54.0%
associate-/r*53.9%
associate-/l/54.0%
associate-/r/54.0%
associate-/r/53.4%
associate-/l*58.5%
+-commutative58.5%
associate-+r+58.5%
metadata-eval58.5%
Simplified58.5%
Taylor expanded in k around 0 49.8%
unpow249.8%
*-commutative49.8%
times-frac55.9%
Applied egg-rr55.9%
*-un-lft-identity55.9%
metadata-eval55.9%
unpow255.9%
times-frac62.4%
metadata-eval62.4%
Applied egg-rr62.4%
associate-*l/62.4%
*-un-lft-identity62.4%
Applied egg-rr62.4%
if 1.85e52 < t Initial program 55.8%
*-commutative55.8%
associate-*r*55.8%
*-commutative55.8%
associate-/r*55.8%
associate-/l/55.8%
associate-/r/55.5%
associate-/r/57.1%
associate-/l*58.6%
+-commutative58.6%
associate-+r+58.6%
metadata-eval58.6%
Simplified58.6%
Taylor expanded in k around 0 47.1%
unpow247.1%
*-commutative47.1%
times-frac50.9%
Applied egg-rr50.9%
*-un-lft-identity50.9%
metadata-eval50.9%
unpow250.9%
times-frac54.4%
metadata-eval54.4%
Applied egg-rr54.4%
associate-*r*59.5%
associate-*r/60.1%
frac-times61.6%
*-commutative61.6%
*-un-lft-identity61.6%
*-commutative61.6%
Applied egg-rr61.6%
Final simplification62.2%
t_m = (fabs.f64 t) t_s = (copysign.f64 1 t) (FPCore (t_s t_m l k) :precision binary64 (* t_s (* (/ l (pow t_m 3.0)) (/ (/ l k) k))))
t_m = fabs(t);
t_s = copysign(1.0, t);
double code(double t_s, double t_m, double l, double k) {
return t_s * ((l / pow(t_m, 3.0)) * ((l / k) / k));
}
t_m = abs(t)
t_s = copysign(1.0d0, t)
real(8) function code(t_s, t_m, l, k)
real(8), intent (in) :: t_s
real(8), intent (in) :: t_m
real(8), intent (in) :: l
real(8), intent (in) :: k
code = t_s * ((l / (t_m ** 3.0d0)) * ((l / k) / k))
end function
t_m = Math.abs(t);
t_s = Math.copySign(1.0, t);
public static double code(double t_s, double t_m, double l, double k) {
return t_s * ((l / Math.pow(t_m, 3.0)) * ((l / k) / k));
}
t_m = math.fabs(t) t_s = math.copysign(1.0, t) def code(t_s, t_m, l, k): return t_s * ((l / math.pow(t_m, 3.0)) * ((l / k) / k))
t_m = abs(t) t_s = copysign(1.0, t) function code(t_s, t_m, l, k) return Float64(t_s * Float64(Float64(l / (t_m ^ 3.0)) * Float64(Float64(l / k) / k))) end
t_m = abs(t); t_s = sign(t) * abs(1.0); function tmp = code(t_s, t_m, l, k) tmp = t_s * ((l / (t_m ^ 3.0)) * ((l / k) / k)); end
t_m = N[Abs[t], $MachinePrecision]
t_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[t]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
code[t$95$s_, t$95$m_, l_, k_] := N[(t$95$s * N[(N[(l / N[Power[t$95$m, 3.0], $MachinePrecision]), $MachinePrecision] * N[(N[(l / k), $MachinePrecision] / k), $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}{{t_m}^{3}} \cdot \frac{\frac{\ell}{k}}{k}\right)
\end{array}
Initial program 54.4%
*-commutative54.4%
associate-*r*54.4%
*-commutative54.4%
associate-/r*54.4%
associate-/l/54.4%
associate-/r/54.3%
associate-/r/54.3%
associate-/l*58.5%
+-commutative58.5%
associate-+r+58.5%
metadata-eval58.5%
Simplified58.5%
Taylor expanded in k around 0 49.2%
unpow249.2%
*-commutative49.2%
times-frac54.7%
Applied egg-rr54.7%
*-un-lft-identity54.7%
metadata-eval54.7%
unpow254.7%
times-frac60.5%
metadata-eval60.5%
Applied egg-rr60.5%
associate-*l/60.5%
*-un-lft-identity60.5%
Applied egg-rr60.5%
Final simplification60.5%
herbie shell --seed 2023336
(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))))