
(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}
t_m = (fabs.f64 t)
t_s = (copysign.f64 1 t)
(FPCore (t_s t_m l k)
:precision binary64
(*
t_s
(*
2.0
(*
(cos k)
(/
(/ (/ l k) (sin k))
(* (sqrt t_m) (* (* (sin k) (sqrt t_m)) (/ k l))))))))t_m = fabs(t);
t_s = copysign(1.0, t);
double code(double t_s, double t_m, double l, double k) {
return t_s * (2.0 * (cos(k) * (((l / k) / sin(k)) / (sqrt(t_m) * ((sin(k) * sqrt(t_m)) * (k / l))))));
}
t_m = abs(t)
t_s = copysign(1.0d0, t)
real(8) function code(t_s, t_m, l, k)
real(8), intent (in) :: t_s
real(8), intent (in) :: t_m
real(8), intent (in) :: l
real(8), intent (in) :: k
code = t_s * (2.0d0 * (cos(k) * (((l / k) / sin(k)) / (sqrt(t_m) * ((sin(k) * sqrt(t_m)) * (k / l))))))
end function
t_m = Math.abs(t);
t_s = Math.copySign(1.0, t);
public static double code(double t_s, double t_m, double l, double k) {
return t_s * (2.0 * (Math.cos(k) * (((l / k) / Math.sin(k)) / (Math.sqrt(t_m) * ((Math.sin(k) * Math.sqrt(t_m)) * (k / l))))));
}
t_m = math.fabs(t) t_s = math.copysign(1.0, t) def code(t_s, t_m, l, k): return t_s * (2.0 * (math.cos(k) * (((l / k) / math.sin(k)) / (math.sqrt(t_m) * ((math.sin(k) * math.sqrt(t_m)) * (k / l))))))
t_m = abs(t) t_s = copysign(1.0, t) function code(t_s, t_m, l, k) return Float64(t_s * Float64(2.0 * Float64(cos(k) * Float64(Float64(Float64(l / k) / sin(k)) / Float64(sqrt(t_m) * Float64(Float64(sin(k) * sqrt(t_m)) * Float64(k / l))))))) end
t_m = abs(t); t_s = sign(t) * abs(1.0); function tmp = code(t_s, t_m, l, k) tmp = t_s * (2.0 * (cos(k) * (((l / k) / sin(k)) / (sqrt(t_m) * ((sin(k) * sqrt(t_m)) * (k / l)))))); end
t_m = N[Abs[t], $MachinePrecision]
t_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[t]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
code[t$95$s_, t$95$m_, l_, k_] := N[(t$95$s * N[(2.0 * N[(N[Cos[k], $MachinePrecision] * N[(N[(N[(l / k), $MachinePrecision] / N[Sin[k], $MachinePrecision]), $MachinePrecision] / N[(N[Sqrt[t$95$m], $MachinePrecision] * N[(N[(N[Sin[k], $MachinePrecision] * N[Sqrt[t$95$m], $MachinePrecision]), $MachinePrecision] * N[(k / l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
t_m = \left|t\right|
\\
t_s = \mathsf{copysign}\left(1, t\right)
\\
t_s \cdot \left(2 \cdot \left(\cos k \cdot \frac{\frac{\frac{\ell}{k}}{\sin k}}{\sqrt{t_m} \cdot \left(\left(\sin k \cdot \sqrt{t_m}\right) \cdot \frac{k}{\ell}\right)}\right)\right)
\end{array}
Initial program 37.2%
associate-/r*37.4%
*-commutative37.4%
associate-*l*37.4%
associate-*l/37.2%
+-commutative37.2%
unpow237.2%
sqr-neg37.2%
distribute-frac-neg37.2%
distribute-frac-neg37.2%
unpow237.2%
associate--l+45.0%
metadata-eval45.0%
+-rgt-identity45.0%
unpow245.0%
distribute-frac-neg45.0%
distribute-frac-neg45.0%
Simplified45.0%
Taylor expanded in k around inf 72.8%
associate-/l*72.8%
Simplified72.8%
expm1-log1p-u52.7%
expm1-udef28.2%
Applied egg-rr29.0%
expm1-def31.7%
expm1-log1p32.2%
Simplified32.2%
expm1-log1p-u30.5%
expm1-udef25.8%
Applied egg-rr29.1%
expm1-def36.7%
expm1-log1p40.0%
*-commutative40.0%
associate-/r*40.8%
Simplified40.8%
unpow240.8%
clear-num40.8%
associate-/r*40.8%
frac-times40.9%
*-un-lft-identity40.9%
div-inv40.8%
clear-num40.8%
Applied egg-rr40.8%
Final simplification40.8%
t_m = (fabs.f64 t) t_s = (copysign.f64 1 t) (FPCore (t_s t_m l k) :precision binary64 (* t_s (* 2.0 (* (cos k) (pow (/ (/ l k) (* (sin k) (sqrt t_m))) 2.0)))))
t_m = fabs(t);
t_s = copysign(1.0, t);
double code(double t_s, double t_m, double l, double k) {
return t_s * (2.0 * (cos(k) * pow(((l / k) / (sin(k) * sqrt(t_m))), 2.0)));
}
t_m = abs(t)
t_s = copysign(1.0d0, t)
real(8) function code(t_s, t_m, l, k)
real(8), intent (in) :: t_s
real(8), intent (in) :: t_m
real(8), intent (in) :: l
real(8), intent (in) :: k
code = t_s * (2.0d0 * (cos(k) * (((l / k) / (sin(k) * sqrt(t_m))) ** 2.0d0)))
end function
t_m = Math.abs(t);
t_s = Math.copySign(1.0, t);
public static double code(double t_s, double t_m, double l, double k) {
return t_s * (2.0 * (Math.cos(k) * Math.pow(((l / k) / (Math.sin(k) * Math.sqrt(t_m))), 2.0)));
}
t_m = math.fabs(t) t_s = math.copysign(1.0, t) def code(t_s, t_m, l, k): return t_s * (2.0 * (math.cos(k) * math.pow(((l / k) / (math.sin(k) * math.sqrt(t_m))), 2.0)))
t_m = abs(t) t_s = copysign(1.0, t) function code(t_s, t_m, l, k) return Float64(t_s * Float64(2.0 * Float64(cos(k) * (Float64(Float64(l / k) / Float64(sin(k) * sqrt(t_m))) ^ 2.0)))) end
t_m = abs(t); t_s = sign(t) * abs(1.0); function tmp = code(t_s, t_m, l, k) tmp = t_s * (2.0 * (cos(k) * (((l / k) / (sin(k) * sqrt(t_m))) ^ 2.0))); end
t_m = N[Abs[t], $MachinePrecision]
t_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[t]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
code[t$95$s_, t$95$m_, l_, k_] := N[(t$95$s * N[(2.0 * N[(N[Cos[k], $MachinePrecision] * N[Power[N[(N[(l / k), $MachinePrecision] / N[(N[Sin[k], $MachinePrecision] * N[Sqrt[t$95$m], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
t_m = \left|t\right|
\\
t_s = \mathsf{copysign}\left(1, t\right)
\\
t_s \cdot \left(2 \cdot \left(\cos k \cdot {\left(\frac{\frac{\ell}{k}}{\sin k \cdot \sqrt{t_m}}\right)}^{2}\right)\right)
\end{array}
Initial program 37.2%
associate-/r*37.4%
*-commutative37.4%
associate-*l*37.4%
associate-*l/37.2%
+-commutative37.2%
unpow237.2%
sqr-neg37.2%
distribute-frac-neg37.2%
distribute-frac-neg37.2%
unpow237.2%
associate--l+45.0%
metadata-eval45.0%
+-rgt-identity45.0%
unpow245.0%
distribute-frac-neg45.0%
distribute-frac-neg45.0%
Simplified45.0%
Taylor expanded in k around inf 72.8%
associate-/l*72.8%
Simplified72.8%
expm1-log1p-u52.7%
expm1-udef28.2%
Applied egg-rr29.0%
expm1-def31.7%
expm1-log1p32.2%
Simplified32.2%
expm1-log1p-u30.5%
expm1-udef25.8%
Applied egg-rr29.1%
expm1-def36.7%
expm1-log1p40.0%
*-commutative40.0%
associate-/r*40.8%
Simplified40.8%
Final simplification40.8%
t_m = (fabs.f64 t)
t_s = (copysign.f64 1 t)
(FPCore (t_s t_m l k)
:precision binary64
(let* ((t_2 (/ (/ l k) (sin k))))
(*
t_s
(if (<= k 4.6e-23)
(* 2.0 (* (cos k) (pow (/ (/ l k) (* k (sqrt t_m))) 2.0)))
(if (<= k 3.1e+106)
(* 2.0 (* (cos k) (* l (/ l (* t_m (pow (* k (sin k)) 2.0))))))
(* 2.0 (* (cos k) (/ (* t_2 t_2) t_m))))))))t_m = fabs(t);
t_s = copysign(1.0, t);
double code(double t_s, double t_m, double l, double k) {
double t_2 = (l / k) / sin(k);
double tmp;
if (k <= 4.6e-23) {
tmp = 2.0 * (cos(k) * pow(((l / k) / (k * sqrt(t_m))), 2.0));
} else if (k <= 3.1e+106) {
tmp = 2.0 * (cos(k) * (l * (l / (t_m * pow((k * sin(k)), 2.0)))));
} else {
tmp = 2.0 * (cos(k) * ((t_2 * t_2) / t_m));
}
return t_s * tmp;
}
t_m = abs(t)
t_s = copysign(1.0d0, t)
real(8) function code(t_s, t_m, l, k)
real(8), intent (in) :: t_s
real(8), intent (in) :: t_m
real(8), intent (in) :: l
real(8), intent (in) :: k
real(8) :: t_2
real(8) :: tmp
t_2 = (l / k) / sin(k)
if (k <= 4.6d-23) then
tmp = 2.0d0 * (cos(k) * (((l / k) / (k * sqrt(t_m))) ** 2.0d0))
else if (k <= 3.1d+106) then
tmp = 2.0d0 * (cos(k) * (l * (l / (t_m * ((k * sin(k)) ** 2.0d0)))))
else
tmp = 2.0d0 * (cos(k) * ((t_2 * t_2) / t_m))
end if
code = t_s * tmp
end function
t_m = Math.abs(t);
t_s = Math.copySign(1.0, t);
public static double code(double t_s, double t_m, double l, double k) {
double t_2 = (l / k) / Math.sin(k);
double tmp;
if (k <= 4.6e-23) {
tmp = 2.0 * (Math.cos(k) * Math.pow(((l / k) / (k * Math.sqrt(t_m))), 2.0));
} else if (k <= 3.1e+106) {
tmp = 2.0 * (Math.cos(k) * (l * (l / (t_m * Math.pow((k * Math.sin(k)), 2.0)))));
} else {
tmp = 2.0 * (Math.cos(k) * ((t_2 * t_2) / t_m));
}
return t_s * tmp;
}
t_m = math.fabs(t) t_s = math.copysign(1.0, t) def code(t_s, t_m, l, k): t_2 = (l / k) / math.sin(k) tmp = 0 if k <= 4.6e-23: tmp = 2.0 * (math.cos(k) * math.pow(((l / k) / (k * math.sqrt(t_m))), 2.0)) elif k <= 3.1e+106: tmp = 2.0 * (math.cos(k) * (l * (l / (t_m * math.pow((k * math.sin(k)), 2.0))))) else: tmp = 2.0 * (math.cos(k) * ((t_2 * t_2) / t_m)) return t_s * tmp
t_m = abs(t) t_s = copysign(1.0, t) function code(t_s, t_m, l, k) t_2 = Float64(Float64(l / k) / sin(k)) tmp = 0.0 if (k <= 4.6e-23) tmp = Float64(2.0 * Float64(cos(k) * (Float64(Float64(l / k) / Float64(k * sqrt(t_m))) ^ 2.0))); elseif (k <= 3.1e+106) tmp = Float64(2.0 * Float64(cos(k) * Float64(l * Float64(l / Float64(t_m * (Float64(k * sin(k)) ^ 2.0)))))); else tmp = Float64(2.0 * Float64(cos(k) * Float64(Float64(t_2 * t_2) / t_m))); end return Float64(t_s * tmp) end
t_m = abs(t); t_s = sign(t) * abs(1.0); function tmp_2 = code(t_s, t_m, l, k) t_2 = (l / k) / sin(k); tmp = 0.0; if (k <= 4.6e-23) tmp = 2.0 * (cos(k) * (((l / k) / (k * sqrt(t_m))) ^ 2.0)); elseif (k <= 3.1e+106) tmp = 2.0 * (cos(k) * (l * (l / (t_m * ((k * sin(k)) ^ 2.0))))); else tmp = 2.0 * (cos(k) * ((t_2 * t_2) / t_m)); end tmp_2 = t_s * tmp; end
t_m = N[Abs[t], $MachinePrecision]
t_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[t]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
code[t$95$s_, t$95$m_, l_, k_] := Block[{t$95$2 = N[(N[(l / k), $MachinePrecision] / N[Sin[k], $MachinePrecision]), $MachinePrecision]}, N[(t$95$s * If[LessEqual[k, 4.6e-23], N[(2.0 * N[(N[Cos[k], $MachinePrecision] * N[Power[N[(N[(l / k), $MachinePrecision] / N[(k * N[Sqrt[t$95$m], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, 3.1e+106], N[(2.0 * N[(N[Cos[k], $MachinePrecision] * N[(l * N[(l / N[(t$95$m * N[Power[N[(k * N[Sin[k], $MachinePrecision]), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(2.0 * N[(N[Cos[k], $MachinePrecision] * N[(N[(t$95$2 * t$95$2), $MachinePrecision] / t$95$m), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]), $MachinePrecision]]
\begin{array}{l}
t_m = \left|t\right|
\\
t_s = \mathsf{copysign}\left(1, t\right)
\\
\begin{array}{l}
t_2 := \frac{\frac{\ell}{k}}{\sin k}\\
t_s \cdot \begin{array}{l}
\mathbf{if}\;k \leq 4.6 \cdot 10^{-23}:\\
\;\;\;\;2 \cdot \left(\cos k \cdot {\left(\frac{\frac{\ell}{k}}{k \cdot \sqrt{t_m}}\right)}^{2}\right)\\
\mathbf{elif}\;k \leq 3.1 \cdot 10^{+106}:\\
\;\;\;\;2 \cdot \left(\cos k \cdot \left(\ell \cdot \frac{\ell}{t_m \cdot {\left(k \cdot \sin k\right)}^{2}}\right)\right)\\
\mathbf{else}:\\
\;\;\;\;2 \cdot \left(\cos k \cdot \frac{t_2 \cdot t_2}{t_m}\right)\\
\end{array}
\end{array}
\end{array}
if k < 4.6000000000000002e-23Initial program 36.2%
associate-/r*36.2%
*-commutative36.2%
associate-*l*36.2%
associate-*l/35.8%
+-commutative35.8%
unpow235.8%
sqr-neg35.8%
distribute-frac-neg35.8%
distribute-frac-neg35.8%
unpow235.8%
associate--l+43.4%
metadata-eval43.4%
+-rgt-identity43.4%
unpow243.4%
distribute-frac-neg43.4%
distribute-frac-neg43.4%
Simplified43.4%
Taylor expanded in k around inf 72.5%
associate-/l*72.5%
Simplified72.5%
expm1-log1p-u59.7%
expm1-udef27.8%
Applied egg-rr29.2%
expm1-def32.1%
expm1-log1p32.7%
Simplified32.7%
expm1-log1p-u31.4%
expm1-udef25.5%
Applied egg-rr29.3%
expm1-def38.5%
expm1-log1p41.1%
*-commutative41.1%
associate-/r*41.7%
Simplified41.7%
Taylor expanded in k around 0 28.7%
if 4.6000000000000002e-23 < k < 3.0999999999999999e106Initial program 34.0%
associate-/r*36.3%
*-commutative36.3%
associate-*l*36.3%
associate-*l/36.3%
+-commutative36.3%
unpow236.3%
sqr-neg36.3%
distribute-frac-neg36.3%
distribute-frac-neg36.3%
unpow236.3%
associate--l+44.0%
metadata-eval44.0%
+-rgt-identity44.0%
unpow244.0%
distribute-frac-neg44.0%
distribute-frac-neg44.0%
Simplified44.0%
Taylor expanded in k around inf 96.6%
associate-/l*96.7%
Simplified96.7%
expm1-log1p-u50.8%
expm1-udef19.4%
Applied egg-rr12.2%
expm1-def19.1%
expm1-log1p19.1%
Simplified19.1%
associate-/r/19.1%
associate-*r*19.0%
unpow-prod-down19.1%
pow219.1%
add-sqr-sqrt96.6%
Applied egg-rr96.6%
unpow296.6%
*-un-lft-identity96.6%
times-frac99.4%
*-commutative99.4%
Applied egg-rr99.4%
if 3.0999999999999999e106 < k Initial program 41.5%
associate-/r*41.5%
*-commutative41.5%
associate-*l*41.5%
associate-*l/41.5%
+-commutative41.5%
unpow241.5%
sqr-neg41.5%
distribute-frac-neg41.5%
distribute-frac-neg41.5%
unpow241.5%
associate--l+50.2%
metadata-eval50.2%
+-rgt-identity50.2%
unpow250.2%
distribute-frac-neg50.2%
distribute-frac-neg50.2%
Simplified50.2%
Taylor expanded in k around inf 62.8%
associate-/l*62.8%
Simplified62.8%
expm1-log1p-u33.1%
expm1-udef33.1%
Applied egg-rr36.1%
expm1-def36.1%
expm1-log1p36.3%
Simplified36.3%
expm1-log1p-u36.3%
expm1-udef33.1%
Applied egg-rr36.5%
expm1-def43.0%
expm1-log1p46.4%
*-commutative46.4%
associate-/r*48.1%
Simplified48.1%
unpow248.1%
associate-/r*48.0%
associate-/r*48.0%
frac-times46.4%
add-sqr-sqrt94.6%
Applied egg-rr94.6%
Final simplification50.8%
t_m = (fabs.f64 t)
t_s = (copysign.f64 1 t)
(FPCore (t_s t_m l k)
:precision binary64
(*
t_s
(if (<= k 1.1e-37)
(* 2.0 (* (cos k) (pow (/ (/ l k) (* k (sqrt t_m))) 2.0)))
(* 2.0 (* (cos k) (* (/ l (pow (* k (sin k)) 2.0)) (/ l t_m)))))))t_m = fabs(t);
t_s = copysign(1.0, t);
double code(double t_s, double t_m, double l, double k) {
double tmp;
if (k <= 1.1e-37) {
tmp = 2.0 * (cos(k) * pow(((l / k) / (k * sqrt(t_m))), 2.0));
} else {
tmp = 2.0 * (cos(k) * ((l / pow((k * sin(k)), 2.0)) * (l / t_m)));
}
return t_s * tmp;
}
t_m = abs(t)
t_s = copysign(1.0d0, t)
real(8) function code(t_s, t_m, l, k)
real(8), intent (in) :: t_s
real(8), intent (in) :: t_m
real(8), intent (in) :: l
real(8), intent (in) :: k
real(8) :: tmp
if (k <= 1.1d-37) then
tmp = 2.0d0 * (cos(k) * (((l / k) / (k * sqrt(t_m))) ** 2.0d0))
else
tmp = 2.0d0 * (cos(k) * ((l / ((k * sin(k)) ** 2.0d0)) * (l / t_m)))
end if
code = t_s * tmp
end function
t_m = Math.abs(t);
t_s = Math.copySign(1.0, t);
public static double code(double t_s, double t_m, double l, double k) {
double tmp;
if (k <= 1.1e-37) {
tmp = 2.0 * (Math.cos(k) * Math.pow(((l / k) / (k * Math.sqrt(t_m))), 2.0));
} else {
tmp = 2.0 * (Math.cos(k) * ((l / Math.pow((k * Math.sin(k)), 2.0)) * (l / t_m)));
}
return t_s * tmp;
}
t_m = math.fabs(t) t_s = math.copysign(1.0, t) def code(t_s, t_m, l, k): tmp = 0 if k <= 1.1e-37: tmp = 2.0 * (math.cos(k) * math.pow(((l / k) / (k * math.sqrt(t_m))), 2.0)) else: tmp = 2.0 * (math.cos(k) * ((l / math.pow((k * math.sin(k)), 2.0)) * (l / t_m))) return t_s * tmp
t_m = abs(t) t_s = copysign(1.0, t) function code(t_s, t_m, l, k) tmp = 0.0 if (k <= 1.1e-37) tmp = Float64(2.0 * Float64(cos(k) * (Float64(Float64(l / k) / Float64(k * sqrt(t_m))) ^ 2.0))); else tmp = Float64(2.0 * Float64(cos(k) * Float64(Float64(l / (Float64(k * sin(k)) ^ 2.0)) * Float64(l / t_m)))); end return Float64(t_s * tmp) end
t_m = abs(t); t_s = sign(t) * abs(1.0); function tmp_2 = code(t_s, t_m, l, k) tmp = 0.0; if (k <= 1.1e-37) tmp = 2.0 * (cos(k) * (((l / k) / (k * sqrt(t_m))) ^ 2.0)); else tmp = 2.0 * (cos(k) * ((l / ((k * sin(k)) ^ 2.0)) * (l / t_m))); end tmp_2 = t_s * tmp; end
t_m = N[Abs[t], $MachinePrecision]
t_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[t]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
code[t$95$s_, t$95$m_, l_, k_] := N[(t$95$s * If[LessEqual[k, 1.1e-37], N[(2.0 * N[(N[Cos[k], $MachinePrecision] * N[Power[N[(N[(l / k), $MachinePrecision] / N[(k * N[Sqrt[t$95$m], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(2.0 * N[(N[Cos[k], $MachinePrecision] * N[(N[(l / N[Power[N[(k * N[Sin[k], $MachinePrecision]), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision] * N[(l / t$95$m), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]), $MachinePrecision]
\begin{array}{l}
t_m = \left|t\right|
\\
t_s = \mathsf{copysign}\left(1, t\right)
\\
t_s \cdot \begin{array}{l}
\mathbf{if}\;k \leq 1.1 \cdot 10^{-37}:\\
\;\;\;\;2 \cdot \left(\cos k \cdot {\left(\frac{\frac{\ell}{k}}{k \cdot \sqrt{t_m}}\right)}^{2}\right)\\
\mathbf{else}:\\
\;\;\;\;2 \cdot \left(\cos k \cdot \left(\frac{\ell}{{\left(k \cdot \sin k\right)}^{2}} \cdot \frac{\ell}{t_m}\right)\right)\\
\end{array}
\end{array}
if k < 1.10000000000000001e-37Initial program 37.0%
associate-/r*37.0%
*-commutative37.0%
associate-*l*37.0%
associate-*l/36.7%
+-commutative36.7%
unpow236.7%
sqr-neg36.7%
distribute-frac-neg36.7%
distribute-frac-neg36.7%
unpow236.7%
associate--l+43.3%
metadata-eval43.3%
+-rgt-identity43.3%
unpow243.3%
distribute-frac-neg43.3%
distribute-frac-neg43.3%
Simplified43.3%
Taylor expanded in k around inf 72.5%
associate-/l*72.5%
Simplified72.5%
expm1-log1p-u59.3%
expm1-udef27.3%
Applied egg-rr29.3%
expm1-def31.7%
expm1-log1p32.3%
Simplified32.3%
expm1-log1p-u31.0%
expm1-udef24.9%
Applied egg-rr28.8%
expm1-def38.2%
expm1-log1p40.9%
*-commutative40.9%
associate-/r*41.5%
Simplified41.5%
Taylor expanded in k around 0 28.2%
if 1.10000000000000001e-37 < k Initial program 37.4%
associate-/r*38.1%
*-commutative38.1%
associate-*l*38.1%
associate-*l/38.1%
+-commutative38.1%
unpow238.1%
sqr-neg38.1%
distribute-frac-neg38.1%
distribute-frac-neg38.1%
unpow238.1%
associate--l+48.4%
metadata-eval48.4%
+-rgt-identity48.4%
unpow248.4%
distribute-frac-neg48.4%
distribute-frac-neg48.4%
Simplified48.4%
Taylor expanded in k around inf 73.3%
associate-/l*73.4%
Simplified73.4%
expm1-log1p-u40.2%
expm1-udef29.8%
Applied egg-rr28.5%
expm1-def31.7%
expm1-log1p31.8%
Simplified31.8%
associate-/r/31.8%
associate-*r*31.8%
unpow-prod-down29.7%
pow229.7%
add-sqr-sqrt73.3%
Applied egg-rr73.3%
unpow273.3%
times-frac77.6%
Applied egg-rr77.6%
Final simplification45.2%
t_m = (fabs.f64 t) t_s = (copysign.f64 1 t) (FPCore (t_s t_m l k) :precision binary64 (* t_s (* 2.0 (* (cos k) (pow (/ (/ l k) (* k (sqrt t_m))) 2.0)))))
t_m = fabs(t);
t_s = copysign(1.0, t);
double code(double t_s, double t_m, double l, double k) {
return t_s * (2.0 * (cos(k) * pow(((l / k) / (k * sqrt(t_m))), 2.0)));
}
t_m = abs(t)
t_s = copysign(1.0d0, t)
real(8) function code(t_s, t_m, l, k)
real(8), intent (in) :: t_s
real(8), intent (in) :: t_m
real(8), intent (in) :: l
real(8), intent (in) :: k
code = t_s * (2.0d0 * (cos(k) * (((l / k) / (k * sqrt(t_m))) ** 2.0d0)))
end function
t_m = Math.abs(t);
t_s = Math.copySign(1.0, t);
public static double code(double t_s, double t_m, double l, double k) {
return t_s * (2.0 * (Math.cos(k) * Math.pow(((l / k) / (k * Math.sqrt(t_m))), 2.0)));
}
t_m = math.fabs(t) t_s = math.copysign(1.0, t) def code(t_s, t_m, l, k): return t_s * (2.0 * (math.cos(k) * math.pow(((l / k) / (k * math.sqrt(t_m))), 2.0)))
t_m = abs(t) t_s = copysign(1.0, t) function code(t_s, t_m, l, k) return Float64(t_s * Float64(2.0 * Float64(cos(k) * (Float64(Float64(l / k) / Float64(k * sqrt(t_m))) ^ 2.0)))) end
t_m = abs(t); t_s = sign(t) * abs(1.0); function tmp = code(t_s, t_m, l, k) tmp = t_s * (2.0 * (cos(k) * (((l / k) / (k * sqrt(t_m))) ^ 2.0))); end
t_m = N[Abs[t], $MachinePrecision]
t_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[t]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
code[t$95$s_, t$95$m_, l_, k_] := N[(t$95$s * N[(2.0 * N[(N[Cos[k], $MachinePrecision] * N[Power[N[(N[(l / k), $MachinePrecision] / N[(k * N[Sqrt[t$95$m], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
t_m = \left|t\right|
\\
t_s = \mathsf{copysign}\left(1, t\right)
\\
t_s \cdot \left(2 \cdot \left(\cos k \cdot {\left(\frac{\frac{\ell}{k}}{k \cdot \sqrt{t_m}}\right)}^{2}\right)\right)
\end{array}
Initial program 37.2%
associate-/r*37.4%
*-commutative37.4%
associate-*l*37.4%
associate-*l/37.2%
+-commutative37.2%
unpow237.2%
sqr-neg37.2%
distribute-frac-neg37.2%
distribute-frac-neg37.2%
unpow237.2%
associate--l+45.0%
metadata-eval45.0%
+-rgt-identity45.0%
unpow245.0%
distribute-frac-neg45.0%
distribute-frac-neg45.0%
Simplified45.0%
Taylor expanded in k around inf 72.8%
associate-/l*72.8%
Simplified72.8%
expm1-log1p-u52.7%
expm1-udef28.2%
Applied egg-rr29.0%
expm1-def31.7%
expm1-log1p32.2%
Simplified32.2%
expm1-log1p-u30.5%
expm1-udef25.8%
Applied egg-rr29.1%
expm1-def36.7%
expm1-log1p40.0%
*-commutative40.0%
associate-/r*40.8%
Simplified40.8%
Taylor expanded in k around 0 28.4%
Final simplification28.4%
t_m = (fabs.f64 t) t_s = (copysign.f64 1 t) (FPCore (t_s t_m l k) :precision binary64 (* t_s (/ 2.0 (* (/ (pow k 2.0) l) (/ t_m (* l (pow k -2.0)))))))
t_m = fabs(t);
t_s = copysign(1.0, t);
double code(double t_s, double t_m, double l, double k) {
return t_s * (2.0 / ((pow(k, 2.0) / l) * (t_m / (l * pow(k, -2.0)))));
}
t_m = abs(t)
t_s = copysign(1.0d0, t)
real(8) function code(t_s, t_m, l, k)
real(8), intent (in) :: t_s
real(8), intent (in) :: t_m
real(8), intent (in) :: l
real(8), intent (in) :: k
code = t_s * (2.0d0 / (((k ** 2.0d0) / l) * (t_m / (l * (k ** (-2.0d0))))))
end function
t_m = Math.abs(t);
t_s = Math.copySign(1.0, t);
public static double code(double t_s, double t_m, double l, double k) {
return t_s * (2.0 / ((Math.pow(k, 2.0) / l) * (t_m / (l * Math.pow(k, -2.0)))));
}
t_m = math.fabs(t) t_s = math.copysign(1.0, t) def code(t_s, t_m, l, k): return t_s * (2.0 / ((math.pow(k, 2.0) / l) * (t_m / (l * math.pow(k, -2.0)))))
t_m = abs(t) t_s = copysign(1.0, t) function code(t_s, t_m, l, k) return Float64(t_s * Float64(2.0 / Float64(Float64((k ^ 2.0) / l) * Float64(t_m / Float64(l * (k ^ -2.0)))))) end
t_m = abs(t); t_s = sign(t) * abs(1.0); function tmp = code(t_s, t_m, l, k) tmp = t_s * (2.0 / (((k ^ 2.0) / l) * (t_m / (l * (k ^ -2.0))))); end
t_m = N[Abs[t], $MachinePrecision]
t_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[t]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
code[t$95$s_, t$95$m_, l_, k_] := N[(t$95$s * N[(2.0 / N[(N[(N[Power[k, 2.0], $MachinePrecision] / l), $MachinePrecision] * N[(t$95$m / N[(l * N[Power[k, -2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
t_m = \left|t\right|
\\
t_s = \mathsf{copysign}\left(1, t\right)
\\
t_s \cdot \frac{2}{\frac{{k}^{2}}{\ell} \cdot \frac{t_m}{\ell \cdot {k}^{-2}}}
\end{array}
Initial program 37.2%
associate-*l*37.2%
associate-*l/36.9%
associate--l+36.9%
Simplified36.9%
Taylor expanded in k around 0 60.9%
expm1-log1p-u43.2%
div-inv42.9%
*-commutative42.9%
pow-flip42.9%
metadata-eval42.9%
Applied egg-rr42.9%
expm1-log1p-u60.2%
associate-*l*60.3%
metadata-eval60.3%
pow-prod-up60.3%
add-sqr-sqrt60.3%
unswap-sqr61.2%
sqrt-pow149.0%
metadata-eval49.0%
unpow-149.0%
div-inv49.0%
sqrt-pow170.9%
metadata-eval70.9%
unpow-170.9%
div-inv70.9%
times-frac61.0%
pow-sqr61.0%
metadata-eval61.0%
unpow261.0%
clear-num61.0%
div-inv61.0%
*-un-lft-identity61.0%
Applied egg-rr72.9%
Final simplification72.9%
t_m = (fabs.f64 t) t_s = (copysign.f64 1 t) (FPCore (t_s t_m l k) :precision binary64 (* t_s (* 2.0 (/ (pow (* l (pow k -2.0)) 2.0) t_m))))
t_m = fabs(t);
t_s = copysign(1.0, t);
double code(double t_s, double t_m, double l, double k) {
return t_s * (2.0 * (pow((l * pow(k, -2.0)), 2.0) / t_m));
}
t_m = abs(t)
t_s = copysign(1.0d0, t)
real(8) function code(t_s, t_m, l, k)
real(8), intent (in) :: t_s
real(8), intent (in) :: t_m
real(8), intent (in) :: l
real(8), intent (in) :: k
code = t_s * (2.0d0 * (((l * (k ** (-2.0d0))) ** 2.0d0) / t_m))
end function
t_m = Math.abs(t);
t_s = Math.copySign(1.0, t);
public static double code(double t_s, double t_m, double l, double k) {
return t_s * (2.0 * (Math.pow((l * Math.pow(k, -2.0)), 2.0) / t_m));
}
t_m = math.fabs(t) t_s = math.copysign(1.0, t) def code(t_s, t_m, l, k): return t_s * (2.0 * (math.pow((l * math.pow(k, -2.0)), 2.0) / t_m))
t_m = abs(t) t_s = copysign(1.0, t) function code(t_s, t_m, l, k) return Float64(t_s * Float64(2.0 * Float64((Float64(l * (k ^ -2.0)) ^ 2.0) / t_m))) end
t_m = abs(t); t_s = sign(t) * abs(1.0); function tmp = code(t_s, t_m, l, k) tmp = t_s * (2.0 * (((l * (k ^ -2.0)) ^ 2.0) / t_m)); end
t_m = N[Abs[t], $MachinePrecision]
t_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[t]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
code[t$95$s_, t$95$m_, l_, k_] := N[(t$95$s * N[(2.0 * N[(N[Power[N[(l * N[Power[k, -2.0], $MachinePrecision]), $MachinePrecision], 2.0], $MachinePrecision] / t$95$m), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
t_m = \left|t\right|
\\
t_s = \mathsf{copysign}\left(1, t\right)
\\
t_s \cdot \left(2 \cdot \frac{{\left(\ell \cdot {k}^{-2}\right)}^{2}}{t_m}\right)
\end{array}
Initial program 37.2%
associate-/r*37.4%
*-commutative37.4%
associate-*l*37.4%
associate-*l/37.2%
+-commutative37.2%
unpow237.2%
sqr-neg37.2%
distribute-frac-neg37.2%
distribute-frac-neg37.2%
unpow237.2%
associate--l+45.0%
metadata-eval45.0%
+-rgt-identity45.0%
unpow245.0%
distribute-frac-neg45.0%
distribute-frac-neg45.0%
Simplified45.0%
Taylor expanded in k around inf 72.8%
associate-/l*72.8%
Simplified72.8%
expm1-log1p-u52.7%
expm1-udef28.2%
Applied egg-rr29.0%
expm1-def31.7%
expm1-log1p32.2%
Simplified32.2%
Taylor expanded in k around 0 60.9%
associate-/r*61.0%
Simplified61.0%
expm1-log1p-u60.9%
expm1-udef60.6%
add-sqr-sqrt60.6%
add-sqr-sqrt60.6%
unpow260.6%
metadata-eval60.6%
pow-prod-up60.6%
frac-times67.4%
pow267.4%
div-inv67.4%
pow-flip67.4%
metadata-eval67.4%
Applied egg-rr67.4%
expm1-def70.7%
expm1-log1p70.9%
Simplified70.9%
Final simplification70.9%
t_m = (fabs.f64 t) t_s = (copysign.f64 1 t) (FPCore (t_s t_m l k) :precision binary64 (* t_s (* 2.0 (* (/ l t_m) (/ l (pow k 4.0))))))
t_m = fabs(t);
t_s = copysign(1.0, t);
double code(double t_s, double t_m, double l, double k) {
return t_s * (2.0 * ((l / t_m) * (l / pow(k, 4.0))));
}
t_m = abs(t)
t_s = copysign(1.0d0, t)
real(8) function code(t_s, t_m, l, k)
real(8), intent (in) :: t_s
real(8), intent (in) :: t_m
real(8), intent (in) :: l
real(8), intent (in) :: k
code = t_s * (2.0d0 * ((l / t_m) * (l / (k ** 4.0d0))))
end function
t_m = Math.abs(t);
t_s = Math.copySign(1.0, t);
public static double code(double t_s, double t_m, double l, double k) {
return t_s * (2.0 * ((l / t_m) * (l / Math.pow(k, 4.0))));
}
t_m = math.fabs(t) t_s = math.copysign(1.0, t) def code(t_s, t_m, l, k): return t_s * (2.0 * ((l / t_m) * (l / math.pow(k, 4.0))))
t_m = abs(t) t_s = copysign(1.0, t) function code(t_s, t_m, l, k) return Float64(t_s * Float64(2.0 * Float64(Float64(l / t_m) * Float64(l / (k ^ 4.0))))) end
t_m = abs(t); t_s = sign(t) * abs(1.0); function tmp = code(t_s, t_m, l, k) tmp = t_s * (2.0 * ((l / t_m) * (l / (k ^ 4.0)))); end
t_m = N[Abs[t], $MachinePrecision]
t_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[t]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
code[t$95$s_, t$95$m_, l_, k_] := N[(t$95$s * N[(2.0 * N[(N[(l / t$95$m), $MachinePrecision] * N[(l / N[Power[k, 4.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
t_m = \left|t\right|
\\
t_s = \mathsf{copysign}\left(1, t\right)
\\
t_s \cdot \left(2 \cdot \left(\frac{\ell}{t_m} \cdot \frac{\ell}{{k}^{4}}\right)\right)
\end{array}
Initial program 37.2%
associate-/r*37.4%
*-commutative37.4%
associate-*l*37.4%
associate-*l/37.2%
+-commutative37.2%
unpow237.2%
sqr-neg37.2%
distribute-frac-neg37.2%
distribute-frac-neg37.2%
unpow237.2%
associate--l+45.0%
metadata-eval45.0%
+-rgt-identity45.0%
unpow245.0%
distribute-frac-neg45.0%
distribute-frac-neg45.0%
Simplified45.0%
Taylor expanded in k around inf 72.8%
associate-/l*72.8%
Simplified72.8%
expm1-log1p-u52.7%
expm1-udef28.2%
Applied egg-rr29.0%
expm1-def31.7%
expm1-log1p32.2%
Simplified32.2%
Taylor expanded in k around 0 60.9%
associate-/r*61.0%
Simplified61.0%
associate-/l/60.9%
unpow260.9%
*-commutative60.9%
times-frac68.6%
Applied egg-rr68.6%
Final simplification68.6%
t_m = (fabs.f64 t) t_s = (copysign.f64 1 t) (FPCore (t_s t_m l k) :precision binary64 (* t_s (* 2.0 (/ (* l (/ l (pow k 4.0))) t_m))))
t_m = fabs(t);
t_s = copysign(1.0, t);
double code(double t_s, double t_m, double l, double k) {
return t_s * (2.0 * ((l * (l / pow(k, 4.0))) / t_m));
}
t_m = abs(t)
t_s = copysign(1.0d0, t)
real(8) function code(t_s, t_m, l, k)
real(8), intent (in) :: t_s
real(8), intent (in) :: t_m
real(8), intent (in) :: l
real(8), intent (in) :: k
code = t_s * (2.0d0 * ((l * (l / (k ** 4.0d0))) / t_m))
end function
t_m = Math.abs(t);
t_s = Math.copySign(1.0, t);
public static double code(double t_s, double t_m, double l, double k) {
return t_s * (2.0 * ((l * (l / Math.pow(k, 4.0))) / t_m));
}
t_m = math.fabs(t) t_s = math.copysign(1.0, t) def code(t_s, t_m, l, k): return t_s * (2.0 * ((l * (l / math.pow(k, 4.0))) / t_m))
t_m = abs(t) t_s = copysign(1.0, t) function code(t_s, t_m, l, k) return Float64(t_s * Float64(2.0 * Float64(Float64(l * Float64(l / (k ^ 4.0))) / t_m))) end
t_m = abs(t); t_s = sign(t) * abs(1.0); function tmp = code(t_s, t_m, l, k) tmp = t_s * (2.0 * ((l * (l / (k ^ 4.0))) / t_m)); end
t_m = N[Abs[t], $MachinePrecision]
t_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[t]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
code[t$95$s_, t$95$m_, l_, k_] := N[(t$95$s * N[(2.0 * N[(N[(l * N[(l / N[Power[k, 4.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / t$95$m), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
t_m = \left|t\right|
\\
t_s = \mathsf{copysign}\left(1, t\right)
\\
t_s \cdot \left(2 \cdot \frac{\ell \cdot \frac{\ell}{{k}^{4}}}{t_m}\right)
\end{array}
Initial program 37.2%
associate-/r*37.4%
*-commutative37.4%
associate-*l*37.4%
associate-*l/37.2%
+-commutative37.2%
unpow237.2%
sqr-neg37.2%
distribute-frac-neg37.2%
distribute-frac-neg37.2%
unpow237.2%
associate--l+45.0%
metadata-eval45.0%
+-rgt-identity45.0%
unpow245.0%
distribute-frac-neg45.0%
distribute-frac-neg45.0%
Simplified45.0%
Taylor expanded in k around inf 72.8%
associate-/l*72.8%
Simplified72.8%
expm1-log1p-u52.7%
expm1-udef28.2%
Applied egg-rr29.0%
expm1-def31.7%
expm1-log1p32.2%
Simplified32.2%
Taylor expanded in k around 0 60.9%
associate-/r*61.0%
Simplified61.0%
unpow261.0%
*-un-lft-identity61.0%
times-frac68.6%
Applied egg-rr68.6%
Final simplification68.6%
herbie shell --seed 2023337
(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))))