
(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 19 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 (or (<= t -32000000.0) (not (<= t 5.2e-37)))
(/
(/
2.0
(* (pow (/ t (/ (cbrt l) (/ (cbrt (sin k)) (cbrt l)))) 3.0) (tan k)))
(+ 1.0 (+ 1.0 (pow (/ k t) 2.0))))
(* 2.0 (* (* (/ (/ l k) k) (/ l t)) (/ (cos k) (pow (sin k) 2.0))))))
double code(double t, double l, double k) {
double tmp;
if ((t <= -32000000.0) || !(t <= 5.2e-37)) {
tmp = (2.0 / (pow((t / (cbrt(l) / (cbrt(sin(k)) / cbrt(l)))), 3.0) * tan(k))) / (1.0 + (1.0 + pow((k / t), 2.0)));
} else {
tmp = 2.0 * ((((l / k) / k) * (l / t)) * (cos(k) / pow(sin(k), 2.0)));
}
return tmp;
}
public static double code(double t, double l, double k) {
double tmp;
if ((t <= -32000000.0) || !(t <= 5.2e-37)) {
tmp = (2.0 / (Math.pow((t / (Math.cbrt(l) / (Math.cbrt(Math.sin(k)) / Math.cbrt(l)))), 3.0) * Math.tan(k))) / (1.0 + (1.0 + Math.pow((k / t), 2.0)));
} else {
tmp = 2.0 * ((((l / k) / k) * (l / t)) * (Math.cos(k) / Math.pow(Math.sin(k), 2.0)));
}
return tmp;
}
function code(t, l, k) tmp = 0.0 if ((t <= -32000000.0) || !(t <= 5.2e-37)) tmp = Float64(Float64(2.0 / Float64((Float64(t / Float64(cbrt(l) / Float64(cbrt(sin(k)) / cbrt(l)))) ^ 3.0) * tan(k))) / Float64(1.0 + Float64(1.0 + (Float64(k / t) ^ 2.0)))); else tmp = Float64(2.0 * Float64(Float64(Float64(Float64(l / k) / k) * Float64(l / t)) * Float64(cos(k) / (sin(k) ^ 2.0)))); end return tmp end
code[t_, l_, k_] := If[Or[LessEqual[t, -32000000.0], N[Not[LessEqual[t, 5.2e-37]], $MachinePrecision]], N[(N[(2.0 / N[(N[Power[N[(t / N[(N[Power[l, 1/3], $MachinePrecision] / N[(N[Power[N[Sin[k], $MachinePrecision], 1/3], $MachinePrecision] / N[Power[l, 1/3], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 3.0], $MachinePrecision] * N[Tan[k], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(1.0 + N[(1.0 + N[Power[N[(k / t), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(2.0 * N[(N[(N[(N[(l / k), $MachinePrecision] / k), $MachinePrecision] * N[(l / t), $MachinePrecision]), $MachinePrecision] * N[(N[Cos[k], $MachinePrecision] / N[Power[N[Sin[k], $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -32000000 \lor \neg \left(t \leq 5.2 \cdot 10^{-37}\right):\\
\;\;\;\;\frac{\frac{2}{{\left(\frac{t}{\frac{\sqrt[3]{\ell}}{\frac{\sqrt[3]{\sin k}}{\sqrt[3]{\ell}}}}\right)}^{3} \cdot \tan k}}{1 + \left(1 + {\left(\frac{k}{t}\right)}^{2}\right)}\\
\mathbf{else}:\\
\;\;\;\;2 \cdot \left(\left(\frac{\frac{\ell}{k}}{k} \cdot \frac{\ell}{t}\right) \cdot \frac{\cos k}{{\sin k}^{2}}\right)\\
\end{array}
\end{array}
if t < -3.2e7 or 5.19999999999999959e-37 < t Initial program 71.3%
associate-/r*71.3%
+-commutative71.3%
Simplified71.3%
associate-/r/73.6%
add-cube-cbrt73.4%
pow373.4%
cbrt-div73.4%
rem-cbrt-cube75.3%
associate-/l*77.3%
Applied egg-rr77.3%
cbrt-div90.0%
Applied egg-rr90.0%
cbrt-div92.7%
Applied egg-rr92.7%
if -3.2e7 < t < 5.19999999999999959e-37Initial program 40.5%
associate-/r*40.5%
associate-*l*40.5%
sqr-neg40.5%
associate-*l*40.5%
*-commutative40.5%
sqr-neg40.5%
associate-*l/40.5%
associate-*r/40.4%
associate-/r/39.6%
Simplified39.6%
Taylor expanded in k around inf 72.0%
times-frac70.2%
unpow270.2%
unpow270.2%
Simplified70.2%
associate-*l/68.8%
Applied egg-rr68.8%
Taylor expanded in l around 0 72.0%
associate-*r*72.0%
times-frac72.5%
unpow272.5%
times-frac90.1%
unpow290.1%
associate-/r*91.8%
Simplified91.8%
Final simplification92.2%
(FPCore (t l k)
:precision binary64
(let* ((t_1 (pow (/ k t) 2.0)))
(if (<=
(/
2.0
(*
(+ 1.0 (+ 1.0 t_1))
(* (tan k) (* (sin k) (/ (pow t 3.0) (* l l))))))
5e+257)
(/
(pow (/ (cbrt (/ 2.0 (tan k))) (/ t (cbrt (/ l (/ (sin k) l))))) 3.0)
(+ 2.0 t_1))
(* 2.0 (* (* (/ (/ l k) k) (/ l t)) (/ (cos k) (pow (sin k) 2.0)))))))
double code(double t, double l, double k) {
double t_1 = pow((k / t), 2.0);
double tmp;
if ((2.0 / ((1.0 + (1.0 + t_1)) * (tan(k) * (sin(k) * (pow(t, 3.0) / (l * l)))))) <= 5e+257) {
tmp = pow((cbrt((2.0 / tan(k))) / (t / cbrt((l / (sin(k) / l))))), 3.0) / (2.0 + t_1);
} else {
tmp = 2.0 * ((((l / k) / k) * (l / t)) * (cos(k) / pow(sin(k), 2.0)));
}
return tmp;
}
public static double code(double t, double l, double k) {
double t_1 = Math.pow((k / t), 2.0);
double tmp;
if ((2.0 / ((1.0 + (1.0 + t_1)) * (Math.tan(k) * (Math.sin(k) * (Math.pow(t, 3.0) / (l * l)))))) <= 5e+257) {
tmp = Math.pow((Math.cbrt((2.0 / Math.tan(k))) / (t / Math.cbrt((l / (Math.sin(k) / l))))), 3.0) / (2.0 + t_1);
} else {
tmp = 2.0 * ((((l / k) / k) * (l / t)) * (Math.cos(k) / Math.pow(Math.sin(k), 2.0)));
}
return tmp;
}
function code(t, l, k) t_1 = Float64(k / t) ^ 2.0 tmp = 0.0 if (Float64(2.0 / Float64(Float64(1.0 + Float64(1.0 + t_1)) * Float64(tan(k) * Float64(sin(k) * Float64((t ^ 3.0) / Float64(l * l)))))) <= 5e+257) tmp = Float64((Float64(cbrt(Float64(2.0 / tan(k))) / Float64(t / cbrt(Float64(l / Float64(sin(k) / l))))) ^ 3.0) / Float64(2.0 + t_1)); else tmp = Float64(2.0 * Float64(Float64(Float64(Float64(l / k) / k) * Float64(l / t)) * Float64(cos(k) / (sin(k) ^ 2.0)))); end return tmp end
code[t_, l_, k_] := Block[{t$95$1 = N[Power[N[(k / t), $MachinePrecision], 2.0], $MachinePrecision]}, If[LessEqual[N[(2.0 / N[(N[(1.0 + N[(1.0 + t$95$1), $MachinePrecision]), $MachinePrecision] * N[(N[Tan[k], $MachinePrecision] * N[(N[Sin[k], $MachinePrecision] * N[(N[Power[t, 3.0], $MachinePrecision] / N[(l * l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 5e+257], N[(N[Power[N[(N[Power[N[(2.0 / N[Tan[k], $MachinePrecision]), $MachinePrecision], 1/3], $MachinePrecision] / N[(t / N[Power[N[(l / N[(N[Sin[k], $MachinePrecision] / l), $MachinePrecision]), $MachinePrecision], 1/3], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 3.0], $MachinePrecision] / N[(2.0 + t$95$1), $MachinePrecision]), $MachinePrecision], N[(2.0 * N[(N[(N[(N[(l / k), $MachinePrecision] / k), $MachinePrecision] * N[(l / t), $MachinePrecision]), $MachinePrecision] * N[(N[Cos[k], $MachinePrecision] / N[Power[N[Sin[k], $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := {\left(\frac{k}{t}\right)}^{2}\\
\mathbf{if}\;\frac{2}{\left(1 + \left(1 + t_1\right)\right) \cdot \left(\tan k \cdot \left(\sin k \cdot \frac{{t}^{3}}{\ell \cdot \ell}\right)\right)} \leq 5 \cdot 10^{+257}:\\
\;\;\;\;\frac{{\left(\frac{\sqrt[3]{\frac{2}{\tan k}}}{\frac{t}{\sqrt[3]{\frac{\ell}{\frac{\sin k}{\ell}}}}}\right)}^{3}}{2 + t_1}\\
\mathbf{else}:\\
\;\;\;\;2 \cdot \left(\left(\frac{\frac{\ell}{k}}{k} \cdot \frac{\ell}{t}\right) \cdot \frac{\cos k}{{\sin k}^{2}}\right)\\
\end{array}
\end{array}
if (/.f64 2 (*.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))) < 5.00000000000000028e257Initial program 83.3%
associate-/r*83.3%
associate-*l*77.6%
sqr-neg77.6%
associate-*l*83.3%
*-commutative83.3%
sqr-neg83.3%
associate-/r*83.3%
Simplified85.5%
associate-/l/85.5%
associate-/r/83.3%
add-cube-cbrt83.2%
pow383.2%
Applied egg-rr93.1%
if 5.00000000000000028e257 < (/.f64 2 (*.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 23.1%
associate-/r*23.1%
associate-*l*23.1%
sqr-neg23.1%
associate-*l*23.1%
*-commutative23.1%
sqr-neg23.1%
associate-*l/23.1%
associate-*r/23.1%
associate-/r/23.1%
Simplified23.1%
Taylor expanded in k around inf 58.1%
times-frac56.2%
unpow256.2%
unpow256.2%
Simplified56.2%
associate-*l/54.7%
Applied egg-rr54.7%
Taylor expanded in l around 0 58.1%
associate-*r*58.1%
times-frac58.6%
unpow258.6%
times-frac81.0%
unpow281.0%
associate-/r*83.2%
Simplified83.2%
Final simplification88.7%
(FPCore (t l k)
:precision binary64
(let* ((t_1 (pow (/ k t) 2.0)))
(if (<=
(/
2.0
(*
(+ 1.0 (+ 1.0 t_1))
(* (tan k) (* (sin k) (/ (pow t 3.0) (* l l))))))
5e+257)
(*
(* (pow (/ (cbrt (/ 2.0 (tan k))) t) 3.0) (* l (/ l (sin k))))
(/ 1.0 (+ 2.0 t_1)))
(* 2.0 (* (* (/ (/ l k) k) (/ l t)) (/ (cos k) (pow (sin k) 2.0)))))))
double code(double t, double l, double k) {
double t_1 = pow((k / t), 2.0);
double tmp;
if ((2.0 / ((1.0 + (1.0 + t_1)) * (tan(k) * (sin(k) * (pow(t, 3.0) / (l * l)))))) <= 5e+257) {
tmp = (pow((cbrt((2.0 / tan(k))) / t), 3.0) * (l * (l / sin(k)))) * (1.0 / (2.0 + t_1));
} else {
tmp = 2.0 * ((((l / k) / k) * (l / t)) * (cos(k) / pow(sin(k), 2.0)));
}
return tmp;
}
public static double code(double t, double l, double k) {
double t_1 = Math.pow((k / t), 2.0);
double tmp;
if ((2.0 / ((1.0 + (1.0 + t_1)) * (Math.tan(k) * (Math.sin(k) * (Math.pow(t, 3.0) / (l * l)))))) <= 5e+257) {
tmp = (Math.pow((Math.cbrt((2.0 / Math.tan(k))) / t), 3.0) * (l * (l / Math.sin(k)))) * (1.0 / (2.0 + t_1));
} else {
tmp = 2.0 * ((((l / k) / k) * (l / t)) * (Math.cos(k) / Math.pow(Math.sin(k), 2.0)));
}
return tmp;
}
function code(t, l, k) t_1 = Float64(k / t) ^ 2.0 tmp = 0.0 if (Float64(2.0 / Float64(Float64(1.0 + Float64(1.0 + t_1)) * Float64(tan(k) * Float64(sin(k) * Float64((t ^ 3.0) / Float64(l * l)))))) <= 5e+257) tmp = Float64(Float64((Float64(cbrt(Float64(2.0 / tan(k))) / t) ^ 3.0) * Float64(l * Float64(l / sin(k)))) * Float64(1.0 / Float64(2.0 + t_1))); else tmp = Float64(2.0 * Float64(Float64(Float64(Float64(l / k) / k) * Float64(l / t)) * Float64(cos(k) / (sin(k) ^ 2.0)))); end return tmp end
code[t_, l_, k_] := Block[{t$95$1 = N[Power[N[(k / t), $MachinePrecision], 2.0], $MachinePrecision]}, If[LessEqual[N[(2.0 / N[(N[(1.0 + N[(1.0 + t$95$1), $MachinePrecision]), $MachinePrecision] * N[(N[Tan[k], $MachinePrecision] * N[(N[Sin[k], $MachinePrecision] * N[(N[Power[t, 3.0], $MachinePrecision] / N[(l * l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 5e+257], N[(N[(N[Power[N[(N[Power[N[(2.0 / N[Tan[k], $MachinePrecision]), $MachinePrecision], 1/3], $MachinePrecision] / t), $MachinePrecision], 3.0], $MachinePrecision] * N[(l * N[(l / N[Sin[k], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(1.0 / N[(2.0 + t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(2.0 * N[(N[(N[(N[(l / k), $MachinePrecision] / k), $MachinePrecision] * N[(l / t), $MachinePrecision]), $MachinePrecision] * N[(N[Cos[k], $MachinePrecision] / N[Power[N[Sin[k], $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := {\left(\frac{k}{t}\right)}^{2}\\
\mathbf{if}\;\frac{2}{\left(1 + \left(1 + t_1\right)\right) \cdot \left(\tan k \cdot \left(\sin k \cdot \frac{{t}^{3}}{\ell \cdot \ell}\right)\right)} \leq 5 \cdot 10^{+257}:\\
\;\;\;\;\left({\left(\frac{\sqrt[3]{\frac{2}{\tan k}}}{t}\right)}^{3} \cdot \left(\ell \cdot \frac{\ell}{\sin k}\right)\right) \cdot \frac{1}{2 + t_1}\\
\mathbf{else}:\\
\;\;\;\;2 \cdot \left(\left(\frac{\frac{\ell}{k}}{k} \cdot \frac{\ell}{t}\right) \cdot \frac{\cos k}{{\sin k}^{2}}\right)\\
\end{array}
\end{array}
if (/.f64 2 (*.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))) < 5.00000000000000028e257Initial program 83.3%
associate-/r*83.3%
associate-*l*77.6%
sqr-neg77.6%
associate-*l*83.3%
*-commutative83.3%
sqr-neg83.3%
associate-/r*83.3%
Simplified85.5%
associate-/l/85.5%
associate-/r/83.3%
add-cube-cbrt83.2%
Applied egg-rr93.1%
div-inv93.1%
pow-plus93.1%
associate-/r/93.2%
associate-/r/93.1%
metadata-eval93.1%
Applied egg-rr93.1%
cube-prod91.7%
rem-cube-cbrt91.8%
*-commutative91.8%
Simplified91.8%
if 5.00000000000000028e257 < (/.f64 2 (*.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 23.1%
associate-/r*23.1%
associate-*l*23.1%
sqr-neg23.1%
associate-*l*23.1%
*-commutative23.1%
sqr-neg23.1%
associate-*l/23.1%
associate-*r/23.1%
associate-/r/23.1%
Simplified23.1%
Taylor expanded in k around inf 58.1%
times-frac56.2%
unpow256.2%
unpow256.2%
Simplified56.2%
associate-*l/54.7%
Applied egg-rr54.7%
Taylor expanded in l around 0 58.1%
associate-*r*58.1%
times-frac58.6%
unpow258.6%
times-frac81.0%
unpow281.0%
associate-/r*83.2%
Simplified83.2%
Final simplification88.0%
(FPCore (t l k)
:precision binary64
(let* ((t_1 (pow (/ k t) 2.0)))
(if (<=
(/
2.0
(*
(+ 1.0 (+ 1.0 t_1))
(* (tan k) (* (sin k) (/ (pow t 3.0) (* l l))))))
5e+257)
(/ (* (/ l (sin k)) (/ (* 2.0 l) (* (tan k) (pow t 3.0)))) (+ 2.0 t_1))
(* 2.0 (* (* (/ (/ l k) k) (/ l t)) (/ (cos k) (pow (sin k) 2.0)))))))
double code(double t, double l, double k) {
double t_1 = pow((k / t), 2.0);
double tmp;
if ((2.0 / ((1.0 + (1.0 + t_1)) * (tan(k) * (sin(k) * (pow(t, 3.0) / (l * l)))))) <= 5e+257) {
tmp = ((l / sin(k)) * ((2.0 * l) / (tan(k) * pow(t, 3.0)))) / (2.0 + t_1);
} else {
tmp = 2.0 * ((((l / k) / k) * (l / t)) * (cos(k) / pow(sin(k), 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) :: t_1
real(8) :: tmp
t_1 = (k / t) ** 2.0d0
if ((2.0d0 / ((1.0d0 + (1.0d0 + t_1)) * (tan(k) * (sin(k) * ((t ** 3.0d0) / (l * l)))))) <= 5d+257) then
tmp = ((l / sin(k)) * ((2.0d0 * l) / (tan(k) * (t ** 3.0d0)))) / (2.0d0 + t_1)
else
tmp = 2.0d0 * ((((l / k) / k) * (l / t)) * (cos(k) / (sin(k) ** 2.0d0)))
end if
code = tmp
end function
public static double code(double t, double l, double k) {
double t_1 = Math.pow((k / t), 2.0);
double tmp;
if ((2.0 / ((1.0 + (1.0 + t_1)) * (Math.tan(k) * (Math.sin(k) * (Math.pow(t, 3.0) / (l * l)))))) <= 5e+257) {
tmp = ((l / Math.sin(k)) * ((2.0 * l) / (Math.tan(k) * Math.pow(t, 3.0)))) / (2.0 + t_1);
} else {
tmp = 2.0 * ((((l / k) / k) * (l / t)) * (Math.cos(k) / Math.pow(Math.sin(k), 2.0)));
}
return tmp;
}
def code(t, l, k): t_1 = math.pow((k / t), 2.0) tmp = 0 if (2.0 / ((1.0 + (1.0 + t_1)) * (math.tan(k) * (math.sin(k) * (math.pow(t, 3.0) / (l * l)))))) <= 5e+257: tmp = ((l / math.sin(k)) * ((2.0 * l) / (math.tan(k) * math.pow(t, 3.0)))) / (2.0 + t_1) else: tmp = 2.0 * ((((l / k) / k) * (l / t)) * (math.cos(k) / math.pow(math.sin(k), 2.0))) return tmp
function code(t, l, k) t_1 = Float64(k / t) ^ 2.0 tmp = 0.0 if (Float64(2.0 / Float64(Float64(1.0 + Float64(1.0 + t_1)) * Float64(tan(k) * Float64(sin(k) * Float64((t ^ 3.0) / Float64(l * l)))))) <= 5e+257) tmp = Float64(Float64(Float64(l / sin(k)) * Float64(Float64(2.0 * l) / Float64(tan(k) * (t ^ 3.0)))) / Float64(2.0 + t_1)); else tmp = Float64(2.0 * Float64(Float64(Float64(Float64(l / k) / k) * Float64(l / t)) * Float64(cos(k) / (sin(k) ^ 2.0)))); end return tmp end
function tmp_2 = code(t, l, k) t_1 = (k / t) ^ 2.0; tmp = 0.0; if ((2.0 / ((1.0 + (1.0 + t_1)) * (tan(k) * (sin(k) * ((t ^ 3.0) / (l * l)))))) <= 5e+257) tmp = ((l / sin(k)) * ((2.0 * l) / (tan(k) * (t ^ 3.0)))) / (2.0 + t_1); else tmp = 2.0 * ((((l / k) / k) * (l / t)) * (cos(k) / (sin(k) ^ 2.0))); 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[(2.0 / N[(N[(1.0 + N[(1.0 + t$95$1), $MachinePrecision]), $MachinePrecision] * N[(N[Tan[k], $MachinePrecision] * N[(N[Sin[k], $MachinePrecision] * N[(N[Power[t, 3.0], $MachinePrecision] / N[(l * l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 5e+257], N[(N[(N[(l / N[Sin[k], $MachinePrecision]), $MachinePrecision] * N[(N[(2.0 * l), $MachinePrecision] / N[(N[Tan[k], $MachinePrecision] * N[Power[t, 3.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(2.0 + t$95$1), $MachinePrecision]), $MachinePrecision], N[(2.0 * N[(N[(N[(N[(l / k), $MachinePrecision] / k), $MachinePrecision] * N[(l / t), $MachinePrecision]), $MachinePrecision] * N[(N[Cos[k], $MachinePrecision] / N[Power[N[Sin[k], $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := {\left(\frac{k}{t}\right)}^{2}\\
\mathbf{if}\;\frac{2}{\left(1 + \left(1 + t_1\right)\right) \cdot \left(\tan k \cdot \left(\sin k \cdot \frac{{t}^{3}}{\ell \cdot \ell}\right)\right)} \leq 5 \cdot 10^{+257}:\\
\;\;\;\;\frac{\frac{\ell}{\sin k} \cdot \frac{2 \cdot \ell}{\tan k \cdot {t}^{3}}}{2 + t_1}\\
\mathbf{else}:\\
\;\;\;\;2 \cdot \left(\left(\frac{\frac{\ell}{k}}{k} \cdot \frac{\ell}{t}\right) \cdot \frac{\cos k}{{\sin k}^{2}}\right)\\
\end{array}
\end{array}
if (/.f64 2 (*.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))) < 5.00000000000000028e257Initial program 83.3%
associate-/r*83.3%
associate-*l*77.6%
sqr-neg77.6%
associate-*l*83.3%
*-commutative83.3%
sqr-neg83.3%
associate-*l/86.2%
associate-*r/86.0%
associate-/r/85.3%
Simplified85.3%
expm1-log1p-u61.7%
expm1-udef55.6%
associate-*l/56.3%
associate-*r*56.3%
Applied egg-rr56.3%
expm1-def62.5%
expm1-log1p86.0%
associate-*r*86.0%
times-frac91.7%
*-commutative91.7%
Simplified91.7%
if 5.00000000000000028e257 < (/.f64 2 (*.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 23.1%
associate-/r*23.1%
associate-*l*23.1%
sqr-neg23.1%
associate-*l*23.1%
*-commutative23.1%
sqr-neg23.1%
associate-*l/23.1%
associate-*r/23.1%
associate-/r/23.1%
Simplified23.1%
Taylor expanded in k around inf 58.1%
times-frac56.2%
unpow256.2%
unpow256.2%
Simplified56.2%
associate-*l/54.7%
Applied egg-rr54.7%
Taylor expanded in l around 0 58.1%
associate-*r*58.1%
times-frac58.6%
unpow258.6%
times-frac81.0%
unpow281.0%
associate-/r*83.2%
Simplified83.2%
Final simplification87.9%
(FPCore (t l k)
:precision binary64
(if (or (<= t -27000000.0) (not (<= t 4.8e-36)))
(/
(/ 2.0 (* (tan k) (pow (/ t (/ (cbrt l) (cbrt (/ (sin k) l)))) 3.0)))
(+ 1.0 (+ 1.0 (pow (/ k t) 2.0))))
(* 2.0 (* (* (/ (/ l k) k) (/ l t)) (/ (cos k) (pow (sin k) 2.0))))))
double code(double t, double l, double k) {
double tmp;
if ((t <= -27000000.0) || !(t <= 4.8e-36)) {
tmp = (2.0 / (tan(k) * pow((t / (cbrt(l) / cbrt((sin(k) / l)))), 3.0))) / (1.0 + (1.0 + pow((k / t), 2.0)));
} else {
tmp = 2.0 * ((((l / k) / k) * (l / t)) * (cos(k) / pow(sin(k), 2.0)));
}
return tmp;
}
public static double code(double t, double l, double k) {
double tmp;
if ((t <= -27000000.0) || !(t <= 4.8e-36)) {
tmp = (2.0 / (Math.tan(k) * Math.pow((t / (Math.cbrt(l) / Math.cbrt((Math.sin(k) / l)))), 3.0))) / (1.0 + (1.0 + Math.pow((k / t), 2.0)));
} else {
tmp = 2.0 * ((((l / k) / k) * (l / t)) * (Math.cos(k) / Math.pow(Math.sin(k), 2.0)));
}
return tmp;
}
function code(t, l, k) tmp = 0.0 if ((t <= -27000000.0) || !(t <= 4.8e-36)) tmp = Float64(Float64(2.0 / Float64(tan(k) * (Float64(t / Float64(cbrt(l) / cbrt(Float64(sin(k) / l)))) ^ 3.0))) / Float64(1.0 + Float64(1.0 + (Float64(k / t) ^ 2.0)))); else tmp = Float64(2.0 * Float64(Float64(Float64(Float64(l / k) / k) * Float64(l / t)) * Float64(cos(k) / (sin(k) ^ 2.0)))); end return tmp end
code[t_, l_, k_] := If[Or[LessEqual[t, -27000000.0], N[Not[LessEqual[t, 4.8e-36]], $MachinePrecision]], N[(N[(2.0 / N[(N[Tan[k], $MachinePrecision] * N[Power[N[(t / N[(N[Power[l, 1/3], $MachinePrecision] / N[Power[N[(N[Sin[k], $MachinePrecision] / l), $MachinePrecision], 1/3], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 3.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(1.0 + N[(1.0 + N[Power[N[(k / t), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(2.0 * N[(N[(N[(N[(l / k), $MachinePrecision] / k), $MachinePrecision] * N[(l / t), $MachinePrecision]), $MachinePrecision] * N[(N[Cos[k], $MachinePrecision] / N[Power[N[Sin[k], $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -27000000 \lor \neg \left(t \leq 4.8 \cdot 10^{-36}\right):\\
\;\;\;\;\frac{\frac{2}{\tan k \cdot {\left(\frac{t}{\frac{\sqrt[3]{\ell}}{\sqrt[3]{\frac{\sin k}{\ell}}}}\right)}^{3}}}{1 + \left(1 + {\left(\frac{k}{t}\right)}^{2}\right)}\\
\mathbf{else}:\\
\;\;\;\;2 \cdot \left(\left(\frac{\frac{\ell}{k}}{k} \cdot \frac{\ell}{t}\right) \cdot \frac{\cos k}{{\sin k}^{2}}\right)\\
\end{array}
\end{array}
if t < -2.7e7 or 4.8e-36 < t Initial program 71.3%
associate-/r*71.3%
+-commutative71.3%
Simplified71.3%
associate-/r/73.6%
add-cube-cbrt73.4%
pow373.4%
cbrt-div73.4%
rem-cbrt-cube75.3%
associate-/l*77.3%
Applied egg-rr77.3%
cbrt-div90.0%
Applied egg-rr90.0%
if -2.7e7 < t < 4.8e-36Initial program 40.5%
associate-/r*40.5%
associate-*l*40.5%
sqr-neg40.5%
associate-*l*40.5%
*-commutative40.5%
sqr-neg40.5%
associate-*l/40.5%
associate-*r/40.4%
associate-/r/39.6%
Simplified39.6%
Taylor expanded in k around inf 72.0%
times-frac70.2%
unpow270.2%
unpow270.2%
Simplified70.2%
associate-*l/68.8%
Applied egg-rr68.8%
Taylor expanded in l around 0 72.0%
associate-*r*72.0%
times-frac72.5%
unpow272.5%
times-frac90.1%
unpow290.1%
associate-/r*91.8%
Simplified91.8%
Final simplification90.9%
(FPCore (t l k)
:precision binary64
(let* ((t_1 (/ 2.0 (tan k))))
(if (<= t -1.5e+45)
(/ l (/ (* k (* k (pow t 3.0))) l))
(if (<= t 8.2e-39)
(* 2.0 (* (* (/ (/ l k) k) (/ l t)) (/ (cos k) (pow (sin k) 2.0))))
(if (<= t 1.02e+88)
(/
(/ t_1 (/ (pow t 3.0) (/ l (/ (sin k) l))))
(+ 2.0 (/ (* k k) (* t t))))
(/ (pow (/ (cbrt t_1) t) 3.0) (* (/ 2.0 l) (/ k l))))))))
double code(double t, double l, double k) {
double t_1 = 2.0 / tan(k);
double tmp;
if (t <= -1.5e+45) {
tmp = l / ((k * (k * pow(t, 3.0))) / l);
} else if (t <= 8.2e-39) {
tmp = 2.0 * ((((l / k) / k) * (l / t)) * (cos(k) / pow(sin(k), 2.0)));
} else if (t <= 1.02e+88) {
tmp = (t_1 / (pow(t, 3.0) / (l / (sin(k) / l)))) / (2.0 + ((k * k) / (t * t)));
} else {
tmp = pow((cbrt(t_1) / t), 3.0) / ((2.0 / l) * (k / l));
}
return tmp;
}
public static double code(double t, double l, double k) {
double t_1 = 2.0 / Math.tan(k);
double tmp;
if (t <= -1.5e+45) {
tmp = l / ((k * (k * Math.pow(t, 3.0))) / l);
} else if (t <= 8.2e-39) {
tmp = 2.0 * ((((l / k) / k) * (l / t)) * (Math.cos(k) / Math.pow(Math.sin(k), 2.0)));
} else if (t <= 1.02e+88) {
tmp = (t_1 / (Math.pow(t, 3.0) / (l / (Math.sin(k) / l)))) / (2.0 + ((k * k) / (t * t)));
} else {
tmp = Math.pow((Math.cbrt(t_1) / t), 3.0) / ((2.0 / l) * (k / l));
}
return tmp;
}
function code(t, l, k) t_1 = Float64(2.0 / tan(k)) tmp = 0.0 if (t <= -1.5e+45) tmp = Float64(l / Float64(Float64(k * Float64(k * (t ^ 3.0))) / l)); elseif (t <= 8.2e-39) tmp = Float64(2.0 * Float64(Float64(Float64(Float64(l / k) / k) * Float64(l / t)) * Float64(cos(k) / (sin(k) ^ 2.0)))); elseif (t <= 1.02e+88) tmp = Float64(Float64(t_1 / Float64((t ^ 3.0) / Float64(l / Float64(sin(k) / l)))) / Float64(2.0 + Float64(Float64(k * k) / Float64(t * t)))); else tmp = Float64((Float64(cbrt(t_1) / t) ^ 3.0) / Float64(Float64(2.0 / l) * Float64(k / l))); end return tmp end
code[t_, l_, k_] := Block[{t$95$1 = N[(2.0 / N[Tan[k], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -1.5e+45], N[(l / N[(N[(k * N[(k * N[Power[t, 3.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / l), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 8.2e-39], N[(2.0 * N[(N[(N[(N[(l / k), $MachinePrecision] / k), $MachinePrecision] * N[(l / t), $MachinePrecision]), $MachinePrecision] * N[(N[Cos[k], $MachinePrecision] / N[Power[N[Sin[k], $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.02e+88], N[(N[(t$95$1 / N[(N[Power[t, 3.0], $MachinePrecision] / N[(l / N[(N[Sin[k], $MachinePrecision] / l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(2.0 + N[(N[(k * k), $MachinePrecision] / N[(t * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[Power[N[(N[Power[t$95$1, 1/3], $MachinePrecision] / t), $MachinePrecision], 3.0], $MachinePrecision] / N[(N[(2.0 / l), $MachinePrecision] * N[(k / l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{2}{\tan k}\\
\mathbf{if}\;t \leq -1.5 \cdot 10^{+45}:\\
\;\;\;\;\frac{\ell}{\frac{k \cdot \left(k \cdot {t}^{3}\right)}{\ell}}\\
\mathbf{elif}\;t \leq 8.2 \cdot 10^{-39}:\\
\;\;\;\;2 \cdot \left(\left(\frac{\frac{\ell}{k}}{k} \cdot \frac{\ell}{t}\right) \cdot \frac{\cos k}{{\sin k}^{2}}\right)\\
\mathbf{elif}\;t \leq 1.02 \cdot 10^{+88}:\\
\;\;\;\;\frac{\frac{t_1}{\frac{{t}^{3}}{\frac{\ell}{\frac{\sin k}{\ell}}}}}{2 + \frac{k \cdot k}{t \cdot t}}\\
\mathbf{else}:\\
\;\;\;\;\frac{{\left(\frac{\sqrt[3]{t_1}}{t}\right)}^{3}}{\frac{2}{\ell} \cdot \frac{k}{\ell}}\\
\end{array}
\end{array}
if t < -1.50000000000000005e45Initial program 65.7%
associate-/r*65.7%
+-commutative65.7%
Simplified65.7%
associate-/r/65.5%
add-cube-cbrt65.4%
pow365.4%
cbrt-div65.5%
rem-cbrt-cube68.4%
associate-/l*68.4%
Applied egg-rr68.4%
cbrt-div89.4%
Applied egg-rr89.4%
cbrt-div95.1%
Applied egg-rr95.1%
Taylor expanded in k around 0 57.8%
unpow257.8%
associate-/l*64.5%
*-commutative64.5%
unpow264.5%
associate-*r*72.3%
Simplified72.3%
if -1.50000000000000005e45 < t < 8.2e-39Initial program 40.7%
associate-/r*40.7%
associate-*l*40.7%
sqr-neg40.7%
associate-*l*40.7%
*-commutative40.7%
sqr-neg40.7%
associate-*l/40.9%
associate-*r/40.9%
associate-/r/40.1%
Simplified40.1%
Taylor expanded in k around inf 69.9%
times-frac68.1%
unpow268.1%
unpow268.1%
Simplified68.1%
associate-*l/66.8%
Applied egg-rr66.8%
Taylor expanded in l around 0 69.9%
associate-*r*69.9%
times-frac70.3%
unpow270.3%
times-frac87.8%
unpow287.8%
associate-/r*90.1%
Simplified90.1%
if 8.2e-39 < t < 1.01999999999999998e88Initial program 80.5%
associate-/r*80.6%
associate-*l*77.8%
sqr-neg77.8%
associate-*l*80.6%
*-commutative80.6%
sqr-neg80.6%
associate-/r*80.6%
Simplified89.0%
*-un-lft-identity89.0%
associate-/l*94.2%
Applied egg-rr94.2%
Taylor expanded in k around 0 94.3%
unpow294.3%
unpow294.3%
Simplified94.3%
if 1.01999999999999998e88 < t Initial program 74.5%
associate-/r*74.5%
associate-*l*66.9%
sqr-neg66.9%
associate-*l*74.5%
*-commutative74.5%
sqr-neg74.5%
associate-/r*74.5%
Simplified74.4%
associate-/l/74.4%
associate-/r/74.5%
add-cube-cbrt74.5%
Applied egg-rr85.9%
div-inv85.9%
pow-plus85.9%
associate-/r/85.9%
associate-/r/85.9%
metadata-eval85.9%
Applied egg-rr85.9%
associate-*r/85.9%
associate-*l/85.9%
*-rgt-identity85.9%
cube-prod85.3%
rem-cube-cbrt85.4%
associate-/l*85.3%
*-commutative85.3%
Simplified85.3%
Taylor expanded in k around 0 84.7%
associate-*r/84.7%
unpow284.7%
times-frac90.1%
Simplified90.1%
Final simplification87.3%
(FPCore (t l k)
:precision binary64
(if (<= t -1.15e+45)
(/ l (/ (* k (* k (pow t 3.0))) l))
(if (<= t 2.3e-70)
(* 2.0 (* (/ (cos k) (pow (sin k) 2.0)) (* (/ l t) (/ l (* k k)))))
(/ (pow (/ (cbrt (/ 2.0 (tan k))) t) 3.0) (* (/ 2.0 l) (/ k l))))))
double code(double t, double l, double k) {
double tmp;
if (t <= -1.15e+45) {
tmp = l / ((k * (k * pow(t, 3.0))) / l);
} else if (t <= 2.3e-70) {
tmp = 2.0 * ((cos(k) / pow(sin(k), 2.0)) * ((l / t) * (l / (k * k))));
} else {
tmp = pow((cbrt((2.0 / tan(k))) / t), 3.0) / ((2.0 / l) * (k / l));
}
return tmp;
}
public static double code(double t, double l, double k) {
double tmp;
if (t <= -1.15e+45) {
tmp = l / ((k * (k * Math.pow(t, 3.0))) / l);
} else if (t <= 2.3e-70) {
tmp = 2.0 * ((Math.cos(k) / Math.pow(Math.sin(k), 2.0)) * ((l / t) * (l / (k * k))));
} else {
tmp = Math.pow((Math.cbrt((2.0 / Math.tan(k))) / t), 3.0) / ((2.0 / l) * (k / l));
}
return tmp;
}
function code(t, l, k) tmp = 0.0 if (t <= -1.15e+45) tmp = Float64(l / Float64(Float64(k * Float64(k * (t ^ 3.0))) / l)); elseif (t <= 2.3e-70) tmp = Float64(2.0 * Float64(Float64(cos(k) / (sin(k) ^ 2.0)) * Float64(Float64(l / t) * Float64(l / Float64(k * k))))); else tmp = Float64((Float64(cbrt(Float64(2.0 / tan(k))) / t) ^ 3.0) / Float64(Float64(2.0 / l) * Float64(k / l))); end return tmp end
code[t_, l_, k_] := If[LessEqual[t, -1.15e+45], N[(l / N[(N[(k * N[(k * N[Power[t, 3.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / l), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2.3e-70], N[(2.0 * N[(N[(N[Cos[k], $MachinePrecision] / N[Power[N[Sin[k], $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision] * N[(N[(l / t), $MachinePrecision] * N[(l / N[(k * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[Power[N[(N[Power[N[(2.0 / N[Tan[k], $MachinePrecision]), $MachinePrecision], 1/3], $MachinePrecision] / t), $MachinePrecision], 3.0], $MachinePrecision] / N[(N[(2.0 / l), $MachinePrecision] * N[(k / l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.15 \cdot 10^{+45}:\\
\;\;\;\;\frac{\ell}{\frac{k \cdot \left(k \cdot {t}^{3}\right)}{\ell}}\\
\mathbf{elif}\;t \leq 2.3 \cdot 10^{-70}:\\
\;\;\;\;2 \cdot \left(\frac{\cos k}{{\sin k}^{2}} \cdot \left(\frac{\ell}{t} \cdot \frac{\ell}{k \cdot k}\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{{\left(\frac{\sqrt[3]{\frac{2}{\tan k}}}{t}\right)}^{3}}{\frac{2}{\ell} \cdot \frac{k}{\ell}}\\
\end{array}
\end{array}
if t < -1.15000000000000006e45Initial program 65.7%
associate-/r*65.7%
+-commutative65.7%
Simplified65.7%
associate-/r/65.5%
add-cube-cbrt65.4%
pow365.4%
cbrt-div65.5%
rem-cbrt-cube68.4%
associate-/l*68.4%
Applied egg-rr68.4%
cbrt-div89.4%
Applied egg-rr89.4%
cbrt-div95.1%
Applied egg-rr95.1%
Taylor expanded in k around 0 57.8%
unpow257.8%
associate-/l*64.5%
*-commutative64.5%
unpow264.5%
associate-*r*72.3%
Simplified72.3%
if -1.15000000000000006e45 < t < 2.30000000000000001e-70Initial program 40.0%
associate-/r*40.0%
associate-*l*39.9%
sqr-neg39.9%
associate-*l*40.0%
*-commutative40.0%
sqr-neg40.0%
associate-/r*40.0%
Simplified40.2%
associate-/l/40.2%
associate-/r/40.0%
add-cube-cbrt39.9%
Applied egg-rr59.1%
Taylor expanded in k around inf 70.3%
associate-*r*70.3%
times-frac70.7%
unpow270.7%
times-frac88.1%
unpow288.1%
Simplified88.1%
if 2.30000000000000001e-70 < t Initial program 76.2%
associate-/r*76.2%
associate-*l*71.2%
sqr-neg71.2%
associate-*l*76.2%
*-commutative76.2%
sqr-neg76.2%
associate-/r*76.2%
Simplified79.8%
associate-/l/79.7%
associate-/r/76.2%
add-cube-cbrt76.1%
Applied egg-rr88.8%
div-inv88.8%
pow-plus88.8%
associate-/r/88.9%
associate-/r/88.8%
metadata-eval88.8%
Applied egg-rr88.8%
associate-*r/88.8%
associate-*l/88.8%
*-rgt-identity88.8%
cube-prod88.5%
rem-cube-cbrt88.7%
associate-/l*88.6%
*-commutative88.6%
Simplified88.6%
Taylor expanded in k around 0 79.1%
associate-*r/79.1%
unpow279.1%
times-frac85.3%
Simplified85.3%
Final simplification84.2%
(FPCore (t l k)
:precision binary64
(if (<= t -2.15e+45)
(/ l (/ (* k (* k (pow t 3.0))) l))
(if (<= t 2.3e-70)
(* 2.0 (* (* (/ (/ l k) k) (/ l t)) (/ (cos k) (pow (sin k) 2.0))))
(/ (pow (/ (cbrt (/ 2.0 (tan k))) t) 3.0) (* (/ 2.0 l) (/ k l))))))
double code(double t, double l, double k) {
double tmp;
if (t <= -2.15e+45) {
tmp = l / ((k * (k * pow(t, 3.0))) / l);
} else if (t <= 2.3e-70) {
tmp = 2.0 * ((((l / k) / k) * (l / t)) * (cos(k) / pow(sin(k), 2.0)));
} else {
tmp = pow((cbrt((2.0 / tan(k))) / t), 3.0) / ((2.0 / l) * (k / l));
}
return tmp;
}
public static double code(double t, double l, double k) {
double tmp;
if (t <= -2.15e+45) {
tmp = l / ((k * (k * Math.pow(t, 3.0))) / l);
} else if (t <= 2.3e-70) {
tmp = 2.0 * ((((l / k) / k) * (l / t)) * (Math.cos(k) / Math.pow(Math.sin(k), 2.0)));
} else {
tmp = Math.pow((Math.cbrt((2.0 / Math.tan(k))) / t), 3.0) / ((2.0 / l) * (k / l));
}
return tmp;
}
function code(t, l, k) tmp = 0.0 if (t <= -2.15e+45) tmp = Float64(l / Float64(Float64(k * Float64(k * (t ^ 3.0))) / l)); elseif (t <= 2.3e-70) tmp = Float64(2.0 * Float64(Float64(Float64(Float64(l / k) / k) * Float64(l / t)) * Float64(cos(k) / (sin(k) ^ 2.0)))); else tmp = Float64((Float64(cbrt(Float64(2.0 / tan(k))) / t) ^ 3.0) / Float64(Float64(2.0 / l) * Float64(k / l))); end return tmp end
code[t_, l_, k_] := If[LessEqual[t, -2.15e+45], N[(l / N[(N[(k * N[(k * N[Power[t, 3.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / l), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2.3e-70], N[(2.0 * N[(N[(N[(N[(l / k), $MachinePrecision] / k), $MachinePrecision] * N[(l / t), $MachinePrecision]), $MachinePrecision] * N[(N[Cos[k], $MachinePrecision] / N[Power[N[Sin[k], $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[Power[N[(N[Power[N[(2.0 / N[Tan[k], $MachinePrecision]), $MachinePrecision], 1/3], $MachinePrecision] / t), $MachinePrecision], 3.0], $MachinePrecision] / N[(N[(2.0 / l), $MachinePrecision] * N[(k / l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -2.15 \cdot 10^{+45}:\\
\;\;\;\;\frac{\ell}{\frac{k \cdot \left(k \cdot {t}^{3}\right)}{\ell}}\\
\mathbf{elif}\;t \leq 2.3 \cdot 10^{-70}:\\
\;\;\;\;2 \cdot \left(\left(\frac{\frac{\ell}{k}}{k} \cdot \frac{\ell}{t}\right) \cdot \frac{\cos k}{{\sin k}^{2}}\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{{\left(\frac{\sqrt[3]{\frac{2}{\tan k}}}{t}\right)}^{3}}{\frac{2}{\ell} \cdot \frac{k}{\ell}}\\
\end{array}
\end{array}
if t < -2.1500000000000002e45Initial program 65.7%
associate-/r*65.7%
+-commutative65.7%
Simplified65.7%
associate-/r/65.5%
add-cube-cbrt65.4%
pow365.4%
cbrt-div65.5%
rem-cbrt-cube68.4%
associate-/l*68.4%
Applied egg-rr68.4%
cbrt-div89.4%
Applied egg-rr89.4%
cbrt-div95.1%
Applied egg-rr95.1%
Taylor expanded in k around 0 57.8%
unpow257.8%
associate-/l*64.5%
*-commutative64.5%
unpow264.5%
associate-*r*72.3%
Simplified72.3%
if -2.1500000000000002e45 < t < 2.30000000000000001e-70Initial program 40.0%
associate-/r*40.0%
associate-*l*39.9%
sqr-neg39.9%
associate-*l*40.0%
*-commutative40.0%
sqr-neg40.0%
associate-*l/40.2%
associate-*r/40.1%
associate-/r/39.3%
Simplified39.3%
Taylor expanded in k around inf 70.3%
times-frac68.5%
unpow268.5%
unpow268.5%
Simplified68.5%
associate-*l/67.1%
Applied egg-rr67.1%
Taylor expanded in l around 0 70.3%
associate-*r*70.3%
times-frac70.7%
unpow270.7%
times-frac88.1%
unpow288.1%
associate-/r*90.4%
Simplified90.4%
if 2.30000000000000001e-70 < t Initial program 76.2%
associate-/r*76.2%
associate-*l*71.2%
sqr-neg71.2%
associate-*l*76.2%
*-commutative76.2%
sqr-neg76.2%
associate-/r*76.2%
Simplified79.8%
associate-/l/79.7%
associate-/r/76.2%
add-cube-cbrt76.1%
Applied egg-rr88.8%
div-inv88.8%
pow-plus88.8%
associate-/r/88.9%
associate-/r/88.8%
metadata-eval88.8%
Applied egg-rr88.8%
associate-*r/88.8%
associate-*l/88.8%
*-rgt-identity88.8%
cube-prod88.5%
rem-cube-cbrt88.7%
associate-/l*88.6%
*-commutative88.6%
Simplified88.6%
Taylor expanded in k around 0 79.1%
associate-*r/79.1%
unpow279.1%
times-frac85.3%
Simplified85.3%
Final simplification85.3%
(FPCore (t l k)
:precision binary64
(if (<= t -1.5e-18)
(/ l (/ (* k (* k (pow t 3.0))) l))
(if (<= t 6.8e-71)
(* 2.0 (/ (* (/ (/ l k) k) (/ l t)) (* k k)))
(/ (pow (/ (cbrt (/ 2.0 (tan k))) t) 3.0) (* (/ 2.0 l) (/ k l))))))
double code(double t, double l, double k) {
double tmp;
if (t <= -1.5e-18) {
tmp = l / ((k * (k * pow(t, 3.0))) / l);
} else if (t <= 6.8e-71) {
tmp = 2.0 * ((((l / k) / k) * (l / t)) / (k * k));
} else {
tmp = pow((cbrt((2.0 / tan(k))) / t), 3.0) / ((2.0 / l) * (k / l));
}
return tmp;
}
public static double code(double t, double l, double k) {
double tmp;
if (t <= -1.5e-18) {
tmp = l / ((k * (k * Math.pow(t, 3.0))) / l);
} else if (t <= 6.8e-71) {
tmp = 2.0 * ((((l / k) / k) * (l / t)) / (k * k));
} else {
tmp = Math.pow((Math.cbrt((2.0 / Math.tan(k))) / t), 3.0) / ((2.0 / l) * (k / l));
}
return tmp;
}
function code(t, l, k) tmp = 0.0 if (t <= -1.5e-18) tmp = Float64(l / Float64(Float64(k * Float64(k * (t ^ 3.0))) / l)); elseif (t <= 6.8e-71) tmp = Float64(2.0 * Float64(Float64(Float64(Float64(l / k) / k) * Float64(l / t)) / Float64(k * k))); else tmp = Float64((Float64(cbrt(Float64(2.0 / tan(k))) / t) ^ 3.0) / Float64(Float64(2.0 / l) * Float64(k / l))); end return tmp end
code[t_, l_, k_] := If[LessEqual[t, -1.5e-18], N[(l / N[(N[(k * N[(k * N[Power[t, 3.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / l), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 6.8e-71], N[(2.0 * N[(N[(N[(N[(l / k), $MachinePrecision] / k), $MachinePrecision] * N[(l / t), $MachinePrecision]), $MachinePrecision] / N[(k * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[Power[N[(N[Power[N[(2.0 / N[Tan[k], $MachinePrecision]), $MachinePrecision], 1/3], $MachinePrecision] / t), $MachinePrecision], 3.0], $MachinePrecision] / N[(N[(2.0 / l), $MachinePrecision] * N[(k / l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.5 \cdot 10^{-18}:\\
\;\;\;\;\frac{\ell}{\frac{k \cdot \left(k \cdot {t}^{3}\right)}{\ell}}\\
\mathbf{elif}\;t \leq 6.8 \cdot 10^{-71}:\\
\;\;\;\;2 \cdot \frac{\frac{\frac{\ell}{k}}{k} \cdot \frac{\ell}{t}}{k \cdot k}\\
\mathbf{else}:\\
\;\;\;\;\frac{{\left(\frac{\sqrt[3]{\frac{2}{\tan k}}}{t}\right)}^{3}}{\frac{2}{\ell} \cdot \frac{k}{\ell}}\\
\end{array}
\end{array}
if t < -1.49999999999999991e-18Initial program 64.6%
associate-/r*64.6%
+-commutative64.6%
Simplified64.6%
associate-/r/64.9%
add-cube-cbrt64.8%
pow364.8%
cbrt-div64.8%
rem-cbrt-cube67.2%
associate-/l*68.2%
Applied egg-rr68.2%
cbrt-div86.7%
Applied egg-rr86.7%
cbrt-div91.3%
Applied egg-rr91.3%
Taylor expanded in k around 0 56.4%
unpow256.4%
associate-/l*61.9%
*-commutative61.9%
unpow261.9%
associate-*r*69.8%
Simplified69.8%
if -1.49999999999999991e-18 < t < 6.80000000000000007e-71Initial program 37.8%
associate-/r*37.8%
associate-*l*37.8%
sqr-neg37.8%
associate-*l*37.8%
*-commutative37.8%
sqr-neg37.8%
associate-*l/37.8%
associate-*r/37.8%
associate-/r/36.9%
Simplified36.9%
Taylor expanded in k around inf 72.1%
times-frac70.1%
unpow270.1%
unpow270.1%
Simplified70.1%
associate-*l/68.6%
Applied egg-rr68.6%
Taylor expanded in k around 0 60.9%
unpow260.9%
times-frac77.4%
unpow277.4%
associate-/r*77.4%
Simplified77.4%
if 6.80000000000000007e-71 < t Initial program 76.2%
associate-/r*76.2%
associate-*l*71.2%
sqr-neg71.2%
associate-*l*76.2%
*-commutative76.2%
sqr-neg76.2%
associate-/r*76.2%
Simplified79.8%
associate-/l/79.7%
associate-/r/76.2%
add-cube-cbrt76.1%
Applied egg-rr88.8%
div-inv88.8%
pow-plus88.8%
associate-/r/88.9%
associate-/r/88.8%
metadata-eval88.8%
Applied egg-rr88.8%
associate-*r/88.8%
associate-*l/88.8%
*-rgt-identity88.8%
cube-prod88.5%
rem-cube-cbrt88.7%
associate-/l*88.6%
*-commutative88.6%
Simplified88.6%
Taylor expanded in k around 0 79.1%
associate-*r/79.1%
unpow279.1%
times-frac85.3%
Simplified85.3%
Final simplification78.1%
(FPCore (t l k) :precision binary64 (if (<= k 1600000000000.0) (/ (pow (/ (cbrt (/ 2.0 (tan k))) t) 3.0) (* (/ 2.0 l) (/ k l))) (* 2.0 (* (* l (/ l (* k k))) (/ (cos k) (* t (pow (sin k) 2.0)))))))
double code(double t, double l, double k) {
double tmp;
if (k <= 1600000000000.0) {
tmp = pow((cbrt((2.0 / tan(k))) / t), 3.0) / ((2.0 / l) * (k / l));
} else {
tmp = 2.0 * ((l * (l / (k * k))) * (cos(k) / (t * pow(sin(k), 2.0))));
}
return tmp;
}
public static double code(double t, double l, double k) {
double tmp;
if (k <= 1600000000000.0) {
tmp = Math.pow((Math.cbrt((2.0 / Math.tan(k))) / t), 3.0) / ((2.0 / l) * (k / l));
} else {
tmp = 2.0 * ((l * (l / (k * k))) * (Math.cos(k) / (t * Math.pow(Math.sin(k), 2.0))));
}
return tmp;
}
function code(t, l, k) tmp = 0.0 if (k <= 1600000000000.0) tmp = Float64((Float64(cbrt(Float64(2.0 / tan(k))) / t) ^ 3.0) / Float64(Float64(2.0 / l) * Float64(k / l))); else tmp = Float64(2.0 * Float64(Float64(l * Float64(l / Float64(k * k))) * Float64(cos(k) / Float64(t * (sin(k) ^ 2.0))))); end return tmp end
code[t_, l_, k_] := If[LessEqual[k, 1600000000000.0], N[(N[Power[N[(N[Power[N[(2.0 / N[Tan[k], $MachinePrecision]), $MachinePrecision], 1/3], $MachinePrecision] / t), $MachinePrecision], 3.0], $MachinePrecision] / N[(N[(2.0 / l), $MachinePrecision] * N[(k / l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(2.0 * N[(N[(l * N[(l / N[(k * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(N[Cos[k], $MachinePrecision] / N[(t * N[Power[N[Sin[k], $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;k \leq 1600000000000:\\
\;\;\;\;\frac{{\left(\frac{\sqrt[3]{\frac{2}{\tan k}}}{t}\right)}^{3}}{\frac{2}{\ell} \cdot \frac{k}{\ell}}\\
\mathbf{else}:\\
\;\;\;\;2 \cdot \left(\left(\ell \cdot \frac{\ell}{k \cdot k}\right) \cdot \frac{\cos k}{t \cdot {\sin k}^{2}}\right)\\
\end{array}
\end{array}
if k < 1.6e12Initial program 56.1%
associate-/r*56.1%
associate-*l*52.2%
sqr-neg52.2%
associate-*l*56.1%
*-commutative56.1%
sqr-neg56.1%
associate-/r*56.2%
Simplified57.7%
associate-/l/57.6%
associate-/r/56.1%
add-cube-cbrt56.1%
Applied egg-rr72.0%
div-inv72.0%
pow-plus72.0%
associate-/r/72.0%
associate-/r/72.0%
metadata-eval72.0%
Applied egg-rr72.0%
associate-*r/72.0%
associate-*l/72.0%
*-rgt-identity72.0%
cube-prod66.9%
rem-cube-cbrt67.0%
associate-/l*64.9%
*-commutative64.9%
Simplified64.9%
Taylor expanded in k around 0 61.0%
associate-*r/61.1%
unpow261.1%
times-frac68.8%
Simplified68.8%
if 1.6e12 < k Initial program 57.9%
associate-/r*57.9%
associate-*l*58.0%
sqr-neg58.0%
associate-*l*57.9%
*-commutative57.9%
sqr-neg57.9%
associate-*l/57.9%
associate-*r/57.9%
associate-/r/57.9%
Simplified57.9%
Taylor expanded in k around inf 72.0%
times-frac70.3%
unpow270.3%
unpow270.3%
Simplified70.3%
Taylor expanded in l around 0 70.3%
unpow270.3%
associate-*r/81.7%
unpow281.7%
Simplified81.7%
Final simplification71.5%
(FPCore (t l k)
:precision binary64
(if (<= t -1.3e-18)
(/ l (/ (* k (* k (pow t 3.0))) l))
(if (<= t 8.8e-107)
(* 2.0 (/ (* (/ (/ l k) k) (/ l t)) (* k k)))
(/ (pow (/ l k) 2.0) (pow t 3.0)))))
double code(double t, double l, double k) {
double tmp;
if (t <= -1.3e-18) {
tmp = l / ((k * (k * pow(t, 3.0))) / l);
} else if (t <= 8.8e-107) {
tmp = 2.0 * ((((l / k) / k) * (l / t)) / (k * k));
} else {
tmp = pow((l / k), 2.0) / pow(t, 3.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.3d-18)) then
tmp = l / ((k * (k * (t ** 3.0d0))) / l)
else if (t <= 8.8d-107) then
tmp = 2.0d0 * ((((l / k) / k) * (l / t)) / (k * k))
else
tmp = ((l / k) ** 2.0d0) / (t ** 3.0d0)
end if
code = tmp
end function
public static double code(double t, double l, double k) {
double tmp;
if (t <= -1.3e-18) {
tmp = l / ((k * (k * Math.pow(t, 3.0))) / l);
} else if (t <= 8.8e-107) {
tmp = 2.0 * ((((l / k) / k) * (l / t)) / (k * k));
} else {
tmp = Math.pow((l / k), 2.0) / Math.pow(t, 3.0);
}
return tmp;
}
def code(t, l, k): tmp = 0 if t <= -1.3e-18: tmp = l / ((k * (k * math.pow(t, 3.0))) / l) elif t <= 8.8e-107: tmp = 2.0 * ((((l / k) / k) * (l / t)) / (k * k)) else: tmp = math.pow((l / k), 2.0) / math.pow(t, 3.0) return tmp
function code(t, l, k) tmp = 0.0 if (t <= -1.3e-18) tmp = Float64(l / Float64(Float64(k * Float64(k * (t ^ 3.0))) / l)); elseif (t <= 8.8e-107) tmp = Float64(2.0 * Float64(Float64(Float64(Float64(l / k) / k) * Float64(l / t)) / Float64(k * k))); else tmp = Float64((Float64(l / k) ^ 2.0) / (t ^ 3.0)); end return tmp end
function tmp_2 = code(t, l, k) tmp = 0.0; if (t <= -1.3e-18) tmp = l / ((k * (k * (t ^ 3.0))) / l); elseif (t <= 8.8e-107) tmp = 2.0 * ((((l / k) / k) * (l / t)) / (k * k)); else tmp = ((l / k) ^ 2.0) / (t ^ 3.0); end tmp_2 = tmp; end
code[t_, l_, k_] := If[LessEqual[t, -1.3e-18], N[(l / N[(N[(k * N[(k * N[Power[t, 3.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / l), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 8.8e-107], N[(2.0 * N[(N[(N[(N[(l / k), $MachinePrecision] / k), $MachinePrecision] * N[(l / t), $MachinePrecision]), $MachinePrecision] / N[(k * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[Power[N[(l / k), $MachinePrecision], 2.0], $MachinePrecision] / N[Power[t, 3.0], $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.3 \cdot 10^{-18}:\\
\;\;\;\;\frac{\ell}{\frac{k \cdot \left(k \cdot {t}^{3}\right)}{\ell}}\\
\mathbf{elif}\;t \leq 8.8 \cdot 10^{-107}:\\
\;\;\;\;2 \cdot \frac{\frac{\frac{\ell}{k}}{k} \cdot \frac{\ell}{t}}{k \cdot k}\\
\mathbf{else}:\\
\;\;\;\;\frac{{\left(\frac{\ell}{k}\right)}^{2}}{{t}^{3}}\\
\end{array}
\end{array}
if t < -1.3e-18Initial program 64.6%
associate-/r*64.6%
+-commutative64.6%
Simplified64.6%
associate-/r/64.9%
add-cube-cbrt64.8%
pow364.8%
cbrt-div64.8%
rem-cbrt-cube67.2%
associate-/l*68.2%
Applied egg-rr68.2%
cbrt-div86.7%
Applied egg-rr86.7%
cbrt-div91.3%
Applied egg-rr91.3%
Taylor expanded in k around 0 56.4%
unpow256.4%
associate-/l*61.9%
*-commutative61.9%
unpow261.9%
associate-*r*69.8%
Simplified69.8%
if -1.3e-18 < t < 8.8000000000000005e-107Initial program 35.0%
associate-/r*35.0%
associate-*l*35.0%
sqr-neg35.0%
associate-*l*35.0%
*-commutative35.0%
sqr-neg35.0%
associate-*l/35.0%
associate-*r/34.9%
associate-/r/34.0%
Simplified34.0%
Taylor expanded in k around inf 71.0%
times-frac68.8%
unpow268.8%
unpow268.8%
Simplified68.8%
associate-*l/67.1%
Applied egg-rr67.1%
Taylor expanded in k around 0 59.5%
unpow259.5%
times-frac77.7%
unpow277.7%
associate-/r*77.7%
Simplified77.7%
if 8.8000000000000005e-107 < t Initial program 74.8%
associate-/r*74.8%
+-commutative74.8%
Simplified74.8%
associate-/r/77.9%
add-cube-cbrt77.7%
pow377.7%
cbrt-div77.6%
rem-cbrt-cube78.9%
associate-/l*83.0%
Applied egg-rr83.0%
cbrt-div89.2%
Applied egg-rr89.2%
Taylor expanded in k around 0 67.2%
associate-/r*67.3%
unpow267.3%
unpow267.3%
times-frac78.9%
unpow278.9%
Simplified78.9%
Final simplification76.3%
(FPCore (t l k) :precision binary64 (if (or (<= t -1.25e-65) (not (<= t 8.8e-107))) (* (/ l (* k k)) (/ l (pow t 3.0))) (* 2.0 (/ (* (/ (/ l k) k) (/ l t)) (* k k)))))
double code(double t, double l, double k) {
double tmp;
if ((t <= -1.25e-65) || !(t <= 8.8e-107)) {
tmp = (l / (k * k)) * (l / pow(t, 3.0));
} else {
tmp = 2.0 * ((((l / k) / k) * (l / t)) / (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 <= (-1.25d-65)) .or. (.not. (t <= 8.8d-107))) then
tmp = (l / (k * k)) * (l / (t ** 3.0d0))
else
tmp = 2.0d0 * ((((l / k) / k) * (l / t)) / (k * k))
end if
code = tmp
end function
public static double code(double t, double l, double k) {
double tmp;
if ((t <= -1.25e-65) || !(t <= 8.8e-107)) {
tmp = (l / (k * k)) * (l / Math.pow(t, 3.0));
} else {
tmp = 2.0 * ((((l / k) / k) * (l / t)) / (k * k));
}
return tmp;
}
def code(t, l, k): tmp = 0 if (t <= -1.25e-65) or not (t <= 8.8e-107): tmp = (l / (k * k)) * (l / math.pow(t, 3.0)) else: tmp = 2.0 * ((((l / k) / k) * (l / t)) / (k * k)) return tmp
function code(t, l, k) tmp = 0.0 if ((t <= -1.25e-65) || !(t <= 8.8e-107)) tmp = Float64(Float64(l / Float64(k * k)) * Float64(l / (t ^ 3.0))); else tmp = Float64(2.0 * Float64(Float64(Float64(Float64(l / k) / k) * Float64(l / t)) / Float64(k * k))); end return tmp end
function tmp_2 = code(t, l, k) tmp = 0.0; if ((t <= -1.25e-65) || ~((t <= 8.8e-107))) tmp = (l / (k * k)) * (l / (t ^ 3.0)); else tmp = 2.0 * ((((l / k) / k) * (l / t)) / (k * k)); end tmp_2 = tmp; end
code[t_, l_, k_] := If[Or[LessEqual[t, -1.25e-65], N[Not[LessEqual[t, 8.8e-107]], $MachinePrecision]], N[(N[(l / N[(k * k), $MachinePrecision]), $MachinePrecision] * N[(l / N[Power[t, 3.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(2.0 * N[(N[(N[(N[(l / k), $MachinePrecision] / k), $MachinePrecision] * N[(l / t), $MachinePrecision]), $MachinePrecision] / N[(k * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.25 \cdot 10^{-65} \lor \neg \left(t \leq 8.8 \cdot 10^{-107}\right):\\
\;\;\;\;\frac{\ell}{k \cdot k} \cdot \frac{\ell}{{t}^{3}}\\
\mathbf{else}:\\
\;\;\;\;2 \cdot \frac{\frac{\frac{\ell}{k}}{k} \cdot \frac{\ell}{t}}{k \cdot k}\\
\end{array}
\end{array}
if t < -1.24999999999999996e-65 or 8.8000000000000005e-107 < t Initial program 70.2%
associate-/r*70.2%
associate-*l*65.2%
sqr-neg65.2%
associate-*l*70.2%
*-commutative70.2%
sqr-neg70.2%
associate-*l/72.7%
associate-*r/72.6%
associate-/r/72.6%
Simplified72.6%
Taylor expanded in k around 0 62.7%
unpow262.7%
*-commutative62.7%
times-frac67.1%
unpow267.1%
Simplified67.1%
if -1.24999999999999996e-65 < t < 8.8000000000000005e-107Initial program 33.3%
associate-/r*33.3%
associate-*l*33.3%
sqr-neg33.3%
associate-*l*33.3%
*-commutative33.3%
sqr-neg33.3%
associate-*l/33.3%
associate-*r/33.3%
associate-/r/32.2%
Simplified32.2%
Taylor expanded in k around inf 72.0%
times-frac69.6%
unpow269.6%
unpow269.6%
Simplified69.6%
associate-*l/67.8%
Applied egg-rr67.8%
Taylor expanded in k around 0 59.6%
unpow259.6%
times-frac79.1%
unpow279.1%
associate-/r*79.1%
Simplified79.1%
Final simplification71.6%
(FPCore (t l k) :precision binary64 (if (or (<= t -1.1e-18) (not (<= t 4.7e-71))) (/ l (/ (* k (* k (pow t 3.0))) l)) (* 2.0 (/ (* (/ (/ l k) k) (/ l t)) (* k k)))))
double code(double t, double l, double k) {
double tmp;
if ((t <= -1.1e-18) || !(t <= 4.7e-71)) {
tmp = l / ((k * (k * pow(t, 3.0))) / l);
} else {
tmp = 2.0 * ((((l / k) / k) * (l / t)) / (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 <= (-1.1d-18)) .or. (.not. (t <= 4.7d-71))) then
tmp = l / ((k * (k * (t ** 3.0d0))) / l)
else
tmp = 2.0d0 * ((((l / k) / k) * (l / t)) / (k * k))
end if
code = tmp
end function
public static double code(double t, double l, double k) {
double tmp;
if ((t <= -1.1e-18) || !(t <= 4.7e-71)) {
tmp = l / ((k * (k * Math.pow(t, 3.0))) / l);
} else {
tmp = 2.0 * ((((l / k) / k) * (l / t)) / (k * k));
}
return tmp;
}
def code(t, l, k): tmp = 0 if (t <= -1.1e-18) or not (t <= 4.7e-71): tmp = l / ((k * (k * math.pow(t, 3.0))) / l) else: tmp = 2.0 * ((((l / k) / k) * (l / t)) / (k * k)) return tmp
function code(t, l, k) tmp = 0.0 if ((t <= -1.1e-18) || !(t <= 4.7e-71)) tmp = Float64(l / Float64(Float64(k * Float64(k * (t ^ 3.0))) / l)); else tmp = Float64(2.0 * Float64(Float64(Float64(Float64(l / k) / k) * Float64(l / t)) / Float64(k * k))); end return tmp end
function tmp_2 = code(t, l, k) tmp = 0.0; if ((t <= -1.1e-18) || ~((t <= 4.7e-71))) tmp = l / ((k * (k * (t ^ 3.0))) / l); else tmp = 2.0 * ((((l / k) / k) * (l / t)) / (k * k)); end tmp_2 = tmp; end
code[t_, l_, k_] := If[Or[LessEqual[t, -1.1e-18], N[Not[LessEqual[t, 4.7e-71]], $MachinePrecision]], N[(l / N[(N[(k * N[(k * N[Power[t, 3.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / l), $MachinePrecision]), $MachinePrecision], N[(2.0 * N[(N[(N[(N[(l / k), $MachinePrecision] / k), $MachinePrecision] * N[(l / t), $MachinePrecision]), $MachinePrecision] / N[(k * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.1 \cdot 10^{-18} \lor \neg \left(t \leq 4.7 \cdot 10^{-71}\right):\\
\;\;\;\;\frac{\ell}{\frac{k \cdot \left(k \cdot {t}^{3}\right)}{\ell}}\\
\mathbf{else}:\\
\;\;\;\;2 \cdot \frac{\frac{\frac{\ell}{k}}{k} \cdot \frac{\ell}{t}}{k \cdot k}\\
\end{array}
\end{array}
if t < -1.0999999999999999e-18 or 4.69999999999999996e-71 < t Initial program 70.8%
associate-/r*70.8%
+-commutative70.8%
Simplified70.8%
associate-/r/72.9%
add-cube-cbrt72.7%
pow372.7%
cbrt-div72.7%
rem-cbrt-cube74.5%
associate-/l*77.0%
Applied egg-rr77.0%
cbrt-div88.7%
Applied egg-rr88.7%
cbrt-div91.2%
Applied egg-rr91.2%
Taylor expanded in k around 0 62.3%
unpow262.3%
associate-/l*67.6%
*-commutative67.6%
unpow267.6%
associate-*r*74.5%
Simplified74.5%
if -1.0999999999999999e-18 < t < 4.69999999999999996e-71Initial program 38.2%
associate-/r*38.2%
associate-*l*38.2%
sqr-neg38.2%
associate-*l*38.2%
*-commutative38.2%
sqr-neg38.2%
associate-*l/38.1%
associate-*r/38.1%
associate-/r/37.2%
Simplified37.2%
Taylor expanded in k around inf 71.9%
times-frac69.9%
unpow269.9%
unpow269.9%
Simplified69.9%
associate-*l/68.4%
Applied egg-rr68.4%
Taylor expanded in k around 0 60.6%
unpow260.6%
times-frac77.2%
unpow277.2%
associate-/r*77.2%
Simplified77.2%
Final simplification75.7%
(FPCore (t l k) :precision binary64 (if (<= k 2.6e+16) (* 2.0 (/ (* (/ (/ l k) k) (/ l t)) (* k k))) (* 2.0 (* (/ l (/ (* t k) l)) (/ -0.16666666666666666 k)))))
double code(double t, double l, double k) {
double tmp;
if (k <= 2.6e+16) {
tmp = 2.0 * ((((l / k) / k) * (l / t)) / (k * k));
} else {
tmp = 2.0 * ((l / ((t * k) / l)) * (-0.16666666666666666 / 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 (k <= 2.6d+16) then
tmp = 2.0d0 * ((((l / k) / k) * (l / t)) / (k * k))
else
tmp = 2.0d0 * ((l / ((t * k) / l)) * ((-0.16666666666666666d0) / k))
end if
code = tmp
end function
public static double code(double t, double l, double k) {
double tmp;
if (k <= 2.6e+16) {
tmp = 2.0 * ((((l / k) / k) * (l / t)) / (k * k));
} else {
tmp = 2.0 * ((l / ((t * k) / l)) * (-0.16666666666666666 / k));
}
return tmp;
}
def code(t, l, k): tmp = 0 if k <= 2.6e+16: tmp = 2.0 * ((((l / k) / k) * (l / t)) / (k * k)) else: tmp = 2.0 * ((l / ((t * k) / l)) * (-0.16666666666666666 / k)) return tmp
function code(t, l, k) tmp = 0.0 if (k <= 2.6e+16) tmp = Float64(2.0 * Float64(Float64(Float64(Float64(l / k) / k) * Float64(l / t)) / Float64(k * k))); else tmp = Float64(2.0 * Float64(Float64(l / Float64(Float64(t * k) / l)) * Float64(-0.16666666666666666 / k))); end return tmp end
function tmp_2 = code(t, l, k) tmp = 0.0; if (k <= 2.6e+16) tmp = 2.0 * ((((l / k) / k) * (l / t)) / (k * k)); else tmp = 2.0 * ((l / ((t * k) / l)) * (-0.16666666666666666 / k)); end tmp_2 = tmp; end
code[t_, l_, k_] := If[LessEqual[k, 2.6e+16], N[(2.0 * N[(N[(N[(N[(l / k), $MachinePrecision] / k), $MachinePrecision] * N[(l / t), $MachinePrecision]), $MachinePrecision] / N[(k * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(2.0 * N[(N[(l / N[(N[(t * k), $MachinePrecision] / l), $MachinePrecision]), $MachinePrecision] * N[(-0.16666666666666666 / k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;k \leq 2.6 \cdot 10^{+16}:\\
\;\;\;\;2 \cdot \frac{\frac{\frac{\ell}{k}}{k} \cdot \frac{\ell}{t}}{k \cdot k}\\
\mathbf{else}:\\
\;\;\;\;2 \cdot \left(\frac{\ell}{\frac{t \cdot k}{\ell}} \cdot \frac{-0.16666666666666666}{k}\right)\\
\end{array}
\end{array}
if k < 2.6e16Initial program 56.1%
associate-/r*56.1%
associate-*l*52.1%
sqr-neg52.1%
associate-*l*56.1%
*-commutative56.1%
sqr-neg56.1%
associate-*l/58.1%
associate-*r/57.9%
associate-/r/57.5%
Simplified57.5%
Taylor expanded in k around inf 58.4%
times-frac58.3%
unpow258.3%
unpow258.3%
Simplified58.3%
associate-*l/57.0%
Applied egg-rr57.0%
Taylor expanded in k around 0 54.5%
unpow254.5%
times-frac64.7%
unpow264.7%
associate-/r*64.7%
Simplified64.7%
if 2.6e16 < k Initial program 58.2%
associate-/r*58.2%
associate-*l*58.3%
sqr-neg58.3%
associate-*l*58.2%
*-commutative58.2%
sqr-neg58.2%
associate-*l/58.2%
associate-*r/58.2%
associate-/r/58.2%
Simplified58.2%
Taylor expanded in k around inf 70.9%
times-frac69.2%
unpow269.2%
unpow269.2%
Simplified69.2%
Taylor expanded in k around 0 59.1%
associate--l+59.1%
fma-def59.1%
unpow259.1%
times-frac55.3%
unpow255.3%
*-commutative55.3%
associate-/r*55.0%
unpow255.0%
associate-/l*55.1%
associate-*r/55.1%
times-frac55.1%
unpow255.1%
unpow255.1%
associate-/l*61.2%
Simplified61.2%
Taylor expanded in k around inf 55.1%
distribute-rgt-out--59.3%
unpow259.3%
associate-/l*65.4%
metadata-eval65.4%
unpow265.4%
times-frac60.9%
associate-/l/61.1%
Simplified61.1%
Taylor expanded in k around 0 69.6%
Final simplification65.6%
(FPCore (t l k) :precision binary64 (* 2.0 (* -0.16666666666666666 (/ (* l l) (* k (* t k))))))
double code(double t, double l, double k) {
return 2.0 * (-0.16666666666666666 * ((l * l) / (k * (t * 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 * ((-0.16666666666666666d0) * ((l * l) / (k * (t * k))))
end function
public static double code(double t, double l, double k) {
return 2.0 * (-0.16666666666666666 * ((l * l) / (k * (t * k))));
}
def code(t, l, k): return 2.0 * (-0.16666666666666666 * ((l * l) / (k * (t * k))))
function code(t, l, k) return Float64(2.0 * Float64(-0.16666666666666666 * Float64(Float64(l * l) / Float64(k * Float64(t * k))))) end
function tmp = code(t, l, k) tmp = 2.0 * (-0.16666666666666666 * ((l * l) / (k * (t * k)))); end
code[t_, l_, k_] := N[(2.0 * N[(-0.16666666666666666 * N[(N[(l * l), $MachinePrecision] / N[(k * N[(t * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
2 \cdot \left(-0.16666666666666666 \cdot \frac{\ell \cdot \ell}{k \cdot \left(t \cdot k\right)}\right)
\end{array}
Initial program 56.5%
associate-/r*56.5%
associate-*l*53.3%
sqr-neg53.3%
associate-*l*56.5%
*-commutative56.5%
sqr-neg56.5%
associate-*l/58.1%
associate-*r/58.0%
associate-/r/57.6%
Simplified57.6%
Taylor expanded in k around inf 60.9%
times-frac60.4%
unpow260.4%
unpow260.4%
Simplified60.4%
Taylor expanded in k around 0 31.0%
associate--l+31.0%
fma-def31.0%
unpow231.0%
times-frac30.7%
unpow230.7%
*-commutative30.7%
associate-/r*31.0%
unpow231.0%
associate-/l*31.6%
associate-*r/31.6%
times-frac33.1%
unpow233.1%
unpow233.1%
associate-/l*34.8%
Simplified34.8%
Taylor expanded in k around inf 29.6%
distribute-rgt-out--31.3%
unpow231.3%
associate-/l*32.9%
metadata-eval32.9%
unpow232.9%
times-frac34.6%
associate-/l/34.8%
Simplified34.8%
Taylor expanded in l around 0 32.0%
unpow232.0%
unpow232.0%
associate-*l*33.3%
Simplified33.3%
Final simplification33.3%
(FPCore (t l k) :precision binary64 (* 2.0 (* (/ -0.16666666666666666 k) (* (/ l k) (/ l t)))))
double code(double t, double l, double k) {
return 2.0 * ((-0.16666666666666666 / k) * ((l / k) * (l / t)));
}
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 * (((-0.16666666666666666d0) / k) * ((l / k) * (l / t)))
end function
public static double code(double t, double l, double k) {
return 2.0 * ((-0.16666666666666666 / k) * ((l / k) * (l / t)));
}
def code(t, l, k): return 2.0 * ((-0.16666666666666666 / k) * ((l / k) * (l / t)))
function code(t, l, k) return Float64(2.0 * Float64(Float64(-0.16666666666666666 / k) * Float64(Float64(l / k) * Float64(l / t)))) end
function tmp = code(t, l, k) tmp = 2.0 * ((-0.16666666666666666 / k) * ((l / k) * (l / t))); end
code[t_, l_, k_] := N[(2.0 * N[(N[(-0.16666666666666666 / k), $MachinePrecision] * N[(N[(l / k), $MachinePrecision] * N[(l / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
2 \cdot \left(\frac{-0.16666666666666666}{k} \cdot \left(\frac{\ell}{k} \cdot \frac{\ell}{t}\right)\right)
\end{array}
Initial program 56.5%
associate-/r*56.5%
associate-*l*53.3%
sqr-neg53.3%
associate-*l*56.5%
*-commutative56.5%
sqr-neg56.5%
associate-*l/58.1%
associate-*r/58.0%
associate-/r/57.6%
Simplified57.6%
Taylor expanded in k around inf 60.9%
times-frac60.4%
unpow260.4%
unpow260.4%
Simplified60.4%
Taylor expanded in k around 0 31.0%
associate--l+31.0%
fma-def31.0%
unpow231.0%
times-frac30.7%
unpow230.7%
*-commutative30.7%
associate-/r*31.0%
unpow231.0%
associate-/l*31.6%
associate-*r/31.6%
times-frac33.1%
unpow233.1%
unpow233.1%
associate-/l*34.8%
Simplified34.8%
Taylor expanded in k around inf 29.6%
distribute-rgt-out--31.3%
unpow231.3%
associate-/l*32.9%
metadata-eval32.9%
unpow232.9%
times-frac34.6%
associate-/l/34.8%
Simplified34.8%
Taylor expanded in l around 0 32.0%
associate-*r/32.0%
*-commutative32.0%
associate-/r*31.3%
*-commutative31.3%
associate-*l/31.3%
unpow231.3%
times-frac34.0%
associate-/r*33.5%
unpow233.5%
times-frac34.7%
Simplified34.7%
Final simplification34.7%
(FPCore (t l k) :precision binary64 (* 2.0 (* (/ -0.16666666666666666 k) (/ l (* k (/ t l))))))
double code(double t, double l, double k) {
return 2.0 * ((-0.16666666666666666 / k) * (l / (k * (t / 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 * (((-0.16666666666666666d0) / k) * (l / (k * (t / l))))
end function
public static double code(double t, double l, double k) {
return 2.0 * ((-0.16666666666666666 / k) * (l / (k * (t / l))));
}
def code(t, l, k): return 2.0 * ((-0.16666666666666666 / k) * (l / (k * (t / l))))
function code(t, l, k) return Float64(2.0 * Float64(Float64(-0.16666666666666666 / k) * Float64(l / Float64(k * Float64(t / l))))) end
function tmp = code(t, l, k) tmp = 2.0 * ((-0.16666666666666666 / k) * (l / (k * (t / l)))); end
code[t_, l_, k_] := N[(2.0 * N[(N[(-0.16666666666666666 / k), $MachinePrecision] * N[(l / N[(k * N[(t / l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
2 \cdot \left(\frac{-0.16666666666666666}{k} \cdot \frac{\ell}{k \cdot \frac{t}{\ell}}\right)
\end{array}
Initial program 56.5%
associate-/r*56.5%
associate-*l*53.3%
sqr-neg53.3%
associate-*l*56.5%
*-commutative56.5%
sqr-neg56.5%
associate-*l/58.1%
associate-*r/58.0%
associate-/r/57.6%
Simplified57.6%
Taylor expanded in k around inf 60.9%
times-frac60.4%
unpow260.4%
unpow260.4%
Simplified60.4%
Taylor expanded in k around 0 31.0%
associate--l+31.0%
fma-def31.0%
unpow231.0%
times-frac30.7%
unpow230.7%
*-commutative30.7%
associate-/r*31.0%
unpow231.0%
associate-/l*31.6%
associate-*r/31.6%
times-frac33.1%
unpow233.1%
unpow233.1%
associate-/l*34.8%
Simplified34.8%
Taylor expanded in k around inf 29.6%
distribute-rgt-out--31.3%
unpow231.3%
associate-/l*32.9%
metadata-eval32.9%
unpow232.9%
times-frac34.6%
associate-/l/34.8%
Simplified34.8%
Final simplification34.8%
(FPCore (t l k) :precision binary64 (* 2.0 (* (/ l (/ (* t k) l)) (/ -0.16666666666666666 k))))
double code(double t, double l, double k) {
return 2.0 * ((l / ((t * k) / l)) * (-0.16666666666666666 / 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 * ((l / ((t * k) / l)) * ((-0.16666666666666666d0) / k))
end function
public static double code(double t, double l, double k) {
return 2.0 * ((l / ((t * k) / l)) * (-0.16666666666666666 / k));
}
def code(t, l, k): return 2.0 * ((l / ((t * k) / l)) * (-0.16666666666666666 / k))
function code(t, l, k) return Float64(2.0 * Float64(Float64(l / Float64(Float64(t * k) / l)) * Float64(-0.16666666666666666 / k))) end
function tmp = code(t, l, k) tmp = 2.0 * ((l / ((t * k) / l)) * (-0.16666666666666666 / k)); end
code[t_, l_, k_] := N[(2.0 * N[(N[(l / N[(N[(t * k), $MachinePrecision] / l), $MachinePrecision]), $MachinePrecision] * N[(-0.16666666666666666 / k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
2 \cdot \left(\frac{\ell}{\frac{t \cdot k}{\ell}} \cdot \frac{-0.16666666666666666}{k}\right)
\end{array}
Initial program 56.5%
associate-/r*56.5%
associate-*l*53.3%
sqr-neg53.3%
associate-*l*56.5%
*-commutative56.5%
sqr-neg56.5%
associate-*l/58.1%
associate-*r/58.0%
associate-/r/57.6%
Simplified57.6%
Taylor expanded in k around inf 60.9%
times-frac60.4%
unpow260.4%
unpow260.4%
Simplified60.4%
Taylor expanded in k around 0 31.0%
associate--l+31.0%
fma-def31.0%
unpow231.0%
times-frac30.7%
unpow230.7%
*-commutative30.7%
associate-/r*31.0%
unpow231.0%
associate-/l*31.6%
associate-*r/31.6%
times-frac33.1%
unpow233.1%
unpow233.1%
associate-/l*34.8%
Simplified34.8%
Taylor expanded in k around inf 29.6%
distribute-rgt-out--31.3%
unpow231.3%
associate-/l*32.9%
metadata-eval32.9%
unpow232.9%
times-frac34.6%
associate-/l/34.8%
Simplified34.8%
Taylor expanded in k around 0 35.3%
Final simplification35.3%
(FPCore (t l k) :precision binary64 (* 2.0 (/ (* l -0.16666666666666666) (* k (* k (/ t l))))))
double code(double t, double l, double k) {
return 2.0 * ((l * -0.16666666666666666) / (k * (k * (t / 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 * ((l * (-0.16666666666666666d0)) / (k * (k * (t / l))))
end function
public static double code(double t, double l, double k) {
return 2.0 * ((l * -0.16666666666666666) / (k * (k * (t / l))));
}
def code(t, l, k): return 2.0 * ((l * -0.16666666666666666) / (k * (k * (t / l))))
function code(t, l, k) return Float64(2.0 * Float64(Float64(l * -0.16666666666666666) / Float64(k * Float64(k * Float64(t / l))))) end
function tmp = code(t, l, k) tmp = 2.0 * ((l * -0.16666666666666666) / (k * (k * (t / l)))); end
code[t_, l_, k_] := N[(2.0 * N[(N[(l * -0.16666666666666666), $MachinePrecision] / N[(k * N[(k * N[(t / l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
2 \cdot \frac{\ell \cdot -0.16666666666666666}{k \cdot \left(k \cdot \frac{t}{\ell}\right)}
\end{array}
Initial program 56.5%
associate-/r*56.5%
associate-*l*53.3%
sqr-neg53.3%
associate-*l*56.5%
*-commutative56.5%
sqr-neg56.5%
associate-*l/58.1%
associate-*r/58.0%
associate-/r/57.6%
Simplified57.6%
Taylor expanded in k around inf 60.9%
times-frac60.4%
unpow260.4%
unpow260.4%
Simplified60.4%
Taylor expanded in k around 0 31.0%
associate--l+31.0%
fma-def31.0%
unpow231.0%
times-frac30.7%
unpow230.7%
*-commutative30.7%
associate-/r*31.0%
unpow231.0%
associate-/l*31.6%
associate-*r/31.6%
times-frac33.1%
unpow233.1%
unpow233.1%
associate-/l*34.8%
Simplified34.8%
Taylor expanded in k around inf 29.6%
distribute-rgt-out--31.3%
unpow231.3%
associate-/l*32.9%
metadata-eval32.9%
unpow232.9%
times-frac34.6%
associate-/l/34.8%
Simplified34.8%
frac-times36.1%
Applied egg-rr36.1%
Final simplification36.1%
herbie shell --seed 2023271
(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))))