
(FPCore (t l k) :precision binary64 (/ 2.0 (* (* (* (/ (pow t 3.0) (* l l)) (sin k)) (tan k)) (+ (+ 1.0 (pow (/ k t) 2.0)) 1.0))))
double code(double t, double l, double k) {
return 2.0 / ((((pow(t, 3.0) / (l * l)) * sin(k)) * tan(k)) * ((1.0 + pow((k / t), 2.0)) + 1.0));
}
real(8) function code(t, l, k)
real(8), intent (in) :: t
real(8), intent (in) :: l
real(8), intent (in) :: k
code = 2.0d0 / (((((t ** 3.0d0) / (l * l)) * sin(k)) * tan(k)) * ((1.0d0 + ((k / t) ** 2.0d0)) + 1.0d0))
end function
public static double code(double t, double l, double k) {
return 2.0 / ((((Math.pow(t, 3.0) / (l * l)) * Math.sin(k)) * Math.tan(k)) * ((1.0 + Math.pow((k / t), 2.0)) + 1.0));
}
def code(t, l, k): return 2.0 / ((((math.pow(t, 3.0) / (l * l)) * math.sin(k)) * math.tan(k)) * ((1.0 + math.pow((k / t), 2.0)) + 1.0))
function code(t, l, k) return Float64(2.0 / Float64(Float64(Float64(Float64((t ^ 3.0) / Float64(l * l)) * sin(k)) * tan(k)) * Float64(Float64(1.0 + (Float64(k / t) ^ 2.0)) + 1.0))) end
function tmp = code(t, l, k) tmp = 2.0 / (((((t ^ 3.0) / (l * l)) * sin(k)) * tan(k)) * ((1.0 + ((k / t) ^ 2.0)) + 1.0)); end
code[t_, l_, k_] := N[(2.0 / N[(N[(N[(N[(N[Power[t, 3.0], $MachinePrecision] / N[(l * l), $MachinePrecision]), $MachinePrecision] * N[Sin[k], $MachinePrecision]), $MachinePrecision] * N[Tan[k], $MachinePrecision]), $MachinePrecision] * N[(N[(1.0 + N[Power[N[(k / t), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{2}{\left(\left(\frac{{t}^{3}}{\ell \cdot \ell} \cdot \sin k\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 16 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (t l k) :precision binary64 (/ 2.0 (* (* (* (/ (pow t 3.0) (* l l)) (sin k)) (tan k)) (+ (+ 1.0 (pow (/ k t) 2.0)) 1.0))))
double code(double t, double l, double k) {
return 2.0 / ((((pow(t, 3.0) / (l * l)) * sin(k)) * tan(k)) * ((1.0 + pow((k / t), 2.0)) + 1.0));
}
real(8) function code(t, l, k)
real(8), intent (in) :: t
real(8), intent (in) :: l
real(8), intent (in) :: k
code = 2.0d0 / (((((t ** 3.0d0) / (l * l)) * sin(k)) * tan(k)) * ((1.0d0 + ((k / t) ** 2.0d0)) + 1.0d0))
end function
public static double code(double t, double l, double k) {
return 2.0 / ((((Math.pow(t, 3.0) / (l * l)) * Math.sin(k)) * Math.tan(k)) * ((1.0 + Math.pow((k / t), 2.0)) + 1.0));
}
def code(t, l, k): return 2.0 / ((((math.pow(t, 3.0) / (l * l)) * math.sin(k)) * math.tan(k)) * ((1.0 + math.pow((k / t), 2.0)) + 1.0))
function code(t, l, k) return Float64(2.0 / Float64(Float64(Float64(Float64((t ^ 3.0) / Float64(l * l)) * sin(k)) * tan(k)) * Float64(Float64(1.0 + (Float64(k / t) ^ 2.0)) + 1.0))) end
function tmp = code(t, l, k) tmp = 2.0 / (((((t ^ 3.0) / (l * l)) * sin(k)) * tan(k)) * ((1.0 + ((k / t) ^ 2.0)) + 1.0)); end
code[t_, l_, k_] := N[(2.0 / N[(N[(N[(N[(N[Power[t, 3.0], $MachinePrecision] / N[(l * l), $MachinePrecision]), $MachinePrecision] * N[Sin[k], $MachinePrecision]), $MachinePrecision] * N[Tan[k], $MachinePrecision]), $MachinePrecision] * N[(N[(1.0 + N[Power[N[(k / t), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{2}{\left(\left(\frac{{t}^{3}}{\ell \cdot \ell} \cdot \sin k\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)}
\end{array}
t\_m = (fabs.f64 t)
t\_s = (copysign.f64 #s(literal 1 binary64) t)
(FPCore (t_s t_m l k)
:precision binary64
(*
t_s
(if (<= t_m 0.9)
(/ 2.0 (/ (* (pow (sin k) 2.0) (* (* t_m (/ k l)) k)) (* (cos k) l)))
(if (<= t_m 1.2e+193)
(/
2.0
(/
(*
(* (pow t_m 1.5) (/ (sin k) l))
(* (* (+ (pow (/ k t_m) 2.0) 2.0) (tan k)) (pow t_m 1.5)))
l))
(* (pow (* k t_m) -1.0) (pow (/ k (pow (/ l t_m) 2.0)) -1.0))))))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 (t_m <= 0.9) {
tmp = 2.0 / ((pow(sin(k), 2.0) * ((t_m * (k / l)) * k)) / (cos(k) * l));
} else if (t_m <= 1.2e+193) {
tmp = 2.0 / (((pow(t_m, 1.5) * (sin(k) / l)) * (((pow((k / t_m), 2.0) + 2.0) * tan(k)) * pow(t_m, 1.5))) / l);
} else {
tmp = pow((k * t_m), -1.0) * pow((k / pow((l / t_m), 2.0)), -1.0);
}
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 (t_m <= 0.9d0) then
tmp = 2.0d0 / (((sin(k) ** 2.0d0) * ((t_m * (k / l)) * k)) / (cos(k) * l))
else if (t_m <= 1.2d+193) then
tmp = 2.0d0 / ((((t_m ** 1.5d0) * (sin(k) / l)) * (((((k / t_m) ** 2.0d0) + 2.0d0) * tan(k)) * (t_m ** 1.5d0))) / l)
else
tmp = ((k * t_m) ** (-1.0d0)) * ((k / ((l / t_m) ** 2.0d0)) ** (-1.0d0))
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 (t_m <= 0.9) {
tmp = 2.0 / ((Math.pow(Math.sin(k), 2.0) * ((t_m * (k / l)) * k)) / (Math.cos(k) * l));
} else if (t_m <= 1.2e+193) {
tmp = 2.0 / (((Math.pow(t_m, 1.5) * (Math.sin(k) / l)) * (((Math.pow((k / t_m), 2.0) + 2.0) * Math.tan(k)) * Math.pow(t_m, 1.5))) / l);
} else {
tmp = Math.pow((k * t_m), -1.0) * Math.pow((k / Math.pow((l / t_m), 2.0)), -1.0);
}
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 t_m <= 0.9: tmp = 2.0 / ((math.pow(math.sin(k), 2.0) * ((t_m * (k / l)) * k)) / (math.cos(k) * l)) elif t_m <= 1.2e+193: tmp = 2.0 / (((math.pow(t_m, 1.5) * (math.sin(k) / l)) * (((math.pow((k / t_m), 2.0) + 2.0) * math.tan(k)) * math.pow(t_m, 1.5))) / l) else: tmp = math.pow((k * t_m), -1.0) * math.pow((k / math.pow((l / t_m), 2.0)), -1.0) 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 (t_m <= 0.9) tmp = Float64(2.0 / Float64(Float64((sin(k) ^ 2.0) * Float64(Float64(t_m * Float64(k / l)) * k)) / Float64(cos(k) * l))); elseif (t_m <= 1.2e+193) tmp = Float64(2.0 / Float64(Float64(Float64((t_m ^ 1.5) * Float64(sin(k) / l)) * Float64(Float64(Float64((Float64(k / t_m) ^ 2.0) + 2.0) * tan(k)) * (t_m ^ 1.5))) / l)); else tmp = Float64((Float64(k * t_m) ^ -1.0) * (Float64(k / (Float64(l / t_m) ^ 2.0)) ^ -1.0)); 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 (t_m <= 0.9) tmp = 2.0 / (((sin(k) ^ 2.0) * ((t_m * (k / l)) * k)) / (cos(k) * l)); elseif (t_m <= 1.2e+193) tmp = 2.0 / ((((t_m ^ 1.5) * (sin(k) / l)) * (((((k / t_m) ^ 2.0) + 2.0) * tan(k)) * (t_m ^ 1.5))) / l); else tmp = ((k * t_m) ^ -1.0) * ((k / ((l / t_m) ^ 2.0)) ^ -1.0); 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[t$95$m, 0.9], N[(2.0 / N[(N[(N[Power[N[Sin[k], $MachinePrecision], 2.0], $MachinePrecision] * N[(N[(t$95$m * N[(k / l), $MachinePrecision]), $MachinePrecision] * k), $MachinePrecision]), $MachinePrecision] / N[(N[Cos[k], $MachinePrecision] * l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$m, 1.2e+193], N[(2.0 / N[(N[(N[(N[Power[t$95$m, 1.5], $MachinePrecision] * N[(N[Sin[k], $MachinePrecision] / l), $MachinePrecision]), $MachinePrecision] * N[(N[(N[(N[Power[N[(k / t$95$m), $MachinePrecision], 2.0], $MachinePrecision] + 2.0), $MachinePrecision] * N[Tan[k], $MachinePrecision]), $MachinePrecision] * N[Power[t$95$m, 1.5], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / l), $MachinePrecision]), $MachinePrecision], N[(N[Power[N[(k * t$95$m), $MachinePrecision], -1.0], $MachinePrecision] * N[Power[N[(k / N[Power[N[(l / t$95$m), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision], -1.0], $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}\;t\_m \leq 0.9:\\
\;\;\;\;\frac{2}{\frac{{\sin k}^{2} \cdot \left(\left(t\_m \cdot \frac{k}{\ell}\right) \cdot k\right)}{\cos k \cdot \ell}}\\
\mathbf{elif}\;t\_m \leq 1.2 \cdot 10^{+193}:\\
\;\;\;\;\frac{2}{\frac{\left({t\_m}^{1.5} \cdot \frac{\sin k}{\ell}\right) \cdot \left(\left(\left({\left(\frac{k}{t\_m}\right)}^{2} + 2\right) \cdot \tan k\right) \cdot {t\_m}^{1.5}\right)}{\ell}}\\
\mathbf{else}:\\
\;\;\;\;{\left(k \cdot t\_m\right)}^{-1} \cdot {\left(\frac{k}{{\left(\frac{\ell}{t\_m}\right)}^{2}}\right)}^{-1}\\
\end{array}
\end{array}
if t < 0.900000000000000022Initial program 50.8%
lift-*.f64N/A
lift-/.f64N/A
associate-*l/N/A
lift-pow.f64N/A
sqr-powN/A
associate-*l*N/A
lift-*.f64N/A
times-fracN/A
lower-*.f64N/A
lower-/.f64N/A
lower-pow.f64N/A
metadata-evalN/A
lower-/.f64N/A
lower-*.f64N/A
lower-pow.f64N/A
metadata-eval15.9
Applied rewrites15.9%
Taylor expanded in t around 0
*-commutativeN/A
associate-*l*N/A
*-commutativeN/A
associate-*r/N/A
times-fracN/A
associate-*r*N/A
lower-*.f64N/A
lower-*.f64N/A
unpow2N/A
associate-/r*N/A
lower-/.f64N/A
unpow2N/A
associate-/l*N/A
lower-*.f64N/A
lower-/.f64N/A
lower-/.f64N/A
Applied rewrites77.5%
Applied rewrites79.6%
Applied rewrites82.8%
if 0.900000000000000022 < t < 1.2e193Initial program 73.1%
lift-*.f64N/A
lift-/.f64N/A
associate-*l/N/A
lift-pow.f64N/A
sqr-powN/A
associate-*l*N/A
lift-*.f64N/A
times-fracN/A
lower-*.f64N/A
lower-/.f64N/A
lower-pow.f64N/A
metadata-evalN/A
lower-/.f64N/A
lower-*.f64N/A
lower-pow.f64N/A
metadata-eval88.6
Applied rewrites88.6%
lift-*.f64N/A
lift-*.f64N/A
associate-*l*N/A
lift-*.f64N/A
*-commutativeN/A
associate-*l*N/A
lower-*.f64N/A
lift-/.f64N/A
lift-*.f64N/A
associate-/l*N/A
*-commutativeN/A
lower-*.f64N/A
lower-/.f64N/A
Applied rewrites93.8%
lift-*.f64N/A
lift-*.f64N/A
lift-/.f64N/A
associate-*l/N/A
associate-*r/N/A
lower-/.f64N/A
Applied rewrites95.2%
if 1.2e193 < t Initial program 72.4%
Taylor expanded in k around 0
unpow2N/A
*-commutativeN/A
times-fracN/A
lower-*.f64N/A
lower-/.f64N/A
lower-pow.f64N/A
lower-/.f64N/A
unpow2N/A
lower-*.f6464.2
Applied rewrites64.2%
Applied rewrites64.2%
Applied rewrites64.2%
Applied rewrites92.2%
t\_m = (fabs.f64 t)
t\_s = (copysign.f64 #s(literal 1 binary64) t)
(FPCore (t_s t_m l k)
:precision binary64
(*
t_s
(if (<= t_m 0.9)
(/ 2.0 (/ (* (pow (sin k) 2.0) (* (* t_m (/ k l)) k)) (* (cos k) l)))
(if (<= t_m 9e+193)
(/
2.0
(*
(* (/ (sin k) l) (pow t_m 1.5))
(* (/ (pow t_m 1.5) l) (* (tan k) (+ (pow (/ k t_m) 2.0) 2.0)))))
(* (pow (* k t_m) -1.0) (pow (/ k (pow (/ l t_m) 2.0)) -1.0))))))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 (t_m <= 0.9) {
tmp = 2.0 / ((pow(sin(k), 2.0) * ((t_m * (k / l)) * k)) / (cos(k) * l));
} else if (t_m <= 9e+193) {
tmp = 2.0 / (((sin(k) / l) * pow(t_m, 1.5)) * ((pow(t_m, 1.5) / l) * (tan(k) * (pow((k / t_m), 2.0) + 2.0))));
} else {
tmp = pow((k * t_m), -1.0) * pow((k / pow((l / t_m), 2.0)), -1.0);
}
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 (t_m <= 0.9d0) then
tmp = 2.0d0 / (((sin(k) ** 2.0d0) * ((t_m * (k / l)) * k)) / (cos(k) * l))
else if (t_m <= 9d+193) then
tmp = 2.0d0 / (((sin(k) / l) * (t_m ** 1.5d0)) * (((t_m ** 1.5d0) / l) * (tan(k) * (((k / t_m) ** 2.0d0) + 2.0d0))))
else
tmp = ((k * t_m) ** (-1.0d0)) * ((k / ((l / t_m) ** 2.0d0)) ** (-1.0d0))
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 (t_m <= 0.9) {
tmp = 2.0 / ((Math.pow(Math.sin(k), 2.0) * ((t_m * (k / l)) * k)) / (Math.cos(k) * l));
} else if (t_m <= 9e+193) {
tmp = 2.0 / (((Math.sin(k) / l) * Math.pow(t_m, 1.5)) * ((Math.pow(t_m, 1.5) / l) * (Math.tan(k) * (Math.pow((k / t_m), 2.0) + 2.0))));
} else {
tmp = Math.pow((k * t_m), -1.0) * Math.pow((k / Math.pow((l / t_m), 2.0)), -1.0);
}
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 t_m <= 0.9: tmp = 2.0 / ((math.pow(math.sin(k), 2.0) * ((t_m * (k / l)) * k)) / (math.cos(k) * l)) elif t_m <= 9e+193: tmp = 2.0 / (((math.sin(k) / l) * math.pow(t_m, 1.5)) * ((math.pow(t_m, 1.5) / l) * (math.tan(k) * (math.pow((k / t_m), 2.0) + 2.0)))) else: tmp = math.pow((k * t_m), -1.0) * math.pow((k / math.pow((l / t_m), 2.0)), -1.0) 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 (t_m <= 0.9) tmp = Float64(2.0 / Float64(Float64((sin(k) ^ 2.0) * Float64(Float64(t_m * Float64(k / l)) * k)) / Float64(cos(k) * l))); elseif (t_m <= 9e+193) tmp = Float64(2.0 / Float64(Float64(Float64(sin(k) / l) * (t_m ^ 1.5)) * Float64(Float64((t_m ^ 1.5) / l) * Float64(tan(k) * Float64((Float64(k / t_m) ^ 2.0) + 2.0))))); else tmp = Float64((Float64(k * t_m) ^ -1.0) * (Float64(k / (Float64(l / t_m) ^ 2.0)) ^ -1.0)); 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 (t_m <= 0.9) tmp = 2.0 / (((sin(k) ^ 2.0) * ((t_m * (k / l)) * k)) / (cos(k) * l)); elseif (t_m <= 9e+193) tmp = 2.0 / (((sin(k) / l) * (t_m ^ 1.5)) * (((t_m ^ 1.5) / l) * (tan(k) * (((k / t_m) ^ 2.0) + 2.0)))); else tmp = ((k * t_m) ^ -1.0) * ((k / ((l / t_m) ^ 2.0)) ^ -1.0); 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[t$95$m, 0.9], N[(2.0 / N[(N[(N[Power[N[Sin[k], $MachinePrecision], 2.0], $MachinePrecision] * N[(N[(t$95$m * N[(k / l), $MachinePrecision]), $MachinePrecision] * k), $MachinePrecision]), $MachinePrecision] / N[(N[Cos[k], $MachinePrecision] * l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$m, 9e+193], N[(2.0 / N[(N[(N[(N[Sin[k], $MachinePrecision] / l), $MachinePrecision] * N[Power[t$95$m, 1.5], $MachinePrecision]), $MachinePrecision] * N[(N[(N[Power[t$95$m, 1.5], $MachinePrecision] / l), $MachinePrecision] * N[(N[Tan[k], $MachinePrecision] * N[(N[Power[N[(k / t$95$m), $MachinePrecision], 2.0], $MachinePrecision] + 2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[Power[N[(k * t$95$m), $MachinePrecision], -1.0], $MachinePrecision] * N[Power[N[(k / N[Power[N[(l / t$95$m), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision], -1.0], $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}\;t\_m \leq 0.9:\\
\;\;\;\;\frac{2}{\frac{{\sin k}^{2} \cdot \left(\left(t\_m \cdot \frac{k}{\ell}\right) \cdot k\right)}{\cos k \cdot \ell}}\\
\mathbf{elif}\;t\_m \leq 9 \cdot 10^{+193}:\\
\;\;\;\;\frac{2}{\left(\frac{\sin k}{\ell} \cdot {t\_m}^{1.5}\right) \cdot \left(\frac{{t\_m}^{1.5}}{\ell} \cdot \left(\tan k \cdot \left({\left(\frac{k}{t\_m}\right)}^{2} + 2\right)\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;{\left(k \cdot t\_m\right)}^{-1} \cdot {\left(\frac{k}{{\left(\frac{\ell}{t\_m}\right)}^{2}}\right)}^{-1}\\
\end{array}
\end{array}
if t < 0.900000000000000022Initial program 50.8%
lift-*.f64N/A
lift-/.f64N/A
associate-*l/N/A
lift-pow.f64N/A
sqr-powN/A
associate-*l*N/A
lift-*.f64N/A
times-fracN/A
lower-*.f64N/A
lower-/.f64N/A
lower-pow.f64N/A
metadata-evalN/A
lower-/.f64N/A
lower-*.f64N/A
lower-pow.f64N/A
metadata-eval15.9
Applied rewrites15.9%
Taylor expanded in t around 0
*-commutativeN/A
associate-*l*N/A
*-commutativeN/A
associate-*r/N/A
times-fracN/A
associate-*r*N/A
lower-*.f64N/A
lower-*.f64N/A
unpow2N/A
associate-/r*N/A
lower-/.f64N/A
unpow2N/A
associate-/l*N/A
lower-*.f64N/A
lower-/.f64N/A
lower-/.f64N/A
Applied rewrites77.5%
Applied rewrites79.6%
Applied rewrites82.8%
if 0.900000000000000022 < t < 8.99999999999999999e193Initial program 73.1%
lift-*.f64N/A
lift-/.f64N/A
associate-*l/N/A
lift-pow.f64N/A
sqr-powN/A
associate-*l*N/A
lift-*.f64N/A
times-fracN/A
lower-*.f64N/A
lower-/.f64N/A
lower-pow.f64N/A
metadata-evalN/A
lower-/.f64N/A
lower-*.f64N/A
lower-pow.f64N/A
metadata-eval88.6
Applied rewrites88.6%
lift-*.f64N/A
lift-*.f64N/A
associate-*l*N/A
lift-*.f64N/A
*-commutativeN/A
associate-*l*N/A
lower-*.f64N/A
lift-/.f64N/A
lift-*.f64N/A
associate-/l*N/A
*-commutativeN/A
lower-*.f64N/A
lower-/.f64N/A
Applied rewrites93.8%
if 8.99999999999999999e193 < t Initial program 72.4%
Taylor expanded in k around 0
unpow2N/A
*-commutativeN/A
times-fracN/A
lower-*.f64N/A
lower-/.f64N/A
lower-pow.f64N/A
lower-/.f64N/A
unpow2N/A
lower-*.f6464.2
Applied rewrites64.2%
Applied rewrites64.2%
Applied rewrites64.2%
Applied rewrites92.2%
t\_m = (fabs.f64 t)
t\_s = (copysign.f64 #s(literal 1 binary64) t)
(FPCore (t_s t_m l k)
:precision binary64
(*
t_s
(if (<= t_m 0.9)
(/ 2.0 (/ (* (pow (sin k) 2.0) (* (* t_m (/ k l)) k)) (* (cos k) l)))
(if (<= t_m 5.8e+125)
(/
2.0
(*
(* (* (/ t_m l) (/ (* (* t_m t_m) (sin k)) l)) (tan k))
(+ (+ 1.0 (pow (/ k t_m) 2.0)) 1.0)))
(* (pow (* k t_m) -1.0) (pow (/ k (pow (/ l t_m) 2.0)) -1.0))))))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 (t_m <= 0.9) {
tmp = 2.0 / ((pow(sin(k), 2.0) * ((t_m * (k / l)) * k)) / (cos(k) * l));
} else if (t_m <= 5.8e+125) {
tmp = 2.0 / ((((t_m / l) * (((t_m * t_m) * sin(k)) / l)) * tan(k)) * ((1.0 + pow((k / t_m), 2.0)) + 1.0));
} else {
tmp = pow((k * t_m), -1.0) * pow((k / pow((l / t_m), 2.0)), -1.0);
}
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 (t_m <= 0.9d0) then
tmp = 2.0d0 / (((sin(k) ** 2.0d0) * ((t_m * (k / l)) * k)) / (cos(k) * l))
else if (t_m <= 5.8d+125) then
tmp = 2.0d0 / ((((t_m / l) * (((t_m * t_m) * sin(k)) / l)) * tan(k)) * ((1.0d0 + ((k / t_m) ** 2.0d0)) + 1.0d0))
else
tmp = ((k * t_m) ** (-1.0d0)) * ((k / ((l / t_m) ** 2.0d0)) ** (-1.0d0))
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 (t_m <= 0.9) {
tmp = 2.0 / ((Math.pow(Math.sin(k), 2.0) * ((t_m * (k / l)) * k)) / (Math.cos(k) * l));
} else if (t_m <= 5.8e+125) {
tmp = 2.0 / ((((t_m / l) * (((t_m * t_m) * Math.sin(k)) / l)) * Math.tan(k)) * ((1.0 + Math.pow((k / t_m), 2.0)) + 1.0));
} else {
tmp = Math.pow((k * t_m), -1.0) * Math.pow((k / Math.pow((l / t_m), 2.0)), -1.0);
}
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 t_m <= 0.9: tmp = 2.0 / ((math.pow(math.sin(k), 2.0) * ((t_m * (k / l)) * k)) / (math.cos(k) * l)) elif t_m <= 5.8e+125: tmp = 2.0 / ((((t_m / l) * (((t_m * t_m) * math.sin(k)) / l)) * math.tan(k)) * ((1.0 + math.pow((k / t_m), 2.0)) + 1.0)) else: tmp = math.pow((k * t_m), -1.0) * math.pow((k / math.pow((l / t_m), 2.0)), -1.0) 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 (t_m <= 0.9) tmp = Float64(2.0 / Float64(Float64((sin(k) ^ 2.0) * Float64(Float64(t_m * Float64(k / l)) * k)) / Float64(cos(k) * l))); elseif (t_m <= 5.8e+125) tmp = Float64(2.0 / Float64(Float64(Float64(Float64(t_m / l) * Float64(Float64(Float64(t_m * t_m) * sin(k)) / l)) * tan(k)) * Float64(Float64(1.0 + (Float64(k / t_m) ^ 2.0)) + 1.0))); else tmp = Float64((Float64(k * t_m) ^ -1.0) * (Float64(k / (Float64(l / t_m) ^ 2.0)) ^ -1.0)); 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 (t_m <= 0.9) tmp = 2.0 / (((sin(k) ^ 2.0) * ((t_m * (k / l)) * k)) / (cos(k) * l)); elseif (t_m <= 5.8e+125) tmp = 2.0 / ((((t_m / l) * (((t_m * t_m) * sin(k)) / l)) * tan(k)) * ((1.0 + ((k / t_m) ^ 2.0)) + 1.0)); else tmp = ((k * t_m) ^ -1.0) * ((k / ((l / t_m) ^ 2.0)) ^ -1.0); 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[t$95$m, 0.9], N[(2.0 / N[(N[(N[Power[N[Sin[k], $MachinePrecision], 2.0], $MachinePrecision] * N[(N[(t$95$m * N[(k / l), $MachinePrecision]), $MachinePrecision] * k), $MachinePrecision]), $MachinePrecision] / N[(N[Cos[k], $MachinePrecision] * l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$m, 5.8e+125], N[(2.0 / N[(N[(N[(N[(t$95$m / l), $MachinePrecision] * N[(N[(N[(t$95$m * t$95$m), $MachinePrecision] * N[Sin[k], $MachinePrecision]), $MachinePrecision] / l), $MachinePrecision]), $MachinePrecision] * N[Tan[k], $MachinePrecision]), $MachinePrecision] * N[(N[(1.0 + N[Power[N[(k / t$95$m), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[Power[N[(k * t$95$m), $MachinePrecision], -1.0], $MachinePrecision] * N[Power[N[(k / N[Power[N[(l / t$95$m), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision], -1.0], $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}\;t\_m \leq 0.9:\\
\;\;\;\;\frac{2}{\frac{{\sin k}^{2} \cdot \left(\left(t\_m \cdot \frac{k}{\ell}\right) \cdot k\right)}{\cos k \cdot \ell}}\\
\mathbf{elif}\;t\_m \leq 5.8 \cdot 10^{+125}:\\
\;\;\;\;\frac{2}{\left(\left(\frac{t\_m}{\ell} \cdot \frac{\left(t\_m \cdot t\_m\right) \cdot \sin k}{\ell}\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t\_m}\right)}^{2}\right) + 1\right)}\\
\mathbf{else}:\\
\;\;\;\;{\left(k \cdot t\_m\right)}^{-1} \cdot {\left(\frac{k}{{\left(\frac{\ell}{t\_m}\right)}^{2}}\right)}^{-1}\\
\end{array}
\end{array}
if t < 0.900000000000000022Initial program 50.8%
lift-*.f64N/A
lift-/.f64N/A
associate-*l/N/A
lift-pow.f64N/A
sqr-powN/A
associate-*l*N/A
lift-*.f64N/A
times-fracN/A
lower-*.f64N/A
lower-/.f64N/A
lower-pow.f64N/A
metadata-evalN/A
lower-/.f64N/A
lower-*.f64N/A
lower-pow.f64N/A
metadata-eval15.9
Applied rewrites15.9%
Taylor expanded in t around 0
*-commutativeN/A
associate-*l*N/A
*-commutativeN/A
associate-*r/N/A
times-fracN/A
associate-*r*N/A
lower-*.f64N/A
lower-*.f64N/A
unpow2N/A
associate-/r*N/A
lower-/.f64N/A
unpow2N/A
associate-/l*N/A
lower-*.f64N/A
lower-/.f64N/A
lower-/.f64N/A
Applied rewrites77.5%
Applied rewrites79.6%
Applied rewrites82.8%
if 0.900000000000000022 < t < 5.79999999999999986e125Initial program 74.9%
lift-*.f64N/A
lift-/.f64N/A
associate-*l/N/A
lift-pow.f64N/A
cube-multN/A
associate-*l*N/A
lift-*.f64N/A
times-fracN/A
lower-*.f64N/A
lower-/.f64N/A
lower-/.f64N/A
lower-*.f64N/A
lower-*.f6486.1
Applied rewrites86.1%
if 5.79999999999999986e125 < t Initial program 71.2%
Taylor expanded in k around 0
unpow2N/A
*-commutativeN/A
times-fracN/A
lower-*.f64N/A
lower-/.f64N/A
lower-pow.f64N/A
lower-/.f64N/A
unpow2N/A
lower-*.f6463.8
Applied rewrites63.8%
Applied rewrites63.8%
Applied rewrites66.2%
Applied rewrites88.3%
t\_m = (fabs.f64 t)
t\_s = (copysign.f64 #s(literal 1 binary64) t)
(FPCore (t_s t_m l k)
:precision binary64
(let* ((t_2 (/ (/ l k) (pow t_m 1.5))))
(*
t_s
(if (<= t_m 1.0)
(/ 2.0 (/ (* (pow (sin k) 2.0) (* (* t_m (/ k l)) k)) (* (cos k) l)))
(if (<= t_m 9e+171)
(* t_2 t_2)
(* (pow (* k t_m) -1.0) (pow (/ k (pow (/ l t_m) 2.0)) -1.0)))))))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) / pow(t_m, 1.5);
double tmp;
if (t_m <= 1.0) {
tmp = 2.0 / ((pow(sin(k), 2.0) * ((t_m * (k / l)) * k)) / (cos(k) * l));
} else if (t_m <= 9e+171) {
tmp = t_2 * t_2;
} else {
tmp = pow((k * t_m), -1.0) * pow((k / pow((l / t_m), 2.0)), -1.0);
}
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) / (t_m ** 1.5d0)
if (t_m <= 1.0d0) then
tmp = 2.0d0 / (((sin(k) ** 2.0d0) * ((t_m * (k / l)) * k)) / (cos(k) * l))
else if (t_m <= 9d+171) then
tmp = t_2 * t_2
else
tmp = ((k * t_m) ** (-1.0d0)) * ((k / ((l / t_m) ** 2.0d0)) ** (-1.0d0))
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.pow(t_m, 1.5);
double tmp;
if (t_m <= 1.0) {
tmp = 2.0 / ((Math.pow(Math.sin(k), 2.0) * ((t_m * (k / l)) * k)) / (Math.cos(k) * l));
} else if (t_m <= 9e+171) {
tmp = t_2 * t_2;
} else {
tmp = Math.pow((k * t_m), -1.0) * Math.pow((k / Math.pow((l / t_m), 2.0)), -1.0);
}
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.pow(t_m, 1.5) tmp = 0 if t_m <= 1.0: tmp = 2.0 / ((math.pow(math.sin(k), 2.0) * ((t_m * (k / l)) * k)) / (math.cos(k) * l)) elif t_m <= 9e+171: tmp = t_2 * t_2 else: tmp = math.pow((k * t_m), -1.0) * math.pow((k / math.pow((l / t_m), 2.0)), -1.0) 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) / (t_m ^ 1.5)) tmp = 0.0 if (t_m <= 1.0) tmp = Float64(2.0 / Float64(Float64((sin(k) ^ 2.0) * Float64(Float64(t_m * Float64(k / l)) * k)) / Float64(cos(k) * l))); elseif (t_m <= 9e+171) tmp = Float64(t_2 * t_2); else tmp = Float64((Float64(k * t_m) ^ -1.0) * (Float64(k / (Float64(l / t_m) ^ 2.0)) ^ -1.0)); 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) / (t_m ^ 1.5); tmp = 0.0; if (t_m <= 1.0) tmp = 2.0 / (((sin(k) ^ 2.0) * ((t_m * (k / l)) * k)) / (cos(k) * l)); elseif (t_m <= 9e+171) tmp = t_2 * t_2; else tmp = ((k * t_m) ^ -1.0) * ((k / ((l / t_m) ^ 2.0)) ^ -1.0); 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[Power[t$95$m, 1.5], $MachinePrecision]), $MachinePrecision]}, N[(t$95$s * If[LessEqual[t$95$m, 1.0], N[(2.0 / N[(N[(N[Power[N[Sin[k], $MachinePrecision], 2.0], $MachinePrecision] * N[(N[(t$95$m * N[(k / l), $MachinePrecision]), $MachinePrecision] * k), $MachinePrecision]), $MachinePrecision] / N[(N[Cos[k], $MachinePrecision] * l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$m, 9e+171], N[(t$95$2 * t$95$2), $MachinePrecision], N[(N[Power[N[(k * t$95$m), $MachinePrecision], -1.0], $MachinePrecision] * N[Power[N[(k / N[Power[N[(l / t$95$m), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision], -1.0], $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}}{{t\_m}^{1.5}}\\
t\_s \cdot \begin{array}{l}
\mathbf{if}\;t\_m \leq 1:\\
\;\;\;\;\frac{2}{\frac{{\sin k}^{2} \cdot \left(\left(t\_m \cdot \frac{k}{\ell}\right) \cdot k\right)}{\cos k \cdot \ell}}\\
\mathbf{elif}\;t\_m \leq 9 \cdot 10^{+171}:\\
\;\;\;\;t\_2 \cdot t\_2\\
\mathbf{else}:\\
\;\;\;\;{\left(k \cdot t\_m\right)}^{-1} \cdot {\left(\frac{k}{{\left(\frac{\ell}{t\_m}\right)}^{2}}\right)}^{-1}\\
\end{array}
\end{array}
\end{array}
if t < 1Initial program 50.8%
lift-*.f64N/A
lift-/.f64N/A
associate-*l/N/A
lift-pow.f64N/A
sqr-powN/A
associate-*l*N/A
lift-*.f64N/A
times-fracN/A
lower-*.f64N/A
lower-/.f64N/A
lower-pow.f64N/A
metadata-evalN/A
lower-/.f64N/A
lower-*.f64N/A
lower-pow.f64N/A
metadata-eval15.9
Applied rewrites15.9%
Taylor expanded in t around 0
*-commutativeN/A
associate-*l*N/A
*-commutativeN/A
associate-*r/N/A
times-fracN/A
associate-*r*N/A
lower-*.f64N/A
lower-*.f64N/A
unpow2N/A
associate-/r*N/A
lower-/.f64N/A
unpow2N/A
associate-/l*N/A
lower-*.f64N/A
lower-/.f64N/A
lower-/.f64N/A
Applied rewrites77.5%
Applied rewrites79.6%
Applied rewrites82.8%
if 1 < t < 8.99999999999999937e171Initial program 74.0%
Taylor expanded in k around 0
unpow2N/A
*-commutativeN/A
times-fracN/A
lower-*.f64N/A
lower-/.f64N/A
lower-pow.f64N/A
lower-/.f64N/A
unpow2N/A
lower-*.f6473.4
Applied rewrites73.4%
Applied rewrites73.5%
Applied rewrites76.4%
Applied rewrites93.3%
if 8.99999999999999937e171 < t Initial program 71.3%
Taylor expanded in k around 0
unpow2N/A
*-commutativeN/A
times-fracN/A
lower-*.f64N/A
lower-/.f64N/A
lower-pow.f64N/A
lower-/.f64N/A
unpow2N/A
lower-*.f6461.8
Applied rewrites61.8%
Applied rewrites61.8%
Applied rewrites61.8%
Applied rewrites87.6%
Final simplification85.2%
t\_m = (fabs.f64 t)
t\_s = (copysign.f64 #s(literal 1 binary64) t)
(FPCore (t_s t_m l k)
:precision binary64
(let* ((t_2 (/ (/ l k) (pow t_m 1.5))))
(*
t_s
(if (<= t_m 2300000.0)
(/ 2.0 (* (/ (* (* (/ k l) k) t_m) l) (* (tan k) (sin k))))
(if (<= t_m 9e+171)
(* t_2 t_2)
(* (pow (* k t_m) -1.0) (pow (/ k (pow (/ l t_m) 2.0)) -1.0)))))))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) / pow(t_m, 1.5);
double tmp;
if (t_m <= 2300000.0) {
tmp = 2.0 / (((((k / l) * k) * t_m) / l) * (tan(k) * sin(k)));
} else if (t_m <= 9e+171) {
tmp = t_2 * t_2;
} else {
tmp = pow((k * t_m), -1.0) * pow((k / pow((l / t_m), 2.0)), -1.0);
}
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) / (t_m ** 1.5d0)
if (t_m <= 2300000.0d0) then
tmp = 2.0d0 / (((((k / l) * k) * t_m) / l) * (tan(k) * sin(k)))
else if (t_m <= 9d+171) then
tmp = t_2 * t_2
else
tmp = ((k * t_m) ** (-1.0d0)) * ((k / ((l / t_m) ** 2.0d0)) ** (-1.0d0))
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.pow(t_m, 1.5);
double tmp;
if (t_m <= 2300000.0) {
tmp = 2.0 / (((((k / l) * k) * t_m) / l) * (Math.tan(k) * Math.sin(k)));
} else if (t_m <= 9e+171) {
tmp = t_2 * t_2;
} else {
tmp = Math.pow((k * t_m), -1.0) * Math.pow((k / Math.pow((l / t_m), 2.0)), -1.0);
}
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.pow(t_m, 1.5) tmp = 0 if t_m <= 2300000.0: tmp = 2.0 / (((((k / l) * k) * t_m) / l) * (math.tan(k) * math.sin(k))) elif t_m <= 9e+171: tmp = t_2 * t_2 else: tmp = math.pow((k * t_m), -1.0) * math.pow((k / math.pow((l / t_m), 2.0)), -1.0) 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) / (t_m ^ 1.5)) tmp = 0.0 if (t_m <= 2300000.0) tmp = Float64(2.0 / Float64(Float64(Float64(Float64(Float64(k / l) * k) * t_m) / l) * Float64(tan(k) * sin(k)))); elseif (t_m <= 9e+171) tmp = Float64(t_2 * t_2); else tmp = Float64((Float64(k * t_m) ^ -1.0) * (Float64(k / (Float64(l / t_m) ^ 2.0)) ^ -1.0)); 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) / (t_m ^ 1.5); tmp = 0.0; if (t_m <= 2300000.0) tmp = 2.0 / (((((k / l) * k) * t_m) / l) * (tan(k) * sin(k))); elseif (t_m <= 9e+171) tmp = t_2 * t_2; else tmp = ((k * t_m) ^ -1.0) * ((k / ((l / t_m) ^ 2.0)) ^ -1.0); 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[Power[t$95$m, 1.5], $MachinePrecision]), $MachinePrecision]}, N[(t$95$s * If[LessEqual[t$95$m, 2300000.0], N[(2.0 / N[(N[(N[(N[(N[(k / l), $MachinePrecision] * k), $MachinePrecision] * t$95$m), $MachinePrecision] / l), $MachinePrecision] * N[(N[Tan[k], $MachinePrecision] * N[Sin[k], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$m, 9e+171], N[(t$95$2 * t$95$2), $MachinePrecision], N[(N[Power[N[(k * t$95$m), $MachinePrecision], -1.0], $MachinePrecision] * N[Power[N[(k / N[Power[N[(l / t$95$m), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision], -1.0], $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}}{{t\_m}^{1.5}}\\
t\_s \cdot \begin{array}{l}
\mathbf{if}\;t\_m \leq 2300000:\\
\;\;\;\;\frac{2}{\frac{\left(\frac{k}{\ell} \cdot k\right) \cdot t\_m}{\ell} \cdot \left(\tan k \cdot \sin k\right)}\\
\mathbf{elif}\;t\_m \leq 9 \cdot 10^{+171}:\\
\;\;\;\;t\_2 \cdot t\_2\\
\mathbf{else}:\\
\;\;\;\;{\left(k \cdot t\_m\right)}^{-1} \cdot {\left(\frac{k}{{\left(\frac{\ell}{t\_m}\right)}^{2}}\right)}^{-1}\\
\end{array}
\end{array}
\end{array}
if t < 2.3e6Initial program 51.9%
lift-*.f64N/A
lift-/.f64N/A
associate-*l/N/A
lift-pow.f64N/A
sqr-powN/A
associate-*l*N/A
lift-*.f64N/A
times-fracN/A
lower-*.f64N/A
lower-/.f64N/A
lower-pow.f64N/A
metadata-evalN/A
lower-/.f64N/A
lower-*.f64N/A
lower-pow.f64N/A
metadata-eval17.7
Applied rewrites17.7%
Taylor expanded in t around 0
*-commutativeN/A
associate-*l*N/A
*-commutativeN/A
associate-*r/N/A
times-fracN/A
associate-*r*N/A
lower-*.f64N/A
lower-*.f64N/A
unpow2N/A
associate-/r*N/A
lower-/.f64N/A
unpow2N/A
associate-/l*N/A
lower-*.f64N/A
lower-/.f64N/A
lower-/.f64N/A
Applied rewrites77.5%
Applied rewrites78.6%
Applied rewrites81.5%
if 2.3e6 < t < 8.99999999999999937e171Initial program 71.4%
Taylor expanded in k around 0
unpow2N/A
*-commutativeN/A
times-fracN/A
lower-*.f64N/A
lower-/.f64N/A
lower-pow.f64N/A
lower-/.f64N/A
unpow2N/A
lower-*.f6473.2
Applied rewrites73.2%
Applied rewrites73.2%
Applied rewrites76.4%
Applied rewrites92.7%
if 8.99999999999999937e171 < t Initial program 71.3%
Taylor expanded in k around 0
unpow2N/A
*-commutativeN/A
times-fracN/A
lower-*.f64N/A
lower-/.f64N/A
lower-pow.f64N/A
lower-/.f64N/A
unpow2N/A
lower-*.f6461.8
Applied rewrites61.8%
Applied rewrites61.8%
Applied rewrites61.8%
Applied rewrites87.6%
Final simplification84.0%
t\_m = (fabs.f64 t)
t\_s = (copysign.f64 #s(literal 1 binary64) t)
(FPCore (t_s t_m l k)
:precision binary64
(let* ((t_2 (/ (/ l k) (pow t_m 1.5))))
(*
t_s
(if (<= t_m 2300000.0)
(/ 2.0 (* (/ (* (* (/ k l) k) t_m) l) (* (tan k) (sin k))))
(if (<= t_m 1.75e+187)
(* t_2 t_2)
(/ (pow (/ l t_m) 2.0) (* (* k t_m) k)))))))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) / pow(t_m, 1.5);
double tmp;
if (t_m <= 2300000.0) {
tmp = 2.0 / (((((k / l) * k) * t_m) / l) * (tan(k) * sin(k)));
} else if (t_m <= 1.75e+187) {
tmp = t_2 * t_2;
} else {
tmp = pow((l / t_m), 2.0) / ((k * t_m) * k);
}
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) / (t_m ** 1.5d0)
if (t_m <= 2300000.0d0) then
tmp = 2.0d0 / (((((k / l) * k) * t_m) / l) * (tan(k) * sin(k)))
else if (t_m <= 1.75d+187) then
tmp = t_2 * t_2
else
tmp = ((l / t_m) ** 2.0d0) / ((k * t_m) * k)
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.pow(t_m, 1.5);
double tmp;
if (t_m <= 2300000.0) {
tmp = 2.0 / (((((k / l) * k) * t_m) / l) * (Math.tan(k) * Math.sin(k)));
} else if (t_m <= 1.75e+187) {
tmp = t_2 * t_2;
} else {
tmp = Math.pow((l / t_m), 2.0) / ((k * t_m) * k);
}
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.pow(t_m, 1.5) tmp = 0 if t_m <= 2300000.0: tmp = 2.0 / (((((k / l) * k) * t_m) / l) * (math.tan(k) * math.sin(k))) elif t_m <= 1.75e+187: tmp = t_2 * t_2 else: tmp = math.pow((l / t_m), 2.0) / ((k * t_m) * k) 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) / (t_m ^ 1.5)) tmp = 0.0 if (t_m <= 2300000.0) tmp = Float64(2.0 / Float64(Float64(Float64(Float64(Float64(k / l) * k) * t_m) / l) * Float64(tan(k) * sin(k)))); elseif (t_m <= 1.75e+187) tmp = Float64(t_2 * t_2); else tmp = Float64((Float64(l / t_m) ^ 2.0) / Float64(Float64(k * t_m) * k)); 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) / (t_m ^ 1.5); tmp = 0.0; if (t_m <= 2300000.0) tmp = 2.0 / (((((k / l) * k) * t_m) / l) * (tan(k) * sin(k))); elseif (t_m <= 1.75e+187) tmp = t_2 * t_2; else tmp = ((l / t_m) ^ 2.0) / ((k * t_m) * k); 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[Power[t$95$m, 1.5], $MachinePrecision]), $MachinePrecision]}, N[(t$95$s * If[LessEqual[t$95$m, 2300000.0], N[(2.0 / N[(N[(N[(N[(N[(k / l), $MachinePrecision] * k), $MachinePrecision] * t$95$m), $MachinePrecision] / l), $MachinePrecision] * N[(N[Tan[k], $MachinePrecision] * N[Sin[k], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$m, 1.75e+187], N[(t$95$2 * t$95$2), $MachinePrecision], N[(N[Power[N[(l / t$95$m), $MachinePrecision], 2.0], $MachinePrecision] / N[(N[(k * t$95$m), $MachinePrecision] * k), $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}}{{t\_m}^{1.5}}\\
t\_s \cdot \begin{array}{l}
\mathbf{if}\;t\_m \leq 2300000:\\
\;\;\;\;\frac{2}{\frac{\left(\frac{k}{\ell} \cdot k\right) \cdot t\_m}{\ell} \cdot \left(\tan k \cdot \sin k\right)}\\
\mathbf{elif}\;t\_m \leq 1.75 \cdot 10^{+187}:\\
\;\;\;\;t\_2 \cdot t\_2\\
\mathbf{else}:\\
\;\;\;\;\frac{{\left(\frac{\ell}{t\_m}\right)}^{2}}{\left(k \cdot t\_m\right) \cdot k}\\
\end{array}
\end{array}
\end{array}
if t < 2.3e6Initial program 51.9%
lift-*.f64N/A
lift-/.f64N/A
associate-*l/N/A
lift-pow.f64N/A
sqr-powN/A
associate-*l*N/A
lift-*.f64N/A
times-fracN/A
lower-*.f64N/A
lower-/.f64N/A
lower-pow.f64N/A
metadata-evalN/A
lower-/.f64N/A
lower-*.f64N/A
lower-pow.f64N/A
metadata-eval17.7
Applied rewrites17.7%
Taylor expanded in t around 0
*-commutativeN/A
associate-*l*N/A
*-commutativeN/A
associate-*r/N/A
times-fracN/A
associate-*r*N/A
lower-*.f64N/A
lower-*.f64N/A
unpow2N/A
associate-/r*N/A
lower-/.f64N/A
unpow2N/A
associate-/l*N/A
lower-*.f64N/A
lower-/.f64N/A
lower-/.f64N/A
Applied rewrites77.5%
Applied rewrites78.6%
Applied rewrites81.5%
if 2.3e6 < t < 1.7499999999999999e187Initial program 71.8%
Taylor expanded in k around 0
unpow2N/A
*-commutativeN/A
times-fracN/A
lower-*.f64N/A
lower-/.f64N/A
lower-pow.f64N/A
lower-/.f64N/A
unpow2N/A
lower-*.f6471.1
Applied rewrites71.1%
Applied rewrites71.2%
Applied rewrites74.1%
Applied rewrites91.2%
if 1.7499999999999999e187 < t Initial program 70.8%
Taylor expanded in k around 0
unpow2N/A
*-commutativeN/A
times-fracN/A
lower-*.f64N/A
lower-/.f64N/A
lower-pow.f64N/A
lower-/.f64N/A
unpow2N/A
lower-*.f6463.4
Applied rewrites63.4%
Applied rewrites63.4%
Applied rewrites63.4%
Applied rewrites89.2%
Final simplification84.0%
t\_m = (fabs.f64 t)
t\_s = (copysign.f64 #s(literal 1 binary64) t)
(FPCore (t_s t_m l k)
:precision binary64
(*
t_s
(if (<= t_m 2300000.0)
(/ 2.0 (* (/ (* (* (/ k l) k) t_m) l) (* (tan k) (sin k))))
(if (<= t_m 9.5e+205)
(pow (* (/ (pow t_m 1.5) l) k) -2.0)
(/ (pow (/ l t_m) 2.0) (* (* k t_m) k))))))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 (t_m <= 2300000.0) {
tmp = 2.0 / (((((k / l) * k) * t_m) / l) * (tan(k) * sin(k)));
} else if (t_m <= 9.5e+205) {
tmp = pow(((pow(t_m, 1.5) / l) * k), -2.0);
} else {
tmp = pow((l / t_m), 2.0) / ((k * t_m) * k);
}
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 (t_m <= 2300000.0d0) then
tmp = 2.0d0 / (((((k / l) * k) * t_m) / l) * (tan(k) * sin(k)))
else if (t_m <= 9.5d+205) then
tmp = (((t_m ** 1.5d0) / l) * k) ** (-2.0d0)
else
tmp = ((l / t_m) ** 2.0d0) / ((k * t_m) * k)
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 (t_m <= 2300000.0) {
tmp = 2.0 / (((((k / l) * k) * t_m) / l) * (Math.tan(k) * Math.sin(k)));
} else if (t_m <= 9.5e+205) {
tmp = Math.pow(((Math.pow(t_m, 1.5) / l) * k), -2.0);
} else {
tmp = Math.pow((l / t_m), 2.0) / ((k * t_m) * k);
}
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 t_m <= 2300000.0: tmp = 2.0 / (((((k / l) * k) * t_m) / l) * (math.tan(k) * math.sin(k))) elif t_m <= 9.5e+205: tmp = math.pow(((math.pow(t_m, 1.5) / l) * k), -2.0) else: tmp = math.pow((l / t_m), 2.0) / ((k * t_m) * k) 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 (t_m <= 2300000.0) tmp = Float64(2.0 / Float64(Float64(Float64(Float64(Float64(k / l) * k) * t_m) / l) * Float64(tan(k) * sin(k)))); elseif (t_m <= 9.5e+205) tmp = Float64(Float64((t_m ^ 1.5) / l) * k) ^ -2.0; else tmp = Float64((Float64(l / t_m) ^ 2.0) / Float64(Float64(k * t_m) * k)); 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 (t_m <= 2300000.0) tmp = 2.0 / (((((k / l) * k) * t_m) / l) * (tan(k) * sin(k))); elseif (t_m <= 9.5e+205) tmp = (((t_m ^ 1.5) / l) * k) ^ -2.0; else tmp = ((l / t_m) ^ 2.0) / ((k * t_m) * k); 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[t$95$m, 2300000.0], N[(2.0 / N[(N[(N[(N[(N[(k / l), $MachinePrecision] * k), $MachinePrecision] * t$95$m), $MachinePrecision] / l), $MachinePrecision] * N[(N[Tan[k], $MachinePrecision] * N[Sin[k], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$m, 9.5e+205], N[Power[N[(N[(N[Power[t$95$m, 1.5], $MachinePrecision] / l), $MachinePrecision] * k), $MachinePrecision], -2.0], $MachinePrecision], N[(N[Power[N[(l / t$95$m), $MachinePrecision], 2.0], $MachinePrecision] / N[(N[(k * t$95$m), $MachinePrecision] * k), $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}\;t\_m \leq 2300000:\\
\;\;\;\;\frac{2}{\frac{\left(\frac{k}{\ell} \cdot k\right) \cdot t\_m}{\ell} \cdot \left(\tan k \cdot \sin k\right)}\\
\mathbf{elif}\;t\_m \leq 9.5 \cdot 10^{+205}:\\
\;\;\;\;{\left(\frac{{t\_m}^{1.5}}{\ell} \cdot k\right)}^{-2}\\
\mathbf{else}:\\
\;\;\;\;\frac{{\left(\frac{\ell}{t\_m}\right)}^{2}}{\left(k \cdot t\_m\right) \cdot k}\\
\end{array}
\end{array}
if t < 2.3e6Initial program 51.9%
lift-*.f64N/A
lift-/.f64N/A
associate-*l/N/A
lift-pow.f64N/A
sqr-powN/A
associate-*l*N/A
lift-*.f64N/A
times-fracN/A
lower-*.f64N/A
lower-/.f64N/A
lower-pow.f64N/A
metadata-evalN/A
lower-/.f64N/A
lower-*.f64N/A
lower-pow.f64N/A
metadata-eval17.7
Applied rewrites17.7%
Taylor expanded in t around 0
*-commutativeN/A
associate-*l*N/A
*-commutativeN/A
associate-*r/N/A
times-fracN/A
associate-*r*N/A
lower-*.f64N/A
lower-*.f64N/A
unpow2N/A
associate-/r*N/A
lower-/.f64N/A
unpow2N/A
associate-/l*N/A
lower-*.f64N/A
lower-/.f64N/A
lower-/.f64N/A
Applied rewrites77.5%
Applied rewrites78.6%
Applied rewrites81.5%
if 2.3e6 < t < 9.4999999999999997e205Initial program 70.0%
Taylor expanded in k around 0
unpow2N/A
*-commutativeN/A
times-fracN/A
lower-*.f64N/A
lower-/.f64N/A
lower-pow.f64N/A
lower-/.f64N/A
unpow2N/A
lower-*.f6469.5
Applied rewrites69.5%
Applied rewrites69.5%
Applied rewrites72.2%
Applied rewrites88.0%
if 9.4999999999999997e205 < t Initial program 74.2%
Taylor expanded in k around 0
unpow2N/A
*-commutativeN/A
times-fracN/A
lower-*.f64N/A
lower-/.f64N/A
lower-pow.f64N/A
lower-/.f64N/A
unpow2N/A
lower-*.f6465.5
Applied rewrites65.5%
Applied rewrites65.5%
Applied rewrites65.5%
Applied rewrites91.4%
Final simplification83.6%
t\_m = (fabs.f64 t)
t\_s = (copysign.f64 #s(literal 1 binary64) t)
(FPCore (t_s t_m l k)
:precision binary64
(*
t_s
(if (<= t_m 2.1)
(/ (* (/ l t_m) (/ (/ (/ l k) k) t_m)) t_m)
(if (<= t_m 9.5e+205)
(pow (* (/ (pow t_m 1.5) l) k) -2.0)
(/ (pow (/ l t_m) 2.0) (* (* k t_m) k))))))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 (t_m <= 2.1) {
tmp = ((l / t_m) * (((l / k) / k) / t_m)) / t_m;
} else if (t_m <= 9.5e+205) {
tmp = pow(((pow(t_m, 1.5) / l) * k), -2.0);
} else {
tmp = pow((l / t_m), 2.0) / ((k * t_m) * k);
}
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 (t_m <= 2.1d0) then
tmp = ((l / t_m) * (((l / k) / k) / t_m)) / t_m
else if (t_m <= 9.5d+205) then
tmp = (((t_m ** 1.5d0) / l) * k) ** (-2.0d0)
else
tmp = ((l / t_m) ** 2.0d0) / ((k * t_m) * k)
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 (t_m <= 2.1) {
tmp = ((l / t_m) * (((l / k) / k) / t_m)) / t_m;
} else if (t_m <= 9.5e+205) {
tmp = Math.pow(((Math.pow(t_m, 1.5) / l) * k), -2.0);
} else {
tmp = Math.pow((l / t_m), 2.0) / ((k * t_m) * k);
}
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 t_m <= 2.1: tmp = ((l / t_m) * (((l / k) / k) / t_m)) / t_m elif t_m <= 9.5e+205: tmp = math.pow(((math.pow(t_m, 1.5) / l) * k), -2.0) else: tmp = math.pow((l / t_m), 2.0) / ((k * t_m) * k) 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 (t_m <= 2.1) tmp = Float64(Float64(Float64(l / t_m) * Float64(Float64(Float64(l / k) / k) / t_m)) / t_m); elseif (t_m <= 9.5e+205) tmp = Float64(Float64((t_m ^ 1.5) / l) * k) ^ -2.0; else tmp = Float64((Float64(l / t_m) ^ 2.0) / Float64(Float64(k * t_m) * k)); 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 (t_m <= 2.1) tmp = ((l / t_m) * (((l / k) / k) / t_m)) / t_m; elseif (t_m <= 9.5e+205) tmp = (((t_m ^ 1.5) / l) * k) ^ -2.0; else tmp = ((l / t_m) ^ 2.0) / ((k * t_m) * k); 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[t$95$m, 2.1], N[(N[(N[(l / t$95$m), $MachinePrecision] * N[(N[(N[(l / k), $MachinePrecision] / k), $MachinePrecision] / t$95$m), $MachinePrecision]), $MachinePrecision] / t$95$m), $MachinePrecision], If[LessEqual[t$95$m, 9.5e+205], N[Power[N[(N[(N[Power[t$95$m, 1.5], $MachinePrecision] / l), $MachinePrecision] * k), $MachinePrecision], -2.0], $MachinePrecision], N[(N[Power[N[(l / t$95$m), $MachinePrecision], 2.0], $MachinePrecision] / N[(N[(k * t$95$m), $MachinePrecision] * k), $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}\;t\_m \leq 2.1:\\
\;\;\;\;\frac{\frac{\ell}{t\_m} \cdot \frac{\frac{\frac{\ell}{k}}{k}}{t\_m}}{t\_m}\\
\mathbf{elif}\;t\_m \leq 9.5 \cdot 10^{+205}:\\
\;\;\;\;{\left(\frac{{t\_m}^{1.5}}{\ell} \cdot k\right)}^{-2}\\
\mathbf{else}:\\
\;\;\;\;\frac{{\left(\frac{\ell}{t\_m}\right)}^{2}}{\left(k \cdot t\_m\right) \cdot k}\\
\end{array}
\end{array}
if t < 2.10000000000000009Initial program 51.1%
Taylor expanded in k around 0
unpow2N/A
*-commutativeN/A
times-fracN/A
lower-*.f64N/A
lower-/.f64N/A
lower-pow.f64N/A
lower-/.f64N/A
unpow2N/A
lower-*.f6452.4
Applied rewrites52.4%
Applied rewrites52.4%
Applied rewrites56.9%
Applied rewrites69.3%
if 2.10000000000000009 < t < 9.4999999999999997e205Initial program 71.8%
Taylor expanded in k around 0
unpow2N/A
*-commutativeN/A
times-fracN/A
lower-*.f64N/A
lower-/.f64N/A
lower-pow.f64N/A
lower-/.f64N/A
unpow2N/A
lower-*.f6471.3
Applied rewrites71.3%
Applied rewrites71.3%
Applied rewrites73.8%
Applied rewrites88.7%
if 9.4999999999999997e205 < t Initial program 74.2%
Taylor expanded in k around 0
unpow2N/A
*-commutativeN/A
times-fracN/A
lower-*.f64N/A
lower-/.f64N/A
lower-pow.f64N/A
lower-/.f64N/A
unpow2N/A
lower-*.f6465.5
Applied rewrites65.5%
Applied rewrites65.5%
Applied rewrites65.5%
Applied rewrites91.4%
Final simplification75.1%
t\_m = (fabs.f64 t)
t\_s = (copysign.f64 #s(literal 1 binary64) t)
(FPCore (t_s t_m l k)
:precision binary64
(*
t_s
(if (<= t_m 5.2e+84)
(/ (* (/ l t_m) (/ (/ (/ l k) k) t_m)) t_m)
(/ (/ (pow (/ l t_m) 2.0) (* k t_m)) k))))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 (t_m <= 5.2e+84) {
tmp = ((l / t_m) * (((l / k) / k) / t_m)) / t_m;
} else {
tmp = (pow((l / t_m), 2.0) / (k * t_m)) / k;
}
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 (t_m <= 5.2d+84) then
tmp = ((l / t_m) * (((l / k) / k) / t_m)) / t_m
else
tmp = (((l / t_m) ** 2.0d0) / (k * t_m)) / k
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 (t_m <= 5.2e+84) {
tmp = ((l / t_m) * (((l / k) / k) / t_m)) / t_m;
} else {
tmp = (Math.pow((l / t_m), 2.0) / (k * t_m)) / k;
}
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 t_m <= 5.2e+84: tmp = ((l / t_m) * (((l / k) / k) / t_m)) / t_m else: tmp = (math.pow((l / t_m), 2.0) / (k * t_m)) / k 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 (t_m <= 5.2e+84) tmp = Float64(Float64(Float64(l / t_m) * Float64(Float64(Float64(l / k) / k) / t_m)) / t_m); else tmp = Float64(Float64((Float64(l / t_m) ^ 2.0) / Float64(k * t_m)) / k); 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 (t_m <= 5.2e+84) tmp = ((l / t_m) * (((l / k) / k) / t_m)) / t_m; else tmp = (((l / t_m) ^ 2.0) / (k * t_m)) / k; 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[t$95$m, 5.2e+84], N[(N[(N[(l / t$95$m), $MachinePrecision] * N[(N[(N[(l / k), $MachinePrecision] / k), $MachinePrecision] / t$95$m), $MachinePrecision]), $MachinePrecision] / t$95$m), $MachinePrecision], N[(N[(N[Power[N[(l / t$95$m), $MachinePrecision], 2.0], $MachinePrecision] / N[(k * t$95$m), $MachinePrecision]), $MachinePrecision] / k), $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}\;t\_m \leq 5.2 \cdot 10^{+84}:\\
\;\;\;\;\frac{\frac{\ell}{t\_m} \cdot \frac{\frac{\frac{\ell}{k}}{k}}{t\_m}}{t\_m}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{{\left(\frac{\ell}{t\_m}\right)}^{2}}{k \cdot t\_m}}{k}\\
\end{array}
\end{array}
if t < 5.2000000000000002e84Initial program 54.5%
Taylor expanded in k around 0
unpow2N/A
*-commutativeN/A
times-fracN/A
lower-*.f64N/A
lower-/.f64N/A
lower-pow.f64N/A
lower-/.f64N/A
unpow2N/A
lower-*.f6456.9
Applied rewrites56.9%
Applied rewrites56.9%
Applied rewrites60.2%
Applied rewrites72.4%
if 5.2000000000000002e84 < t Initial program 70.0%
Taylor expanded in k around 0
unpow2N/A
*-commutativeN/A
times-fracN/A
lower-*.f64N/A
lower-/.f64N/A
lower-pow.f64N/A
lower-/.f64N/A
unpow2N/A
lower-*.f6459.5
Applied rewrites59.5%
Applied rewrites59.5%
Applied rewrites64.9%
Applied rewrites87.5%
t\_m = (fabs.f64 t)
t\_s = (copysign.f64 #s(literal 1 binary64) t)
(FPCore (t_s t_m l k)
:precision binary64
(*
t_s
(if (<= t_m 2.02e+93)
(/ (* (/ l t_m) (/ (/ (/ l k) k) t_m)) t_m)
(/ (pow (/ l t_m) 2.0) (* (* k t_m) k)))))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 (t_m <= 2.02e+93) {
tmp = ((l / t_m) * (((l / k) / k) / t_m)) / t_m;
} else {
tmp = pow((l / t_m), 2.0) / ((k * t_m) * k);
}
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 (t_m <= 2.02d+93) then
tmp = ((l / t_m) * (((l / k) / k) / t_m)) / t_m
else
tmp = ((l / t_m) ** 2.0d0) / ((k * t_m) * k)
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 (t_m <= 2.02e+93) {
tmp = ((l / t_m) * (((l / k) / k) / t_m)) / t_m;
} else {
tmp = Math.pow((l / t_m), 2.0) / ((k * t_m) * k);
}
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 t_m <= 2.02e+93: tmp = ((l / t_m) * (((l / k) / k) / t_m)) / t_m else: tmp = math.pow((l / t_m), 2.0) / ((k * t_m) * k) 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 (t_m <= 2.02e+93) tmp = Float64(Float64(Float64(l / t_m) * Float64(Float64(Float64(l / k) / k) / t_m)) / t_m); else tmp = Float64((Float64(l / t_m) ^ 2.0) / Float64(Float64(k * t_m) * k)); 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 (t_m <= 2.02e+93) tmp = ((l / t_m) * (((l / k) / k) / t_m)) / t_m; else tmp = ((l / t_m) ^ 2.0) / ((k * t_m) * k); 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[t$95$m, 2.02e+93], N[(N[(N[(l / t$95$m), $MachinePrecision] * N[(N[(N[(l / k), $MachinePrecision] / k), $MachinePrecision] / t$95$m), $MachinePrecision]), $MachinePrecision] / t$95$m), $MachinePrecision], N[(N[Power[N[(l / t$95$m), $MachinePrecision], 2.0], $MachinePrecision] / N[(N[(k * t$95$m), $MachinePrecision] * k), $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}\;t\_m \leq 2.02 \cdot 10^{+93}:\\
\;\;\;\;\frac{\frac{\ell}{t\_m} \cdot \frac{\frac{\frac{\ell}{k}}{k}}{t\_m}}{t\_m}\\
\mathbf{else}:\\
\;\;\;\;\frac{{\left(\frac{\ell}{t\_m}\right)}^{2}}{\left(k \cdot t\_m\right) \cdot k}\\
\end{array}
\end{array}
if t < 2.01999999999999998e93Initial program 54.5%
Taylor expanded in k around 0
unpow2N/A
*-commutativeN/A
times-fracN/A
lower-*.f64N/A
lower-/.f64N/A
lower-pow.f64N/A
lower-/.f64N/A
unpow2N/A
lower-*.f6456.9
Applied rewrites56.9%
Applied rewrites56.9%
Applied rewrites60.1%
Applied rewrites72.2%
if 2.01999999999999998e93 < t Initial program 70.9%
Taylor expanded in k around 0
unpow2N/A
*-commutativeN/A
times-fracN/A
lower-*.f64N/A
lower-/.f64N/A
lower-pow.f64N/A
lower-/.f64N/A
unpow2N/A
lower-*.f6459.8
Applied rewrites59.8%
Applied rewrites59.8%
Applied rewrites65.5%
Applied rewrites86.9%
Final simplification74.8%
t\_m = (fabs.f64 t) t\_s = (copysign.f64 #s(literal 1 binary64) t) (FPCore (t_s t_m l k) :precision binary64 (* t_s (/ (* (/ l t_m) (/ (/ (/ l k) k) t_m)) 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 * (((l / t_m) * (((l / k) / k) / t_m)) / 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 * (((l / t_m) * (((l / k) / k) / t_m)) / 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 * (((l / t_m) * (((l / k) / k) / t_m)) / 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 * (((l / t_m) * (((l / k) / k) / t_m)) / 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(Float64(Float64(l / t_m) * Float64(Float64(Float64(l / k) / k) / t_m)) / 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 * (((l / t_m) * (((l / k) / k) / t_m)) / 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[(N[(N[(l / t$95$m), $MachinePrecision] * N[(N[(N[(l / k), $MachinePrecision] / k), $MachinePrecision] / t$95$m), $MachinePrecision]), $MachinePrecision] / t$95$m), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
t\_m = \left|t\right|
\\
t\_s = \mathsf{copysign}\left(1, t\right)
\\
t\_s \cdot \frac{\frac{\ell}{t\_m} \cdot \frac{\frac{\frac{\ell}{k}}{k}}{t\_m}}{t\_m}
\end{array}
Initial program 57.3%
Taylor expanded in k around 0
unpow2N/A
*-commutativeN/A
times-fracN/A
lower-*.f64N/A
lower-/.f64N/A
lower-pow.f64N/A
lower-/.f64N/A
unpow2N/A
lower-*.f6457.4
Applied rewrites57.4%
Applied rewrites57.4%
Applied rewrites61.0%
Applied rewrites71.8%
t\_m = (fabs.f64 t)
t\_s = (copysign.f64 #s(literal 1 binary64) t)
(FPCore (t_s t_m l k)
:precision binary64
(*
t_s
(if (<= k 4.2e-131)
(* (/ l (* k t_m)) (/ (/ l (* t_m t_m)) k))
(/ (* (/ l t_m) (/ l t_m)) (* t_m (* k k))))))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 <= 4.2e-131) {
tmp = (l / (k * t_m)) * ((l / (t_m * t_m)) / k);
} else {
tmp = ((l / t_m) * (l / t_m)) / (t_m * (k * k));
}
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 <= 4.2d-131) then
tmp = (l / (k * t_m)) * ((l / (t_m * t_m)) / k)
else
tmp = ((l / t_m) * (l / t_m)) / (t_m * (k * k))
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 <= 4.2e-131) {
tmp = (l / (k * t_m)) * ((l / (t_m * t_m)) / k);
} else {
tmp = ((l / t_m) * (l / t_m)) / (t_m * (k * k));
}
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 <= 4.2e-131: tmp = (l / (k * t_m)) * ((l / (t_m * t_m)) / k) else: tmp = ((l / t_m) * (l / t_m)) / (t_m * (k * k)) 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 <= 4.2e-131) tmp = Float64(Float64(l / Float64(k * t_m)) * Float64(Float64(l / Float64(t_m * t_m)) / k)); else tmp = Float64(Float64(Float64(l / t_m) * Float64(l / t_m)) / Float64(t_m * Float64(k * k))); 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 <= 4.2e-131) tmp = (l / (k * t_m)) * ((l / (t_m * t_m)) / k); else tmp = ((l / t_m) * (l / t_m)) / (t_m * (k * k)); 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, 4.2e-131], N[(N[(l / N[(k * t$95$m), $MachinePrecision]), $MachinePrecision] * N[(N[(l / N[(t$95$m * t$95$m), $MachinePrecision]), $MachinePrecision] / k), $MachinePrecision]), $MachinePrecision], N[(N[(N[(l / t$95$m), $MachinePrecision] * N[(l / t$95$m), $MachinePrecision]), $MachinePrecision] / N[(t$95$m * N[(k * k), $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 4.2 \cdot 10^{-131}:\\
\;\;\;\;\frac{\ell}{k \cdot t\_m} \cdot \frac{\frac{\ell}{t\_m \cdot t\_m}}{k}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{\ell}{t\_m} \cdot \frac{\ell}{t\_m}}{t\_m \cdot \left(k \cdot k\right)}\\
\end{array}
\end{array}
if k < 4.19999999999999994e-131Initial program 58.4%
Taylor expanded in k around 0
unpow2N/A
*-commutativeN/A
times-fracN/A
lower-*.f64N/A
lower-/.f64N/A
lower-pow.f64N/A
lower-/.f64N/A
unpow2N/A
lower-*.f6457.8
Applied rewrites57.8%
Applied rewrites57.8%
Applied rewrites61.6%
Applied rewrites67.7%
if 4.19999999999999994e-131 < k Initial program 54.1%
Taylor expanded in k around 0
unpow2N/A
*-commutativeN/A
times-fracN/A
lower-*.f64N/A
lower-/.f64N/A
lower-pow.f64N/A
lower-/.f64N/A
unpow2N/A
lower-*.f6456.2
Applied rewrites56.2%
Applied rewrites56.2%
Applied rewrites59.3%
Applied rewrites65.1%
t\_m = (fabs.f64 t)
t\_s = (copysign.f64 #s(literal 1 binary64) t)
(FPCore (t_s t_m l k)
:precision binary64
(*
t_s
(if (<= k 1.65e-136)
(* (/ l (* k t_m)) (/ (/ l (* t_m t_m)) k))
(/ (* (/ l t_m) l) (* t_m (* (* k k) 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.65e-136) {
tmp = (l / (k * t_m)) * ((l / (t_m * t_m)) / k);
} else {
tmp = ((l / t_m) * l) / (t_m * ((k * k) * 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.65d-136) then
tmp = (l / (k * t_m)) * ((l / (t_m * t_m)) / k)
else
tmp = ((l / t_m) * l) / (t_m * ((k * k) * 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.65e-136) {
tmp = (l / (k * t_m)) * ((l / (t_m * t_m)) / k);
} else {
tmp = ((l / t_m) * l) / (t_m * ((k * k) * 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.65e-136: tmp = (l / (k * t_m)) * ((l / (t_m * t_m)) / k) else: tmp = ((l / t_m) * l) / (t_m * ((k * k) * 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.65e-136) tmp = Float64(Float64(l / Float64(k * t_m)) * Float64(Float64(l / Float64(t_m * t_m)) / k)); else tmp = Float64(Float64(Float64(l / t_m) * l) / Float64(t_m * Float64(Float64(k * k) * 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.65e-136) tmp = (l / (k * t_m)) * ((l / (t_m * t_m)) / k); else tmp = ((l / t_m) * l) / (t_m * ((k * k) * 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.65e-136], N[(N[(l / N[(k * t$95$m), $MachinePrecision]), $MachinePrecision] * N[(N[(l / N[(t$95$m * t$95$m), $MachinePrecision]), $MachinePrecision] / k), $MachinePrecision]), $MachinePrecision], N[(N[(N[(l / t$95$m), $MachinePrecision] * l), $MachinePrecision] / N[(t$95$m * N[(N[(k * k), $MachinePrecision] * t$95$m), $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.65 \cdot 10^{-136}:\\
\;\;\;\;\frac{\ell}{k \cdot t\_m} \cdot \frac{\frac{\ell}{t\_m \cdot t\_m}}{k}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{\ell}{t\_m} \cdot \ell}{t\_m \cdot \left(\left(k \cdot k\right) \cdot t\_m\right)}\\
\end{array}
\end{array}
if k < 1.65000000000000009e-136Initial program 58.2%
Taylor expanded in k around 0
unpow2N/A
*-commutativeN/A
times-fracN/A
lower-*.f64N/A
lower-/.f64N/A
lower-pow.f64N/A
lower-/.f64N/A
unpow2N/A
lower-*.f6457.6
Applied rewrites57.6%
Applied rewrites57.6%
Applied rewrites61.4%
Applied rewrites67.6%
if 1.65000000000000009e-136 < k Initial program 54.8%
Taylor expanded in k around 0
unpow2N/A
*-commutativeN/A
times-fracN/A
lower-*.f64N/A
lower-/.f64N/A
lower-pow.f64N/A
lower-/.f64N/A
unpow2N/A
lower-*.f6456.9
Applied rewrites56.9%
Applied rewrites56.9%
Applied rewrites59.9%
Applied rewrites62.8%
t\_m = (fabs.f64 t) t\_s = (copysign.f64 #s(literal 1 binary64) t) (FPCore (t_s t_m l k) :precision binary64 (* t_s (/ (* (/ l t_m) l) (* t_m (* (* k k) 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 * (((l / t_m) * l) / (t_m * ((k * k) * 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 * (((l / t_m) * l) / (t_m * ((k * k) * 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 * (((l / t_m) * l) / (t_m * ((k * k) * 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 * (((l / t_m) * l) / (t_m * ((k * k) * 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(Float64(Float64(l / t_m) * l) / Float64(t_m * Float64(Float64(k * k) * 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 * (((l / t_m) * l) / (t_m * ((k * k) * 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[(N[(N[(l / t$95$m), $MachinePrecision] * l), $MachinePrecision] / N[(t$95$m * N[(N[(k * k), $MachinePrecision] * t$95$m), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
t\_m = \left|t\right|
\\
t\_s = \mathsf{copysign}\left(1, t\right)
\\
t\_s \cdot \frac{\frac{\ell}{t\_m} \cdot \ell}{t\_m \cdot \left(\left(k \cdot k\right) \cdot t\_m\right)}
\end{array}
Initial program 57.3%
Taylor expanded in k around 0
unpow2N/A
*-commutativeN/A
times-fracN/A
lower-*.f64N/A
lower-/.f64N/A
lower-pow.f64N/A
lower-/.f64N/A
unpow2N/A
lower-*.f6457.4
Applied rewrites57.4%
Applied rewrites57.4%
Applied rewrites61.0%
Applied rewrites65.8%
t\_m = (fabs.f64 t) t\_s = (copysign.f64 #s(literal 1 binary64) t) (FPCore (t_s t_m l k) :precision binary64 (* t_s (* l (/ (/ l (* t_m t_m)) (* (* k k) 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 * (l * ((l / (t_m * t_m)) / ((k * k) * 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 * (l * ((l / (t_m * t_m)) / ((k * k) * 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 * (l * ((l / (t_m * t_m)) / ((k * k) * 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 * (l * ((l / (t_m * t_m)) / ((k * k) * 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(l * Float64(Float64(l / Float64(t_m * t_m)) / Float64(Float64(k * k) * 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 * (l * ((l / (t_m * t_m)) / ((k * k) * 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[(l * N[(N[(l / N[(t$95$m * t$95$m), $MachinePrecision]), $MachinePrecision] / N[(N[(k * k), $MachinePrecision] * t$95$m), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
t\_m = \left|t\right|
\\
t\_s = \mathsf{copysign}\left(1, t\right)
\\
t\_s \cdot \left(\ell \cdot \frac{\frac{\ell}{t\_m \cdot t\_m}}{\left(k \cdot k\right) \cdot t\_m}\right)
\end{array}
Initial program 57.3%
Taylor expanded in k around 0
unpow2N/A
*-commutativeN/A
times-fracN/A
lower-*.f64N/A
lower-/.f64N/A
lower-pow.f64N/A
lower-/.f64N/A
unpow2N/A
lower-*.f6457.4
Applied rewrites57.4%
Applied rewrites57.4%
Applied rewrites61.0%
Applied rewrites61.3%
t\_m = (fabs.f64 t) t\_s = (copysign.f64 #s(literal 1 binary64) t) (FPCore (t_s t_m l k) :precision binary64 (* t_s (/ (* l l) (* (* (* k k) t_m) (* t_m 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 * ((l * l) / (((k * k) * t_m) * (t_m * 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 * ((l * l) / (((k * k) * t_m) * (t_m * 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 * ((l * l) / (((k * k) * t_m) * (t_m * 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 * ((l * l) / (((k * k) * t_m) * (t_m * 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(Float64(l * l) / Float64(Float64(Float64(k * k) * t_m) * Float64(t_m * 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 * ((l * l) / (((k * k) * t_m) * (t_m * 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[(N[(l * l), $MachinePrecision] / N[(N[(N[(k * k), $MachinePrecision] * t$95$m), $MachinePrecision] * N[(t$95$m * t$95$m), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
t\_m = \left|t\right|
\\
t\_s = \mathsf{copysign}\left(1, t\right)
\\
t\_s \cdot \frac{\ell \cdot \ell}{\left(\left(k \cdot k\right) \cdot t\_m\right) \cdot \left(t\_m \cdot t\_m\right)}
\end{array}
Initial program 57.3%
Taylor expanded in k around 0
unpow2N/A
*-commutativeN/A
times-fracN/A
lower-*.f64N/A
lower-/.f64N/A
lower-pow.f64N/A
lower-/.f64N/A
unpow2N/A
lower-*.f6457.4
Applied rewrites57.4%
Applied rewrites57.4%
Applied rewrites61.0%
Applied rewrites59.3%
herbie shell --seed 2024324
(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))))