
(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 9 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 (sin k) 2.0)) (t_2 (* k (* k t))))
(if (<= (* l l) 1e-295)
(/ 2.0 (* (/ (* k (/ k l)) l) t_2))
(if (<= (* l l) 2e+81)
(/ (* 2.0 (* l (* l (cos k)))) (* t_2 t_1))
(* 2.0 (/ (* (pow (/ l k) 2.0) (/ (cos k) t)) t_1))))))
double code(double t, double l, double k) {
double t_1 = pow(sin(k), 2.0);
double t_2 = k * (k * t);
double tmp;
if ((l * l) <= 1e-295) {
tmp = 2.0 / (((k * (k / l)) / l) * t_2);
} else if ((l * l) <= 2e+81) {
tmp = (2.0 * (l * (l * cos(k)))) / (t_2 * t_1);
} else {
tmp = 2.0 * ((pow((l / k), 2.0) * (cos(k) / t)) / 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 = sin(k) ** 2.0d0
t_2 = k * (k * t)
if ((l * l) <= 1d-295) then
tmp = 2.0d0 / (((k * (k / l)) / l) * t_2)
else if ((l * l) <= 2d+81) then
tmp = (2.0d0 * (l * (l * cos(k)))) / (t_2 * t_1)
else
tmp = 2.0d0 * ((((l / k) ** 2.0d0) * (cos(k) / t)) / t_1)
end if
code = tmp
end function
public static double code(double t, double l, double k) {
double t_1 = Math.pow(Math.sin(k), 2.0);
double t_2 = k * (k * t);
double tmp;
if ((l * l) <= 1e-295) {
tmp = 2.0 / (((k * (k / l)) / l) * t_2);
} else if ((l * l) <= 2e+81) {
tmp = (2.0 * (l * (l * Math.cos(k)))) / (t_2 * t_1);
} else {
tmp = 2.0 * ((Math.pow((l / k), 2.0) * (Math.cos(k) / t)) / t_1);
}
return tmp;
}
def code(t, l, k): t_1 = math.pow(math.sin(k), 2.0) t_2 = k * (k * t) tmp = 0 if (l * l) <= 1e-295: tmp = 2.0 / (((k * (k / l)) / l) * t_2) elif (l * l) <= 2e+81: tmp = (2.0 * (l * (l * math.cos(k)))) / (t_2 * t_1) else: tmp = 2.0 * ((math.pow((l / k), 2.0) * (math.cos(k) / t)) / t_1) return tmp
function code(t, l, k) t_1 = sin(k) ^ 2.0 t_2 = Float64(k * Float64(k * t)) tmp = 0.0 if (Float64(l * l) <= 1e-295) tmp = Float64(2.0 / Float64(Float64(Float64(k * Float64(k / l)) / l) * t_2)); elseif (Float64(l * l) <= 2e+81) tmp = Float64(Float64(2.0 * Float64(l * Float64(l * cos(k)))) / Float64(t_2 * t_1)); else tmp = Float64(2.0 * Float64(Float64((Float64(l / k) ^ 2.0) * Float64(cos(k) / t)) / t_1)); end return tmp end
function tmp_2 = code(t, l, k) t_1 = sin(k) ^ 2.0; t_2 = k * (k * t); tmp = 0.0; if ((l * l) <= 1e-295) tmp = 2.0 / (((k * (k / l)) / l) * t_2); elseif ((l * l) <= 2e+81) tmp = (2.0 * (l * (l * cos(k)))) / (t_2 * t_1); else tmp = 2.0 * ((((l / k) ^ 2.0) * (cos(k) / t)) / t_1); end tmp_2 = tmp; end
code[t_, l_, k_] := Block[{t$95$1 = N[Power[N[Sin[k], $MachinePrecision], 2.0], $MachinePrecision]}, Block[{t$95$2 = N[(k * N[(k * t), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(l * l), $MachinePrecision], 1e-295], N[(2.0 / N[(N[(N[(k * N[(k / l), $MachinePrecision]), $MachinePrecision] / l), $MachinePrecision] * t$95$2), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(l * l), $MachinePrecision], 2e+81], N[(N[(2.0 * N[(l * N[(l * N[Cos[k], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(t$95$2 * t$95$1), $MachinePrecision]), $MachinePrecision], N[(2.0 * N[(N[(N[Power[N[(l / k), $MachinePrecision], 2.0], $MachinePrecision] * N[(N[Cos[k], $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision] / t$95$1), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := {\sin k}^{2}\\
t_2 := k \cdot \left(k \cdot t\right)\\
\mathbf{if}\;\ell \cdot \ell \leq 10^{-295}:\\
\;\;\;\;\frac{2}{\frac{k \cdot \frac{k}{\ell}}{\ell} \cdot t_2}\\
\mathbf{elif}\;\ell \cdot \ell \leq 2 \cdot 10^{+81}:\\
\;\;\;\;\frac{2 \cdot \left(\ell \cdot \left(\ell \cdot \cos k\right)\right)}{t_2 \cdot t_1}\\
\mathbf{else}:\\
\;\;\;\;2 \cdot \frac{{\left(\frac{\ell}{k}\right)}^{2} \cdot \frac{\cos k}{t}}{t_1}\\
\end{array}
\end{array}
if (*.f64 l l) < 1.00000000000000006e-295Initial program 28.3%
Taylor expanded in t around 0 56.9%
times-frac58.3%
unpow258.3%
unpow258.3%
times-frac81.6%
*-commutative81.6%
associate-/l*81.6%
Simplified81.6%
Taylor expanded in k around 0 81.6%
unpow281.6%
associate-*l*93.1%
Simplified93.1%
associate-*r/93.2%
Applied egg-rr93.2%
if 1.00000000000000006e-295 < (*.f64 l l) < 1.99999999999999984e81Initial program 37.8%
associate-/r*39.1%
*-commutative39.1%
associate-/r*39.1%
associate-*r/39.1%
associate-/l*39.1%
+-commutative39.1%
unpow239.1%
sqr-neg39.1%
distribute-frac-neg39.1%
distribute-frac-neg39.1%
unpow239.1%
associate--l+54.3%
metadata-eval54.3%
+-rgt-identity54.3%
unpow254.3%
distribute-frac-neg54.3%
Simplified54.3%
Taylor expanded in k around inf 96.3%
associate-*r/96.4%
unpow296.4%
associate-*l*96.4%
associate-*r*96.4%
unpow296.4%
Simplified96.4%
Taylor expanded in k around 0 96.4%
unpow296.4%
associate-*r*99.7%
Simplified99.7%
if 1.99999999999999984e81 < (*.f64 l l) Initial program 26.2%
associate-/r*26.2%
*-commutative26.2%
associate-/r*31.9%
associate-*r/31.9%
associate-/l*31.9%
+-commutative31.9%
unpow231.9%
sqr-neg31.9%
distribute-frac-neg31.9%
distribute-frac-neg31.9%
unpow231.9%
associate--l+36.3%
metadata-eval36.3%
+-rgt-identity36.3%
unpow236.3%
distribute-frac-neg36.3%
Simplified36.3%
Taylor expanded in k around inf 58.6%
associate-/r*59.8%
associate-/r*59.7%
unpow259.7%
times-frac70.6%
unpow270.6%
Simplified70.6%
Taylor expanded in l around 0 58.6%
times-frac59.7%
unpow259.7%
unpow259.7%
times-frac94.5%
unpow294.5%
Simplified94.5%
Final simplification95.8%
(FPCore (t l k)
:precision binary64
(let* ((t_1 (pow (sin k) 2.0)))
(if (<= l 1.6e-146)
(/ 2.0 (* (/ (* k (/ k l)) l) (* k (* k t))))
(if (<= l 2.25e+42)
(/ (* 2.0 (* l (* l (cos k)))) (* k (* (* k t) t_1)))
(* 2.0 (* (* (/ l k) (/ l k)) (/ (cos k) (* t t_1))))))))
double code(double t, double l, double k) {
double t_1 = pow(sin(k), 2.0);
double tmp;
if (l <= 1.6e-146) {
tmp = 2.0 / (((k * (k / l)) / l) * (k * (k * t)));
} else if (l <= 2.25e+42) {
tmp = (2.0 * (l * (l * cos(k)))) / (k * ((k * t) * t_1));
} else {
tmp = 2.0 * (((l / k) * (l / k)) * (cos(k) / (t * t_1)));
}
return tmp;
}
real(8) function code(t, l, k)
real(8), intent (in) :: t
real(8), intent (in) :: l
real(8), intent (in) :: k
real(8) :: t_1
real(8) :: tmp
t_1 = sin(k) ** 2.0d0
if (l <= 1.6d-146) then
tmp = 2.0d0 / (((k * (k / l)) / l) * (k * (k * t)))
else if (l <= 2.25d+42) then
tmp = (2.0d0 * (l * (l * cos(k)))) / (k * ((k * t) * t_1))
else
tmp = 2.0d0 * (((l / k) * (l / k)) * (cos(k) / (t * t_1)))
end if
code = tmp
end function
public static double code(double t, double l, double k) {
double t_1 = Math.pow(Math.sin(k), 2.0);
double tmp;
if (l <= 1.6e-146) {
tmp = 2.0 / (((k * (k / l)) / l) * (k * (k * t)));
} else if (l <= 2.25e+42) {
tmp = (2.0 * (l * (l * Math.cos(k)))) / (k * ((k * t) * t_1));
} else {
tmp = 2.0 * (((l / k) * (l / k)) * (Math.cos(k) / (t * t_1)));
}
return tmp;
}
def code(t, l, k): t_1 = math.pow(math.sin(k), 2.0) tmp = 0 if l <= 1.6e-146: tmp = 2.0 / (((k * (k / l)) / l) * (k * (k * t))) elif l <= 2.25e+42: tmp = (2.0 * (l * (l * math.cos(k)))) / (k * ((k * t) * t_1)) else: tmp = 2.0 * (((l / k) * (l / k)) * (math.cos(k) / (t * t_1))) return tmp
function code(t, l, k) t_1 = sin(k) ^ 2.0 tmp = 0.0 if (l <= 1.6e-146) tmp = Float64(2.0 / Float64(Float64(Float64(k * Float64(k / l)) / l) * Float64(k * Float64(k * t)))); elseif (l <= 2.25e+42) tmp = Float64(Float64(2.0 * Float64(l * Float64(l * cos(k)))) / Float64(k * Float64(Float64(k * t) * t_1))); else tmp = Float64(2.0 * Float64(Float64(Float64(l / k) * Float64(l / k)) * Float64(cos(k) / Float64(t * t_1)))); end return tmp end
function tmp_2 = code(t, l, k) t_1 = sin(k) ^ 2.0; tmp = 0.0; if (l <= 1.6e-146) tmp = 2.0 / (((k * (k / l)) / l) * (k * (k * t))); elseif (l <= 2.25e+42) tmp = (2.0 * (l * (l * cos(k)))) / (k * ((k * t) * t_1)); else tmp = 2.0 * (((l / k) * (l / k)) * (cos(k) / (t * t_1))); end tmp_2 = tmp; end
code[t_, l_, k_] := Block[{t$95$1 = N[Power[N[Sin[k], $MachinePrecision], 2.0], $MachinePrecision]}, If[LessEqual[l, 1.6e-146], N[(2.0 / N[(N[(N[(k * N[(k / l), $MachinePrecision]), $MachinePrecision] / l), $MachinePrecision] * N[(k * N[(k * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[l, 2.25e+42], N[(N[(2.0 * N[(l * N[(l * N[Cos[k], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(k * N[(N[(k * t), $MachinePrecision] * t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(2.0 * N[(N[(N[(l / k), $MachinePrecision] * N[(l / k), $MachinePrecision]), $MachinePrecision] * N[(N[Cos[k], $MachinePrecision] / N[(t * t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := {\sin k}^{2}\\
\mathbf{if}\;\ell \leq 1.6 \cdot 10^{-146}:\\
\;\;\;\;\frac{2}{\frac{k \cdot \frac{k}{\ell}}{\ell} \cdot \left(k \cdot \left(k \cdot t\right)\right)}\\
\mathbf{elif}\;\ell \leq 2.25 \cdot 10^{+42}:\\
\;\;\;\;\frac{2 \cdot \left(\ell \cdot \left(\ell \cdot \cos k\right)\right)}{k \cdot \left(\left(k \cdot t\right) \cdot t_1\right)}\\
\mathbf{else}:\\
\;\;\;\;2 \cdot \left(\left(\frac{\ell}{k} \cdot \frac{\ell}{k}\right) \cdot \frac{\cos k}{t \cdot t_1}\right)\\
\end{array}
\end{array}
if l < 1.6e-146Initial program 32.8%
Taylor expanded in t around 0 68.1%
times-frac68.8%
unpow268.8%
unpow268.8%
times-frac88.4%
*-commutative88.4%
associate-/l*88.4%
Simplified88.4%
Taylor expanded in k around 0 71.6%
unpow271.6%
associate-*l*76.5%
Simplified76.5%
associate-*r/76.6%
Applied egg-rr76.6%
if 1.6e-146 < l < 2.25000000000000006e42Initial program 37.5%
associate-/r*40.3%
*-commutative40.3%
associate-/r*40.3%
associate-*r/40.3%
associate-/l*40.3%
+-commutative40.3%
unpow240.3%
sqr-neg40.3%
distribute-frac-neg40.3%
distribute-frac-neg40.3%
unpow240.3%
associate--l+55.2%
metadata-eval55.2%
+-rgt-identity55.2%
unpow255.2%
distribute-frac-neg55.2%
Simplified55.2%
Taylor expanded in k around inf 97.3%
associate-*r/97.3%
unpow297.3%
associate-*l*97.3%
associate-*r*97.3%
unpow297.3%
Simplified97.3%
Taylor expanded in k around inf 97.3%
unpow297.3%
associate-*l*99.7%
associate-*l*99.8%
*-commutative99.8%
Simplified99.8%
if 2.25000000000000006e42 < l Initial program 15.9%
Taylor expanded in t around 0 56.2%
times-frac56.3%
unpow256.3%
unpow256.3%
times-frac95.3%
*-commutative95.3%
associate-/l*95.3%
Simplified95.3%
Taylor expanded in k around inf 56.2%
times-frac56.3%
unpow256.3%
unpow256.3%
times-frac95.3%
unpow295.3%
Simplified95.3%
unpow295.3%
Applied egg-rr95.3%
Final simplification83.3%
(FPCore (t l k)
:precision binary64
(let* ((t_1 (pow (sin k) 2.0)) (t_2 (* k (* k t))))
(if (<= l 4e-148)
(/ 2.0 (* (/ (* k (/ k l)) l) t_2))
(if (<= l 5.2e+41)
(/ (* 2.0 (* l (* l (cos k)))) (* t_2 t_1))
(* 2.0 (* (* (/ l k) (/ l k)) (/ (cos k) (* t t_1))))))))
double code(double t, double l, double k) {
double t_1 = pow(sin(k), 2.0);
double t_2 = k * (k * t);
double tmp;
if (l <= 4e-148) {
tmp = 2.0 / (((k * (k / l)) / l) * t_2);
} else if (l <= 5.2e+41) {
tmp = (2.0 * (l * (l * cos(k)))) / (t_2 * t_1);
} else {
tmp = 2.0 * (((l / k) * (l / k)) * (cos(k) / (t * 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 = sin(k) ** 2.0d0
t_2 = k * (k * t)
if (l <= 4d-148) then
tmp = 2.0d0 / (((k * (k / l)) / l) * t_2)
else if (l <= 5.2d+41) then
tmp = (2.0d0 * (l * (l * cos(k)))) / (t_2 * t_1)
else
tmp = 2.0d0 * (((l / k) * (l / k)) * (cos(k) / (t * t_1)))
end if
code = tmp
end function
public static double code(double t, double l, double k) {
double t_1 = Math.pow(Math.sin(k), 2.0);
double t_2 = k * (k * t);
double tmp;
if (l <= 4e-148) {
tmp = 2.0 / (((k * (k / l)) / l) * t_2);
} else if (l <= 5.2e+41) {
tmp = (2.0 * (l * (l * Math.cos(k)))) / (t_2 * t_1);
} else {
tmp = 2.0 * (((l / k) * (l / k)) * (Math.cos(k) / (t * t_1)));
}
return tmp;
}
def code(t, l, k): t_1 = math.pow(math.sin(k), 2.0) t_2 = k * (k * t) tmp = 0 if l <= 4e-148: tmp = 2.0 / (((k * (k / l)) / l) * t_2) elif l <= 5.2e+41: tmp = (2.0 * (l * (l * math.cos(k)))) / (t_2 * t_1) else: tmp = 2.0 * (((l / k) * (l / k)) * (math.cos(k) / (t * t_1))) return tmp
function code(t, l, k) t_1 = sin(k) ^ 2.0 t_2 = Float64(k * Float64(k * t)) tmp = 0.0 if (l <= 4e-148) tmp = Float64(2.0 / Float64(Float64(Float64(k * Float64(k / l)) / l) * t_2)); elseif (l <= 5.2e+41) tmp = Float64(Float64(2.0 * Float64(l * Float64(l * cos(k)))) / Float64(t_2 * t_1)); else tmp = Float64(2.0 * Float64(Float64(Float64(l / k) * Float64(l / k)) * Float64(cos(k) / Float64(t * t_1)))); end return tmp end
function tmp_2 = code(t, l, k) t_1 = sin(k) ^ 2.0; t_2 = k * (k * t); tmp = 0.0; if (l <= 4e-148) tmp = 2.0 / (((k * (k / l)) / l) * t_2); elseif (l <= 5.2e+41) tmp = (2.0 * (l * (l * cos(k)))) / (t_2 * t_1); else tmp = 2.0 * (((l / k) * (l / k)) * (cos(k) / (t * t_1))); end tmp_2 = tmp; end
code[t_, l_, k_] := Block[{t$95$1 = N[Power[N[Sin[k], $MachinePrecision], 2.0], $MachinePrecision]}, Block[{t$95$2 = N[(k * N[(k * t), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[l, 4e-148], N[(2.0 / N[(N[(N[(k * N[(k / l), $MachinePrecision]), $MachinePrecision] / l), $MachinePrecision] * t$95$2), $MachinePrecision]), $MachinePrecision], If[LessEqual[l, 5.2e+41], N[(N[(2.0 * N[(l * N[(l * N[Cos[k], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(t$95$2 * t$95$1), $MachinePrecision]), $MachinePrecision], N[(2.0 * N[(N[(N[(l / k), $MachinePrecision] * N[(l / k), $MachinePrecision]), $MachinePrecision] * N[(N[Cos[k], $MachinePrecision] / N[(t * t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := {\sin k}^{2}\\
t_2 := k \cdot \left(k \cdot t\right)\\
\mathbf{if}\;\ell \leq 4 \cdot 10^{-148}:\\
\;\;\;\;\frac{2}{\frac{k \cdot \frac{k}{\ell}}{\ell} \cdot t_2}\\
\mathbf{elif}\;\ell \leq 5.2 \cdot 10^{+41}:\\
\;\;\;\;\frac{2 \cdot \left(\ell \cdot \left(\ell \cdot \cos k\right)\right)}{t_2 \cdot t_1}\\
\mathbf{else}:\\
\;\;\;\;2 \cdot \left(\left(\frac{\ell}{k} \cdot \frac{\ell}{k}\right) \cdot \frac{\cos k}{t \cdot t_1}\right)\\
\end{array}
\end{array}
if l < 3.99999999999999974e-148Initial program 32.8%
Taylor expanded in t around 0 68.1%
times-frac68.8%
unpow268.8%
unpow268.8%
times-frac88.4%
*-commutative88.4%
associate-/l*88.4%
Simplified88.4%
Taylor expanded in k around 0 71.6%
unpow271.6%
associate-*l*76.5%
Simplified76.5%
associate-*r/76.6%
Applied egg-rr76.6%
if 3.99999999999999974e-148 < l < 5.2000000000000001e41Initial program 37.5%
associate-/r*40.3%
*-commutative40.3%
associate-/r*40.3%
associate-*r/40.3%
associate-/l*40.3%
+-commutative40.3%
unpow240.3%
sqr-neg40.3%
distribute-frac-neg40.3%
distribute-frac-neg40.3%
unpow240.3%
associate--l+55.2%
metadata-eval55.2%
+-rgt-identity55.2%
unpow255.2%
distribute-frac-neg55.2%
Simplified55.2%
Taylor expanded in k around inf 97.3%
associate-*r/97.3%
unpow297.3%
associate-*l*97.3%
associate-*r*97.3%
unpow297.3%
Simplified97.3%
Taylor expanded in k around 0 97.3%
unpow297.3%
associate-*r*99.8%
Simplified99.8%
if 5.2000000000000001e41 < l Initial program 15.9%
Taylor expanded in t around 0 56.2%
times-frac56.3%
unpow256.3%
unpow256.3%
times-frac95.3%
*-commutative95.3%
associate-/l*95.3%
Simplified95.3%
Taylor expanded in k around inf 56.2%
times-frac56.3%
unpow256.3%
unpow256.3%
times-frac95.3%
unpow295.3%
Simplified95.3%
unpow295.3%
Applied egg-rr95.3%
Final simplification83.3%
(FPCore (t l k) :precision binary64 (if (<= k 1.05e-83) (/ 2.0 (* (/ (* k (/ k l)) l) (* k (* k t)))) (* (/ (cos k) t) (/ 2.0 (pow (* (/ k l) (sin k)) 2.0)))))
double code(double t, double l, double k) {
double tmp;
if (k <= 1.05e-83) {
tmp = 2.0 / (((k * (k / l)) / l) * (k * (k * t)));
} else {
tmp = (cos(k) / t) * (2.0 / pow(((k / l) * 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 <= 1.05d-83) then
tmp = 2.0d0 / (((k * (k / l)) / l) * (k * (k * t)))
else
tmp = (cos(k) / t) * (2.0d0 / (((k / l) * sin(k)) ** 2.0d0))
end if
code = tmp
end function
public static double code(double t, double l, double k) {
double tmp;
if (k <= 1.05e-83) {
tmp = 2.0 / (((k * (k / l)) / l) * (k * (k * t)));
} else {
tmp = (Math.cos(k) / t) * (2.0 / Math.pow(((k / l) * Math.sin(k)), 2.0));
}
return tmp;
}
def code(t, l, k): tmp = 0 if k <= 1.05e-83: tmp = 2.0 / (((k * (k / l)) / l) * (k * (k * t))) else: tmp = (math.cos(k) / t) * (2.0 / math.pow(((k / l) * math.sin(k)), 2.0)) return tmp
function code(t, l, k) tmp = 0.0 if (k <= 1.05e-83) tmp = Float64(2.0 / Float64(Float64(Float64(k * Float64(k / l)) / l) * Float64(k * Float64(k * t)))); else tmp = Float64(Float64(cos(k) / t) * Float64(2.0 / (Float64(Float64(k / l) * sin(k)) ^ 2.0))); end return tmp end
function tmp_2 = code(t, l, k) tmp = 0.0; if (k <= 1.05e-83) tmp = 2.0 / (((k * (k / l)) / l) * (k * (k * t))); else tmp = (cos(k) / t) * (2.0 / (((k / l) * sin(k)) ^ 2.0)); end tmp_2 = tmp; end
code[t_, l_, k_] := If[LessEqual[k, 1.05e-83], N[(2.0 / N[(N[(N[(k * N[(k / l), $MachinePrecision]), $MachinePrecision] / l), $MachinePrecision] * N[(k * N[(k * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[Cos[k], $MachinePrecision] / t), $MachinePrecision] * N[(2.0 / N[Power[N[(N[(k / l), $MachinePrecision] * N[Sin[k], $MachinePrecision]), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;k \leq 1.05 \cdot 10^{-83}:\\
\;\;\;\;\frac{2}{\frac{k \cdot \frac{k}{\ell}}{\ell} \cdot \left(k \cdot \left(k \cdot t\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{\cos k}{t} \cdot \frac{2}{{\left(\frac{k}{\ell} \cdot \sin k\right)}^{2}}\\
\end{array}
\end{array}
if k < 1.0499999999999999e-83Initial program 28.6%
Taylor expanded in t around 0 67.4%
times-frac66.3%
unpow266.3%
unpow266.3%
times-frac88.7%
*-commutative88.7%
associate-/l*88.7%
Simplified88.7%
Taylor expanded in k around 0 72.1%
unpow272.1%
associate-*l*77.5%
Simplified77.5%
associate-*r/77.6%
Applied egg-rr77.6%
if 1.0499999999999999e-83 < k Initial program 33.5%
Taylor expanded in t around 0 73.8%
times-frac74.9%
unpow274.9%
unpow274.9%
times-frac91.4%
*-commutative91.4%
associate-/l*91.5%
Simplified91.5%
associate-*r/92.2%
pow292.2%
Applied egg-rr92.2%
associate-/r/92.2%
pow-prod-down94.1%
Applied egg-rr94.1%
Final simplification84.1%
(FPCore (t l k) :precision binary64 (if (<= k 1.5e+46) (/ 2.0 (* (/ (* k (/ k l)) l) (* k (* k t)))) (* -0.3333333333333333 (/ (pow (/ l k) 2.0) t))))
double code(double t, double l, double k) {
double tmp;
if (k <= 1.5e+46) {
tmp = 2.0 / (((k * (k / l)) / l) * (k * (k * t)));
} else {
tmp = -0.3333333333333333 * (pow((l / k), 2.0) / 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 (k <= 1.5d+46) then
tmp = 2.0d0 / (((k * (k / l)) / l) * (k * (k * t)))
else
tmp = (-0.3333333333333333d0) * (((l / k) ** 2.0d0) / t)
end if
code = tmp
end function
public static double code(double t, double l, double k) {
double tmp;
if (k <= 1.5e+46) {
tmp = 2.0 / (((k * (k / l)) / l) * (k * (k * t)));
} else {
tmp = -0.3333333333333333 * (Math.pow((l / k), 2.0) / t);
}
return tmp;
}
def code(t, l, k): tmp = 0 if k <= 1.5e+46: tmp = 2.0 / (((k * (k / l)) / l) * (k * (k * t))) else: tmp = -0.3333333333333333 * (math.pow((l / k), 2.0) / t) return tmp
function code(t, l, k) tmp = 0.0 if (k <= 1.5e+46) tmp = Float64(2.0 / Float64(Float64(Float64(k * Float64(k / l)) / l) * Float64(k * Float64(k * t)))); else tmp = Float64(-0.3333333333333333 * Float64((Float64(l / k) ^ 2.0) / t)); end return tmp end
function tmp_2 = code(t, l, k) tmp = 0.0; if (k <= 1.5e+46) tmp = 2.0 / (((k * (k / l)) / l) * (k * (k * t))); else tmp = -0.3333333333333333 * (((l / k) ^ 2.0) / t); end tmp_2 = tmp; end
code[t_, l_, k_] := If[LessEqual[k, 1.5e+46], N[(2.0 / N[(N[(N[(k * N[(k / l), $MachinePrecision]), $MachinePrecision] / l), $MachinePrecision] * N[(k * N[(k * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(-0.3333333333333333 * N[(N[Power[N[(l / k), $MachinePrecision], 2.0], $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;k \leq 1.5 \cdot 10^{+46}:\\
\;\;\;\;\frac{2}{\frac{k \cdot \frac{k}{\ell}}{\ell} \cdot \left(k \cdot \left(k \cdot t\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;-0.3333333333333333 \cdot \frac{{\left(\frac{\ell}{k}\right)}^{2}}{t}\\
\end{array}
\end{array}
if k < 1.50000000000000012e46Initial program 27.8%
Taylor expanded in t around 0 68.8%
times-frac68.4%
unpow268.4%
unpow268.4%
times-frac87.9%
*-commutative87.9%
associate-/l*88.0%
Simplified88.0%
Taylor expanded in k around 0 69.7%
unpow269.7%
associate-*l*74.3%
Simplified74.3%
associate-*r/74.3%
Applied egg-rr74.3%
if 1.50000000000000012e46 < k Initial program 37.6%
associate-/r*37.6%
*-commutative37.6%
associate-/r*40.7%
associate-*r/40.7%
associate-/l*40.7%
+-commutative40.7%
unpow240.7%
sqr-neg40.7%
distribute-frac-neg40.7%
distribute-frac-neg40.7%
unpow240.7%
associate--l+56.0%
metadata-eval56.0%
+-rgt-identity56.0%
unpow256.0%
distribute-frac-neg56.0%
Simplified56.0%
Taylor expanded in k around 0 60.3%
fma-def60.3%
unpow260.3%
unpow260.3%
associate-*r/60.3%
unpow260.3%
*-commutative60.3%
Simplified60.3%
Taylor expanded in k around inf 61.9%
associate-*r/61.9%
associate-/r*62.0%
associate-*r/62.0%
*-commutative62.0%
unpow262.0%
unpow262.0%
times-frac67.9%
unpow267.9%
*-commutative67.9%
associate-*r/67.9%
Simplified67.9%
Final simplification72.5%
(FPCore (t l k) :precision binary64 (if (<= k 1.5e+46) (/ 2.0 (* (* k (* k t)) (* (/ k l) (/ k l)))) (* 2.0 (* -0.16666666666666666 (* (/ l t) (/ l (* k k)))))))
double code(double t, double l, double k) {
double tmp;
if (k <= 1.5e+46) {
tmp = 2.0 / ((k * (k * t)) * ((k / l) * (k / l)));
} else {
tmp = 2.0 * (-0.16666666666666666 * ((l / t) * (l / (k * k))));
}
return tmp;
}
real(8) function code(t, l, k)
real(8), intent (in) :: t
real(8), intent (in) :: l
real(8), intent (in) :: k
real(8) :: tmp
if (k <= 1.5d+46) then
tmp = 2.0d0 / ((k * (k * t)) * ((k / l) * (k / l)))
else
tmp = 2.0d0 * ((-0.16666666666666666d0) * ((l / t) * (l / (k * k))))
end if
code = tmp
end function
public static double code(double t, double l, double k) {
double tmp;
if (k <= 1.5e+46) {
tmp = 2.0 / ((k * (k * t)) * ((k / l) * (k / l)));
} else {
tmp = 2.0 * (-0.16666666666666666 * ((l / t) * (l / (k * k))));
}
return tmp;
}
def code(t, l, k): tmp = 0 if k <= 1.5e+46: tmp = 2.0 / ((k * (k * t)) * ((k / l) * (k / l))) else: tmp = 2.0 * (-0.16666666666666666 * ((l / t) * (l / (k * k)))) return tmp
function code(t, l, k) tmp = 0.0 if (k <= 1.5e+46) tmp = Float64(2.0 / Float64(Float64(k * Float64(k * t)) * Float64(Float64(k / l) * Float64(k / l)))); else tmp = Float64(2.0 * Float64(-0.16666666666666666 * Float64(Float64(l / t) * Float64(l / Float64(k * k))))); end return tmp end
function tmp_2 = code(t, l, k) tmp = 0.0; if (k <= 1.5e+46) tmp = 2.0 / ((k * (k * t)) * ((k / l) * (k / l))); else tmp = 2.0 * (-0.16666666666666666 * ((l / t) * (l / (k * k)))); end tmp_2 = tmp; end
code[t_, l_, k_] := If[LessEqual[k, 1.5e+46], N[(2.0 / N[(N[(k * N[(k * t), $MachinePrecision]), $MachinePrecision] * N[(N[(k / l), $MachinePrecision] * N[(k / l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(2.0 * N[(-0.16666666666666666 * N[(N[(l / t), $MachinePrecision] * N[(l / N[(k * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;k \leq 1.5 \cdot 10^{+46}:\\
\;\;\;\;\frac{2}{\left(k \cdot \left(k \cdot t\right)\right) \cdot \left(\frac{k}{\ell} \cdot \frac{k}{\ell}\right)}\\
\mathbf{else}:\\
\;\;\;\;2 \cdot \left(-0.16666666666666666 \cdot \left(\frac{\ell}{t} \cdot \frac{\ell}{k \cdot k}\right)\right)\\
\end{array}
\end{array}
if k < 1.50000000000000012e46Initial program 27.8%
Taylor expanded in t around 0 68.8%
times-frac68.4%
unpow268.4%
unpow268.4%
times-frac87.9%
*-commutative87.9%
associate-/l*88.0%
Simplified88.0%
Taylor expanded in k around 0 69.7%
unpow269.7%
associate-*l*74.3%
Simplified74.3%
if 1.50000000000000012e46 < k Initial program 37.6%
Taylor expanded in t around 0 72.7%
times-frac72.9%
unpow272.9%
unpow272.9%
times-frac94.5%
*-commutative94.5%
associate-/l*94.5%
Simplified94.5%
Taylor expanded in k around 0 59.7%
distribute-lft-out59.7%
distribute-rgt-out--59.8%
metadata-eval59.8%
unpow259.8%
times-frac60.1%
unpow260.1%
associate-*r/60.1%
associate-/l/60.0%
unpow260.0%
associate-*l/64.9%
associate-/l*65.2%
associate-/r/65.2%
Simplified65.2%
Taylor expanded in k around inf 61.9%
unpow261.9%
*-commutative61.9%
times-frac66.8%
unpow266.8%
Simplified66.8%
Final simplification72.2%
(FPCore (t l k) :precision binary64 (if (<= k 1.5e+46) (/ 2.0 (* (/ (* k (/ k l)) l) (* k (* k t)))) (* 2.0 (* -0.16666666666666666 (* (/ l t) (/ l (* k k)))))))
double code(double t, double l, double k) {
double tmp;
if (k <= 1.5e+46) {
tmp = 2.0 / (((k * (k / l)) / l) * (k * (k * t)));
} else {
tmp = 2.0 * (-0.16666666666666666 * ((l / t) * (l / (k * k))));
}
return tmp;
}
real(8) function code(t, l, k)
real(8), intent (in) :: t
real(8), intent (in) :: l
real(8), intent (in) :: k
real(8) :: tmp
if (k <= 1.5d+46) then
tmp = 2.0d0 / (((k * (k / l)) / l) * (k * (k * t)))
else
tmp = 2.0d0 * ((-0.16666666666666666d0) * ((l / t) * (l / (k * k))))
end if
code = tmp
end function
public static double code(double t, double l, double k) {
double tmp;
if (k <= 1.5e+46) {
tmp = 2.0 / (((k * (k / l)) / l) * (k * (k * t)));
} else {
tmp = 2.0 * (-0.16666666666666666 * ((l / t) * (l / (k * k))));
}
return tmp;
}
def code(t, l, k): tmp = 0 if k <= 1.5e+46: tmp = 2.0 / (((k * (k / l)) / l) * (k * (k * t))) else: tmp = 2.0 * (-0.16666666666666666 * ((l / t) * (l / (k * k)))) return tmp
function code(t, l, k) tmp = 0.0 if (k <= 1.5e+46) tmp = Float64(2.0 / Float64(Float64(Float64(k * Float64(k / l)) / l) * Float64(k * Float64(k * t)))); else tmp = Float64(2.0 * Float64(-0.16666666666666666 * Float64(Float64(l / t) * Float64(l / Float64(k * k))))); end return tmp end
function tmp_2 = code(t, l, k) tmp = 0.0; if (k <= 1.5e+46) tmp = 2.0 / (((k * (k / l)) / l) * (k * (k * t))); else tmp = 2.0 * (-0.16666666666666666 * ((l / t) * (l / (k * k)))); end tmp_2 = tmp; end
code[t_, l_, k_] := If[LessEqual[k, 1.5e+46], N[(2.0 / N[(N[(N[(k * N[(k / l), $MachinePrecision]), $MachinePrecision] / l), $MachinePrecision] * N[(k * N[(k * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(2.0 * N[(-0.16666666666666666 * N[(N[(l / t), $MachinePrecision] * N[(l / N[(k * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;k \leq 1.5 \cdot 10^{+46}:\\
\;\;\;\;\frac{2}{\frac{k \cdot \frac{k}{\ell}}{\ell} \cdot \left(k \cdot \left(k \cdot t\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;2 \cdot \left(-0.16666666666666666 \cdot \left(\frac{\ell}{t} \cdot \frac{\ell}{k \cdot k}\right)\right)\\
\end{array}
\end{array}
if k < 1.50000000000000012e46Initial program 27.8%
Taylor expanded in t around 0 68.8%
times-frac68.4%
unpow268.4%
unpow268.4%
times-frac87.9%
*-commutative87.9%
associate-/l*88.0%
Simplified88.0%
Taylor expanded in k around 0 69.7%
unpow269.7%
associate-*l*74.3%
Simplified74.3%
associate-*r/74.3%
Applied egg-rr74.3%
if 1.50000000000000012e46 < k Initial program 37.6%
Taylor expanded in t around 0 72.7%
times-frac72.9%
unpow272.9%
unpow272.9%
times-frac94.5%
*-commutative94.5%
associate-/l*94.5%
Simplified94.5%
Taylor expanded in k around 0 59.7%
distribute-lft-out59.7%
distribute-rgt-out--59.8%
metadata-eval59.8%
unpow259.8%
times-frac60.1%
unpow260.1%
associate-*r/60.1%
associate-/l/60.0%
unpow260.0%
associate-*l/64.9%
associate-/l*65.2%
associate-/r/65.2%
Simplified65.2%
Taylor expanded in k around inf 61.9%
unpow261.9%
*-commutative61.9%
times-frac66.8%
unpow266.8%
Simplified66.8%
Final simplification72.2%
(FPCore (t l k) :precision binary64 (* 2.0 (* -0.16666666666666666 (* (/ l t) (/ l (* k k))))))
double code(double t, double l, double k) {
return 2.0 * (-0.16666666666666666 * ((l / t) * (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 * ((-0.16666666666666666d0) * ((l / t) * (l / (k * k))))
end function
public static double code(double t, double l, double k) {
return 2.0 * (-0.16666666666666666 * ((l / t) * (l / (k * k))));
}
def code(t, l, k): return 2.0 * (-0.16666666666666666 * ((l / t) * (l / (k * k))))
function code(t, l, k) return Float64(2.0 * Float64(-0.16666666666666666 * Float64(Float64(l / t) * Float64(l / Float64(k * k))))) end
function tmp = code(t, l, k) tmp = 2.0 * (-0.16666666666666666 * ((l / t) * (l / (k * k)))); end
code[t_, l_, k_] := N[(2.0 * N[(-0.16666666666666666 * N[(N[(l / t), $MachinePrecision] * N[(l / N[(k * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
2 \cdot \left(-0.16666666666666666 \cdot \left(\frac{\ell}{t} \cdot \frac{\ell}{k \cdot k}\right)\right)
\end{array}
Initial program 30.5%
Taylor expanded in t around 0 69.9%
times-frac69.7%
unpow269.7%
unpow269.7%
times-frac89.8%
*-commutative89.8%
associate-/l*89.8%
Simplified89.8%
Taylor expanded in k around 0 35.7%
distribute-lft-out35.7%
distribute-rgt-out--36.2%
metadata-eval36.2%
unpow236.2%
times-frac39.1%
unpow239.1%
associate-*r/39.6%
associate-/l/38.3%
unpow238.3%
associate-*l/42.0%
associate-/l*46.7%
associate-/r/46.6%
Simplified46.6%
Taylor expanded in k around inf 33.2%
unpow233.2%
*-commutative33.2%
times-frac35.4%
unpow235.4%
Simplified35.4%
Final simplification35.4%
(FPCore (t l k) :precision binary64 (* (/ -0.3333333333333333 (* k k)) (* l (/ l t))))
double code(double t, double l, double k) {
return (-0.3333333333333333 / (k * k)) * (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.3333333333333333d0) / (k * k)) * (l * (l / t))
end function
public static double code(double t, double l, double k) {
return (-0.3333333333333333 / (k * k)) * (l * (l / t));
}
def code(t, l, k): return (-0.3333333333333333 / (k * k)) * (l * (l / t))
function code(t, l, k) return Float64(Float64(-0.3333333333333333 / Float64(k * k)) * Float64(l * Float64(l / t))) end
function tmp = code(t, l, k) tmp = (-0.3333333333333333 / (k * k)) * (l * (l / t)); end
code[t_, l_, k_] := N[(N[(-0.3333333333333333 / N[(k * k), $MachinePrecision]), $MachinePrecision] * N[(l * N[(l / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{-0.3333333333333333}{k \cdot k} \cdot \left(\ell \cdot \frac{\ell}{t}\right)
\end{array}
Initial program 30.5%
associate-/r*31.0%
*-commutative31.0%
associate-/r*36.0%
associate-*r/37.1%
associate-/l*36.0%
+-commutative36.0%
unpow236.0%
sqr-neg36.0%
distribute-frac-neg36.0%
distribute-frac-neg36.0%
unpow236.0%
associate--l+45.9%
metadata-eval45.9%
+-rgt-identity45.9%
unpow245.9%
distribute-frac-neg45.9%
Simplified45.9%
Taylor expanded in k around 0 35.6%
fma-def35.6%
unpow235.6%
unpow235.6%
associate-*r/35.6%
unpow235.6%
*-commutative35.6%
Simplified35.6%
Taylor expanded in k around inf 33.2%
associate-*r/33.2%
unpow233.2%
unpow233.2%
Simplified33.2%
times-frac33.0%
associate-*r/35.1%
Applied egg-rr35.1%
Final simplification35.1%
herbie shell --seed 2023272
(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))))