
(FPCore (n U t l Om U*) :precision binary64 (sqrt (* (* (* 2.0 n) U) (- (- t (* 2.0 (/ (* l l) Om))) (* (* n (pow (/ l Om) 2.0)) (- U U*))))))
double code(double n, double U, double t, double l, double Om, double U_42_) {
return sqrt((((2.0 * n) * U) * ((t - (2.0 * ((l * l) / Om))) - ((n * pow((l / Om), 2.0)) * (U - U_42_)))));
}
real(8) function code(n, u, t, l, om, u_42)
real(8), intent (in) :: n
real(8), intent (in) :: u
real(8), intent (in) :: t
real(8), intent (in) :: l
real(8), intent (in) :: om
real(8), intent (in) :: u_42
code = sqrt((((2.0d0 * n) * u) * ((t - (2.0d0 * ((l * l) / om))) - ((n * ((l / om) ** 2.0d0)) * (u - u_42)))))
end function
public static double code(double n, double U, double t, double l, double Om, double U_42_) {
return Math.sqrt((((2.0 * n) * U) * ((t - (2.0 * ((l * l) / Om))) - ((n * Math.pow((l / Om), 2.0)) * (U - U_42_)))));
}
def code(n, U, t, l, Om, U_42_): return math.sqrt((((2.0 * n) * U) * ((t - (2.0 * ((l * l) / Om))) - ((n * math.pow((l / Om), 2.0)) * (U - U_42_)))))
function code(n, U, t, l, Om, U_42_) return sqrt(Float64(Float64(Float64(2.0 * n) * U) * Float64(Float64(t - Float64(2.0 * Float64(Float64(l * l) / Om))) - Float64(Float64(n * (Float64(l / Om) ^ 2.0)) * Float64(U - U_42_))))) end
function tmp = code(n, U, t, l, Om, U_42_) tmp = sqrt((((2.0 * n) * U) * ((t - (2.0 * ((l * l) / Om))) - ((n * ((l / Om) ^ 2.0)) * (U - U_42_))))); end
code[n_, U_, t_, l_, Om_, U$42$_] := N[Sqrt[N[(N[(N[(2.0 * n), $MachinePrecision] * U), $MachinePrecision] * N[(N[(t - N[(2.0 * N[(N[(l * l), $MachinePrecision] / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(n * N[Power[N[(l / Om), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision] * N[(U - U$42$), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]
\begin{array}{l}
\\
\sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(t - 2 \cdot \frac{\ell \cdot \ell}{Om}\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 21 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (n U t l Om U*) :precision binary64 (sqrt (* (* (* 2.0 n) U) (- (- t (* 2.0 (/ (* l l) Om))) (* (* n (pow (/ l Om) 2.0)) (- U U*))))))
double code(double n, double U, double t, double l, double Om, double U_42_) {
return sqrt((((2.0 * n) * U) * ((t - (2.0 * ((l * l) / Om))) - ((n * pow((l / Om), 2.0)) * (U - U_42_)))));
}
real(8) function code(n, u, t, l, om, u_42)
real(8), intent (in) :: n
real(8), intent (in) :: u
real(8), intent (in) :: t
real(8), intent (in) :: l
real(8), intent (in) :: om
real(8), intent (in) :: u_42
code = sqrt((((2.0d0 * n) * u) * ((t - (2.0d0 * ((l * l) / om))) - ((n * ((l / om) ** 2.0d0)) * (u - u_42)))))
end function
public static double code(double n, double U, double t, double l, double Om, double U_42_) {
return Math.sqrt((((2.0 * n) * U) * ((t - (2.0 * ((l * l) / Om))) - ((n * Math.pow((l / Om), 2.0)) * (U - U_42_)))));
}
def code(n, U, t, l, Om, U_42_): return math.sqrt((((2.0 * n) * U) * ((t - (2.0 * ((l * l) / Om))) - ((n * math.pow((l / Om), 2.0)) * (U - U_42_)))))
function code(n, U, t, l, Om, U_42_) return sqrt(Float64(Float64(Float64(2.0 * n) * U) * Float64(Float64(t - Float64(2.0 * Float64(Float64(l * l) / Om))) - Float64(Float64(n * (Float64(l / Om) ^ 2.0)) * Float64(U - U_42_))))) end
function tmp = code(n, U, t, l, Om, U_42_) tmp = sqrt((((2.0 * n) * U) * ((t - (2.0 * ((l * l) / Om))) - ((n * ((l / Om) ^ 2.0)) * (U - U_42_))))); end
code[n_, U_, t_, l_, Om_, U$42$_] := N[Sqrt[N[(N[(N[(2.0 * n), $MachinePrecision] * U), $MachinePrecision] * N[(N[(t - N[(2.0 * N[(N[(l * l), $MachinePrecision] / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(n * N[Power[N[(l / Om), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision] * N[(U - U$42$), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]
\begin{array}{l}
\\
\sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(t - 2 \cdot \frac{\ell \cdot \ell}{Om}\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)}
\end{array}
l_m = (fabs.f64 l)
(FPCore (n U t l_m Om U*)
:precision binary64
(let* ((t_1 (* n (- U* U)))
(t_2 (* (* 2.0 n) U))
(t_3 (+ (/ t_1 (pow Om 2.0)) (* 2.0 (/ -1.0 Om))))
(t_4 (* n (pow (/ l_m Om) 2.0)))
(t_5
(sqrt (* t_2 (+ (- t (* 2.0 (/ (* l_m l_m) Om))) (* t_4 (- U* U)))))))
(if (<= t_5 1e-128)
(sqrt
(*
(* 2.0 n)
(*
U
(+ t (/ (- (/ (* (pow l_m 2.0) t_1) Om) (* 2.0 (pow l_m 2.0))) Om)))))
(if (<= t_5 INFINITY)
(sqrt (* t_2 (- (- t (* 2.0 (* l_m (/ l_m Om)))) (* t_4 (- U U*)))))
(*
l_m
(+
(* 0.5 (* (sqrt (/ (* n U) t_3)) (/ (* t (sqrt 2.0)) (pow l_m 2.0))))
(* (sqrt 2.0) (sqrt (* U (* n t_3))))))))))l_m = fabs(l);
double code(double n, double U, double t, double l_m, double Om, double U_42_) {
double t_1 = n * (U_42_ - U);
double t_2 = (2.0 * n) * U;
double t_3 = (t_1 / pow(Om, 2.0)) + (2.0 * (-1.0 / Om));
double t_4 = n * pow((l_m / Om), 2.0);
double t_5 = sqrt((t_2 * ((t - (2.0 * ((l_m * l_m) / Om))) + (t_4 * (U_42_ - U)))));
double tmp;
if (t_5 <= 1e-128) {
tmp = sqrt(((2.0 * n) * (U * (t + ((((pow(l_m, 2.0) * t_1) / Om) - (2.0 * pow(l_m, 2.0))) / Om)))));
} else if (t_5 <= ((double) INFINITY)) {
tmp = sqrt((t_2 * ((t - (2.0 * (l_m * (l_m / Om)))) - (t_4 * (U - U_42_)))));
} else {
tmp = l_m * ((0.5 * (sqrt(((n * U) / t_3)) * ((t * sqrt(2.0)) / pow(l_m, 2.0)))) + (sqrt(2.0) * sqrt((U * (n * t_3)))));
}
return tmp;
}
l_m = Math.abs(l);
public static double code(double n, double U, double t, double l_m, double Om, double U_42_) {
double t_1 = n * (U_42_ - U);
double t_2 = (2.0 * n) * U;
double t_3 = (t_1 / Math.pow(Om, 2.0)) + (2.0 * (-1.0 / Om));
double t_4 = n * Math.pow((l_m / Om), 2.0);
double t_5 = Math.sqrt((t_2 * ((t - (2.0 * ((l_m * l_m) / Om))) + (t_4 * (U_42_ - U)))));
double tmp;
if (t_5 <= 1e-128) {
tmp = Math.sqrt(((2.0 * n) * (U * (t + ((((Math.pow(l_m, 2.0) * t_1) / Om) - (2.0 * Math.pow(l_m, 2.0))) / Om)))));
} else if (t_5 <= Double.POSITIVE_INFINITY) {
tmp = Math.sqrt((t_2 * ((t - (2.0 * (l_m * (l_m / Om)))) - (t_4 * (U - U_42_)))));
} else {
tmp = l_m * ((0.5 * (Math.sqrt(((n * U) / t_3)) * ((t * Math.sqrt(2.0)) / Math.pow(l_m, 2.0)))) + (Math.sqrt(2.0) * Math.sqrt((U * (n * t_3)))));
}
return tmp;
}
l_m = math.fabs(l) def code(n, U, t, l_m, Om, U_42_): t_1 = n * (U_42_ - U) t_2 = (2.0 * n) * U t_3 = (t_1 / math.pow(Om, 2.0)) + (2.0 * (-1.0 / Om)) t_4 = n * math.pow((l_m / Om), 2.0) t_5 = math.sqrt((t_2 * ((t - (2.0 * ((l_m * l_m) / Om))) + (t_4 * (U_42_ - U))))) tmp = 0 if t_5 <= 1e-128: tmp = math.sqrt(((2.0 * n) * (U * (t + ((((math.pow(l_m, 2.0) * t_1) / Om) - (2.0 * math.pow(l_m, 2.0))) / Om))))) elif t_5 <= math.inf: tmp = math.sqrt((t_2 * ((t - (2.0 * (l_m * (l_m / Om)))) - (t_4 * (U - U_42_))))) else: tmp = l_m * ((0.5 * (math.sqrt(((n * U) / t_3)) * ((t * math.sqrt(2.0)) / math.pow(l_m, 2.0)))) + (math.sqrt(2.0) * math.sqrt((U * (n * t_3))))) return tmp
l_m = abs(l) function code(n, U, t, l_m, Om, U_42_) t_1 = Float64(n * Float64(U_42_ - U)) t_2 = Float64(Float64(2.0 * n) * U) t_3 = Float64(Float64(t_1 / (Om ^ 2.0)) + Float64(2.0 * Float64(-1.0 / Om))) t_4 = Float64(n * (Float64(l_m / Om) ^ 2.0)) t_5 = sqrt(Float64(t_2 * Float64(Float64(t - Float64(2.0 * Float64(Float64(l_m * l_m) / Om))) + Float64(t_4 * Float64(U_42_ - U))))) tmp = 0.0 if (t_5 <= 1e-128) tmp = sqrt(Float64(Float64(2.0 * n) * Float64(U * Float64(t + Float64(Float64(Float64(Float64((l_m ^ 2.0) * t_1) / Om) - Float64(2.0 * (l_m ^ 2.0))) / Om))))); elseif (t_5 <= Inf) tmp = sqrt(Float64(t_2 * Float64(Float64(t - Float64(2.0 * Float64(l_m * Float64(l_m / Om)))) - Float64(t_4 * Float64(U - U_42_))))); else tmp = Float64(l_m * Float64(Float64(0.5 * Float64(sqrt(Float64(Float64(n * U) / t_3)) * Float64(Float64(t * sqrt(2.0)) / (l_m ^ 2.0)))) + Float64(sqrt(2.0) * sqrt(Float64(U * Float64(n * t_3)))))); end return tmp end
l_m = abs(l); function tmp_2 = code(n, U, t, l_m, Om, U_42_) t_1 = n * (U_42_ - U); t_2 = (2.0 * n) * U; t_3 = (t_1 / (Om ^ 2.0)) + (2.0 * (-1.0 / Om)); t_4 = n * ((l_m / Om) ^ 2.0); t_5 = sqrt((t_2 * ((t - (2.0 * ((l_m * l_m) / Om))) + (t_4 * (U_42_ - U))))); tmp = 0.0; if (t_5 <= 1e-128) tmp = sqrt(((2.0 * n) * (U * (t + (((((l_m ^ 2.0) * t_1) / Om) - (2.0 * (l_m ^ 2.0))) / Om))))); elseif (t_5 <= Inf) tmp = sqrt((t_2 * ((t - (2.0 * (l_m * (l_m / Om)))) - (t_4 * (U - U_42_))))); else tmp = l_m * ((0.5 * (sqrt(((n * U) / t_3)) * ((t * sqrt(2.0)) / (l_m ^ 2.0)))) + (sqrt(2.0) * sqrt((U * (n * t_3))))); end tmp_2 = tmp; end
l_m = N[Abs[l], $MachinePrecision]
code[n_, U_, t_, l$95$m_, Om_, U$42$_] := Block[{t$95$1 = N[(n * N[(U$42$ - U), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(2.0 * n), $MachinePrecision] * U), $MachinePrecision]}, Block[{t$95$3 = N[(N[(t$95$1 / N[Power[Om, 2.0], $MachinePrecision]), $MachinePrecision] + N[(2.0 * N[(-1.0 / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(n * N[Power[N[(l$95$m / Om), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]}, Block[{t$95$5 = N[Sqrt[N[(t$95$2 * N[(N[(t - N[(2.0 * N[(N[(l$95$m * l$95$m), $MachinePrecision] / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(t$95$4 * N[(U$42$ - U), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]}, If[LessEqual[t$95$5, 1e-128], N[Sqrt[N[(N[(2.0 * n), $MachinePrecision] * N[(U * N[(t + N[(N[(N[(N[(N[Power[l$95$m, 2.0], $MachinePrecision] * t$95$1), $MachinePrecision] / Om), $MachinePrecision] - N[(2.0 * N[Power[l$95$m, 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], If[LessEqual[t$95$5, Infinity], N[Sqrt[N[(t$95$2 * N[(N[(t - N[(2.0 * N[(l$95$m * N[(l$95$m / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(t$95$4 * N[(U - U$42$), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], N[(l$95$m * N[(N[(0.5 * N[(N[Sqrt[N[(N[(n * U), $MachinePrecision] / t$95$3), $MachinePrecision]], $MachinePrecision] * N[(N[(t * N[Sqrt[2.0], $MachinePrecision]), $MachinePrecision] / N[Power[l$95$m, 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[Sqrt[2.0], $MachinePrecision] * N[Sqrt[N[(U * N[(n * t$95$3), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]
\begin{array}{l}
l_m = \left|\ell\right|
\\
\begin{array}{l}
t_1 := n \cdot \left(U* - U\right)\\
t_2 := \left(2 \cdot n\right) \cdot U\\
t_3 := \frac{t\_1}{{Om}^{2}} + 2 \cdot \frac{-1}{Om}\\
t_4 := n \cdot {\left(\frac{l\_m}{Om}\right)}^{2}\\
t_5 := \sqrt{t\_2 \cdot \left(\left(t - 2 \cdot \frac{l\_m \cdot l\_m}{Om}\right) + t\_4 \cdot \left(U* - U\right)\right)}\\
\mathbf{if}\;t\_5 \leq 10^{-128}:\\
\;\;\;\;\sqrt{\left(2 \cdot n\right) \cdot \left(U \cdot \left(t + \frac{\frac{{l\_m}^{2} \cdot t\_1}{Om} - 2 \cdot {l\_m}^{2}}{Om}\right)\right)}\\
\mathbf{elif}\;t\_5 \leq \infty:\\
\;\;\;\;\sqrt{t\_2 \cdot \left(\left(t - 2 \cdot \left(l\_m \cdot \frac{l\_m}{Om}\right)\right) - t\_4 \cdot \left(U - U*\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;l\_m \cdot \left(0.5 \cdot \left(\sqrt{\frac{n \cdot U}{t\_3}} \cdot \frac{t \cdot \sqrt{2}}{{l\_m}^{2}}\right) + \sqrt{2} \cdot \sqrt{U \cdot \left(n \cdot t\_3\right)}\right)\\
\end{array}
\end{array}
if (sqrt.f64 (*.f64 (*.f64 (*.f64 #s(literal 2 binary64) n) U) (-.f64 (-.f64 t (*.f64 #s(literal 2 binary64) (/.f64 (*.f64 l l) Om))) (*.f64 (*.f64 n (pow.f64 (/.f64 l Om) #s(literal 2 binary64))) (-.f64 U U*))))) < 1.00000000000000005e-128Initial program 23.8%
Simplified48.3%
Taylor expanded in Om around inf 48.4%
if 1.00000000000000005e-128 < (sqrt.f64 (*.f64 (*.f64 (*.f64 #s(literal 2 binary64) n) U) (-.f64 (-.f64 t (*.f64 #s(literal 2 binary64) (/.f64 (*.f64 l l) Om))) (*.f64 (*.f64 n (pow.f64 (/.f64 l Om) #s(literal 2 binary64))) (-.f64 U U*))))) < +inf.0Initial program 64.4%
associate-*r/70.2%
*-commutative70.2%
Applied egg-rr70.2%
if +inf.0 < (sqrt.f64 (*.f64 (*.f64 (*.f64 #s(literal 2 binary64) n) U) (-.f64 (-.f64 t (*.f64 #s(literal 2 binary64) (/.f64 (*.f64 l l) Om))) (*.f64 (*.f64 n (pow.f64 (/.f64 l Om) #s(literal 2 binary64))) (-.f64 U U*))))) Initial program 0.0%
Simplified11.1%
Taylor expanded in l around inf 29.8%
Final simplification61.7%
l_m = (fabs.f64 l)
(FPCore (n U t l_m Om U*)
:precision binary64
(let* ((t_1 (* (* 2.0 n) U))
(t_2 (* n (pow (/ l_m Om) 2.0)))
(t_3
(sqrt (* t_1 (+ (- t (* 2.0 (/ (* l_m l_m) Om))) (* t_2 (- U* U)))))))
(if (<= t_3 0.0)
(sqrt (* 2.0 (* U (* n (- t (* 2.0 (/ (pow l_m 2.0) Om)))))))
(if (<= t_3 INFINITY)
(sqrt (* t_1 (- (- t (* 2.0 (* l_m (/ l_m Om)))) (* t_2 (- U U*)))))
(*
(sqrt
(* U (* n (+ (/ (* n (- U* U)) (pow Om 2.0)) (* 2.0 (/ -1.0 Om))))))
(* l_m (sqrt 2.0)))))))l_m = fabs(l);
double code(double n, double U, double t, double l_m, double Om, double U_42_) {
double t_1 = (2.0 * n) * U;
double t_2 = n * pow((l_m / Om), 2.0);
double t_3 = sqrt((t_1 * ((t - (2.0 * ((l_m * l_m) / Om))) + (t_2 * (U_42_ - U)))));
double tmp;
if (t_3 <= 0.0) {
tmp = sqrt((2.0 * (U * (n * (t - (2.0 * (pow(l_m, 2.0) / Om)))))));
} else if (t_3 <= ((double) INFINITY)) {
tmp = sqrt((t_1 * ((t - (2.0 * (l_m * (l_m / Om)))) - (t_2 * (U - U_42_)))));
} else {
tmp = sqrt((U * (n * (((n * (U_42_ - U)) / pow(Om, 2.0)) + (2.0 * (-1.0 / Om)))))) * (l_m * sqrt(2.0));
}
return tmp;
}
l_m = Math.abs(l);
public static double code(double n, double U, double t, double l_m, double Om, double U_42_) {
double t_1 = (2.0 * n) * U;
double t_2 = n * Math.pow((l_m / Om), 2.0);
double t_3 = Math.sqrt((t_1 * ((t - (2.0 * ((l_m * l_m) / Om))) + (t_2 * (U_42_ - U)))));
double tmp;
if (t_3 <= 0.0) {
tmp = Math.sqrt((2.0 * (U * (n * (t - (2.0 * (Math.pow(l_m, 2.0) / Om)))))));
} else if (t_3 <= Double.POSITIVE_INFINITY) {
tmp = Math.sqrt((t_1 * ((t - (2.0 * (l_m * (l_m / Om)))) - (t_2 * (U - U_42_)))));
} else {
tmp = Math.sqrt((U * (n * (((n * (U_42_ - U)) / Math.pow(Om, 2.0)) + (2.0 * (-1.0 / Om)))))) * (l_m * Math.sqrt(2.0));
}
return tmp;
}
l_m = math.fabs(l) def code(n, U, t, l_m, Om, U_42_): t_1 = (2.0 * n) * U t_2 = n * math.pow((l_m / Om), 2.0) t_3 = math.sqrt((t_1 * ((t - (2.0 * ((l_m * l_m) / Om))) + (t_2 * (U_42_ - U))))) tmp = 0 if t_3 <= 0.0: tmp = math.sqrt((2.0 * (U * (n * (t - (2.0 * (math.pow(l_m, 2.0) / Om))))))) elif t_3 <= math.inf: tmp = math.sqrt((t_1 * ((t - (2.0 * (l_m * (l_m / Om)))) - (t_2 * (U - U_42_))))) else: tmp = math.sqrt((U * (n * (((n * (U_42_ - U)) / math.pow(Om, 2.0)) + (2.0 * (-1.0 / Om)))))) * (l_m * math.sqrt(2.0)) return tmp
l_m = abs(l) function code(n, U, t, l_m, Om, U_42_) t_1 = Float64(Float64(2.0 * n) * U) t_2 = Float64(n * (Float64(l_m / Om) ^ 2.0)) t_3 = sqrt(Float64(t_1 * Float64(Float64(t - Float64(2.0 * Float64(Float64(l_m * l_m) / Om))) + Float64(t_2 * Float64(U_42_ - U))))) tmp = 0.0 if (t_3 <= 0.0) tmp = sqrt(Float64(2.0 * Float64(U * Float64(n * Float64(t - Float64(2.0 * Float64((l_m ^ 2.0) / Om))))))); elseif (t_3 <= Inf) tmp = sqrt(Float64(t_1 * Float64(Float64(t - Float64(2.0 * Float64(l_m * Float64(l_m / Om)))) - Float64(t_2 * Float64(U - U_42_))))); else tmp = Float64(sqrt(Float64(U * Float64(n * Float64(Float64(Float64(n * Float64(U_42_ - U)) / (Om ^ 2.0)) + Float64(2.0 * Float64(-1.0 / Om)))))) * Float64(l_m * sqrt(2.0))); end return tmp end
l_m = abs(l); function tmp_2 = code(n, U, t, l_m, Om, U_42_) t_1 = (2.0 * n) * U; t_2 = n * ((l_m / Om) ^ 2.0); t_3 = sqrt((t_1 * ((t - (2.0 * ((l_m * l_m) / Om))) + (t_2 * (U_42_ - U))))); tmp = 0.0; if (t_3 <= 0.0) tmp = sqrt((2.0 * (U * (n * (t - (2.0 * ((l_m ^ 2.0) / Om))))))); elseif (t_3 <= Inf) tmp = sqrt((t_1 * ((t - (2.0 * (l_m * (l_m / Om)))) - (t_2 * (U - U_42_))))); else tmp = sqrt((U * (n * (((n * (U_42_ - U)) / (Om ^ 2.0)) + (2.0 * (-1.0 / Om)))))) * (l_m * sqrt(2.0)); end tmp_2 = tmp; end
l_m = N[Abs[l], $MachinePrecision]
code[n_, U_, t_, l$95$m_, Om_, U$42$_] := Block[{t$95$1 = N[(N[(2.0 * n), $MachinePrecision] * U), $MachinePrecision]}, Block[{t$95$2 = N[(n * N[Power[N[(l$95$m / Om), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[Sqrt[N[(t$95$1 * N[(N[(t - N[(2.0 * N[(N[(l$95$m * l$95$m), $MachinePrecision] / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(t$95$2 * N[(U$42$ - U), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]}, If[LessEqual[t$95$3, 0.0], N[Sqrt[N[(2.0 * N[(U * N[(n * N[(t - N[(2.0 * N[(N[Power[l$95$m, 2.0], $MachinePrecision] / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], If[LessEqual[t$95$3, Infinity], N[Sqrt[N[(t$95$1 * N[(N[(t - N[(2.0 * N[(l$95$m * N[(l$95$m / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(t$95$2 * N[(U - U$42$), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], N[(N[Sqrt[N[(U * N[(n * N[(N[(N[(n * N[(U$42$ - U), $MachinePrecision]), $MachinePrecision] / N[Power[Om, 2.0], $MachinePrecision]), $MachinePrecision] + N[(2.0 * N[(-1.0 / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * N[(l$95$m * N[Sqrt[2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
l_m = \left|\ell\right|
\\
\begin{array}{l}
t_1 := \left(2 \cdot n\right) \cdot U\\
t_2 := n \cdot {\left(\frac{l\_m}{Om}\right)}^{2}\\
t_3 := \sqrt{t\_1 \cdot \left(\left(t - 2 \cdot \frac{l\_m \cdot l\_m}{Om}\right) + t\_2 \cdot \left(U* - U\right)\right)}\\
\mathbf{if}\;t\_3 \leq 0:\\
\;\;\;\;\sqrt{2 \cdot \left(U \cdot \left(n \cdot \left(t - 2 \cdot \frac{{l\_m}^{2}}{Om}\right)\right)\right)}\\
\mathbf{elif}\;t\_3 \leq \infty:\\
\;\;\;\;\sqrt{t\_1 \cdot \left(\left(t - 2 \cdot \left(l\_m \cdot \frac{l\_m}{Om}\right)\right) - t\_2 \cdot \left(U - U*\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;\sqrt{U \cdot \left(n \cdot \left(\frac{n \cdot \left(U* - U\right)}{{Om}^{2}} + 2 \cdot \frac{-1}{Om}\right)\right)} \cdot \left(l\_m \cdot \sqrt{2}\right)\\
\end{array}
\end{array}
if (sqrt.f64 (*.f64 (*.f64 (*.f64 #s(literal 2 binary64) n) U) (-.f64 (-.f64 t (*.f64 #s(literal 2 binary64) (/.f64 (*.f64 l l) Om))) (*.f64 (*.f64 n (pow.f64 (/.f64 l Om) #s(literal 2 binary64))) (-.f64 U U*))))) < 0.0Initial program 9.3%
Simplified37.1%
Taylor expanded in n around 0 37.3%
if 0.0 < (sqrt.f64 (*.f64 (*.f64 (*.f64 #s(literal 2 binary64) n) U) (-.f64 (-.f64 t (*.f64 #s(literal 2 binary64) (/.f64 (*.f64 l l) Om))) (*.f64 (*.f64 n (pow.f64 (/.f64 l Om) #s(literal 2 binary64))) (-.f64 U U*))))) < +inf.0Initial program 64.9%
associate-*r/70.6%
*-commutative70.6%
Applied egg-rr70.6%
if +inf.0 < (sqrt.f64 (*.f64 (*.f64 (*.f64 #s(literal 2 binary64) n) U) (-.f64 (-.f64 t (*.f64 #s(literal 2 binary64) (/.f64 (*.f64 l l) Om))) (*.f64 (*.f64 n (pow.f64 (/.f64 l Om) #s(literal 2 binary64))) (-.f64 U U*))))) Initial program 0.0%
Simplified11.1%
Taylor expanded in l around inf 29.8%
Final simplification61.4%
l_m = (fabs.f64 l)
(FPCore (n U t l_m Om U*)
:precision binary64
(let* ((t_1 (* l_m (/ l_m Om)))
(t_2 (pow (/ l_m Om) 2.0))
(t_3 (* (* 2.0 n) U))
(t_4 (* n t_2))
(t_5
(sqrt (* t_3 (+ (- t (* 2.0 (/ (* l_m l_m) Om))) (* t_4 (- U* U)))))))
(if (<= t_5 1e-128)
(sqrt (* (* 2.0 n) (* U (- t (fma 2.0 t_1 (* n (* t_2 (- U U*))))))))
(if (<= t_5 INFINITY)
(sqrt (* t_3 (- (- t (* 2.0 t_1)) (* t_4 (- U U*)))))
(*
(sqrt
(* U (* n (+ (/ (* n (- U* U)) (pow Om 2.0)) (* 2.0 (/ -1.0 Om))))))
(* l_m (sqrt 2.0)))))))l_m = fabs(l);
double code(double n, double U, double t, double l_m, double Om, double U_42_) {
double t_1 = l_m * (l_m / Om);
double t_2 = pow((l_m / Om), 2.0);
double t_3 = (2.0 * n) * U;
double t_4 = n * t_2;
double t_5 = sqrt((t_3 * ((t - (2.0 * ((l_m * l_m) / Om))) + (t_4 * (U_42_ - U)))));
double tmp;
if (t_5 <= 1e-128) {
tmp = sqrt(((2.0 * n) * (U * (t - fma(2.0, t_1, (n * (t_2 * (U - U_42_))))))));
} else if (t_5 <= ((double) INFINITY)) {
tmp = sqrt((t_3 * ((t - (2.0 * t_1)) - (t_4 * (U - U_42_)))));
} else {
tmp = sqrt((U * (n * (((n * (U_42_ - U)) / pow(Om, 2.0)) + (2.0 * (-1.0 / Om)))))) * (l_m * sqrt(2.0));
}
return tmp;
}
l_m = abs(l) function code(n, U, t, l_m, Om, U_42_) t_1 = Float64(l_m * Float64(l_m / Om)) t_2 = Float64(l_m / Om) ^ 2.0 t_3 = Float64(Float64(2.0 * n) * U) t_4 = Float64(n * t_2) t_5 = sqrt(Float64(t_3 * Float64(Float64(t - Float64(2.0 * Float64(Float64(l_m * l_m) / Om))) + Float64(t_4 * Float64(U_42_ - U))))) tmp = 0.0 if (t_5 <= 1e-128) tmp = sqrt(Float64(Float64(2.0 * n) * Float64(U * Float64(t - fma(2.0, t_1, Float64(n * Float64(t_2 * Float64(U - U_42_)))))))); elseif (t_5 <= Inf) tmp = sqrt(Float64(t_3 * Float64(Float64(t - Float64(2.0 * t_1)) - Float64(t_4 * Float64(U - U_42_))))); else tmp = Float64(sqrt(Float64(U * Float64(n * Float64(Float64(Float64(n * Float64(U_42_ - U)) / (Om ^ 2.0)) + Float64(2.0 * Float64(-1.0 / Om)))))) * Float64(l_m * sqrt(2.0))); end return tmp end
l_m = N[Abs[l], $MachinePrecision]
code[n_, U_, t_, l$95$m_, Om_, U$42$_] := Block[{t$95$1 = N[(l$95$m * N[(l$95$m / Om), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[Power[N[(l$95$m / Om), $MachinePrecision], 2.0], $MachinePrecision]}, Block[{t$95$3 = N[(N[(2.0 * n), $MachinePrecision] * U), $MachinePrecision]}, Block[{t$95$4 = N[(n * t$95$2), $MachinePrecision]}, Block[{t$95$5 = N[Sqrt[N[(t$95$3 * N[(N[(t - N[(2.0 * N[(N[(l$95$m * l$95$m), $MachinePrecision] / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(t$95$4 * N[(U$42$ - U), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]}, If[LessEqual[t$95$5, 1e-128], N[Sqrt[N[(N[(2.0 * n), $MachinePrecision] * N[(U * N[(t - N[(2.0 * t$95$1 + N[(n * N[(t$95$2 * N[(U - U$42$), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], If[LessEqual[t$95$5, Infinity], N[Sqrt[N[(t$95$3 * N[(N[(t - N[(2.0 * t$95$1), $MachinePrecision]), $MachinePrecision] - N[(t$95$4 * N[(U - U$42$), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], N[(N[Sqrt[N[(U * N[(n * N[(N[(N[(n * N[(U$42$ - U), $MachinePrecision]), $MachinePrecision] / N[Power[Om, 2.0], $MachinePrecision]), $MachinePrecision] + N[(2.0 * N[(-1.0 / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * N[(l$95$m * N[Sqrt[2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]
\begin{array}{l}
l_m = \left|\ell\right|
\\
\begin{array}{l}
t_1 := l\_m \cdot \frac{l\_m}{Om}\\
t_2 := {\left(\frac{l\_m}{Om}\right)}^{2}\\
t_3 := \left(2 \cdot n\right) \cdot U\\
t_4 := n \cdot t\_2\\
t_5 := \sqrt{t\_3 \cdot \left(\left(t - 2 \cdot \frac{l\_m \cdot l\_m}{Om}\right) + t\_4 \cdot \left(U* - U\right)\right)}\\
\mathbf{if}\;t\_5 \leq 10^{-128}:\\
\;\;\;\;\sqrt{\left(2 \cdot n\right) \cdot \left(U \cdot \left(t - \mathsf{fma}\left(2, t\_1, n \cdot \left(t\_2 \cdot \left(U - U*\right)\right)\right)\right)\right)}\\
\mathbf{elif}\;t\_5 \leq \infty:\\
\;\;\;\;\sqrt{t\_3 \cdot \left(\left(t - 2 \cdot t\_1\right) - t\_4 \cdot \left(U - U*\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;\sqrt{U \cdot \left(n \cdot \left(\frac{n \cdot \left(U* - U\right)}{{Om}^{2}} + 2 \cdot \frac{-1}{Om}\right)\right)} \cdot \left(l\_m \cdot \sqrt{2}\right)\\
\end{array}
\end{array}
if (sqrt.f64 (*.f64 (*.f64 (*.f64 #s(literal 2 binary64) n) U) (-.f64 (-.f64 t (*.f64 #s(literal 2 binary64) (/.f64 (*.f64 l l) Om))) (*.f64 (*.f64 n (pow.f64 (/.f64 l Om) #s(literal 2 binary64))) (-.f64 U U*))))) < 1.00000000000000005e-128Initial program 23.8%
Simplified48.3%
if 1.00000000000000005e-128 < (sqrt.f64 (*.f64 (*.f64 (*.f64 #s(literal 2 binary64) n) U) (-.f64 (-.f64 t (*.f64 #s(literal 2 binary64) (/.f64 (*.f64 l l) Om))) (*.f64 (*.f64 n (pow.f64 (/.f64 l Om) #s(literal 2 binary64))) (-.f64 U U*))))) < +inf.0Initial program 64.4%
associate-*r/70.2%
*-commutative70.2%
Applied egg-rr70.2%
if +inf.0 < (sqrt.f64 (*.f64 (*.f64 (*.f64 #s(literal 2 binary64) n) U) (-.f64 (-.f64 t (*.f64 #s(literal 2 binary64) (/.f64 (*.f64 l l) Om))) (*.f64 (*.f64 n (pow.f64 (/.f64 l Om) #s(literal 2 binary64))) (-.f64 U U*))))) Initial program 0.0%
Simplified11.1%
Taylor expanded in l around inf 29.8%
Final simplification61.7%
l_m = (fabs.f64 l)
(FPCore (n U t l_m Om U*)
:precision binary64
(let* ((t_1 (* n (- U* U)))
(t_2 (* (* 2.0 n) U))
(t_3 (* n (pow (/ l_m Om) 2.0)))
(t_4
(sqrt (* t_2 (+ (- t (* 2.0 (/ (* l_m l_m) Om))) (* t_3 (- U* U)))))))
(if (<= t_4 1e-128)
(sqrt
(*
(* 2.0 n)
(*
U
(+ t (/ (- (/ (* (pow l_m 2.0) t_1) Om) (* 2.0 (pow l_m 2.0))) Om)))))
(if (<= t_4 INFINITY)
(sqrt (* t_2 (- (- t (* 2.0 (* l_m (/ l_m Om)))) (* t_3 (- U U*)))))
(*
(sqrt (* U (* n (+ (/ t_1 (pow Om 2.0)) (* 2.0 (/ -1.0 Om))))))
(* l_m (sqrt 2.0)))))))l_m = fabs(l);
double code(double n, double U, double t, double l_m, double Om, double U_42_) {
double t_1 = n * (U_42_ - U);
double t_2 = (2.0 * n) * U;
double t_3 = n * pow((l_m / Om), 2.0);
double t_4 = sqrt((t_2 * ((t - (2.0 * ((l_m * l_m) / Om))) + (t_3 * (U_42_ - U)))));
double tmp;
if (t_4 <= 1e-128) {
tmp = sqrt(((2.0 * n) * (U * (t + ((((pow(l_m, 2.0) * t_1) / Om) - (2.0 * pow(l_m, 2.0))) / Om)))));
} else if (t_4 <= ((double) INFINITY)) {
tmp = sqrt((t_2 * ((t - (2.0 * (l_m * (l_m / Om)))) - (t_3 * (U - U_42_)))));
} else {
tmp = sqrt((U * (n * ((t_1 / pow(Om, 2.0)) + (2.0 * (-1.0 / Om)))))) * (l_m * sqrt(2.0));
}
return tmp;
}
l_m = Math.abs(l);
public static double code(double n, double U, double t, double l_m, double Om, double U_42_) {
double t_1 = n * (U_42_ - U);
double t_2 = (2.0 * n) * U;
double t_3 = n * Math.pow((l_m / Om), 2.0);
double t_4 = Math.sqrt((t_2 * ((t - (2.0 * ((l_m * l_m) / Om))) + (t_3 * (U_42_ - U)))));
double tmp;
if (t_4 <= 1e-128) {
tmp = Math.sqrt(((2.0 * n) * (U * (t + ((((Math.pow(l_m, 2.0) * t_1) / Om) - (2.0 * Math.pow(l_m, 2.0))) / Om)))));
} else if (t_4 <= Double.POSITIVE_INFINITY) {
tmp = Math.sqrt((t_2 * ((t - (2.0 * (l_m * (l_m / Om)))) - (t_3 * (U - U_42_)))));
} else {
tmp = Math.sqrt((U * (n * ((t_1 / Math.pow(Om, 2.0)) + (2.0 * (-1.0 / Om)))))) * (l_m * Math.sqrt(2.0));
}
return tmp;
}
l_m = math.fabs(l) def code(n, U, t, l_m, Om, U_42_): t_1 = n * (U_42_ - U) t_2 = (2.0 * n) * U t_3 = n * math.pow((l_m / Om), 2.0) t_4 = math.sqrt((t_2 * ((t - (2.0 * ((l_m * l_m) / Om))) + (t_3 * (U_42_ - U))))) tmp = 0 if t_4 <= 1e-128: tmp = math.sqrt(((2.0 * n) * (U * (t + ((((math.pow(l_m, 2.0) * t_1) / Om) - (2.0 * math.pow(l_m, 2.0))) / Om))))) elif t_4 <= math.inf: tmp = math.sqrt((t_2 * ((t - (2.0 * (l_m * (l_m / Om)))) - (t_3 * (U - U_42_))))) else: tmp = math.sqrt((U * (n * ((t_1 / math.pow(Om, 2.0)) + (2.0 * (-1.0 / Om)))))) * (l_m * math.sqrt(2.0)) return tmp
l_m = abs(l) function code(n, U, t, l_m, Om, U_42_) t_1 = Float64(n * Float64(U_42_ - U)) t_2 = Float64(Float64(2.0 * n) * U) t_3 = Float64(n * (Float64(l_m / Om) ^ 2.0)) t_4 = sqrt(Float64(t_2 * Float64(Float64(t - Float64(2.0 * Float64(Float64(l_m * l_m) / Om))) + Float64(t_3 * Float64(U_42_ - U))))) tmp = 0.0 if (t_4 <= 1e-128) tmp = sqrt(Float64(Float64(2.0 * n) * Float64(U * Float64(t + Float64(Float64(Float64(Float64((l_m ^ 2.0) * t_1) / Om) - Float64(2.0 * (l_m ^ 2.0))) / Om))))); elseif (t_4 <= Inf) tmp = sqrt(Float64(t_2 * Float64(Float64(t - Float64(2.0 * Float64(l_m * Float64(l_m / Om)))) - Float64(t_3 * Float64(U - U_42_))))); else tmp = Float64(sqrt(Float64(U * Float64(n * Float64(Float64(t_1 / (Om ^ 2.0)) + Float64(2.0 * Float64(-1.0 / Om)))))) * Float64(l_m * sqrt(2.0))); end return tmp end
l_m = abs(l); function tmp_2 = code(n, U, t, l_m, Om, U_42_) t_1 = n * (U_42_ - U); t_2 = (2.0 * n) * U; t_3 = n * ((l_m / Om) ^ 2.0); t_4 = sqrt((t_2 * ((t - (2.0 * ((l_m * l_m) / Om))) + (t_3 * (U_42_ - U))))); tmp = 0.0; if (t_4 <= 1e-128) tmp = sqrt(((2.0 * n) * (U * (t + (((((l_m ^ 2.0) * t_1) / Om) - (2.0 * (l_m ^ 2.0))) / Om))))); elseif (t_4 <= Inf) tmp = sqrt((t_2 * ((t - (2.0 * (l_m * (l_m / Om)))) - (t_3 * (U - U_42_))))); else tmp = sqrt((U * (n * ((t_1 / (Om ^ 2.0)) + (2.0 * (-1.0 / Om)))))) * (l_m * sqrt(2.0)); end tmp_2 = tmp; end
l_m = N[Abs[l], $MachinePrecision]
code[n_, U_, t_, l$95$m_, Om_, U$42$_] := Block[{t$95$1 = N[(n * N[(U$42$ - U), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(2.0 * n), $MachinePrecision] * U), $MachinePrecision]}, Block[{t$95$3 = N[(n * N[Power[N[(l$95$m / Om), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[Sqrt[N[(t$95$2 * N[(N[(t - N[(2.0 * N[(N[(l$95$m * l$95$m), $MachinePrecision] / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(t$95$3 * N[(U$42$ - U), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]}, If[LessEqual[t$95$4, 1e-128], N[Sqrt[N[(N[(2.0 * n), $MachinePrecision] * N[(U * N[(t + N[(N[(N[(N[(N[Power[l$95$m, 2.0], $MachinePrecision] * t$95$1), $MachinePrecision] / Om), $MachinePrecision] - N[(2.0 * N[Power[l$95$m, 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], If[LessEqual[t$95$4, Infinity], N[Sqrt[N[(t$95$2 * N[(N[(t - N[(2.0 * N[(l$95$m * N[(l$95$m / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(t$95$3 * N[(U - U$42$), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], N[(N[Sqrt[N[(U * N[(n * N[(N[(t$95$1 / N[Power[Om, 2.0], $MachinePrecision]), $MachinePrecision] + N[(2.0 * N[(-1.0 / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * N[(l$95$m * N[Sqrt[2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
l_m = \left|\ell\right|
\\
\begin{array}{l}
t_1 := n \cdot \left(U* - U\right)\\
t_2 := \left(2 \cdot n\right) \cdot U\\
t_3 := n \cdot {\left(\frac{l\_m}{Om}\right)}^{2}\\
t_4 := \sqrt{t\_2 \cdot \left(\left(t - 2 \cdot \frac{l\_m \cdot l\_m}{Om}\right) + t\_3 \cdot \left(U* - U\right)\right)}\\
\mathbf{if}\;t\_4 \leq 10^{-128}:\\
\;\;\;\;\sqrt{\left(2 \cdot n\right) \cdot \left(U \cdot \left(t + \frac{\frac{{l\_m}^{2} \cdot t\_1}{Om} - 2 \cdot {l\_m}^{2}}{Om}\right)\right)}\\
\mathbf{elif}\;t\_4 \leq \infty:\\
\;\;\;\;\sqrt{t\_2 \cdot \left(\left(t - 2 \cdot \left(l\_m \cdot \frac{l\_m}{Om}\right)\right) - t\_3 \cdot \left(U - U*\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;\sqrt{U \cdot \left(n \cdot \left(\frac{t\_1}{{Om}^{2}} + 2 \cdot \frac{-1}{Om}\right)\right)} \cdot \left(l\_m \cdot \sqrt{2}\right)\\
\end{array}
\end{array}
if (sqrt.f64 (*.f64 (*.f64 (*.f64 #s(literal 2 binary64) n) U) (-.f64 (-.f64 t (*.f64 #s(literal 2 binary64) (/.f64 (*.f64 l l) Om))) (*.f64 (*.f64 n (pow.f64 (/.f64 l Om) #s(literal 2 binary64))) (-.f64 U U*))))) < 1.00000000000000005e-128Initial program 23.8%
Simplified48.3%
Taylor expanded in Om around inf 48.4%
if 1.00000000000000005e-128 < (sqrt.f64 (*.f64 (*.f64 (*.f64 #s(literal 2 binary64) n) U) (-.f64 (-.f64 t (*.f64 #s(literal 2 binary64) (/.f64 (*.f64 l l) Om))) (*.f64 (*.f64 n (pow.f64 (/.f64 l Om) #s(literal 2 binary64))) (-.f64 U U*))))) < +inf.0Initial program 64.4%
associate-*r/70.2%
*-commutative70.2%
Applied egg-rr70.2%
if +inf.0 < (sqrt.f64 (*.f64 (*.f64 (*.f64 #s(literal 2 binary64) n) U) (-.f64 (-.f64 t (*.f64 #s(literal 2 binary64) (/.f64 (*.f64 l l) Om))) (*.f64 (*.f64 n (pow.f64 (/.f64 l Om) #s(literal 2 binary64))) (-.f64 U U*))))) Initial program 0.0%
Simplified11.1%
Taylor expanded in l around inf 29.8%
Final simplification61.7%
l_m = (fabs.f64 l)
(FPCore (n U t l_m Om U*)
:precision binary64
(let* ((t_1
(sqrt
(*
(* (* 2.0 n) U)
(+
(- t (* 2.0 (/ (* l_m l_m) Om)))
(* (* n (pow (/ l_m Om) 2.0)) (- U* U)))))))
(if (<= t_1 0.0)
(sqrt (* 2.0 (* U (* n (- t (* 2.0 (/ (pow l_m 2.0) Om)))))))
(if (<= t_1 1e+143)
t_1
(*
(* l_m (sqrt 2.0))
(sqrt (* (* n U) (- (* n (/ (- U* U) (pow Om 2.0))) (/ 2.0 Om)))))))))l_m = fabs(l);
double code(double n, double U, double t, double l_m, double Om, double U_42_) {
double t_1 = sqrt((((2.0 * n) * U) * ((t - (2.0 * ((l_m * l_m) / Om))) + ((n * pow((l_m / Om), 2.0)) * (U_42_ - U)))));
double tmp;
if (t_1 <= 0.0) {
tmp = sqrt((2.0 * (U * (n * (t - (2.0 * (pow(l_m, 2.0) / Om)))))));
} else if (t_1 <= 1e+143) {
tmp = t_1;
} else {
tmp = (l_m * sqrt(2.0)) * sqrt(((n * U) * ((n * ((U_42_ - U) / pow(Om, 2.0))) - (2.0 / Om))));
}
return tmp;
}
l_m = abs(l)
real(8) function code(n, u, t, l_m, om, u_42)
real(8), intent (in) :: n
real(8), intent (in) :: u
real(8), intent (in) :: t
real(8), intent (in) :: l_m
real(8), intent (in) :: om
real(8), intent (in) :: u_42
real(8) :: t_1
real(8) :: tmp
t_1 = sqrt((((2.0d0 * n) * u) * ((t - (2.0d0 * ((l_m * l_m) / om))) + ((n * ((l_m / om) ** 2.0d0)) * (u_42 - u)))))
if (t_1 <= 0.0d0) then
tmp = sqrt((2.0d0 * (u * (n * (t - (2.0d0 * ((l_m ** 2.0d0) / om)))))))
else if (t_1 <= 1d+143) then
tmp = t_1
else
tmp = (l_m * sqrt(2.0d0)) * sqrt(((n * u) * ((n * ((u_42 - u) / (om ** 2.0d0))) - (2.0d0 / om))))
end if
code = tmp
end function
l_m = Math.abs(l);
public static double code(double n, double U, double t, double l_m, double Om, double U_42_) {
double t_1 = Math.sqrt((((2.0 * n) * U) * ((t - (2.0 * ((l_m * l_m) / Om))) + ((n * Math.pow((l_m / Om), 2.0)) * (U_42_ - U)))));
double tmp;
if (t_1 <= 0.0) {
tmp = Math.sqrt((2.0 * (U * (n * (t - (2.0 * (Math.pow(l_m, 2.0) / Om)))))));
} else if (t_1 <= 1e+143) {
tmp = t_1;
} else {
tmp = (l_m * Math.sqrt(2.0)) * Math.sqrt(((n * U) * ((n * ((U_42_ - U) / Math.pow(Om, 2.0))) - (2.0 / Om))));
}
return tmp;
}
l_m = math.fabs(l) def code(n, U, t, l_m, Om, U_42_): t_1 = math.sqrt((((2.0 * n) * U) * ((t - (2.0 * ((l_m * l_m) / Om))) + ((n * math.pow((l_m / Om), 2.0)) * (U_42_ - U))))) tmp = 0 if t_1 <= 0.0: tmp = math.sqrt((2.0 * (U * (n * (t - (2.0 * (math.pow(l_m, 2.0) / Om))))))) elif t_1 <= 1e+143: tmp = t_1 else: tmp = (l_m * math.sqrt(2.0)) * math.sqrt(((n * U) * ((n * ((U_42_ - U) / math.pow(Om, 2.0))) - (2.0 / Om)))) return tmp
l_m = abs(l) function code(n, U, t, l_m, Om, U_42_) t_1 = sqrt(Float64(Float64(Float64(2.0 * n) * U) * Float64(Float64(t - Float64(2.0 * Float64(Float64(l_m * l_m) / Om))) + Float64(Float64(n * (Float64(l_m / Om) ^ 2.0)) * Float64(U_42_ - U))))) tmp = 0.0 if (t_1 <= 0.0) tmp = sqrt(Float64(2.0 * Float64(U * Float64(n * Float64(t - Float64(2.0 * Float64((l_m ^ 2.0) / Om))))))); elseif (t_1 <= 1e+143) tmp = t_1; else tmp = Float64(Float64(l_m * sqrt(2.0)) * sqrt(Float64(Float64(n * U) * Float64(Float64(n * Float64(Float64(U_42_ - U) / (Om ^ 2.0))) - Float64(2.0 / Om))))); end return tmp end
l_m = abs(l); function tmp_2 = code(n, U, t, l_m, Om, U_42_) t_1 = sqrt((((2.0 * n) * U) * ((t - (2.0 * ((l_m * l_m) / Om))) + ((n * ((l_m / Om) ^ 2.0)) * (U_42_ - U))))); tmp = 0.0; if (t_1 <= 0.0) tmp = sqrt((2.0 * (U * (n * (t - (2.0 * ((l_m ^ 2.0) / Om))))))); elseif (t_1 <= 1e+143) tmp = t_1; else tmp = (l_m * sqrt(2.0)) * sqrt(((n * U) * ((n * ((U_42_ - U) / (Om ^ 2.0))) - (2.0 / Om)))); end tmp_2 = tmp; end
l_m = N[Abs[l], $MachinePrecision]
code[n_, U_, t_, l$95$m_, Om_, U$42$_] := Block[{t$95$1 = N[Sqrt[N[(N[(N[(2.0 * n), $MachinePrecision] * U), $MachinePrecision] * N[(N[(t - N[(2.0 * N[(N[(l$95$m * l$95$m), $MachinePrecision] / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(n * N[Power[N[(l$95$m / Om), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision] * N[(U$42$ - U), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]}, If[LessEqual[t$95$1, 0.0], N[Sqrt[N[(2.0 * N[(U * N[(n * N[(t - N[(2.0 * N[(N[Power[l$95$m, 2.0], $MachinePrecision] / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], If[LessEqual[t$95$1, 1e+143], t$95$1, N[(N[(l$95$m * N[Sqrt[2.0], $MachinePrecision]), $MachinePrecision] * N[Sqrt[N[(N[(n * U), $MachinePrecision] * N[(N[(n * N[(N[(U$42$ - U), $MachinePrecision] / N[Power[Om, 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(2.0 / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
l_m = \left|\ell\right|
\\
\begin{array}{l}
t_1 := \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(t - 2 \cdot \frac{l\_m \cdot l\_m}{Om}\right) + \left(n \cdot {\left(\frac{l\_m}{Om}\right)}^{2}\right) \cdot \left(U* - U\right)\right)}\\
\mathbf{if}\;t\_1 \leq 0:\\
\;\;\;\;\sqrt{2 \cdot \left(U \cdot \left(n \cdot \left(t - 2 \cdot \frac{{l\_m}^{2}}{Om}\right)\right)\right)}\\
\mathbf{elif}\;t\_1 \leq 10^{+143}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;\left(l\_m \cdot \sqrt{2}\right) \cdot \sqrt{\left(n \cdot U\right) \cdot \left(n \cdot \frac{U* - U}{{Om}^{2}} - \frac{2}{Om}\right)}\\
\end{array}
\end{array}
if (sqrt.f64 (*.f64 (*.f64 (*.f64 #s(literal 2 binary64) n) U) (-.f64 (-.f64 t (*.f64 #s(literal 2 binary64) (/.f64 (*.f64 l l) Om))) (*.f64 (*.f64 n (pow.f64 (/.f64 l Om) #s(literal 2 binary64))) (-.f64 U U*))))) < 0.0Initial program 9.3%
Simplified37.1%
Taylor expanded in n around 0 37.3%
if 0.0 < (sqrt.f64 (*.f64 (*.f64 (*.f64 #s(literal 2 binary64) n) U) (-.f64 (-.f64 t (*.f64 #s(literal 2 binary64) (/.f64 (*.f64 l l) Om))) (*.f64 (*.f64 n (pow.f64 (/.f64 l Om) #s(literal 2 binary64))) (-.f64 U U*))))) < 1e143Initial program 97.5%
if 1e143 < (sqrt.f64 (*.f64 (*.f64 (*.f64 #s(literal 2 binary64) n) U) (-.f64 (-.f64 t (*.f64 #s(literal 2 binary64) (/.f64 (*.f64 l l) Om))) (*.f64 (*.f64 n (pow.f64 (/.f64 l Om) #s(literal 2 binary64))) (-.f64 U U*))))) Initial program 16.0%
Simplified29.4%
Taylor expanded in l around inf 19.1%
*-commutative19.1%
associate-*r*21.5%
associate-/l*20.8%
associate-*r/20.8%
metadata-eval20.8%
Simplified20.8%
Final simplification55.0%
l_m = (fabs.f64 l)
(FPCore (n U t l_m Om U*)
:precision binary64
(let* ((t_1 (* n (pow (/ l_m Om) 2.0)))
(t_2 (* (* 2.0 n) U))
(t_3 (* t_2 (+ (- t (* 2.0 (/ (* l_m l_m) Om))) (* t_1 (- U* U))))))
(if (<= t_3 0.0)
(sqrt (* (* 2.0 n) (* U (- t (* 2.0 (/ (pow l_m 2.0) Om))))))
(if (<= t_3 INFINITY)
(sqrt (* t_2 (- (- t (* 2.0 (* l_m (/ l_m Om)))) (* t_1 (- U U*)))))
(sqrt (* t_2 (* t_1 U*)))))))l_m = fabs(l);
double code(double n, double U, double t, double l_m, double Om, double U_42_) {
double t_1 = n * pow((l_m / Om), 2.0);
double t_2 = (2.0 * n) * U;
double t_3 = t_2 * ((t - (2.0 * ((l_m * l_m) / Om))) + (t_1 * (U_42_ - U)));
double tmp;
if (t_3 <= 0.0) {
tmp = sqrt(((2.0 * n) * (U * (t - (2.0 * (pow(l_m, 2.0) / Om))))));
} else if (t_3 <= ((double) INFINITY)) {
tmp = sqrt((t_2 * ((t - (2.0 * (l_m * (l_m / Om)))) - (t_1 * (U - U_42_)))));
} else {
tmp = sqrt((t_2 * (t_1 * U_42_)));
}
return tmp;
}
l_m = Math.abs(l);
public static double code(double n, double U, double t, double l_m, double Om, double U_42_) {
double t_1 = n * Math.pow((l_m / Om), 2.0);
double t_2 = (2.0 * n) * U;
double t_3 = t_2 * ((t - (2.0 * ((l_m * l_m) / Om))) + (t_1 * (U_42_ - U)));
double tmp;
if (t_3 <= 0.0) {
tmp = Math.sqrt(((2.0 * n) * (U * (t - (2.0 * (Math.pow(l_m, 2.0) / Om))))));
} else if (t_3 <= Double.POSITIVE_INFINITY) {
tmp = Math.sqrt((t_2 * ((t - (2.0 * (l_m * (l_m / Om)))) - (t_1 * (U - U_42_)))));
} else {
tmp = Math.sqrt((t_2 * (t_1 * U_42_)));
}
return tmp;
}
l_m = math.fabs(l) def code(n, U, t, l_m, Om, U_42_): t_1 = n * math.pow((l_m / Om), 2.0) t_2 = (2.0 * n) * U t_3 = t_2 * ((t - (2.0 * ((l_m * l_m) / Om))) + (t_1 * (U_42_ - U))) tmp = 0 if t_3 <= 0.0: tmp = math.sqrt(((2.0 * n) * (U * (t - (2.0 * (math.pow(l_m, 2.0) / Om)))))) elif t_3 <= math.inf: tmp = math.sqrt((t_2 * ((t - (2.0 * (l_m * (l_m / Om)))) - (t_1 * (U - U_42_))))) else: tmp = math.sqrt((t_2 * (t_1 * U_42_))) return tmp
l_m = abs(l) function code(n, U, t, l_m, Om, U_42_) t_1 = Float64(n * (Float64(l_m / Om) ^ 2.0)) t_2 = Float64(Float64(2.0 * n) * U) t_3 = Float64(t_2 * Float64(Float64(t - Float64(2.0 * Float64(Float64(l_m * l_m) / Om))) + Float64(t_1 * Float64(U_42_ - U)))) tmp = 0.0 if (t_3 <= 0.0) tmp = sqrt(Float64(Float64(2.0 * n) * Float64(U * Float64(t - Float64(2.0 * Float64((l_m ^ 2.0) / Om)))))); elseif (t_3 <= Inf) tmp = sqrt(Float64(t_2 * Float64(Float64(t - Float64(2.0 * Float64(l_m * Float64(l_m / Om)))) - Float64(t_1 * Float64(U - U_42_))))); else tmp = sqrt(Float64(t_2 * Float64(t_1 * U_42_))); end return tmp end
l_m = abs(l); function tmp_2 = code(n, U, t, l_m, Om, U_42_) t_1 = n * ((l_m / Om) ^ 2.0); t_2 = (2.0 * n) * U; t_3 = t_2 * ((t - (2.0 * ((l_m * l_m) / Om))) + (t_1 * (U_42_ - U))); tmp = 0.0; if (t_3 <= 0.0) tmp = sqrt(((2.0 * n) * (U * (t - (2.0 * ((l_m ^ 2.0) / Om)))))); elseif (t_3 <= Inf) tmp = sqrt((t_2 * ((t - (2.0 * (l_m * (l_m / Om)))) - (t_1 * (U - U_42_))))); else tmp = sqrt((t_2 * (t_1 * U_42_))); end tmp_2 = tmp; end
l_m = N[Abs[l], $MachinePrecision]
code[n_, U_, t_, l$95$m_, Om_, U$42$_] := Block[{t$95$1 = N[(n * N[Power[N[(l$95$m / Om), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(2.0 * n), $MachinePrecision] * U), $MachinePrecision]}, Block[{t$95$3 = N[(t$95$2 * N[(N[(t - N[(2.0 * N[(N[(l$95$m * l$95$m), $MachinePrecision] / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(t$95$1 * N[(U$42$ - U), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$3, 0.0], N[Sqrt[N[(N[(2.0 * n), $MachinePrecision] * N[(U * N[(t - N[(2.0 * N[(N[Power[l$95$m, 2.0], $MachinePrecision] / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], If[LessEqual[t$95$3, Infinity], N[Sqrt[N[(t$95$2 * N[(N[(t - N[(2.0 * N[(l$95$m * N[(l$95$m / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(t$95$1 * N[(U - U$42$), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], N[Sqrt[N[(t$95$2 * N[(t$95$1 * U$42$), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]]]]]]
\begin{array}{l}
l_m = \left|\ell\right|
\\
\begin{array}{l}
t_1 := n \cdot {\left(\frac{l\_m}{Om}\right)}^{2}\\
t_2 := \left(2 \cdot n\right) \cdot U\\
t_3 := t\_2 \cdot \left(\left(t - 2 \cdot \frac{l\_m \cdot l\_m}{Om}\right) + t\_1 \cdot \left(U* - U\right)\right)\\
\mathbf{if}\;t\_3 \leq 0:\\
\;\;\;\;\sqrt{\left(2 \cdot n\right) \cdot \left(U \cdot \left(t - 2 \cdot \frac{{l\_m}^{2}}{Om}\right)\right)}\\
\mathbf{elif}\;t\_3 \leq \infty:\\
\;\;\;\;\sqrt{t\_2 \cdot \left(\left(t - 2 \cdot \left(l\_m \cdot \frac{l\_m}{Om}\right)\right) - t\_1 \cdot \left(U - U*\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;\sqrt{t\_2 \cdot \left(t\_1 \cdot U*\right)}\\
\end{array}
\end{array}
if (*.f64 (*.f64 (*.f64 #s(literal 2 binary64) n) U) (-.f64 (-.f64 t (*.f64 #s(literal 2 binary64) (/.f64 (*.f64 l l) Om))) (*.f64 (*.f64 n (pow.f64 (/.f64 l Om) #s(literal 2 binary64))) (-.f64 U U*)))) < 0.0Initial program 8.0%
Simplified35.5%
Taylor expanded in Om around inf 39.2%
if 0.0 < (*.f64 (*.f64 (*.f64 #s(literal 2 binary64) n) U) (-.f64 (-.f64 t (*.f64 #s(literal 2 binary64) (/.f64 (*.f64 l l) Om))) (*.f64 (*.f64 n (pow.f64 (/.f64 l Om) #s(literal 2 binary64))) (-.f64 U U*)))) < +inf.0Initial program 64.9%
associate-*r/70.6%
*-commutative70.6%
Applied egg-rr70.6%
if +inf.0 < (*.f64 (*.f64 (*.f64 #s(literal 2 binary64) n) U) (-.f64 (-.f64 t (*.f64 #s(literal 2 binary64) (/.f64 (*.f64 l l) Om))) (*.f64 (*.f64 n (pow.f64 (/.f64 l Om) #s(literal 2 binary64))) (-.f64 U U*)))) Initial program 0.0%
associate-*r/6.2%
*-commutative6.2%
Applied egg-rr6.2%
Taylor expanded in U* around inf 39.4%
associate-/l*39.4%
*-commutative39.4%
associate-/l*39.4%
unpow239.4%
unpow239.4%
times-frac45.7%
unpow245.7%
Simplified45.7%
Final simplification63.8%
l_m = (fabs.f64 l)
(FPCore (n U t l_m Om U*)
:precision binary64
(let* ((t_1 (sqrt (* U U*))))
(if (<= l_m 1.18e-92)
(sqrt (fabs (* 2.0 (* t (* n U)))))
(if (<= l_m 9.8e+143)
(sqrt (fabs (* 2.0 (* U (* n t)))))
(if (<= l_m 2e+205)
(* t_1 (* (/ (* n (sqrt 2.0)) Om) (- l_m)))
(* l_m (* n (* (/ (sqrt 2.0) Om) t_1))))))))l_m = fabs(l);
double code(double n, double U, double t, double l_m, double Om, double U_42_) {
double t_1 = sqrt((U * U_42_));
double tmp;
if (l_m <= 1.18e-92) {
tmp = sqrt(fabs((2.0 * (t * (n * U)))));
} else if (l_m <= 9.8e+143) {
tmp = sqrt(fabs((2.0 * (U * (n * t)))));
} else if (l_m <= 2e+205) {
tmp = t_1 * (((n * sqrt(2.0)) / Om) * -l_m);
} else {
tmp = l_m * (n * ((sqrt(2.0) / Om) * t_1));
}
return tmp;
}
l_m = abs(l)
real(8) function code(n, u, t, l_m, om, u_42)
real(8), intent (in) :: n
real(8), intent (in) :: u
real(8), intent (in) :: t
real(8), intent (in) :: l_m
real(8), intent (in) :: om
real(8), intent (in) :: u_42
real(8) :: t_1
real(8) :: tmp
t_1 = sqrt((u * u_42))
if (l_m <= 1.18d-92) then
tmp = sqrt(abs((2.0d0 * (t * (n * u)))))
else if (l_m <= 9.8d+143) then
tmp = sqrt(abs((2.0d0 * (u * (n * t)))))
else if (l_m <= 2d+205) then
tmp = t_1 * (((n * sqrt(2.0d0)) / om) * -l_m)
else
tmp = l_m * (n * ((sqrt(2.0d0) / om) * t_1))
end if
code = tmp
end function
l_m = Math.abs(l);
public static double code(double n, double U, double t, double l_m, double Om, double U_42_) {
double t_1 = Math.sqrt((U * U_42_));
double tmp;
if (l_m <= 1.18e-92) {
tmp = Math.sqrt(Math.abs((2.0 * (t * (n * U)))));
} else if (l_m <= 9.8e+143) {
tmp = Math.sqrt(Math.abs((2.0 * (U * (n * t)))));
} else if (l_m <= 2e+205) {
tmp = t_1 * (((n * Math.sqrt(2.0)) / Om) * -l_m);
} else {
tmp = l_m * (n * ((Math.sqrt(2.0) / Om) * t_1));
}
return tmp;
}
l_m = math.fabs(l) def code(n, U, t, l_m, Om, U_42_): t_1 = math.sqrt((U * U_42_)) tmp = 0 if l_m <= 1.18e-92: tmp = math.sqrt(math.fabs((2.0 * (t * (n * U))))) elif l_m <= 9.8e+143: tmp = math.sqrt(math.fabs((2.0 * (U * (n * t))))) elif l_m <= 2e+205: tmp = t_1 * (((n * math.sqrt(2.0)) / Om) * -l_m) else: tmp = l_m * (n * ((math.sqrt(2.0) / Om) * t_1)) return tmp
l_m = abs(l) function code(n, U, t, l_m, Om, U_42_) t_1 = sqrt(Float64(U * U_42_)) tmp = 0.0 if (l_m <= 1.18e-92) tmp = sqrt(abs(Float64(2.0 * Float64(t * Float64(n * U))))); elseif (l_m <= 9.8e+143) tmp = sqrt(abs(Float64(2.0 * Float64(U * Float64(n * t))))); elseif (l_m <= 2e+205) tmp = Float64(t_1 * Float64(Float64(Float64(n * sqrt(2.0)) / Om) * Float64(-l_m))); else tmp = Float64(l_m * Float64(n * Float64(Float64(sqrt(2.0) / Om) * t_1))); end return tmp end
l_m = abs(l); function tmp_2 = code(n, U, t, l_m, Om, U_42_) t_1 = sqrt((U * U_42_)); tmp = 0.0; if (l_m <= 1.18e-92) tmp = sqrt(abs((2.0 * (t * (n * U))))); elseif (l_m <= 9.8e+143) tmp = sqrt(abs((2.0 * (U * (n * t))))); elseif (l_m <= 2e+205) tmp = t_1 * (((n * sqrt(2.0)) / Om) * -l_m); else tmp = l_m * (n * ((sqrt(2.0) / Om) * t_1)); end tmp_2 = tmp; end
l_m = N[Abs[l], $MachinePrecision]
code[n_, U_, t_, l$95$m_, Om_, U$42$_] := Block[{t$95$1 = N[Sqrt[N[(U * U$42$), $MachinePrecision]], $MachinePrecision]}, If[LessEqual[l$95$m, 1.18e-92], N[Sqrt[N[Abs[N[(2.0 * N[(t * N[(n * U), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]], $MachinePrecision], If[LessEqual[l$95$m, 9.8e+143], N[Sqrt[N[Abs[N[(2.0 * N[(U * N[(n * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]], $MachinePrecision], If[LessEqual[l$95$m, 2e+205], N[(t$95$1 * N[(N[(N[(n * N[Sqrt[2.0], $MachinePrecision]), $MachinePrecision] / Om), $MachinePrecision] * (-l$95$m)), $MachinePrecision]), $MachinePrecision], N[(l$95$m * N[(n * N[(N[(N[Sqrt[2.0], $MachinePrecision] / Om), $MachinePrecision] * t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
l_m = \left|\ell\right|
\\
\begin{array}{l}
t_1 := \sqrt{U \cdot U*}\\
\mathbf{if}\;l\_m \leq 1.18 \cdot 10^{-92}:\\
\;\;\;\;\sqrt{\left|2 \cdot \left(t \cdot \left(n \cdot U\right)\right)\right|}\\
\mathbf{elif}\;l\_m \leq 9.8 \cdot 10^{+143}:\\
\;\;\;\;\sqrt{\left|2 \cdot \left(U \cdot \left(n \cdot t\right)\right)\right|}\\
\mathbf{elif}\;l\_m \leq 2 \cdot 10^{+205}:\\
\;\;\;\;t\_1 \cdot \left(\frac{n \cdot \sqrt{2}}{Om} \cdot \left(-l\_m\right)\right)\\
\mathbf{else}:\\
\;\;\;\;l\_m \cdot \left(n \cdot \left(\frac{\sqrt{2}}{Om} \cdot t\_1\right)\right)\\
\end{array}
\end{array}
if l < 1.18e-92Initial program 54.6%
Simplified60.0%
Taylor expanded in l around 0 43.7%
add-sqr-sqrt43.7%
pow1/243.7%
pow1/244.8%
pow-prod-down30.2%
pow230.2%
associate-*r*30.2%
Applied egg-rr30.2%
unpow1/230.2%
unpow230.2%
rem-sqrt-square45.2%
associate-*l*45.2%
associate-*r*46.5%
*-commutative46.5%
Simplified46.5%
if 1.18e-92 < l < 9.79999999999999971e143Initial program 51.9%
Simplified47.6%
Taylor expanded in l around 0 33.5%
add-sqr-sqrt33.5%
pow1/233.5%
pow1/233.7%
pow-prod-down24.5%
pow224.5%
associate-*r*24.5%
Applied egg-rr24.5%
unpow1/224.5%
unpow224.5%
rem-sqrt-square34.7%
associate-*r*34.7%
Simplified34.7%
if 9.79999999999999971e143 < l < 2.00000000000000003e205Initial program 25.2%
Simplified40.3%
Taylor expanded in U* around inf 31.5%
Taylor expanded in n around -inf 41.9%
mul-1-neg41.9%
associate-/l*41.7%
Simplified41.7%
if 2.00000000000000003e205 < l Initial program 18.6%
div-inv18.6%
pow218.6%
Applied egg-rr18.6%
Taylor expanded in U* around inf 29.7%
associate-/l*29.3%
associate-*r/29.3%
associate-*r*29.2%
associate-*l*29.2%
Simplified29.2%
Final simplification42.9%
l_m = (fabs.f64 l)
(FPCore (n U t l_m Om U*)
:precision binary64
(let* ((t_1 (sqrt (* U U*))))
(if (<= l_m 1e-92)
(sqrt (fabs (* 2.0 (* t (* n U)))))
(if (<= l_m 2.05e+143)
(sqrt (fabs (* 2.0 (* U (* n t)))))
(if (<= l_m 2.4e+205)
(* t_1 (/ (* l_m (* n (sqrt 2.0))) (- Om)))
(* l_m (* n (* (/ (sqrt 2.0) Om) t_1))))))))l_m = fabs(l);
double code(double n, double U, double t, double l_m, double Om, double U_42_) {
double t_1 = sqrt((U * U_42_));
double tmp;
if (l_m <= 1e-92) {
tmp = sqrt(fabs((2.0 * (t * (n * U)))));
} else if (l_m <= 2.05e+143) {
tmp = sqrt(fabs((2.0 * (U * (n * t)))));
} else if (l_m <= 2.4e+205) {
tmp = t_1 * ((l_m * (n * sqrt(2.0))) / -Om);
} else {
tmp = l_m * (n * ((sqrt(2.0) / Om) * t_1));
}
return tmp;
}
l_m = abs(l)
real(8) function code(n, u, t, l_m, om, u_42)
real(8), intent (in) :: n
real(8), intent (in) :: u
real(8), intent (in) :: t
real(8), intent (in) :: l_m
real(8), intent (in) :: om
real(8), intent (in) :: u_42
real(8) :: t_1
real(8) :: tmp
t_1 = sqrt((u * u_42))
if (l_m <= 1d-92) then
tmp = sqrt(abs((2.0d0 * (t * (n * u)))))
else if (l_m <= 2.05d+143) then
tmp = sqrt(abs((2.0d0 * (u * (n * t)))))
else if (l_m <= 2.4d+205) then
tmp = t_1 * ((l_m * (n * sqrt(2.0d0))) / -om)
else
tmp = l_m * (n * ((sqrt(2.0d0) / om) * t_1))
end if
code = tmp
end function
l_m = Math.abs(l);
public static double code(double n, double U, double t, double l_m, double Om, double U_42_) {
double t_1 = Math.sqrt((U * U_42_));
double tmp;
if (l_m <= 1e-92) {
tmp = Math.sqrt(Math.abs((2.0 * (t * (n * U)))));
} else if (l_m <= 2.05e+143) {
tmp = Math.sqrt(Math.abs((2.0 * (U * (n * t)))));
} else if (l_m <= 2.4e+205) {
tmp = t_1 * ((l_m * (n * Math.sqrt(2.0))) / -Om);
} else {
tmp = l_m * (n * ((Math.sqrt(2.0) / Om) * t_1));
}
return tmp;
}
l_m = math.fabs(l) def code(n, U, t, l_m, Om, U_42_): t_1 = math.sqrt((U * U_42_)) tmp = 0 if l_m <= 1e-92: tmp = math.sqrt(math.fabs((2.0 * (t * (n * U))))) elif l_m <= 2.05e+143: tmp = math.sqrt(math.fabs((2.0 * (U * (n * t))))) elif l_m <= 2.4e+205: tmp = t_1 * ((l_m * (n * math.sqrt(2.0))) / -Om) else: tmp = l_m * (n * ((math.sqrt(2.0) / Om) * t_1)) return tmp
l_m = abs(l) function code(n, U, t, l_m, Om, U_42_) t_1 = sqrt(Float64(U * U_42_)) tmp = 0.0 if (l_m <= 1e-92) tmp = sqrt(abs(Float64(2.0 * Float64(t * Float64(n * U))))); elseif (l_m <= 2.05e+143) tmp = sqrt(abs(Float64(2.0 * Float64(U * Float64(n * t))))); elseif (l_m <= 2.4e+205) tmp = Float64(t_1 * Float64(Float64(l_m * Float64(n * sqrt(2.0))) / Float64(-Om))); else tmp = Float64(l_m * Float64(n * Float64(Float64(sqrt(2.0) / Om) * t_1))); end return tmp end
l_m = abs(l); function tmp_2 = code(n, U, t, l_m, Om, U_42_) t_1 = sqrt((U * U_42_)); tmp = 0.0; if (l_m <= 1e-92) tmp = sqrt(abs((2.0 * (t * (n * U))))); elseif (l_m <= 2.05e+143) tmp = sqrt(abs((2.0 * (U * (n * t))))); elseif (l_m <= 2.4e+205) tmp = t_1 * ((l_m * (n * sqrt(2.0))) / -Om); else tmp = l_m * (n * ((sqrt(2.0) / Om) * t_1)); end tmp_2 = tmp; end
l_m = N[Abs[l], $MachinePrecision]
code[n_, U_, t_, l$95$m_, Om_, U$42$_] := Block[{t$95$1 = N[Sqrt[N[(U * U$42$), $MachinePrecision]], $MachinePrecision]}, If[LessEqual[l$95$m, 1e-92], N[Sqrt[N[Abs[N[(2.0 * N[(t * N[(n * U), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]], $MachinePrecision], If[LessEqual[l$95$m, 2.05e+143], N[Sqrt[N[Abs[N[(2.0 * N[(U * N[(n * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]], $MachinePrecision], If[LessEqual[l$95$m, 2.4e+205], N[(t$95$1 * N[(N[(l$95$m * N[(n * N[Sqrt[2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / (-Om)), $MachinePrecision]), $MachinePrecision], N[(l$95$m * N[(n * N[(N[(N[Sqrt[2.0], $MachinePrecision] / Om), $MachinePrecision] * t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
l_m = \left|\ell\right|
\\
\begin{array}{l}
t_1 := \sqrt{U \cdot U*}\\
\mathbf{if}\;l\_m \leq 10^{-92}:\\
\;\;\;\;\sqrt{\left|2 \cdot \left(t \cdot \left(n \cdot U\right)\right)\right|}\\
\mathbf{elif}\;l\_m \leq 2.05 \cdot 10^{+143}:\\
\;\;\;\;\sqrt{\left|2 \cdot \left(U \cdot \left(n \cdot t\right)\right)\right|}\\
\mathbf{elif}\;l\_m \leq 2.4 \cdot 10^{+205}:\\
\;\;\;\;t\_1 \cdot \frac{l\_m \cdot \left(n \cdot \sqrt{2}\right)}{-Om}\\
\mathbf{else}:\\
\;\;\;\;l\_m \cdot \left(n \cdot \left(\frac{\sqrt{2}}{Om} \cdot t\_1\right)\right)\\
\end{array}
\end{array}
if l < 9.99999999999999988e-93Initial program 54.6%
Simplified60.0%
Taylor expanded in l around 0 43.7%
add-sqr-sqrt43.7%
pow1/243.7%
pow1/244.8%
pow-prod-down30.2%
pow230.2%
associate-*r*30.2%
Applied egg-rr30.2%
unpow1/230.2%
unpow230.2%
rem-sqrt-square45.2%
associate-*l*45.2%
associate-*r*46.5%
*-commutative46.5%
Simplified46.5%
if 9.99999999999999988e-93 < l < 2.0500000000000002e143Initial program 51.9%
Simplified47.6%
Taylor expanded in l around 0 33.5%
add-sqr-sqrt33.5%
pow1/233.5%
pow1/233.7%
pow-prod-down24.5%
pow224.5%
associate-*r*24.5%
Applied egg-rr24.5%
unpow1/224.5%
unpow224.5%
rem-sqrt-square34.7%
associate-*r*34.7%
Simplified34.7%
if 2.0500000000000002e143 < l < 2.39999999999999986e205Initial program 25.2%
Simplified40.3%
Taylor expanded in U* around inf 31.5%
Taylor expanded in n around -inf 41.9%
mul-1-neg41.9%
Simplified41.9%
if 2.39999999999999986e205 < l Initial program 18.6%
div-inv18.6%
pow218.6%
Applied egg-rr18.6%
Taylor expanded in U* around inf 29.7%
associate-/l*29.3%
associate-*r/29.3%
associate-*r*29.2%
associate-*l*29.2%
Simplified29.2%
Final simplification42.9%
l_m = (fabs.f64 l)
(FPCore (n U t l_m Om U*)
:precision binary64
(if (<= l_m 1.32e-92)
(sqrt (fabs (* 2.0 (* t (* n U)))))
(if (<= l_m 5.5e+95)
(sqrt (fabs (* 2.0 (* U (* n t)))))
(if (<= l_m 4.4e+156)
(sqrt (* (* U -2.0) (* 2.0 (* (pow l_m 2.0) (/ n Om)))))
(* l_m (* n (* (/ (sqrt 2.0) Om) (sqrt (* U U*)))))))))l_m = fabs(l);
double code(double n, double U, double t, double l_m, double Om, double U_42_) {
double tmp;
if (l_m <= 1.32e-92) {
tmp = sqrt(fabs((2.0 * (t * (n * U)))));
} else if (l_m <= 5.5e+95) {
tmp = sqrt(fabs((2.0 * (U * (n * t)))));
} else if (l_m <= 4.4e+156) {
tmp = sqrt(((U * -2.0) * (2.0 * (pow(l_m, 2.0) * (n / Om)))));
} else {
tmp = l_m * (n * ((sqrt(2.0) / Om) * sqrt((U * U_42_))));
}
return tmp;
}
l_m = abs(l)
real(8) function code(n, u, t, l_m, om, u_42)
real(8), intent (in) :: n
real(8), intent (in) :: u
real(8), intent (in) :: t
real(8), intent (in) :: l_m
real(8), intent (in) :: om
real(8), intent (in) :: u_42
real(8) :: tmp
if (l_m <= 1.32d-92) then
tmp = sqrt(abs((2.0d0 * (t * (n * u)))))
else if (l_m <= 5.5d+95) then
tmp = sqrt(abs((2.0d0 * (u * (n * t)))))
else if (l_m <= 4.4d+156) then
tmp = sqrt(((u * (-2.0d0)) * (2.0d0 * ((l_m ** 2.0d0) * (n / om)))))
else
tmp = l_m * (n * ((sqrt(2.0d0) / om) * sqrt((u * u_42))))
end if
code = tmp
end function
l_m = Math.abs(l);
public static double code(double n, double U, double t, double l_m, double Om, double U_42_) {
double tmp;
if (l_m <= 1.32e-92) {
tmp = Math.sqrt(Math.abs((2.0 * (t * (n * U)))));
} else if (l_m <= 5.5e+95) {
tmp = Math.sqrt(Math.abs((2.0 * (U * (n * t)))));
} else if (l_m <= 4.4e+156) {
tmp = Math.sqrt(((U * -2.0) * (2.0 * (Math.pow(l_m, 2.0) * (n / Om)))));
} else {
tmp = l_m * (n * ((Math.sqrt(2.0) / Om) * Math.sqrt((U * U_42_))));
}
return tmp;
}
l_m = math.fabs(l) def code(n, U, t, l_m, Om, U_42_): tmp = 0 if l_m <= 1.32e-92: tmp = math.sqrt(math.fabs((2.0 * (t * (n * U))))) elif l_m <= 5.5e+95: tmp = math.sqrt(math.fabs((2.0 * (U * (n * t))))) elif l_m <= 4.4e+156: tmp = math.sqrt(((U * -2.0) * (2.0 * (math.pow(l_m, 2.0) * (n / Om))))) else: tmp = l_m * (n * ((math.sqrt(2.0) / Om) * math.sqrt((U * U_42_)))) return tmp
l_m = abs(l) function code(n, U, t, l_m, Om, U_42_) tmp = 0.0 if (l_m <= 1.32e-92) tmp = sqrt(abs(Float64(2.0 * Float64(t * Float64(n * U))))); elseif (l_m <= 5.5e+95) tmp = sqrt(abs(Float64(2.0 * Float64(U * Float64(n * t))))); elseif (l_m <= 4.4e+156) tmp = sqrt(Float64(Float64(U * -2.0) * Float64(2.0 * Float64((l_m ^ 2.0) * Float64(n / Om))))); else tmp = Float64(l_m * Float64(n * Float64(Float64(sqrt(2.0) / Om) * sqrt(Float64(U * U_42_))))); end return tmp end
l_m = abs(l); function tmp_2 = code(n, U, t, l_m, Om, U_42_) tmp = 0.0; if (l_m <= 1.32e-92) tmp = sqrt(abs((2.0 * (t * (n * U))))); elseif (l_m <= 5.5e+95) tmp = sqrt(abs((2.0 * (U * (n * t))))); elseif (l_m <= 4.4e+156) tmp = sqrt(((U * -2.0) * (2.0 * ((l_m ^ 2.0) * (n / Om))))); else tmp = l_m * (n * ((sqrt(2.0) / Om) * sqrt((U * U_42_)))); end tmp_2 = tmp; end
l_m = N[Abs[l], $MachinePrecision] code[n_, U_, t_, l$95$m_, Om_, U$42$_] := If[LessEqual[l$95$m, 1.32e-92], N[Sqrt[N[Abs[N[(2.0 * N[(t * N[(n * U), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]], $MachinePrecision], If[LessEqual[l$95$m, 5.5e+95], N[Sqrt[N[Abs[N[(2.0 * N[(U * N[(n * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]], $MachinePrecision], If[LessEqual[l$95$m, 4.4e+156], N[Sqrt[N[(N[(U * -2.0), $MachinePrecision] * N[(2.0 * N[(N[Power[l$95$m, 2.0], $MachinePrecision] * N[(n / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], N[(l$95$m * N[(n * N[(N[(N[Sqrt[2.0], $MachinePrecision] / Om), $MachinePrecision] * N[Sqrt[N[(U * U$42$), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
l_m = \left|\ell\right|
\\
\begin{array}{l}
\mathbf{if}\;l\_m \leq 1.32 \cdot 10^{-92}:\\
\;\;\;\;\sqrt{\left|2 \cdot \left(t \cdot \left(n \cdot U\right)\right)\right|}\\
\mathbf{elif}\;l\_m \leq 5.5 \cdot 10^{+95}:\\
\;\;\;\;\sqrt{\left|2 \cdot \left(U \cdot \left(n \cdot t\right)\right)\right|}\\
\mathbf{elif}\;l\_m \leq 4.4 \cdot 10^{+156}:\\
\;\;\;\;\sqrt{\left(U \cdot -2\right) \cdot \left(2 \cdot \left({l\_m}^{2} \cdot \frac{n}{Om}\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;l\_m \cdot \left(n \cdot \left(\frac{\sqrt{2}}{Om} \cdot \sqrt{U \cdot U*}\right)\right)\\
\end{array}
\end{array}
if l < 1.3200000000000001e-92Initial program 54.6%
Simplified60.0%
Taylor expanded in l around 0 43.7%
add-sqr-sqrt43.7%
pow1/243.7%
pow1/244.8%
pow-prod-down30.2%
pow230.2%
associate-*r*30.2%
Applied egg-rr30.2%
unpow1/230.2%
unpow230.2%
rem-sqrt-square45.2%
associate-*l*45.2%
associate-*r*46.5%
*-commutative46.5%
Simplified46.5%
if 1.3200000000000001e-92 < l < 5.4999999999999997e95Initial program 53.8%
Simplified51.0%
Taylor expanded in l around 0 36.6%
add-sqr-sqrt36.6%
pow1/236.6%
pow1/236.8%
pow-prod-down27.7%
pow227.7%
associate-*r*27.7%
Applied egg-rr27.7%
unpow1/227.7%
unpow227.7%
rem-sqrt-square37.8%
associate-*r*37.8%
Simplified37.8%
if 5.4999999999999997e95 < l < 4.40000000000000008e156Initial program 54.3%
Simplified46.9%
Taylor expanded in l around inf 60.4%
associate-*r*60.4%
associate-*r/60.4%
metadata-eval60.4%
associate-/l*61.1%
Simplified61.1%
Taylor expanded in n around 0 46.1%
associate-/l*53.4%
Simplified53.4%
if 4.40000000000000008e156 < l Initial program 13.1%
div-inv13.1%
pow213.1%
Applied egg-rr13.1%
Taylor expanded in U* around inf 20.3%
associate-/l*20.1%
associate-*r/20.1%
associate-*r*20.1%
associate-*l*20.0%
Simplified20.0%
Final simplification42.8%
l_m = (fabs.f64 l)
(FPCore (n U t l_m Om U*)
:precision binary64
(if (<= l_m 1.3e-92)
(sqrt (fabs (* 2.0 (* t (* n U)))))
(if (<= l_m 1.3e+94)
(sqrt (fabs (* 2.0 (* U (* n t)))))
(if (<= l_m 6.2e+156)
(sqrt (* (* U -2.0) (* 2.0 (/ (* n (pow l_m 2.0)) Om))))
(* l_m (* n (* (/ (sqrt 2.0) Om) (sqrt (* U U*)))))))))l_m = fabs(l);
double code(double n, double U, double t, double l_m, double Om, double U_42_) {
double tmp;
if (l_m <= 1.3e-92) {
tmp = sqrt(fabs((2.0 * (t * (n * U)))));
} else if (l_m <= 1.3e+94) {
tmp = sqrt(fabs((2.0 * (U * (n * t)))));
} else if (l_m <= 6.2e+156) {
tmp = sqrt(((U * -2.0) * (2.0 * ((n * pow(l_m, 2.0)) / Om))));
} else {
tmp = l_m * (n * ((sqrt(2.0) / Om) * sqrt((U * U_42_))));
}
return tmp;
}
l_m = abs(l)
real(8) function code(n, u, t, l_m, om, u_42)
real(8), intent (in) :: n
real(8), intent (in) :: u
real(8), intent (in) :: t
real(8), intent (in) :: l_m
real(8), intent (in) :: om
real(8), intent (in) :: u_42
real(8) :: tmp
if (l_m <= 1.3d-92) then
tmp = sqrt(abs((2.0d0 * (t * (n * u)))))
else if (l_m <= 1.3d+94) then
tmp = sqrt(abs((2.0d0 * (u * (n * t)))))
else if (l_m <= 6.2d+156) then
tmp = sqrt(((u * (-2.0d0)) * (2.0d0 * ((n * (l_m ** 2.0d0)) / om))))
else
tmp = l_m * (n * ((sqrt(2.0d0) / om) * sqrt((u * u_42))))
end if
code = tmp
end function
l_m = Math.abs(l);
public static double code(double n, double U, double t, double l_m, double Om, double U_42_) {
double tmp;
if (l_m <= 1.3e-92) {
tmp = Math.sqrt(Math.abs((2.0 * (t * (n * U)))));
} else if (l_m <= 1.3e+94) {
tmp = Math.sqrt(Math.abs((2.0 * (U * (n * t)))));
} else if (l_m <= 6.2e+156) {
tmp = Math.sqrt(((U * -2.0) * (2.0 * ((n * Math.pow(l_m, 2.0)) / Om))));
} else {
tmp = l_m * (n * ((Math.sqrt(2.0) / Om) * Math.sqrt((U * U_42_))));
}
return tmp;
}
l_m = math.fabs(l) def code(n, U, t, l_m, Om, U_42_): tmp = 0 if l_m <= 1.3e-92: tmp = math.sqrt(math.fabs((2.0 * (t * (n * U))))) elif l_m <= 1.3e+94: tmp = math.sqrt(math.fabs((2.0 * (U * (n * t))))) elif l_m <= 6.2e+156: tmp = math.sqrt(((U * -2.0) * (2.0 * ((n * math.pow(l_m, 2.0)) / Om)))) else: tmp = l_m * (n * ((math.sqrt(2.0) / Om) * math.sqrt((U * U_42_)))) return tmp
l_m = abs(l) function code(n, U, t, l_m, Om, U_42_) tmp = 0.0 if (l_m <= 1.3e-92) tmp = sqrt(abs(Float64(2.0 * Float64(t * Float64(n * U))))); elseif (l_m <= 1.3e+94) tmp = sqrt(abs(Float64(2.0 * Float64(U * Float64(n * t))))); elseif (l_m <= 6.2e+156) tmp = sqrt(Float64(Float64(U * -2.0) * Float64(2.0 * Float64(Float64(n * (l_m ^ 2.0)) / Om)))); else tmp = Float64(l_m * Float64(n * Float64(Float64(sqrt(2.0) / Om) * sqrt(Float64(U * U_42_))))); end return tmp end
l_m = abs(l); function tmp_2 = code(n, U, t, l_m, Om, U_42_) tmp = 0.0; if (l_m <= 1.3e-92) tmp = sqrt(abs((2.0 * (t * (n * U))))); elseif (l_m <= 1.3e+94) tmp = sqrt(abs((2.0 * (U * (n * t))))); elseif (l_m <= 6.2e+156) tmp = sqrt(((U * -2.0) * (2.0 * ((n * (l_m ^ 2.0)) / Om)))); else tmp = l_m * (n * ((sqrt(2.0) / Om) * sqrt((U * U_42_)))); end tmp_2 = tmp; end
l_m = N[Abs[l], $MachinePrecision] code[n_, U_, t_, l$95$m_, Om_, U$42$_] := If[LessEqual[l$95$m, 1.3e-92], N[Sqrt[N[Abs[N[(2.0 * N[(t * N[(n * U), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]], $MachinePrecision], If[LessEqual[l$95$m, 1.3e+94], N[Sqrt[N[Abs[N[(2.0 * N[(U * N[(n * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]], $MachinePrecision], If[LessEqual[l$95$m, 6.2e+156], N[Sqrt[N[(N[(U * -2.0), $MachinePrecision] * N[(2.0 * N[(N[(n * N[Power[l$95$m, 2.0], $MachinePrecision]), $MachinePrecision] / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], N[(l$95$m * N[(n * N[(N[(N[Sqrt[2.0], $MachinePrecision] / Om), $MachinePrecision] * N[Sqrt[N[(U * U$42$), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
l_m = \left|\ell\right|
\\
\begin{array}{l}
\mathbf{if}\;l\_m \leq 1.3 \cdot 10^{-92}:\\
\;\;\;\;\sqrt{\left|2 \cdot \left(t \cdot \left(n \cdot U\right)\right)\right|}\\
\mathbf{elif}\;l\_m \leq 1.3 \cdot 10^{+94}:\\
\;\;\;\;\sqrt{\left|2 \cdot \left(U \cdot \left(n \cdot t\right)\right)\right|}\\
\mathbf{elif}\;l\_m \leq 6.2 \cdot 10^{+156}:\\
\;\;\;\;\sqrt{\left(U \cdot -2\right) \cdot \left(2 \cdot \frac{n \cdot {l\_m}^{2}}{Om}\right)}\\
\mathbf{else}:\\
\;\;\;\;l\_m \cdot \left(n \cdot \left(\frac{\sqrt{2}}{Om} \cdot \sqrt{U \cdot U*}\right)\right)\\
\end{array}
\end{array}
if l < 1.3e-92Initial program 54.6%
Simplified60.0%
Taylor expanded in l around 0 43.7%
add-sqr-sqrt43.7%
pow1/243.7%
pow1/244.8%
pow-prod-down30.2%
pow230.2%
associate-*r*30.2%
Applied egg-rr30.2%
unpow1/230.2%
unpow230.2%
rem-sqrt-square45.2%
associate-*l*45.2%
associate-*r*46.5%
*-commutative46.5%
Simplified46.5%
if 1.3e-92 < l < 1.3e94Initial program 53.8%
Simplified51.0%
Taylor expanded in l around 0 36.6%
add-sqr-sqrt36.6%
pow1/236.6%
pow1/236.8%
pow-prod-down27.7%
pow227.7%
associate-*r*27.7%
Applied egg-rr27.7%
unpow1/227.7%
unpow227.7%
rem-sqrt-square37.8%
associate-*r*37.8%
Simplified37.8%
if 1.3e94 < l < 6.2000000000000004e156Initial program 54.3%
Simplified46.9%
Taylor expanded in l around inf 60.4%
associate-*r*60.4%
associate-*r/60.4%
metadata-eval60.4%
associate-/l*61.1%
Simplified61.1%
Taylor expanded in n around 0 46.1%
if 6.2000000000000004e156 < l Initial program 13.1%
div-inv13.1%
pow213.1%
Applied egg-rr13.1%
Taylor expanded in U* around inf 20.3%
associate-/l*20.1%
associate-*r/20.1%
associate-*r*20.1%
associate-*l*20.0%
Simplified20.0%
Final simplification42.4%
l_m = (fabs.f64 l)
(FPCore (n U t l_m Om U*)
:precision binary64
(sqrt
(*
(* 2.0 (* n U))
(+
t
(- (* (* n (pow (/ l_m Om) 2.0)) (- U* U)) (* 2.0 (* l_m (/ l_m Om))))))))l_m = fabs(l);
double code(double n, double U, double t, double l_m, double Om, double U_42_) {
return sqrt(((2.0 * (n * U)) * (t + (((n * pow((l_m / Om), 2.0)) * (U_42_ - U)) - (2.0 * (l_m * (l_m / Om)))))));
}
l_m = abs(l)
real(8) function code(n, u, t, l_m, om, u_42)
real(8), intent (in) :: n
real(8), intent (in) :: u
real(8), intent (in) :: t
real(8), intent (in) :: l_m
real(8), intent (in) :: om
real(8), intent (in) :: u_42
code = sqrt(((2.0d0 * (n * u)) * (t + (((n * ((l_m / om) ** 2.0d0)) * (u_42 - u)) - (2.0d0 * (l_m * (l_m / om)))))))
end function
l_m = Math.abs(l);
public static double code(double n, double U, double t, double l_m, double Om, double U_42_) {
return Math.sqrt(((2.0 * (n * U)) * (t + (((n * Math.pow((l_m / Om), 2.0)) * (U_42_ - U)) - (2.0 * (l_m * (l_m / Om)))))));
}
l_m = math.fabs(l) def code(n, U, t, l_m, Om, U_42_): return math.sqrt(((2.0 * (n * U)) * (t + (((n * math.pow((l_m / Om), 2.0)) * (U_42_ - U)) - (2.0 * (l_m * (l_m / Om)))))))
l_m = abs(l) function code(n, U, t, l_m, Om, U_42_) return sqrt(Float64(Float64(2.0 * Float64(n * U)) * Float64(t + Float64(Float64(Float64(n * (Float64(l_m / Om) ^ 2.0)) * Float64(U_42_ - U)) - Float64(2.0 * Float64(l_m * Float64(l_m / Om))))))) end
l_m = abs(l); function tmp = code(n, U, t, l_m, Om, U_42_) tmp = sqrt(((2.0 * (n * U)) * (t + (((n * ((l_m / Om) ^ 2.0)) * (U_42_ - U)) - (2.0 * (l_m * (l_m / Om))))))); end
l_m = N[Abs[l], $MachinePrecision] code[n_, U_, t_, l$95$m_, Om_, U$42$_] := N[Sqrt[N[(N[(2.0 * N[(n * U), $MachinePrecision]), $MachinePrecision] * N[(t + N[(N[(N[(n * N[Power[N[(l$95$m / Om), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision] * N[(U$42$ - U), $MachinePrecision]), $MachinePrecision] - N[(2.0 * N[(l$95$m * N[(l$95$m / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]
\begin{array}{l}
l_m = \left|\ell\right|
\\
\sqrt{\left(2 \cdot \left(n \cdot U\right)\right) \cdot \left(t + \left(\left(n \cdot {\left(\frac{l\_m}{Om}\right)}^{2}\right) \cdot \left(U* - U\right) - 2 \cdot \left(l\_m \cdot \frac{l\_m}{Om}\right)\right)\right)}
\end{array}
Initial program 50.1%
Simplified55.6%
Final simplification55.6%
l_m = (fabs.f64 l)
(FPCore (n U t l_m Om U*)
:precision binary64
(if (<= l_m 1.85e-70)
(sqrt (fabs (* 2.0 (* t (* n U)))))
(if (<= l_m 5.6e+156)
(sqrt (* 2.0 (* U (* n (- t (* 2.0 (/ (pow l_m 2.0) Om)))))))
(* l_m (* n (* (/ (sqrt 2.0) Om) (sqrt (* U U*))))))))l_m = fabs(l);
double code(double n, double U, double t, double l_m, double Om, double U_42_) {
double tmp;
if (l_m <= 1.85e-70) {
tmp = sqrt(fabs((2.0 * (t * (n * U)))));
} else if (l_m <= 5.6e+156) {
tmp = sqrt((2.0 * (U * (n * (t - (2.0 * (pow(l_m, 2.0) / Om)))))));
} else {
tmp = l_m * (n * ((sqrt(2.0) / Om) * sqrt((U * U_42_))));
}
return tmp;
}
l_m = abs(l)
real(8) function code(n, u, t, l_m, om, u_42)
real(8), intent (in) :: n
real(8), intent (in) :: u
real(8), intent (in) :: t
real(8), intent (in) :: l_m
real(8), intent (in) :: om
real(8), intent (in) :: u_42
real(8) :: tmp
if (l_m <= 1.85d-70) then
tmp = sqrt(abs((2.0d0 * (t * (n * u)))))
else if (l_m <= 5.6d+156) then
tmp = sqrt((2.0d0 * (u * (n * (t - (2.0d0 * ((l_m ** 2.0d0) / om)))))))
else
tmp = l_m * (n * ((sqrt(2.0d0) / om) * sqrt((u * u_42))))
end if
code = tmp
end function
l_m = Math.abs(l);
public static double code(double n, double U, double t, double l_m, double Om, double U_42_) {
double tmp;
if (l_m <= 1.85e-70) {
tmp = Math.sqrt(Math.abs((2.0 * (t * (n * U)))));
} else if (l_m <= 5.6e+156) {
tmp = Math.sqrt((2.0 * (U * (n * (t - (2.0 * (Math.pow(l_m, 2.0) / Om)))))));
} else {
tmp = l_m * (n * ((Math.sqrt(2.0) / Om) * Math.sqrt((U * U_42_))));
}
return tmp;
}
l_m = math.fabs(l) def code(n, U, t, l_m, Om, U_42_): tmp = 0 if l_m <= 1.85e-70: tmp = math.sqrt(math.fabs((2.0 * (t * (n * U))))) elif l_m <= 5.6e+156: tmp = math.sqrt((2.0 * (U * (n * (t - (2.0 * (math.pow(l_m, 2.0) / Om))))))) else: tmp = l_m * (n * ((math.sqrt(2.0) / Om) * math.sqrt((U * U_42_)))) return tmp
l_m = abs(l) function code(n, U, t, l_m, Om, U_42_) tmp = 0.0 if (l_m <= 1.85e-70) tmp = sqrt(abs(Float64(2.0 * Float64(t * Float64(n * U))))); elseif (l_m <= 5.6e+156) tmp = sqrt(Float64(2.0 * Float64(U * Float64(n * Float64(t - Float64(2.0 * Float64((l_m ^ 2.0) / Om))))))); else tmp = Float64(l_m * Float64(n * Float64(Float64(sqrt(2.0) / Om) * sqrt(Float64(U * U_42_))))); end return tmp end
l_m = abs(l); function tmp_2 = code(n, U, t, l_m, Om, U_42_) tmp = 0.0; if (l_m <= 1.85e-70) tmp = sqrt(abs((2.0 * (t * (n * U))))); elseif (l_m <= 5.6e+156) tmp = sqrt((2.0 * (U * (n * (t - (2.0 * ((l_m ^ 2.0) / Om))))))); else tmp = l_m * (n * ((sqrt(2.0) / Om) * sqrt((U * U_42_)))); end tmp_2 = tmp; end
l_m = N[Abs[l], $MachinePrecision] code[n_, U_, t_, l$95$m_, Om_, U$42$_] := If[LessEqual[l$95$m, 1.85e-70], N[Sqrt[N[Abs[N[(2.0 * N[(t * N[(n * U), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]], $MachinePrecision], If[LessEqual[l$95$m, 5.6e+156], N[Sqrt[N[(2.0 * N[(U * N[(n * N[(t - N[(2.0 * N[(N[Power[l$95$m, 2.0], $MachinePrecision] / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], N[(l$95$m * N[(n * N[(N[(N[Sqrt[2.0], $MachinePrecision] / Om), $MachinePrecision] * N[Sqrt[N[(U * U$42$), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
l_m = \left|\ell\right|
\\
\begin{array}{l}
\mathbf{if}\;l\_m \leq 1.85 \cdot 10^{-70}:\\
\;\;\;\;\sqrt{\left|2 \cdot \left(t \cdot \left(n \cdot U\right)\right)\right|}\\
\mathbf{elif}\;l\_m \leq 5.6 \cdot 10^{+156}:\\
\;\;\;\;\sqrt{2 \cdot \left(U \cdot \left(n \cdot \left(t - 2 \cdot \frac{{l\_m}^{2}}{Om}\right)\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;l\_m \cdot \left(n \cdot \left(\frac{\sqrt{2}}{Om} \cdot \sqrt{U \cdot U*}\right)\right)\\
\end{array}
\end{array}
if l < 1.85e-70Initial program 54.9%
Simplified60.6%
Taylor expanded in l around 0 44.1%
add-sqr-sqrt44.1%
pow1/244.1%
pow1/245.2%
pow-prod-down30.5%
pow230.5%
associate-*r*30.5%
Applied egg-rr30.5%
unpow1/230.5%
unpow230.5%
rem-sqrt-square45.7%
associate-*l*45.7%
associate-*r*46.5%
*-commutative46.5%
Simplified46.5%
if 1.85e-70 < l < 5.59999999999999975e156Initial program 52.4%
Simplified46.5%
Taylor expanded in n around 0 47.2%
if 5.59999999999999975e156 < l Initial program 13.1%
div-inv13.1%
pow213.1%
Applied egg-rr13.1%
Taylor expanded in U* around inf 20.3%
associate-/l*20.1%
associate-*r/20.1%
associate-*r*20.1%
associate-*l*20.0%
Simplified20.0%
Final simplification43.8%
l_m = (fabs.f64 l)
(FPCore (n U t l_m Om U*)
:precision binary64
(if (<= l_m 1.65e-70)
(sqrt (fabs (* 2.0 (* t (* n U)))))
(if (<= l_m 1.8e+153)
(sqrt (* 2.0 (* U (* n (- t (* 2.0 (/ (pow l_m 2.0) Om)))))))
(sqrt (* (* (* 2.0 n) U) (* (* n (pow (/ l_m Om) 2.0)) U*))))))l_m = fabs(l);
double code(double n, double U, double t, double l_m, double Om, double U_42_) {
double tmp;
if (l_m <= 1.65e-70) {
tmp = sqrt(fabs((2.0 * (t * (n * U)))));
} else if (l_m <= 1.8e+153) {
tmp = sqrt((2.0 * (U * (n * (t - (2.0 * (pow(l_m, 2.0) / Om)))))));
} else {
tmp = sqrt((((2.0 * n) * U) * ((n * pow((l_m / Om), 2.0)) * U_42_)));
}
return tmp;
}
l_m = abs(l)
real(8) function code(n, u, t, l_m, om, u_42)
real(8), intent (in) :: n
real(8), intent (in) :: u
real(8), intent (in) :: t
real(8), intent (in) :: l_m
real(8), intent (in) :: om
real(8), intent (in) :: u_42
real(8) :: tmp
if (l_m <= 1.65d-70) then
tmp = sqrt(abs((2.0d0 * (t * (n * u)))))
else if (l_m <= 1.8d+153) then
tmp = sqrt((2.0d0 * (u * (n * (t - (2.0d0 * ((l_m ** 2.0d0) / om)))))))
else
tmp = sqrt((((2.0d0 * n) * u) * ((n * ((l_m / om) ** 2.0d0)) * u_42)))
end if
code = tmp
end function
l_m = Math.abs(l);
public static double code(double n, double U, double t, double l_m, double Om, double U_42_) {
double tmp;
if (l_m <= 1.65e-70) {
tmp = Math.sqrt(Math.abs((2.0 * (t * (n * U)))));
} else if (l_m <= 1.8e+153) {
tmp = Math.sqrt((2.0 * (U * (n * (t - (2.0 * (Math.pow(l_m, 2.0) / Om)))))));
} else {
tmp = Math.sqrt((((2.0 * n) * U) * ((n * Math.pow((l_m / Om), 2.0)) * U_42_)));
}
return tmp;
}
l_m = math.fabs(l) def code(n, U, t, l_m, Om, U_42_): tmp = 0 if l_m <= 1.65e-70: tmp = math.sqrt(math.fabs((2.0 * (t * (n * U))))) elif l_m <= 1.8e+153: tmp = math.sqrt((2.0 * (U * (n * (t - (2.0 * (math.pow(l_m, 2.0) / Om))))))) else: tmp = math.sqrt((((2.0 * n) * U) * ((n * math.pow((l_m / Om), 2.0)) * U_42_))) return tmp
l_m = abs(l) function code(n, U, t, l_m, Om, U_42_) tmp = 0.0 if (l_m <= 1.65e-70) tmp = sqrt(abs(Float64(2.0 * Float64(t * Float64(n * U))))); elseif (l_m <= 1.8e+153) tmp = sqrt(Float64(2.0 * Float64(U * Float64(n * Float64(t - Float64(2.0 * Float64((l_m ^ 2.0) / Om))))))); else tmp = sqrt(Float64(Float64(Float64(2.0 * n) * U) * Float64(Float64(n * (Float64(l_m / Om) ^ 2.0)) * U_42_))); end return tmp end
l_m = abs(l); function tmp_2 = code(n, U, t, l_m, Om, U_42_) tmp = 0.0; if (l_m <= 1.65e-70) tmp = sqrt(abs((2.0 * (t * (n * U))))); elseif (l_m <= 1.8e+153) tmp = sqrt((2.0 * (U * (n * (t - (2.0 * ((l_m ^ 2.0) / Om))))))); else tmp = sqrt((((2.0 * n) * U) * ((n * ((l_m / Om) ^ 2.0)) * U_42_))); end tmp_2 = tmp; end
l_m = N[Abs[l], $MachinePrecision] code[n_, U_, t_, l$95$m_, Om_, U$42$_] := If[LessEqual[l$95$m, 1.65e-70], N[Sqrt[N[Abs[N[(2.0 * N[(t * N[(n * U), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]], $MachinePrecision], If[LessEqual[l$95$m, 1.8e+153], N[Sqrt[N[(2.0 * N[(U * N[(n * N[(t - N[(2.0 * N[(N[Power[l$95$m, 2.0], $MachinePrecision] / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], N[Sqrt[N[(N[(N[(2.0 * n), $MachinePrecision] * U), $MachinePrecision] * N[(N[(n * N[Power[N[(l$95$m / Om), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision] * U$42$), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]]]
\begin{array}{l}
l_m = \left|\ell\right|
\\
\begin{array}{l}
\mathbf{if}\;l\_m \leq 1.65 \cdot 10^{-70}:\\
\;\;\;\;\sqrt{\left|2 \cdot \left(t \cdot \left(n \cdot U\right)\right)\right|}\\
\mathbf{elif}\;l\_m \leq 1.8 \cdot 10^{+153}:\\
\;\;\;\;\sqrt{2 \cdot \left(U \cdot \left(n \cdot \left(t - 2 \cdot \frac{{l\_m}^{2}}{Om}\right)\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;\sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(n \cdot {\left(\frac{l\_m}{Om}\right)}^{2}\right) \cdot U*\right)}\\
\end{array}
\end{array}
if l < 1.65000000000000008e-70Initial program 54.9%
Simplified60.6%
Taylor expanded in l around 0 44.1%
add-sqr-sqrt44.1%
pow1/244.1%
pow1/245.2%
pow-prod-down30.5%
pow230.5%
associate-*r*30.5%
Applied egg-rr30.5%
unpow1/230.5%
unpow230.5%
rem-sqrt-square45.7%
associate-*l*45.7%
associate-*r*46.5%
*-commutative46.5%
Simplified46.5%
if 1.65000000000000008e-70 < l < 1.8e153Initial program 50.2%
Simplified44.0%
Taylor expanded in n around 0 44.8%
if 1.8e153 < l Initial program 19.1%
associate-*r/36.0%
*-commutative36.0%
Applied egg-rr36.0%
Taylor expanded in U* around inf 35.2%
associate-/l*35.2%
*-commutative35.2%
associate-/l*35.2%
unpow235.2%
unpow235.2%
times-frac40.3%
unpow240.3%
Simplified40.3%
Final simplification45.5%
l_m = (fabs.f64 l)
(FPCore (n U t l_m Om U*)
:precision binary64
(if (<= l_m 1.25e-92)
(sqrt (fabs (* 2.0 (* t (* n U)))))
(if (<= l_m 4.2e+156)
(sqrt (fabs (* 2.0 (* U (* n t)))))
(* l_m (* n (* (/ (sqrt 2.0) Om) (sqrt (* U U*))))))))l_m = fabs(l);
double code(double n, double U, double t, double l_m, double Om, double U_42_) {
double tmp;
if (l_m <= 1.25e-92) {
tmp = sqrt(fabs((2.0 * (t * (n * U)))));
} else if (l_m <= 4.2e+156) {
tmp = sqrt(fabs((2.0 * (U * (n * t)))));
} else {
tmp = l_m * (n * ((sqrt(2.0) / Om) * sqrt((U * U_42_))));
}
return tmp;
}
l_m = abs(l)
real(8) function code(n, u, t, l_m, om, u_42)
real(8), intent (in) :: n
real(8), intent (in) :: u
real(8), intent (in) :: t
real(8), intent (in) :: l_m
real(8), intent (in) :: om
real(8), intent (in) :: u_42
real(8) :: tmp
if (l_m <= 1.25d-92) then
tmp = sqrt(abs((2.0d0 * (t * (n * u)))))
else if (l_m <= 4.2d+156) then
tmp = sqrt(abs((2.0d0 * (u * (n * t)))))
else
tmp = l_m * (n * ((sqrt(2.0d0) / om) * sqrt((u * u_42))))
end if
code = tmp
end function
l_m = Math.abs(l);
public static double code(double n, double U, double t, double l_m, double Om, double U_42_) {
double tmp;
if (l_m <= 1.25e-92) {
tmp = Math.sqrt(Math.abs((2.0 * (t * (n * U)))));
} else if (l_m <= 4.2e+156) {
tmp = Math.sqrt(Math.abs((2.0 * (U * (n * t)))));
} else {
tmp = l_m * (n * ((Math.sqrt(2.0) / Om) * Math.sqrt((U * U_42_))));
}
return tmp;
}
l_m = math.fabs(l) def code(n, U, t, l_m, Om, U_42_): tmp = 0 if l_m <= 1.25e-92: tmp = math.sqrt(math.fabs((2.0 * (t * (n * U))))) elif l_m <= 4.2e+156: tmp = math.sqrt(math.fabs((2.0 * (U * (n * t))))) else: tmp = l_m * (n * ((math.sqrt(2.0) / Om) * math.sqrt((U * U_42_)))) return tmp
l_m = abs(l) function code(n, U, t, l_m, Om, U_42_) tmp = 0.0 if (l_m <= 1.25e-92) tmp = sqrt(abs(Float64(2.0 * Float64(t * Float64(n * U))))); elseif (l_m <= 4.2e+156) tmp = sqrt(abs(Float64(2.0 * Float64(U * Float64(n * t))))); else tmp = Float64(l_m * Float64(n * Float64(Float64(sqrt(2.0) / Om) * sqrt(Float64(U * U_42_))))); end return tmp end
l_m = abs(l); function tmp_2 = code(n, U, t, l_m, Om, U_42_) tmp = 0.0; if (l_m <= 1.25e-92) tmp = sqrt(abs((2.0 * (t * (n * U))))); elseif (l_m <= 4.2e+156) tmp = sqrt(abs((2.0 * (U * (n * t))))); else tmp = l_m * (n * ((sqrt(2.0) / Om) * sqrt((U * U_42_)))); end tmp_2 = tmp; end
l_m = N[Abs[l], $MachinePrecision] code[n_, U_, t_, l$95$m_, Om_, U$42$_] := If[LessEqual[l$95$m, 1.25e-92], N[Sqrt[N[Abs[N[(2.0 * N[(t * N[(n * U), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]], $MachinePrecision], If[LessEqual[l$95$m, 4.2e+156], N[Sqrt[N[Abs[N[(2.0 * N[(U * N[(n * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]], $MachinePrecision], N[(l$95$m * N[(n * N[(N[(N[Sqrt[2.0], $MachinePrecision] / Om), $MachinePrecision] * N[Sqrt[N[(U * U$42$), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
l_m = \left|\ell\right|
\\
\begin{array}{l}
\mathbf{if}\;l\_m \leq 1.25 \cdot 10^{-92}:\\
\;\;\;\;\sqrt{\left|2 \cdot \left(t \cdot \left(n \cdot U\right)\right)\right|}\\
\mathbf{elif}\;l\_m \leq 4.2 \cdot 10^{+156}:\\
\;\;\;\;\sqrt{\left|2 \cdot \left(U \cdot \left(n \cdot t\right)\right)\right|}\\
\mathbf{else}:\\
\;\;\;\;l\_m \cdot \left(n \cdot \left(\frac{\sqrt{2}}{Om} \cdot \sqrt{U \cdot U*}\right)\right)\\
\end{array}
\end{array}
if l < 1.25000000000000003e-92Initial program 54.6%
Simplified60.0%
Taylor expanded in l around 0 43.7%
add-sqr-sqrt43.7%
pow1/243.7%
pow1/244.8%
pow-prod-down30.2%
pow230.2%
associate-*r*30.2%
Applied egg-rr30.2%
unpow1/230.2%
unpow230.2%
rem-sqrt-square45.2%
associate-*l*45.2%
associate-*r*46.5%
*-commutative46.5%
Simplified46.5%
if 1.25000000000000003e-92 < l < 4.19999999999999963e156Initial program 53.9%
Simplified50.0%
Taylor expanded in l around 0 31.1%
add-sqr-sqrt31.1%
pow1/231.1%
pow1/233.3%
pow-prod-down24.8%
pow224.8%
associate-*r*24.8%
Applied egg-rr24.8%
unpow1/224.8%
unpow224.8%
rem-sqrt-square34.3%
associate-*r*34.3%
Simplified34.3%
if 4.19999999999999963e156 < l Initial program 13.1%
div-inv13.1%
pow213.1%
Applied egg-rr13.1%
Taylor expanded in U* around inf 20.3%
associate-/l*20.1%
associate-*r/20.1%
associate-*r*20.1%
associate-*l*20.0%
Simplified20.0%
Final simplification41.3%
l_m = (fabs.f64 l) (FPCore (n U t l_m Om U*) :precision binary64 (if (<= l_m 1.35e-92) (sqrt (* (* (* 2.0 n) U) t)) (sqrt (fabs (* 2.0 (* U (* n t)))))))
l_m = fabs(l);
double code(double n, double U, double t, double l_m, double Om, double U_42_) {
double tmp;
if (l_m <= 1.35e-92) {
tmp = sqrt((((2.0 * n) * U) * t));
} else {
tmp = sqrt(fabs((2.0 * (U * (n * t)))));
}
return tmp;
}
l_m = abs(l)
real(8) function code(n, u, t, l_m, om, u_42)
real(8), intent (in) :: n
real(8), intent (in) :: u
real(8), intent (in) :: t
real(8), intent (in) :: l_m
real(8), intent (in) :: om
real(8), intent (in) :: u_42
real(8) :: tmp
if (l_m <= 1.35d-92) then
tmp = sqrt((((2.0d0 * n) * u) * t))
else
tmp = sqrt(abs((2.0d0 * (u * (n * t)))))
end if
code = tmp
end function
l_m = Math.abs(l);
public static double code(double n, double U, double t, double l_m, double Om, double U_42_) {
double tmp;
if (l_m <= 1.35e-92) {
tmp = Math.sqrt((((2.0 * n) * U) * t));
} else {
tmp = Math.sqrt(Math.abs((2.0 * (U * (n * t)))));
}
return tmp;
}
l_m = math.fabs(l) def code(n, U, t, l_m, Om, U_42_): tmp = 0 if l_m <= 1.35e-92: tmp = math.sqrt((((2.0 * n) * U) * t)) else: tmp = math.sqrt(math.fabs((2.0 * (U * (n * t))))) return tmp
l_m = abs(l) function code(n, U, t, l_m, Om, U_42_) tmp = 0.0 if (l_m <= 1.35e-92) tmp = sqrt(Float64(Float64(Float64(2.0 * n) * U) * t)); else tmp = sqrt(abs(Float64(2.0 * Float64(U * Float64(n * t))))); end return tmp end
l_m = abs(l); function tmp_2 = code(n, U, t, l_m, Om, U_42_) tmp = 0.0; if (l_m <= 1.35e-92) tmp = sqrt((((2.0 * n) * U) * t)); else tmp = sqrt(abs((2.0 * (U * (n * t))))); end tmp_2 = tmp; end
l_m = N[Abs[l], $MachinePrecision] code[n_, U_, t_, l$95$m_, Om_, U$42$_] := If[LessEqual[l$95$m, 1.35e-92], N[Sqrt[N[(N[(N[(2.0 * n), $MachinePrecision] * U), $MachinePrecision] * t), $MachinePrecision]], $MachinePrecision], N[Sqrt[N[Abs[N[(2.0 * N[(U * N[(n * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]], $MachinePrecision]]
\begin{array}{l}
l_m = \left|\ell\right|
\\
\begin{array}{l}
\mathbf{if}\;l\_m \leq 1.35 \cdot 10^{-92}:\\
\;\;\;\;\sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot t}\\
\mathbf{else}:\\
\;\;\;\;\sqrt{\left|2 \cdot \left(U \cdot \left(n \cdot t\right)\right)\right|}\\
\end{array}
\end{array}
if l < 1.34999999999999998e-92Initial program 54.6%
associate-*r/59.7%
*-commutative59.7%
Applied egg-rr59.7%
Taylor expanded in t around inf 44.3%
if 1.34999999999999998e-92 < l Initial program 39.6%
Simplified40.9%
Taylor expanded in l around 0 21.3%
add-sqr-sqrt21.3%
pow1/221.3%
pow1/224.1%
pow-prod-down21.3%
pow221.3%
associate-*r*21.3%
Applied egg-rr21.3%
unpow1/221.3%
unpow221.3%
rem-sqrt-square25.0%
associate-*r*25.0%
Simplified25.0%
Final simplification38.5%
l_m = (fabs.f64 l) (FPCore (n U t l_m Om U*) :precision binary64 (if (<= l_m 1.18e-92) (sqrt (fabs (* 2.0 (* t (* n U))))) (sqrt (fabs (* 2.0 (* U (* n t)))))))
l_m = fabs(l);
double code(double n, double U, double t, double l_m, double Om, double U_42_) {
double tmp;
if (l_m <= 1.18e-92) {
tmp = sqrt(fabs((2.0 * (t * (n * U)))));
} else {
tmp = sqrt(fabs((2.0 * (U * (n * t)))));
}
return tmp;
}
l_m = abs(l)
real(8) function code(n, u, t, l_m, om, u_42)
real(8), intent (in) :: n
real(8), intent (in) :: u
real(8), intent (in) :: t
real(8), intent (in) :: l_m
real(8), intent (in) :: om
real(8), intent (in) :: u_42
real(8) :: tmp
if (l_m <= 1.18d-92) then
tmp = sqrt(abs((2.0d0 * (t * (n * u)))))
else
tmp = sqrt(abs((2.0d0 * (u * (n * t)))))
end if
code = tmp
end function
l_m = Math.abs(l);
public static double code(double n, double U, double t, double l_m, double Om, double U_42_) {
double tmp;
if (l_m <= 1.18e-92) {
tmp = Math.sqrt(Math.abs((2.0 * (t * (n * U)))));
} else {
tmp = Math.sqrt(Math.abs((2.0 * (U * (n * t)))));
}
return tmp;
}
l_m = math.fabs(l) def code(n, U, t, l_m, Om, U_42_): tmp = 0 if l_m <= 1.18e-92: tmp = math.sqrt(math.fabs((2.0 * (t * (n * U))))) else: tmp = math.sqrt(math.fabs((2.0 * (U * (n * t))))) return tmp
l_m = abs(l) function code(n, U, t, l_m, Om, U_42_) tmp = 0.0 if (l_m <= 1.18e-92) tmp = sqrt(abs(Float64(2.0 * Float64(t * Float64(n * U))))); else tmp = sqrt(abs(Float64(2.0 * Float64(U * Float64(n * t))))); end return tmp end
l_m = abs(l); function tmp_2 = code(n, U, t, l_m, Om, U_42_) tmp = 0.0; if (l_m <= 1.18e-92) tmp = sqrt(abs((2.0 * (t * (n * U))))); else tmp = sqrt(abs((2.0 * (U * (n * t))))); end tmp_2 = tmp; end
l_m = N[Abs[l], $MachinePrecision] code[n_, U_, t_, l$95$m_, Om_, U$42$_] := If[LessEqual[l$95$m, 1.18e-92], N[Sqrt[N[Abs[N[(2.0 * N[(t * N[(n * U), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]], $MachinePrecision], N[Sqrt[N[Abs[N[(2.0 * N[(U * N[(n * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]], $MachinePrecision]]
\begin{array}{l}
l_m = \left|\ell\right|
\\
\begin{array}{l}
\mathbf{if}\;l\_m \leq 1.18 \cdot 10^{-92}:\\
\;\;\;\;\sqrt{\left|2 \cdot \left(t \cdot \left(n \cdot U\right)\right)\right|}\\
\mathbf{else}:\\
\;\;\;\;\sqrt{\left|2 \cdot \left(U \cdot \left(n \cdot t\right)\right)\right|}\\
\end{array}
\end{array}
if l < 1.18e-92Initial program 54.6%
Simplified60.0%
Taylor expanded in l around 0 43.7%
add-sqr-sqrt43.7%
pow1/243.7%
pow1/244.8%
pow-prod-down30.2%
pow230.2%
associate-*r*30.2%
Applied egg-rr30.2%
unpow1/230.2%
unpow230.2%
rem-sqrt-square45.2%
associate-*l*45.2%
associate-*r*46.5%
*-commutative46.5%
Simplified46.5%
if 1.18e-92 < l Initial program 39.6%
Simplified40.9%
Taylor expanded in l around 0 21.3%
add-sqr-sqrt21.3%
pow1/221.3%
pow1/224.1%
pow-prod-down21.3%
pow221.3%
associate-*r*21.3%
Applied egg-rr21.3%
unpow1/221.3%
unpow221.3%
rem-sqrt-square25.0%
associate-*r*25.0%
Simplified25.0%
Final simplification40.0%
l_m = (fabs.f64 l) (FPCore (n U t l_m Om U*) :precision binary64 (if (<= U -2e-310) (sqrt (fabs (* 2.0 (* t (* n U))))) (* (sqrt (* 2.0 U)) (sqrt (* n t)))))
l_m = fabs(l);
double code(double n, double U, double t, double l_m, double Om, double U_42_) {
double tmp;
if (U <= -2e-310) {
tmp = sqrt(fabs((2.0 * (t * (n * U)))));
} else {
tmp = sqrt((2.0 * U)) * sqrt((n * t));
}
return tmp;
}
l_m = abs(l)
real(8) function code(n, u, t, l_m, om, u_42)
real(8), intent (in) :: n
real(8), intent (in) :: u
real(8), intent (in) :: t
real(8), intent (in) :: l_m
real(8), intent (in) :: om
real(8), intent (in) :: u_42
real(8) :: tmp
if (u <= (-2d-310)) then
tmp = sqrt(abs((2.0d0 * (t * (n * u)))))
else
tmp = sqrt((2.0d0 * u)) * sqrt((n * t))
end if
code = tmp
end function
l_m = Math.abs(l);
public static double code(double n, double U, double t, double l_m, double Om, double U_42_) {
double tmp;
if (U <= -2e-310) {
tmp = Math.sqrt(Math.abs((2.0 * (t * (n * U)))));
} else {
tmp = Math.sqrt((2.0 * U)) * Math.sqrt((n * t));
}
return tmp;
}
l_m = math.fabs(l) def code(n, U, t, l_m, Om, U_42_): tmp = 0 if U <= -2e-310: tmp = math.sqrt(math.fabs((2.0 * (t * (n * U))))) else: tmp = math.sqrt((2.0 * U)) * math.sqrt((n * t)) return tmp
l_m = abs(l) function code(n, U, t, l_m, Om, U_42_) tmp = 0.0 if (U <= -2e-310) tmp = sqrt(abs(Float64(2.0 * Float64(t * Float64(n * U))))); else tmp = Float64(sqrt(Float64(2.0 * U)) * sqrt(Float64(n * t))); end return tmp end
l_m = abs(l); function tmp_2 = code(n, U, t, l_m, Om, U_42_) tmp = 0.0; if (U <= -2e-310) tmp = sqrt(abs((2.0 * (t * (n * U))))); else tmp = sqrt((2.0 * U)) * sqrt((n * t)); end tmp_2 = tmp; end
l_m = N[Abs[l], $MachinePrecision] code[n_, U_, t_, l$95$m_, Om_, U$42$_] := If[LessEqual[U, -2e-310], N[Sqrt[N[Abs[N[(2.0 * N[(t * N[(n * U), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]], $MachinePrecision], N[(N[Sqrt[N[(2.0 * U), $MachinePrecision]], $MachinePrecision] * N[Sqrt[N[(n * t), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
l_m = \left|\ell\right|
\\
\begin{array}{l}
\mathbf{if}\;U \leq -2 \cdot 10^{-310}:\\
\;\;\;\;\sqrt{\left|2 \cdot \left(t \cdot \left(n \cdot U\right)\right)\right|}\\
\mathbf{else}:\\
\;\;\;\;\sqrt{2 \cdot U} \cdot \sqrt{n \cdot t}\\
\end{array}
\end{array}
if U < -1.999999999999994e-310Initial program 52.4%
Simplified57.5%
Taylor expanded in l around 0 41.1%
add-sqr-sqrt41.1%
pow1/241.1%
pow1/242.0%
pow-prod-down30.5%
pow230.5%
associate-*r*30.5%
Applied egg-rr30.5%
unpow1/230.5%
unpow230.5%
rem-sqrt-square42.8%
associate-*l*42.8%
associate-*r*42.6%
*-commutative42.6%
Simplified42.6%
if -1.999999999999994e-310 < U Initial program 48.1%
Simplified51.4%
Taylor expanded in l around 0 34.7%
pow1/236.2%
associate-*r*36.2%
unpow-prod-down42.0%
pow1/241.2%
Applied egg-rr41.2%
unpow1/241.2%
*-commutative41.2%
Simplified41.2%
Final simplification41.9%
l_m = (fabs.f64 l) (FPCore (n U t l_m Om U*) :precision binary64 (if (<= l_m 1.12e-92) (sqrt (* (* (* 2.0 n) U) t)) (pow (* (* n t) (* 2.0 U)) 0.5)))
l_m = fabs(l);
double code(double n, double U, double t, double l_m, double Om, double U_42_) {
double tmp;
if (l_m <= 1.12e-92) {
tmp = sqrt((((2.0 * n) * U) * t));
} else {
tmp = pow(((n * t) * (2.0 * U)), 0.5);
}
return tmp;
}
l_m = abs(l)
real(8) function code(n, u, t, l_m, om, u_42)
real(8), intent (in) :: n
real(8), intent (in) :: u
real(8), intent (in) :: t
real(8), intent (in) :: l_m
real(8), intent (in) :: om
real(8), intent (in) :: u_42
real(8) :: tmp
if (l_m <= 1.12d-92) then
tmp = sqrt((((2.0d0 * n) * u) * t))
else
tmp = ((n * t) * (2.0d0 * u)) ** 0.5d0
end if
code = tmp
end function
l_m = Math.abs(l);
public static double code(double n, double U, double t, double l_m, double Om, double U_42_) {
double tmp;
if (l_m <= 1.12e-92) {
tmp = Math.sqrt((((2.0 * n) * U) * t));
} else {
tmp = Math.pow(((n * t) * (2.0 * U)), 0.5);
}
return tmp;
}
l_m = math.fabs(l) def code(n, U, t, l_m, Om, U_42_): tmp = 0 if l_m <= 1.12e-92: tmp = math.sqrt((((2.0 * n) * U) * t)) else: tmp = math.pow(((n * t) * (2.0 * U)), 0.5) return tmp
l_m = abs(l) function code(n, U, t, l_m, Om, U_42_) tmp = 0.0 if (l_m <= 1.12e-92) tmp = sqrt(Float64(Float64(Float64(2.0 * n) * U) * t)); else tmp = Float64(Float64(n * t) * Float64(2.0 * U)) ^ 0.5; end return tmp end
l_m = abs(l); function tmp_2 = code(n, U, t, l_m, Om, U_42_) tmp = 0.0; if (l_m <= 1.12e-92) tmp = sqrt((((2.0 * n) * U) * t)); else tmp = ((n * t) * (2.0 * U)) ^ 0.5; end tmp_2 = tmp; end
l_m = N[Abs[l], $MachinePrecision] code[n_, U_, t_, l$95$m_, Om_, U$42$_] := If[LessEqual[l$95$m, 1.12e-92], N[Sqrt[N[(N[(N[(2.0 * n), $MachinePrecision] * U), $MachinePrecision] * t), $MachinePrecision]], $MachinePrecision], N[Power[N[(N[(n * t), $MachinePrecision] * N[(2.0 * U), $MachinePrecision]), $MachinePrecision], 0.5], $MachinePrecision]]
\begin{array}{l}
l_m = \left|\ell\right|
\\
\begin{array}{l}
\mathbf{if}\;l\_m \leq 1.12 \cdot 10^{-92}:\\
\;\;\;\;\sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot t}\\
\mathbf{else}:\\
\;\;\;\;{\left(\left(n \cdot t\right) \cdot \left(2 \cdot U\right)\right)}^{0.5}\\
\end{array}
\end{array}
if l < 1.11999999999999999e-92Initial program 54.6%
associate-*r/59.7%
*-commutative59.7%
Applied egg-rr59.7%
Taylor expanded in t around inf 44.3%
if 1.11999999999999999e-92 < l Initial program 39.6%
Simplified40.9%
Taylor expanded in l around 0 21.3%
pow1/224.1%
associate-*r*24.1%
Applied egg-rr24.1%
Final simplification38.2%
l_m = (fabs.f64 l) (FPCore (n U t l_m Om U*) :precision binary64 (if (<= n -1.3e+30) (sqrt (* 2.0 (* n (* U t)))) (sqrt (* 2.0 (* U (* n t))))))
l_m = fabs(l);
double code(double n, double U, double t, double l_m, double Om, double U_42_) {
double tmp;
if (n <= -1.3e+30) {
tmp = sqrt((2.0 * (n * (U * t))));
} else {
tmp = sqrt((2.0 * (U * (n * t))));
}
return tmp;
}
l_m = abs(l)
real(8) function code(n, u, t, l_m, om, u_42)
real(8), intent (in) :: n
real(8), intent (in) :: u
real(8), intent (in) :: t
real(8), intent (in) :: l_m
real(8), intent (in) :: om
real(8), intent (in) :: u_42
real(8) :: tmp
if (n <= (-1.3d+30)) then
tmp = sqrt((2.0d0 * (n * (u * t))))
else
tmp = sqrt((2.0d0 * (u * (n * t))))
end if
code = tmp
end function
l_m = Math.abs(l);
public static double code(double n, double U, double t, double l_m, double Om, double U_42_) {
double tmp;
if (n <= -1.3e+30) {
tmp = Math.sqrt((2.0 * (n * (U * t))));
} else {
tmp = Math.sqrt((2.0 * (U * (n * t))));
}
return tmp;
}
l_m = math.fabs(l) def code(n, U, t, l_m, Om, U_42_): tmp = 0 if n <= -1.3e+30: tmp = math.sqrt((2.0 * (n * (U * t)))) else: tmp = math.sqrt((2.0 * (U * (n * t)))) return tmp
l_m = abs(l) function code(n, U, t, l_m, Om, U_42_) tmp = 0.0 if (n <= -1.3e+30) tmp = sqrt(Float64(2.0 * Float64(n * Float64(U * t)))); else tmp = sqrt(Float64(2.0 * Float64(U * Float64(n * t)))); end return tmp end
l_m = abs(l); function tmp_2 = code(n, U, t, l_m, Om, U_42_) tmp = 0.0; if (n <= -1.3e+30) tmp = sqrt((2.0 * (n * (U * t)))); else tmp = sqrt((2.0 * (U * (n * t)))); end tmp_2 = tmp; end
l_m = N[Abs[l], $MachinePrecision] code[n_, U_, t_, l$95$m_, Om_, U$42$_] := If[LessEqual[n, -1.3e+30], N[Sqrt[N[(2.0 * N[(n * N[(U * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], N[Sqrt[N[(2.0 * N[(U * N[(n * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]]
\begin{array}{l}
l_m = \left|\ell\right|
\\
\begin{array}{l}
\mathbf{if}\;n \leq -1.3 \cdot 10^{+30}:\\
\;\;\;\;\sqrt{2 \cdot \left(n \cdot \left(U \cdot t\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;\sqrt{2 \cdot \left(U \cdot \left(n \cdot t\right)\right)}\\
\end{array}
\end{array}
if n < -1.29999999999999994e30Initial program 40.0%
Simplified54.5%
Taylor expanded in l around 0 30.8%
if -1.29999999999999994e30 < n Initial program 52.7%
Simplified54.2%
Taylor expanded in l around 0 40.9%
Final simplification38.8%
l_m = (fabs.f64 l) (FPCore (n U t l_m Om U*) :precision binary64 (if (<= l_m 1.1e-92) (sqrt (* (* (* 2.0 n) U) t)) (sqrt (* 2.0 (* U (* n t))))))
l_m = fabs(l);
double code(double n, double U, double t, double l_m, double Om, double U_42_) {
double tmp;
if (l_m <= 1.1e-92) {
tmp = sqrt((((2.0 * n) * U) * t));
} else {
tmp = sqrt((2.0 * (U * (n * t))));
}
return tmp;
}
l_m = abs(l)
real(8) function code(n, u, t, l_m, om, u_42)
real(8), intent (in) :: n
real(8), intent (in) :: u
real(8), intent (in) :: t
real(8), intent (in) :: l_m
real(8), intent (in) :: om
real(8), intent (in) :: u_42
real(8) :: tmp
if (l_m <= 1.1d-92) then
tmp = sqrt((((2.0d0 * n) * u) * t))
else
tmp = sqrt((2.0d0 * (u * (n * t))))
end if
code = tmp
end function
l_m = Math.abs(l);
public static double code(double n, double U, double t, double l_m, double Om, double U_42_) {
double tmp;
if (l_m <= 1.1e-92) {
tmp = Math.sqrt((((2.0 * n) * U) * t));
} else {
tmp = Math.sqrt((2.0 * (U * (n * t))));
}
return tmp;
}
l_m = math.fabs(l) def code(n, U, t, l_m, Om, U_42_): tmp = 0 if l_m <= 1.1e-92: tmp = math.sqrt((((2.0 * n) * U) * t)) else: tmp = math.sqrt((2.0 * (U * (n * t)))) return tmp
l_m = abs(l) function code(n, U, t, l_m, Om, U_42_) tmp = 0.0 if (l_m <= 1.1e-92) tmp = sqrt(Float64(Float64(Float64(2.0 * n) * U) * t)); else tmp = sqrt(Float64(2.0 * Float64(U * Float64(n * t)))); end return tmp end
l_m = abs(l); function tmp_2 = code(n, U, t, l_m, Om, U_42_) tmp = 0.0; if (l_m <= 1.1e-92) tmp = sqrt((((2.0 * n) * U) * t)); else tmp = sqrt((2.0 * (U * (n * t)))); end tmp_2 = tmp; end
l_m = N[Abs[l], $MachinePrecision] code[n_, U_, t_, l$95$m_, Om_, U$42$_] := If[LessEqual[l$95$m, 1.1e-92], N[Sqrt[N[(N[(N[(2.0 * n), $MachinePrecision] * U), $MachinePrecision] * t), $MachinePrecision]], $MachinePrecision], N[Sqrt[N[(2.0 * N[(U * N[(n * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]]
\begin{array}{l}
l_m = \left|\ell\right|
\\
\begin{array}{l}
\mathbf{if}\;l\_m \leq 1.1 \cdot 10^{-92}:\\
\;\;\;\;\sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot t}\\
\mathbf{else}:\\
\;\;\;\;\sqrt{2 \cdot \left(U \cdot \left(n \cdot t\right)\right)}\\
\end{array}
\end{array}
if l < 1.09999999999999994e-92Initial program 54.6%
associate-*r/59.7%
*-commutative59.7%
Applied egg-rr59.7%
Taylor expanded in t around inf 44.3%
if 1.09999999999999994e-92 < l Initial program 39.6%
Simplified40.9%
Taylor expanded in l around 0 21.3%
Final simplification37.4%
l_m = (fabs.f64 l) (FPCore (n U t l_m Om U*) :precision binary64 (sqrt (* 2.0 (* U (* n t)))))
l_m = fabs(l);
double code(double n, double U, double t, double l_m, double Om, double U_42_) {
return sqrt((2.0 * (U * (n * t))));
}
l_m = abs(l)
real(8) function code(n, u, t, l_m, om, u_42)
real(8), intent (in) :: n
real(8), intent (in) :: u
real(8), intent (in) :: t
real(8), intent (in) :: l_m
real(8), intent (in) :: om
real(8), intent (in) :: u_42
code = sqrt((2.0d0 * (u * (n * t))))
end function
l_m = Math.abs(l);
public static double code(double n, double U, double t, double l_m, double Om, double U_42_) {
return Math.sqrt((2.0 * (U * (n * t))));
}
l_m = math.fabs(l) def code(n, U, t, l_m, Om, U_42_): return math.sqrt((2.0 * (U * (n * t))))
l_m = abs(l) function code(n, U, t, l_m, Om, U_42_) return sqrt(Float64(2.0 * Float64(U * Float64(n * t)))) end
l_m = abs(l); function tmp = code(n, U, t, l_m, Om, U_42_) tmp = sqrt((2.0 * (U * (n * t)))); end
l_m = N[Abs[l], $MachinePrecision] code[n_, U_, t_, l$95$m_, Om_, U$42$_] := N[Sqrt[N[(2.0 * N[(U * N[(n * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]
\begin{array}{l}
l_m = \left|\ell\right|
\\
\sqrt{2 \cdot \left(U \cdot \left(n \cdot t\right)\right)}
\end{array}
Initial program 50.1%
Simplified54.2%
Taylor expanded in l around 0 36.9%
Final simplification36.9%
herbie shell --seed 2024072
(FPCore (n U t l Om U*)
:name "Toniolo and Linder, Equation (13)"
:precision binary64
(sqrt (* (* (* 2.0 n) U) (- (- t (* 2.0 (/ (* l l) Om))) (* (* n (pow (/ l Om) 2.0)) (- U U*))))))