
(FPCore (t l k) :precision binary64 (/ 2.0 (* (* (* (/ (pow t 3.0) (* l l)) (sin k)) (tan k)) (+ (+ 1.0 (pow (/ k t) 2.0)) 1.0))))
double code(double t, double l, double k) {
return 2.0 / ((((pow(t, 3.0) / (l * l)) * sin(k)) * tan(k)) * ((1.0 + pow((k / t), 2.0)) + 1.0));
}
real(8) function code(t, l, k)
real(8), intent (in) :: t
real(8), intent (in) :: l
real(8), intent (in) :: k
code = 2.0d0 / (((((t ** 3.0d0) / (l * l)) * sin(k)) * tan(k)) * ((1.0d0 + ((k / t) ** 2.0d0)) + 1.0d0))
end function
public static double code(double t, double l, double k) {
return 2.0 / ((((Math.pow(t, 3.0) / (l * l)) * Math.sin(k)) * Math.tan(k)) * ((1.0 + Math.pow((k / t), 2.0)) + 1.0));
}
def code(t, l, k): return 2.0 / ((((math.pow(t, 3.0) / (l * l)) * math.sin(k)) * math.tan(k)) * ((1.0 + math.pow((k / t), 2.0)) + 1.0))
function code(t, l, k) return Float64(2.0 / Float64(Float64(Float64(Float64((t ^ 3.0) / Float64(l * l)) * sin(k)) * tan(k)) * Float64(Float64(1.0 + (Float64(k / t) ^ 2.0)) + 1.0))) end
function tmp = code(t, l, k) tmp = 2.0 / (((((t ^ 3.0) / (l * l)) * sin(k)) * tan(k)) * ((1.0 + ((k / t) ^ 2.0)) + 1.0)); end
code[t_, l_, k_] := N[(2.0 / N[(N[(N[(N[(N[Power[t, 3.0], $MachinePrecision] / N[(l * l), $MachinePrecision]), $MachinePrecision] * N[Sin[k], $MachinePrecision]), $MachinePrecision] * N[Tan[k], $MachinePrecision]), $MachinePrecision] * N[(N[(1.0 + N[Power[N[(k / t), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{2}{\left(\left(\frac{{t}^{3}}{\ell \cdot \ell} \cdot \sin k\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 15 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (t l k) :precision binary64 (/ 2.0 (* (* (* (/ (pow t 3.0) (* l l)) (sin k)) (tan k)) (+ (+ 1.0 (pow (/ k t) 2.0)) 1.0))))
double code(double t, double l, double k) {
return 2.0 / ((((pow(t, 3.0) / (l * l)) * sin(k)) * tan(k)) * ((1.0 + pow((k / t), 2.0)) + 1.0));
}
real(8) function code(t, l, k)
real(8), intent (in) :: t
real(8), intent (in) :: l
real(8), intent (in) :: k
code = 2.0d0 / (((((t ** 3.0d0) / (l * l)) * sin(k)) * tan(k)) * ((1.0d0 + ((k / t) ** 2.0d0)) + 1.0d0))
end function
public static double code(double t, double l, double k) {
return 2.0 / ((((Math.pow(t, 3.0) / (l * l)) * Math.sin(k)) * Math.tan(k)) * ((1.0 + Math.pow((k / t), 2.0)) + 1.0));
}
def code(t, l, k): return 2.0 / ((((math.pow(t, 3.0) / (l * l)) * math.sin(k)) * math.tan(k)) * ((1.0 + math.pow((k / t), 2.0)) + 1.0))
function code(t, l, k) return Float64(2.0 / Float64(Float64(Float64(Float64((t ^ 3.0) / Float64(l * l)) * sin(k)) * tan(k)) * Float64(Float64(1.0 + (Float64(k / t) ^ 2.0)) + 1.0))) end
function tmp = code(t, l, k) tmp = 2.0 / (((((t ^ 3.0) / (l * l)) * sin(k)) * tan(k)) * ((1.0 + ((k / t) ^ 2.0)) + 1.0)); end
code[t_, l_, k_] := N[(2.0 / N[(N[(N[(N[(N[Power[t, 3.0], $MachinePrecision] / N[(l * l), $MachinePrecision]), $MachinePrecision] * N[Sin[k], $MachinePrecision]), $MachinePrecision] * N[Tan[k], $MachinePrecision]), $MachinePrecision] * N[(N[(1.0 + N[Power[N[(k / t), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{2}{\left(\left(\frac{{t}^{3}}{\ell \cdot \ell} \cdot \sin k\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)}
\end{array}
(FPCore (t l k)
:precision binary64
(if (<= t -8.8e+32)
(* l (* l (/ 2.0 (* (tan k) (* 2.0 (* (pow t 3.0) k))))))
(if (<= t 6.8e+21)
(/ (/ 2.0 (* (sin k) (tan k))) (* (/ k l) (* t (/ k l))))
(pow (* (/ l k) (pow t -1.5)) 2.0))))
double code(double t, double l, double k) {
double tmp;
if (t <= -8.8e+32) {
tmp = l * (l * (2.0 / (tan(k) * (2.0 * (pow(t, 3.0) * k)))));
} else if (t <= 6.8e+21) {
tmp = (2.0 / (sin(k) * tan(k))) / ((k / l) * (t * (k / l)));
} else {
tmp = pow(((l / k) * pow(t, -1.5)), 2.0);
}
return tmp;
}
real(8) function code(t, l, k)
real(8), intent (in) :: t
real(8), intent (in) :: l
real(8), intent (in) :: k
real(8) :: tmp
if (t <= (-8.8d+32)) then
tmp = l * (l * (2.0d0 / (tan(k) * (2.0d0 * ((t ** 3.0d0) * k)))))
else if (t <= 6.8d+21) then
tmp = (2.0d0 / (sin(k) * tan(k))) / ((k / l) * (t * (k / l)))
else
tmp = ((l / k) * (t ** (-1.5d0))) ** 2.0d0
end if
code = tmp
end function
public static double code(double t, double l, double k) {
double tmp;
if (t <= -8.8e+32) {
tmp = l * (l * (2.0 / (Math.tan(k) * (2.0 * (Math.pow(t, 3.0) * k)))));
} else if (t <= 6.8e+21) {
tmp = (2.0 / (Math.sin(k) * Math.tan(k))) / ((k / l) * (t * (k / l)));
} else {
tmp = Math.pow(((l / k) * Math.pow(t, -1.5)), 2.0);
}
return tmp;
}
def code(t, l, k): tmp = 0 if t <= -8.8e+32: tmp = l * (l * (2.0 / (math.tan(k) * (2.0 * (math.pow(t, 3.0) * k))))) elif t <= 6.8e+21: tmp = (2.0 / (math.sin(k) * math.tan(k))) / ((k / l) * (t * (k / l))) else: tmp = math.pow(((l / k) * math.pow(t, -1.5)), 2.0) return tmp
function code(t, l, k) tmp = 0.0 if (t <= -8.8e+32) tmp = Float64(l * Float64(l * Float64(2.0 / Float64(tan(k) * Float64(2.0 * Float64((t ^ 3.0) * k)))))); elseif (t <= 6.8e+21) tmp = Float64(Float64(2.0 / Float64(sin(k) * tan(k))) / Float64(Float64(k / l) * Float64(t * Float64(k / l)))); else tmp = Float64(Float64(l / k) * (t ^ -1.5)) ^ 2.0; end return tmp end
function tmp_2 = code(t, l, k) tmp = 0.0; if (t <= -8.8e+32) tmp = l * (l * (2.0 / (tan(k) * (2.0 * ((t ^ 3.0) * k))))); elseif (t <= 6.8e+21) tmp = (2.0 / (sin(k) * tan(k))) / ((k / l) * (t * (k / l))); else tmp = ((l / k) * (t ^ -1.5)) ^ 2.0; end tmp_2 = tmp; end
code[t_, l_, k_] := If[LessEqual[t, -8.8e+32], N[(l * N[(l * N[(2.0 / N[(N[Tan[k], $MachinePrecision] * N[(2.0 * N[(N[Power[t, 3.0], $MachinePrecision] * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 6.8e+21], N[(N[(2.0 / N[(N[Sin[k], $MachinePrecision] * N[Tan[k], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(k / l), $MachinePrecision] * N[(t * N[(k / l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[Power[N[(N[(l / k), $MachinePrecision] * N[Power[t, -1.5], $MachinePrecision]), $MachinePrecision], 2.0], $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -8.8 \cdot 10^{+32}:\\
\;\;\;\;\ell \cdot \left(\ell \cdot \frac{2}{\tan k \cdot \left(2 \cdot \left({t}^{3} \cdot k\right)\right)}\right)\\
\mathbf{elif}\;t \leq 6.8 \cdot 10^{+21}:\\
\;\;\;\;\frac{\frac{2}{\sin k \cdot \tan k}}{\frac{k}{\ell} \cdot \left(t \cdot \frac{k}{\ell}\right)}\\
\mathbf{else}:\\
\;\;\;\;{\left(\frac{\ell}{k} \cdot {t}^{-1.5}\right)}^{2}\\
\end{array}
\end{array}
if t < -8.80000000000000004e32Initial program 71.9%
associate-/l/71.9%
associate-*l/75.1%
associate-*l/75.1%
associate-/r/75.1%
*-commutative75.1%
associate-/l/75.1%
associate-*r*75.1%
*-commutative75.1%
associate-*r*75.1%
*-commutative75.1%
Simplified75.1%
Taylor expanded in k around 0 75.1%
pow175.1%
associate-*l*82.0%
Applied egg-rr82.0%
if -8.80000000000000004e32 < t < 6.8e21Initial program 52.8%
*-commutative52.8%
associate-*l*52.8%
associate-*r*52.8%
+-commutative52.8%
associate-+r+52.8%
metadata-eval52.8%
Simplified52.8%
Taylor expanded in k around inf 76.8%
*-commutative76.8%
unpow276.8%
times-frac83.9%
unpow283.9%
Simplified83.9%
*-un-lft-identity83.9%
associate-/l*86.3%
Applied egg-rr86.3%
expm1-log1p-u58.5%
expm1-udef49.8%
*-commutative49.8%
*-un-lft-identity49.8%
associate-/r/49.8%
Applied egg-rr49.8%
expm1-def58.5%
expm1-log1p86.3%
associate-/r*86.4%
associate-/r/87.1%
associate-/l/89.9%
associate-/l*85.5%
associate-*r/89.8%
unpow289.8%
Simplified89.8%
div-inv89.8%
metadata-eval89.8%
unpow289.8%
frac-times89.8%
clear-num89.9%
clear-num89.8%
*-commutative89.8%
associate-*l*93.4%
Applied egg-rr93.4%
if 6.8e21 < t Initial program 47.7%
associate-*l*47.7%
associate-/l/47.7%
*-commutative47.7%
associate-*r/50.8%
associate-/l*48.3%
associate-/r/44.0%
Simplified47.8%
Taylor expanded in k around 0 42.6%
associate-/r*42.2%
unpow242.2%
unpow242.2%
times-frac50.4%
Simplified50.4%
expm1-log1p-u50.1%
expm1-udef48.6%
div-inv48.6%
pow248.6%
pow-flip48.7%
metadata-eval48.7%
Applied egg-rr48.7%
expm1-def50.3%
expm1-log1p50.5%
Simplified50.5%
add-sqr-sqrt50.5%
pow250.5%
sqrt-prod50.5%
unpow250.5%
sqrt-prod34.3%
add-sqr-sqrt53.0%
sqrt-pow162.2%
metadata-eval62.2%
Applied egg-rr62.2%
Final simplification83.2%
(FPCore (t l k)
:precision binary64
(let* ((t_1 (pow (/ k t) 2.0)))
(if (<=
(* (* (* (/ (pow t 3.0) (* l l)) (sin k)) (tan k)) (+ 1.0 (+ 1.0 t_1)))
INFINITY)
(* l (* l (/ 2.0 (* (tan k) (* (* (pow t 3.0) (sin k)) (+ 2.0 t_1))))))
(/ (/ 2.0 (* (sin k) (tan k))) (* (/ k l) (* t (/ k l)))))))
double code(double t, double l, double k) {
double t_1 = pow((k / t), 2.0);
double tmp;
if (((((pow(t, 3.0) / (l * l)) * sin(k)) * tan(k)) * (1.0 + (1.0 + t_1))) <= ((double) INFINITY)) {
tmp = l * (l * (2.0 / (tan(k) * ((pow(t, 3.0) * sin(k)) * (2.0 + t_1)))));
} else {
tmp = (2.0 / (sin(k) * tan(k))) / ((k / l) * (t * (k / l)));
}
return tmp;
}
public static double code(double t, double l, double k) {
double t_1 = Math.pow((k / t), 2.0);
double tmp;
if (((((Math.pow(t, 3.0) / (l * l)) * Math.sin(k)) * Math.tan(k)) * (1.0 + (1.0 + t_1))) <= Double.POSITIVE_INFINITY) {
tmp = l * (l * (2.0 / (Math.tan(k) * ((Math.pow(t, 3.0) * Math.sin(k)) * (2.0 + t_1)))));
} else {
tmp = (2.0 / (Math.sin(k) * Math.tan(k))) / ((k / l) * (t * (k / l)));
}
return tmp;
}
def code(t, l, k): t_1 = math.pow((k / t), 2.0) tmp = 0 if ((((math.pow(t, 3.0) / (l * l)) * math.sin(k)) * math.tan(k)) * (1.0 + (1.0 + t_1))) <= math.inf: tmp = l * (l * (2.0 / (math.tan(k) * ((math.pow(t, 3.0) * math.sin(k)) * (2.0 + t_1))))) else: tmp = (2.0 / (math.sin(k) * math.tan(k))) / ((k / l) * (t * (k / l))) return tmp
function code(t, l, k) t_1 = Float64(k / t) ^ 2.0 tmp = 0.0 if (Float64(Float64(Float64(Float64((t ^ 3.0) / Float64(l * l)) * sin(k)) * tan(k)) * Float64(1.0 + Float64(1.0 + t_1))) <= Inf) tmp = Float64(l * Float64(l * Float64(2.0 / Float64(tan(k) * Float64(Float64((t ^ 3.0) * sin(k)) * Float64(2.0 + t_1)))))); else tmp = Float64(Float64(2.0 / Float64(sin(k) * tan(k))) / Float64(Float64(k / l) * Float64(t * Float64(k / l)))); end return tmp end
function tmp_2 = code(t, l, k) t_1 = (k / t) ^ 2.0; tmp = 0.0; if ((((((t ^ 3.0) / (l * l)) * sin(k)) * tan(k)) * (1.0 + (1.0 + t_1))) <= Inf) tmp = l * (l * (2.0 / (tan(k) * (((t ^ 3.0) * sin(k)) * (2.0 + t_1))))); else tmp = (2.0 / (sin(k) * tan(k))) / ((k / l) * (t * (k / l))); end tmp_2 = tmp; end
code[t_, l_, k_] := Block[{t$95$1 = N[Power[N[(k / t), $MachinePrecision], 2.0], $MachinePrecision]}, If[LessEqual[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[(1.0 + N[(1.0 + t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], Infinity], N[(l * N[(l * N[(2.0 / N[(N[Tan[k], $MachinePrecision] * N[(N[(N[Power[t, 3.0], $MachinePrecision] * N[Sin[k], $MachinePrecision]), $MachinePrecision] * N[(2.0 + t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(2.0 / N[(N[Sin[k], $MachinePrecision] * N[Tan[k], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(k / l), $MachinePrecision] * N[(t * N[(k / l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := {\left(\frac{k}{t}\right)}^{2}\\
\mathbf{if}\;\left(\left(\frac{{t}^{3}}{\ell \cdot \ell} \cdot \sin k\right) \cdot \tan k\right) \cdot \left(1 + \left(1 + t_1\right)\right) \leq \infty:\\
\;\;\;\;\ell \cdot \left(\ell \cdot \frac{2}{\tan k \cdot \left(\left({t}^{3} \cdot \sin k\right) \cdot \left(2 + t_1\right)\right)}\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{2}{\sin k \cdot \tan k}}{\frac{k}{\ell} \cdot \left(t \cdot \frac{k}{\ell}\right)}\\
\end{array}
\end{array}
if (*.f64 (*.f64 (*.f64 (/.f64 (pow.f64 t 3) (*.f64 l l)) (sin.f64 k)) (tan.f64 k)) (+.f64 (+.f64 1 (pow.f64 (/.f64 k t) 2)) 1)) < +inf.0Initial program 81.4%
associate-/l/81.4%
associate-*l/83.6%
associate-*l/83.5%
associate-/r/83.0%
*-commutative83.0%
associate-/l/82.9%
associate-*r*82.9%
*-commutative82.9%
associate-*r*82.9%
*-commutative82.9%
Simplified82.9%
expm1-log1p-u67.3%
expm1-udef63.1%
associate-*l*63.2%
*-commutative63.2%
Applied egg-rr63.2%
expm1-def68.5%
expm1-log1p85.8%
*-commutative85.8%
*-commutative85.8%
Simplified85.8%
if +inf.0 < (*.f64 (*.f64 (*.f64 (/.f64 (pow.f64 t 3) (*.f64 l l)) (sin.f64 k)) (tan.f64 k)) (+.f64 (+.f64 1 (pow.f64 (/.f64 k t) 2)) 1)) Initial program 0.0%
*-commutative0.0%
associate-*l*0.0%
associate-*r*0.0%
+-commutative0.0%
associate-+r+0.0%
metadata-eval0.0%
Simplified0.0%
Taylor expanded in k around inf 47.5%
*-commutative47.5%
unpow247.5%
times-frac58.5%
unpow258.5%
Simplified58.5%
*-un-lft-identity58.5%
associate-/l*66.1%
Applied egg-rr66.1%
expm1-log1p-u47.9%
expm1-udef38.0%
*-commutative38.0%
*-un-lft-identity38.0%
associate-/r/38.0%
Applied egg-rr38.0%
expm1-def47.9%
expm1-log1p66.1%
associate-/r*66.1%
associate-/r/67.4%
associate-/l/69.8%
associate-/l*62.5%
associate-*r/69.7%
unpow269.7%
Simplified69.7%
div-inv69.7%
metadata-eval69.7%
unpow269.7%
frac-times69.7%
clear-num69.8%
clear-num69.7%
*-commutative69.7%
associate-*l*75.7%
Applied egg-rr75.7%
Final simplification82.6%
(FPCore (t l k)
:precision binary64
(if (<= t -9.8e-17)
(/ 2.0 (* 2.0 (* (/ k l) (/ (/ k l) (pow t -3.0)))))
(if (<= t 3e-112)
(* (* l l) (/ 2.0 (* (tan k) (* (* k k) (* t (sin k))))))
(pow (* (/ l k) (pow t -1.5)) 2.0))))
double code(double t, double l, double k) {
double tmp;
if (t <= -9.8e-17) {
tmp = 2.0 / (2.0 * ((k / l) * ((k / l) / pow(t, -3.0))));
} else if (t <= 3e-112) {
tmp = (l * l) * (2.0 / (tan(k) * ((k * k) * (t * sin(k)))));
} else {
tmp = pow(((l / k) * pow(t, -1.5)), 2.0);
}
return tmp;
}
real(8) function code(t, l, k)
real(8), intent (in) :: t
real(8), intent (in) :: l
real(8), intent (in) :: k
real(8) :: tmp
if (t <= (-9.8d-17)) then
tmp = 2.0d0 / (2.0d0 * ((k / l) * ((k / l) / (t ** (-3.0d0)))))
else if (t <= 3d-112) then
tmp = (l * l) * (2.0d0 / (tan(k) * ((k * k) * (t * sin(k)))))
else
tmp = ((l / k) * (t ** (-1.5d0))) ** 2.0d0
end if
code = tmp
end function
public static double code(double t, double l, double k) {
double tmp;
if (t <= -9.8e-17) {
tmp = 2.0 / (2.0 * ((k / l) * ((k / l) / Math.pow(t, -3.0))));
} else if (t <= 3e-112) {
tmp = (l * l) * (2.0 / (Math.tan(k) * ((k * k) * (t * Math.sin(k)))));
} else {
tmp = Math.pow(((l / k) * Math.pow(t, -1.5)), 2.0);
}
return tmp;
}
def code(t, l, k): tmp = 0 if t <= -9.8e-17: tmp = 2.0 / (2.0 * ((k / l) * ((k / l) / math.pow(t, -3.0)))) elif t <= 3e-112: tmp = (l * l) * (2.0 / (math.tan(k) * ((k * k) * (t * math.sin(k))))) else: tmp = math.pow(((l / k) * math.pow(t, -1.5)), 2.0) return tmp
function code(t, l, k) tmp = 0.0 if (t <= -9.8e-17) tmp = Float64(2.0 / Float64(2.0 * Float64(Float64(k / l) * Float64(Float64(k / l) / (t ^ -3.0))))); elseif (t <= 3e-112) tmp = Float64(Float64(l * l) * Float64(2.0 / Float64(tan(k) * Float64(Float64(k * k) * Float64(t * sin(k)))))); else tmp = Float64(Float64(l / k) * (t ^ -1.5)) ^ 2.0; end return tmp end
function tmp_2 = code(t, l, k) tmp = 0.0; if (t <= -9.8e-17) tmp = 2.0 / (2.0 * ((k / l) * ((k / l) / (t ^ -3.0)))); elseif (t <= 3e-112) tmp = (l * l) * (2.0 / (tan(k) * ((k * k) * (t * sin(k))))); else tmp = ((l / k) * (t ^ -1.5)) ^ 2.0; end tmp_2 = tmp; end
code[t_, l_, k_] := If[LessEqual[t, -9.8e-17], N[(2.0 / N[(2.0 * N[(N[(k / l), $MachinePrecision] * N[(N[(k / l), $MachinePrecision] / N[Power[t, -3.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 3e-112], N[(N[(l * l), $MachinePrecision] * N[(2.0 / N[(N[Tan[k], $MachinePrecision] * N[(N[(k * k), $MachinePrecision] * N[(t * N[Sin[k], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[Power[N[(N[(l / k), $MachinePrecision] * N[Power[t, -1.5], $MachinePrecision]), $MachinePrecision], 2.0], $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -9.8 \cdot 10^{-17}:\\
\;\;\;\;\frac{2}{2 \cdot \left(\frac{k}{\ell} \cdot \frac{\frac{k}{\ell}}{{t}^{-3}}\right)}\\
\mathbf{elif}\;t \leq 3 \cdot 10^{-112}:\\
\;\;\;\;\left(\ell \cdot \ell\right) \cdot \frac{2}{\tan k \cdot \left(\left(k \cdot k\right) \cdot \left(t \cdot \sin k\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;{\left(\frac{\ell}{k} \cdot {t}^{-1.5}\right)}^{2}\\
\end{array}
\end{array}
if t < -9.80000000000000024e-17Initial program 71.0%
*-commutative71.0%
associate-*l*69.4%
associate-*r*69.4%
+-commutative69.4%
associate-+r+69.4%
metadata-eval69.4%
Simplified69.4%
Taylor expanded in k around 0 65.7%
associate-/l*64.4%
unpow264.4%
unpow264.4%
associate-*r/68.7%
Simplified68.7%
times-frac76.7%
div-inv76.7%
pow-flip76.7%
metadata-eval76.7%
Applied egg-rr76.7%
associate-/r*78.5%
Simplified78.5%
if -9.80000000000000024e-17 < t < 3.0000000000000001e-112Initial program 47.1%
associate-/l/47.1%
associate-*l/47.1%
associate-*l/47.1%
associate-/r/48.1%
*-commutative48.1%
associate-/l/48.1%
associate-*r*48.1%
*-commutative48.1%
associate-*r*48.1%
*-commutative48.1%
Simplified48.1%
Taylor expanded in k around inf 80.9%
unpow280.9%
*-commutative80.9%
Simplified80.9%
if 3.0000000000000001e-112 < t Initial program 53.7%
associate-*l*53.7%
associate-/l/53.7%
*-commutative53.7%
associate-*r/55.9%
associate-/l*54.1%
associate-/r/51.0%
Simplified53.8%
Taylor expanded in k around 0 46.8%
associate-/r*46.6%
unpow246.6%
unpow246.6%
times-frac55.9%
Simplified55.9%
expm1-log1p-u55.6%
expm1-udef53.4%
div-inv53.4%
pow253.4%
pow-flip53.5%
metadata-eval53.5%
Applied egg-rr53.5%
expm1-def55.7%
expm1-log1p56.0%
Simplified56.0%
add-sqr-sqrt56.0%
pow256.0%
sqrt-prod56.0%
unpow256.0%
sqrt-prod34.1%
add-sqr-sqrt56.7%
sqrt-pow164.4%
metadata-eval64.4%
Applied egg-rr64.4%
Final simplification74.6%
(FPCore (t l k)
:precision binary64
(if (<= t -1.02e+31)
(/ 2.0 (* 2.0 (* (/ k l) (/ (/ k l) (pow t -3.0)))))
(if (<= t 4.6e+18)
(/ 2.0 (* (* (sin k) (tan k)) (* t (* (/ k l) (/ k l)))))
(pow (* (/ l k) (pow t -1.5)) 2.0))))
double code(double t, double l, double k) {
double tmp;
if (t <= -1.02e+31) {
tmp = 2.0 / (2.0 * ((k / l) * ((k / l) / pow(t, -3.0))));
} else if (t <= 4.6e+18) {
tmp = 2.0 / ((sin(k) * tan(k)) * (t * ((k / l) * (k / l))));
} else {
tmp = pow(((l / k) * pow(t, -1.5)), 2.0);
}
return tmp;
}
real(8) function code(t, l, k)
real(8), intent (in) :: t
real(8), intent (in) :: l
real(8), intent (in) :: k
real(8) :: tmp
if (t <= (-1.02d+31)) then
tmp = 2.0d0 / (2.0d0 * ((k / l) * ((k / l) / (t ** (-3.0d0)))))
else if (t <= 4.6d+18) then
tmp = 2.0d0 / ((sin(k) * tan(k)) * (t * ((k / l) * (k / l))))
else
tmp = ((l / k) * (t ** (-1.5d0))) ** 2.0d0
end if
code = tmp
end function
public static double code(double t, double l, double k) {
double tmp;
if (t <= -1.02e+31) {
tmp = 2.0 / (2.0 * ((k / l) * ((k / l) / Math.pow(t, -3.0))));
} else if (t <= 4.6e+18) {
tmp = 2.0 / ((Math.sin(k) * Math.tan(k)) * (t * ((k / l) * (k / l))));
} else {
tmp = Math.pow(((l / k) * Math.pow(t, -1.5)), 2.0);
}
return tmp;
}
def code(t, l, k): tmp = 0 if t <= -1.02e+31: tmp = 2.0 / (2.0 * ((k / l) * ((k / l) / math.pow(t, -3.0)))) elif t <= 4.6e+18: tmp = 2.0 / ((math.sin(k) * math.tan(k)) * (t * ((k / l) * (k / l)))) else: tmp = math.pow(((l / k) * math.pow(t, -1.5)), 2.0) return tmp
function code(t, l, k) tmp = 0.0 if (t <= -1.02e+31) tmp = Float64(2.0 / Float64(2.0 * Float64(Float64(k / l) * Float64(Float64(k / l) / (t ^ -3.0))))); elseif (t <= 4.6e+18) tmp = Float64(2.0 / Float64(Float64(sin(k) * tan(k)) * Float64(t * Float64(Float64(k / l) * Float64(k / l))))); else tmp = Float64(Float64(l / k) * (t ^ -1.5)) ^ 2.0; end return tmp end
function tmp_2 = code(t, l, k) tmp = 0.0; if (t <= -1.02e+31) tmp = 2.0 / (2.0 * ((k / l) * ((k / l) / (t ^ -3.0)))); elseif (t <= 4.6e+18) tmp = 2.0 / ((sin(k) * tan(k)) * (t * ((k / l) * (k / l)))); else tmp = ((l / k) * (t ^ -1.5)) ^ 2.0; end tmp_2 = tmp; end
code[t_, l_, k_] := If[LessEqual[t, -1.02e+31], N[(2.0 / N[(2.0 * N[(N[(k / l), $MachinePrecision] * N[(N[(k / l), $MachinePrecision] / N[Power[t, -3.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 4.6e+18], N[(2.0 / N[(N[(N[Sin[k], $MachinePrecision] * N[Tan[k], $MachinePrecision]), $MachinePrecision] * N[(t * N[(N[(k / l), $MachinePrecision] * N[(k / l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[Power[N[(N[(l / k), $MachinePrecision] * N[Power[t, -1.5], $MachinePrecision]), $MachinePrecision], 2.0], $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.02 \cdot 10^{+31}:\\
\;\;\;\;\frac{2}{2 \cdot \left(\frac{k}{\ell} \cdot \frac{\frac{k}{\ell}}{{t}^{-3}}\right)}\\
\mathbf{elif}\;t \leq 4.6 \cdot 10^{+18}:\\
\;\;\;\;\frac{2}{\left(\sin k \cdot \tan k\right) \cdot \left(t \cdot \left(\frac{k}{\ell} \cdot \frac{k}{\ell}\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;{\left(\frac{\ell}{k} \cdot {t}^{-1.5}\right)}^{2}\\
\end{array}
\end{array}
if t < -1.02000000000000007e31Initial program 71.9%
*-commutative71.9%
associate-*l*69.9%
associate-*r*69.9%
+-commutative69.9%
associate-+r+69.9%
metadata-eval69.9%
Simplified69.9%
Taylor expanded in k around 0 71.6%
associate-/l*69.9%
unpow269.9%
unpow269.9%
associate-*r/75.1%
Simplified75.1%
times-frac79.6%
div-inv79.6%
pow-flip79.6%
metadata-eval79.6%
Applied egg-rr79.6%
associate-/r*81.8%
Simplified81.8%
if -1.02000000000000007e31 < t < 4.6e18Initial program 52.8%
*-commutative52.8%
associate-*l*52.8%
associate-*r*52.8%
+-commutative52.8%
associate-+r+52.8%
metadata-eval52.8%
Simplified52.8%
Taylor expanded in k around inf 76.8%
*-commutative76.8%
unpow276.8%
times-frac83.9%
unpow283.9%
Simplified83.9%
Taylor expanded in t around 0 76.8%
associate-/l*63.1%
associate-/r/63.1%
unpow263.1%
unpow263.1%
times-frac67.0%
Simplified89.9%
if 4.6e18 < t Initial program 47.7%
associate-*l*47.7%
associate-/l/47.7%
*-commutative47.7%
associate-*r/50.8%
associate-/l*48.3%
associate-/r/44.0%
Simplified47.8%
Taylor expanded in k around 0 42.6%
associate-/r*42.2%
unpow242.2%
unpow242.2%
times-frac50.4%
Simplified50.4%
expm1-log1p-u50.1%
expm1-udef48.6%
div-inv48.6%
pow248.6%
pow-flip48.7%
metadata-eval48.7%
Applied egg-rr48.7%
expm1-def50.3%
expm1-log1p50.5%
Simplified50.5%
add-sqr-sqrt50.5%
pow250.5%
sqrt-prod50.5%
unpow250.5%
sqrt-prod34.3%
add-sqr-sqrt53.0%
sqrt-pow162.2%
metadata-eval62.2%
Applied egg-rr62.2%
Final simplification81.3%
(FPCore (t l k)
:precision binary64
(if (<= t -2.1e+31)
(/ 2.0 (* 2.0 (* (/ k l) (/ (/ k l) (pow t -3.0)))))
(if (<= t 1.65e+22)
(/ 2.0 (* (* (sin k) (tan k)) (/ (* t (/ k (/ l k))) l)))
(pow (* (/ l k) (pow t -1.5)) 2.0))))
double code(double t, double l, double k) {
double tmp;
if (t <= -2.1e+31) {
tmp = 2.0 / (2.0 * ((k / l) * ((k / l) / pow(t, -3.0))));
} else if (t <= 1.65e+22) {
tmp = 2.0 / ((sin(k) * tan(k)) * ((t * (k / (l / k))) / l));
} else {
tmp = pow(((l / k) * pow(t, -1.5)), 2.0);
}
return tmp;
}
real(8) function code(t, l, k)
real(8), intent (in) :: t
real(8), intent (in) :: l
real(8), intent (in) :: k
real(8) :: tmp
if (t <= (-2.1d+31)) then
tmp = 2.0d0 / (2.0d0 * ((k / l) * ((k / l) / (t ** (-3.0d0)))))
else if (t <= 1.65d+22) then
tmp = 2.0d0 / ((sin(k) * tan(k)) * ((t * (k / (l / k))) / l))
else
tmp = ((l / k) * (t ** (-1.5d0))) ** 2.0d0
end if
code = tmp
end function
public static double code(double t, double l, double k) {
double tmp;
if (t <= -2.1e+31) {
tmp = 2.0 / (2.0 * ((k / l) * ((k / l) / Math.pow(t, -3.0))));
} else if (t <= 1.65e+22) {
tmp = 2.0 / ((Math.sin(k) * Math.tan(k)) * ((t * (k / (l / k))) / l));
} else {
tmp = Math.pow(((l / k) * Math.pow(t, -1.5)), 2.0);
}
return tmp;
}
def code(t, l, k): tmp = 0 if t <= -2.1e+31: tmp = 2.0 / (2.0 * ((k / l) * ((k / l) / math.pow(t, -3.0)))) elif t <= 1.65e+22: tmp = 2.0 / ((math.sin(k) * math.tan(k)) * ((t * (k / (l / k))) / l)) else: tmp = math.pow(((l / k) * math.pow(t, -1.5)), 2.0) return tmp
function code(t, l, k) tmp = 0.0 if (t <= -2.1e+31) tmp = Float64(2.0 / Float64(2.0 * Float64(Float64(k / l) * Float64(Float64(k / l) / (t ^ -3.0))))); elseif (t <= 1.65e+22) tmp = Float64(2.0 / Float64(Float64(sin(k) * tan(k)) * Float64(Float64(t * Float64(k / Float64(l / k))) / l))); else tmp = Float64(Float64(l / k) * (t ^ -1.5)) ^ 2.0; end return tmp end
function tmp_2 = code(t, l, k) tmp = 0.0; if (t <= -2.1e+31) tmp = 2.0 / (2.0 * ((k / l) * ((k / l) / (t ^ -3.0)))); elseif (t <= 1.65e+22) tmp = 2.0 / ((sin(k) * tan(k)) * ((t * (k / (l / k))) / l)); else tmp = ((l / k) * (t ^ -1.5)) ^ 2.0; end tmp_2 = tmp; end
code[t_, l_, k_] := If[LessEqual[t, -2.1e+31], N[(2.0 / N[(2.0 * N[(N[(k / l), $MachinePrecision] * N[(N[(k / l), $MachinePrecision] / N[Power[t, -3.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.65e+22], N[(2.0 / N[(N[(N[Sin[k], $MachinePrecision] * N[Tan[k], $MachinePrecision]), $MachinePrecision] * N[(N[(t * N[(k / N[(l / k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[Power[N[(N[(l / k), $MachinePrecision] * N[Power[t, -1.5], $MachinePrecision]), $MachinePrecision], 2.0], $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -2.1 \cdot 10^{+31}:\\
\;\;\;\;\frac{2}{2 \cdot \left(\frac{k}{\ell} \cdot \frac{\frac{k}{\ell}}{{t}^{-3}}\right)}\\
\mathbf{elif}\;t \leq 1.65 \cdot 10^{+22}:\\
\;\;\;\;\frac{2}{\left(\sin k \cdot \tan k\right) \cdot \frac{t \cdot \frac{k}{\frac{\ell}{k}}}{\ell}}\\
\mathbf{else}:\\
\;\;\;\;{\left(\frac{\ell}{k} \cdot {t}^{-1.5}\right)}^{2}\\
\end{array}
\end{array}
if t < -2.09999999999999979e31Initial program 71.9%
*-commutative71.9%
associate-*l*69.9%
associate-*r*69.9%
+-commutative69.9%
associate-+r+69.9%
metadata-eval69.9%
Simplified69.9%
Taylor expanded in k around 0 71.6%
associate-/l*69.9%
unpow269.9%
unpow269.9%
associate-*r/75.1%
Simplified75.1%
times-frac79.6%
div-inv79.6%
pow-flip79.6%
metadata-eval79.6%
Applied egg-rr79.6%
associate-/r*81.8%
Simplified81.8%
if -2.09999999999999979e31 < t < 1.6499999999999999e22Initial program 52.8%
*-commutative52.8%
associate-*l*52.8%
associate-*r*52.8%
+-commutative52.8%
associate-+r+52.8%
metadata-eval52.8%
Simplified52.8%
Taylor expanded in k around inf 76.8%
*-commutative76.8%
unpow276.8%
times-frac83.9%
unpow283.9%
Simplified83.9%
associate-*l/68.4%
associate-/l*68.5%
Applied egg-rr90.6%
if 1.6499999999999999e22 < t Initial program 47.7%
associate-*l*47.7%
associate-/l/47.7%
*-commutative47.7%
associate-*r/50.8%
associate-/l*48.3%
associate-/r/44.0%
Simplified47.8%
Taylor expanded in k around 0 42.6%
associate-/r*42.2%
unpow242.2%
unpow242.2%
times-frac50.4%
Simplified50.4%
expm1-log1p-u50.1%
expm1-udef48.6%
div-inv48.6%
pow248.6%
pow-flip48.7%
metadata-eval48.7%
Applied egg-rr48.7%
expm1-def50.3%
expm1-log1p50.5%
Simplified50.5%
add-sqr-sqrt50.5%
pow250.5%
sqrt-prod50.5%
unpow250.5%
sqrt-prod34.3%
add-sqr-sqrt53.0%
sqrt-pow162.2%
metadata-eval62.2%
Applied egg-rr62.2%
Final simplification81.7%
(FPCore (t l k)
:precision binary64
(if (<= t -8e+33)
(/ 2.0 (* 2.0 (* (/ k l) (/ (/ k l) (pow t -3.0)))))
(if (<= t 5.2e+19)
(/ (/ 2.0 (* (sin k) (tan k))) (* (/ k l) (* t (/ k l))))
(pow (* (/ l k) (pow t -1.5)) 2.0))))
double code(double t, double l, double k) {
double tmp;
if (t <= -8e+33) {
tmp = 2.0 / (2.0 * ((k / l) * ((k / l) / pow(t, -3.0))));
} else if (t <= 5.2e+19) {
tmp = (2.0 / (sin(k) * tan(k))) / ((k / l) * (t * (k / l)));
} else {
tmp = pow(((l / k) * pow(t, -1.5)), 2.0);
}
return tmp;
}
real(8) function code(t, l, k)
real(8), intent (in) :: t
real(8), intent (in) :: l
real(8), intent (in) :: k
real(8) :: tmp
if (t <= (-8d+33)) then
tmp = 2.0d0 / (2.0d0 * ((k / l) * ((k / l) / (t ** (-3.0d0)))))
else if (t <= 5.2d+19) then
tmp = (2.0d0 / (sin(k) * tan(k))) / ((k / l) * (t * (k / l)))
else
tmp = ((l / k) * (t ** (-1.5d0))) ** 2.0d0
end if
code = tmp
end function
public static double code(double t, double l, double k) {
double tmp;
if (t <= -8e+33) {
tmp = 2.0 / (2.0 * ((k / l) * ((k / l) / Math.pow(t, -3.0))));
} else if (t <= 5.2e+19) {
tmp = (2.0 / (Math.sin(k) * Math.tan(k))) / ((k / l) * (t * (k / l)));
} else {
tmp = Math.pow(((l / k) * Math.pow(t, -1.5)), 2.0);
}
return tmp;
}
def code(t, l, k): tmp = 0 if t <= -8e+33: tmp = 2.0 / (2.0 * ((k / l) * ((k / l) / math.pow(t, -3.0)))) elif t <= 5.2e+19: tmp = (2.0 / (math.sin(k) * math.tan(k))) / ((k / l) * (t * (k / l))) else: tmp = math.pow(((l / k) * math.pow(t, -1.5)), 2.0) return tmp
function code(t, l, k) tmp = 0.0 if (t <= -8e+33) tmp = Float64(2.0 / Float64(2.0 * Float64(Float64(k / l) * Float64(Float64(k / l) / (t ^ -3.0))))); elseif (t <= 5.2e+19) tmp = Float64(Float64(2.0 / Float64(sin(k) * tan(k))) / Float64(Float64(k / l) * Float64(t * Float64(k / l)))); else tmp = Float64(Float64(l / k) * (t ^ -1.5)) ^ 2.0; end return tmp end
function tmp_2 = code(t, l, k) tmp = 0.0; if (t <= -8e+33) tmp = 2.0 / (2.0 * ((k / l) * ((k / l) / (t ^ -3.0)))); elseif (t <= 5.2e+19) tmp = (2.0 / (sin(k) * tan(k))) / ((k / l) * (t * (k / l))); else tmp = ((l / k) * (t ^ -1.5)) ^ 2.0; end tmp_2 = tmp; end
code[t_, l_, k_] := If[LessEqual[t, -8e+33], N[(2.0 / N[(2.0 * N[(N[(k / l), $MachinePrecision] * N[(N[(k / l), $MachinePrecision] / N[Power[t, -3.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 5.2e+19], N[(N[(2.0 / N[(N[Sin[k], $MachinePrecision] * N[Tan[k], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(k / l), $MachinePrecision] * N[(t * N[(k / l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[Power[N[(N[(l / k), $MachinePrecision] * N[Power[t, -1.5], $MachinePrecision]), $MachinePrecision], 2.0], $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -8 \cdot 10^{+33}:\\
\;\;\;\;\frac{2}{2 \cdot \left(\frac{k}{\ell} \cdot \frac{\frac{k}{\ell}}{{t}^{-3}}\right)}\\
\mathbf{elif}\;t \leq 5.2 \cdot 10^{+19}:\\
\;\;\;\;\frac{\frac{2}{\sin k \cdot \tan k}}{\frac{k}{\ell} \cdot \left(t \cdot \frac{k}{\ell}\right)}\\
\mathbf{else}:\\
\;\;\;\;{\left(\frac{\ell}{k} \cdot {t}^{-1.5}\right)}^{2}\\
\end{array}
\end{array}
if t < -7.9999999999999996e33Initial program 71.9%
*-commutative71.9%
associate-*l*69.9%
associate-*r*69.9%
+-commutative69.9%
associate-+r+69.9%
metadata-eval69.9%
Simplified69.9%
Taylor expanded in k around 0 71.6%
associate-/l*69.9%
unpow269.9%
unpow269.9%
associate-*r/75.1%
Simplified75.1%
times-frac79.6%
div-inv79.6%
pow-flip79.6%
metadata-eval79.6%
Applied egg-rr79.6%
associate-/r*81.8%
Simplified81.8%
if -7.9999999999999996e33 < t < 5.2e19Initial program 52.8%
*-commutative52.8%
associate-*l*52.8%
associate-*r*52.8%
+-commutative52.8%
associate-+r+52.8%
metadata-eval52.8%
Simplified52.8%
Taylor expanded in k around inf 76.8%
*-commutative76.8%
unpow276.8%
times-frac83.9%
unpow283.9%
Simplified83.9%
*-un-lft-identity83.9%
associate-/l*86.3%
Applied egg-rr86.3%
expm1-log1p-u58.5%
expm1-udef49.8%
*-commutative49.8%
*-un-lft-identity49.8%
associate-/r/49.8%
Applied egg-rr49.8%
expm1-def58.5%
expm1-log1p86.3%
associate-/r*86.4%
associate-/r/87.1%
associate-/l/89.9%
associate-/l*85.5%
associate-*r/89.8%
unpow289.8%
Simplified89.8%
div-inv89.8%
metadata-eval89.8%
unpow289.8%
frac-times89.8%
clear-num89.9%
clear-num89.8%
*-commutative89.8%
associate-*l*93.4%
Applied egg-rr93.4%
if 5.2e19 < t Initial program 47.7%
associate-*l*47.7%
associate-/l/47.7%
*-commutative47.7%
associate-*r/50.8%
associate-/l*48.3%
associate-/r/44.0%
Simplified47.8%
Taylor expanded in k around 0 42.6%
associate-/r*42.2%
unpow242.2%
unpow242.2%
times-frac50.4%
Simplified50.4%
expm1-log1p-u50.1%
expm1-udef48.6%
div-inv48.6%
pow248.6%
pow-flip48.7%
metadata-eval48.7%
Applied egg-rr48.7%
expm1-def50.3%
expm1-log1p50.5%
Simplified50.5%
add-sqr-sqrt50.5%
pow250.5%
sqrt-prod50.5%
unpow250.5%
sqrt-prod34.3%
add-sqr-sqrt53.0%
sqrt-pow162.2%
metadata-eval62.2%
Applied egg-rr62.2%
Final simplification83.2%
(FPCore (t l k)
:precision binary64
(if (<= t -5.6e-30)
(/ 2.0 (* 2.0 (* (/ k l) (/ (/ k l) (pow t -3.0)))))
(if (<= t 2.6e-112)
(/ 2.0 (* (/ (* t (/ k (/ l k))) l) (* k k)))
(pow (* (/ l k) (pow t -1.5)) 2.0))))
double code(double t, double l, double k) {
double tmp;
if (t <= -5.6e-30) {
tmp = 2.0 / (2.0 * ((k / l) * ((k / l) / pow(t, -3.0))));
} else if (t <= 2.6e-112) {
tmp = 2.0 / (((t * (k / (l / k))) / l) * (k * k));
} else {
tmp = pow(((l / k) * pow(t, -1.5)), 2.0);
}
return tmp;
}
real(8) function code(t, l, k)
real(8), intent (in) :: t
real(8), intent (in) :: l
real(8), intent (in) :: k
real(8) :: tmp
if (t <= (-5.6d-30)) then
tmp = 2.0d0 / (2.0d0 * ((k / l) * ((k / l) / (t ** (-3.0d0)))))
else if (t <= 2.6d-112) then
tmp = 2.0d0 / (((t * (k / (l / k))) / l) * (k * k))
else
tmp = ((l / k) * (t ** (-1.5d0))) ** 2.0d0
end if
code = tmp
end function
public static double code(double t, double l, double k) {
double tmp;
if (t <= -5.6e-30) {
tmp = 2.0 / (2.0 * ((k / l) * ((k / l) / Math.pow(t, -3.0))));
} else if (t <= 2.6e-112) {
tmp = 2.0 / (((t * (k / (l / k))) / l) * (k * k));
} else {
tmp = Math.pow(((l / k) * Math.pow(t, -1.5)), 2.0);
}
return tmp;
}
def code(t, l, k): tmp = 0 if t <= -5.6e-30: tmp = 2.0 / (2.0 * ((k / l) * ((k / l) / math.pow(t, -3.0)))) elif t <= 2.6e-112: tmp = 2.0 / (((t * (k / (l / k))) / l) * (k * k)) else: tmp = math.pow(((l / k) * math.pow(t, -1.5)), 2.0) return tmp
function code(t, l, k) tmp = 0.0 if (t <= -5.6e-30) tmp = Float64(2.0 / Float64(2.0 * Float64(Float64(k / l) * Float64(Float64(k / l) / (t ^ -3.0))))); elseif (t <= 2.6e-112) tmp = Float64(2.0 / Float64(Float64(Float64(t * Float64(k / Float64(l / k))) / l) * Float64(k * k))); else tmp = Float64(Float64(l / k) * (t ^ -1.5)) ^ 2.0; end return tmp end
function tmp_2 = code(t, l, k) tmp = 0.0; if (t <= -5.6e-30) tmp = 2.0 / (2.0 * ((k / l) * ((k / l) / (t ^ -3.0)))); elseif (t <= 2.6e-112) tmp = 2.0 / (((t * (k / (l / k))) / l) * (k * k)); else tmp = ((l / k) * (t ^ -1.5)) ^ 2.0; end tmp_2 = tmp; end
code[t_, l_, k_] := If[LessEqual[t, -5.6e-30], N[(2.0 / N[(2.0 * N[(N[(k / l), $MachinePrecision] * N[(N[(k / l), $MachinePrecision] / N[Power[t, -3.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2.6e-112], N[(2.0 / N[(N[(N[(t * N[(k / N[(l / k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / l), $MachinePrecision] * N[(k * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[Power[N[(N[(l / k), $MachinePrecision] * N[Power[t, -1.5], $MachinePrecision]), $MachinePrecision], 2.0], $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -5.6 \cdot 10^{-30}:\\
\;\;\;\;\frac{2}{2 \cdot \left(\frac{k}{\ell} \cdot \frac{\frac{k}{\ell}}{{t}^{-3}}\right)}\\
\mathbf{elif}\;t \leq 2.6 \cdot 10^{-112}:\\
\;\;\;\;\frac{2}{\frac{t \cdot \frac{k}{\frac{\ell}{k}}}{\ell} \cdot \left(k \cdot k\right)}\\
\mathbf{else}:\\
\;\;\;\;{\left(\frac{\ell}{k} \cdot {t}^{-1.5}\right)}^{2}\\
\end{array}
\end{array}
if t < -5.59999999999999977e-30Initial program 72.1%
*-commutative72.1%
associate-*l*70.5%
associate-*r*70.5%
+-commutative70.5%
associate-+r+70.5%
metadata-eval70.5%
Simplified70.5%
Taylor expanded in k around 0 64.7%
associate-/l*63.4%
unpow263.4%
unpow263.4%
associate-*r/67.3%
Simplified67.3%
times-frac74.8%
div-inv74.8%
pow-flip74.7%
metadata-eval74.7%
Applied egg-rr74.7%
associate-/r*76.5%
Simplified76.5%
if -5.59999999999999977e-30 < t < 2.59999999999999992e-112Initial program 44.7%
*-commutative44.7%
associate-*l*44.7%
associate-*r*44.7%
+-commutative44.7%
associate-+r+44.7%
metadata-eval44.7%
Simplified44.7%
Taylor expanded in k around inf 81.6%
*-commutative81.6%
unpow281.6%
times-frac90.9%
unpow290.9%
Simplified90.9%
Taylor expanded in k around 0 75.2%
unpow275.2%
Simplified75.2%
associate-*l/75.3%
associate-/l*75.4%
Applied egg-rr75.4%
if 2.59999999999999992e-112 < t Initial program 53.7%
associate-*l*53.7%
associate-/l/53.7%
*-commutative53.7%
associate-*r/55.9%
associate-/l*54.1%
associate-/r/51.0%
Simplified53.8%
Taylor expanded in k around 0 46.8%
associate-/r*46.6%
unpow246.6%
unpow246.6%
times-frac55.9%
Simplified55.9%
expm1-log1p-u55.6%
expm1-udef53.4%
div-inv53.4%
pow253.4%
pow-flip53.5%
metadata-eval53.5%
Applied egg-rr53.5%
expm1-def55.7%
expm1-log1p56.0%
Simplified56.0%
add-sqr-sqrt56.0%
pow256.0%
sqrt-prod56.0%
unpow256.0%
sqrt-prod34.1%
add-sqr-sqrt56.7%
sqrt-pow164.4%
metadata-eval64.4%
Applied egg-rr64.4%
Final simplification72.0%
(FPCore (t l k) :precision binary64 (if (or (<= t -7e-30) (not (<= t 2.4e-104))) (/ 2.0 (* 2.0 (* (/ k l) (/ (/ k l) (pow t -3.0))))) (/ 2.0 (* (/ (* t (/ k (/ l k))) l) (* k k)))))
double code(double t, double l, double k) {
double tmp;
if ((t <= -7e-30) || !(t <= 2.4e-104)) {
tmp = 2.0 / (2.0 * ((k / l) * ((k / l) / pow(t, -3.0))));
} else {
tmp = 2.0 / (((t * (k / (l / k))) / l) * (k * k));
}
return tmp;
}
real(8) function code(t, l, k)
real(8), intent (in) :: t
real(8), intent (in) :: l
real(8), intent (in) :: k
real(8) :: tmp
if ((t <= (-7d-30)) .or. (.not. (t <= 2.4d-104))) then
tmp = 2.0d0 / (2.0d0 * ((k / l) * ((k / l) / (t ** (-3.0d0)))))
else
tmp = 2.0d0 / (((t * (k / (l / k))) / l) * (k * k))
end if
code = tmp
end function
public static double code(double t, double l, double k) {
double tmp;
if ((t <= -7e-30) || !(t <= 2.4e-104)) {
tmp = 2.0 / (2.0 * ((k / l) * ((k / l) / Math.pow(t, -3.0))));
} else {
tmp = 2.0 / (((t * (k / (l / k))) / l) * (k * k));
}
return tmp;
}
def code(t, l, k): tmp = 0 if (t <= -7e-30) or not (t <= 2.4e-104): tmp = 2.0 / (2.0 * ((k / l) * ((k / l) / math.pow(t, -3.0)))) else: tmp = 2.0 / (((t * (k / (l / k))) / l) * (k * k)) return tmp
function code(t, l, k) tmp = 0.0 if ((t <= -7e-30) || !(t <= 2.4e-104)) tmp = Float64(2.0 / Float64(2.0 * Float64(Float64(k / l) * Float64(Float64(k / l) / (t ^ -3.0))))); else tmp = Float64(2.0 / Float64(Float64(Float64(t * Float64(k / Float64(l / k))) / l) * Float64(k * k))); end return tmp end
function tmp_2 = code(t, l, k) tmp = 0.0; if ((t <= -7e-30) || ~((t <= 2.4e-104))) tmp = 2.0 / (2.0 * ((k / l) * ((k / l) / (t ^ -3.0)))); else tmp = 2.0 / (((t * (k / (l / k))) / l) * (k * k)); end tmp_2 = tmp; end
code[t_, l_, k_] := If[Or[LessEqual[t, -7e-30], N[Not[LessEqual[t, 2.4e-104]], $MachinePrecision]], N[(2.0 / N[(2.0 * N[(N[(k / l), $MachinePrecision] * N[(N[(k / l), $MachinePrecision] / N[Power[t, -3.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(2.0 / N[(N[(N[(t * N[(k / N[(l / k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / l), $MachinePrecision] * N[(k * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -7 \cdot 10^{-30} \lor \neg \left(t \leq 2.4 \cdot 10^{-104}\right):\\
\;\;\;\;\frac{2}{2 \cdot \left(\frac{k}{\ell} \cdot \frac{\frac{k}{\ell}}{{t}^{-3}}\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{2}{\frac{t \cdot \frac{k}{\frac{\ell}{k}}}{\ell} \cdot \left(k \cdot k\right)}\\
\end{array}
\end{array}
if t < -7.0000000000000006e-30 or 2.4000000000000001e-104 < t Initial program 62.5%
*-commutative62.5%
associate-*l*60.3%
associate-*r*60.3%
+-commutative60.3%
associate-+r+60.3%
metadata-eval60.3%
Simplified60.3%
Taylor expanded in k around 0 55.3%
associate-/l*54.6%
unpow254.6%
unpow254.6%
associate-*r/57.5%
Simplified57.5%
times-frac64.5%
div-inv64.5%
pow-flip64.6%
metadata-eval64.6%
Applied egg-rr64.6%
associate-/r*66.2%
Simplified66.2%
if -7.0000000000000006e-30 < t < 2.4000000000000001e-104Initial program 44.8%
*-commutative44.8%
associate-*l*44.8%
associate-*r*44.8%
+-commutative44.8%
associate-+r+44.8%
metadata-eval44.8%
Simplified44.8%
Taylor expanded in k around inf 82.0%
*-commutative82.0%
unpow282.0%
times-frac91.0%
unpow291.0%
Simplified91.0%
Taylor expanded in k around 0 75.7%
unpow275.7%
Simplified75.7%
associate-*l/75.8%
associate-/l*75.9%
Applied egg-rr75.9%
Final simplification69.8%
(FPCore (t l k)
:precision binary64
(if (<= t -5.4e-120)
(/ (* (/ l k) (/ l k)) (pow t 3.0))
(if (<= t 2.4e-104)
(/ 2.0 (* (/ (* t (/ k (/ l k))) l) (* k k)))
(* (pow t -3.0) (/ (- l) (* (/ k l) (- k)))))))
double code(double t, double l, double k) {
double tmp;
if (t <= -5.4e-120) {
tmp = ((l / k) * (l / k)) / pow(t, 3.0);
} else if (t <= 2.4e-104) {
tmp = 2.0 / (((t * (k / (l / k))) / l) * (k * k));
} else {
tmp = pow(t, -3.0) * (-l / ((k / l) * -k));
}
return tmp;
}
real(8) function code(t, l, k)
real(8), intent (in) :: t
real(8), intent (in) :: l
real(8), intent (in) :: k
real(8) :: tmp
if (t <= (-5.4d-120)) then
tmp = ((l / k) * (l / k)) / (t ** 3.0d0)
else if (t <= 2.4d-104) then
tmp = 2.0d0 / (((t * (k / (l / k))) / l) * (k * k))
else
tmp = (t ** (-3.0d0)) * (-l / ((k / l) * -k))
end if
code = tmp
end function
public static double code(double t, double l, double k) {
double tmp;
if (t <= -5.4e-120) {
tmp = ((l / k) * (l / k)) / Math.pow(t, 3.0);
} else if (t <= 2.4e-104) {
tmp = 2.0 / (((t * (k / (l / k))) / l) * (k * k));
} else {
tmp = Math.pow(t, -3.0) * (-l / ((k / l) * -k));
}
return tmp;
}
def code(t, l, k): tmp = 0 if t <= -5.4e-120: tmp = ((l / k) * (l / k)) / math.pow(t, 3.0) elif t <= 2.4e-104: tmp = 2.0 / (((t * (k / (l / k))) / l) * (k * k)) else: tmp = math.pow(t, -3.0) * (-l / ((k / l) * -k)) return tmp
function code(t, l, k) tmp = 0.0 if (t <= -5.4e-120) tmp = Float64(Float64(Float64(l / k) * Float64(l / k)) / (t ^ 3.0)); elseif (t <= 2.4e-104) tmp = Float64(2.0 / Float64(Float64(Float64(t * Float64(k / Float64(l / k))) / l) * Float64(k * k))); else tmp = Float64((t ^ -3.0) * Float64(Float64(-l) / Float64(Float64(k / l) * Float64(-k)))); end return tmp end
function tmp_2 = code(t, l, k) tmp = 0.0; if (t <= -5.4e-120) tmp = ((l / k) * (l / k)) / (t ^ 3.0); elseif (t <= 2.4e-104) tmp = 2.0 / (((t * (k / (l / k))) / l) * (k * k)); else tmp = (t ^ -3.0) * (-l / ((k / l) * -k)); end tmp_2 = tmp; end
code[t_, l_, k_] := If[LessEqual[t, -5.4e-120], N[(N[(N[(l / k), $MachinePrecision] * N[(l / k), $MachinePrecision]), $MachinePrecision] / N[Power[t, 3.0], $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2.4e-104], N[(2.0 / N[(N[(N[(t * N[(k / N[(l / k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / l), $MachinePrecision] * N[(k * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[Power[t, -3.0], $MachinePrecision] * N[((-l) / N[(N[(k / l), $MachinePrecision] * (-k)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -5.4 \cdot 10^{-120}:\\
\;\;\;\;\frac{\frac{\ell}{k} \cdot \frac{\ell}{k}}{{t}^{3}}\\
\mathbf{elif}\;t \leq 2.4 \cdot 10^{-104}:\\
\;\;\;\;\frac{2}{\frac{t \cdot \frac{k}{\frac{\ell}{k}}}{\ell} \cdot \left(k \cdot k\right)}\\
\mathbf{else}:\\
\;\;\;\;{t}^{-3} \cdot \frac{-\ell}{\frac{k}{\ell} \cdot \left(-k\right)}\\
\end{array}
\end{array}
if t < -5.3999999999999997e-120Initial program 72.8%
associate-*l*72.8%
associate-/l/72.8%
*-commutative72.8%
associate-*r/74.6%
associate-/l*72.7%
associate-/r/71.5%
Simplified75.2%
Taylor expanded in k around 0 64.8%
associate-/r*65.7%
unpow265.7%
unpow265.7%
times-frac73.2%
Simplified73.2%
if -5.3999999999999997e-120 < t < 2.4000000000000001e-104Initial program 30.2%
*-commutative30.2%
associate-*l*30.2%
associate-*r*30.2%
+-commutative30.2%
associate-+r+30.2%
metadata-eval30.2%
Simplified30.2%
Taylor expanded in k around inf 81.1%
*-commutative81.1%
unpow281.1%
times-frac93.0%
unpow293.0%
Simplified93.0%
Taylor expanded in k around 0 77.7%
unpow277.7%
Simplified77.7%
associate-*l/77.8%
associate-/l*77.9%
Applied egg-rr77.9%
if 2.4000000000000001e-104 < t Initial program 53.8%
associate-*l*53.8%
associate-/l/53.8%
*-commutative53.8%
associate-*r/56.0%
associate-/l*54.2%
associate-/r/51.0%
Simplified53.9%
Taylor expanded in k around 0 46.7%
associate-/r*46.5%
unpow246.5%
unpow246.5%
times-frac56.0%
Simplified56.0%
expm1-log1p-u55.7%
expm1-udef53.5%
div-inv53.5%
pow253.5%
pow-flip53.6%
metadata-eval53.6%
Applied egg-rr53.6%
expm1-def55.8%
expm1-log1p56.2%
Simplified56.2%
unpow256.2%
clear-num56.2%
frac-2neg56.2%
frac-times56.2%
*-un-lft-identity56.2%
Applied egg-rr56.2%
Final simplification68.7%
(FPCore (t l k) :precision binary64 (if (or (<= t -5.4e-120) (not (<= t 2.4e-104))) (* (pow t -3.0) (* (/ l k) (/ l k))) (/ 2.0 (* (/ (* t (/ k (/ l k))) l) (* k k)))))
double code(double t, double l, double k) {
double tmp;
if ((t <= -5.4e-120) || !(t <= 2.4e-104)) {
tmp = pow(t, -3.0) * ((l / k) * (l / k));
} else {
tmp = 2.0 / (((t * (k / (l / k))) / l) * (k * k));
}
return tmp;
}
real(8) function code(t, l, k)
real(8), intent (in) :: t
real(8), intent (in) :: l
real(8), intent (in) :: k
real(8) :: tmp
if ((t <= (-5.4d-120)) .or. (.not. (t <= 2.4d-104))) then
tmp = (t ** (-3.0d0)) * ((l / k) * (l / k))
else
tmp = 2.0d0 / (((t * (k / (l / k))) / l) * (k * k))
end if
code = tmp
end function
public static double code(double t, double l, double k) {
double tmp;
if ((t <= -5.4e-120) || !(t <= 2.4e-104)) {
tmp = Math.pow(t, -3.0) * ((l / k) * (l / k));
} else {
tmp = 2.0 / (((t * (k / (l / k))) / l) * (k * k));
}
return tmp;
}
def code(t, l, k): tmp = 0 if (t <= -5.4e-120) or not (t <= 2.4e-104): tmp = math.pow(t, -3.0) * ((l / k) * (l / k)) else: tmp = 2.0 / (((t * (k / (l / k))) / l) * (k * k)) return tmp
function code(t, l, k) tmp = 0.0 if ((t <= -5.4e-120) || !(t <= 2.4e-104)) tmp = Float64((t ^ -3.0) * Float64(Float64(l / k) * Float64(l / k))); else tmp = Float64(2.0 / Float64(Float64(Float64(t * Float64(k / Float64(l / k))) / l) * Float64(k * k))); end return tmp end
function tmp_2 = code(t, l, k) tmp = 0.0; if ((t <= -5.4e-120) || ~((t <= 2.4e-104))) tmp = (t ^ -3.0) * ((l / k) * (l / k)); else tmp = 2.0 / (((t * (k / (l / k))) / l) * (k * k)); end tmp_2 = tmp; end
code[t_, l_, k_] := If[Or[LessEqual[t, -5.4e-120], N[Not[LessEqual[t, 2.4e-104]], $MachinePrecision]], N[(N[Power[t, -3.0], $MachinePrecision] * N[(N[(l / k), $MachinePrecision] * N[(l / k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(2.0 / N[(N[(N[(t * N[(k / N[(l / k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / l), $MachinePrecision] * N[(k * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -5.4 \cdot 10^{-120} \lor \neg \left(t \leq 2.4 \cdot 10^{-104}\right):\\
\;\;\;\;{t}^{-3} \cdot \left(\frac{\ell}{k} \cdot \frac{\ell}{k}\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{2}{\frac{t \cdot \frac{k}{\frac{\ell}{k}}}{\ell} \cdot \left(k \cdot k\right)}\\
\end{array}
\end{array}
if t < -5.3999999999999997e-120 or 2.4000000000000001e-104 < t Initial program 64.4%
associate-*l*64.4%
associate-/l/64.4%
*-commutative64.4%
associate-*r/66.4%
associate-/l*64.6%
associate-/r/62.5%
Simplified65.8%
Taylor expanded in k around 0 56.9%
associate-/r*57.2%
unpow257.2%
unpow257.2%
times-frac65.7%
Simplified65.7%
expm1-log1p-u54.4%
expm1-udef51.5%
div-inv51.5%
pow251.5%
pow-flip51.5%
metadata-eval51.5%
Applied egg-rr51.5%
expm1-def54.5%
expm1-log1p65.7%
Simplified65.7%
unpow265.7%
Applied egg-rr65.7%
if -5.3999999999999997e-120 < t < 2.4000000000000001e-104Initial program 30.2%
*-commutative30.2%
associate-*l*30.2%
associate-*r*30.2%
+-commutative30.2%
associate-+r+30.2%
metadata-eval30.2%
Simplified30.2%
Taylor expanded in k around inf 81.1%
*-commutative81.1%
unpow281.1%
times-frac93.0%
unpow293.0%
Simplified93.0%
Taylor expanded in k around 0 77.7%
unpow277.7%
Simplified77.7%
associate-*l/77.8%
associate-/l*77.9%
Applied egg-rr77.9%
Final simplification68.7%
(FPCore (t l k)
:precision binary64
(let* ((t_1 (* (/ l k) (/ l k))))
(if (<= t -5.4e-120)
(/ t_1 (pow t 3.0))
(if (<= t 2.4e-104)
(/ 2.0 (* (/ (* t (/ k (/ l k))) l) (* k k)))
(* (pow t -3.0) t_1)))))
double code(double t, double l, double k) {
double t_1 = (l / k) * (l / k);
double tmp;
if (t <= -5.4e-120) {
tmp = t_1 / pow(t, 3.0);
} else if (t <= 2.4e-104) {
tmp = 2.0 / (((t * (k / (l / k))) / l) * (k * k));
} else {
tmp = pow(t, -3.0) * t_1;
}
return tmp;
}
real(8) function code(t, l, k)
real(8), intent (in) :: t
real(8), intent (in) :: l
real(8), intent (in) :: k
real(8) :: t_1
real(8) :: tmp
t_1 = (l / k) * (l / k)
if (t <= (-5.4d-120)) then
tmp = t_1 / (t ** 3.0d0)
else if (t <= 2.4d-104) then
tmp = 2.0d0 / (((t * (k / (l / k))) / l) * (k * k))
else
tmp = (t ** (-3.0d0)) * t_1
end if
code = tmp
end function
public static double code(double t, double l, double k) {
double t_1 = (l / k) * (l / k);
double tmp;
if (t <= -5.4e-120) {
tmp = t_1 / Math.pow(t, 3.0);
} else if (t <= 2.4e-104) {
tmp = 2.0 / (((t * (k / (l / k))) / l) * (k * k));
} else {
tmp = Math.pow(t, -3.0) * t_1;
}
return tmp;
}
def code(t, l, k): t_1 = (l / k) * (l / k) tmp = 0 if t <= -5.4e-120: tmp = t_1 / math.pow(t, 3.0) elif t <= 2.4e-104: tmp = 2.0 / (((t * (k / (l / k))) / l) * (k * k)) else: tmp = math.pow(t, -3.0) * t_1 return tmp
function code(t, l, k) t_1 = Float64(Float64(l / k) * Float64(l / k)) tmp = 0.0 if (t <= -5.4e-120) tmp = Float64(t_1 / (t ^ 3.0)); elseif (t <= 2.4e-104) tmp = Float64(2.0 / Float64(Float64(Float64(t * Float64(k / Float64(l / k))) / l) * Float64(k * k))); else tmp = Float64((t ^ -3.0) * t_1); end return tmp end
function tmp_2 = code(t, l, k) t_1 = (l / k) * (l / k); tmp = 0.0; if (t <= -5.4e-120) tmp = t_1 / (t ^ 3.0); elseif (t <= 2.4e-104) tmp = 2.0 / (((t * (k / (l / k))) / l) * (k * k)); else tmp = (t ^ -3.0) * t_1; end tmp_2 = tmp; end
code[t_, l_, k_] := Block[{t$95$1 = N[(N[(l / k), $MachinePrecision] * N[(l / k), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -5.4e-120], N[(t$95$1 / N[Power[t, 3.0], $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2.4e-104], N[(2.0 / N[(N[(N[(t * N[(k / N[(l / k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / l), $MachinePrecision] * N[(k * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[Power[t, -3.0], $MachinePrecision] * t$95$1), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{\ell}{k} \cdot \frac{\ell}{k}\\
\mathbf{if}\;t \leq -5.4 \cdot 10^{-120}:\\
\;\;\;\;\frac{t_1}{{t}^{3}}\\
\mathbf{elif}\;t \leq 2.4 \cdot 10^{-104}:\\
\;\;\;\;\frac{2}{\frac{t \cdot \frac{k}{\frac{\ell}{k}}}{\ell} \cdot \left(k \cdot k\right)}\\
\mathbf{else}:\\
\;\;\;\;{t}^{-3} \cdot t_1\\
\end{array}
\end{array}
if t < -5.3999999999999997e-120Initial program 72.8%
associate-*l*72.8%
associate-/l/72.8%
*-commutative72.8%
associate-*r/74.6%
associate-/l*72.7%
associate-/r/71.5%
Simplified75.2%
Taylor expanded in k around 0 64.8%
associate-/r*65.7%
unpow265.7%
unpow265.7%
times-frac73.2%
Simplified73.2%
if -5.3999999999999997e-120 < t < 2.4000000000000001e-104Initial program 30.2%
*-commutative30.2%
associate-*l*30.2%
associate-*r*30.2%
+-commutative30.2%
associate-+r+30.2%
metadata-eval30.2%
Simplified30.2%
Taylor expanded in k around inf 81.1%
*-commutative81.1%
unpow281.1%
times-frac93.0%
unpow293.0%
Simplified93.0%
Taylor expanded in k around 0 77.7%
unpow277.7%
Simplified77.7%
associate-*l/77.8%
associate-/l*77.9%
Applied egg-rr77.9%
if 2.4000000000000001e-104 < t Initial program 53.8%
associate-*l*53.8%
associate-/l/53.8%
*-commutative53.8%
associate-*r/56.0%
associate-/l*54.2%
associate-/r/51.0%
Simplified53.9%
Taylor expanded in k around 0 46.7%
associate-/r*46.5%
unpow246.5%
unpow246.5%
times-frac56.0%
Simplified56.0%
expm1-log1p-u55.7%
expm1-udef53.5%
div-inv53.5%
pow253.5%
pow-flip53.6%
metadata-eval53.6%
Applied egg-rr53.6%
expm1-def55.8%
expm1-log1p56.2%
Simplified56.2%
unpow256.2%
Applied egg-rr56.2%
Final simplification68.7%
(FPCore (t l k) :precision binary64 (/ 2.0 (* (* k k) (* (/ t l) (* (* k k) (/ 1.0 l))))))
double code(double t, double l, double k) {
return 2.0 / ((k * k) * ((t / l) * ((k * k) * (1.0 / l))));
}
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 / ((k * k) * ((t / l) * ((k * k) * (1.0d0 / l))))
end function
public static double code(double t, double l, double k) {
return 2.0 / ((k * k) * ((t / l) * ((k * k) * (1.0 / l))));
}
def code(t, l, k): return 2.0 / ((k * k) * ((t / l) * ((k * k) * (1.0 / l))))
function code(t, l, k) return Float64(2.0 / Float64(Float64(k * k) * Float64(Float64(t / l) * Float64(Float64(k * k) * Float64(1.0 / l))))) end
function tmp = code(t, l, k) tmp = 2.0 / ((k * k) * ((t / l) * ((k * k) * (1.0 / l)))); end
code[t_, l_, k_] := N[(2.0 / N[(N[(k * k), $MachinePrecision] * N[(N[(t / l), $MachinePrecision] * N[(N[(k * k), $MachinePrecision] * N[(1.0 / l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{2}{\left(k \cdot k\right) \cdot \left(\frac{t}{\ell} \cdot \left(\left(k \cdot k\right) \cdot \frac{1}{\ell}\right)\right)}
\end{array}
Initial program 56.0%
*-commutative56.0%
associate-*l*54.6%
associate-*r*54.6%
+-commutative54.6%
associate-+r+54.6%
metadata-eval54.6%
Simplified54.6%
Taylor expanded in k around inf 64.3%
*-commutative64.3%
unpow264.3%
times-frac68.5%
unpow268.5%
Simplified68.5%
Taylor expanded in k around 0 60.7%
unpow260.7%
Simplified60.7%
div-inv60.7%
Applied egg-rr60.7%
Final simplification60.7%
(FPCore (t l k) :precision binary64 (/ 2.0 (* (* t (* (/ k l) (/ k l))) (* k k))))
double code(double t, double l, double k) {
return 2.0 / ((t * ((k / l) * (k / l))) * (k * k));
}
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 * ((k / l) * (k / l))) * (k * k))
end function
public static double code(double t, double l, double k) {
return 2.0 / ((t * ((k / l) * (k / l))) * (k * k));
}
def code(t, l, k): return 2.0 / ((t * ((k / l) * (k / l))) * (k * k))
function code(t, l, k) return Float64(2.0 / Float64(Float64(t * Float64(Float64(k / l) * Float64(k / l))) * Float64(k * k))) end
function tmp = code(t, l, k) tmp = 2.0 / ((t * ((k / l) * (k / l))) * (k * k)); end
code[t_, l_, k_] := N[(2.0 / N[(N[(t * N[(N[(k / l), $MachinePrecision] * N[(k / l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(k * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{2}{\left(t \cdot \left(\frac{k}{\ell} \cdot \frac{k}{\ell}\right)\right) \cdot \left(k \cdot k\right)}
\end{array}
Initial program 56.0%
*-commutative56.0%
associate-*l*54.6%
associate-*r*54.6%
+-commutative54.6%
associate-+r+54.6%
metadata-eval54.6%
Simplified54.6%
Taylor expanded in k around inf 64.3%
*-commutative64.3%
unpow264.3%
times-frac68.5%
unpow268.5%
Simplified68.5%
Taylor expanded in k around 0 60.7%
unpow260.7%
Simplified60.7%
Taylor expanded in t around 0 57.4%
associate-/l*58.6%
associate-/r/57.1%
unpow257.1%
unpow257.1%
times-frac58.1%
Simplified58.1%
Final simplification58.1%
(FPCore (t l k) :precision binary64 (/ 2.0 (* (* k k) (* (/ t l) (* k (/ k l))))))
double code(double t, double l, double k) {
return 2.0 / ((k * k) * ((t / l) * (k * (k / l))));
}
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 / ((k * k) * ((t / l) * (k * (k / l))))
end function
public static double code(double t, double l, double k) {
return 2.0 / ((k * k) * ((t / l) * (k * (k / l))));
}
def code(t, l, k): return 2.0 / ((k * k) * ((t / l) * (k * (k / l))))
function code(t, l, k) return Float64(2.0 / Float64(Float64(k * k) * Float64(Float64(t / l) * Float64(k * Float64(k / l))))) end
function tmp = code(t, l, k) tmp = 2.0 / ((k * k) * ((t / l) * (k * (k / l)))); end
code[t_, l_, k_] := N[(2.0 / N[(N[(k * k), $MachinePrecision] * N[(N[(t / l), $MachinePrecision] * N[(k * N[(k / l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{2}{\left(k \cdot k\right) \cdot \left(\frac{t}{\ell} \cdot \left(k \cdot \frac{k}{\ell}\right)\right)}
\end{array}
Initial program 56.0%
*-commutative56.0%
associate-*l*54.6%
associate-*r*54.6%
+-commutative54.6%
associate-+r+54.6%
metadata-eval54.6%
Simplified54.6%
Taylor expanded in k around inf 64.3%
*-commutative64.3%
unpow264.3%
times-frac68.5%
unpow268.5%
Simplified68.5%
Taylor expanded in k around 0 60.7%
unpow260.7%
Simplified60.7%
Taylor expanded in k around 0 60.7%
unpow260.7%
associate-*l/60.7%
*-commutative60.7%
Simplified60.7%
Final simplification60.7%
(FPCore (t l k) :precision binary64 (/ 2.0 (* (* k k) (* (/ t l) (/ (* k k) l)))))
double code(double t, double l, double k) {
return 2.0 / ((k * k) * ((t / l) * ((k * k) / l)));
}
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 / ((k * k) * ((t / l) * ((k * k) / l)))
end function
public static double code(double t, double l, double k) {
return 2.0 / ((k * k) * ((t / l) * ((k * k) / l)));
}
def code(t, l, k): return 2.0 / ((k * k) * ((t / l) * ((k * k) / l)))
function code(t, l, k) return Float64(2.0 / Float64(Float64(k * k) * Float64(Float64(t / l) * Float64(Float64(k * k) / l)))) end
function tmp = code(t, l, k) tmp = 2.0 / ((k * k) * ((t / l) * ((k * k) / l))); end
code[t_, l_, k_] := N[(2.0 / N[(N[(k * k), $MachinePrecision] * N[(N[(t / l), $MachinePrecision] * N[(N[(k * k), $MachinePrecision] / l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{2}{\left(k \cdot k\right) \cdot \left(\frac{t}{\ell} \cdot \frac{k \cdot k}{\ell}\right)}
\end{array}
Initial program 56.0%
*-commutative56.0%
associate-*l*54.6%
associate-*r*54.6%
+-commutative54.6%
associate-+r+54.6%
metadata-eval54.6%
Simplified54.6%
Taylor expanded in k around inf 64.3%
*-commutative64.3%
unpow264.3%
times-frac68.5%
unpow268.5%
Simplified68.5%
Taylor expanded in k around 0 60.7%
unpow260.7%
Simplified60.7%
Final simplification60.7%
herbie shell --seed 2023189
(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))))