
(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 16 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
(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)
(/ (/ 2.0 (* (/ (sin k) (* (/ l t) (/ l t))) (* t (tan k)))) (+ 2.0 t_1))
(* 2.0 (* (/ l k) (* (/ l k) (/ (/ (cos k) t) (pow (sin k) 2.0))))))))
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 = (2.0 / ((sin(k) / ((l / t) * (l / t))) * (t * tan(k)))) / (2.0 + t_1);
} else {
tmp = 2.0 * ((l / k) * ((l / k) * ((cos(k) / t) / 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 (((((Math.pow(t, 3.0) / (l * l)) * Math.sin(k)) * Math.tan(k)) * (1.0 + (1.0 + t_1))) <= Double.POSITIVE_INFINITY) {
tmp = (2.0 / ((Math.sin(k) / ((l / t) * (l / t))) * (t * Math.tan(k)))) / (2.0 + t_1);
} else {
tmp = 2.0 * ((l / k) * ((l / k) * ((Math.cos(k) / t) / 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 ((((math.pow(t, 3.0) / (l * l)) * math.sin(k)) * math.tan(k)) * (1.0 + (1.0 + t_1))) <= math.inf: tmp = (2.0 / ((math.sin(k) / ((l / t) * (l / t))) * (t * math.tan(k)))) / (2.0 + t_1) else: tmp = 2.0 * ((l / k) * ((l / k) * ((math.cos(k) / t) / 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(Float64(Float64(Float64((t ^ 3.0) / Float64(l * l)) * sin(k)) * tan(k)) * Float64(1.0 + Float64(1.0 + t_1))) <= Inf) tmp = Float64(Float64(2.0 / Float64(Float64(sin(k) / Float64(Float64(l / t) * Float64(l / t))) * Float64(t * tan(k)))) / Float64(2.0 + t_1)); else tmp = Float64(2.0 * Float64(Float64(l / k) * Float64(Float64(l / k) * Float64(Float64(cos(k) / t) / (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 ((((((t ^ 3.0) / (l * l)) * sin(k)) * tan(k)) * (1.0 + (1.0 + t_1))) <= Inf) tmp = (2.0 / ((sin(k) / ((l / t) * (l / t))) * (t * tan(k)))) / (2.0 + t_1); else tmp = 2.0 * ((l / k) * ((l / k) * ((cos(k) / t) / (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[(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[(N[(2.0 / N[(N[(N[Sin[k], $MachinePrecision] / N[(N[(l / t), $MachinePrecision] * N[(l / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(t * N[Tan[k], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(2.0 + t$95$1), $MachinePrecision]), $MachinePrecision], N[(2.0 * N[(N[(l / k), $MachinePrecision] * N[(N[(l / k), $MachinePrecision] * N[(N[(N[Cos[k], $MachinePrecision] / t), $MachinePrecision] / N[Power[N[Sin[k], $MachinePrecision], 2.0], $MachinePrecision]), $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:\\
\;\;\;\;\frac{\frac{2}{\frac{\sin k}{\frac{\ell}{t} \cdot \frac{\ell}{t}} \cdot \left(t \cdot \tan k\right)}}{2 + t_1}\\
\mathbf{else}:\\
\;\;\;\;2 \cdot \left(\frac{\ell}{k} \cdot \left(\frac{\ell}{k} \cdot \frac{\frac{\cos k}{t}}{{\sin k}^{2}}\right)\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.8%
associate-/r*82.0%
associate-*l*72.9%
sqr-neg72.9%
associate-*l*82.0%
*-commutative82.0%
sqr-neg82.0%
associate-/r*82.0%
Simplified81.8%
cube-mult81.8%
*-un-lft-identity81.8%
times-frac83.5%
associate-/l*86.4%
Applied egg-rr86.4%
Taylor expanded in t around 0 83.6%
unpow283.6%
times-frac88.2%
unpow288.2%
associate-/l*90.9%
Simplified90.9%
div-inv90.9%
/-rgt-identity90.9%
Applied egg-rr90.9%
associate-*r/90.9%
*-rgt-identity90.9%
associate-/l/90.9%
*-commutative90.9%
associate-*l*90.9%
times-frac91.5%
*-commutative91.5%
associate-*l/89.1%
unpow289.1%
associate-/l*87.5%
unpow287.5%
associate-*l/89.8%
associate-*r/91.5%
Simplified91.5%
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%
associate-/r*0.0%
associate-*l*0.0%
sqr-neg0.0%
associate-*l*0.0%
*-commutative0.0%
sqr-neg0.0%
associate-*l/0.0%
associate-*r/0.0%
associate-/r/0.0%
Simplified0.0%
Taylor expanded in k around inf 51.8%
times-frac50.1%
unpow250.1%
unpow250.1%
Simplified50.1%
*-un-lft-identity50.1%
associate-/r*54.2%
Applied egg-rr54.2%
Taylor expanded in l around 0 51.8%
times-frac50.1%
unpow250.1%
unpow250.1%
times-frac70.9%
associate-*l*82.2%
associate-/r*82.3%
Simplified82.3%
Final simplification88.4%
(FPCore (t l k)
:precision binary64
(if (or (<= t -1.3e-45) (not (<= t 4500000000000.0)))
(/
2.0
(*
(tan k)
(* (+ 2.0 (pow (/ k t) 2.0)) (* t (* (* t (/ t l)) (/ (sin k) l))))))
(* 2.0 (* (/ l k) (* (/ l k) (/ (/ (cos k) t) (pow (sin k) 2.0)))))))
double code(double t, double l, double k) {
double tmp;
if ((t <= -1.3e-45) || !(t <= 4500000000000.0)) {
tmp = 2.0 / (tan(k) * ((2.0 + pow((k / t), 2.0)) * (t * ((t * (t / l)) * (sin(k) / l)))));
} else {
tmp = 2.0 * ((l / k) * ((l / k) * ((cos(k) / t) / 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) :: tmp
if ((t <= (-1.3d-45)) .or. (.not. (t <= 4500000000000.0d0))) then
tmp = 2.0d0 / (tan(k) * ((2.0d0 + ((k / t) ** 2.0d0)) * (t * ((t * (t / l)) * (sin(k) / l)))))
else
tmp = 2.0d0 * ((l / k) * ((l / k) * ((cos(k) / t) / (sin(k) ** 2.0d0))))
end if
code = tmp
end function
public static double code(double t, double l, double k) {
double tmp;
if ((t <= -1.3e-45) || !(t <= 4500000000000.0)) {
tmp = 2.0 / (Math.tan(k) * ((2.0 + Math.pow((k / t), 2.0)) * (t * ((t * (t / l)) * (Math.sin(k) / l)))));
} else {
tmp = 2.0 * ((l / k) * ((l / k) * ((Math.cos(k) / t) / Math.pow(Math.sin(k), 2.0))));
}
return tmp;
}
def code(t, l, k): tmp = 0 if (t <= -1.3e-45) or not (t <= 4500000000000.0): tmp = 2.0 / (math.tan(k) * ((2.0 + math.pow((k / t), 2.0)) * (t * ((t * (t / l)) * (math.sin(k) / l))))) else: tmp = 2.0 * ((l / k) * ((l / k) * ((math.cos(k) / t) / math.pow(math.sin(k), 2.0)))) return tmp
function code(t, l, k) tmp = 0.0 if ((t <= -1.3e-45) || !(t <= 4500000000000.0)) tmp = Float64(2.0 / Float64(tan(k) * Float64(Float64(2.0 + (Float64(k / t) ^ 2.0)) * Float64(t * Float64(Float64(t * Float64(t / l)) * Float64(sin(k) / l)))))); else tmp = Float64(2.0 * Float64(Float64(l / k) * Float64(Float64(l / k) * Float64(Float64(cos(k) / t) / (sin(k) ^ 2.0))))); end return tmp end
function tmp_2 = code(t, l, k) tmp = 0.0; if ((t <= -1.3e-45) || ~((t <= 4500000000000.0))) tmp = 2.0 / (tan(k) * ((2.0 + ((k / t) ^ 2.0)) * (t * ((t * (t / l)) * (sin(k) / l))))); else tmp = 2.0 * ((l / k) * ((l / k) * ((cos(k) / t) / (sin(k) ^ 2.0)))); end tmp_2 = tmp; end
code[t_, l_, k_] := If[Or[LessEqual[t, -1.3e-45], N[Not[LessEqual[t, 4500000000000.0]], $MachinePrecision]], N[(2.0 / N[(N[Tan[k], $MachinePrecision] * N[(N[(2.0 + N[Power[N[(k / t), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision] * N[(t * N[(N[(t * N[(t / l), $MachinePrecision]), $MachinePrecision] * N[(N[Sin[k], $MachinePrecision] / l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(2.0 * N[(N[(l / k), $MachinePrecision] * N[(N[(l / k), $MachinePrecision] * N[(N[(N[Cos[k], $MachinePrecision] / t), $MachinePrecision] / N[Power[N[Sin[k], $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.3 \cdot 10^{-45} \lor \neg \left(t \leq 4500000000000\right):\\
\;\;\;\;\frac{2}{\tan k \cdot \left(\left(2 + {\left(\frac{k}{t}\right)}^{2}\right) \cdot \left(t \cdot \left(\left(t \cdot \frac{t}{\ell}\right) \cdot \frac{\sin k}{\ell}\right)\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;2 \cdot \left(\frac{\ell}{k} \cdot \left(\frac{\ell}{k} \cdot \frac{\frac{\cos k}{t}}{{\sin k}^{2}}\right)\right)\\
\end{array}
\end{array}
if t < -1.29999999999999993e-45 or 4.5e12 < t Initial program 66.4%
associate-/r*66.4%
associate-*l*53.7%
sqr-neg53.7%
associate-*l*66.4%
*-commutative66.4%
sqr-neg66.4%
associate-/r*66.4%
Simplified66.1%
cube-mult66.1%
*-un-lft-identity66.1%
times-frac69.4%
associate-/l*70.2%
Applied egg-rr70.2%
Taylor expanded in t around 0 69.6%
unpow269.6%
times-frac73.2%
unpow273.2%
associate-/l*82.0%
Simplified82.0%
*-un-lft-identity82.0%
associate-/l/82.0%
/-rgt-identity82.0%
Applied egg-rr82.0%
*-lft-identity82.0%
associate-/l/82.1%
associate-/r/82.0%
Simplified82.0%
if -1.29999999999999993e-45 < t < 4.5e12Initial program 42.9%
associate-/r*43.1%
associate-*l*43.1%
sqr-neg43.1%
associate-*l*43.1%
*-commutative43.1%
sqr-neg43.1%
associate-*l/43.1%
associate-*r/43.1%
associate-/r/43.1%
Simplified43.1%
Taylor expanded in k around inf 73.2%
times-frac71.4%
unpow271.4%
unpow271.4%
Simplified71.4%
*-un-lft-identity71.4%
associate-/r*75.2%
Applied egg-rr75.2%
Taylor expanded in l around 0 73.2%
times-frac71.4%
unpow271.4%
unpow271.4%
times-frac83.9%
associate-*l*92.7%
associate-/r*92.7%
Simplified92.7%
Final simplification87.7%
(FPCore (t l k)
:precision binary64
(if (<= k 2.35e-20)
(/
(/ (/ 2.0 (tan k)) (* t (* (/ t (/ l t)) (/ k l))))
(+ 2.0 (pow (/ k t) 2.0)))
(* 2.0 (* (* (/ l k) (/ l k)) (/ (cos k) (* t (pow (sin k) 2.0)))))))
double code(double t, double l, double k) {
double tmp;
if (k <= 2.35e-20) {
tmp = ((2.0 / tan(k)) / (t * ((t / (l / t)) * (k / l)))) / (2.0 + pow((k / t), 2.0));
} else {
tmp = 2.0 * (((l / k) * (l / k)) * (cos(k) / (t * 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) :: tmp
if (k <= 2.35d-20) then
tmp = ((2.0d0 / tan(k)) / (t * ((t / (l / t)) * (k / l)))) / (2.0d0 + ((k / t) ** 2.0d0))
else
tmp = 2.0d0 * (((l / k) * (l / k)) * (cos(k) / (t * (sin(k) ** 2.0d0))))
end if
code = tmp
end function
public static double code(double t, double l, double k) {
double tmp;
if (k <= 2.35e-20) {
tmp = ((2.0 / Math.tan(k)) / (t * ((t / (l / t)) * (k / l)))) / (2.0 + Math.pow((k / t), 2.0));
} else {
tmp = 2.0 * (((l / k) * (l / k)) * (Math.cos(k) / (t * Math.pow(Math.sin(k), 2.0))));
}
return tmp;
}
def code(t, l, k): tmp = 0 if k <= 2.35e-20: tmp = ((2.0 / math.tan(k)) / (t * ((t / (l / t)) * (k / l)))) / (2.0 + math.pow((k / t), 2.0)) else: tmp = 2.0 * (((l / k) * (l / k)) * (math.cos(k) / (t * math.pow(math.sin(k), 2.0)))) return tmp
function code(t, l, k) tmp = 0.0 if (k <= 2.35e-20) tmp = Float64(Float64(Float64(2.0 / tan(k)) / Float64(t * Float64(Float64(t / Float64(l / t)) * Float64(k / l)))) / Float64(2.0 + (Float64(k / t) ^ 2.0))); else tmp = Float64(2.0 * Float64(Float64(Float64(l / k) * Float64(l / k)) * Float64(cos(k) / Float64(t * (sin(k) ^ 2.0))))); end return tmp end
function tmp_2 = code(t, l, k) tmp = 0.0; if (k <= 2.35e-20) tmp = ((2.0 / tan(k)) / (t * ((t / (l / t)) * (k / l)))) / (2.0 + ((k / t) ^ 2.0)); else tmp = 2.0 * (((l / k) * (l / k)) * (cos(k) / (t * (sin(k) ^ 2.0)))); end tmp_2 = tmp; end
code[t_, l_, k_] := If[LessEqual[k, 2.35e-20], N[(N[(N[(2.0 / N[Tan[k], $MachinePrecision]), $MachinePrecision] / N[(t * N[(N[(t / N[(l / t), $MachinePrecision]), $MachinePrecision] * N[(k / l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(2.0 + N[Power[N[(k / t), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(2.0 * N[(N[(N[(l / k), $MachinePrecision] * N[(l / k), $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 2.35 \cdot 10^{-20}:\\
\;\;\;\;\frac{\frac{\frac{2}{\tan k}}{t \cdot \left(\frac{t}{\frac{\ell}{t}} \cdot \frac{k}{\ell}\right)}}{2 + {\left(\frac{k}{t}\right)}^{2}}\\
\mathbf{else}:\\
\;\;\;\;2 \cdot \left(\left(\frac{\ell}{k} \cdot \frac{\ell}{k}\right) \cdot \frac{\cos k}{t \cdot {\sin k}^{2}}\right)\\
\end{array}
\end{array}
if k < 2.35000000000000007e-20Initial program 59.4%
associate-/r*59.5%
associate-*l*51.1%
sqr-neg51.1%
associate-*l*59.5%
*-commutative59.5%
sqr-neg59.5%
associate-/r*59.5%
Simplified59.4%
cube-mult59.4%
*-un-lft-identity59.4%
times-frac62.3%
associate-/l*66.0%
Applied egg-rr66.0%
Taylor expanded in k around 0 60.7%
*-commutative60.7%
unpow260.7%
times-frac67.7%
unpow267.7%
associate-/l*71.6%
Simplified71.6%
if 2.35000000000000007e-20 < k Initial program 40.8%
associate-/r*40.8%
associate-*l*40.8%
sqr-neg40.8%
associate-*l*40.8%
*-commutative40.8%
sqr-neg40.8%
associate-*l/40.8%
associate-*r/40.8%
associate-/r/40.8%
Simplified40.8%
Taylor expanded in k around inf 68.2%
times-frac66.1%
unpow266.1%
unpow266.1%
Simplified66.1%
times-frac83.5%
Applied egg-rr83.5%
Final simplification75.1%
(FPCore (t l k)
:precision binary64
(if (<= k 4.2e-21)
(/
(/ (/ 2.0 (tan k)) (* t (* (/ t (/ l t)) (/ k l))))
(+ 2.0 (pow (/ k t) 2.0)))
(* 2.0 (* (/ l k) (* (/ l k) (/ (/ (cos k) t) (pow (sin k) 2.0)))))))
double code(double t, double l, double k) {
double tmp;
if (k <= 4.2e-21) {
tmp = ((2.0 / tan(k)) / (t * ((t / (l / t)) * (k / l)))) / (2.0 + pow((k / t), 2.0));
} else {
tmp = 2.0 * ((l / k) * ((l / k) * ((cos(k) / t) / 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) :: tmp
if (k <= 4.2d-21) then
tmp = ((2.0d0 / tan(k)) / (t * ((t / (l / t)) * (k / l)))) / (2.0d0 + ((k / t) ** 2.0d0))
else
tmp = 2.0d0 * ((l / k) * ((l / k) * ((cos(k) / t) / (sin(k) ** 2.0d0))))
end if
code = tmp
end function
public static double code(double t, double l, double k) {
double tmp;
if (k <= 4.2e-21) {
tmp = ((2.0 / Math.tan(k)) / (t * ((t / (l / t)) * (k / l)))) / (2.0 + Math.pow((k / t), 2.0));
} else {
tmp = 2.0 * ((l / k) * ((l / k) * ((Math.cos(k) / t) / Math.pow(Math.sin(k), 2.0))));
}
return tmp;
}
def code(t, l, k): tmp = 0 if k <= 4.2e-21: tmp = ((2.0 / math.tan(k)) / (t * ((t / (l / t)) * (k / l)))) / (2.0 + math.pow((k / t), 2.0)) else: tmp = 2.0 * ((l / k) * ((l / k) * ((math.cos(k) / t) / math.pow(math.sin(k), 2.0)))) return tmp
function code(t, l, k) tmp = 0.0 if (k <= 4.2e-21) tmp = Float64(Float64(Float64(2.0 / tan(k)) / Float64(t * Float64(Float64(t / Float64(l / t)) * Float64(k / l)))) / Float64(2.0 + (Float64(k / t) ^ 2.0))); else tmp = Float64(2.0 * Float64(Float64(l / k) * Float64(Float64(l / k) * Float64(Float64(cos(k) / t) / (sin(k) ^ 2.0))))); end return tmp end
function tmp_2 = code(t, l, k) tmp = 0.0; if (k <= 4.2e-21) tmp = ((2.0 / tan(k)) / (t * ((t / (l / t)) * (k / l)))) / (2.0 + ((k / t) ^ 2.0)); else tmp = 2.0 * ((l / k) * ((l / k) * ((cos(k) / t) / (sin(k) ^ 2.0)))); end tmp_2 = tmp; end
code[t_, l_, k_] := If[LessEqual[k, 4.2e-21], N[(N[(N[(2.0 / N[Tan[k], $MachinePrecision]), $MachinePrecision] / N[(t * N[(N[(t / N[(l / t), $MachinePrecision]), $MachinePrecision] * N[(k / l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(2.0 + N[Power[N[(k / t), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(2.0 * N[(N[(l / k), $MachinePrecision] * N[(N[(l / k), $MachinePrecision] * N[(N[(N[Cos[k], $MachinePrecision] / t), $MachinePrecision] / N[Power[N[Sin[k], $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;k \leq 4.2 \cdot 10^{-21}:\\
\;\;\;\;\frac{\frac{\frac{2}{\tan k}}{t \cdot \left(\frac{t}{\frac{\ell}{t}} \cdot \frac{k}{\ell}\right)}}{2 + {\left(\frac{k}{t}\right)}^{2}}\\
\mathbf{else}:\\
\;\;\;\;2 \cdot \left(\frac{\ell}{k} \cdot \left(\frac{\ell}{k} \cdot \frac{\frac{\cos k}{t}}{{\sin k}^{2}}\right)\right)\\
\end{array}
\end{array}
if k < 4.20000000000000025e-21Initial program 59.4%
associate-/r*59.5%
associate-*l*51.1%
sqr-neg51.1%
associate-*l*59.5%
*-commutative59.5%
sqr-neg59.5%
associate-/r*59.5%
Simplified59.4%
cube-mult59.4%
*-un-lft-identity59.4%
times-frac62.3%
associate-/l*66.0%
Applied egg-rr66.0%
Taylor expanded in k around 0 60.7%
*-commutative60.7%
unpow260.7%
times-frac67.7%
unpow267.7%
associate-/l*71.6%
Simplified71.6%
if 4.20000000000000025e-21 < k Initial program 40.8%
associate-/r*40.8%
associate-*l*40.8%
sqr-neg40.8%
associate-*l*40.8%
*-commutative40.8%
sqr-neg40.8%
associate-*l/40.8%
associate-*r/40.8%
associate-/r/40.8%
Simplified40.8%
Taylor expanded in k around inf 68.2%
times-frac66.1%
unpow266.1%
unpow266.1%
Simplified66.1%
*-un-lft-identity66.1%
associate-/r*71.9%
Applied egg-rr71.9%
Taylor expanded in l around 0 68.2%
times-frac66.1%
unpow266.1%
unpow266.1%
times-frac83.5%
associate-*l*88.1%
associate-/r*88.2%
Simplified88.2%
Final simplification76.4%
(FPCore (t l k)
:precision binary64
(if (or (<= t -3.2e-153) (not (<= t 1.05e-143)))
(/
(/ (/ 2.0 (tan k)) (* t (* (* t (/ t l)) (/ k l))))
(+ 2.0 (pow (/ k t) 2.0)))
(* 2.0 (* (/ l t) (/ l (pow k 4.0))))))
double code(double t, double l, double k) {
double tmp;
if ((t <= -3.2e-153) || !(t <= 1.05e-143)) {
tmp = ((2.0 / tan(k)) / (t * ((t * (t / l)) * (k / l)))) / (2.0 + pow((k / t), 2.0));
} else {
tmp = 2.0 * ((l / t) * (l / pow(k, 4.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 <= (-3.2d-153)) .or. (.not. (t <= 1.05d-143))) then
tmp = ((2.0d0 / tan(k)) / (t * ((t * (t / l)) * (k / l)))) / (2.0d0 + ((k / t) ** 2.0d0))
else
tmp = 2.0d0 * ((l / t) * (l / (k ** 4.0d0)))
end if
code = tmp
end function
public static double code(double t, double l, double k) {
double tmp;
if ((t <= -3.2e-153) || !(t <= 1.05e-143)) {
tmp = ((2.0 / Math.tan(k)) / (t * ((t * (t / l)) * (k / l)))) / (2.0 + Math.pow((k / t), 2.0));
} else {
tmp = 2.0 * ((l / t) * (l / Math.pow(k, 4.0)));
}
return tmp;
}
def code(t, l, k): tmp = 0 if (t <= -3.2e-153) or not (t <= 1.05e-143): tmp = ((2.0 / math.tan(k)) / (t * ((t * (t / l)) * (k / l)))) / (2.0 + math.pow((k / t), 2.0)) else: tmp = 2.0 * ((l / t) * (l / math.pow(k, 4.0))) return tmp
function code(t, l, k) tmp = 0.0 if ((t <= -3.2e-153) || !(t <= 1.05e-143)) tmp = Float64(Float64(Float64(2.0 / tan(k)) / Float64(t * Float64(Float64(t * Float64(t / l)) * Float64(k / l)))) / Float64(2.0 + (Float64(k / t) ^ 2.0))); else tmp = Float64(2.0 * Float64(Float64(l / t) * Float64(l / (k ^ 4.0)))); end return tmp end
function tmp_2 = code(t, l, k) tmp = 0.0; if ((t <= -3.2e-153) || ~((t <= 1.05e-143))) tmp = ((2.0 / tan(k)) / (t * ((t * (t / l)) * (k / l)))) / (2.0 + ((k / t) ^ 2.0)); else tmp = 2.0 * ((l / t) * (l / (k ^ 4.0))); end tmp_2 = tmp; end
code[t_, l_, k_] := If[Or[LessEqual[t, -3.2e-153], N[Not[LessEqual[t, 1.05e-143]], $MachinePrecision]], N[(N[(N[(2.0 / N[Tan[k], $MachinePrecision]), $MachinePrecision] / N[(t * N[(N[(t * N[(t / l), $MachinePrecision]), $MachinePrecision] * N[(k / l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(2.0 + N[Power[N[(k / t), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(2.0 * N[(N[(l / t), $MachinePrecision] * N[(l / N[Power[k, 4.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -3.2 \cdot 10^{-153} \lor \neg \left(t \leq 1.05 \cdot 10^{-143}\right):\\
\;\;\;\;\frac{\frac{\frac{2}{\tan k}}{t \cdot \left(\left(t \cdot \frac{t}{\ell}\right) \cdot \frac{k}{\ell}\right)}}{2 + {\left(\frac{k}{t}\right)}^{2}}\\
\mathbf{else}:\\
\;\;\;\;2 \cdot \left(\frac{\ell}{t} \cdot \frac{\ell}{{k}^{4}}\right)\\
\end{array}
\end{array}
if t < -3.1999999999999999e-153 or 1.0500000000000001e-143 < t Initial program 62.8%
associate-/r*63.0%
associate-*l*54.7%
sqr-neg54.7%
associate-*l*63.0%
*-commutative63.0%
sqr-neg63.0%
associate-/r*63.0%
Simplified62.8%
cube-mult62.8%
*-un-lft-identity62.8%
times-frac66.8%
associate-/l*70.0%
Applied egg-rr70.0%
Taylor expanded in t around 0 66.9%
unpow266.9%
times-frac75.0%
unpow275.0%
associate-/l*80.7%
Simplified80.7%
Taylor expanded in k around 0 63.2%
*-commutative63.2%
unpow263.2%
times-frac70.3%
unpow270.3%
associate-*l/73.1%
Simplified73.1%
if -3.1999999999999999e-153 < t < 1.0500000000000001e-143Initial program 31.0%
associate-/r*31.0%
associate-*l*31.0%
sqr-neg31.0%
associate-*l*31.0%
*-commutative31.0%
sqr-neg31.0%
associate-*l/31.0%
associate-*r/31.0%
associate-/r/31.0%
Simplified31.0%
Taylor expanded in k around inf 80.7%
times-frac78.6%
unpow278.6%
unpow278.6%
Simplified78.6%
Taylor expanded in k around 0 59.5%
unpow259.5%
*-commutative59.5%
times-frac66.3%
Simplified66.3%
Final simplification71.2%
(FPCore (t l k)
:precision binary64
(let* ((t_1 (+ 2.0 (pow (/ k t) 2.0))) (t_2 (/ 2.0 (tan k))))
(if (<= t -5.2e-152)
(/ (/ t_2 (* t (* (/ t (/ l t)) (/ k l)))) t_1)
(if (<= t 4.9e-144)
(* 2.0 (* (/ l t) (/ l (pow k 4.0))))
(/ (/ t_2 (* t (* (* t (/ t l)) (/ k l)))) t_1)))))
double code(double t, double l, double k) {
double t_1 = 2.0 + pow((k / t), 2.0);
double t_2 = 2.0 / tan(k);
double tmp;
if (t <= -5.2e-152) {
tmp = (t_2 / (t * ((t / (l / t)) * (k / l)))) / t_1;
} else if (t <= 4.9e-144) {
tmp = 2.0 * ((l / t) * (l / pow(k, 4.0)));
} else {
tmp = (t_2 / (t * ((t * (t / l)) * (k / l)))) / 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) :: t_2
real(8) :: tmp
t_1 = 2.0d0 + ((k / t) ** 2.0d0)
t_2 = 2.0d0 / tan(k)
if (t <= (-5.2d-152)) then
tmp = (t_2 / (t * ((t / (l / t)) * (k / l)))) / t_1
else if (t <= 4.9d-144) then
tmp = 2.0d0 * ((l / t) * (l / (k ** 4.0d0)))
else
tmp = (t_2 / (t * ((t * (t / l)) * (k / l)))) / t_1
end if
code = tmp
end function
public static double code(double t, double l, double k) {
double t_1 = 2.0 + Math.pow((k / t), 2.0);
double t_2 = 2.0 / Math.tan(k);
double tmp;
if (t <= -5.2e-152) {
tmp = (t_2 / (t * ((t / (l / t)) * (k / l)))) / t_1;
} else if (t <= 4.9e-144) {
tmp = 2.0 * ((l / t) * (l / Math.pow(k, 4.0)));
} else {
tmp = (t_2 / (t * ((t * (t / l)) * (k / l)))) / t_1;
}
return tmp;
}
def code(t, l, k): t_1 = 2.0 + math.pow((k / t), 2.0) t_2 = 2.0 / math.tan(k) tmp = 0 if t <= -5.2e-152: tmp = (t_2 / (t * ((t / (l / t)) * (k / l)))) / t_1 elif t <= 4.9e-144: tmp = 2.0 * ((l / t) * (l / math.pow(k, 4.0))) else: tmp = (t_2 / (t * ((t * (t / l)) * (k / l)))) / t_1 return tmp
function code(t, l, k) t_1 = Float64(2.0 + (Float64(k / t) ^ 2.0)) t_2 = Float64(2.0 / tan(k)) tmp = 0.0 if (t <= -5.2e-152) tmp = Float64(Float64(t_2 / Float64(t * Float64(Float64(t / Float64(l / t)) * Float64(k / l)))) / t_1); elseif (t <= 4.9e-144) tmp = Float64(2.0 * Float64(Float64(l / t) * Float64(l / (k ^ 4.0)))); else tmp = Float64(Float64(t_2 / Float64(t * Float64(Float64(t * Float64(t / l)) * Float64(k / l)))) / t_1); end return tmp end
function tmp_2 = code(t, l, k) t_1 = 2.0 + ((k / t) ^ 2.0); t_2 = 2.0 / tan(k); tmp = 0.0; if (t <= -5.2e-152) tmp = (t_2 / (t * ((t / (l / t)) * (k / l)))) / t_1; elseif (t <= 4.9e-144) tmp = 2.0 * ((l / t) * (l / (k ^ 4.0))); else tmp = (t_2 / (t * ((t * (t / l)) * (k / l)))) / t_1; end tmp_2 = tmp; end
code[t_, l_, k_] := Block[{t$95$1 = N[(2.0 + N[Power[N[(k / t), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(2.0 / N[Tan[k], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -5.2e-152], N[(N[(t$95$2 / N[(t * N[(N[(t / N[(l / t), $MachinePrecision]), $MachinePrecision] * N[(k / l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / t$95$1), $MachinePrecision], If[LessEqual[t, 4.9e-144], N[(2.0 * N[(N[(l / t), $MachinePrecision] * N[(l / N[Power[k, 4.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(t$95$2 / N[(t * N[(N[(t * N[(t / l), $MachinePrecision]), $MachinePrecision] * N[(k / l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / t$95$1), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := 2 + {\left(\frac{k}{t}\right)}^{2}\\
t_2 := \frac{2}{\tan k}\\
\mathbf{if}\;t \leq -5.2 \cdot 10^{-152}:\\
\;\;\;\;\frac{\frac{t_2}{t \cdot \left(\frac{t}{\frac{\ell}{t}} \cdot \frac{k}{\ell}\right)}}{t_1}\\
\mathbf{elif}\;t \leq 4.9 \cdot 10^{-144}:\\
\;\;\;\;2 \cdot \left(\frac{\ell}{t} \cdot \frac{\ell}{{k}^{4}}\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{t_2}{t \cdot \left(\left(t \cdot \frac{t}{\ell}\right) \cdot \frac{k}{\ell}\right)}}{t_1}\\
\end{array}
\end{array}
if t < -5.20000000000000026e-152Initial program 60.9%
associate-/r*60.9%
associate-*l*52.8%
sqr-neg52.8%
associate-*l*60.9%
*-commutative60.9%
sqr-neg60.9%
associate-/r*60.9%
Simplified60.7%
cube-mult60.7%
*-un-lft-identity60.7%
times-frac66.5%
associate-/l*69.7%
Applied egg-rr69.7%
Taylor expanded in k around 0 65.6%
*-commutative65.6%
unpow265.6%
times-frac71.5%
unpow271.5%
associate-/l*74.0%
Simplified74.0%
if -5.20000000000000026e-152 < t < 4.9000000000000001e-144Initial program 31.0%
associate-/r*31.0%
associate-*l*31.0%
sqr-neg31.0%
associate-*l*31.0%
*-commutative31.0%
sqr-neg31.0%
associate-*l/31.0%
associate-*r/31.0%
associate-/r/31.0%
Simplified31.0%
Taylor expanded in k around inf 80.7%
times-frac78.6%
unpow278.6%
unpow278.6%
Simplified78.6%
Taylor expanded in k around 0 59.5%
unpow259.5%
*-commutative59.5%
times-frac66.3%
Simplified66.3%
if 4.9000000000000001e-144 < t Initial program 64.6%
associate-/r*64.9%
associate-*l*56.4%
sqr-neg56.4%
associate-*l*64.9%
*-commutative64.9%
sqr-neg64.9%
associate-/r*64.9%
Simplified64.8%
cube-mult64.8%
*-un-lft-identity64.8%
times-frac67.1%
associate-/l*70.2%
Applied egg-rr70.2%
Taylor expanded in t around 0 67.1%
unpow267.1%
times-frac76.4%
unpow276.4%
associate-/l*81.4%
Simplified81.4%
Taylor expanded in k around 0 60.9%
*-commutative60.9%
unpow260.9%
times-frac69.2%
unpow269.2%
associate-*l/72.3%
Simplified72.3%
Final simplification71.2%
(FPCore (t l k) :precision binary64 (if (or (<= t -2.5e-103) (not (<= t 4.6e-120))) (/ (* (* (/ l k) (/ l k)) (/ 2.0 (pow t 3.0))) (+ 2.0 (pow (/ k t) 2.0))) (* 2.0 (/ (/ l t) (/ (pow k 4.0) l)))))
double code(double t, double l, double k) {
double tmp;
if ((t <= -2.5e-103) || !(t <= 4.6e-120)) {
tmp = (((l / k) * (l / k)) * (2.0 / pow(t, 3.0))) / (2.0 + pow((k / t), 2.0));
} else {
tmp = 2.0 * ((l / t) / (pow(k, 4.0) / l));
}
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.5d-103)) .or. (.not. (t <= 4.6d-120))) then
tmp = (((l / k) * (l / k)) * (2.0d0 / (t ** 3.0d0))) / (2.0d0 + ((k / t) ** 2.0d0))
else
tmp = 2.0d0 * ((l / t) / ((k ** 4.0d0) / l))
end if
code = tmp
end function
public static double code(double t, double l, double k) {
double tmp;
if ((t <= -2.5e-103) || !(t <= 4.6e-120)) {
tmp = (((l / k) * (l / k)) * (2.0 / Math.pow(t, 3.0))) / (2.0 + Math.pow((k / t), 2.0));
} else {
tmp = 2.0 * ((l / t) / (Math.pow(k, 4.0) / l));
}
return tmp;
}
def code(t, l, k): tmp = 0 if (t <= -2.5e-103) or not (t <= 4.6e-120): tmp = (((l / k) * (l / k)) * (2.0 / math.pow(t, 3.0))) / (2.0 + math.pow((k / t), 2.0)) else: tmp = 2.0 * ((l / t) / (math.pow(k, 4.0) / l)) return tmp
function code(t, l, k) tmp = 0.0 if ((t <= -2.5e-103) || !(t <= 4.6e-120)) tmp = Float64(Float64(Float64(Float64(l / k) * Float64(l / k)) * Float64(2.0 / (t ^ 3.0))) / Float64(2.0 + (Float64(k / t) ^ 2.0))); else tmp = Float64(2.0 * Float64(Float64(l / t) / Float64((k ^ 4.0) / l))); end return tmp end
function tmp_2 = code(t, l, k) tmp = 0.0; if ((t <= -2.5e-103) || ~((t <= 4.6e-120))) tmp = (((l / k) * (l / k)) * (2.0 / (t ^ 3.0))) / (2.0 + ((k / t) ^ 2.0)); else tmp = 2.0 * ((l / t) / ((k ^ 4.0) / l)); end tmp_2 = tmp; end
code[t_, l_, k_] := If[Or[LessEqual[t, -2.5e-103], N[Not[LessEqual[t, 4.6e-120]], $MachinePrecision]], N[(N[(N[(N[(l / k), $MachinePrecision] * N[(l / k), $MachinePrecision]), $MachinePrecision] * N[(2.0 / N[Power[t, 3.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(2.0 + N[Power[N[(k / t), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(2.0 * N[(N[(l / t), $MachinePrecision] / N[(N[Power[k, 4.0], $MachinePrecision] / l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -2.5 \cdot 10^{-103} \lor \neg \left(t \leq 4.6 \cdot 10^{-120}\right):\\
\;\;\;\;\frac{\left(\frac{\ell}{k} \cdot \frac{\ell}{k}\right) \cdot \frac{2}{{t}^{3}}}{2 + {\left(\frac{k}{t}\right)}^{2}}\\
\mathbf{else}:\\
\;\;\;\;2 \cdot \frac{\frac{\ell}{t}}{\frac{{k}^{4}}{\ell}}\\
\end{array}
\end{array}
if t < -2.49999999999999983e-103 or 4.59999999999999973e-120 < t Initial program 64.7%
associate-/r*64.9%
associate-*l*55.4%
sqr-neg55.4%
associate-*l*64.9%
*-commutative64.9%
sqr-neg64.9%
associate-/r*64.9%
Simplified64.7%
cube-mult64.7%
*-un-lft-identity64.7%
times-frac67.2%
associate-/l*70.9%
Applied egg-rr70.9%
Taylor expanded in t around 0 67.4%
unpow267.4%
times-frac73.7%
unpow273.7%
associate-/l*80.3%
Simplified80.3%
Taylor expanded in k around 0 50.4%
associate-*r/50.4%
*-commutative50.4%
times-frac50.2%
unpow250.2%
unpow250.2%
times-frac64.9%
Simplified64.9%
if -2.49999999999999983e-103 < t < 4.59999999999999973e-120Initial program 35.8%
associate-/r*35.8%
associate-*l*35.8%
sqr-neg35.8%
associate-*l*35.8%
*-commutative35.8%
sqr-neg35.8%
associate-*l/35.8%
associate-*r/35.8%
associate-/r/35.8%
Simplified35.8%
Taylor expanded in k around inf 77.4%
times-frac75.9%
unpow275.9%
unpow275.9%
Simplified75.9%
Taylor expanded in k around 0 60.6%
*-commutative60.6%
unpow260.6%
Simplified60.6%
Taylor expanded in l around 0 60.5%
unpow260.5%
times-frac67.6%
associate-*l/66.5%
*-commutative66.5%
associate-/l*67.6%
Simplified67.6%
Final simplification65.9%
(FPCore (t l k) :precision binary64 (if (or (<= t -3e-22) (not (<= t 2050000.0))) (/ l (/ (* k (* (pow t 3.0) k)) l)) (* 2.0 (/ (/ l t) (/ (pow k 4.0) l)))))
double code(double t, double l, double k) {
double tmp;
if ((t <= -3e-22) || !(t <= 2050000.0)) {
tmp = l / ((k * (pow(t, 3.0) * k)) / l);
} else {
tmp = 2.0 * ((l / t) / (pow(k, 4.0) / l));
}
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 <= (-3d-22)) .or. (.not. (t <= 2050000.0d0))) then
tmp = l / ((k * ((t ** 3.0d0) * k)) / l)
else
tmp = 2.0d0 * ((l / t) / ((k ** 4.0d0) / l))
end if
code = tmp
end function
public static double code(double t, double l, double k) {
double tmp;
if ((t <= -3e-22) || !(t <= 2050000.0)) {
tmp = l / ((k * (Math.pow(t, 3.0) * k)) / l);
} else {
tmp = 2.0 * ((l / t) / (Math.pow(k, 4.0) / l));
}
return tmp;
}
def code(t, l, k): tmp = 0 if (t <= -3e-22) or not (t <= 2050000.0): tmp = l / ((k * (math.pow(t, 3.0) * k)) / l) else: tmp = 2.0 * ((l / t) / (math.pow(k, 4.0) / l)) return tmp
function code(t, l, k) tmp = 0.0 if ((t <= -3e-22) || !(t <= 2050000.0)) tmp = Float64(l / Float64(Float64(k * Float64((t ^ 3.0) * k)) / l)); else tmp = Float64(2.0 * Float64(Float64(l / t) / Float64((k ^ 4.0) / l))); end return tmp end
function tmp_2 = code(t, l, k) tmp = 0.0; if ((t <= -3e-22) || ~((t <= 2050000.0))) tmp = l / ((k * ((t ^ 3.0) * k)) / l); else tmp = 2.0 * ((l / t) / ((k ^ 4.0) / l)); end tmp_2 = tmp; end
code[t_, l_, k_] := If[Or[LessEqual[t, -3e-22], N[Not[LessEqual[t, 2050000.0]], $MachinePrecision]], N[(l / N[(N[(k * N[(N[Power[t, 3.0], $MachinePrecision] * k), $MachinePrecision]), $MachinePrecision] / l), $MachinePrecision]), $MachinePrecision], N[(2.0 * N[(N[(l / t), $MachinePrecision] / N[(N[Power[k, 4.0], $MachinePrecision] / l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -3 \cdot 10^{-22} \lor \neg \left(t \leq 2050000\right):\\
\;\;\;\;\frac{\ell}{\frac{k \cdot \left({t}^{3} \cdot k\right)}{\ell}}\\
\mathbf{else}:\\
\;\;\;\;2 \cdot \frac{\frac{\ell}{t}}{\frac{{k}^{4}}{\ell}}\\
\end{array}
\end{array}
if t < -2.9999999999999999e-22 or 2.05e6 < t Initial program 65.5%
associate-/r*65.5%
associate-*l*52.5%
sqr-neg52.5%
associate-*l*65.5%
*-commutative65.5%
sqr-neg65.5%
associate-*l/65.5%
associate-*r/64.1%
associate-/r/63.8%
Simplified63.8%
Taylor expanded in k around 0 50.1%
unpow250.1%
*-commutative50.1%
times-frac52.2%
unpow252.2%
Simplified52.2%
Taylor expanded in l around 0 50.1%
unpow250.1%
*-commutative50.1%
unpow250.1%
associate-/l*52.6%
unpow252.6%
*-commutative52.6%
unpow252.6%
Simplified52.6%
Taylor expanded in k around 0 52.6%
unpow252.6%
associate-*r*64.2%
Simplified64.2%
if -2.9999999999999999e-22 < t < 2.05e6Initial program 44.1%
associate-/r*44.4%
associate-*l*44.3%
sqr-neg44.3%
associate-*l*44.4%
*-commutative44.4%
sqr-neg44.4%
associate-*l/44.3%
associate-*r/44.3%
associate-/r/44.3%
Simplified44.3%
Taylor expanded in k around inf 73.7%
times-frac72.0%
unpow272.0%
unpow272.0%
Simplified72.0%
Taylor expanded in k around 0 57.7%
*-commutative57.7%
unpow257.7%
Simplified57.7%
Taylor expanded in l around 0 57.6%
unpow257.6%
times-frac63.5%
associate-*l/61.9%
*-commutative61.9%
associate-/l*63.5%
Simplified63.5%
Final simplification63.8%
(FPCore (t l k)
:precision binary64
(if (<= t -1.46e-265)
(*
2.0
(*
(/ (* l l) (* k k))
(- (/ 1.0 (* t (* k k))) (/ 0.16666666666666666 t))))
(* 2.0 (* (/ l t) (/ l (pow k 4.0))))))
double code(double t, double l, double k) {
double tmp;
if (t <= -1.46e-265) {
tmp = 2.0 * (((l * l) / (k * k)) * ((1.0 / (t * (k * k))) - (0.16666666666666666 / t)));
} else {
tmp = 2.0 * ((l / t) * (l / pow(k, 4.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.46d-265)) then
tmp = 2.0d0 * (((l * l) / (k * k)) * ((1.0d0 / (t * (k * k))) - (0.16666666666666666d0 / t)))
else
tmp = 2.0d0 * ((l / t) * (l / (k ** 4.0d0)))
end if
code = tmp
end function
public static double code(double t, double l, double k) {
double tmp;
if (t <= -1.46e-265) {
tmp = 2.0 * (((l * l) / (k * k)) * ((1.0 / (t * (k * k))) - (0.16666666666666666 / t)));
} else {
tmp = 2.0 * ((l / t) * (l / Math.pow(k, 4.0)));
}
return tmp;
}
def code(t, l, k): tmp = 0 if t <= -1.46e-265: tmp = 2.0 * (((l * l) / (k * k)) * ((1.0 / (t * (k * k))) - (0.16666666666666666 / t))) else: tmp = 2.0 * ((l / t) * (l / math.pow(k, 4.0))) return tmp
function code(t, l, k) tmp = 0.0 if (t <= -1.46e-265) tmp = Float64(2.0 * Float64(Float64(Float64(l * l) / Float64(k * k)) * Float64(Float64(1.0 / Float64(t * Float64(k * k))) - Float64(0.16666666666666666 / t)))); else tmp = Float64(2.0 * Float64(Float64(l / t) * Float64(l / (k ^ 4.0)))); end return tmp end
function tmp_2 = code(t, l, k) tmp = 0.0; if (t <= -1.46e-265) tmp = 2.0 * (((l * l) / (k * k)) * ((1.0 / (t * (k * k))) - (0.16666666666666666 / t))); else tmp = 2.0 * ((l / t) * (l / (k ^ 4.0))); end tmp_2 = tmp; end
code[t_, l_, k_] := If[LessEqual[t, -1.46e-265], N[(2.0 * N[(N[(N[(l * l), $MachinePrecision] / N[(k * k), $MachinePrecision]), $MachinePrecision] * N[(N[(1.0 / N[(t * N[(k * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(0.16666666666666666 / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(2.0 * N[(N[(l / t), $MachinePrecision] * N[(l / N[Power[k, 4.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.46 \cdot 10^{-265}:\\
\;\;\;\;2 \cdot \left(\frac{\ell \cdot \ell}{k \cdot k} \cdot \left(\frac{1}{t \cdot \left(k \cdot k\right)} - \frac{0.16666666666666666}{t}\right)\right)\\
\mathbf{else}:\\
\;\;\;\;2 \cdot \left(\frac{\ell}{t} \cdot \frac{\ell}{{k}^{4}}\right)\\
\end{array}
\end{array}
if t < -1.46000000000000005e-265Initial program 54.4%
associate-/r*54.4%
associate-*l*47.8%
sqr-neg47.8%
associate-*l*54.4%
*-commutative54.4%
sqr-neg54.4%
associate-*l/54.4%
associate-*r/53.4%
associate-/r/53.4%
Simplified53.4%
Taylor expanded in k around inf 56.5%
times-frac59.2%
unpow259.2%
unpow259.2%
Simplified59.2%
Taylor expanded in k around 0 55.0%
*-commutative55.0%
unpow255.0%
associate-*r/55.0%
metadata-eval55.0%
Simplified55.0%
if -1.46000000000000005e-265 < t Initial program 53.7%
associate-/r*53.9%
associate-*l*48.4%
sqr-neg48.4%
associate-*l*53.9%
*-commutative53.9%
sqr-neg53.9%
associate-*l/53.9%
associate-*r/53.4%
associate-/r/53.2%
Simplified53.2%
Taylor expanded in k around inf 64.6%
times-frac63.0%
unpow263.0%
unpow263.0%
Simplified63.0%
Taylor expanded in k around 0 54.6%
unpow254.6%
*-commutative54.6%
times-frac59.1%
Simplified59.1%
Final simplification57.4%
(FPCore (t l k)
:precision binary64
(if (<= t -5.2e-267)
(*
2.0
(*
(/ (* l l) (* k k))
(- (/ 1.0 (* t (* k k))) (/ 0.16666666666666666 t))))
(* 2.0 (/ (/ l t) (/ (pow k 4.0) l)))))
double code(double t, double l, double k) {
double tmp;
if (t <= -5.2e-267) {
tmp = 2.0 * (((l * l) / (k * k)) * ((1.0 / (t * (k * k))) - (0.16666666666666666 / t)));
} else {
tmp = 2.0 * ((l / t) / (pow(k, 4.0) / l));
}
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.2d-267)) then
tmp = 2.0d0 * (((l * l) / (k * k)) * ((1.0d0 / (t * (k * k))) - (0.16666666666666666d0 / t)))
else
tmp = 2.0d0 * ((l / t) / ((k ** 4.0d0) / l))
end if
code = tmp
end function
public static double code(double t, double l, double k) {
double tmp;
if (t <= -5.2e-267) {
tmp = 2.0 * (((l * l) / (k * k)) * ((1.0 / (t * (k * k))) - (0.16666666666666666 / t)));
} else {
tmp = 2.0 * ((l / t) / (Math.pow(k, 4.0) / l));
}
return tmp;
}
def code(t, l, k): tmp = 0 if t <= -5.2e-267: tmp = 2.0 * (((l * l) / (k * k)) * ((1.0 / (t * (k * k))) - (0.16666666666666666 / t))) else: tmp = 2.0 * ((l / t) / (math.pow(k, 4.0) / l)) return tmp
function code(t, l, k) tmp = 0.0 if (t <= -5.2e-267) tmp = Float64(2.0 * Float64(Float64(Float64(l * l) / Float64(k * k)) * Float64(Float64(1.0 / Float64(t * Float64(k * k))) - Float64(0.16666666666666666 / t)))); else tmp = Float64(2.0 * Float64(Float64(l / t) / Float64((k ^ 4.0) / l))); end return tmp end
function tmp_2 = code(t, l, k) tmp = 0.0; if (t <= -5.2e-267) tmp = 2.0 * (((l * l) / (k * k)) * ((1.0 / (t * (k * k))) - (0.16666666666666666 / t))); else tmp = 2.0 * ((l / t) / ((k ^ 4.0) / l)); end tmp_2 = tmp; end
code[t_, l_, k_] := If[LessEqual[t, -5.2e-267], N[(2.0 * N[(N[(N[(l * l), $MachinePrecision] / N[(k * k), $MachinePrecision]), $MachinePrecision] * N[(N[(1.0 / N[(t * N[(k * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(0.16666666666666666 / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(2.0 * N[(N[(l / t), $MachinePrecision] / N[(N[Power[k, 4.0], $MachinePrecision] / l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -5.2 \cdot 10^{-267}:\\
\;\;\;\;2 \cdot \left(\frac{\ell \cdot \ell}{k \cdot k} \cdot \left(\frac{1}{t \cdot \left(k \cdot k\right)} - \frac{0.16666666666666666}{t}\right)\right)\\
\mathbf{else}:\\
\;\;\;\;2 \cdot \frac{\frac{\ell}{t}}{\frac{{k}^{4}}{\ell}}\\
\end{array}
\end{array}
if t < -5.2000000000000003e-267Initial program 54.4%
associate-/r*54.4%
associate-*l*47.8%
sqr-neg47.8%
associate-*l*54.4%
*-commutative54.4%
sqr-neg54.4%
associate-*l/54.4%
associate-*r/53.4%
associate-/r/53.4%
Simplified53.4%
Taylor expanded in k around inf 56.5%
times-frac59.2%
unpow259.2%
unpow259.2%
Simplified59.2%
Taylor expanded in k around 0 55.0%
*-commutative55.0%
unpow255.0%
associate-*r/55.0%
metadata-eval55.0%
Simplified55.0%
if -5.2000000000000003e-267 < t Initial program 53.7%
associate-/r*53.9%
associate-*l*48.4%
sqr-neg48.4%
associate-*l*53.9%
*-commutative53.9%
sqr-neg53.9%
associate-*l/53.9%
associate-*r/53.4%
associate-/r/53.2%
Simplified53.2%
Taylor expanded in k around inf 64.6%
times-frac63.0%
unpow263.0%
unpow263.0%
Simplified63.0%
Taylor expanded in k around 0 55.4%
*-commutative55.4%
unpow255.4%
Simplified55.4%
Taylor expanded in l around 0 54.6%
unpow254.6%
times-frac59.1%
associate-*l/58.2%
*-commutative58.2%
associate-/l*59.1%
Simplified59.1%
Final simplification57.4%
(FPCore (t l k) :precision binary64 (if (<= t -1.46e-39) (* (/ l (pow t 3.0)) (/ l (* k k))) (* 2.0 (/ (/ l t) (/ (pow k 4.0) l)))))
double code(double t, double l, double k) {
double tmp;
if (t <= -1.46e-39) {
tmp = (l / pow(t, 3.0)) * (l / (k * k));
} else {
tmp = 2.0 * ((l / t) / (pow(k, 4.0) / l));
}
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.46d-39)) then
tmp = (l / (t ** 3.0d0)) * (l / (k * k))
else
tmp = 2.0d0 * ((l / t) / ((k ** 4.0d0) / l))
end if
code = tmp
end function
public static double code(double t, double l, double k) {
double tmp;
if (t <= -1.46e-39) {
tmp = (l / Math.pow(t, 3.0)) * (l / (k * k));
} else {
tmp = 2.0 * ((l / t) / (Math.pow(k, 4.0) / l));
}
return tmp;
}
def code(t, l, k): tmp = 0 if t <= -1.46e-39: tmp = (l / math.pow(t, 3.0)) * (l / (k * k)) else: tmp = 2.0 * ((l / t) / (math.pow(k, 4.0) / l)) return tmp
function code(t, l, k) tmp = 0.0 if (t <= -1.46e-39) tmp = Float64(Float64(l / (t ^ 3.0)) * Float64(l / Float64(k * k))); else tmp = Float64(2.0 * Float64(Float64(l / t) / Float64((k ^ 4.0) / l))); end return tmp end
function tmp_2 = code(t, l, k) tmp = 0.0; if (t <= -1.46e-39) tmp = (l / (t ^ 3.0)) * (l / (k * k)); else tmp = 2.0 * ((l / t) / ((k ^ 4.0) / l)); end tmp_2 = tmp; end
code[t_, l_, k_] := If[LessEqual[t, -1.46e-39], N[(N[(l / N[Power[t, 3.0], $MachinePrecision]), $MachinePrecision] * N[(l / N[(k * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(2.0 * N[(N[(l / t), $MachinePrecision] / N[(N[Power[k, 4.0], $MachinePrecision] / l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.46 \cdot 10^{-39}:\\
\;\;\;\;\frac{\ell}{{t}^{3}} \cdot \frac{\ell}{k \cdot k}\\
\mathbf{else}:\\
\;\;\;\;2 \cdot \frac{\frac{\ell}{t}}{\frac{{k}^{4}}{\ell}}\\
\end{array}
\end{array}
if t < -1.46000000000000001e-39Initial program 61.6%
associate-/r*61.6%
associate-*l*50.1%
sqr-neg50.1%
associate-*l*61.6%
*-commutative61.6%
sqr-neg61.6%
associate-*l/61.6%
associate-*r/59.9%
associate-/r/59.9%
Simplified59.9%
Taylor expanded in k around 0 48.4%
unpow248.4%
*-commutative48.4%
times-frac50.7%
unpow250.7%
Simplified50.7%
if -1.46000000000000001e-39 < t Initial program 51.5%
associate-/r*51.7%
associate-*l*47.4%
sqr-neg47.4%
associate-*l*51.7%
*-commutative51.7%
sqr-neg51.7%
associate-*l/51.6%
associate-*r/51.3%
associate-/r/51.1%
Simplified51.1%
Taylor expanded in k around inf 67.7%
times-frac66.4%
unpow266.4%
unpow266.4%
Simplified66.4%
Taylor expanded in k around 0 56.7%
*-commutative56.7%
unpow256.7%
Simplified56.7%
Taylor expanded in l around 0 56.1%
unpow256.1%
times-frac60.5%
associate-*l/59.3%
*-commutative59.3%
associate-/l*60.5%
Simplified60.5%
Final simplification58.1%
(FPCore (t l k) :precision binary64 (if (<= t -2.45e-41) (/ l (* (pow t 3.0) (/ (* k k) l))) (* 2.0 (/ (/ l t) (/ (pow k 4.0) l)))))
double code(double t, double l, double k) {
double tmp;
if (t <= -2.45e-41) {
tmp = l / (pow(t, 3.0) * ((k * k) / l));
} else {
tmp = 2.0 * ((l / t) / (pow(k, 4.0) / l));
}
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.45d-41)) then
tmp = l / ((t ** 3.0d0) * ((k * k) / l))
else
tmp = 2.0d0 * ((l / t) / ((k ** 4.0d0) / l))
end if
code = tmp
end function
public static double code(double t, double l, double k) {
double tmp;
if (t <= -2.45e-41) {
tmp = l / (Math.pow(t, 3.0) * ((k * k) / l));
} else {
tmp = 2.0 * ((l / t) / (Math.pow(k, 4.0) / l));
}
return tmp;
}
def code(t, l, k): tmp = 0 if t <= -2.45e-41: tmp = l / (math.pow(t, 3.0) * ((k * k) / l)) else: tmp = 2.0 * ((l / t) / (math.pow(k, 4.0) / l)) return tmp
function code(t, l, k) tmp = 0.0 if (t <= -2.45e-41) tmp = Float64(l / Float64((t ^ 3.0) * Float64(Float64(k * k) / l))); else tmp = Float64(2.0 * Float64(Float64(l / t) / Float64((k ^ 4.0) / l))); end return tmp end
function tmp_2 = code(t, l, k) tmp = 0.0; if (t <= -2.45e-41) tmp = l / ((t ^ 3.0) * ((k * k) / l)); else tmp = 2.0 * ((l / t) / ((k ^ 4.0) / l)); end tmp_2 = tmp; end
code[t_, l_, k_] := If[LessEqual[t, -2.45e-41], N[(l / N[(N[Power[t, 3.0], $MachinePrecision] * N[(N[(k * k), $MachinePrecision] / l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(2.0 * N[(N[(l / t), $MachinePrecision] / N[(N[Power[k, 4.0], $MachinePrecision] / l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -2.45 \cdot 10^{-41}:\\
\;\;\;\;\frac{\ell}{{t}^{3} \cdot \frac{k \cdot k}{\ell}}\\
\mathbf{else}:\\
\;\;\;\;2 \cdot \frac{\frac{\ell}{t}}{\frac{{k}^{4}}{\ell}}\\
\end{array}
\end{array}
if t < -2.44999999999999977e-41Initial program 61.6%
associate-/r*61.6%
associate-*l*50.1%
sqr-neg50.1%
associate-*l*61.6%
*-commutative61.6%
sqr-neg61.6%
associate-*l/61.6%
associate-*r/59.9%
associate-/r/59.9%
Simplified59.9%
Taylor expanded in k around 0 48.4%
unpow248.4%
*-commutative48.4%
times-frac50.7%
unpow250.7%
Simplified50.7%
Taylor expanded in l around 0 48.4%
unpow248.4%
*-commutative48.4%
unpow248.4%
associate-/l*49.7%
unpow249.7%
*-commutative49.7%
unpow249.7%
Simplified49.7%
Taylor expanded in k around 0 49.7%
associate-*l/50.8%
unpow250.8%
Simplified50.8%
if -2.44999999999999977e-41 < t Initial program 51.5%
associate-/r*51.7%
associate-*l*47.4%
sqr-neg47.4%
associate-*l*51.7%
*-commutative51.7%
sqr-neg51.7%
associate-*l/51.6%
associate-*r/51.3%
associate-/r/51.1%
Simplified51.1%
Taylor expanded in k around inf 67.7%
times-frac66.4%
unpow266.4%
unpow266.4%
Simplified66.4%
Taylor expanded in k around 0 56.7%
*-commutative56.7%
unpow256.7%
Simplified56.7%
Taylor expanded in l around 0 56.1%
unpow256.1%
times-frac60.5%
associate-*l/59.3%
*-commutative59.3%
associate-/l*60.5%
Simplified60.5%
Final simplification58.1%
(FPCore (t l k) :precision binary64 (* 2.0 (* (/ (* l l) (* k k)) (- (/ 1.0 (* t (* k k))) (/ 0.16666666666666666 t)))))
double code(double t, double l, double k) {
return 2.0 * (((l * l) / (k * k)) * ((1.0 / (t * (k * k))) - (0.16666666666666666 / 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 * (((l * l) / (k * k)) * ((1.0d0 / (t * (k * k))) - (0.16666666666666666d0 / t)))
end function
public static double code(double t, double l, double k) {
return 2.0 * (((l * l) / (k * k)) * ((1.0 / (t * (k * k))) - (0.16666666666666666 / t)));
}
def code(t, l, k): return 2.0 * (((l * l) / (k * k)) * ((1.0 / (t * (k * k))) - (0.16666666666666666 / t)))
function code(t, l, k) return Float64(2.0 * Float64(Float64(Float64(l * l) / Float64(k * k)) * Float64(Float64(1.0 / Float64(t * Float64(k * k))) - Float64(0.16666666666666666 / t)))) end
function tmp = code(t, l, k) tmp = 2.0 * (((l * l) / (k * k)) * ((1.0 / (t * (k * k))) - (0.16666666666666666 / t))); end
code[t_, l_, k_] := N[(2.0 * N[(N[(N[(l * l), $MachinePrecision] / N[(k * k), $MachinePrecision]), $MachinePrecision] * N[(N[(1.0 / N[(t * N[(k * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(0.16666666666666666 / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
2 \cdot \left(\frac{\ell \cdot \ell}{k \cdot k} \cdot \left(\frac{1}{t \cdot \left(k \cdot k\right)} - \frac{0.16666666666666666}{t}\right)\right)
\end{array}
Initial program 54.0%
associate-/r*54.1%
associate-*l*48.1%
sqr-neg48.1%
associate-*l*54.1%
*-commutative54.1%
sqr-neg54.1%
associate-*l/54.1%
associate-*r/53.4%
associate-/r/53.3%
Simplified53.3%
Taylor expanded in k around inf 61.1%
times-frac61.3%
unpow261.3%
unpow261.3%
Simplified61.3%
Taylor expanded in k around 0 55.5%
*-commutative55.5%
unpow255.5%
associate-*r/55.5%
metadata-eval55.5%
Simplified55.5%
Final simplification55.5%
(FPCore (t l k) :precision binary64 (* 2.0 (* (/ 1.0 (* t (* k k))) (* l (/ l (* k k))))))
double code(double t, double l, double k) {
return 2.0 * ((1.0 / (t * (k * k))) * (l * (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 * ((1.0d0 / (t * (k * k))) * (l * (l / (k * k))))
end function
public static double code(double t, double l, double k) {
return 2.0 * ((1.0 / (t * (k * k))) * (l * (l / (k * k))));
}
def code(t, l, k): return 2.0 * ((1.0 / (t * (k * k))) * (l * (l / (k * k))))
function code(t, l, k) return Float64(2.0 * Float64(Float64(1.0 / Float64(t * Float64(k * k))) * Float64(l * Float64(l / Float64(k * k))))) end
function tmp = code(t, l, k) tmp = 2.0 * ((1.0 / (t * (k * k))) * (l * (l / (k * k)))); end
code[t_, l_, k_] := N[(2.0 * N[(N[(1.0 / N[(t * N[(k * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(l * N[(l / N[(k * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
2 \cdot \left(\frac{1}{t \cdot \left(k \cdot k\right)} \cdot \left(\ell \cdot \frac{\ell}{k \cdot k}\right)\right)
\end{array}
Initial program 54.0%
associate-/r*54.1%
associate-*l*48.1%
sqr-neg48.1%
associate-*l*54.1%
*-commutative54.1%
sqr-neg54.1%
associate-*l/54.1%
associate-*r/53.4%
associate-/r/53.3%
Simplified53.3%
Taylor expanded in k around inf 61.1%
times-frac61.3%
unpow261.3%
unpow261.3%
Simplified61.3%
Taylor expanded in k around 0 54.0%
*-commutative54.0%
unpow254.0%
Simplified54.0%
Taylor expanded in l around 0 54.0%
*-rgt-identity54.0%
associate-*r/53.6%
unpow253.6%
unpow253.6%
associate-*l*53.5%
unpow253.5%
associate-*r/53.5%
*-rgt-identity53.5%
unpow253.5%
Simplified53.5%
Final simplification53.5%
(FPCore (t l k) :precision binary64 (* 2.0 (* (/ (* l l) (* k k)) (/ 1.0 (* k (* t k))))))
double code(double t, double l, double k) {
return 2.0 * (((l * l) / (k * k)) * (1.0 / (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 * (((l * l) / (k * k)) * (1.0d0 / (k * (t * k))))
end function
public static double code(double t, double l, double k) {
return 2.0 * (((l * l) / (k * k)) * (1.0 / (k * (t * k))));
}
def code(t, l, k): return 2.0 * (((l * l) / (k * k)) * (1.0 / (k * (t * k))))
function code(t, l, k) return Float64(2.0 * Float64(Float64(Float64(l * l) / Float64(k * k)) * Float64(1.0 / Float64(k * Float64(t * k))))) end
function tmp = code(t, l, k) tmp = 2.0 * (((l * l) / (k * k)) * (1.0 / (k * (t * k)))); end
code[t_, l_, k_] := N[(2.0 * N[(N[(N[(l * l), $MachinePrecision] / N[(k * k), $MachinePrecision]), $MachinePrecision] * N[(1.0 / N[(k * N[(t * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
2 \cdot \left(\frac{\ell \cdot \ell}{k \cdot k} \cdot \frac{1}{k \cdot \left(t \cdot k\right)}\right)
\end{array}
Initial program 54.0%
associate-/r*54.1%
associate-*l*48.1%
sqr-neg48.1%
associate-*l*54.1%
*-commutative54.1%
sqr-neg54.1%
associate-*l/54.1%
associate-*r/53.4%
associate-/r/53.3%
Simplified53.3%
Taylor expanded in k around inf 61.1%
times-frac61.3%
unpow261.3%
unpow261.3%
Simplified61.3%
Taylor expanded in k around 0 54.0%
*-commutative54.0%
unpow254.0%
Simplified54.0%
Taylor expanded in t around 0 54.0%
unpow254.0%
associate-*l*54.0%
Simplified54.0%
Final simplification54.0%
(FPCore (t l k) :precision binary64 (* 2.0 (/ (* (/ l k) (/ l k)) (* t (* k k)))))
double code(double t, double l, double k) {
return 2.0 * (((l / k) * (l / k)) / (t * (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 * (((l / k) * (l / k)) / (t * (k * k)))
end function
public static double code(double t, double l, double k) {
return 2.0 * (((l / k) * (l / k)) / (t * (k * k)));
}
def code(t, l, k): return 2.0 * (((l / k) * (l / k)) / (t * (k * k)))
function code(t, l, k) return Float64(2.0 * Float64(Float64(Float64(l / k) * Float64(l / k)) / Float64(t * Float64(k * k)))) end
function tmp = code(t, l, k) tmp = 2.0 * (((l / k) * (l / k)) / (t * (k * k))); end
code[t_, l_, k_] := N[(2.0 * N[(N[(N[(l / k), $MachinePrecision] * N[(l / k), $MachinePrecision]), $MachinePrecision] / N[(t * N[(k * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
2 \cdot \frac{\frac{\ell}{k} \cdot \frac{\ell}{k}}{t \cdot \left(k \cdot k\right)}
\end{array}
Initial program 54.0%
associate-/r*54.1%
associate-*l*48.1%
sqr-neg48.1%
associate-*l*54.1%
*-commutative54.1%
sqr-neg54.1%
associate-*l/54.1%
associate-*r/53.4%
associate-/r/53.3%
Simplified53.3%
Taylor expanded in k around inf 61.1%
times-frac61.3%
unpow261.3%
unpow261.3%
Simplified61.3%
Taylor expanded in k around 0 54.0%
*-commutative54.0%
unpow254.0%
Simplified54.0%
un-div-inv54.0%
times-frac53.5%
Applied egg-rr53.5%
Final simplification53.5%
herbie shell --seed 2023293
(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))))