
(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 17 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (t l k) :precision binary64 (/ 2.0 (* (* (* (/ (pow t 3.0) (* l l)) (sin k)) (tan k)) (+ (+ 1.0 (pow (/ k t) 2.0)) 1.0))))
double code(double t, double l, double k) {
return 2.0 / ((((pow(t, 3.0) / (l * l)) * sin(k)) * tan(k)) * ((1.0 + pow((k / t), 2.0)) + 1.0));
}
real(8) function code(t, l, k)
real(8), intent (in) :: t
real(8), intent (in) :: l
real(8), intent (in) :: k
code = 2.0d0 / (((((t ** 3.0d0) / (l * l)) * sin(k)) * tan(k)) * ((1.0d0 + ((k / t) ** 2.0d0)) + 1.0d0))
end function
public static double code(double t, double l, double k) {
return 2.0 / ((((Math.pow(t, 3.0) / (l * l)) * Math.sin(k)) * Math.tan(k)) * ((1.0 + Math.pow((k / t), 2.0)) + 1.0));
}
def code(t, l, k): return 2.0 / ((((math.pow(t, 3.0) / (l * l)) * math.sin(k)) * math.tan(k)) * ((1.0 + math.pow((k / t), 2.0)) + 1.0))
function code(t, l, k) return Float64(2.0 / Float64(Float64(Float64(Float64((t ^ 3.0) / Float64(l * l)) * sin(k)) * tan(k)) * Float64(Float64(1.0 + (Float64(k / t) ^ 2.0)) + 1.0))) end
function tmp = code(t, l, k) tmp = 2.0 / (((((t ^ 3.0) / (l * l)) * sin(k)) * tan(k)) * ((1.0 + ((k / t) ^ 2.0)) + 1.0)); end
code[t_, l_, k_] := N[(2.0 / N[(N[(N[(N[(N[Power[t, 3.0], $MachinePrecision] / N[(l * l), $MachinePrecision]), $MachinePrecision] * N[Sin[k], $MachinePrecision]), $MachinePrecision] * N[Tan[k], $MachinePrecision]), $MachinePrecision] * N[(N[(1.0 + N[Power[N[(k / t), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{2}{\left(\left(\frac{{t}^{3}}{\ell \cdot \ell} \cdot \sin k\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)}
\end{array}
t\_m = (fabs.f64 t)
t\_s = (copysign.f64 #s(literal 1 binary64) t)
(FPCore (t_s t_m l k)
:precision binary64
(*
t_s
(if (<= t_m 1e-76)
(/ 2.0 (/ (* (/ (* k k) l) (* (pow (sin k) 2.0) (/ t_m l))) (cos k)))
(/
2.0
(*
(/ t_m l)
(*
(/ t_m (/ l (* t_m (sin k))))
(* (tan 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 <= 1e-76) {
tmp = 2.0 / ((((k * k) / l) * (pow(sin(k), 2.0) * (t_m / l))) / cos(k));
} else {
tmp = 2.0 / ((t_m / l) * ((t_m / (l / (t_m * sin(k)))) * (tan(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 <= 1d-76) then
tmp = 2.0d0 / ((((k * k) / l) * ((sin(k) ** 2.0d0) * (t_m / l))) / cos(k))
else
tmp = 2.0d0 / ((t_m / l) * ((t_m / (l / (t_m * sin(k)))) * (tan(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 <= 1e-76) {
tmp = 2.0 / ((((k * k) / l) * (Math.pow(Math.sin(k), 2.0) * (t_m / l))) / Math.cos(k));
} else {
tmp = 2.0 / ((t_m / l) * ((t_m / (l / (t_m * Math.sin(k)))) * (Math.tan(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 <= 1e-76: tmp = 2.0 / ((((k * k) / l) * (math.pow(math.sin(k), 2.0) * (t_m / l))) / math.cos(k)) else: tmp = 2.0 / ((t_m / l) * ((t_m / (l / (t_m * math.sin(k)))) * (math.tan(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 <= 1e-76) tmp = Float64(2.0 / Float64(Float64(Float64(Float64(k * k) / l) * Float64((sin(k) ^ 2.0) * Float64(t_m / l))) / cos(k))); else tmp = Float64(2.0 / Float64(Float64(t_m / l) * Float64(Float64(t_m / Float64(l / Float64(t_m * sin(k)))) * Float64(tan(k) * Float64(2.0 + Float64(k / Float64(Float64(t_m * 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 <= 1e-76) tmp = 2.0 / ((((k * k) / l) * ((sin(k) ^ 2.0) * (t_m / l))) / cos(k)); else tmp = 2.0 / ((t_m / l) * ((t_m / (l / (t_m * sin(k)))) * (tan(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, 1e-76], N[(2.0 / N[(N[(N[(N[(k * k), $MachinePrecision] / l), $MachinePrecision] * N[(N[Power[N[Sin[k], $MachinePrecision], 2.0], $MachinePrecision] * N[(t$95$m / l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[Cos[k], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(2.0 / N[(N[(t$95$m / l), $MachinePrecision] * N[(N[(t$95$m / N[(l / N[(t$95$m * N[Sin[k], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(N[Tan[k], $MachinePrecision] * N[(2.0 + N[(k / N[(N[(t$95$m * t$95$m), $MachinePrecision] / k), $MachinePrecision]), $MachinePrecision]), $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 10^{-76}:\\
\;\;\;\;\frac{2}{\frac{\frac{k \cdot k}{\ell} \cdot \left({\sin k}^{2} \cdot \frac{t\_m}{\ell}\right)}{\cos k}}\\
\mathbf{else}:\\
\;\;\;\;\frac{2}{\frac{t\_m}{\ell} \cdot \left(\frac{t\_m}{\frac{\ell}{t\_m \cdot \sin k}} \cdot \left(\tan k \cdot \left(2 + \frac{k}{\frac{t\_m \cdot t\_m}{k}}\right)\right)\right)}\\
\end{array}
\end{array}
if t < 9.99999999999999927e-77Initial program 47.6%
cube-unmultN/A
associate-*l/N/A
associate-*r*N/A
associate-*l*N/A
times-fracN/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
sin-lowering-sin.f6462.9%
Applied egg-rr62.9%
associate-/l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
/-lowering-/.f6467.3%
Applied egg-rr67.3%
Taylor expanded in t around 0
associate-/r*N/A
/-lowering-/.f64N/A
unpow2N/A
times-fracN/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
unpow2N/A
*-lowering-*.f64N/A
*-commutativeN/A
associate-/l*N/A
*-lowering-*.f64N/A
pow-lowering-pow.f64N/A
sin-lowering-sin.f64N/A
/-lowering-/.f64N/A
cos-lowering-cos.f6468.5%
Simplified68.5%
if 9.99999999999999927e-77 < t Initial program 69.0%
cube-unmultN/A
associate-*l/N/A
associate-*r*N/A
associate-*l*N/A
times-fracN/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
sin-lowering-sin.f6482.6%
Applied egg-rr82.6%
associate-/l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
/-lowering-/.f6489.9%
Applied egg-rr89.9%
associate-*l*N/A
associate-*l*N/A
associate-*l*N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
+-commutativeN/A
associate-+r+N/A
metadata-evalN/A
unpow2N/A
clear-numN/A
div-invN/A
*-lowering-*.f64N/A
Applied egg-rr93.2%
t\_m = (fabs.f64 t)
t\_s = (copysign.f64 #s(literal 1 binary64) t)
(FPCore (t_s t_m l k)
:precision binary64
(let* ((t_2 (* (/ (/ l (* t_m (sin k))) t_m) (/ 1.0 (/ (tan k) (/ l t_m))))))
(*
t_s
(if (<= t_m 1.55e-162)
t_2
(if (<= t_m 1.06e+153)
(*
2.0
(/
(/ l (* t_m t_m))
(*
(tan k)
(/ (* t_m (+ 2.0 (/ k (/ (* t_m t_m) k)))) (/ l (sin k))))))
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 / (t_m * sin(k))) / t_m) * (1.0 / (tan(k) / (l / t_m)));
double tmp;
if (t_m <= 1.55e-162) {
tmp = t_2;
} else if (t_m <= 1.06e+153) {
tmp = 2.0 * ((l / (t_m * t_m)) / (tan(k) * ((t_m * (2.0 + (k / ((t_m * t_m) / k)))) / (l / sin(k)))));
} else {
tmp = 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 / (t_m * sin(k))) / t_m) * (1.0d0 / (tan(k) / (l / t_m)))
if (t_m <= 1.55d-162) then
tmp = t_2
else if (t_m <= 1.06d+153) then
tmp = 2.0d0 * ((l / (t_m * t_m)) / (tan(k) * ((t_m * (2.0d0 + (k / ((t_m * t_m) / k)))) / (l / sin(k)))))
else
tmp = 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 / (t_m * Math.sin(k))) / t_m) * (1.0 / (Math.tan(k) / (l / t_m)));
double tmp;
if (t_m <= 1.55e-162) {
tmp = t_2;
} else if (t_m <= 1.06e+153) {
tmp = 2.0 * ((l / (t_m * t_m)) / (Math.tan(k) * ((t_m * (2.0 + (k / ((t_m * t_m) / k)))) / (l / Math.sin(k)))));
} else {
tmp = 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 / (t_m * math.sin(k))) / t_m) * (1.0 / (math.tan(k) / (l / t_m))) tmp = 0 if t_m <= 1.55e-162: tmp = t_2 elif t_m <= 1.06e+153: tmp = 2.0 * ((l / (t_m * t_m)) / (math.tan(k) * ((t_m * (2.0 + (k / ((t_m * t_m) / k)))) / (l / math.sin(k))))) else: tmp = 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(Float64(Float64(l / Float64(t_m * sin(k))) / t_m) * Float64(1.0 / Float64(tan(k) / Float64(l / t_m)))) tmp = 0.0 if (t_m <= 1.55e-162) tmp = t_2; elseif (t_m <= 1.06e+153) tmp = Float64(2.0 * Float64(Float64(l / Float64(t_m * t_m)) / Float64(tan(k) * Float64(Float64(t_m * Float64(2.0 + Float64(k / Float64(Float64(t_m * t_m) / k)))) / Float64(l / sin(k)))))); else tmp = 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 / (t_m * sin(k))) / t_m) * (1.0 / (tan(k) / (l / t_m))); tmp = 0.0; if (t_m <= 1.55e-162) tmp = t_2; elseif (t_m <= 1.06e+153) tmp = 2.0 * ((l / (t_m * t_m)) / (tan(k) * ((t_m * (2.0 + (k / ((t_m * t_m) / k)))) / (l / sin(k))))); else tmp = 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[(N[(N[(l / N[(t$95$m * N[Sin[k], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / t$95$m), $MachinePrecision] * N[(1.0 / N[(N[Tan[k], $MachinePrecision] / N[(l / t$95$m), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, N[(t$95$s * If[LessEqual[t$95$m, 1.55e-162], t$95$2, If[LessEqual[t$95$m, 1.06e+153], N[(2.0 * N[(N[(l / N[(t$95$m * t$95$m), $MachinePrecision]), $MachinePrecision] / N[(N[Tan[k], $MachinePrecision] * N[(N[(t$95$m * N[(2.0 + N[(k / N[(N[(t$95$m * t$95$m), $MachinePrecision] / k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(l / N[Sin[k], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]), $MachinePrecision]]
\begin{array}{l}
t\_m = \left|t\right|
\\
t\_s = \mathsf{copysign}\left(1, t\right)
\\
\begin{array}{l}
t_2 := \frac{\frac{\ell}{t\_m \cdot \sin k}}{t\_m} \cdot \frac{1}{\frac{\tan k}{\frac{\ell}{t\_m}}}\\
t\_s \cdot \begin{array}{l}
\mathbf{if}\;t\_m \leq 1.55 \cdot 10^{-162}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t\_m \leq 1.06 \cdot 10^{+153}:\\
\;\;\;\;2 \cdot \frac{\frac{\ell}{t\_m \cdot t\_m}}{\tan k \cdot \frac{t\_m \cdot \left(2 + \frac{k}{\frac{t\_m \cdot t\_m}{k}}\right)}{\frac{\ell}{\sin k}}}\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
\end{array}
if t < 1.5499999999999999e-162 or 1.05999999999999995e153 < t Initial program 53.1%
cube-unmultN/A
associate-*l/N/A
associate-*r*N/A
associate-*l*N/A
times-fracN/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
sin-lowering-sin.f6466.6%
Applied egg-rr66.6%
associate-/l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
/-lowering-/.f6473.7%
Applied egg-rr73.7%
Taylor expanded in k around 0
Simplified67.4%
*-commutativeN/A
*-commutativeN/A
associate-*l*N/A
clear-numN/A
div-invN/A
associate-*l*N/A
associate-/r*N/A
metadata-evalN/A
inv-powN/A
*-commutativeN/A
metadata-evalN/A
unpow-prod-downN/A
Applied egg-rr72.0%
if 1.5499999999999999e-162 < t < 1.05999999999999995e153Initial program 57.9%
cube-unmultN/A
associate-*l/N/A
cube-unmultN/A
sqr-powN/A
associate-*l*N/A
times-fracN/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
pow-lowering-pow.f64N/A
metadata-evalN/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
pow-lowering-pow.f64N/A
metadata-evalN/A
sin-lowering-sin.f6476.4%
Applied egg-rr76.4%
Applied egg-rr76.8%
clear-numN/A
associate-/r/N/A
*-lowering-*.f64N/A
Applied egg-rr78.1%
Final simplification73.5%
t\_m = (fabs.f64 t)
t\_s = (copysign.f64 #s(literal 1 binary64) t)
(FPCore (t_s t_m l k)
:precision binary64
(let* ((t_2 (* (/ (/ l (* t_m (sin k))) t_m) (/ 1.0 (/ (tan k) (/ l t_m))))))
(*
t_s
(if (<= t_m 1.1e-165)
t_2
(if (<= t_m 4.6e+79)
(*
l
(*
l
(/
(/ 2.0 t_m)
(*
(* t_m t_m)
(* (+ 2.0 (/ (/ (* k k) t_m) t_m)) (* (sin k) (tan k)))))))
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 / (t_m * sin(k))) / t_m) * (1.0 / (tan(k) / (l / t_m)));
double tmp;
if (t_m <= 1.1e-165) {
tmp = t_2;
} else if (t_m <= 4.6e+79) {
tmp = l * (l * ((2.0 / t_m) / ((t_m * t_m) * ((2.0 + (((k * k) / t_m) / t_m)) * (sin(k) * tan(k))))));
} else {
tmp = 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 / (t_m * sin(k))) / t_m) * (1.0d0 / (tan(k) / (l / t_m)))
if (t_m <= 1.1d-165) then
tmp = t_2
else if (t_m <= 4.6d+79) then
tmp = l * (l * ((2.0d0 / t_m) / ((t_m * t_m) * ((2.0d0 + (((k * k) / t_m) / t_m)) * (sin(k) * tan(k))))))
else
tmp = 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 / (t_m * Math.sin(k))) / t_m) * (1.0 / (Math.tan(k) / (l / t_m)));
double tmp;
if (t_m <= 1.1e-165) {
tmp = t_2;
} else if (t_m <= 4.6e+79) {
tmp = l * (l * ((2.0 / t_m) / ((t_m * t_m) * ((2.0 + (((k * k) / t_m) / t_m)) * (Math.sin(k) * Math.tan(k))))));
} else {
tmp = 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 / (t_m * math.sin(k))) / t_m) * (1.0 / (math.tan(k) / (l / t_m))) tmp = 0 if t_m <= 1.1e-165: tmp = t_2 elif t_m <= 4.6e+79: tmp = l * (l * ((2.0 / t_m) / ((t_m * t_m) * ((2.0 + (((k * k) / t_m) / t_m)) * (math.sin(k) * math.tan(k)))))) else: tmp = 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(Float64(Float64(l / Float64(t_m * sin(k))) / t_m) * Float64(1.0 / Float64(tan(k) / Float64(l / t_m)))) tmp = 0.0 if (t_m <= 1.1e-165) tmp = t_2; elseif (t_m <= 4.6e+79) tmp = Float64(l * Float64(l * Float64(Float64(2.0 / t_m) / Float64(Float64(t_m * t_m) * Float64(Float64(2.0 + Float64(Float64(Float64(k * k) / t_m) / t_m)) * Float64(sin(k) * tan(k))))))); else tmp = 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 / (t_m * sin(k))) / t_m) * (1.0 / (tan(k) / (l / t_m))); tmp = 0.0; if (t_m <= 1.1e-165) tmp = t_2; elseif (t_m <= 4.6e+79) tmp = l * (l * ((2.0 / t_m) / ((t_m * t_m) * ((2.0 + (((k * k) / t_m) / t_m)) * (sin(k) * tan(k)))))); else tmp = 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[(N[(N[(l / N[(t$95$m * N[Sin[k], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / t$95$m), $MachinePrecision] * N[(1.0 / N[(N[Tan[k], $MachinePrecision] / N[(l / t$95$m), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, N[(t$95$s * If[LessEqual[t$95$m, 1.1e-165], t$95$2, If[LessEqual[t$95$m, 4.6e+79], N[(l * N[(l * N[(N[(2.0 / t$95$m), $MachinePrecision] / N[(N[(t$95$m * t$95$m), $MachinePrecision] * N[(N[(2.0 + N[(N[(N[(k * k), $MachinePrecision] / t$95$m), $MachinePrecision] / t$95$m), $MachinePrecision]), $MachinePrecision] * N[(N[Sin[k], $MachinePrecision] * N[Tan[k], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]), $MachinePrecision]]
\begin{array}{l}
t\_m = \left|t\right|
\\
t\_s = \mathsf{copysign}\left(1, t\right)
\\
\begin{array}{l}
t_2 := \frac{\frac{\ell}{t\_m \cdot \sin k}}{t\_m} \cdot \frac{1}{\frac{\tan k}{\frac{\ell}{t\_m}}}\\
t\_s \cdot \begin{array}{l}
\mathbf{if}\;t\_m \leq 1.1 \cdot 10^{-165}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t\_m \leq 4.6 \cdot 10^{+79}:\\
\;\;\;\;\ell \cdot \left(\ell \cdot \frac{\frac{2}{t\_m}}{\left(t\_m \cdot t\_m\right) \cdot \left(\left(2 + \frac{\frac{k \cdot k}{t\_m}}{t\_m}\right) \cdot \left(\sin k \cdot \tan k\right)\right)}\right)\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
\end{array}
if t < 1.0999999999999999e-165 or 4.6000000000000001e79 < t Initial program 52.4%
cube-unmultN/A
associate-*l/N/A
associate-*r*N/A
associate-*l*N/A
times-fracN/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
sin-lowering-sin.f6469.0%
Applied egg-rr69.0%
associate-/l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
/-lowering-/.f6475.5%
Applied egg-rr75.5%
Taylor expanded in k around 0
Simplified68.9%
*-commutativeN/A
*-commutativeN/A
associate-*l*N/A
clear-numN/A
div-invN/A
associate-*l*N/A
associate-/r*N/A
metadata-evalN/A
inv-powN/A
*-commutativeN/A
metadata-evalN/A
unpow-prod-downN/A
Applied egg-rr73.1%
if 1.0999999999999999e-165 < t < 4.6000000000000001e79Initial program 62.7%
Applied egg-rr75.3%
Final simplification73.5%
t\_m = (fabs.f64 t)
t\_s = (copysign.f64 #s(literal 1 binary64) t)
(FPCore (t_s t_m l k)
:precision binary64
(let* ((t_2 (/ l (* t_m (sin k)))))
(*
t_s
(if (<= l 5.4e+122)
(/
(/ 2.0 (/ (tan k) (/ l t_m)))
(/ (* t_m (+ 2.0 (/ (* k (/ k t_m)) t_m))) t_2))
(/ 2.0 (* 2.0 (* (/ t_m t_2) (* (/ t_m l) (tan k)))))))))t\_m = fabs(t);
t\_s = copysign(1.0, t);
double code(double t_s, double t_m, double l, double k) {
double t_2 = l / (t_m * sin(k));
double tmp;
if (l <= 5.4e+122) {
tmp = (2.0 / (tan(k) / (l / t_m))) / ((t_m * (2.0 + ((k * (k / t_m)) / t_m))) / t_2);
} else {
tmp = 2.0 / (2.0 * ((t_m / t_2) * ((t_m / l) * tan(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 = l / (t_m * sin(k))
if (l <= 5.4d+122) then
tmp = (2.0d0 / (tan(k) / (l / t_m))) / ((t_m * (2.0d0 + ((k * (k / t_m)) / t_m))) / t_2)
else
tmp = 2.0d0 / (2.0d0 * ((t_m / t_2) * ((t_m / l) * tan(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 = l / (t_m * Math.sin(k));
double tmp;
if (l <= 5.4e+122) {
tmp = (2.0 / (Math.tan(k) / (l / t_m))) / ((t_m * (2.0 + ((k * (k / t_m)) / t_m))) / t_2);
} else {
tmp = 2.0 / (2.0 * ((t_m / t_2) * ((t_m / l) * Math.tan(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 = l / (t_m * math.sin(k)) tmp = 0 if l <= 5.4e+122: tmp = (2.0 / (math.tan(k) / (l / t_m))) / ((t_m * (2.0 + ((k * (k / t_m)) / t_m))) / t_2) else: tmp = 2.0 / (2.0 * ((t_m / t_2) * ((t_m / l) * math.tan(k)))) return t_s * tmp
t\_m = abs(t) t\_s = copysign(1.0, t) function code(t_s, t_m, l, k) t_2 = Float64(l / Float64(t_m * sin(k))) tmp = 0.0 if (l <= 5.4e+122) tmp = Float64(Float64(2.0 / Float64(tan(k) / Float64(l / t_m))) / Float64(Float64(t_m * Float64(2.0 + Float64(Float64(k * Float64(k / t_m)) / t_m))) / t_2)); else tmp = Float64(2.0 / Float64(2.0 * Float64(Float64(t_m / t_2) * Float64(Float64(t_m / l) * tan(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 = l / (t_m * sin(k)); tmp = 0.0; if (l <= 5.4e+122) tmp = (2.0 / (tan(k) / (l / t_m))) / ((t_m * (2.0 + ((k * (k / t_m)) / t_m))) / t_2); else tmp = 2.0 / (2.0 * ((t_m / t_2) * ((t_m / l) * tan(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[(l / N[(t$95$m * N[Sin[k], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, N[(t$95$s * If[LessEqual[l, 5.4e+122], N[(N[(2.0 / N[(N[Tan[k], $MachinePrecision] / N[(l / t$95$m), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(t$95$m * N[(2.0 + N[(N[(k * N[(k / t$95$m), $MachinePrecision]), $MachinePrecision] / t$95$m), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / t$95$2), $MachinePrecision]), $MachinePrecision], N[(2.0 / N[(2.0 * N[(N[(t$95$m / t$95$2), $MachinePrecision] * N[(N[(t$95$m / l), $MachinePrecision] * N[Tan[k], $MachinePrecision]), $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}{t\_m \cdot \sin k}\\
t\_s \cdot \begin{array}{l}
\mathbf{if}\;\ell \leq 5.4 \cdot 10^{+122}:\\
\;\;\;\;\frac{\frac{2}{\frac{\tan k}{\frac{\ell}{t\_m}}}}{\frac{t\_m \cdot \left(2 + \frac{k \cdot \frac{k}{t\_m}}{t\_m}\right)}{t\_2}}\\
\mathbf{else}:\\
\;\;\;\;\frac{2}{2 \cdot \left(\frac{t\_m}{t\_2} \cdot \left(\frac{t\_m}{\ell} \cdot \tan k\right)\right)}\\
\end{array}
\end{array}
\end{array}
if l < 5.3999999999999997e122Initial program 58.7%
cube-unmultN/A
associate-*l/N/A
associate-*r*N/A
associate-*l*N/A
times-fracN/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
sin-lowering-sin.f6472.4%
Applied egg-rr72.4%
associate-/l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
/-lowering-/.f6477.3%
Applied egg-rr77.3%
*-commutativeN/A
associate-*l*N/A
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
tan-lowering-tan.f64N/A
/-lowering-/.f64N/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
sin-lowering-sin.f6479.4%
Applied egg-rr79.4%
associate-*l*N/A
associate-/r*N/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
tan-lowering-tan.f64N/A
/-lowering-/.f64N/A
associate-*l/N/A
/-lowering-/.f64N/A
Applied egg-rr83.1%
if 5.3999999999999997e122 < l Initial program 30.8%
cube-unmultN/A
associate-*l/N/A
associate-*r*N/A
associate-*l*N/A
times-fracN/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
sin-lowering-sin.f6451.1%
Applied egg-rr51.1%
associate-/l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
/-lowering-/.f6458.4%
Applied egg-rr58.4%
*-commutativeN/A
associate-*l*N/A
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
tan-lowering-tan.f64N/A
/-lowering-/.f64N/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
sin-lowering-sin.f6467.7%
Applied egg-rr67.7%
Taylor expanded in k around 0
Simplified73.9%
Final simplification81.7%
t\_m = (fabs.f64 t)
t\_s = (copysign.f64 #s(literal 1 binary64) t)
(FPCore (t_s t_m l k)
:precision binary64
(let* ((t_2 (/ l (* t_m (sin k)))))
(*
t_s
(if (<= t_m 1.9e-162)
(* (/ t_2 t_m) (/ 1.0 (/ (tan k) (/ l t_m))))
(/
2.0
(*
(/ t_m l)
(* (/ t_m t_2) (* (tan 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 t_2 = l / (t_m * sin(k));
double tmp;
if (t_m <= 1.9e-162) {
tmp = (t_2 / t_m) * (1.0 / (tan(k) / (l / t_m)));
} else {
tmp = 2.0 / ((t_m / l) * ((t_m / t_2) * (tan(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) :: t_2
real(8) :: tmp
t_2 = l / (t_m * sin(k))
if (t_m <= 1.9d-162) then
tmp = (t_2 / t_m) * (1.0d0 / (tan(k) / (l / t_m)))
else
tmp = 2.0d0 / ((t_m / l) * ((t_m / t_2) * (tan(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 t_2 = l / (t_m * Math.sin(k));
double tmp;
if (t_m <= 1.9e-162) {
tmp = (t_2 / t_m) * (1.0 / (Math.tan(k) / (l / t_m)));
} else {
tmp = 2.0 / ((t_m / l) * ((t_m / t_2) * (Math.tan(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): t_2 = l / (t_m * math.sin(k)) tmp = 0 if t_m <= 1.9e-162: tmp = (t_2 / t_m) * (1.0 / (math.tan(k) / (l / t_m))) else: tmp = 2.0 / ((t_m / l) * ((t_m / t_2) * (math.tan(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) t_2 = Float64(l / Float64(t_m * sin(k))) tmp = 0.0 if (t_m <= 1.9e-162) tmp = Float64(Float64(t_2 / t_m) * Float64(1.0 / Float64(tan(k) / Float64(l / t_m)))); else tmp = Float64(2.0 / Float64(Float64(t_m / l) * Float64(Float64(t_m / t_2) * Float64(tan(k) * Float64(2.0 + Float64(k / Float64(Float64(t_m * 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) t_2 = l / (t_m * sin(k)); tmp = 0.0; if (t_m <= 1.9e-162) tmp = (t_2 / t_m) * (1.0 / (tan(k) / (l / t_m))); else tmp = 2.0 / ((t_m / l) * ((t_m / t_2) * (tan(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_] := Block[{t$95$2 = N[(l / N[(t$95$m * N[Sin[k], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, N[(t$95$s * If[LessEqual[t$95$m, 1.9e-162], N[(N[(t$95$2 / t$95$m), $MachinePrecision] * N[(1.0 / N[(N[Tan[k], $MachinePrecision] / N[(l / t$95$m), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(2.0 / N[(N[(t$95$m / l), $MachinePrecision] * N[(N[(t$95$m / t$95$2), $MachinePrecision] * N[(N[Tan[k], $MachinePrecision] * N[(2.0 + N[(k / N[(N[(t$95$m * t$95$m), $MachinePrecision] / k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $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}{t\_m \cdot \sin k}\\
t\_s \cdot \begin{array}{l}
\mathbf{if}\;t\_m \leq 1.9 \cdot 10^{-162}:\\
\;\;\;\;\frac{t\_2}{t\_m} \cdot \frac{1}{\frac{\tan k}{\frac{\ell}{t\_m}}}\\
\mathbf{else}:\\
\;\;\;\;\frac{2}{\frac{t\_m}{\ell} \cdot \left(\frac{t\_m}{t\_2} \cdot \left(\tan k \cdot \left(2 + \frac{k}{\frac{t\_m \cdot t\_m}{k}}\right)\right)\right)}\\
\end{array}
\end{array}
\end{array}
if t < 1.90000000000000002e-162Initial program 49.5%
cube-unmultN/A
associate-*l/N/A
associate-*r*N/A
associate-*l*N/A
times-fracN/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
sin-lowering-sin.f6464.7%
Applied egg-rr64.7%
associate-/l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
/-lowering-/.f6469.6%
Applied egg-rr69.6%
Taylor expanded in k around 0
Simplified62.0%
*-commutativeN/A
*-commutativeN/A
associate-*l*N/A
clear-numN/A
div-invN/A
associate-*l*N/A
associate-/r*N/A
metadata-evalN/A
inv-powN/A
*-commutativeN/A
metadata-evalN/A
unpow-prod-downN/A
Applied egg-rr65.6%
if 1.90000000000000002e-162 < t Initial program 62.0%
cube-unmultN/A
associate-*l/N/A
associate-*r*N/A
associate-*l*N/A
times-fracN/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
sin-lowering-sin.f6476.0%
Applied egg-rr76.0%
associate-/l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
/-lowering-/.f6481.9%
Applied egg-rr81.9%
associate-*l*N/A
associate-*l*N/A
associate-*l*N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
+-commutativeN/A
associate-+r+N/A
metadata-evalN/A
unpow2N/A
clear-numN/A
div-invN/A
*-lowering-*.f64N/A
Applied egg-rr86.6%
t\_m = (fabs.f64 t)
t\_s = (copysign.f64 #s(literal 1 binary64) t)
(FPCore (t_s t_m l k)
:precision binary64
(*
t_s
(if (<= k 3.5e-31)
(* (/ (/ l (* t_m (sin k))) t_m) (/ 1.0 (/ (tan k) (/ l t_m))))
(/
2.0
(*
(/ t_m l)
(*
t_m
(*
(tan k)
(/ (* t_m (+ 2.0 (/ k (/ (* t_m t_m) k)))) (/ l (sin k))))))))))t\_m = fabs(t);
t\_s = copysign(1.0, t);
double code(double t_s, double t_m, double l, double k) {
double tmp;
if (k <= 3.5e-31) {
tmp = ((l / (t_m * sin(k))) / t_m) * (1.0 / (tan(k) / (l / t_m)));
} else {
tmp = 2.0 / ((t_m / l) * (t_m * (tan(k) * ((t_m * (2.0 + (k / ((t_m * t_m) / k)))) / (l / sin(k))))));
}
return t_s * tmp;
}
t\_m = abs(t)
t\_s = copysign(1.0d0, t)
real(8) function code(t_s, t_m, l, k)
real(8), intent (in) :: t_s
real(8), intent (in) :: t_m
real(8), intent (in) :: l
real(8), intent (in) :: k
real(8) :: tmp
if (k <= 3.5d-31) then
tmp = ((l / (t_m * sin(k))) / t_m) * (1.0d0 / (tan(k) / (l / t_m)))
else
tmp = 2.0d0 / ((t_m / l) * (t_m * (tan(k) * ((t_m * (2.0d0 + (k / ((t_m * t_m) / k)))) / (l / sin(k))))))
end if
code = t_s * tmp
end function
t\_m = Math.abs(t);
t\_s = Math.copySign(1.0, t);
public static double code(double t_s, double t_m, double l, double k) {
double tmp;
if (k <= 3.5e-31) {
tmp = ((l / (t_m * Math.sin(k))) / t_m) * (1.0 / (Math.tan(k) / (l / t_m)));
} else {
tmp = 2.0 / ((t_m / l) * (t_m * (Math.tan(k) * ((t_m * (2.0 + (k / ((t_m * t_m) / k)))) / (l / Math.sin(k))))));
}
return t_s * tmp;
}
t\_m = math.fabs(t) t\_s = math.copysign(1.0, t) def code(t_s, t_m, l, k): tmp = 0 if k <= 3.5e-31: tmp = ((l / (t_m * math.sin(k))) / t_m) * (1.0 / (math.tan(k) / (l / t_m))) else: tmp = 2.0 / ((t_m / l) * (t_m * (math.tan(k) * ((t_m * (2.0 + (k / ((t_m * t_m) / k)))) / (l / math.sin(k)))))) return t_s * tmp
t\_m = abs(t) t\_s = copysign(1.0, t) function code(t_s, t_m, l, k) tmp = 0.0 if (k <= 3.5e-31) tmp = Float64(Float64(Float64(l / Float64(t_m * sin(k))) / t_m) * Float64(1.0 / Float64(tan(k) / Float64(l / t_m)))); else tmp = Float64(2.0 / Float64(Float64(t_m / l) * Float64(t_m * Float64(tan(k) * Float64(Float64(t_m * Float64(2.0 + Float64(k / Float64(Float64(t_m * t_m) / k)))) / Float64(l / sin(k))))))); end return Float64(t_s * tmp) end
t\_m = abs(t); t\_s = sign(t) * abs(1.0); function tmp_2 = code(t_s, t_m, l, k) tmp = 0.0; if (k <= 3.5e-31) tmp = ((l / (t_m * sin(k))) / t_m) * (1.0 / (tan(k) / (l / t_m))); else tmp = 2.0 / ((t_m / l) * (t_m * (tan(k) * ((t_m * (2.0 + (k / ((t_m * t_m) / k)))) / (l / sin(k)))))); end tmp_2 = t_s * tmp; end
t\_m = N[Abs[t], $MachinePrecision]
t\_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[t]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
code[t$95$s_, t$95$m_, l_, k_] := N[(t$95$s * If[LessEqual[k, 3.5e-31], N[(N[(N[(l / N[(t$95$m * N[Sin[k], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / t$95$m), $MachinePrecision] * N[(1.0 / N[(N[Tan[k], $MachinePrecision] / N[(l / t$95$m), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(2.0 / N[(N[(t$95$m / l), $MachinePrecision] * N[(t$95$m * N[(N[Tan[k], $MachinePrecision] * N[(N[(t$95$m * N[(2.0 + N[(k / N[(N[(t$95$m * t$95$m), $MachinePrecision] / k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(l / N[Sin[k], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]), $MachinePrecision]
\begin{array}{l}
t\_m = \left|t\right|
\\
t\_s = \mathsf{copysign}\left(1, t\right)
\\
t\_s \cdot \begin{array}{l}
\mathbf{if}\;k \leq 3.5 \cdot 10^{-31}:\\
\;\;\;\;\frac{\frac{\ell}{t\_m \cdot \sin k}}{t\_m} \cdot \frac{1}{\frac{\tan k}{\frac{\ell}{t\_m}}}\\
\mathbf{else}:\\
\;\;\;\;\frac{2}{\frac{t\_m}{\ell} \cdot \left(t\_m \cdot \left(\tan k \cdot \frac{t\_m \cdot \left(2 + \frac{k}{\frac{t\_m \cdot t\_m}{k}}\right)}{\frac{\ell}{\sin k}}\right)\right)}\\
\end{array}
\end{array}
if k < 3.49999999999999985e-31Initial program 56.0%
cube-unmultN/A
associate-*l/N/A
associate-*r*N/A
associate-*l*N/A
times-fracN/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
sin-lowering-sin.f6469.9%
Applied egg-rr69.9%
associate-/l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
/-lowering-/.f6475.6%
Applied egg-rr75.6%
Taylor expanded in k around 0
Simplified69.6%
*-commutativeN/A
*-commutativeN/A
associate-*l*N/A
clear-numN/A
div-invN/A
associate-*l*N/A
associate-/r*N/A
metadata-evalN/A
inv-powN/A
*-commutativeN/A
metadata-evalN/A
unpow-prod-downN/A
Applied egg-rr75.2%
if 3.49999999999999985e-31 < k Initial program 50.8%
cube-unmultN/A
associate-*l/N/A
cube-unmultN/A
sqr-powN/A
associate-*l*N/A
times-fracN/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
pow-lowering-pow.f64N/A
metadata-evalN/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
pow-lowering-pow.f64N/A
metadata-evalN/A
sin-lowering-sin.f6432.4%
Applied egg-rr32.4%
Applied egg-rr70.6%
associate-*l/N/A
*-commutativeN/A
associate-*l*N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
associate-*l*N/A
*-lowering-*.f64N/A
tan-lowering-tan.f64N/A
associate-*l/N/A
/-lowering-/.f64N/A
Applied egg-rr75.6%
Final simplification75.4%
t\_m = (fabs.f64 t)
t\_s = (copysign.f64 #s(literal 1 binary64) t)
(FPCore (t_s t_m l k)
:precision binary64
(*
t_s
(if (<= l 4e-149)
(/ (* (/ l k) (/ (/ l k) t_m)) (* t_m t_m))
(if (<= l 2.9e-74)
(/
(/ 2.0 k)
(*
k
(*
(/ 1.0 (* l l))
(+
(* 2.0 (* t_m (* t_m t_m)))
(* (* k k) (* t_m (+ 1.0 (* (* t_m t_m) 0.3333333333333333))))))))
(* (/ (/ l (* t_m (sin k))) t_m) (/ 1.0 (/ (tan k) (/ l 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 (l <= 4e-149) {
tmp = ((l / k) * ((l / k) / t_m)) / (t_m * t_m);
} else if (l <= 2.9e-74) {
tmp = (2.0 / k) / (k * ((1.0 / (l * l)) * ((2.0 * (t_m * (t_m * t_m))) + ((k * k) * (t_m * (1.0 + ((t_m * t_m) * 0.3333333333333333)))))));
} else {
tmp = ((l / (t_m * sin(k))) / t_m) * (1.0 / (tan(k) / (l / 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 (l <= 4d-149) then
tmp = ((l / k) * ((l / k) / t_m)) / (t_m * t_m)
else if (l <= 2.9d-74) then
tmp = (2.0d0 / k) / (k * ((1.0d0 / (l * l)) * ((2.0d0 * (t_m * (t_m * t_m))) + ((k * k) * (t_m * (1.0d0 + ((t_m * t_m) * 0.3333333333333333d0)))))))
else
tmp = ((l / (t_m * sin(k))) / t_m) * (1.0d0 / (tan(k) / (l / 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 (l <= 4e-149) {
tmp = ((l / k) * ((l / k) / t_m)) / (t_m * t_m);
} else if (l <= 2.9e-74) {
tmp = (2.0 / k) / (k * ((1.0 / (l * l)) * ((2.0 * (t_m * (t_m * t_m))) + ((k * k) * (t_m * (1.0 + ((t_m * t_m) * 0.3333333333333333)))))));
} else {
tmp = ((l / (t_m * Math.sin(k))) / t_m) * (1.0 / (Math.tan(k) / (l / 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 l <= 4e-149: tmp = ((l / k) * ((l / k) / t_m)) / (t_m * t_m) elif l <= 2.9e-74: tmp = (2.0 / k) / (k * ((1.0 / (l * l)) * ((2.0 * (t_m * (t_m * t_m))) + ((k * k) * (t_m * (1.0 + ((t_m * t_m) * 0.3333333333333333))))))) else: tmp = ((l / (t_m * math.sin(k))) / t_m) * (1.0 / (math.tan(k) / (l / 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 (l <= 4e-149) tmp = Float64(Float64(Float64(l / k) * Float64(Float64(l / k) / t_m)) / Float64(t_m * t_m)); elseif (l <= 2.9e-74) tmp = Float64(Float64(2.0 / k) / Float64(k * Float64(Float64(1.0 / Float64(l * l)) * Float64(Float64(2.0 * Float64(t_m * Float64(t_m * t_m))) + Float64(Float64(k * k) * Float64(t_m * Float64(1.0 + Float64(Float64(t_m * t_m) * 0.3333333333333333)))))))); else tmp = Float64(Float64(Float64(l / Float64(t_m * sin(k))) / t_m) * Float64(1.0 / Float64(tan(k) / Float64(l / 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 (l <= 4e-149) tmp = ((l / k) * ((l / k) / t_m)) / (t_m * t_m); elseif (l <= 2.9e-74) tmp = (2.0 / k) / (k * ((1.0 / (l * l)) * ((2.0 * (t_m * (t_m * t_m))) + ((k * k) * (t_m * (1.0 + ((t_m * t_m) * 0.3333333333333333))))))); else tmp = ((l / (t_m * sin(k))) / t_m) * (1.0 / (tan(k) / (l / 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[l, 4e-149], N[(N[(N[(l / k), $MachinePrecision] * N[(N[(l / k), $MachinePrecision] / t$95$m), $MachinePrecision]), $MachinePrecision] / N[(t$95$m * t$95$m), $MachinePrecision]), $MachinePrecision], If[LessEqual[l, 2.9e-74], N[(N[(2.0 / k), $MachinePrecision] / N[(k * N[(N[(1.0 / N[(l * l), $MachinePrecision]), $MachinePrecision] * N[(N[(2.0 * N[(t$95$m * N[(t$95$m * t$95$m), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(k * k), $MachinePrecision] * N[(t$95$m * N[(1.0 + N[(N[(t$95$m * t$95$m), $MachinePrecision] * 0.3333333333333333), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[(l / N[(t$95$m * N[Sin[k], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / t$95$m), $MachinePrecision] * N[(1.0 / N[(N[Tan[k], $MachinePrecision] / N[(l / t$95$m), $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}\;\ell \leq 4 \cdot 10^{-149}:\\
\;\;\;\;\frac{\frac{\ell}{k} \cdot \frac{\frac{\ell}{k}}{t\_m}}{t\_m \cdot t\_m}\\
\mathbf{elif}\;\ell \leq 2.9 \cdot 10^{-74}:\\
\;\;\;\;\frac{\frac{2}{k}}{k \cdot \left(\frac{1}{\ell \cdot \ell} \cdot \left(2 \cdot \left(t\_m \cdot \left(t\_m \cdot t\_m\right)\right) + \left(k \cdot k\right) \cdot \left(t\_m \cdot \left(1 + \left(t\_m \cdot t\_m\right) \cdot 0.3333333333333333\right)\right)\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{\ell}{t\_m \cdot \sin k}}{t\_m} \cdot \frac{1}{\frac{\tan k}{\frac{\ell}{t\_m}}}\\
\end{array}
\end{array}
if l < 3.99999999999999992e-149Initial program 57.8%
Taylor expanded in k around 0
/-lowering-/.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
cube-multN/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6455.0%
Simplified55.0%
associate-/r*N/A
associate-*r*N/A
associate-/r*N/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f6459.7%
Applied egg-rr59.7%
associate-/l*N/A
*-commutativeN/A
times-fracN/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
/-lowering-/.f6465.8%
Applied egg-rr65.8%
if 3.99999999999999992e-149 < l < 2.9e-74Initial program 59.4%
Taylor expanded in k around 0
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
associate-*r/N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
cube-multN/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
Simplified83.1%
associate-*l*N/A
associate-/r*N/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
div-invN/A
div-invN/A
distribute-rgt-outN/A
Applied egg-rr88.7%
if 2.9e-74 < l Initial program 46.0%
cube-unmultN/A
associate-*l/N/A
associate-*r*N/A
associate-*l*N/A
times-fracN/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
sin-lowering-sin.f6459.9%
Applied egg-rr59.9%
associate-/l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
/-lowering-/.f6464.8%
Applied egg-rr64.8%
Taylor expanded in k around 0
Simplified65.6%
*-commutativeN/A
*-commutativeN/A
associate-*l*N/A
clear-numN/A
div-invN/A
associate-*l*N/A
associate-/r*N/A
metadata-evalN/A
inv-powN/A
*-commutativeN/A
metadata-evalN/A
unpow-prod-downN/A
Applied egg-rr71.9%
t\_m = (fabs.f64 t)
t\_s = (copysign.f64 #s(literal 1 binary64) t)
(FPCore (t_s t_m l k)
:precision binary64
(*
t_s
(if (<= l 4.8e-148)
(/ (* (/ l k) (/ (/ l k) t_m)) (* t_m t_m))
(if (<= l 5e-74)
(/
(/ 2.0 k)
(*
k
(*
(/ 1.0 (* l l))
(+
(* 2.0 (* t_m (* t_m t_m)))
(* (* k k) (* t_m (+ 1.0 (* (* t_m t_m) 0.3333333333333333))))))))
(/
2.0
(*
2.0
(*
(tan k)
(*
(* t_m (/ t_m l))
(*
k
(+
(/ t_m l)
(* -0.16666666666666666 (/ (* t_m (* k k)) l))))))))))))t\_m = fabs(t);
t\_s = copysign(1.0, t);
double code(double t_s, double t_m, double l, double k) {
double tmp;
if (l <= 4.8e-148) {
tmp = ((l / k) * ((l / k) / t_m)) / (t_m * t_m);
} else if (l <= 5e-74) {
tmp = (2.0 / k) / (k * ((1.0 / (l * l)) * ((2.0 * (t_m * (t_m * t_m))) + ((k * k) * (t_m * (1.0 + ((t_m * t_m) * 0.3333333333333333)))))));
} else {
tmp = 2.0 / (2.0 * (tan(k) * ((t_m * (t_m / l)) * (k * ((t_m / l) + (-0.16666666666666666 * ((t_m * (k * k)) / l)))))));
}
return t_s * tmp;
}
t\_m = abs(t)
t\_s = copysign(1.0d0, t)
real(8) function code(t_s, t_m, l, k)
real(8), intent (in) :: t_s
real(8), intent (in) :: t_m
real(8), intent (in) :: l
real(8), intent (in) :: k
real(8) :: tmp
if (l <= 4.8d-148) then
tmp = ((l / k) * ((l / k) / t_m)) / (t_m * t_m)
else if (l <= 5d-74) then
tmp = (2.0d0 / k) / (k * ((1.0d0 / (l * l)) * ((2.0d0 * (t_m * (t_m * t_m))) + ((k * k) * (t_m * (1.0d0 + ((t_m * t_m) * 0.3333333333333333d0)))))))
else
tmp = 2.0d0 / (2.0d0 * (tan(k) * ((t_m * (t_m / l)) * (k * ((t_m / l) + ((-0.16666666666666666d0) * ((t_m * (k * k)) / l)))))))
end if
code = t_s * tmp
end function
t\_m = Math.abs(t);
t\_s = Math.copySign(1.0, t);
public static double code(double t_s, double t_m, double l, double k) {
double tmp;
if (l <= 4.8e-148) {
tmp = ((l / k) * ((l / k) / t_m)) / (t_m * t_m);
} else if (l <= 5e-74) {
tmp = (2.0 / k) / (k * ((1.0 / (l * l)) * ((2.0 * (t_m * (t_m * t_m))) + ((k * k) * (t_m * (1.0 + ((t_m * t_m) * 0.3333333333333333)))))));
} else {
tmp = 2.0 / (2.0 * (Math.tan(k) * ((t_m * (t_m / l)) * (k * ((t_m / l) + (-0.16666666666666666 * ((t_m * (k * k)) / l)))))));
}
return t_s * tmp;
}
t\_m = math.fabs(t) t\_s = math.copysign(1.0, t) def code(t_s, t_m, l, k): tmp = 0 if l <= 4.8e-148: tmp = ((l / k) * ((l / k) / t_m)) / (t_m * t_m) elif l <= 5e-74: tmp = (2.0 / k) / (k * ((1.0 / (l * l)) * ((2.0 * (t_m * (t_m * t_m))) + ((k * k) * (t_m * (1.0 + ((t_m * t_m) * 0.3333333333333333))))))) else: tmp = 2.0 / (2.0 * (math.tan(k) * ((t_m * (t_m / l)) * (k * ((t_m / l) + (-0.16666666666666666 * ((t_m * (k * k)) / 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 (l <= 4.8e-148) tmp = Float64(Float64(Float64(l / k) * Float64(Float64(l / k) / t_m)) / Float64(t_m * t_m)); elseif (l <= 5e-74) tmp = Float64(Float64(2.0 / k) / Float64(k * Float64(Float64(1.0 / Float64(l * l)) * Float64(Float64(2.0 * Float64(t_m * Float64(t_m * t_m))) + Float64(Float64(k * k) * Float64(t_m * Float64(1.0 + Float64(Float64(t_m * t_m) * 0.3333333333333333)))))))); else tmp = Float64(2.0 / Float64(2.0 * Float64(tan(k) * Float64(Float64(t_m * Float64(t_m / l)) * Float64(k * Float64(Float64(t_m / l) + Float64(-0.16666666666666666 * Float64(Float64(t_m * Float64(k * k)) / l)))))))); end return Float64(t_s * tmp) end
t\_m = abs(t); t\_s = sign(t) * abs(1.0); function tmp_2 = code(t_s, t_m, l, k) tmp = 0.0; if (l <= 4.8e-148) tmp = ((l / k) * ((l / k) / t_m)) / (t_m * t_m); elseif (l <= 5e-74) tmp = (2.0 / k) / (k * ((1.0 / (l * l)) * ((2.0 * (t_m * (t_m * t_m))) + ((k * k) * (t_m * (1.0 + ((t_m * t_m) * 0.3333333333333333))))))); else tmp = 2.0 / (2.0 * (tan(k) * ((t_m * (t_m / l)) * (k * ((t_m / l) + (-0.16666666666666666 * ((t_m * (k * k)) / l))))))); end tmp_2 = t_s * tmp; end
t\_m = N[Abs[t], $MachinePrecision]
t\_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[t]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
code[t$95$s_, t$95$m_, l_, k_] := N[(t$95$s * If[LessEqual[l, 4.8e-148], N[(N[(N[(l / k), $MachinePrecision] * N[(N[(l / k), $MachinePrecision] / t$95$m), $MachinePrecision]), $MachinePrecision] / N[(t$95$m * t$95$m), $MachinePrecision]), $MachinePrecision], If[LessEqual[l, 5e-74], N[(N[(2.0 / k), $MachinePrecision] / N[(k * N[(N[(1.0 / N[(l * l), $MachinePrecision]), $MachinePrecision] * N[(N[(2.0 * N[(t$95$m * N[(t$95$m * t$95$m), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(k * k), $MachinePrecision] * N[(t$95$m * N[(1.0 + N[(N[(t$95$m * t$95$m), $MachinePrecision] * 0.3333333333333333), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(2.0 / N[(2.0 * N[(N[Tan[k], $MachinePrecision] * N[(N[(t$95$m * N[(t$95$m / l), $MachinePrecision]), $MachinePrecision] * N[(k * N[(N[(t$95$m / l), $MachinePrecision] + N[(-0.16666666666666666 * N[(N[(t$95$m * N[(k * k), $MachinePrecision]), $MachinePrecision] / l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $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}\;\ell \leq 4.8 \cdot 10^{-148}:\\
\;\;\;\;\frac{\frac{\ell}{k} \cdot \frac{\frac{\ell}{k}}{t\_m}}{t\_m \cdot t\_m}\\
\mathbf{elif}\;\ell \leq 5 \cdot 10^{-74}:\\
\;\;\;\;\frac{\frac{2}{k}}{k \cdot \left(\frac{1}{\ell \cdot \ell} \cdot \left(2 \cdot \left(t\_m \cdot \left(t\_m \cdot t\_m\right)\right) + \left(k \cdot k\right) \cdot \left(t\_m \cdot \left(1 + \left(t\_m \cdot t\_m\right) \cdot 0.3333333333333333\right)\right)\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{2}{2 \cdot \left(\tan k \cdot \left(\left(t\_m \cdot \frac{t\_m}{\ell}\right) \cdot \left(k \cdot \left(\frac{t\_m}{\ell} + -0.16666666666666666 \cdot \frac{t\_m \cdot \left(k \cdot k\right)}{\ell}\right)\right)\right)\right)}\\
\end{array}
\end{array}
if l < 4.8000000000000002e-148Initial program 57.8%
Taylor expanded in k around 0
/-lowering-/.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
cube-multN/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6455.0%
Simplified55.0%
associate-/r*N/A
associate-*r*N/A
associate-/r*N/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f6459.7%
Applied egg-rr59.7%
associate-/l*N/A
*-commutativeN/A
times-fracN/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
/-lowering-/.f6465.8%
Applied egg-rr65.8%
if 4.8000000000000002e-148 < l < 4.99999999999999998e-74Initial program 59.4%
Taylor expanded in k around 0
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
associate-*r/N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
cube-multN/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
Simplified83.1%
associate-*l*N/A
associate-/r*N/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
div-invN/A
div-invN/A
distribute-rgt-outN/A
Applied egg-rr88.7%
if 4.99999999999999998e-74 < l Initial program 46.0%
cube-unmultN/A
associate-*l/N/A
associate-*r*N/A
associate-*l*N/A
times-fracN/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
sin-lowering-sin.f6459.9%
Applied egg-rr59.9%
associate-/l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
/-lowering-/.f6464.8%
Applied egg-rr64.8%
Taylor expanded in k around 0
Simplified65.6%
Taylor expanded in k around 0
+-commutativeN/A
*-commutativeN/A
associate-/l*N/A
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
/-lowering-/.f64N/A
*-commutativeN/A
associate-*r*N/A
associate-/l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6452.7%
Simplified52.7%
Final simplification63.3%
t\_m = (fabs.f64 t)
t\_s = (copysign.f64 #s(literal 1 binary64) t)
(FPCore (t_s t_m l k)
:precision binary64
(*
t_s
(if (<= l 3e-154)
(/ (* (/ l k) (/ (/ l k) t_m)) (* t_m t_m))
(if (<= l 2.05e+61)
(/
(/ 2.0 k)
(*
k
(*
(/ 1.0 (* l l))
(+
(* 2.0 (* t_m (* t_m t_m)))
(* (* k k) (* t_m (+ 1.0 (* (* t_m t_m) 0.3333333333333333))))))))
(/ 2.0 (* 2.0 (* (tan k) (* (* t_m (/ t_m l)) (/ (* t_m k) 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 (l <= 3e-154) {
tmp = ((l / k) * ((l / k) / t_m)) / (t_m * t_m);
} else if (l <= 2.05e+61) {
tmp = (2.0 / k) / (k * ((1.0 / (l * l)) * ((2.0 * (t_m * (t_m * t_m))) + ((k * k) * (t_m * (1.0 + ((t_m * t_m) * 0.3333333333333333)))))));
} else {
tmp = 2.0 / (2.0 * (tan(k) * ((t_m * (t_m / l)) * ((t_m * k) / l))));
}
return t_s * tmp;
}
t\_m = abs(t)
t\_s = copysign(1.0d0, t)
real(8) function code(t_s, t_m, l, k)
real(8), intent (in) :: t_s
real(8), intent (in) :: t_m
real(8), intent (in) :: l
real(8), intent (in) :: k
real(8) :: tmp
if (l <= 3d-154) then
tmp = ((l / k) * ((l / k) / t_m)) / (t_m * t_m)
else if (l <= 2.05d+61) then
tmp = (2.0d0 / k) / (k * ((1.0d0 / (l * l)) * ((2.0d0 * (t_m * (t_m * t_m))) + ((k * k) * (t_m * (1.0d0 + ((t_m * t_m) * 0.3333333333333333d0)))))))
else
tmp = 2.0d0 / (2.0d0 * (tan(k) * ((t_m * (t_m / l)) * ((t_m * k) / l))))
end if
code = t_s * tmp
end function
t\_m = Math.abs(t);
t\_s = Math.copySign(1.0, t);
public static double code(double t_s, double t_m, double l, double k) {
double tmp;
if (l <= 3e-154) {
tmp = ((l / k) * ((l / k) / t_m)) / (t_m * t_m);
} else if (l <= 2.05e+61) {
tmp = (2.0 / k) / (k * ((1.0 / (l * l)) * ((2.0 * (t_m * (t_m * t_m))) + ((k * k) * (t_m * (1.0 + ((t_m * t_m) * 0.3333333333333333)))))));
} else {
tmp = 2.0 / (2.0 * (Math.tan(k) * ((t_m * (t_m / l)) * ((t_m * k) / l))));
}
return t_s * tmp;
}
t\_m = math.fabs(t) t\_s = math.copysign(1.0, t) def code(t_s, t_m, l, k): tmp = 0 if l <= 3e-154: tmp = ((l / k) * ((l / k) / t_m)) / (t_m * t_m) elif l <= 2.05e+61: tmp = (2.0 / k) / (k * ((1.0 / (l * l)) * ((2.0 * (t_m * (t_m * t_m))) + ((k * k) * (t_m * (1.0 + ((t_m * t_m) * 0.3333333333333333))))))) else: tmp = 2.0 / (2.0 * (math.tan(k) * ((t_m * (t_m / l)) * ((t_m * k) / 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 (l <= 3e-154) tmp = Float64(Float64(Float64(l / k) * Float64(Float64(l / k) / t_m)) / Float64(t_m * t_m)); elseif (l <= 2.05e+61) tmp = Float64(Float64(2.0 / k) / Float64(k * Float64(Float64(1.0 / Float64(l * l)) * Float64(Float64(2.0 * Float64(t_m * Float64(t_m * t_m))) + Float64(Float64(k * k) * Float64(t_m * Float64(1.0 + Float64(Float64(t_m * t_m) * 0.3333333333333333)))))))); else tmp = Float64(2.0 / Float64(2.0 * Float64(tan(k) * Float64(Float64(t_m * Float64(t_m / l)) * Float64(Float64(t_m * k) / l))))); end return Float64(t_s * tmp) end
t\_m = abs(t); t\_s = sign(t) * abs(1.0); function tmp_2 = code(t_s, t_m, l, k) tmp = 0.0; if (l <= 3e-154) tmp = ((l / k) * ((l / k) / t_m)) / (t_m * t_m); elseif (l <= 2.05e+61) tmp = (2.0 / k) / (k * ((1.0 / (l * l)) * ((2.0 * (t_m * (t_m * t_m))) + ((k * k) * (t_m * (1.0 + ((t_m * t_m) * 0.3333333333333333))))))); else tmp = 2.0 / (2.0 * (tan(k) * ((t_m * (t_m / l)) * ((t_m * k) / l)))); end tmp_2 = t_s * tmp; end
t\_m = N[Abs[t], $MachinePrecision]
t\_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[t]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
code[t$95$s_, t$95$m_, l_, k_] := N[(t$95$s * If[LessEqual[l, 3e-154], N[(N[(N[(l / k), $MachinePrecision] * N[(N[(l / k), $MachinePrecision] / t$95$m), $MachinePrecision]), $MachinePrecision] / N[(t$95$m * t$95$m), $MachinePrecision]), $MachinePrecision], If[LessEqual[l, 2.05e+61], N[(N[(2.0 / k), $MachinePrecision] / N[(k * N[(N[(1.0 / N[(l * l), $MachinePrecision]), $MachinePrecision] * N[(N[(2.0 * N[(t$95$m * N[(t$95$m * t$95$m), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(k * k), $MachinePrecision] * N[(t$95$m * N[(1.0 + N[(N[(t$95$m * t$95$m), $MachinePrecision] * 0.3333333333333333), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(2.0 / N[(2.0 * N[(N[Tan[k], $MachinePrecision] * N[(N[(t$95$m * N[(t$95$m / l), $MachinePrecision]), $MachinePrecision] * N[(N[(t$95$m * k), $MachinePrecision] / l), $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}\;\ell \leq 3 \cdot 10^{-154}:\\
\;\;\;\;\frac{\frac{\ell}{k} \cdot \frac{\frac{\ell}{k}}{t\_m}}{t\_m \cdot t\_m}\\
\mathbf{elif}\;\ell \leq 2.05 \cdot 10^{+61}:\\
\;\;\;\;\frac{\frac{2}{k}}{k \cdot \left(\frac{1}{\ell \cdot \ell} \cdot \left(2 \cdot \left(t\_m \cdot \left(t\_m \cdot t\_m\right)\right) + \left(k \cdot k\right) \cdot \left(t\_m \cdot \left(1 + \left(t\_m \cdot t\_m\right) \cdot 0.3333333333333333\right)\right)\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{2}{2 \cdot \left(\tan k \cdot \left(\left(t\_m \cdot \frac{t\_m}{\ell}\right) \cdot \frac{t\_m \cdot k}{\ell}\right)\right)}\\
\end{array}
\end{array}
if l < 3.0000000000000002e-154Initial program 57.8%
Taylor expanded in k around 0
/-lowering-/.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
cube-multN/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6455.0%
Simplified55.0%
associate-/r*N/A
associate-*r*N/A
associate-/r*N/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f6459.7%
Applied egg-rr59.7%
associate-/l*N/A
*-commutativeN/A
times-fracN/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
/-lowering-/.f6465.8%
Applied egg-rr65.8%
if 3.0000000000000002e-154 < l < 2.04999999999999986e61Initial program 58.6%
Taylor expanded in k around 0
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
associate-*r/N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
cube-multN/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
Simplified71.1%
associate-*l*N/A
associate-/r*N/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
div-invN/A
div-invN/A
distribute-rgt-outN/A
Applied egg-rr73.3%
if 2.04999999999999986e61 < l Initial program 40.2%
cube-unmultN/A
associate-*l/N/A
associate-*r*N/A
associate-*l*N/A
times-fracN/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
sin-lowering-sin.f6457.2%
Applied egg-rr57.2%
associate-/l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
/-lowering-/.f6464.5%
Applied egg-rr64.5%
Taylor expanded in k around 0
Simplified67.3%
Taylor expanded in k around 0
/-lowering-/.f64N/A
*-lowering-*.f6461.1%
Simplified61.1%
Final simplification66.1%
t\_m = (fabs.f64 t)
t\_s = (copysign.f64 #s(literal 1 binary64) t)
(FPCore (t_s t_m l k)
:precision binary64
(*
t_s
(if (<= t_m 1.9e-48)
(/ 2.0 (* (* k k) (/ (* t_m (* k k)) (* l l))))
(if (<= t_m 6.8e+129)
(* (/ l k) (/ l (* t_m (* k (* t_m t_m)))))
(* l (/ l (* t_m (* 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 <= 1.9e-48) {
tmp = 2.0 / ((k * k) * ((t_m * (k * k)) / (l * l)));
} else if (t_m <= 6.8e+129) {
tmp = (l / k) * (l / (t_m * (k * (t_m * t_m))));
} else {
tmp = l * (l / (t_m * (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 <= 1.9d-48) then
tmp = 2.0d0 / ((k * k) * ((t_m * (k * k)) / (l * l)))
else if (t_m <= 6.8d+129) then
tmp = (l / k) * (l / (t_m * (k * (t_m * t_m))))
else
tmp = l * (l / (t_m * (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 <= 1.9e-48) {
tmp = 2.0 / ((k * k) * ((t_m * (k * k)) / (l * l)));
} else if (t_m <= 6.8e+129) {
tmp = (l / k) * (l / (t_m * (k * (t_m * t_m))));
} else {
tmp = l * (l / (t_m * (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 <= 1.9e-48: tmp = 2.0 / ((k * k) * ((t_m * (k * k)) / (l * l))) elif t_m <= 6.8e+129: tmp = (l / k) * (l / (t_m * (k * (t_m * t_m)))) else: tmp = l * (l / (t_m * (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 <= 1.9e-48) tmp = Float64(2.0 / Float64(Float64(k * k) * Float64(Float64(t_m * Float64(k * k)) / Float64(l * l)))); elseif (t_m <= 6.8e+129) tmp = Float64(Float64(l / k) * Float64(l / Float64(t_m * Float64(k * Float64(t_m * t_m))))); else tmp = Float64(l * Float64(l / Float64(t_m * Float64(k * Float64(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 <= 1.9e-48) tmp = 2.0 / ((k * k) * ((t_m * (k * k)) / (l * l))); elseif (t_m <= 6.8e+129) tmp = (l / k) * (l / (t_m * (k * (t_m * t_m)))); else tmp = l * (l / (t_m * (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, 1.9e-48], N[(2.0 / N[(N[(k * k), $MachinePrecision] * N[(N[(t$95$m * N[(k * k), $MachinePrecision]), $MachinePrecision] / N[(l * l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$m, 6.8e+129], N[(N[(l / k), $MachinePrecision] * N[(l / N[(t$95$m * N[(k * N[(t$95$m * t$95$m), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(l * N[(l / N[(t$95$m * N[(k * N[(t$95$m * N[(t$95$m * k), $MachinePrecision]), $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 1.9 \cdot 10^{-48}:\\
\;\;\;\;\frac{2}{\left(k \cdot k\right) \cdot \frac{t\_m \cdot \left(k \cdot k\right)}{\ell \cdot \ell}}\\
\mathbf{elif}\;t\_m \leq 6.8 \cdot 10^{+129}:\\
\;\;\;\;\frac{\ell}{k} \cdot \frac{\ell}{t\_m \cdot \left(k \cdot \left(t\_m \cdot t\_m\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;\ell \cdot \frac{\ell}{t\_m \cdot \left(k \cdot \left(t\_m \cdot \left(t\_m \cdot k\right)\right)\right)}\\
\end{array}
\end{array}
if t < 1.90000000000000001e-48Initial program 48.2%
Taylor expanded in k around 0
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
associate-*r/N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
cube-multN/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
Simplified49.5%
Taylor expanded in t around 0
/-lowering-/.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6452.4%
Simplified52.4%
if 1.90000000000000001e-48 < t < 6.80000000000000036e129Initial program 69.9%
Taylor expanded in k around 0
/-lowering-/.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
cube-multN/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6464.7%
Simplified64.7%
*-commutativeN/A
times-fracN/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
*-commutativeN/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
/-lowering-/.f6479.8%
Applied egg-rr79.8%
if 6.80000000000000036e129 < t Initial program 66.5%
Taylor expanded in k around 0
/-lowering-/.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
cube-multN/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6466.5%
Simplified66.5%
associate-*r*N/A
times-fracN/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
associate-*r*N/A
associate-/r*N/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f6466.8%
Applied egg-rr66.8%
*-commutativeN/A
associate-/l/N/A
frac-timesN/A
associate-*l*N/A
associate-*r*N/A
*-commutativeN/A
associate-/l*N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
*-commutativeN/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6489.3%
Applied egg-rr89.3%
Final simplification62.2%
t\_m = (fabs.f64 t)
t\_s = (copysign.f64 #s(literal 1 binary64) t)
(FPCore (t_s t_m l k)
:precision binary64
(*
t_s
(if (<= k 3.95e+58)
(* l (/ l (* t_m (* k (* t_m (* t_m k))))))
(/ (/ (/ (/ (/ (* l l) k) t_m) k) t_m) 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 <= 3.95e+58) {
tmp = l * (l / (t_m * (k * (t_m * (t_m * k)))));
} else {
tmp = (((((l * l) / k) / t_m) / k) / t_m) / 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 <= 3.95d+58) then
tmp = l * (l / (t_m * (k * (t_m * (t_m * k)))))
else
tmp = (((((l * l) / k) / t_m) / k) / t_m) / 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 <= 3.95e+58) {
tmp = l * (l / (t_m * (k * (t_m * (t_m * k)))));
} else {
tmp = (((((l * l) / k) / t_m) / k) / t_m) / 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 <= 3.95e+58: tmp = l * (l / (t_m * (k * (t_m * (t_m * k))))) else: tmp = (((((l * l) / k) / t_m) / k) / t_m) / 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 <= 3.95e+58) tmp = Float64(l * Float64(l / Float64(t_m * Float64(k * Float64(t_m * Float64(t_m * k)))))); else tmp = Float64(Float64(Float64(Float64(Float64(Float64(l * l) / k) / t_m) / k) / t_m) / 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 <= 3.95e+58) tmp = l * (l / (t_m * (k * (t_m * (t_m * k))))); else tmp = (((((l * l) / k) / t_m) / k) / t_m) / 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, 3.95e+58], N[(l * N[(l / N[(t$95$m * N[(k * N[(t$95$m * N[(t$95$m * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[(N[(N[(N[(l * l), $MachinePrecision] / k), $MachinePrecision] / t$95$m), $MachinePrecision] / k), $MachinePrecision] / t$95$m), $MachinePrecision] / t$95$m), $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.95 \cdot 10^{+58}:\\
\;\;\;\;\ell \cdot \frac{\ell}{t\_m \cdot \left(k \cdot \left(t\_m \cdot \left(t\_m \cdot k\right)\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{\frac{\frac{\frac{\ell \cdot \ell}{k}}{t\_m}}{k}}{t\_m}}{t\_m}\\
\end{array}
\end{array}
if k < 3.94999999999999994e58Initial program 56.4%
Taylor expanded in k around 0
/-lowering-/.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
cube-multN/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6452.9%
Simplified52.9%
associate-*r*N/A
times-fracN/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
associate-*r*N/A
associate-/r*N/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f6455.4%
Applied egg-rr55.4%
*-commutativeN/A
associate-/l/N/A
frac-timesN/A
associate-*l*N/A
associate-*r*N/A
*-commutativeN/A
associate-/l*N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
*-commutativeN/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6464.5%
Applied egg-rr64.5%
if 3.94999999999999994e58 < k Initial program 47.2%
Taylor expanded in k around 0
/-lowering-/.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
cube-multN/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6447.3%
Simplified47.3%
associate-*r*N/A
times-fracN/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
associate-*r*N/A
associate-/r*N/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f6457.5%
Applied egg-rr57.5%
*-commutativeN/A
associate-/l/N/A
frac-timesN/A
associate-*l*N/A
associate-*r*N/A
*-commutativeN/A
associate-/l*N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
*-commutativeN/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6454.9%
Applied egg-rr54.9%
associate-*r/N/A
associate-*r*N/A
associate-/l/N/A
associate-*r*N/A
associate-/l/N/A
associate-/r*N/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
associate-/r*N/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f6463.4%
Applied egg-rr63.4%
Final simplification64.2%
t\_m = (fabs.f64 t)
t\_s = (copysign.f64 #s(literal 1 binary64) t)
(FPCore (t_s t_m l k)
:precision binary64
(*
t_s
(if (<= l 2.5e-10)
(/ (* l (/ l k)) (* t_m (* t_m (* t_m k))))
(* l (/ (/ (/ l t_m) t_m) (* k (* 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 (l <= 2.5e-10) {
tmp = (l * (l / k)) / (t_m * (t_m * (t_m * k)));
} else {
tmp = l * (((l / t_m) / t_m) / (k * (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 (l <= 2.5d-10) then
tmp = (l * (l / k)) / (t_m * (t_m * (t_m * k)))
else
tmp = l * (((l / t_m) / t_m) / (k * (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 (l <= 2.5e-10) {
tmp = (l * (l / k)) / (t_m * (t_m * (t_m * k)));
} else {
tmp = l * (((l / t_m) / t_m) / (k * (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 l <= 2.5e-10: tmp = (l * (l / k)) / (t_m * (t_m * (t_m * k))) else: tmp = l * (((l / t_m) / t_m) / (k * (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 (l <= 2.5e-10) tmp = Float64(Float64(l * Float64(l / k)) / Float64(t_m * Float64(t_m * Float64(t_m * k)))); else tmp = Float64(l * Float64(Float64(Float64(l / t_m) / t_m) / Float64(k * 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 (l <= 2.5e-10) tmp = (l * (l / k)) / (t_m * (t_m * (t_m * k))); else tmp = l * (((l / t_m) / t_m) / (k * (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[l, 2.5e-10], N[(N[(l * N[(l / k), $MachinePrecision]), $MachinePrecision] / N[(t$95$m * N[(t$95$m * N[(t$95$m * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(l * N[(N[(N[(l / t$95$m), $MachinePrecision] / t$95$m), $MachinePrecision] / N[(k * N[(t$95$m * 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}\;\ell \leq 2.5 \cdot 10^{-10}:\\
\;\;\;\;\frac{\ell \cdot \frac{\ell}{k}}{t\_m \cdot \left(t\_m \cdot \left(t\_m \cdot k\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;\ell \cdot \frac{\frac{\frac{\ell}{t\_m}}{t\_m}}{k \cdot \left(t\_m \cdot k\right)}\\
\end{array}
\end{array}
if l < 2.50000000000000016e-10Initial program 58.0%
Taylor expanded in k around 0
/-lowering-/.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
cube-multN/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6454.3%
Simplified54.3%
associate-*r*N/A
times-fracN/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
associate-*r*N/A
associate-/r*N/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f6458.0%
Applied egg-rr58.0%
associate-/r*N/A
associate-/l/N/A
frac-timesN/A
*-commutativeN/A
associate-*r*N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6464.9%
Applied egg-rr64.9%
if 2.50000000000000016e-10 < l Initial program 43.8%
Taylor expanded in k around 0
/-lowering-/.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
cube-multN/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6444.2%
Simplified44.2%
associate-*r*N/A
times-fracN/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
associate-*r*N/A
associate-/r*N/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f6449.9%
Applied egg-rr49.9%
*-commutativeN/A
associate-/l/N/A
frac-timesN/A
associate-*l*N/A
associate-*r*N/A
*-commutativeN/A
associate-/l*N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
*-commutativeN/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6454.7%
Applied egg-rr54.7%
associate-/r*N/A
associate-*l*N/A
associate-*r*N/A
associate-/r*N/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6454.7%
Applied egg-rr54.7%
Final simplification62.2%
t\_m = (fabs.f64 t)
t\_s = (copysign.f64 #s(literal 1 binary64) t)
(FPCore (t_s t_m l k)
:precision binary64
(*
t_s
(if (<= t_m 2e-42)
(* (/ (/ l k) k) (/ (/ l (* t_m t_m)) t_m))
(* l (/ l (* t_m (* 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 <= 2e-42) {
tmp = ((l / k) / k) * ((l / (t_m * t_m)) / t_m);
} else {
tmp = l * (l / (t_m * (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 <= 2d-42) then
tmp = ((l / k) / k) * ((l / (t_m * t_m)) / t_m)
else
tmp = l * (l / (t_m * (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 <= 2e-42) {
tmp = ((l / k) / k) * ((l / (t_m * t_m)) / t_m);
} else {
tmp = l * (l / (t_m * (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 <= 2e-42: tmp = ((l / k) / k) * ((l / (t_m * t_m)) / t_m) else: tmp = l * (l / (t_m * (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 <= 2e-42) tmp = Float64(Float64(Float64(l / k) / k) * Float64(Float64(l / Float64(t_m * t_m)) / t_m)); else tmp = Float64(l * Float64(l / Float64(t_m * Float64(k * Float64(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 <= 2e-42) tmp = ((l / k) / k) * ((l / (t_m * t_m)) / t_m); else tmp = l * (l / (t_m * (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, 2e-42], N[(N[(N[(l / k), $MachinePrecision] / k), $MachinePrecision] * N[(N[(l / N[(t$95$m * t$95$m), $MachinePrecision]), $MachinePrecision] / t$95$m), $MachinePrecision]), $MachinePrecision], N[(l * N[(l / N[(t$95$m * N[(k * N[(t$95$m * N[(t$95$m * k), $MachinePrecision]), $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 \cdot 10^{-42}:\\
\;\;\;\;\frac{\frac{\ell}{k}}{k} \cdot \frac{\frac{\ell}{t\_m \cdot t\_m}}{t\_m}\\
\mathbf{else}:\\
\;\;\;\;\ell \cdot \frac{\ell}{t\_m \cdot \left(k \cdot \left(t\_m \cdot \left(t\_m \cdot k\right)\right)\right)}\\
\end{array}
\end{array}
if t < 2.00000000000000008e-42Initial program 48.5%
Taylor expanded in k around 0
/-lowering-/.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
cube-multN/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6445.8%
Simplified45.8%
associate-*r*N/A
times-fracN/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
associate-*r*N/A
associate-/r*N/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f6450.1%
Applied egg-rr50.1%
associate-/r*N/A
/-lowering-/.f64N/A
/-lowering-/.f6452.9%
Applied egg-rr52.9%
if 2.00000000000000008e-42 < t Initial program 67.8%
Taylor expanded in k around 0
/-lowering-/.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
cube-multN/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6465.2%
Simplified65.2%
associate-*r*N/A
times-fracN/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
associate-*r*N/A
associate-/r*N/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f6469.3%
Applied egg-rr69.3%
*-commutativeN/A
associate-/l/N/A
frac-timesN/A
associate-*l*N/A
associate-*r*N/A
*-commutativeN/A
associate-/l*N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
*-commutativeN/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6480.9%
Applied egg-rr80.9%
Final simplification61.4%
t\_m = (fabs.f64 t)
t\_s = (copysign.f64 #s(literal 1 binary64) t)
(FPCore (t_s t_m l k)
:precision binary64
(*
t_s
(if (<= k 2.5e-248)
(* (/ l k) (/ l (* t_m (* k (* t_m t_m)))))
(* l (/ (/ (/ l t_m) t_m) (* k (* 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 (k <= 2.5e-248) {
tmp = (l / k) * (l / (t_m * (k * (t_m * t_m))));
} else {
tmp = l * (((l / t_m) / t_m) / (k * (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 (k <= 2.5d-248) then
tmp = (l / k) * (l / (t_m * (k * (t_m * t_m))))
else
tmp = l * (((l / t_m) / t_m) / (k * (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 (k <= 2.5e-248) {
tmp = (l / k) * (l / (t_m * (k * (t_m * t_m))));
} else {
tmp = l * (((l / t_m) / t_m) / (k * (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 k <= 2.5e-248: tmp = (l / k) * (l / (t_m * (k * (t_m * t_m)))) else: tmp = l * (((l / t_m) / t_m) / (k * (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 (k <= 2.5e-248) tmp = Float64(Float64(l / k) * Float64(l / Float64(t_m * Float64(k * Float64(t_m * t_m))))); else tmp = Float64(l * Float64(Float64(Float64(l / t_m) / t_m) / Float64(k * 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 (k <= 2.5e-248) tmp = (l / k) * (l / (t_m * (k * (t_m * t_m)))); else tmp = l * (((l / t_m) / t_m) / (k * (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[k, 2.5e-248], N[(N[(l / k), $MachinePrecision] * N[(l / N[(t$95$m * N[(k * N[(t$95$m * t$95$m), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(l * N[(N[(N[(l / t$95$m), $MachinePrecision] / t$95$m), $MachinePrecision] / N[(k * N[(t$95$m * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]), $MachinePrecision]
\begin{array}{l}
t\_m = \left|t\right|
\\
t\_s = \mathsf{copysign}\left(1, t\right)
\\
t\_s \cdot \begin{array}{l}
\mathbf{if}\;k \leq 2.5 \cdot 10^{-248}:\\
\;\;\;\;\frac{\ell}{k} \cdot \frac{\ell}{t\_m \cdot \left(k \cdot \left(t\_m \cdot t\_m\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;\ell \cdot \frac{\frac{\frac{\ell}{t\_m}}{t\_m}}{k \cdot \left(t\_m \cdot k\right)}\\
\end{array}
\end{array}
if k < 2.5e-248Initial program 51.7%
Taylor expanded in k around 0
/-lowering-/.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
cube-multN/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6446.8%
Simplified46.8%
*-commutativeN/A
times-fracN/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
*-commutativeN/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
/-lowering-/.f6456.2%
Applied egg-rr56.2%
if 2.5e-248 < k Initial program 56.8%
Taylor expanded in k around 0
/-lowering-/.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
cube-multN/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6456.2%
Simplified56.2%
associate-*r*N/A
times-fracN/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
associate-*r*N/A
associate-/r*N/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f6463.1%
Applied egg-rr63.1%
*-commutativeN/A
associate-/l/N/A
frac-timesN/A
associate-*l*N/A
associate-*r*N/A
*-commutativeN/A
associate-/l*N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
*-commutativeN/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6466.2%
Applied egg-rr66.2%
associate-/r*N/A
associate-*l*N/A
associate-*r*N/A
associate-/r*N/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6467.8%
Applied egg-rr67.8%
Final simplification62.1%
t\_m = (fabs.f64 t)
t\_s = (copysign.f64 #s(literal 1 binary64) t)
(FPCore (t_s t_m l k)
:precision binary64
(*
t_s
(if (<= k 4e-161)
(* l (/ l (* t_m (* k (* t_m (* t_m k))))))
(* l (/ (/ (/ l t_m) t_m) (* k (* 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 (k <= 4e-161) {
tmp = l * (l / (t_m * (k * (t_m * (t_m * k)))));
} else {
tmp = l * (((l / t_m) / t_m) / (k * (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 (k <= 4d-161) then
tmp = l * (l / (t_m * (k * (t_m * (t_m * k)))))
else
tmp = l * (((l / t_m) / t_m) / (k * (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 (k <= 4e-161) {
tmp = l * (l / (t_m * (k * (t_m * (t_m * k)))));
} else {
tmp = l * (((l / t_m) / t_m) / (k * (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 k <= 4e-161: tmp = l * (l / (t_m * (k * (t_m * (t_m * k))))) else: tmp = l * (((l / t_m) / t_m) / (k * (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 (k <= 4e-161) tmp = Float64(l * Float64(l / Float64(t_m * Float64(k * Float64(t_m * Float64(t_m * k)))))); else tmp = Float64(l * Float64(Float64(Float64(l / t_m) / t_m) / Float64(k * 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 (k <= 4e-161) tmp = l * (l / (t_m * (k * (t_m * (t_m * k))))); else tmp = l * (((l / t_m) / t_m) / (k * (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[k, 4e-161], N[(l * N[(l / N[(t$95$m * N[(k * N[(t$95$m * N[(t$95$m * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(l * N[(N[(N[(l / t$95$m), $MachinePrecision] / t$95$m), $MachinePrecision] / N[(k * N[(t$95$m * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]), $MachinePrecision]
\begin{array}{l}
t\_m = \left|t\right|
\\
t\_s = \mathsf{copysign}\left(1, t\right)
\\
t\_s \cdot \begin{array}{l}
\mathbf{if}\;k \leq 4 \cdot 10^{-161}:\\
\;\;\;\;\ell \cdot \frac{\ell}{t\_m \cdot \left(k \cdot \left(t\_m \cdot \left(t\_m \cdot k\right)\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;\ell \cdot \frac{\frac{\frac{\ell}{t\_m}}{t\_m}}{k \cdot \left(t\_m \cdot k\right)}\\
\end{array}
\end{array}
if k < 4.00000000000000011e-161Initial program 53.6%
Taylor expanded in k around 0
/-lowering-/.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
cube-multN/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6450.0%
Simplified50.0%
associate-*r*N/A
times-fracN/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
associate-*r*N/A
associate-/r*N/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f6450.9%
Applied egg-rr50.9%
*-commutativeN/A
associate-/l/N/A
frac-timesN/A
associate-*l*N/A
associate-*r*N/A
*-commutativeN/A
associate-/l*N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
*-commutativeN/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6462.7%
Applied egg-rr62.7%
if 4.00000000000000011e-161 < k Initial program 55.2%
Taylor expanded in k around 0
/-lowering-/.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
cube-multN/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6453.7%
Simplified53.7%
associate-*r*N/A
times-fracN/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
associate-*r*N/A
associate-/r*N/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f6462.2%
Applied egg-rr62.2%
*-commutativeN/A
associate-/l/N/A
frac-timesN/A
associate-*l*N/A
associate-*r*N/A
*-commutativeN/A
associate-/l*N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
*-commutativeN/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6461.9%
Applied egg-rr61.9%
associate-/r*N/A
associate-*l*N/A
associate-*r*N/A
associate-/r*N/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6464.4%
Applied egg-rr64.4%
Final simplification63.4%
t\_m = (fabs.f64 t) t\_s = (copysign.f64 #s(literal 1 binary64) t) (FPCore (t_s t_m l k) :precision binary64 (* t_s (* l (/ l (* t_m (* 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) {
return t_s * (l * (l / (t_m * (k * (t_m * (t_m * 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 * (l / (t_m * (k * (t_m * (t_m * 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 * (l / (t_m * (k * (t_m * (t_m * 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 * (l / (t_m * (k * (t_m * (t_m * k))))))
t\_m = abs(t) t\_s = copysign(1.0, t) function code(t_s, t_m, l, k) return Float64(t_s * Float64(l * Float64(l / Float64(t_m * Float64(k * Float64(t_m * Float64(t_m * 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 * (l / (t_m * (k * (t_m * (t_m * 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[(l * N[(l / N[(t$95$m * N[(k * N[(t$95$m * N[(t$95$m * k), $MachinePrecision]), $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 \left(\ell \cdot \frac{\ell}{t\_m \cdot \left(k \cdot \left(t\_m \cdot \left(t\_m \cdot k\right)\right)\right)}\right)
\end{array}
Initial program 54.3%
Taylor expanded in k around 0
/-lowering-/.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
cube-multN/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6451.6%
Simplified51.6%
associate-*r*N/A
times-fracN/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
associate-*r*N/A
associate-/r*N/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f6455.9%
Applied egg-rr55.9%
*-commutativeN/A
associate-/l/N/A
frac-timesN/A
associate-*l*N/A
associate-*r*N/A
*-commutativeN/A
associate-/l*N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
*-commutativeN/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6462.3%
Applied egg-rr62.3%
Final simplification62.3%
t\_m = (fabs.f64 t) t\_s = (copysign.f64 #s(literal 1 binary64) t) (FPCore (t_s t_m l k) :precision binary64 (* t_s (* l (/ l (* t_m (* t_m (* k (* 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) {
return t_s * (l * (l / (t_m * (t_m * (k * (t_m * 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 * (l / (t_m * (t_m * (k * (t_m * 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 * (l / (t_m * (t_m * (k * (t_m * 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 * (l / (t_m * (t_m * (k * (t_m * k))))))
t\_m = abs(t) t\_s = copysign(1.0, t) function code(t_s, t_m, l, k) return Float64(t_s * Float64(l * Float64(l / Float64(t_m * Float64(t_m * Float64(k * Float64(t_m * 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 * (l / (t_m * (t_m * (k * (t_m * 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[(l * N[(l / N[(t$95$m * N[(t$95$m * N[(k * N[(t$95$m * k), $MachinePrecision]), $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 \left(\ell \cdot \frac{\ell}{t\_m \cdot \left(t\_m \cdot \left(k \cdot \left(t\_m \cdot k\right)\right)\right)}\right)
\end{array}
Initial program 54.3%
Taylor expanded in k around 0
/-lowering-/.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
cube-multN/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6451.6%
Simplified51.6%
associate-*r*N/A
times-fracN/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
associate-*r*N/A
associate-/r*N/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f6455.9%
Applied egg-rr55.9%
*-commutativeN/A
associate-/l/N/A
frac-timesN/A
associate-*l*N/A
associate-*r*N/A
*-commutativeN/A
associate-/l*N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
*-commutativeN/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6462.3%
Applied egg-rr62.3%
associate-*l*N/A
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6461.1%
Applied egg-rr61.1%
Final simplification61.1%
herbie shell --seed 2024150
(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))))