
(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
(let* ((t_1 (pow (/ k t) 2.0)))
(if (<=
(* (* (* (/ (pow t 3.0) (* l l)) (sin k)) (tan k)) (+ 1.0 (+ 1.0 t_1)))
INFINITY)
(* l (* l (/ 2.0 (* (tan k) (* (+ 2.0 t_1) (* (pow t 3.0) (sin k)))))))
(* 2.0 (* (/ l k) (* (/ l k) (* (cos k) (/ (pow (sin k) -2.0) t))))))))
double code(double t, double l, double k) {
double t_1 = pow((k / t), 2.0);
double tmp;
if (((((pow(t, 3.0) / (l * l)) * sin(k)) * tan(k)) * (1.0 + (1.0 + t_1))) <= ((double) INFINITY)) {
tmp = l * (l * (2.0 / (tan(k) * ((2.0 + t_1) * (pow(t, 3.0) * sin(k))))));
} else {
tmp = 2.0 * ((l / k) * ((l / k) * (cos(k) * (pow(sin(k), -2.0) / t))));
}
return tmp;
}
public static double code(double t, double l, double k) {
double t_1 = Math.pow((k / t), 2.0);
double tmp;
if (((((Math.pow(t, 3.0) / (l * l)) * Math.sin(k)) * Math.tan(k)) * (1.0 + (1.0 + t_1))) <= Double.POSITIVE_INFINITY) {
tmp = l * (l * (2.0 / (Math.tan(k) * ((2.0 + t_1) * (Math.pow(t, 3.0) * Math.sin(k))))));
} else {
tmp = 2.0 * ((l / k) * ((l / k) * (Math.cos(k) * (Math.pow(Math.sin(k), -2.0) / t))));
}
return tmp;
}
def code(t, l, k): t_1 = math.pow((k / t), 2.0) tmp = 0 if ((((math.pow(t, 3.0) / (l * l)) * math.sin(k)) * math.tan(k)) * (1.0 + (1.0 + t_1))) <= math.inf: tmp = l * (l * (2.0 / (math.tan(k) * ((2.0 + t_1) * (math.pow(t, 3.0) * math.sin(k)))))) else: tmp = 2.0 * ((l / k) * ((l / k) * (math.cos(k) * (math.pow(math.sin(k), -2.0) / t)))) return tmp
function code(t, l, k) t_1 = Float64(k / t) ^ 2.0 tmp = 0.0 if (Float64(Float64(Float64(Float64((t ^ 3.0) / Float64(l * l)) * sin(k)) * tan(k)) * Float64(1.0 + Float64(1.0 + t_1))) <= Inf) tmp = Float64(l * Float64(l * Float64(2.0 / Float64(tan(k) * Float64(Float64(2.0 + t_1) * Float64((t ^ 3.0) * sin(k))))))); else tmp = Float64(2.0 * Float64(Float64(l / k) * Float64(Float64(l / k) * Float64(cos(k) * Float64((sin(k) ^ -2.0) / t))))); end return tmp end
function tmp_2 = code(t, l, k) t_1 = (k / t) ^ 2.0; tmp = 0.0; if ((((((t ^ 3.0) / (l * l)) * sin(k)) * tan(k)) * (1.0 + (1.0 + t_1))) <= Inf) tmp = l * (l * (2.0 / (tan(k) * ((2.0 + t_1) * ((t ^ 3.0) * sin(k)))))); else tmp = 2.0 * ((l / k) * ((l / k) * (cos(k) * ((sin(k) ^ -2.0) / t)))); end tmp_2 = tmp; end
code[t_, l_, k_] := Block[{t$95$1 = N[Power[N[(k / t), $MachinePrecision], 2.0], $MachinePrecision]}, If[LessEqual[N[(N[(N[(N[(N[Power[t, 3.0], $MachinePrecision] / N[(l * l), $MachinePrecision]), $MachinePrecision] * N[Sin[k], $MachinePrecision]), $MachinePrecision] * N[Tan[k], $MachinePrecision]), $MachinePrecision] * N[(1.0 + N[(1.0 + t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], Infinity], N[(l * N[(l * N[(2.0 / N[(N[Tan[k], $MachinePrecision] * N[(N[(2.0 + t$95$1), $MachinePrecision] * N[(N[Power[t, 3.0], $MachinePrecision] * N[Sin[k], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(2.0 * N[(N[(l / k), $MachinePrecision] * N[(N[(l / k), $MachinePrecision] * N[(N[Cos[k], $MachinePrecision] * N[(N[Power[N[Sin[k], $MachinePrecision], -2.0], $MachinePrecision] / t), $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:\\
\;\;\;\;\ell \cdot \left(\ell \cdot \frac{2}{\tan k \cdot \left(\left(2 + t_1\right) \cdot \left({t}^{3} \cdot \sin k\right)\right)}\right)\\
\mathbf{else}:\\
\;\;\;\;2 \cdot \left(\frac{\ell}{k} \cdot \left(\frac{\ell}{k} \cdot \left(\cos k \cdot \frac{{\sin k}^{-2}}{t}\right)\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 76.4%
associate-/l/76.4%
associate-*l/78.1%
associate-*l/76.9%
associate-/r/76.7%
*-commutative76.7%
associate-/l/76.7%
associate-*r*76.7%
*-commutative76.7%
associate-*r*76.7%
*-commutative76.7%
Simplified76.7%
expm1-log1p-u60.2%
expm1-udef55.9%
associate-*l*58.1%
Applied egg-rr58.1%
expm1-def63.7%
expm1-log1p80.9%
*-commutative80.9%
Simplified80.9%
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-/l/0.0%
associate-*l/0.0%
associate-*l/0.0%
associate-/r/0.0%
*-commutative0.0%
associate-/l/0.0%
associate-*r*0.0%
*-commutative0.0%
associate-*r*0.0%
*-commutative0.0%
Simplified0.0%
Taylor expanded in k around inf 41.4%
*-commutative41.4%
times-frac40.1%
unpow240.1%
unpow240.1%
times-frac71.5%
Simplified71.5%
Taylor expanded in l around 0 41.4%
associate-/r*40.2%
associate-*r/40.2%
unpow240.2%
unpow240.2%
times-frac71.5%
unpow271.5%
*-commutative71.5%
*-commutative71.5%
times-frac71.6%
Simplified71.6%
pow271.6%
frac-times71.5%
associate-*r/68.1%
*-commutative68.1%
associate-*r/68.2%
frac-times74.2%
*-commutative74.2%
*-commutative74.2%
Applied egg-rr74.2%
times-frac68.2%
associate-*l/71.5%
*-commutative71.5%
un-div-inv71.5%
associate-*l*79.0%
associate-/r*79.0%
pow-flip79.0%
metadata-eval79.0%
Applied egg-rr79.0%
Final simplification80.3%
(FPCore (t l k)
:precision binary64
(if (or (<= k -3.8e-20) (not (<= k 1.6e-23)))
(* 2.0 (* (/ l k) (* (/ l k) (* (cos k) (/ (pow (sin k) -2.0) t)))))
(/
2.0
(* (/ k l) (/ (* (tan k) (+ 2.0 (pow (/ k t) 2.0))) (/ l (pow t 3.0)))))))
double code(double t, double l, double k) {
double tmp;
if ((k <= -3.8e-20) || !(k <= 1.6e-23)) {
tmp = 2.0 * ((l / k) * ((l / k) * (cos(k) * (pow(sin(k), -2.0) / t))));
} else {
tmp = 2.0 / ((k / l) * ((tan(k) * (2.0 + pow((k / t), 2.0))) / (l / 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 ((k <= (-3.8d-20)) .or. (.not. (k <= 1.6d-23))) then
tmp = 2.0d0 * ((l / k) * ((l / k) * (cos(k) * ((sin(k) ** (-2.0d0)) / t))))
else
tmp = 2.0d0 / ((k / l) * ((tan(k) * (2.0d0 + ((k / t) ** 2.0d0))) / (l / (t ** 3.0d0))))
end if
code = tmp
end function
public static double code(double t, double l, double k) {
double tmp;
if ((k <= -3.8e-20) || !(k <= 1.6e-23)) {
tmp = 2.0 * ((l / k) * ((l / k) * (Math.cos(k) * (Math.pow(Math.sin(k), -2.0) / t))));
} else {
tmp = 2.0 / ((k / l) * ((Math.tan(k) * (2.0 + Math.pow((k / t), 2.0))) / (l / Math.pow(t, 3.0))));
}
return tmp;
}
def code(t, l, k): tmp = 0 if (k <= -3.8e-20) or not (k <= 1.6e-23): tmp = 2.0 * ((l / k) * ((l / k) * (math.cos(k) * (math.pow(math.sin(k), -2.0) / t)))) else: tmp = 2.0 / ((k / l) * ((math.tan(k) * (2.0 + math.pow((k / t), 2.0))) / (l / math.pow(t, 3.0)))) return tmp
function code(t, l, k) tmp = 0.0 if ((k <= -3.8e-20) || !(k <= 1.6e-23)) tmp = Float64(2.0 * Float64(Float64(l / k) * Float64(Float64(l / k) * Float64(cos(k) * Float64((sin(k) ^ -2.0) / t))))); else tmp = Float64(2.0 / Float64(Float64(k / l) * Float64(Float64(tan(k) * Float64(2.0 + (Float64(k / t) ^ 2.0))) / Float64(l / (t ^ 3.0))))); end return tmp end
function tmp_2 = code(t, l, k) tmp = 0.0; if ((k <= -3.8e-20) || ~((k <= 1.6e-23))) tmp = 2.0 * ((l / k) * ((l / k) * (cos(k) * ((sin(k) ^ -2.0) / t)))); else tmp = 2.0 / ((k / l) * ((tan(k) * (2.0 + ((k / t) ^ 2.0))) / (l / (t ^ 3.0)))); end tmp_2 = tmp; end
code[t_, l_, k_] := If[Or[LessEqual[k, -3.8e-20], N[Not[LessEqual[k, 1.6e-23]], $MachinePrecision]], N[(2.0 * N[(N[(l / k), $MachinePrecision] * N[(N[(l / k), $MachinePrecision] * N[(N[Cos[k], $MachinePrecision] * N[(N[Power[N[Sin[k], $MachinePrecision], -2.0], $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(2.0 / N[(N[(k / l), $MachinePrecision] * N[(N[(N[Tan[k], $MachinePrecision] * N[(2.0 + N[Power[N[(k / t), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(l / N[Power[t, 3.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;k \leq -3.8 \cdot 10^{-20} \lor \neg \left(k \leq 1.6 \cdot 10^{-23}\right):\\
\;\;\;\;2 \cdot \left(\frac{\ell}{k} \cdot \left(\frac{\ell}{k} \cdot \left(\cos k \cdot \frac{{\sin k}^{-2}}{t}\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{2}{\frac{k}{\ell} \cdot \frac{\tan k \cdot \left(2 + {\left(\frac{k}{t}\right)}^{2}\right)}{\frac{\ell}{{t}^{3}}}}\\
\end{array}
\end{array}
if k < -3.7999999999999998e-20 or 1.59999999999999988e-23 < k Initial program 41.3%
associate-/l/41.3%
associate-*l/41.3%
associate-*l/41.3%
associate-/r/41.4%
*-commutative41.4%
associate-/l/41.4%
associate-*r*41.4%
*-commutative41.4%
associate-*r*41.4%
*-commutative41.4%
Simplified41.4%
Taylor expanded in k around inf 64.3%
*-commutative64.3%
times-frac62.8%
unpow262.8%
unpow262.8%
times-frac82.0%
Simplified82.0%
Taylor expanded in l around 0 64.3%
associate-/r*62.8%
associate-*r/62.8%
unpow262.8%
unpow262.8%
times-frac82.0%
unpow282.0%
*-commutative82.0%
*-commutative82.0%
times-frac82.0%
Simplified82.0%
pow282.0%
frac-times82.0%
associate-*r/78.4%
*-commutative78.4%
associate-*r/78.5%
frac-times83.1%
*-commutative83.1%
*-commutative83.1%
Applied egg-rr83.1%
times-frac78.5%
associate-*l/82.0%
*-commutative82.0%
un-div-inv82.0%
associate-*l*86.9%
associate-/r*86.9%
pow-flip86.9%
metadata-eval86.9%
Applied egg-rr86.9%
if -3.7999999999999998e-20 < k < 1.59999999999999988e-23Initial program 59.2%
associate-*l*59.2%
+-commutative59.2%
Simplified59.2%
Taylor expanded in k around 0 61.6%
associate-/l*59.8%
unpow259.8%
associate-/l*65.2%
Simplified65.2%
associate-*l/54.0%
associate-+r+54.0%
metadata-eval54.0%
div-inv54.0%
clear-num54.0%
Applied egg-rr54.0%
times-frac69.3%
Simplified69.3%
Final simplification78.5%
(FPCore (t l k) :precision binary64 (if (or (<= k -6.5e-7) (not (<= k 1.4e-25))) (* 2.0 (* (/ l k) (* (/ l k) (* (cos k) (/ (pow (sin k) -2.0) t))))) (/ 1.0 (* k (* (/ k l) (/ (pow t 3.0) l))))))
double code(double t, double l, double k) {
double tmp;
if ((k <= -6.5e-7) || !(k <= 1.4e-25)) {
tmp = 2.0 * ((l / k) * ((l / k) * (cos(k) * (pow(sin(k), -2.0) / t))));
} else {
tmp = 1.0 / (k * ((k / l) * (pow(t, 3.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 ((k <= (-6.5d-7)) .or. (.not. (k <= 1.4d-25))) then
tmp = 2.0d0 * ((l / k) * ((l / k) * (cos(k) * ((sin(k) ** (-2.0d0)) / t))))
else
tmp = 1.0d0 / (k * ((k / l) * ((t ** 3.0d0) / l)))
end if
code = tmp
end function
public static double code(double t, double l, double k) {
double tmp;
if ((k <= -6.5e-7) || !(k <= 1.4e-25)) {
tmp = 2.0 * ((l / k) * ((l / k) * (Math.cos(k) * (Math.pow(Math.sin(k), -2.0) / t))));
} else {
tmp = 1.0 / (k * ((k / l) * (Math.pow(t, 3.0) / l)));
}
return tmp;
}
def code(t, l, k): tmp = 0 if (k <= -6.5e-7) or not (k <= 1.4e-25): tmp = 2.0 * ((l / k) * ((l / k) * (math.cos(k) * (math.pow(math.sin(k), -2.0) / t)))) else: tmp = 1.0 / (k * ((k / l) * (math.pow(t, 3.0) / l))) return tmp
function code(t, l, k) tmp = 0.0 if ((k <= -6.5e-7) || !(k <= 1.4e-25)) tmp = Float64(2.0 * Float64(Float64(l / k) * Float64(Float64(l / k) * Float64(cos(k) * Float64((sin(k) ^ -2.0) / t))))); else tmp = Float64(1.0 / Float64(k * Float64(Float64(k / l) * Float64((t ^ 3.0) / l)))); end return tmp end
function tmp_2 = code(t, l, k) tmp = 0.0; if ((k <= -6.5e-7) || ~((k <= 1.4e-25))) tmp = 2.0 * ((l / k) * ((l / k) * (cos(k) * ((sin(k) ^ -2.0) / t)))); else tmp = 1.0 / (k * ((k / l) * ((t ^ 3.0) / l))); end tmp_2 = tmp; end
code[t_, l_, k_] := If[Or[LessEqual[k, -6.5e-7], N[Not[LessEqual[k, 1.4e-25]], $MachinePrecision]], N[(2.0 * N[(N[(l / k), $MachinePrecision] * N[(N[(l / k), $MachinePrecision] * N[(N[Cos[k], $MachinePrecision] * N[(N[Power[N[Sin[k], $MachinePrecision], -2.0], $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(1.0 / N[(k * N[(N[(k / l), $MachinePrecision] * N[(N[Power[t, 3.0], $MachinePrecision] / l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;k \leq -6.5 \cdot 10^{-7} \lor \neg \left(k \leq 1.4 \cdot 10^{-25}\right):\\
\;\;\;\;2 \cdot \left(\frac{\ell}{k} \cdot \left(\frac{\ell}{k} \cdot \left(\cos k \cdot \frac{{\sin k}^{-2}}{t}\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{k \cdot \left(\frac{k}{\ell} \cdot \frac{{t}^{3}}{\ell}\right)}\\
\end{array}
\end{array}
if k < -6.50000000000000024e-7 or 1.39999999999999994e-25 < k Initial program 41.2%
associate-/l/41.2%
associate-*l/41.2%
associate-*l/41.2%
associate-/r/41.3%
*-commutative41.3%
associate-/l/41.3%
associate-*r*41.3%
*-commutative41.3%
associate-*r*41.2%
*-commutative41.2%
Simplified41.2%
Taylor expanded in k around inf 64.5%
*-commutative64.5%
times-frac62.9%
unpow262.9%
unpow262.9%
times-frac82.5%
Simplified82.5%
Taylor expanded in l around 0 64.5%
associate-/r*62.9%
associate-*r/62.9%
unpow262.9%
unpow262.9%
times-frac82.4%
unpow282.4%
*-commutative82.4%
*-commutative82.4%
times-frac82.5%
Simplified82.5%
pow282.5%
frac-times82.4%
associate-*r/78.8%
*-commutative78.8%
associate-*r/78.8%
frac-times83.6%
*-commutative83.6%
*-commutative83.6%
Applied egg-rr83.6%
times-frac78.8%
associate-*l/82.5%
*-commutative82.5%
un-div-inv82.4%
associate-*l*87.4%
associate-/r*87.4%
pow-flip87.4%
metadata-eval87.4%
Applied egg-rr87.4%
if -6.50000000000000024e-7 < k < 1.39999999999999994e-25Initial program 59.0%
associate-*l*59.0%
+-commutative59.0%
Simplified59.0%
Taylor expanded in k around 0 50.2%
associate-/l*49.4%
unpow249.4%
unpow249.4%
associate-/l*54.7%
Simplified54.7%
expm1-log1p-u34.1%
expm1-udef31.8%
associate-/r*31.8%
metadata-eval31.8%
associate-/r/30.8%
Applied egg-rr30.8%
expm1-def34.5%
expm1-log1p55.1%
unpow255.1%
times-frac50.2%
unpow250.2%
associate-/l*49.4%
unpow249.4%
associate-*r/54.7%
unpow254.7%
associate-*r/65.8%
associate-*r/60.4%
unpow260.4%
associate-/l*62.2%
unpow262.2%
times-frac68.1%
*-commutative68.1%
Simplified68.1%
Final simplification78.1%
(FPCore (t l k)
:precision binary64
(if (<= k -0.00028)
(*
2.0
(/ (* (cos k) (* l (/ l k))) (* k (* t (- 0.5 (/ (cos (+ k k)) 2.0))))))
(if (<= k 2.3e-23)
(/ 1.0 (* k (* (/ k l) (/ (pow t 3.0) 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 (k <= -0.00028) {
tmp = 2.0 * ((cos(k) * (l * (l / k))) / (k * (t * (0.5 - (cos((k + k)) / 2.0)))));
} else if (k <= 2.3e-23) {
tmp = 1.0 / (k * ((k / l) * (pow(t, 3.0) / 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 (k <= (-0.00028d0)) then
tmp = 2.0d0 * ((cos(k) * (l * (l / k))) / (k * (t * (0.5d0 - (cos((k + k)) / 2.0d0)))))
else if (k <= 2.3d-23) then
tmp = 1.0d0 / (k * ((k / l) * ((t ** 3.0d0) / 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 (k <= -0.00028) {
tmp = 2.0 * ((Math.cos(k) * (l * (l / k))) / (k * (t * (0.5 - (Math.cos((k + k)) / 2.0)))));
} else if (k <= 2.3e-23) {
tmp = 1.0 / (k * ((k / l) * (Math.pow(t, 3.0) / 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 k <= -0.00028: tmp = 2.0 * ((math.cos(k) * (l * (l / k))) / (k * (t * (0.5 - (math.cos((k + k)) / 2.0))))) elif k <= 2.3e-23: tmp = 1.0 / (k * ((k / l) * (math.pow(t, 3.0) / 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 (k <= -0.00028) tmp = Float64(2.0 * Float64(Float64(cos(k) * Float64(l * Float64(l / k))) / Float64(k * Float64(t * Float64(0.5 - Float64(cos(Float64(k + k)) / 2.0)))))); elseif (k <= 2.3e-23) tmp = Float64(1.0 / Float64(k * Float64(Float64(k / l) * Float64((t ^ 3.0) / l)))); 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 <= -0.00028) tmp = 2.0 * ((cos(k) * (l * (l / k))) / (k * (t * (0.5 - (cos((k + k)) / 2.0))))); elseif (k <= 2.3e-23) tmp = 1.0 / (k * ((k / l) * ((t ^ 3.0) / 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[LessEqual[k, -0.00028], N[(2.0 * N[(N[(N[Cos[k], $MachinePrecision] * N[(l * N[(l / k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(k * N[(t * N[(0.5 - N[(N[Cos[N[(k + k), $MachinePrecision]], $MachinePrecision] / 2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, 2.3e-23], N[(1.0 / N[(k * N[(N[(k / l), $MachinePrecision] * N[(N[Power[t, 3.0], $MachinePrecision] / l), $MachinePrecision]), $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 -0.00028:\\
\;\;\;\;2 \cdot \frac{\cos k \cdot \left(\ell \cdot \frac{\ell}{k}\right)}{k \cdot \left(t \cdot \left(0.5 - \frac{\cos \left(k + k\right)}{2}\right)\right)}\\
\mathbf{elif}\;k \leq 2.3 \cdot 10^{-23}:\\
\;\;\;\;\frac{1}{k \cdot \left(\frac{k}{\ell} \cdot \frac{{t}^{3}}{\ell}\right)}\\
\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.7999999999999998e-4Initial program 38.5%
associate-/l/38.5%
associate-*l/38.5%
associate-*l/38.5%
associate-/r/38.6%
*-commutative38.6%
associate-/l/38.6%
associate-*r*38.6%
*-commutative38.6%
associate-*r*38.6%
*-commutative38.6%
Simplified38.6%
Taylor expanded in k around inf 56.0%
*-commutative56.0%
times-frac54.5%
unpow254.5%
unpow254.5%
times-frac77.7%
Simplified77.7%
Taylor expanded in l around 0 56.0%
associate-/r*54.5%
associate-*r/54.5%
unpow254.5%
unpow254.5%
times-frac77.7%
unpow277.7%
*-commutative77.7%
*-commutative77.7%
times-frac77.7%
Simplified77.7%
pow277.7%
frac-times77.7%
associate-*r/72.9%
*-commutative72.9%
associate-*r/73.0%
frac-times79.1%
*-commutative79.1%
*-commutative79.1%
Applied egg-rr79.1%
unpow279.1%
sin-mult78.2%
Applied egg-rr78.2%
div-sub78.2%
+-inverses78.2%
cos-078.2%
metadata-eval78.2%
Simplified78.2%
if -2.7999999999999998e-4 < k < 2.3000000000000001e-23Initial program 59.0%
associate-*l*59.0%
+-commutative59.0%
Simplified59.0%
Taylor expanded in k around 0 50.2%
associate-/l*49.4%
unpow249.4%
unpow249.4%
associate-/l*54.7%
Simplified54.7%
expm1-log1p-u34.1%
expm1-udef31.8%
associate-/r*31.8%
metadata-eval31.8%
associate-/r/30.8%
Applied egg-rr30.8%
expm1-def34.5%
expm1-log1p55.1%
unpow255.1%
times-frac50.2%
unpow250.2%
associate-/l*49.4%
unpow249.4%
associate-*r/54.7%
unpow254.7%
associate-*r/65.8%
associate-*r/60.4%
unpow260.4%
associate-/l*62.2%
unpow262.2%
times-frac68.1%
*-commutative68.1%
Simplified68.1%
if 2.3000000000000001e-23 < k Initial program 43.4%
associate-/l/43.4%
associate-*l/43.4%
associate-*l/43.4%
associate-/r/43.5%
*-commutative43.5%
associate-/l/43.5%
associate-*r*43.5%
*-commutative43.5%
associate-*r*43.4%
*-commutative43.4%
Simplified43.4%
Taylor expanded in k around inf 71.5%
*-commutative71.5%
times-frac69.9%
unpow269.9%
unpow269.9%
times-frac86.4%
Simplified86.4%
Final simplification75.6%
(FPCore (t l k)
:precision binary64
(if (or (<= k -0.00031) (not (<= k 160000000.0)))
(*
2.0
(/ (* (cos k) (* l (/ l k))) (* k (* t (- 0.5 (/ (cos (+ k k)) 2.0))))))
(/ 1.0 (* k (* (/ k l) (/ (pow t 3.0) l))))))
double code(double t, double l, double k) {
double tmp;
if ((k <= -0.00031) || !(k <= 160000000.0)) {
tmp = 2.0 * ((cos(k) * (l * (l / k))) / (k * (t * (0.5 - (cos((k + k)) / 2.0)))));
} else {
tmp = 1.0 / (k * ((k / l) * (pow(t, 3.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 ((k <= (-0.00031d0)) .or. (.not. (k <= 160000000.0d0))) then
tmp = 2.0d0 * ((cos(k) * (l * (l / k))) / (k * (t * (0.5d0 - (cos((k + k)) / 2.0d0)))))
else
tmp = 1.0d0 / (k * ((k / l) * ((t ** 3.0d0) / l)))
end if
code = tmp
end function
public static double code(double t, double l, double k) {
double tmp;
if ((k <= -0.00031) || !(k <= 160000000.0)) {
tmp = 2.0 * ((Math.cos(k) * (l * (l / k))) / (k * (t * (0.5 - (Math.cos((k + k)) / 2.0)))));
} else {
tmp = 1.0 / (k * ((k / l) * (Math.pow(t, 3.0) / l)));
}
return tmp;
}
def code(t, l, k): tmp = 0 if (k <= -0.00031) or not (k <= 160000000.0): tmp = 2.0 * ((math.cos(k) * (l * (l / k))) / (k * (t * (0.5 - (math.cos((k + k)) / 2.0))))) else: tmp = 1.0 / (k * ((k / l) * (math.pow(t, 3.0) / l))) return tmp
function code(t, l, k) tmp = 0.0 if ((k <= -0.00031) || !(k <= 160000000.0)) tmp = Float64(2.0 * Float64(Float64(cos(k) * Float64(l * Float64(l / k))) / Float64(k * Float64(t * Float64(0.5 - Float64(cos(Float64(k + k)) / 2.0)))))); else tmp = Float64(1.0 / Float64(k * Float64(Float64(k / l) * Float64((t ^ 3.0) / l)))); end return tmp end
function tmp_2 = code(t, l, k) tmp = 0.0; if ((k <= -0.00031) || ~((k <= 160000000.0))) tmp = 2.0 * ((cos(k) * (l * (l / k))) / (k * (t * (0.5 - (cos((k + k)) / 2.0))))); else tmp = 1.0 / (k * ((k / l) * ((t ^ 3.0) / l))); end tmp_2 = tmp; end
code[t_, l_, k_] := If[Or[LessEqual[k, -0.00031], N[Not[LessEqual[k, 160000000.0]], $MachinePrecision]], N[(2.0 * N[(N[(N[Cos[k], $MachinePrecision] * N[(l * N[(l / k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(k * N[(t * N[(0.5 - N[(N[Cos[N[(k + k), $MachinePrecision]], $MachinePrecision] / 2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(1.0 / N[(k * N[(N[(k / l), $MachinePrecision] * N[(N[Power[t, 3.0], $MachinePrecision] / l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;k \leq -0.00031 \lor \neg \left(k \leq 160000000\right):\\
\;\;\;\;2 \cdot \frac{\cos k \cdot \left(\ell \cdot \frac{\ell}{k}\right)}{k \cdot \left(t \cdot \left(0.5 - \frac{\cos \left(k + k\right)}{2}\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{k \cdot \left(\frac{k}{\ell} \cdot \frac{{t}^{3}}{\ell}\right)}\\
\end{array}
\end{array}
if k < -3.1e-4 or 1.6e8 < k Initial program 43.1%
associate-/l/43.1%
associate-*l/43.1%
associate-*l/43.1%
associate-/r/43.1%
*-commutative43.1%
associate-/l/43.1%
associate-*r*43.1%
*-commutative43.1%
associate-*r*43.1%
*-commutative43.1%
Simplified43.1%
Taylor expanded in k around inf 64.3%
*-commutative64.3%
times-frac62.7%
unpow262.7%
unpow262.7%
times-frac83.2%
Simplified83.2%
Taylor expanded in l around 0 64.3%
associate-/r*62.7%
associate-*r/62.7%
unpow262.7%
unpow262.7%
times-frac83.1%
unpow283.1%
*-commutative83.1%
*-commutative83.1%
times-frac83.2%
Simplified83.2%
pow283.2%
frac-times83.1%
associate-*r/79.3%
*-commutative79.3%
associate-*r/79.4%
frac-times84.4%
*-commutative84.4%
*-commutative84.4%
Applied egg-rr84.4%
unpow284.4%
sin-mult83.8%
Applied egg-rr83.8%
div-sub83.8%
+-inverses83.8%
cos-083.8%
metadata-eval83.8%
Simplified83.8%
if -3.1e-4 < k < 1.6e8Initial program 56.4%
associate-*l*56.4%
+-commutative56.4%
Simplified56.4%
Taylor expanded in k around 0 49.5%
associate-/l*48.8%
unpow248.8%
unpow248.8%
associate-/l*53.9%
Simplified53.9%
expm1-log1p-u33.4%
expm1-udef31.2%
associate-/r*31.2%
metadata-eval31.2%
associate-/r/30.2%
Applied egg-rr30.2%
expm1-def33.8%
expm1-log1p54.2%
unpow254.2%
times-frac49.5%
unpow249.5%
associate-/l*48.8%
unpow248.8%
associate-*r/53.8%
unpow253.8%
associate-*r/64.4%
associate-*r/59.3%
unpow259.3%
associate-/l*60.9%
unpow260.9%
times-frac66.7%
*-commutative66.7%
Simplified66.7%
Final simplification75.1%
(FPCore (t l k) :precision binary64 (if (or (<= k -2.5e-8) (not (<= k 2.5e-23))) (* (* l l) (/ 2.0 (* (tan k) (* k (* k (* t (sin k))))))) (/ 1.0 (* k (* (/ k l) (/ (pow t 3.0) l))))))
double code(double t, double l, double k) {
double tmp;
if ((k <= -2.5e-8) || !(k <= 2.5e-23)) {
tmp = (l * l) * (2.0 / (tan(k) * (k * (k * (t * sin(k))))));
} else {
tmp = 1.0 / (k * ((k / l) * (pow(t, 3.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 ((k <= (-2.5d-8)) .or. (.not. (k <= 2.5d-23))) then
tmp = (l * l) * (2.0d0 / (tan(k) * (k * (k * (t * sin(k))))))
else
tmp = 1.0d0 / (k * ((k / l) * ((t ** 3.0d0) / l)))
end if
code = tmp
end function
public static double code(double t, double l, double k) {
double tmp;
if ((k <= -2.5e-8) || !(k <= 2.5e-23)) {
tmp = (l * l) * (2.0 / (Math.tan(k) * (k * (k * (t * Math.sin(k))))));
} else {
tmp = 1.0 / (k * ((k / l) * (Math.pow(t, 3.0) / l)));
}
return tmp;
}
def code(t, l, k): tmp = 0 if (k <= -2.5e-8) or not (k <= 2.5e-23): tmp = (l * l) * (2.0 / (math.tan(k) * (k * (k * (t * math.sin(k)))))) else: tmp = 1.0 / (k * ((k / l) * (math.pow(t, 3.0) / l))) return tmp
function code(t, l, k) tmp = 0.0 if ((k <= -2.5e-8) || !(k <= 2.5e-23)) tmp = Float64(Float64(l * l) * Float64(2.0 / Float64(tan(k) * Float64(k * Float64(k * Float64(t * sin(k))))))); else tmp = Float64(1.0 / Float64(k * Float64(Float64(k / l) * Float64((t ^ 3.0) / l)))); end return tmp end
function tmp_2 = code(t, l, k) tmp = 0.0; if ((k <= -2.5e-8) || ~((k <= 2.5e-23))) tmp = (l * l) * (2.0 / (tan(k) * (k * (k * (t * sin(k)))))); else tmp = 1.0 / (k * ((k / l) * ((t ^ 3.0) / l))); end tmp_2 = tmp; end
code[t_, l_, k_] := If[Or[LessEqual[k, -2.5e-8], N[Not[LessEqual[k, 2.5e-23]], $MachinePrecision]], N[(N[(l * l), $MachinePrecision] * N[(2.0 / N[(N[Tan[k], $MachinePrecision] * N[(k * N[(k * N[(t * N[Sin[k], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(1.0 / N[(k * N[(N[(k / l), $MachinePrecision] * N[(N[Power[t, 3.0], $MachinePrecision] / l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;k \leq -2.5 \cdot 10^{-8} \lor \neg \left(k \leq 2.5 \cdot 10^{-23}\right):\\
\;\;\;\;\left(\ell \cdot \ell\right) \cdot \frac{2}{\tan k \cdot \left(k \cdot \left(k \cdot \left(t \cdot \sin k\right)\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{k \cdot \left(\frac{k}{\ell} \cdot \frac{{t}^{3}}{\ell}\right)}\\
\end{array}
\end{array}
if k < -2.4999999999999999e-8 or 2.5000000000000001e-23 < k Initial program 41.2%
associate-/l/41.2%
associate-*l/41.2%
associate-*l/41.2%
associate-/r/41.3%
*-commutative41.3%
associate-/l/41.3%
associate-*r*41.3%
*-commutative41.3%
associate-*r*41.2%
*-commutative41.2%
Simplified41.2%
Taylor expanded in k around inf 64.4%
unpow264.4%
associate-*l*73.4%
Simplified73.4%
if -2.4999999999999999e-8 < k < 2.5000000000000001e-23Initial program 59.0%
associate-*l*59.0%
+-commutative59.0%
Simplified59.0%
Taylor expanded in k around 0 50.2%
associate-/l*49.4%
unpow249.4%
unpow249.4%
associate-/l*54.7%
Simplified54.7%
expm1-log1p-u34.1%
expm1-udef31.8%
associate-/r*31.8%
metadata-eval31.8%
associate-/r/30.8%
Applied egg-rr30.8%
expm1-def34.5%
expm1-log1p55.1%
unpow255.1%
times-frac50.2%
unpow250.2%
associate-/l*49.4%
unpow249.4%
associate-*r/54.7%
unpow254.7%
associate-*r/65.8%
associate-*r/60.4%
unpow260.4%
associate-/l*62.2%
unpow262.2%
times-frac68.1%
*-commutative68.1%
Simplified68.1%
Final simplification70.8%
(FPCore (t l k)
:precision binary64
(if (<= t -5.8e-34)
(/ 1.0 (* k (* (/ k l) (/ (pow t 3.0) l))))
(if (<= t 7.5e-66)
(*
2.0
(*
(* (/ l k) (/ l k))
(* (cos k) (+ (/ 1.0 (* t (* k k))) (/ 0.3333333333333333 t)))))
(/ (pow (/ l k) 2.0) (pow t 3.0)))))
double code(double t, double l, double k) {
double tmp;
if (t <= -5.8e-34) {
tmp = 1.0 / (k * ((k / l) * (pow(t, 3.0) / l)));
} else if (t <= 7.5e-66) {
tmp = 2.0 * (((l / k) * (l / k)) * (cos(k) * ((1.0 / (t * (k * k))) + (0.3333333333333333 / t))));
} 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 <= (-5.8d-34)) then
tmp = 1.0d0 / (k * ((k / l) * ((t ** 3.0d0) / l)))
else if (t <= 7.5d-66) then
tmp = 2.0d0 * (((l / k) * (l / k)) * (cos(k) * ((1.0d0 / (t * (k * k))) + (0.3333333333333333d0 / t))))
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 <= -5.8e-34) {
tmp = 1.0 / (k * ((k / l) * (Math.pow(t, 3.0) / l)));
} else if (t <= 7.5e-66) {
tmp = 2.0 * (((l / k) * (l / k)) * (Math.cos(k) * ((1.0 / (t * (k * k))) + (0.3333333333333333 / t))));
} else {
tmp = Math.pow((l / k), 2.0) / Math.pow(t, 3.0);
}
return tmp;
}
def code(t, l, k): tmp = 0 if t <= -5.8e-34: tmp = 1.0 / (k * ((k / l) * (math.pow(t, 3.0) / l))) elif t <= 7.5e-66: tmp = 2.0 * (((l / k) * (l / k)) * (math.cos(k) * ((1.0 / (t * (k * k))) + (0.3333333333333333 / t)))) 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 <= -5.8e-34) tmp = Float64(1.0 / Float64(k * Float64(Float64(k / l) * Float64((t ^ 3.0) / l)))); elseif (t <= 7.5e-66) tmp = Float64(2.0 * Float64(Float64(Float64(l / k) * Float64(l / k)) * Float64(cos(k) * Float64(Float64(1.0 / Float64(t * Float64(k * k))) + Float64(0.3333333333333333 / t))))); 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 <= -5.8e-34) tmp = 1.0 / (k * ((k / l) * ((t ^ 3.0) / l))); elseif (t <= 7.5e-66) tmp = 2.0 * (((l / k) * (l / k)) * (cos(k) * ((1.0 / (t * (k * k))) + (0.3333333333333333 / t)))); else tmp = ((l / k) ^ 2.0) / (t ^ 3.0); end tmp_2 = tmp; end
code[t_, l_, k_] := If[LessEqual[t, -5.8e-34], N[(1.0 / N[(k * N[(N[(k / l), $MachinePrecision] * N[(N[Power[t, 3.0], $MachinePrecision] / l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 7.5e-66], N[(2.0 * N[(N[(N[(l / k), $MachinePrecision] * N[(l / k), $MachinePrecision]), $MachinePrecision] * N[(N[Cos[k], $MachinePrecision] * N[(N[(1.0 / N[(t * N[(k * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(0.3333333333333333 / t), $MachinePrecision]), $MachinePrecision]), $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 -5.8 \cdot 10^{-34}:\\
\;\;\;\;\frac{1}{k \cdot \left(\frac{k}{\ell} \cdot \frac{{t}^{3}}{\ell}\right)}\\
\mathbf{elif}\;t \leq 7.5 \cdot 10^{-66}:\\
\;\;\;\;2 \cdot \left(\left(\frac{\ell}{k} \cdot \frac{\ell}{k}\right) \cdot \left(\cos k \cdot \left(\frac{1}{t \cdot \left(k \cdot k\right)} + \frac{0.3333333333333333}{t}\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{{\left(\frac{\ell}{k}\right)}^{2}}{{t}^{3}}\\
\end{array}
\end{array}
if t < -5.8000000000000004e-34Initial program 64.3%
associate-*l*64.3%
+-commutative64.3%
Simplified64.3%
Taylor expanded in k around 0 55.5%
associate-/l*55.4%
unpow255.4%
unpow255.4%
associate-/l*59.0%
Simplified59.0%
expm1-log1p-u47.7%
expm1-udef44.7%
associate-/r*44.7%
metadata-eval44.7%
associate-/r/44.6%
Applied egg-rr44.6%
expm1-def47.6%
expm1-log1p57.5%
unpow257.5%
times-frac55.5%
unpow255.5%
associate-/l*55.4%
unpow255.4%
associate-*r/59.0%
unpow259.0%
associate-*r/67.4%
associate-*r/63.8%
unpow263.8%
associate-/l*65.8%
unpow265.8%
times-frac67.9%
*-commutative67.9%
Simplified67.9%
if -5.8000000000000004e-34 < t < 7.49999999999999995e-66Initial program 36.1%
associate-/l/36.1%
associate-*l/36.1%
associate-*l/36.0%
associate-/r/36.0%
*-commutative36.0%
associate-/l/36.0%
associate-*r*36.0%
*-commutative36.0%
associate-*r*36.0%
*-commutative36.0%
Simplified36.0%
Taylor expanded in k around inf 66.7%
*-commutative66.7%
times-frac66.6%
unpow266.6%
unpow266.6%
times-frac87.4%
Simplified87.4%
div-inv87.3%
Applied egg-rr87.3%
Taylor expanded in k around 0 68.4%
+-commutative68.4%
unpow268.4%
associate-*r/68.4%
metadata-eval68.4%
Simplified68.4%
if 7.49999999999999995e-66 < t Initial program 56.8%
associate-/l/56.8%
associate-*l/57.9%
associate-*l/57.1%
associate-/r/56.7%
*-commutative56.7%
associate-/l/56.7%
associate-*r*56.7%
*-commutative56.7%
associate-*r*56.7%
*-commutative56.7%
Simplified56.7%
Taylor expanded in k around 0 45.6%
unpow245.6%
*-commutative45.6%
times-frac49.6%
unpow249.6%
Simplified49.6%
Taylor expanded in l around 0 45.6%
associate-/r*45.6%
unpow245.6%
unpow245.6%
times-frac62.5%
unpow262.5%
Simplified62.5%
Final simplification66.4%
(FPCore (t l k)
:precision binary64
(if (or (<= t -2.6e-28) (not (<= t 5.5e-64)))
(/ 1.0 (* k (* (/ k l) (/ (pow t 3.0) l))))
(*
2.0
(*
(* (/ l k) (/ l k))
(* (cos k) (+ (/ 1.0 (* t (* k k))) (/ 0.3333333333333333 t)))))))
double code(double t, double l, double k) {
double tmp;
if ((t <= -2.6e-28) || !(t <= 5.5e-64)) {
tmp = 1.0 / (k * ((k / l) * (pow(t, 3.0) / l)));
} else {
tmp = 2.0 * (((l / k) * (l / k)) * (cos(k) * ((1.0 / (t * (k * k))) + (0.3333333333333333 / t))));
}
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.6d-28)) .or. (.not. (t <= 5.5d-64))) then
tmp = 1.0d0 / (k * ((k / l) * ((t ** 3.0d0) / l)))
else
tmp = 2.0d0 * (((l / k) * (l / k)) * (cos(k) * ((1.0d0 / (t * (k * k))) + (0.3333333333333333d0 / t))))
end if
code = tmp
end function
public static double code(double t, double l, double k) {
double tmp;
if ((t <= -2.6e-28) || !(t <= 5.5e-64)) {
tmp = 1.0 / (k * ((k / l) * (Math.pow(t, 3.0) / l)));
} else {
tmp = 2.0 * (((l / k) * (l / k)) * (Math.cos(k) * ((1.0 / (t * (k * k))) + (0.3333333333333333 / t))));
}
return tmp;
}
def code(t, l, k): tmp = 0 if (t <= -2.6e-28) or not (t <= 5.5e-64): tmp = 1.0 / (k * ((k / l) * (math.pow(t, 3.0) / l))) else: tmp = 2.0 * (((l / k) * (l / k)) * (math.cos(k) * ((1.0 / (t * (k * k))) + (0.3333333333333333 / t)))) return tmp
function code(t, l, k) tmp = 0.0 if ((t <= -2.6e-28) || !(t <= 5.5e-64)) tmp = Float64(1.0 / Float64(k * Float64(Float64(k / l) * Float64((t ^ 3.0) / l)))); else tmp = Float64(2.0 * Float64(Float64(Float64(l / k) * Float64(l / k)) * Float64(cos(k) * Float64(Float64(1.0 / Float64(t * Float64(k * k))) + Float64(0.3333333333333333 / t))))); end return tmp end
function tmp_2 = code(t, l, k) tmp = 0.0; if ((t <= -2.6e-28) || ~((t <= 5.5e-64))) tmp = 1.0 / (k * ((k / l) * ((t ^ 3.0) / l))); else tmp = 2.0 * (((l / k) * (l / k)) * (cos(k) * ((1.0 / (t * (k * k))) + (0.3333333333333333 / t)))); end tmp_2 = tmp; end
code[t_, l_, k_] := If[Or[LessEqual[t, -2.6e-28], N[Not[LessEqual[t, 5.5e-64]], $MachinePrecision]], N[(1.0 / N[(k * N[(N[(k / l), $MachinePrecision] * N[(N[Power[t, 3.0], $MachinePrecision] / l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(2.0 * N[(N[(N[(l / k), $MachinePrecision] * N[(l / k), $MachinePrecision]), $MachinePrecision] * N[(N[Cos[k], $MachinePrecision] * N[(N[(1.0 / N[(t * N[(k * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(0.3333333333333333 / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -2.6 \cdot 10^{-28} \lor \neg \left(t \leq 5.5 \cdot 10^{-64}\right):\\
\;\;\;\;\frac{1}{k \cdot \left(\frac{k}{\ell} \cdot \frac{{t}^{3}}{\ell}\right)}\\
\mathbf{else}:\\
\;\;\;\;2 \cdot \left(\left(\frac{\ell}{k} \cdot \frac{\ell}{k}\right) \cdot \left(\cos k \cdot \left(\frac{1}{t \cdot \left(k \cdot k\right)} + \frac{0.3333333333333333}{t}\right)\right)\right)\\
\end{array}
\end{array}
if t < -2.6e-28 or 5.4999999999999999e-64 < t Initial program 60.0%
associate-*l*60.0%
+-commutative60.0%
Simplified60.0%
Taylor expanded in k around 0 49.9%
associate-/l*49.2%
unpow249.2%
unpow249.2%
associate-/l*53.9%
Simplified53.9%
expm1-log1p-u48.8%
expm1-udef46.9%
associate-/r*46.9%
metadata-eval46.9%
associate-/r/46.1%
Applied egg-rr46.1%
expm1-def48.6%
expm1-log1p53.0%
unpow253.0%
times-frac49.9%
unpow249.9%
associate-/l*49.2%
unpow249.2%
associate-*r/53.9%
unpow253.9%
associate-*r/63.3%
associate-*r/58.6%
unpow258.6%
associate-/l*60.1%
unpow260.1%
times-frac64.7%
*-commutative64.7%
Simplified64.7%
if -2.6e-28 < t < 5.4999999999999999e-64Initial program 36.1%
associate-/l/36.1%
associate-*l/36.1%
associate-*l/36.0%
associate-/r/36.0%
*-commutative36.0%
associate-/l/36.0%
associate-*r*36.0%
*-commutative36.0%
associate-*r*36.0%
*-commutative36.0%
Simplified36.0%
Taylor expanded in k around inf 66.7%
*-commutative66.7%
times-frac66.6%
unpow266.6%
unpow266.6%
times-frac87.4%
Simplified87.4%
div-inv87.3%
Applied egg-rr87.3%
Taylor expanded in k around 0 68.4%
+-commutative68.4%
unpow268.4%
associate-*r/68.4%
metadata-eval68.4%
Simplified68.4%
Final simplification66.3%
(FPCore (t l k)
:precision binary64
(let* ((t_1 (* (/ l k) (/ l k))) (t_2 (* (* l (pow t -3.0)) (/ l (* k k)))))
(if (<= t -3.1e-50)
t_2
(if (<= t 6.5e-64)
(* 2.0 (* (/ t_1 t) (+ (/ 1.0 (* k k)) -0.16666666666666666)))
(if (<= t 2.1e+107) t_2 (* 2.0 (* t_1 (/ 1.0 (* k (* t k))))))))))
double code(double t, double l, double k) {
double t_1 = (l / k) * (l / k);
double t_2 = (l * pow(t, -3.0)) * (l / (k * k));
double tmp;
if (t <= -3.1e-50) {
tmp = t_2;
} else if (t <= 6.5e-64) {
tmp = 2.0 * ((t_1 / t) * ((1.0 / (k * k)) + -0.16666666666666666));
} else if (t <= 2.1e+107) {
tmp = t_2;
} else {
tmp = 2.0 * (t_1 * (1.0 / (k * (t * 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) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = (l / k) * (l / k)
t_2 = (l * (t ** (-3.0d0))) * (l / (k * k))
if (t <= (-3.1d-50)) then
tmp = t_2
else if (t <= 6.5d-64) then
tmp = 2.0d0 * ((t_1 / t) * ((1.0d0 / (k * k)) + (-0.16666666666666666d0)))
else if (t <= 2.1d+107) then
tmp = t_2
else
tmp = 2.0d0 * (t_1 * (1.0d0 / (k * (t * k))))
end if
code = tmp
end function
public static double code(double t, double l, double k) {
double t_1 = (l / k) * (l / k);
double t_2 = (l * Math.pow(t, -3.0)) * (l / (k * k));
double tmp;
if (t <= -3.1e-50) {
tmp = t_2;
} else if (t <= 6.5e-64) {
tmp = 2.0 * ((t_1 / t) * ((1.0 / (k * k)) + -0.16666666666666666));
} else if (t <= 2.1e+107) {
tmp = t_2;
} else {
tmp = 2.0 * (t_1 * (1.0 / (k * (t * k))));
}
return tmp;
}
def code(t, l, k): t_1 = (l / k) * (l / k) t_2 = (l * math.pow(t, -3.0)) * (l / (k * k)) tmp = 0 if t <= -3.1e-50: tmp = t_2 elif t <= 6.5e-64: tmp = 2.0 * ((t_1 / t) * ((1.0 / (k * k)) + -0.16666666666666666)) elif t <= 2.1e+107: tmp = t_2 else: tmp = 2.0 * (t_1 * (1.0 / (k * (t * k)))) return tmp
function code(t, l, k) t_1 = Float64(Float64(l / k) * Float64(l / k)) t_2 = Float64(Float64(l * (t ^ -3.0)) * Float64(l / Float64(k * k))) tmp = 0.0 if (t <= -3.1e-50) tmp = t_2; elseif (t <= 6.5e-64) tmp = Float64(2.0 * Float64(Float64(t_1 / t) * Float64(Float64(1.0 / Float64(k * k)) + -0.16666666666666666))); elseif (t <= 2.1e+107) tmp = t_2; else tmp = Float64(2.0 * Float64(t_1 * Float64(1.0 / Float64(k * Float64(t * k))))); end return tmp end
function tmp_2 = code(t, l, k) t_1 = (l / k) * (l / k); t_2 = (l * (t ^ -3.0)) * (l / (k * k)); tmp = 0.0; if (t <= -3.1e-50) tmp = t_2; elseif (t <= 6.5e-64) tmp = 2.0 * ((t_1 / t) * ((1.0 / (k * k)) + -0.16666666666666666)); elseif (t <= 2.1e+107) tmp = t_2; else tmp = 2.0 * (t_1 * (1.0 / (k * (t * k)))); end tmp_2 = tmp; end
code[t_, l_, k_] := Block[{t$95$1 = N[(N[(l / k), $MachinePrecision] * N[(l / k), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(l * N[Power[t, -3.0], $MachinePrecision]), $MachinePrecision] * N[(l / N[(k * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -3.1e-50], t$95$2, If[LessEqual[t, 6.5e-64], N[(2.0 * N[(N[(t$95$1 / t), $MachinePrecision] * N[(N[(1.0 / N[(k * k), $MachinePrecision]), $MachinePrecision] + -0.16666666666666666), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2.1e+107], t$95$2, N[(2.0 * N[(t$95$1 * N[(1.0 / N[(k * N[(t * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{\ell}{k} \cdot \frac{\ell}{k}\\
t_2 := \left(\ell \cdot {t}^{-3}\right) \cdot \frac{\ell}{k \cdot k}\\
\mathbf{if}\;t \leq -3.1 \cdot 10^{-50}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t \leq 6.5 \cdot 10^{-64}:\\
\;\;\;\;2 \cdot \left(\frac{t_1}{t} \cdot \left(\frac{1}{k \cdot k} + -0.16666666666666666\right)\right)\\
\mathbf{elif}\;t \leq 2.1 \cdot 10^{+107}:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;2 \cdot \left(t_1 \cdot \frac{1}{k \cdot \left(t \cdot k\right)}\right)\\
\end{array}
\end{array}
if t < -3.1000000000000002e-50 or 6.5000000000000004e-64 < t < 2.1e107Initial program 67.9%
associate-/l/67.9%
associate-*l/70.6%
associate-*l/68.7%
associate-/r/68.4%
*-commutative68.4%
associate-/l/68.4%
associate-*r*68.4%
*-commutative68.4%
associate-*r*68.4%
*-commutative68.4%
Simplified68.4%
Taylor expanded in k around 0 58.0%
unpow258.0%
*-commutative58.0%
times-frac61.2%
unpow261.2%
Simplified61.2%
expm1-log1p-u56.2%
expm1-udef48.6%
div-inv48.6%
pow-flip48.6%
metadata-eval48.6%
Applied egg-rr48.6%
expm1-def56.3%
expm1-log1p61.2%
Simplified61.2%
if -3.1000000000000002e-50 < t < 6.5000000000000004e-64Initial program 34.8%
associate-/l/34.8%
associate-*l/34.8%
associate-*l/34.8%
associate-/r/34.9%
*-commutative34.9%
associate-/l/34.9%
associate-*r*34.9%
*-commutative34.9%
associate-*r*34.9%
*-commutative34.9%
Simplified34.9%
Taylor expanded in k around inf 67.0%
*-commutative67.0%
times-frac66.8%
unpow266.8%
unpow266.8%
times-frac87.7%
Simplified87.7%
Taylor expanded in l around 0 67.0%
associate-/r*67.1%
associate-*r/67.1%
unpow267.1%
unpow267.1%
times-frac88.0%
unpow288.0%
*-commutative88.0%
*-commutative88.0%
times-frac88.7%
Simplified88.7%
Taylor expanded in k around 0 64.6%
sub-neg64.6%
unpow264.6%
metadata-eval64.6%
Simplified64.6%
pow264.6%
Applied egg-rr64.6%
if 2.1e107 < t Initial program 41.6%
associate-/l/41.6%
associate-*l/41.6%
associate-*l/41.6%
associate-/r/41.6%
*-commutative41.6%
associate-/l/41.6%
associate-*r*41.6%
*-commutative41.6%
associate-*r*41.6%
*-commutative41.6%
Simplified41.6%
Taylor expanded in k around inf 43.6%
*-commutative43.6%
times-frac41.6%
unpow241.6%
unpow241.6%
times-frac44.0%
Simplified44.0%
Taylor expanded in k around 0 45.9%
unpow245.9%
associate-*l*45.9%
Simplified45.9%
Final simplification59.9%
(FPCore (t l k)
:precision binary64
(let* ((t_1 (* (/ l k) (/ l k))) (t_2 (/ l (* k k))))
(if (<= t -9.5e-47)
(* (* l (pow t -3.0)) t_2)
(if (<= t 8.5e-66)
(* 2.0 (* (/ t_1 t) (+ (/ 1.0 (* k k)) -0.16666666666666666)))
(if (<= t 1.9e+104)
(* (/ l (pow t 3.0)) t_2)
(* 2.0 (* t_1 (/ 1.0 (* k (* t k))))))))))
double code(double t, double l, double k) {
double t_1 = (l / k) * (l / k);
double t_2 = l / (k * k);
double tmp;
if (t <= -9.5e-47) {
tmp = (l * pow(t, -3.0)) * t_2;
} else if (t <= 8.5e-66) {
tmp = 2.0 * ((t_1 / t) * ((1.0 / (k * k)) + -0.16666666666666666));
} else if (t <= 1.9e+104) {
tmp = (l / pow(t, 3.0)) * t_2;
} else {
tmp = 2.0 * (t_1 * (1.0 / (k * (t * 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) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = (l / k) * (l / k)
t_2 = l / (k * k)
if (t <= (-9.5d-47)) then
tmp = (l * (t ** (-3.0d0))) * t_2
else if (t <= 8.5d-66) then
tmp = 2.0d0 * ((t_1 / t) * ((1.0d0 / (k * k)) + (-0.16666666666666666d0)))
else if (t <= 1.9d+104) then
tmp = (l / (t ** 3.0d0)) * t_2
else
tmp = 2.0d0 * (t_1 * (1.0d0 / (k * (t * k))))
end if
code = tmp
end function
public static double code(double t, double l, double k) {
double t_1 = (l / k) * (l / k);
double t_2 = l / (k * k);
double tmp;
if (t <= -9.5e-47) {
tmp = (l * Math.pow(t, -3.0)) * t_2;
} else if (t <= 8.5e-66) {
tmp = 2.0 * ((t_1 / t) * ((1.0 / (k * k)) + -0.16666666666666666));
} else if (t <= 1.9e+104) {
tmp = (l / Math.pow(t, 3.0)) * t_2;
} else {
tmp = 2.0 * (t_1 * (1.0 / (k * (t * k))));
}
return tmp;
}
def code(t, l, k): t_1 = (l / k) * (l / k) t_2 = l / (k * k) tmp = 0 if t <= -9.5e-47: tmp = (l * math.pow(t, -3.0)) * t_2 elif t <= 8.5e-66: tmp = 2.0 * ((t_1 / t) * ((1.0 / (k * k)) + -0.16666666666666666)) elif t <= 1.9e+104: tmp = (l / math.pow(t, 3.0)) * t_2 else: tmp = 2.0 * (t_1 * (1.0 / (k * (t * k)))) return tmp
function code(t, l, k) t_1 = Float64(Float64(l / k) * Float64(l / k)) t_2 = Float64(l / Float64(k * k)) tmp = 0.0 if (t <= -9.5e-47) tmp = Float64(Float64(l * (t ^ -3.0)) * t_2); elseif (t <= 8.5e-66) tmp = Float64(2.0 * Float64(Float64(t_1 / t) * Float64(Float64(1.0 / Float64(k * k)) + -0.16666666666666666))); elseif (t <= 1.9e+104) tmp = Float64(Float64(l / (t ^ 3.0)) * t_2); else tmp = Float64(2.0 * Float64(t_1 * Float64(1.0 / Float64(k * Float64(t * k))))); end return tmp end
function tmp_2 = code(t, l, k) t_1 = (l / k) * (l / k); t_2 = l / (k * k); tmp = 0.0; if (t <= -9.5e-47) tmp = (l * (t ^ -3.0)) * t_2; elseif (t <= 8.5e-66) tmp = 2.0 * ((t_1 / t) * ((1.0 / (k * k)) + -0.16666666666666666)); elseif (t <= 1.9e+104) tmp = (l / (t ^ 3.0)) * t_2; else tmp = 2.0 * (t_1 * (1.0 / (k * (t * k)))); end tmp_2 = tmp; end
code[t_, l_, k_] := Block[{t$95$1 = N[(N[(l / k), $MachinePrecision] * N[(l / k), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(l / N[(k * k), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -9.5e-47], N[(N[(l * N[Power[t, -3.0], $MachinePrecision]), $MachinePrecision] * t$95$2), $MachinePrecision], If[LessEqual[t, 8.5e-66], N[(2.0 * N[(N[(t$95$1 / t), $MachinePrecision] * N[(N[(1.0 / N[(k * k), $MachinePrecision]), $MachinePrecision] + -0.16666666666666666), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.9e+104], N[(N[(l / N[Power[t, 3.0], $MachinePrecision]), $MachinePrecision] * t$95$2), $MachinePrecision], N[(2.0 * N[(t$95$1 * N[(1.0 / N[(k * N[(t * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{\ell}{k} \cdot \frac{\ell}{k}\\
t_2 := \frac{\ell}{k \cdot k}\\
\mathbf{if}\;t \leq -9.5 \cdot 10^{-47}:\\
\;\;\;\;\left(\ell \cdot {t}^{-3}\right) \cdot t_2\\
\mathbf{elif}\;t \leq 8.5 \cdot 10^{-66}:\\
\;\;\;\;2 \cdot \left(\frac{t_1}{t} \cdot \left(\frac{1}{k \cdot k} + -0.16666666666666666\right)\right)\\
\mathbf{elif}\;t \leq 1.9 \cdot 10^{+104}:\\
\;\;\;\;\frac{\ell}{{t}^{3}} \cdot t_2\\
\mathbf{else}:\\
\;\;\;\;2 \cdot \left(t_1 \cdot \frac{1}{k \cdot \left(t \cdot k\right)}\right)\\
\end{array}
\end{array}
if t < -9.4999999999999991e-47Initial program 64.1%
associate-/l/64.1%
associate-*l/67.0%
associate-*l/65.0%
associate-/r/65.0%
*-commutative65.0%
associate-/l/65.0%
associate-*r*65.0%
*-commutative65.0%
associate-*r*65.0%
*-commutative65.0%
Simplified65.0%
Taylor expanded in k around 0 55.9%
unpow255.9%
*-commutative55.9%
times-frac59.1%
unpow259.1%
Simplified59.1%
expm1-log1p-u54.5%
expm1-udef45.9%
div-inv45.9%
pow-flip45.9%
metadata-eval45.9%
Applied egg-rr45.9%
expm1-def54.6%
expm1-log1p59.2%
Simplified59.2%
if -9.4999999999999991e-47 < t < 8.49999999999999966e-66Initial program 34.8%
associate-/l/34.8%
associate-*l/34.8%
associate-*l/34.8%
associate-/r/34.9%
*-commutative34.9%
associate-/l/34.9%
associate-*r*34.9%
*-commutative34.9%
associate-*r*34.9%
*-commutative34.9%
Simplified34.9%
Taylor expanded in k around inf 67.0%
*-commutative67.0%
times-frac66.8%
unpow266.8%
unpow266.8%
times-frac87.7%
Simplified87.7%
Taylor expanded in l around 0 67.0%
associate-/r*67.1%
associate-*r/67.1%
unpow267.1%
unpow267.1%
times-frac88.0%
unpow288.0%
*-commutative88.0%
*-commutative88.0%
times-frac88.7%
Simplified88.7%
Taylor expanded in k around 0 64.6%
sub-neg64.6%
unpow264.6%
metadata-eval64.6%
Simplified64.6%
pow264.6%
Applied egg-rr64.6%
if 8.49999999999999966e-66 < t < 1.89999999999999984e104Initial program 74.8%
associate-/l/74.8%
associate-*l/77.3%
associate-*l/75.5%
associate-/r/74.6%
*-commutative74.6%
associate-/l/74.6%
associate-*r*74.6%
*-commutative74.6%
associate-*r*74.5%
*-commutative74.5%
Simplified74.5%
Taylor expanded in k around 0 61.9%
unpow261.9%
*-commutative61.9%
times-frac64.9%
unpow264.9%
Simplified64.9%
if 1.89999999999999984e104 < t Initial program 41.6%
associate-/l/41.6%
associate-*l/41.6%
associate-*l/41.6%
associate-/r/41.6%
*-commutative41.6%
associate-/l/41.6%
associate-*r*41.6%
*-commutative41.6%
associate-*r*41.6%
*-commutative41.6%
Simplified41.6%
Taylor expanded in k around inf 43.6%
*-commutative43.6%
times-frac41.6%
unpow241.6%
unpow241.6%
times-frac44.0%
Simplified44.0%
Taylor expanded in k around 0 45.9%
unpow245.9%
associate-*l*45.9%
Simplified45.9%
Final simplification59.9%
(FPCore (t l k)
:precision binary64
(if (or (<= t -1.25e-46) (not (<= t 1.25e-98)))
(/ 1.0 (* k (* (/ k l) (/ (pow t 3.0) l))))
(*
2.0
(* (/ (* (/ l k) (/ l k)) t) (+ (/ 1.0 (* k k)) -0.16666666666666666)))))
double code(double t, double l, double k) {
double tmp;
if ((t <= -1.25e-46) || !(t <= 1.25e-98)) {
tmp = 1.0 / (k * ((k / l) * (pow(t, 3.0) / l)));
} else {
tmp = 2.0 * ((((l / k) * (l / k)) / t) * ((1.0 / (k * k)) + -0.16666666666666666));
}
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-46)) .or. (.not. (t <= 1.25d-98))) then
tmp = 1.0d0 / (k * ((k / l) * ((t ** 3.0d0) / l)))
else
tmp = 2.0d0 * ((((l / k) * (l / k)) / t) * ((1.0d0 / (k * k)) + (-0.16666666666666666d0)))
end if
code = tmp
end function
public static double code(double t, double l, double k) {
double tmp;
if ((t <= -1.25e-46) || !(t <= 1.25e-98)) {
tmp = 1.0 / (k * ((k / l) * (Math.pow(t, 3.0) / l)));
} else {
tmp = 2.0 * ((((l / k) * (l / k)) / t) * ((1.0 / (k * k)) + -0.16666666666666666));
}
return tmp;
}
def code(t, l, k): tmp = 0 if (t <= -1.25e-46) or not (t <= 1.25e-98): tmp = 1.0 / (k * ((k / l) * (math.pow(t, 3.0) / l))) else: tmp = 2.0 * ((((l / k) * (l / k)) / t) * ((1.0 / (k * k)) + -0.16666666666666666)) return tmp
function code(t, l, k) tmp = 0.0 if ((t <= -1.25e-46) || !(t <= 1.25e-98)) tmp = Float64(1.0 / Float64(k * Float64(Float64(k / l) * Float64((t ^ 3.0) / l)))); else tmp = Float64(2.0 * Float64(Float64(Float64(Float64(l / k) * Float64(l / k)) / t) * Float64(Float64(1.0 / Float64(k * k)) + -0.16666666666666666))); end return tmp end
function tmp_2 = code(t, l, k) tmp = 0.0; if ((t <= -1.25e-46) || ~((t <= 1.25e-98))) tmp = 1.0 / (k * ((k / l) * ((t ^ 3.0) / l))); else tmp = 2.0 * ((((l / k) * (l / k)) / t) * ((1.0 / (k * k)) + -0.16666666666666666)); end tmp_2 = tmp; end
code[t_, l_, k_] := If[Or[LessEqual[t, -1.25e-46], N[Not[LessEqual[t, 1.25e-98]], $MachinePrecision]], N[(1.0 / N[(k * N[(N[(k / l), $MachinePrecision] * N[(N[Power[t, 3.0], $MachinePrecision] / l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(2.0 * N[(N[(N[(N[(l / k), $MachinePrecision] * N[(l / k), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision] * N[(N[(1.0 / N[(k * k), $MachinePrecision]), $MachinePrecision] + -0.16666666666666666), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.25 \cdot 10^{-46} \lor \neg \left(t \leq 1.25 \cdot 10^{-98}\right):\\
\;\;\;\;\frac{1}{k \cdot \left(\frac{k}{\ell} \cdot \frac{{t}^{3}}{\ell}\right)}\\
\mathbf{else}:\\
\;\;\;\;2 \cdot \left(\frac{\frac{\ell}{k} \cdot \frac{\ell}{k}}{t} \cdot \left(\frac{1}{k \cdot k} + -0.16666666666666666\right)\right)\\
\end{array}
\end{array}
if t < -1.24999999999999998e-46 or 1.25000000000000005e-98 < t Initial program 60.8%
associate-*l*60.8%
+-commutative60.8%
Simplified60.8%
Taylor expanded in k around 0 51.2%
associate-/l*50.6%
unpow250.6%
unpow250.6%
associate-/l*55.0%
Simplified55.0%
expm1-log1p-u48.9%
expm1-udef47.1%
associate-/r*47.1%
metadata-eval47.1%
associate-/r/46.3%
Applied egg-rr46.3%
expm1-def48.7%
expm1-log1p54.1%
unpow254.1%
times-frac51.2%
unpow251.2%
associate-/l*50.6%
unpow250.6%
associate-*r/55.0%
unpow255.0%
associate-*r/63.9%
associate-*r/59.5%
unpow259.5%
associate-/l*60.9%
unpow260.9%
times-frac65.3%
*-commutative65.3%
Simplified65.3%
if -1.24999999999999998e-46 < t < 1.25000000000000005e-98Initial program 33.0%
associate-/l/33.0%
associate-*l/33.0%
associate-*l/32.9%
associate-/r/32.9%
*-commutative32.9%
associate-/l/32.9%
associate-*r*32.9%
*-commutative32.9%
associate-*r*32.9%
*-commutative32.9%
Simplified32.9%
Taylor expanded in k around inf 66.0%
*-commutative66.0%
times-frac65.9%
unpow265.9%
unpow265.9%
times-frac86.4%
Simplified86.4%
Taylor expanded in l around 0 66.0%
associate-/r*66.2%
associate-*r/66.2%
unpow266.2%
unpow266.2%
times-frac86.7%
unpow286.7%
*-commutative86.7%
*-commutative86.7%
times-frac87.4%
Simplified87.4%
Taylor expanded in k around 0 63.6%
sub-neg63.6%
unpow263.6%
metadata-eval63.6%
Simplified63.6%
pow263.6%
Applied egg-rr63.6%
Final simplification64.6%
(FPCore (t l k)
:precision binary64
(if (or (<= t -2.9e-45) (not (<= t 7.6e-62)))
(/ (* l l) (* k (* (pow t 3.0) k)))
(*
2.0
(* (/ (* (/ l k) (/ l k)) t) (+ (/ 1.0 (* k k)) -0.16666666666666666)))))
double code(double t, double l, double k) {
double tmp;
if ((t <= -2.9e-45) || !(t <= 7.6e-62)) {
tmp = (l * l) / (k * (pow(t, 3.0) * k));
} else {
tmp = 2.0 * ((((l / k) * (l / k)) / t) * ((1.0 / (k * k)) + -0.16666666666666666));
}
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.9d-45)) .or. (.not. (t <= 7.6d-62))) then
tmp = (l * l) / (k * ((t ** 3.0d0) * k))
else
tmp = 2.0d0 * ((((l / k) * (l / k)) / t) * ((1.0d0 / (k * k)) + (-0.16666666666666666d0)))
end if
code = tmp
end function
public static double code(double t, double l, double k) {
double tmp;
if ((t <= -2.9e-45) || !(t <= 7.6e-62)) {
tmp = (l * l) / (k * (Math.pow(t, 3.0) * k));
} else {
tmp = 2.0 * ((((l / k) * (l / k)) / t) * ((1.0 / (k * k)) + -0.16666666666666666));
}
return tmp;
}
def code(t, l, k): tmp = 0 if (t <= -2.9e-45) or not (t <= 7.6e-62): tmp = (l * l) / (k * (math.pow(t, 3.0) * k)) else: tmp = 2.0 * ((((l / k) * (l / k)) / t) * ((1.0 / (k * k)) + -0.16666666666666666)) return tmp
function code(t, l, k) tmp = 0.0 if ((t <= -2.9e-45) || !(t <= 7.6e-62)) tmp = Float64(Float64(l * l) / Float64(k * Float64((t ^ 3.0) * k))); else tmp = Float64(2.0 * Float64(Float64(Float64(Float64(l / k) * Float64(l / k)) / t) * Float64(Float64(1.0 / Float64(k * k)) + -0.16666666666666666))); end return tmp end
function tmp_2 = code(t, l, k) tmp = 0.0; if ((t <= -2.9e-45) || ~((t <= 7.6e-62))) tmp = (l * l) / (k * ((t ^ 3.0) * k)); else tmp = 2.0 * ((((l / k) * (l / k)) / t) * ((1.0 / (k * k)) + -0.16666666666666666)); end tmp_2 = tmp; end
code[t_, l_, k_] := If[Or[LessEqual[t, -2.9e-45], N[Not[LessEqual[t, 7.6e-62]], $MachinePrecision]], N[(N[(l * l), $MachinePrecision] / N[(k * N[(N[Power[t, 3.0], $MachinePrecision] * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(2.0 * N[(N[(N[(N[(l / k), $MachinePrecision] * N[(l / k), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision] * N[(N[(1.0 / N[(k * k), $MachinePrecision]), $MachinePrecision] + -0.16666666666666666), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -2.9 \cdot 10^{-45} \lor \neg \left(t \leq 7.6 \cdot 10^{-62}\right):\\
\;\;\;\;\frac{\ell \cdot \ell}{k \cdot \left({t}^{3} \cdot k\right)}\\
\mathbf{else}:\\
\;\;\;\;2 \cdot \left(\frac{\frac{\ell}{k} \cdot \frac{\ell}{k}}{t} \cdot \left(\frac{1}{k \cdot k} + -0.16666666666666666\right)\right)\\
\end{array}
\end{array}
if t < -2.9e-45 or 7.60000000000000013e-62 < t Initial program 60.8%
associate-/l/60.8%
associate-*l/62.8%
associate-*l/61.5%
associate-/r/61.3%
*-commutative61.3%
associate-/l/61.3%
associate-*r*61.3%
*-commutative61.3%
associate-*r*61.3%
*-commutative61.3%
Simplified61.3%
Taylor expanded in k around 0 50.9%
unpow250.9%
*-commutative50.9%
unpow250.9%
Simplified50.9%
Taylor expanded in t around 0 50.9%
unpow250.9%
associate-*l*59.6%
Simplified59.6%
if -2.9e-45 < t < 7.60000000000000013e-62Initial program 34.3%
associate-/l/34.3%
associate-*l/34.3%
associate-*l/34.2%
associate-/r/34.2%
*-commutative34.2%
associate-/l/34.2%
associate-*r*34.2%
*-commutative34.2%
associate-*r*34.2%
*-commutative34.2%
Simplified34.2%
Taylor expanded in k around inf 65.7%
*-commutative65.7%
times-frac65.6%
unpow265.6%
unpow265.6%
times-frac87.0%
Simplified87.0%
Taylor expanded in l around 0 65.7%
associate-/r*66.0%
associate-*r/65.9%
unpow265.9%
unpow265.9%
times-frac87.3%
unpow287.3%
*-commutative87.3%
*-commutative87.3%
times-frac88.0%
Simplified88.0%
Taylor expanded in k around 0 64.4%
sub-neg64.4%
unpow264.4%
metadata-eval64.4%
Simplified64.4%
pow264.4%
Applied egg-rr64.4%
Final simplification61.6%
(FPCore (t l k)
:precision binary64
(if (<= l -1.8e-154)
(*
2.0
(* (/ (* (/ l k) (/ l k)) t) (+ (/ 1.0 (* k k)) -0.16666666666666666)))
(if (<= l 4.4e-214)
(* 2.0 (* (/ (* l l) t) -0.058333333333333334))
(* 2.0 (/ (/ l (/ t l)) (pow k 4.0))))))
double code(double t, double l, double k) {
double tmp;
if (l <= -1.8e-154) {
tmp = 2.0 * ((((l / k) * (l / k)) / t) * ((1.0 / (k * k)) + -0.16666666666666666));
} else if (l <= 4.4e-214) {
tmp = 2.0 * (((l * l) / t) * -0.058333333333333334);
} 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 (l <= (-1.8d-154)) then
tmp = 2.0d0 * ((((l / k) * (l / k)) / t) * ((1.0d0 / (k * k)) + (-0.16666666666666666d0)))
else if (l <= 4.4d-214) then
tmp = 2.0d0 * (((l * l) / t) * (-0.058333333333333334d0))
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 (l <= -1.8e-154) {
tmp = 2.0 * ((((l / k) * (l / k)) / t) * ((1.0 / (k * k)) + -0.16666666666666666));
} else if (l <= 4.4e-214) {
tmp = 2.0 * (((l * l) / t) * -0.058333333333333334);
} else {
tmp = 2.0 * ((l / (t / l)) / Math.pow(k, 4.0));
}
return tmp;
}
def code(t, l, k): tmp = 0 if l <= -1.8e-154: tmp = 2.0 * ((((l / k) * (l / k)) / t) * ((1.0 / (k * k)) + -0.16666666666666666)) elif l <= 4.4e-214: tmp = 2.0 * (((l * l) / t) * -0.058333333333333334) else: tmp = 2.0 * ((l / (t / l)) / math.pow(k, 4.0)) return tmp
function code(t, l, k) tmp = 0.0 if (l <= -1.8e-154) tmp = Float64(2.0 * Float64(Float64(Float64(Float64(l / k) * Float64(l / k)) / t) * Float64(Float64(1.0 / Float64(k * k)) + -0.16666666666666666))); elseif (l <= 4.4e-214) tmp = Float64(2.0 * Float64(Float64(Float64(l * l) / t) * -0.058333333333333334)); else tmp = Float64(2.0 * Float64(Float64(l / Float64(t / l)) / (k ^ 4.0))); end return tmp end
function tmp_2 = code(t, l, k) tmp = 0.0; if (l <= -1.8e-154) tmp = 2.0 * ((((l / k) * (l / k)) / t) * ((1.0 / (k * k)) + -0.16666666666666666)); elseif (l <= 4.4e-214) tmp = 2.0 * (((l * l) / t) * -0.058333333333333334); else tmp = 2.0 * ((l / (t / l)) / (k ^ 4.0)); end tmp_2 = tmp; end
code[t_, l_, k_] := If[LessEqual[l, -1.8e-154], N[(2.0 * N[(N[(N[(N[(l / k), $MachinePrecision] * N[(l / k), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision] * N[(N[(1.0 / N[(k * k), $MachinePrecision]), $MachinePrecision] + -0.16666666666666666), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[l, 4.4e-214], N[(2.0 * N[(N[(N[(l * l), $MachinePrecision] / t), $MachinePrecision] * -0.058333333333333334), $MachinePrecision]), $MachinePrecision], N[(2.0 * N[(N[(l / N[(t / l), $MachinePrecision]), $MachinePrecision] / N[Power[k, 4.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;\ell \leq -1.8 \cdot 10^{-154}:\\
\;\;\;\;2 \cdot \left(\frac{\frac{\ell}{k} \cdot \frac{\ell}{k}}{t} \cdot \left(\frac{1}{k \cdot k} + -0.16666666666666666\right)\right)\\
\mathbf{elif}\;\ell \leq 4.4 \cdot 10^{-214}:\\
\;\;\;\;2 \cdot \left(\frac{\ell \cdot \ell}{t} \cdot -0.058333333333333334\right)\\
\mathbf{else}:\\
\;\;\;\;2 \cdot \frac{\frac{\ell}{\frac{t}{\ell}}}{{k}^{4}}\\
\end{array}
\end{array}
if l < -1.8000000000000001e-154Initial program 46.2%
associate-/l/46.2%
associate-*l/48.2%
associate-*l/46.6%
associate-/r/46.3%
*-commutative46.3%
associate-/l/46.3%
associate-*r*46.3%
*-commutative46.3%
associate-*r*46.2%
*-commutative46.2%
Simplified46.2%
Taylor expanded in k around inf 51.5%
*-commutative51.5%
times-frac50.6%
unpow250.6%
unpow250.6%
times-frac62.7%
Simplified62.7%
Taylor expanded in l around 0 51.5%
associate-/r*51.0%
associate-*r/51.0%
unpow251.0%
unpow251.0%
times-frac63.0%
unpow263.0%
*-commutative63.0%
*-commutative63.0%
times-frac64.5%
Simplified64.5%
Taylor expanded in k around 0 50.4%
sub-neg50.4%
unpow250.4%
metadata-eval50.4%
Simplified50.4%
pow250.4%
Applied egg-rr50.4%
if -1.8000000000000001e-154 < l < 4.40000000000000003e-214Initial program 55.7%
associate-/l/55.7%
associate-*l/55.7%
associate-*l/56.5%
associate-/r/56.5%
*-commutative56.5%
associate-/l/56.5%
associate-*r*56.5%
*-commutative56.5%
associate-*r*56.5%
*-commutative56.5%
Simplified56.5%
Taylor expanded in k around inf 58.1%
*-commutative58.1%
times-frac62.3%
unpow262.3%
unpow262.3%
times-frac60.8%
Simplified60.8%
Taylor expanded in k around 0 28.1%
fma-def28.1%
unpow228.1%
unpow228.1%
associate-*r/28.1%
metadata-eval28.1%
Simplified28.1%
Taylor expanded in k around inf 73.5%
*-commutative73.5%
unpow273.5%
Simplified73.5%
if 4.40000000000000003e-214 < l Initial program 50.4%
associate-/l/50.4%
associate-*l/51.3%
associate-*l/50.4%
associate-/r/50.5%
*-commutative50.5%
associate-/l/50.5%
associate-*r*50.5%
*-commutative50.5%
associate-*r*50.5%
*-commutative50.5%
Simplified50.5%
Taylor expanded in k around inf 55.2%
*-commutative55.2%
times-frac55.0%
unpow255.0%
unpow255.0%
times-frac71.1%
Simplified71.1%
Taylor expanded in l around 0 55.2%
associate-/r*55.0%
associate-*r/55.0%
unpow255.0%
unpow255.0%
times-frac71.1%
unpow271.1%
*-commutative71.1%
*-commutative71.1%
times-frac71.2%
Simplified71.2%
Taylor expanded in k around 0 46.1%
*-commutative46.1%
associate-/r*47.8%
unpow247.8%
associate-/l*52.6%
Simplified52.6%
Final simplification56.0%
(FPCore (t l k)
:precision binary64
(let* ((t_1 (* (/ l k) (/ l k))))
(if (<= l -1.15e-154)
(* 2.0 (* (/ t_1 t) (+ (/ 1.0 (* k k)) -0.16666666666666666)))
(if (<= l 1.8e-192)
(* 2.0 (* (/ (* l l) t) -0.058333333333333334))
(* 2.0 (* t_1 (/ 1.0 (* t (* k k)))))))))
double code(double t, double l, double k) {
double t_1 = (l / k) * (l / k);
double tmp;
if (l <= -1.15e-154) {
tmp = 2.0 * ((t_1 / t) * ((1.0 / (k * k)) + -0.16666666666666666));
} else if (l <= 1.8e-192) {
tmp = 2.0 * (((l * l) / t) * -0.058333333333333334);
} else {
tmp = 2.0 * (t_1 * (1.0 / (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) :: t_1
real(8) :: tmp
t_1 = (l / k) * (l / k)
if (l <= (-1.15d-154)) then
tmp = 2.0d0 * ((t_1 / t) * ((1.0d0 / (k * k)) + (-0.16666666666666666d0)))
else if (l <= 1.8d-192) then
tmp = 2.0d0 * (((l * l) / t) * (-0.058333333333333334d0))
else
tmp = 2.0d0 * (t_1 * (1.0d0 / (t * (k * k))))
end if
code = tmp
end function
public static double code(double t, double l, double k) {
double t_1 = (l / k) * (l / k);
double tmp;
if (l <= -1.15e-154) {
tmp = 2.0 * ((t_1 / t) * ((1.0 / (k * k)) + -0.16666666666666666));
} else if (l <= 1.8e-192) {
tmp = 2.0 * (((l * l) / t) * -0.058333333333333334);
} else {
tmp = 2.0 * (t_1 * (1.0 / (t * (k * k))));
}
return tmp;
}
def code(t, l, k): t_1 = (l / k) * (l / k) tmp = 0 if l <= -1.15e-154: tmp = 2.0 * ((t_1 / t) * ((1.0 / (k * k)) + -0.16666666666666666)) elif l <= 1.8e-192: tmp = 2.0 * (((l * l) / t) * -0.058333333333333334) else: tmp = 2.0 * (t_1 * (1.0 / (t * (k * k)))) return tmp
function code(t, l, k) t_1 = Float64(Float64(l / k) * Float64(l / k)) tmp = 0.0 if (l <= -1.15e-154) tmp = Float64(2.0 * Float64(Float64(t_1 / t) * Float64(Float64(1.0 / Float64(k * k)) + -0.16666666666666666))); elseif (l <= 1.8e-192) tmp = Float64(2.0 * Float64(Float64(Float64(l * l) / t) * -0.058333333333333334)); else tmp = Float64(2.0 * Float64(t_1 * Float64(1.0 / Float64(t * Float64(k * k))))); end return tmp end
function tmp_2 = code(t, l, k) t_1 = (l / k) * (l / k); tmp = 0.0; if (l <= -1.15e-154) tmp = 2.0 * ((t_1 / t) * ((1.0 / (k * k)) + -0.16666666666666666)); elseif (l <= 1.8e-192) tmp = 2.0 * (((l * l) / t) * -0.058333333333333334); else tmp = 2.0 * (t_1 * (1.0 / (t * (k * k)))); end tmp_2 = tmp; end
code[t_, l_, k_] := Block[{t$95$1 = N[(N[(l / k), $MachinePrecision] * N[(l / k), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[l, -1.15e-154], N[(2.0 * N[(N[(t$95$1 / t), $MachinePrecision] * N[(N[(1.0 / N[(k * k), $MachinePrecision]), $MachinePrecision] + -0.16666666666666666), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[l, 1.8e-192], N[(2.0 * N[(N[(N[(l * l), $MachinePrecision] / t), $MachinePrecision] * -0.058333333333333334), $MachinePrecision]), $MachinePrecision], N[(2.0 * N[(t$95$1 * N[(1.0 / N[(t * N[(k * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{\ell}{k} \cdot \frac{\ell}{k}\\
\mathbf{if}\;\ell \leq -1.15 \cdot 10^{-154}:\\
\;\;\;\;2 \cdot \left(\frac{t_1}{t} \cdot \left(\frac{1}{k \cdot k} + -0.16666666666666666\right)\right)\\
\mathbf{elif}\;\ell \leq 1.8 \cdot 10^{-192}:\\
\;\;\;\;2 \cdot \left(\frac{\ell \cdot \ell}{t} \cdot -0.058333333333333334\right)\\
\mathbf{else}:\\
\;\;\;\;2 \cdot \left(t_1 \cdot \frac{1}{t \cdot \left(k \cdot k\right)}\right)\\
\end{array}
\end{array}
if l < -1.15e-154Initial program 46.2%
associate-/l/46.2%
associate-*l/48.2%
associate-*l/46.6%
associate-/r/46.3%
*-commutative46.3%
associate-/l/46.3%
associate-*r*46.3%
*-commutative46.3%
associate-*r*46.2%
*-commutative46.2%
Simplified46.2%
Taylor expanded in k around inf 51.5%
*-commutative51.5%
times-frac50.6%
unpow250.6%
unpow250.6%
times-frac62.7%
Simplified62.7%
Taylor expanded in l around 0 51.5%
associate-/r*51.0%
associate-*r/51.0%
unpow251.0%
unpow251.0%
times-frac63.0%
unpow263.0%
*-commutative63.0%
*-commutative63.0%
times-frac64.5%
Simplified64.5%
Taylor expanded in k around 0 50.4%
sub-neg50.4%
unpow250.4%
metadata-eval50.4%
Simplified50.4%
pow250.4%
Applied egg-rr50.4%
if -1.15e-154 < l < 1.7999999999999999e-192Initial program 54.5%
associate-/l/54.5%
associate-*l/54.5%
associate-*l/55.3%
associate-/r/55.3%
*-commutative55.3%
associate-/l/55.3%
associate-*r*55.3%
*-commutative55.3%
associate-*r*55.3%
*-commutative55.3%
Simplified55.3%
Taylor expanded in k around inf 58.6%
*-commutative58.6%
times-frac62.5%
unpow262.5%
unpow262.5%
times-frac61.2%
Simplified61.2%
Taylor expanded in k around 0 26.6%
fma-def26.6%
unpow226.6%
unpow226.6%
associate-*r/26.6%
metadata-eval26.6%
Simplified26.6%
Taylor expanded in k around inf 73.2%
*-commutative73.2%
unpow273.2%
Simplified73.2%
if 1.7999999999999999e-192 < l Initial program 50.9%
associate-/l/50.9%
associate-*l/51.8%
associate-*l/51.0%
associate-/r/51.0%
*-commutative51.0%
associate-/l/51.0%
associate-*r*51.0%
*-commutative51.0%
associate-*r*51.0%
*-commutative51.0%
Simplified51.0%
Taylor expanded in k around inf 54.8%
*-commutative54.8%
times-frac54.7%
unpow254.7%
unpow254.7%
times-frac71.3%
Simplified71.3%
Taylor expanded in k around 0 51.7%
unpow251.7%
Simplified51.7%
Final simplification55.8%
(FPCore (t l k) :precision binary64 (if (<= (* l l) 1e-315) (* 2.0 (* (/ (* l l) t) -0.058333333333333334)) (* 2.0 (* (* (/ l k) (/ l k)) (/ 1.0 (* k (* t k)))))))
double code(double t, double l, double k) {
double tmp;
if ((l * l) <= 1e-315) {
tmp = 2.0 * (((l * l) / t) * -0.058333333333333334);
} else {
tmp = 2.0 * (((l / k) * (l / k)) * (1.0 / (k * (t * 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 ((l * l) <= 1d-315) then
tmp = 2.0d0 * (((l * l) / t) * (-0.058333333333333334d0))
else
tmp = 2.0d0 * (((l / k) * (l / k)) * (1.0d0 / (k * (t * k))))
end if
code = tmp
end function
public static double code(double t, double l, double k) {
double tmp;
if ((l * l) <= 1e-315) {
tmp = 2.0 * (((l * l) / t) * -0.058333333333333334);
} else {
tmp = 2.0 * (((l / k) * (l / k)) * (1.0 / (k * (t * k))));
}
return tmp;
}
def code(t, l, k): tmp = 0 if (l * l) <= 1e-315: tmp = 2.0 * (((l * l) / t) * -0.058333333333333334) else: tmp = 2.0 * (((l / k) * (l / k)) * (1.0 / (k * (t * k)))) return tmp
function code(t, l, k) tmp = 0.0 if (Float64(l * l) <= 1e-315) tmp = Float64(2.0 * Float64(Float64(Float64(l * l) / t) * -0.058333333333333334)); else tmp = Float64(2.0 * Float64(Float64(Float64(l / k) * Float64(l / k)) * Float64(1.0 / Float64(k * Float64(t * k))))); end return tmp end
function tmp_2 = code(t, l, k) tmp = 0.0; if ((l * l) <= 1e-315) tmp = 2.0 * (((l * l) / t) * -0.058333333333333334); else tmp = 2.0 * (((l / k) * (l / k)) * (1.0 / (k * (t * k)))); end tmp_2 = tmp; end
code[t_, l_, k_] := If[LessEqual[N[(l * l), $MachinePrecision], 1e-315], N[(2.0 * N[(N[(N[(l * l), $MachinePrecision] / t), $MachinePrecision] * -0.058333333333333334), $MachinePrecision]), $MachinePrecision], N[(2.0 * N[(N[(N[(l / k), $MachinePrecision] * N[(l / k), $MachinePrecision]), $MachinePrecision] * N[(1.0 / N[(k * N[(t * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;\ell \cdot \ell \leq 10^{-315}:\\
\;\;\;\;2 \cdot \left(\frac{\ell \cdot \ell}{t} \cdot -0.058333333333333334\right)\\
\mathbf{else}:\\
\;\;\;\;2 \cdot \left(\left(\frac{\ell}{k} \cdot \frac{\ell}{k}\right) \cdot \frac{1}{k \cdot \left(t \cdot k\right)}\right)\\
\end{array}
\end{array}
if (*.f64 l l) < 9.999999985e-316Initial program 54.1%
associate-/l/54.1%
associate-*l/54.0%
associate-*l/54.8%
associate-/r/54.8%
*-commutative54.8%
associate-/l/54.8%
associate-*r*54.8%
*-commutative54.8%
associate-*r*54.8%
*-commutative54.8%
Simplified54.8%
Taylor expanded in k around inf 56.1%
*-commutative56.1%
times-frac59.7%
unpow259.7%
unpow259.7%
times-frac63.4%
Simplified63.4%
Taylor expanded in k around 0 28.9%
fma-def28.9%
unpow228.9%
unpow228.9%
associate-*r/28.9%
metadata-eval28.9%
Simplified28.9%
Taylor expanded in k around inf 71.0%
*-commutative71.0%
unpow271.0%
Simplified71.0%
if 9.999999985e-316 < (*.f64 l l) Initial program 48.5%
associate-/l/48.5%
associate-*l/50.0%
associate-*l/48.7%
associate-/r/48.6%
*-commutative48.6%
associate-/l/48.6%
associate-*r*48.6%
*-commutative48.6%
associate-*r*48.6%
*-commutative48.6%
Simplified48.6%
Taylor expanded in k around inf 53.8%
*-commutative53.8%
times-frac53.2%
unpow253.2%
unpow253.2%
times-frac66.5%
Simplified66.5%
Taylor expanded in k around 0 48.3%
unpow248.3%
associate-*l*48.3%
Simplified48.3%
Final simplification53.7%
(FPCore (t l k) :precision binary64 (if (<= (* l l) 1e-315) (* 2.0 (* (/ (* l l) t) -0.058333333333333334)) (* 2.0 (* (* (/ l k) (/ l k)) (/ 1.0 (* t (* k k)))))))
double code(double t, double l, double k) {
double tmp;
if ((l * l) <= 1e-315) {
tmp = 2.0 * (((l * l) / t) * -0.058333333333333334);
} else {
tmp = 2.0 * (((l / k) * (l / k)) * (1.0 / (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 ((l * l) <= 1d-315) then
tmp = 2.0d0 * (((l * l) / t) * (-0.058333333333333334d0))
else
tmp = 2.0d0 * (((l / k) * (l / k)) * (1.0d0 / (t * (k * k))))
end if
code = tmp
end function
public static double code(double t, double l, double k) {
double tmp;
if ((l * l) <= 1e-315) {
tmp = 2.0 * (((l * l) / t) * -0.058333333333333334);
} else {
tmp = 2.0 * (((l / k) * (l / k)) * (1.0 / (t * (k * k))));
}
return tmp;
}
def code(t, l, k): tmp = 0 if (l * l) <= 1e-315: tmp = 2.0 * (((l * l) / t) * -0.058333333333333334) else: tmp = 2.0 * (((l / k) * (l / k)) * (1.0 / (t * (k * k)))) return tmp
function code(t, l, k) tmp = 0.0 if (Float64(l * l) <= 1e-315) tmp = Float64(2.0 * Float64(Float64(Float64(l * l) / t) * -0.058333333333333334)); else tmp = Float64(2.0 * Float64(Float64(Float64(l / k) * Float64(l / k)) * Float64(1.0 / Float64(t * Float64(k * k))))); end return tmp end
function tmp_2 = code(t, l, k) tmp = 0.0; if ((l * l) <= 1e-315) tmp = 2.0 * (((l * l) / t) * -0.058333333333333334); else tmp = 2.0 * (((l / k) * (l / k)) * (1.0 / (t * (k * k)))); end tmp_2 = tmp; end
code[t_, l_, k_] := If[LessEqual[N[(l * l), $MachinePrecision], 1e-315], N[(2.0 * N[(N[(N[(l * l), $MachinePrecision] / t), $MachinePrecision] * -0.058333333333333334), $MachinePrecision]), $MachinePrecision], N[(2.0 * N[(N[(N[(l / k), $MachinePrecision] * N[(l / k), $MachinePrecision]), $MachinePrecision] * N[(1.0 / N[(t * N[(k * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;\ell \cdot \ell \leq 10^{-315}:\\
\;\;\;\;2 \cdot \left(\frac{\ell \cdot \ell}{t} \cdot -0.058333333333333334\right)\\
\mathbf{else}:\\
\;\;\;\;2 \cdot \left(\left(\frac{\ell}{k} \cdot \frac{\ell}{k}\right) \cdot \frac{1}{t \cdot \left(k \cdot k\right)}\right)\\
\end{array}
\end{array}
if (*.f64 l l) < 9.999999985e-316Initial program 54.1%
associate-/l/54.1%
associate-*l/54.0%
associate-*l/54.8%
associate-/r/54.8%
*-commutative54.8%
associate-/l/54.8%
associate-*r*54.8%
*-commutative54.8%
associate-*r*54.8%
*-commutative54.8%
Simplified54.8%
Taylor expanded in k around inf 56.1%
*-commutative56.1%
times-frac59.7%
unpow259.7%
unpow259.7%
times-frac63.4%
Simplified63.4%
Taylor expanded in k around 0 28.9%
fma-def28.9%
unpow228.9%
unpow228.9%
associate-*r/28.9%
metadata-eval28.9%
Simplified28.9%
Taylor expanded in k around inf 71.0%
*-commutative71.0%
unpow271.0%
Simplified71.0%
if 9.999999985e-316 < (*.f64 l l) Initial program 48.5%
associate-/l/48.5%
associate-*l/50.0%
associate-*l/48.7%
associate-/r/48.6%
*-commutative48.6%
associate-/l/48.6%
associate-*r*48.6%
*-commutative48.6%
associate-*r*48.6%
*-commutative48.6%
Simplified48.6%
Taylor expanded in k around inf 53.8%
*-commutative53.8%
times-frac53.2%
unpow253.2%
unpow253.2%
times-frac66.5%
Simplified66.5%
Taylor expanded in k around 0 48.3%
unpow248.3%
Simplified48.3%
Final simplification53.7%
(FPCore (t l k) :precision binary64 (if (or (<= k -4600000000.0) (not (<= k 6.2e-19))) (* 2.0 (* -0.16666666666666666 (/ (* l l) (* t (* k k))))) (* 2.0 (* (/ l t) (* l -0.058333333333333334)))))
double code(double t, double l, double k) {
double tmp;
if ((k <= -4600000000.0) || !(k <= 6.2e-19)) {
tmp = 2.0 * (-0.16666666666666666 * ((l * l) / (t * (k * k))));
} else {
tmp = 2.0 * ((l / t) * (l * -0.058333333333333334));
}
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 <= (-4600000000.0d0)) .or. (.not. (k <= 6.2d-19))) then
tmp = 2.0d0 * ((-0.16666666666666666d0) * ((l * l) / (t * (k * k))))
else
tmp = 2.0d0 * ((l / t) * (l * (-0.058333333333333334d0)))
end if
code = tmp
end function
public static double code(double t, double l, double k) {
double tmp;
if ((k <= -4600000000.0) || !(k <= 6.2e-19)) {
tmp = 2.0 * (-0.16666666666666666 * ((l * l) / (t * (k * k))));
} else {
tmp = 2.0 * ((l / t) * (l * -0.058333333333333334));
}
return tmp;
}
def code(t, l, k): tmp = 0 if (k <= -4600000000.0) or not (k <= 6.2e-19): tmp = 2.0 * (-0.16666666666666666 * ((l * l) / (t * (k * k)))) else: tmp = 2.0 * ((l / t) * (l * -0.058333333333333334)) return tmp
function code(t, l, k) tmp = 0.0 if ((k <= -4600000000.0) || !(k <= 6.2e-19)) tmp = Float64(2.0 * Float64(-0.16666666666666666 * Float64(Float64(l * l) / Float64(t * Float64(k * k))))); else tmp = Float64(2.0 * Float64(Float64(l / t) * Float64(l * -0.058333333333333334))); end return tmp end
function tmp_2 = code(t, l, k) tmp = 0.0; if ((k <= -4600000000.0) || ~((k <= 6.2e-19))) tmp = 2.0 * (-0.16666666666666666 * ((l * l) / (t * (k * k)))); else tmp = 2.0 * ((l / t) * (l * -0.058333333333333334)); end tmp_2 = tmp; end
code[t_, l_, k_] := If[Or[LessEqual[k, -4600000000.0], N[Not[LessEqual[k, 6.2e-19]], $MachinePrecision]], N[(2.0 * N[(-0.16666666666666666 * N[(N[(l * l), $MachinePrecision] / N[(t * N[(k * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(2.0 * N[(N[(l / t), $MachinePrecision] * N[(l * -0.058333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;k \leq -4600000000 \lor \neg \left(k \leq 6.2 \cdot 10^{-19}\right):\\
\;\;\;\;2 \cdot \left(-0.16666666666666666 \cdot \frac{\ell \cdot \ell}{t \cdot \left(k \cdot k\right)}\right)\\
\mathbf{else}:\\
\;\;\;\;2 \cdot \left(\frac{\ell}{t} \cdot \left(\ell \cdot -0.058333333333333334\right)\right)\\
\end{array}
\end{array}
if k < -4.6e9 or 6.1999999999999998e-19 < k Initial program 41.7%
associate-/l/41.7%
associate-*l/41.7%
associate-*l/41.7%
associate-/r/41.7%
*-commutative41.7%
associate-/l/41.7%
associate-*r*41.7%
*-commutative41.7%
associate-*r*41.7%
*-commutative41.7%
Simplified41.7%
Taylor expanded in k around inf 64.1%
*-commutative64.1%
times-frac62.5%
unpow262.5%
unpow262.5%
times-frac82.6%
Simplified82.6%
Taylor expanded in l around 0 64.1%
associate-/r*62.5%
associate-*r/62.5%
unpow262.5%
unpow262.5%
times-frac82.6%
unpow282.6%
*-commutative82.6%
*-commutative82.6%
times-frac82.6%
Simplified82.6%
Taylor expanded in k around 0 55.2%
sub-neg55.2%
unpow255.2%
metadata-eval55.2%
Simplified55.2%
Taylor expanded in k around inf 51.1%
*-commutative51.1%
unpow251.1%
unpow251.1%
Simplified51.1%
if -4.6e9 < k < 6.1999999999999998e-19Initial program 58.0%
associate-/l/58.0%
associate-*l/60.3%
associate-*l/58.7%
associate-/r/58.4%
*-commutative58.4%
associate-/l/58.4%
associate-*r*58.4%
*-commutative58.4%
associate-*r*58.4%
*-commutative58.4%
Simplified58.4%
Taylor expanded in k around inf 44.7%
*-commutative44.7%
times-frac47.1%
unpow247.1%
unpow247.1%
times-frac48.8%
Simplified48.8%
Taylor expanded in k around 0 48.0%
fma-def48.0%
unpow248.0%
unpow248.0%
associate-*r/48.0%
metadata-eval48.0%
Simplified48.0%
Taylor expanded in k around inf 15.9%
*-commutative15.9%
unpow215.9%
associate-/l*16.0%
Simplified16.0%
Taylor expanded in l around 0 15.9%
unpow215.9%
associate-*l/16.0%
*-commutative16.0%
associate-*l*16.0%
Simplified16.0%
Final simplification33.6%
(FPCore (t l k) :precision binary64 (* 2.0 (* (/ (* l l) t) -0.058333333333333334)))
double code(double t, double l, double k) {
return 2.0 * (((l * l) / t) * -0.058333333333333334);
}
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) / t) * (-0.058333333333333334d0))
end function
public static double code(double t, double l, double k) {
return 2.0 * (((l * l) / t) * -0.058333333333333334);
}
def code(t, l, k): return 2.0 * (((l * l) / t) * -0.058333333333333334)
function code(t, l, k) return Float64(2.0 * Float64(Float64(Float64(l * l) / t) * -0.058333333333333334)) end
function tmp = code(t, l, k) tmp = 2.0 * (((l * l) / t) * -0.058333333333333334); end
code[t_, l_, k_] := N[(2.0 * N[(N[(N[(l * l), $MachinePrecision] / t), $MachinePrecision] * -0.058333333333333334), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
2 \cdot \left(\frac{\ell \cdot \ell}{t} \cdot -0.058333333333333334\right)
\end{array}
Initial program 49.8%
associate-/l/49.8%
associate-*l/51.0%
associate-*l/50.2%
associate-/r/50.1%
*-commutative50.1%
associate-/l/50.1%
associate-*r*50.1%
*-commutative50.1%
associate-*r*50.1%
*-commutative50.1%
Simplified50.1%
Taylor expanded in k around inf 54.4%
*-commutative54.4%
times-frac54.8%
unpow254.8%
unpow254.8%
times-frac65.7%
Simplified65.7%
Taylor expanded in k around 0 33.3%
fma-def33.3%
unpow233.3%
unpow233.3%
associate-*r/33.3%
metadata-eval33.3%
Simplified33.3%
Taylor expanded in k around inf 26.7%
*-commutative26.7%
unpow226.7%
Simplified26.7%
Final simplification26.7%
(FPCore (t l k) :precision binary64 (* -0.11666666666666667 (* l (/ l t))))
double code(double t, double l, double k) {
return -0.11666666666666667 * (l * (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 = (-0.11666666666666667d0) * (l * (l / t))
end function
public static double code(double t, double l, double k) {
return -0.11666666666666667 * (l * (l / t));
}
def code(t, l, k): return -0.11666666666666667 * (l * (l / t))
function code(t, l, k) return Float64(-0.11666666666666667 * Float64(l * Float64(l / t))) end
function tmp = code(t, l, k) tmp = -0.11666666666666667 * (l * (l / t)); end
code[t_, l_, k_] := N[(-0.11666666666666667 * N[(l * N[(l / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
-0.11666666666666667 \cdot \left(\ell \cdot \frac{\ell}{t}\right)
\end{array}
Initial program 49.8%
associate-/l/49.8%
associate-*l/51.0%
associate-*l/50.2%
associate-/r/50.1%
*-commutative50.1%
associate-/l/50.1%
associate-*r*50.1%
*-commutative50.1%
associate-*r*50.1%
*-commutative50.1%
Simplified50.1%
Taylor expanded in k around inf 54.4%
*-commutative54.4%
times-frac54.8%
unpow254.8%
unpow254.8%
times-frac65.7%
Simplified65.7%
Taylor expanded in k around 0 33.3%
fma-def33.3%
unpow233.3%
unpow233.3%
associate-*r/33.3%
metadata-eval33.3%
Simplified33.3%
Taylor expanded in k around inf 26.7%
*-commutative26.7%
unpow226.7%
associate-/l*24.0%
Simplified24.0%
Taylor expanded in l around 0 26.7%
unpow226.7%
associate-*r/24.0%
Simplified24.0%
Final simplification24.0%
herbie shell --seed 2023207
(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))))