
(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 15 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 (pow (/ l_m Om) 2.0)) (- U* U)))
(t_2 (+ (- t (* 2.0 (* l_m (/ l_m Om)))) t_1))
(t_3 (* (* 2.0 n) U))
(t_4 (* t_3 (+ (- t (* 2.0 (/ (* l_m l_m) Om))) t_1))))
(if (<= t_4 0.0)
(sqrt (* (* 2.0 n) (* U t_2)))
(if (<= t_4 INFINITY)
(sqrt (* t_3 t_2))
(*
(sqrt (* U (* n (- (/ (* n (- U* U)) (pow Om 2.0)) (/ 2.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 * pow((l_m / Om), 2.0)) * (U_42_ - U);
double t_2 = (t - (2.0 * (l_m * (l_m / Om)))) + t_1;
double t_3 = (2.0 * n) * U;
double t_4 = t_3 * ((t - (2.0 * ((l_m * l_m) / Om))) + t_1);
double tmp;
if (t_4 <= 0.0) {
tmp = sqrt(((2.0 * n) * (U * t_2)));
} else if (t_4 <= ((double) INFINITY)) {
tmp = sqrt((t_3 * t_2));
} else {
tmp = sqrt((U * (n * (((n * (U_42_ - U)) / pow(Om, 2.0)) - (2.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 * Math.pow((l_m / Om), 2.0)) * (U_42_ - U);
double t_2 = (t - (2.0 * (l_m * (l_m / Om)))) + t_1;
double t_3 = (2.0 * n) * U;
double t_4 = t_3 * ((t - (2.0 * ((l_m * l_m) / Om))) + t_1);
double tmp;
if (t_4 <= 0.0) {
tmp = Math.sqrt(((2.0 * n) * (U * t_2)));
} else if (t_4 <= Double.POSITIVE_INFINITY) {
tmp = Math.sqrt((t_3 * t_2));
} else {
tmp = Math.sqrt((U * (n * (((n * (U_42_ - U)) / Math.pow(Om, 2.0)) - (2.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 * math.pow((l_m / Om), 2.0)) * (U_42_ - U) t_2 = (t - (2.0 * (l_m * (l_m / Om)))) + t_1 t_3 = (2.0 * n) * U t_4 = t_3 * ((t - (2.0 * ((l_m * l_m) / Om))) + t_1) tmp = 0 if t_4 <= 0.0: tmp = math.sqrt(((2.0 * n) * (U * t_2))) elif t_4 <= math.inf: tmp = math.sqrt((t_3 * t_2)) else: tmp = math.sqrt((U * (n * (((n * (U_42_ - U)) / math.pow(Om, 2.0)) - (2.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(n * (Float64(l_m / Om) ^ 2.0)) * Float64(U_42_ - U)) t_2 = Float64(Float64(t - Float64(2.0 * Float64(l_m * Float64(l_m / Om)))) + t_1) t_3 = Float64(Float64(2.0 * n) * U) t_4 = Float64(t_3 * Float64(Float64(t - Float64(2.0 * Float64(Float64(l_m * l_m) / Om))) + t_1)) tmp = 0.0 if (t_4 <= 0.0) tmp = sqrt(Float64(Float64(2.0 * n) * Float64(U * t_2))); elseif (t_4 <= Inf) tmp = sqrt(Float64(t_3 * t_2)); else tmp = Float64(sqrt(Float64(U * Float64(n * Float64(Float64(Float64(n * Float64(U_42_ - U)) / (Om ^ 2.0)) - Float64(2.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 * ((l_m / Om) ^ 2.0)) * (U_42_ - U); t_2 = (t - (2.0 * (l_m * (l_m / Om)))) + t_1; t_3 = (2.0 * n) * U; t_4 = t_3 * ((t - (2.0 * ((l_m * l_m) / Om))) + t_1); tmp = 0.0; if (t_4 <= 0.0) tmp = sqrt(((2.0 * n) * (U * t_2))); elseif (t_4 <= Inf) tmp = sqrt((t_3 * t_2)); else tmp = sqrt((U * (n * (((n * (U_42_ - U)) / (Om ^ 2.0)) - (2.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 * N[Power[N[(l$95$m / Om), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision] * N[(U$42$ - U), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(t - N[(2.0 * N[(l$95$m * N[(l$95$m / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision]}, Block[{t$95$3 = N[(N[(2.0 * n), $MachinePrecision] * U), $MachinePrecision]}, Block[{t$95$4 = N[(t$95$3 * N[(N[(t - N[(2.0 * N[(N[(l$95$m * l$95$m), $MachinePrecision] / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$4, 0.0], N[Sqrt[N[(N[(2.0 * n), $MachinePrecision] * N[(U * t$95$2), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], If[LessEqual[t$95$4, Infinity], N[Sqrt[N[(t$95$3 * t$95$2), $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 / Om), $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(n \cdot {\left(\frac{l\_m}{Om}\right)}^{2}\right) \cdot \left(U* - U\right)\\
t_2 := \left(t - 2 \cdot \left(l\_m \cdot \frac{l\_m}{Om}\right)\right) + t\_1\\
t_3 := \left(2 \cdot n\right) \cdot U\\
t_4 := t\_3 \cdot \left(\left(t - 2 \cdot \frac{l\_m \cdot l\_m}{Om}\right) + t\_1\right)\\
\mathbf{if}\;t\_4 \leq 0:\\
\;\;\;\;\sqrt{\left(2 \cdot n\right) \cdot \left(U \cdot t\_2\right)}\\
\mathbf{elif}\;t\_4 \leq \infty:\\
\;\;\;\;\sqrt{t\_3 \cdot t\_2}\\
\mathbf{else}:\\
\;\;\;\;\sqrt{U \cdot \left(n \cdot \left(\frac{n \cdot \left(U* - U\right)}{{Om}^{2}} - \frac{2}{Om}\right)\right)} \cdot \left(l\_m \cdot \sqrt{2}\right)\\
\end{array}
\end{array}
if (*.f64 (*.f64 (*.f64 2 n) U) (-.f64 (-.f64 t (*.f64 2 (/.f64 (*.f64 l l) Om))) (*.f64 (*.f64 n (pow.f64 (/.f64 l Om) 2)) (-.f64 U U*)))) < 0.0Initial program 3.6%
Simplified48.1%
if 0.0 < (*.f64 (*.f64 (*.f64 2 n) U) (-.f64 (-.f64 t (*.f64 2 (/.f64 (*.f64 l l) Om))) (*.f64 (*.f64 n (pow.f64 (/.f64 l Om) 2)) (-.f64 U U*)))) < +inf.0Initial program 66.1%
associate-*r/71.5%
*-commutative71.5%
Applied egg-rr71.5%
if +inf.0 < (*.f64 (*.f64 (*.f64 2 n) U) (-.f64 (-.f64 t (*.f64 2 (/.f64 (*.f64 l l) Om))) (*.f64 (*.f64 n (pow.f64 (/.f64 l Om) 2)) (-.f64 U U*)))) Initial program 0.0%
Simplified7.2%
Taylor expanded in l around inf 25.3%
associate-*r/25.3%
metadata-eval25.3%
Simplified25.3%
Final simplification62.1%
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)) (- U* U)))
(t_2 (+ (- t (* 2.0 (* l_m (/ l_m Om)))) t_1))
(t_3 (* (* 2.0 n) U))
(t_4 (* t_3 (+ (- t (* 2.0 (/ (* l_m l_m) Om))) t_1))))
(if (<= t_4 0.0)
(sqrt (* (* 2.0 n) (* U t_2)))
(if (<= t_4 INFINITY)
(sqrt (* t_3 t_2))
(sqrt
(* 2.0 (* n (* U (* U* (* (pow l_m 2.0) (/ n (pow Om 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 * pow((l_m / Om), 2.0)) * (U_42_ - U);
double t_2 = (t - (2.0 * (l_m * (l_m / Om)))) + t_1;
double t_3 = (2.0 * n) * U;
double t_4 = t_3 * ((t - (2.0 * ((l_m * l_m) / Om))) + t_1);
double tmp;
if (t_4 <= 0.0) {
tmp = sqrt(((2.0 * n) * (U * t_2)));
} else if (t_4 <= ((double) INFINITY)) {
tmp = sqrt((t_3 * t_2));
} else {
tmp = sqrt((2.0 * (n * (U * (U_42_ * (pow(l_m, 2.0) * (n / pow(Om, 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 * Math.pow((l_m / Om), 2.0)) * (U_42_ - U);
double t_2 = (t - (2.0 * (l_m * (l_m / Om)))) + t_1;
double t_3 = (2.0 * n) * U;
double t_4 = t_3 * ((t - (2.0 * ((l_m * l_m) / Om))) + t_1);
double tmp;
if (t_4 <= 0.0) {
tmp = Math.sqrt(((2.0 * n) * (U * t_2)));
} else if (t_4 <= Double.POSITIVE_INFINITY) {
tmp = Math.sqrt((t_3 * t_2));
} else {
tmp = Math.sqrt((2.0 * (n * (U * (U_42_ * (Math.pow(l_m, 2.0) * (n / Math.pow(Om, 2.0))))))));
}
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)) * (U_42_ - U) t_2 = (t - (2.0 * (l_m * (l_m / Om)))) + t_1 t_3 = (2.0 * n) * U t_4 = t_3 * ((t - (2.0 * ((l_m * l_m) / Om))) + t_1) tmp = 0 if t_4 <= 0.0: tmp = math.sqrt(((2.0 * n) * (U * t_2))) elif t_4 <= math.inf: tmp = math.sqrt((t_3 * t_2)) else: tmp = math.sqrt((2.0 * (n * (U * (U_42_ * (math.pow(l_m, 2.0) * (n / math.pow(Om, 2.0)))))))) return tmp
l_m = abs(l) function code(n, U, t, l_m, Om, U_42_) t_1 = Float64(Float64(n * (Float64(l_m / Om) ^ 2.0)) * Float64(U_42_ - U)) t_2 = Float64(Float64(t - Float64(2.0 * Float64(l_m * Float64(l_m / Om)))) + t_1) t_3 = Float64(Float64(2.0 * n) * U) t_4 = Float64(t_3 * Float64(Float64(t - Float64(2.0 * Float64(Float64(l_m * l_m) / Om))) + t_1)) tmp = 0.0 if (t_4 <= 0.0) tmp = sqrt(Float64(Float64(2.0 * n) * Float64(U * t_2))); elseif (t_4 <= Inf) tmp = sqrt(Float64(t_3 * t_2)); else tmp = sqrt(Float64(2.0 * Float64(n * Float64(U * Float64(U_42_ * Float64((l_m ^ 2.0) * Float64(n / (Om ^ 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 * ((l_m / Om) ^ 2.0)) * (U_42_ - U); t_2 = (t - (2.0 * (l_m * (l_m / Om)))) + t_1; t_3 = (2.0 * n) * U; t_4 = t_3 * ((t - (2.0 * ((l_m * l_m) / Om))) + t_1); tmp = 0.0; if (t_4 <= 0.0) tmp = sqrt(((2.0 * n) * (U * t_2))); elseif (t_4 <= Inf) tmp = sqrt((t_3 * t_2)); else tmp = sqrt((2.0 * (n * (U * (U_42_ * ((l_m ^ 2.0) * (n / (Om ^ 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 * N[Power[N[(l$95$m / Om), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision] * N[(U$42$ - U), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(t - N[(2.0 * N[(l$95$m * N[(l$95$m / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision]}, Block[{t$95$3 = N[(N[(2.0 * n), $MachinePrecision] * U), $MachinePrecision]}, Block[{t$95$4 = N[(t$95$3 * N[(N[(t - N[(2.0 * N[(N[(l$95$m * l$95$m), $MachinePrecision] / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$4, 0.0], N[Sqrt[N[(N[(2.0 * n), $MachinePrecision] * N[(U * t$95$2), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], If[LessEqual[t$95$4, Infinity], N[Sqrt[N[(t$95$3 * t$95$2), $MachinePrecision]], $MachinePrecision], N[Sqrt[N[(2.0 * N[(n * N[(U * N[(U$42$ * N[(N[Power[l$95$m, 2.0], $MachinePrecision] * N[(n / N[Power[Om, 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]]]]]]]
\begin{array}{l}
l_m = \left|\ell\right|
\\
\begin{array}{l}
t_1 := \left(n \cdot {\left(\frac{l\_m}{Om}\right)}^{2}\right) \cdot \left(U* - U\right)\\
t_2 := \left(t - 2 \cdot \left(l\_m \cdot \frac{l\_m}{Om}\right)\right) + t\_1\\
t_3 := \left(2 \cdot n\right) \cdot U\\
t_4 := t\_3 \cdot \left(\left(t - 2 \cdot \frac{l\_m \cdot l\_m}{Om}\right) + t\_1\right)\\
\mathbf{if}\;t\_4 \leq 0:\\
\;\;\;\;\sqrt{\left(2 \cdot n\right) \cdot \left(U \cdot t\_2\right)}\\
\mathbf{elif}\;t\_4 \leq \infty:\\
\;\;\;\;\sqrt{t\_3 \cdot t\_2}\\
\mathbf{else}:\\
\;\;\;\;\sqrt{2 \cdot \left(n \cdot \left(U \cdot \left(U* \cdot \left({l\_m}^{2} \cdot \frac{n}{{Om}^{2}}\right)\right)\right)\right)}\\
\end{array}
\end{array}
if (*.f64 (*.f64 (*.f64 2 n) U) (-.f64 (-.f64 t (*.f64 2 (/.f64 (*.f64 l l) Om))) (*.f64 (*.f64 n (pow.f64 (/.f64 l Om) 2)) (-.f64 U U*)))) < 0.0Initial program 3.6%
Simplified48.1%
if 0.0 < (*.f64 (*.f64 (*.f64 2 n) U) (-.f64 (-.f64 t (*.f64 2 (/.f64 (*.f64 l l) Om))) (*.f64 (*.f64 n (pow.f64 (/.f64 l Om) 2)) (-.f64 U U*)))) < +inf.0Initial program 66.1%
associate-*r/71.5%
*-commutative71.5%
Applied egg-rr71.5%
if +inf.0 < (*.f64 (*.f64 (*.f64 2 n) U) (-.f64 (-.f64 t (*.f64 2 (/.f64 (*.f64 l l) Om))) (*.f64 (*.f64 n (pow.f64 (/.f64 l Om) 2)) (-.f64 U U*)))) Initial program 0.0%
Simplified7.2%
Taylor expanded in U* around inf 35.5%
associate-/l*35.5%
associate-/l*35.4%
Simplified35.4%
Final simplification63.4%
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)) (- U* U)))
(t_2 (+ (- t (* 2.0 (* l_m (/ l_m Om)))) t_1))
(t_3 (* (* 2.0 n) U))
(t_4 (* t_3 (+ (- t (* 2.0 (/ (* l_m l_m) Om))) t_1))))
(if (<= t_4 0.0)
(sqrt (* (* 2.0 n) (* U t_2)))
(if (<= t_4 INFINITY)
(sqrt (* t_3 t_2))
(sqrt
(* 2.0 (* n (* U (/ (* n (* U* (pow l_m 2.0))) (pow Om 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 * pow((l_m / Om), 2.0)) * (U_42_ - U);
double t_2 = (t - (2.0 * (l_m * (l_m / Om)))) + t_1;
double t_3 = (2.0 * n) * U;
double t_4 = t_3 * ((t - (2.0 * ((l_m * l_m) / Om))) + t_1);
double tmp;
if (t_4 <= 0.0) {
tmp = sqrt(((2.0 * n) * (U * t_2)));
} else if (t_4 <= ((double) INFINITY)) {
tmp = sqrt((t_3 * t_2));
} else {
tmp = sqrt((2.0 * (n * (U * ((n * (U_42_ * pow(l_m, 2.0))) / pow(Om, 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 * Math.pow((l_m / Om), 2.0)) * (U_42_ - U);
double t_2 = (t - (2.0 * (l_m * (l_m / Om)))) + t_1;
double t_3 = (2.0 * n) * U;
double t_4 = t_3 * ((t - (2.0 * ((l_m * l_m) / Om))) + t_1);
double tmp;
if (t_4 <= 0.0) {
tmp = Math.sqrt(((2.0 * n) * (U * t_2)));
} else if (t_4 <= Double.POSITIVE_INFINITY) {
tmp = Math.sqrt((t_3 * t_2));
} else {
tmp = Math.sqrt((2.0 * (n * (U * ((n * (U_42_ * Math.pow(l_m, 2.0))) / Math.pow(Om, 2.0))))));
}
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)) * (U_42_ - U) t_2 = (t - (2.0 * (l_m * (l_m / Om)))) + t_1 t_3 = (2.0 * n) * U t_4 = t_3 * ((t - (2.0 * ((l_m * l_m) / Om))) + t_1) tmp = 0 if t_4 <= 0.0: tmp = math.sqrt(((2.0 * n) * (U * t_2))) elif t_4 <= math.inf: tmp = math.sqrt((t_3 * t_2)) else: tmp = math.sqrt((2.0 * (n * (U * ((n * (U_42_ * math.pow(l_m, 2.0))) / math.pow(Om, 2.0)))))) return tmp
l_m = abs(l) function code(n, U, t, l_m, Om, U_42_) t_1 = Float64(Float64(n * (Float64(l_m / Om) ^ 2.0)) * Float64(U_42_ - U)) t_2 = Float64(Float64(t - Float64(2.0 * Float64(l_m * Float64(l_m / Om)))) + t_1) t_3 = Float64(Float64(2.0 * n) * U) t_4 = Float64(t_3 * Float64(Float64(t - Float64(2.0 * Float64(Float64(l_m * l_m) / Om))) + t_1)) tmp = 0.0 if (t_4 <= 0.0) tmp = sqrt(Float64(Float64(2.0 * n) * Float64(U * t_2))); elseif (t_4 <= Inf) tmp = sqrt(Float64(t_3 * t_2)); else tmp = sqrt(Float64(2.0 * Float64(n * Float64(U * Float64(Float64(n * Float64(U_42_ * (l_m ^ 2.0))) / (Om ^ 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 * ((l_m / Om) ^ 2.0)) * (U_42_ - U); t_2 = (t - (2.0 * (l_m * (l_m / Om)))) + t_1; t_3 = (2.0 * n) * U; t_4 = t_3 * ((t - (2.0 * ((l_m * l_m) / Om))) + t_1); tmp = 0.0; if (t_4 <= 0.0) tmp = sqrt(((2.0 * n) * (U * t_2))); elseif (t_4 <= Inf) tmp = sqrt((t_3 * t_2)); else tmp = sqrt((2.0 * (n * (U * ((n * (U_42_ * (l_m ^ 2.0))) / (Om ^ 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 * N[Power[N[(l$95$m / Om), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision] * N[(U$42$ - U), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(t - N[(2.0 * N[(l$95$m * N[(l$95$m / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision]}, Block[{t$95$3 = N[(N[(2.0 * n), $MachinePrecision] * U), $MachinePrecision]}, Block[{t$95$4 = N[(t$95$3 * N[(N[(t - N[(2.0 * N[(N[(l$95$m * l$95$m), $MachinePrecision] / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$4, 0.0], N[Sqrt[N[(N[(2.0 * n), $MachinePrecision] * N[(U * t$95$2), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], If[LessEqual[t$95$4, Infinity], N[Sqrt[N[(t$95$3 * t$95$2), $MachinePrecision]], $MachinePrecision], N[Sqrt[N[(2.0 * N[(n * N[(U * N[(N[(n * N[(U$42$ * N[Power[l$95$m, 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[Power[Om, 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]]]]]]]
\begin{array}{l}
l_m = \left|\ell\right|
\\
\begin{array}{l}
t_1 := \left(n \cdot {\left(\frac{l\_m}{Om}\right)}^{2}\right) \cdot \left(U* - U\right)\\
t_2 := \left(t - 2 \cdot \left(l\_m \cdot \frac{l\_m}{Om}\right)\right) + t\_1\\
t_3 := \left(2 \cdot n\right) \cdot U\\
t_4 := t\_3 \cdot \left(\left(t - 2 \cdot \frac{l\_m \cdot l\_m}{Om}\right) + t\_1\right)\\
\mathbf{if}\;t\_4 \leq 0:\\
\;\;\;\;\sqrt{\left(2 \cdot n\right) \cdot \left(U \cdot t\_2\right)}\\
\mathbf{elif}\;t\_4 \leq \infty:\\
\;\;\;\;\sqrt{t\_3 \cdot t\_2}\\
\mathbf{else}:\\
\;\;\;\;\sqrt{2 \cdot \left(n \cdot \left(U \cdot \frac{n \cdot \left(U* \cdot {l\_m}^{2}\right)}{{Om}^{2}}\right)\right)}\\
\end{array}
\end{array}
if (*.f64 (*.f64 (*.f64 2 n) U) (-.f64 (-.f64 t (*.f64 2 (/.f64 (*.f64 l l) Om))) (*.f64 (*.f64 n (pow.f64 (/.f64 l Om) 2)) (-.f64 U U*)))) < 0.0Initial program 3.6%
Simplified48.1%
if 0.0 < (*.f64 (*.f64 (*.f64 2 n) U) (-.f64 (-.f64 t (*.f64 2 (/.f64 (*.f64 l l) Om))) (*.f64 (*.f64 n (pow.f64 (/.f64 l Om) 2)) (-.f64 U U*)))) < +inf.0Initial program 66.1%
associate-*r/71.5%
*-commutative71.5%
Applied egg-rr71.5%
if +inf.0 < (*.f64 (*.f64 (*.f64 2 n) U) (-.f64 (-.f64 t (*.f64 2 (/.f64 (*.f64 l l) Om))) (*.f64 (*.f64 n (pow.f64 (/.f64 l Om) 2)) (-.f64 U U*)))) Initial program 0.0%
Simplified7.2%
Taylor expanded in U* around inf 35.5%
associate-*r*35.5%
Simplified35.5%
Final simplification63.5%
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)) (- U* U)))
(t_2 (+ (- t (* 2.0 (* l_m (/ l_m Om)))) t_1))
(t_3 (* (* 2.0 n) U))
(t_4 (* t_3 (+ (- t (* 2.0 (/ (* l_m l_m) Om))) t_1))))
(if (<= t_4 0.0)
(sqrt (* (* 2.0 n) (* U t_2)))
(if (<= t_4 INFINITY)
(sqrt (* t_3 t_2))
(* 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 t_1 = (n * pow((l_m / Om), 2.0)) * (U_42_ - U);
double t_2 = (t - (2.0 * (l_m * (l_m / Om)))) + t_1;
double t_3 = (2.0 * n) * U;
double t_4 = t_3 * ((t - (2.0 * ((l_m * l_m) / Om))) + t_1);
double tmp;
if (t_4 <= 0.0) {
tmp = sqrt(((2.0 * n) * (U * t_2)));
} else if (t_4 <= ((double) INFINITY)) {
tmp = sqrt((t_3 * t_2));
} else {
tmp = l_m * (((n * sqrt(2.0)) / Om) * sqrt((U * 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)) * (U_42_ - U);
double t_2 = (t - (2.0 * (l_m * (l_m / Om)))) + t_1;
double t_3 = (2.0 * n) * U;
double t_4 = t_3 * ((t - (2.0 * ((l_m * l_m) / Om))) + t_1);
double tmp;
if (t_4 <= 0.0) {
tmp = Math.sqrt(((2.0 * n) * (U * t_2)));
} else if (t_4 <= Double.POSITIVE_INFINITY) {
tmp = Math.sqrt((t_3 * t_2));
} 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_): t_1 = (n * math.pow((l_m / Om), 2.0)) * (U_42_ - U) t_2 = (t - (2.0 * (l_m * (l_m / Om)))) + t_1 t_3 = (2.0 * n) * U t_4 = t_3 * ((t - (2.0 * ((l_m * l_m) / Om))) + t_1) tmp = 0 if t_4 <= 0.0: tmp = math.sqrt(((2.0 * n) * (U * t_2))) elif t_4 <= math.inf: tmp = math.sqrt((t_3 * t_2)) 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_) t_1 = Float64(Float64(n * (Float64(l_m / Om) ^ 2.0)) * Float64(U_42_ - U)) t_2 = Float64(Float64(t - Float64(2.0 * Float64(l_m * Float64(l_m / Om)))) + t_1) t_3 = Float64(Float64(2.0 * n) * U) t_4 = Float64(t_3 * Float64(Float64(t - Float64(2.0 * Float64(Float64(l_m * l_m) / Om))) + t_1)) tmp = 0.0 if (t_4 <= 0.0) tmp = sqrt(Float64(Float64(2.0 * n) * Float64(U * t_2))); elseif (t_4 <= Inf) tmp = sqrt(Float64(t_3 * t_2)); else tmp = Float64(l_m * Float64(Float64(Float64(n * 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_) t_1 = (n * ((l_m / Om) ^ 2.0)) * (U_42_ - U); t_2 = (t - (2.0 * (l_m * (l_m / Om)))) + t_1; t_3 = (2.0 * n) * U; t_4 = t_3 * ((t - (2.0 * ((l_m * l_m) / Om))) + t_1); tmp = 0.0; if (t_4 <= 0.0) tmp = sqrt(((2.0 * n) * (U * t_2))); elseif (t_4 <= Inf) tmp = sqrt((t_3 * t_2)); 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$_] := Block[{t$95$1 = N[(N[(n * N[Power[N[(l$95$m / Om), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision] * N[(U$42$ - U), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(t - N[(2.0 * N[(l$95$m * N[(l$95$m / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision]}, Block[{t$95$3 = N[(N[(2.0 * n), $MachinePrecision] * U), $MachinePrecision]}, Block[{t$95$4 = N[(t$95$3 * N[(N[(t - N[(2.0 * N[(N[(l$95$m * l$95$m), $MachinePrecision] / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$4, 0.0], N[Sqrt[N[(N[(2.0 * n), $MachinePrecision] * N[(U * t$95$2), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], If[LessEqual[t$95$4, Infinity], N[Sqrt[N[(t$95$3 * t$95$2), $MachinePrecision]], $MachinePrecision], N[(l$95$m * N[(N[(N[(n * N[Sqrt[2.0], $MachinePrecision]), $MachinePrecision] / Om), $MachinePrecision] * N[Sqrt[N[(U * U$42$), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
l_m = \left|\ell\right|
\\
\begin{array}{l}
t_1 := \left(n \cdot {\left(\frac{l\_m}{Om}\right)}^{2}\right) \cdot \left(U* - U\right)\\
t_2 := \left(t - 2 \cdot \left(l\_m \cdot \frac{l\_m}{Om}\right)\right) + t\_1\\
t_3 := \left(2 \cdot n\right) \cdot U\\
t_4 := t\_3 \cdot \left(\left(t - 2 \cdot \frac{l\_m \cdot l\_m}{Om}\right) + t\_1\right)\\
\mathbf{if}\;t\_4 \leq 0:\\
\;\;\;\;\sqrt{\left(2 \cdot n\right) \cdot \left(U \cdot t\_2\right)}\\
\mathbf{elif}\;t\_4 \leq \infty:\\
\;\;\;\;\sqrt{t\_3 \cdot t\_2}\\
\mathbf{else}:\\
\;\;\;\;l\_m \cdot \left(\frac{n \cdot \sqrt{2}}{Om} \cdot \sqrt{U \cdot U*}\right)\\
\end{array}
\end{array}
if (*.f64 (*.f64 (*.f64 2 n) U) (-.f64 (-.f64 t (*.f64 2 (/.f64 (*.f64 l l) Om))) (*.f64 (*.f64 n (pow.f64 (/.f64 l Om) 2)) (-.f64 U U*)))) < 0.0Initial program 3.6%
Simplified48.1%
if 0.0 < (*.f64 (*.f64 (*.f64 2 n) U) (-.f64 (-.f64 t (*.f64 2 (/.f64 (*.f64 l l) Om))) (*.f64 (*.f64 n (pow.f64 (/.f64 l Om) 2)) (-.f64 U U*)))) < +inf.0Initial program 66.1%
associate-*r/71.5%
*-commutative71.5%
Applied egg-rr71.5%
if +inf.0 < (*.f64 (*.f64 (*.f64 2 n) U) (-.f64 (-.f64 t (*.f64 2 (/.f64 (*.f64 l l) Om))) (*.f64 (*.f64 n (pow.f64 (/.f64 l Om) 2)) (-.f64 U U*)))) Initial program 0.0%
Simplified7.2%
Taylor expanded in U* around inf 35.5%
associate-*r*35.5%
Simplified35.5%
Taylor expanded in n around 0 22.9%
associate-/l*28.7%
associate-*l*28.8%
Simplified28.8%
Final simplification62.6%
l_m = (fabs.f64 l)
(FPCore (n U t l_m Om U*)
:precision binary64
(let* ((t_1 (/ (pow l_m 2.0) Om)) (t_2 (* 2.0 (* U (* n t)))))
(if (<= l_m 8e-286)
(sqrt t_2)
(if (<= l_m 1.75e-279)
(* (sqrt (* 2.0 (* n U))) (sqrt t))
(if (<= l_m 3.95e-168)
(sqrt (fabs t_2))
(if (<= l_m 2.5e-20)
(sqrt (* 2.0 (* n (* U (+ t (* -2.0 t_1))))))
(if (<= l_m 1.06e+169)
(sqrt (* 2.0 (* U (* n (- t (* 2.0 t_1))))))
(* 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 t_1 = pow(l_m, 2.0) / Om;
double t_2 = 2.0 * (U * (n * t));
double tmp;
if (l_m <= 8e-286) {
tmp = sqrt(t_2);
} else if (l_m <= 1.75e-279) {
tmp = sqrt((2.0 * (n * U))) * sqrt(t);
} else if (l_m <= 3.95e-168) {
tmp = sqrt(fabs(t_2));
} else if (l_m <= 2.5e-20) {
tmp = sqrt((2.0 * (n * (U * (t + (-2.0 * t_1))))));
} else if (l_m <= 1.06e+169) {
tmp = sqrt((2.0 * (U * (n * (t - (2.0 * t_1))))));
} 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) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = (l_m ** 2.0d0) / om
t_2 = 2.0d0 * (u * (n * t))
if (l_m <= 8d-286) then
tmp = sqrt(t_2)
else if (l_m <= 1.75d-279) then
tmp = sqrt((2.0d0 * (n * u))) * sqrt(t)
else if (l_m <= 3.95d-168) then
tmp = sqrt(abs(t_2))
else if (l_m <= 2.5d-20) then
tmp = sqrt((2.0d0 * (n * (u * (t + ((-2.0d0) * t_1))))))
else if (l_m <= 1.06d+169) then
tmp = sqrt((2.0d0 * (u * (n * (t - (2.0d0 * t_1))))))
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 t_1 = Math.pow(l_m, 2.0) / Om;
double t_2 = 2.0 * (U * (n * t));
double tmp;
if (l_m <= 8e-286) {
tmp = Math.sqrt(t_2);
} else if (l_m <= 1.75e-279) {
tmp = Math.sqrt((2.0 * (n * U))) * Math.sqrt(t);
} else if (l_m <= 3.95e-168) {
tmp = Math.sqrt(Math.abs(t_2));
} else if (l_m <= 2.5e-20) {
tmp = Math.sqrt((2.0 * (n * (U * (t + (-2.0 * t_1))))));
} else if (l_m <= 1.06e+169) {
tmp = Math.sqrt((2.0 * (U * (n * (t - (2.0 * t_1))))));
} 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_): t_1 = math.pow(l_m, 2.0) / Om t_2 = 2.0 * (U * (n * t)) tmp = 0 if l_m <= 8e-286: tmp = math.sqrt(t_2) elif l_m <= 1.75e-279: tmp = math.sqrt((2.0 * (n * U))) * math.sqrt(t) elif l_m <= 3.95e-168: tmp = math.sqrt(math.fabs(t_2)) elif l_m <= 2.5e-20: tmp = math.sqrt((2.0 * (n * (U * (t + (-2.0 * t_1)))))) elif l_m <= 1.06e+169: tmp = math.sqrt((2.0 * (U * (n * (t - (2.0 * t_1)))))) 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_) t_1 = Float64((l_m ^ 2.0) / Om) t_2 = Float64(2.0 * Float64(U * Float64(n * t))) tmp = 0.0 if (l_m <= 8e-286) tmp = sqrt(t_2); elseif (l_m <= 1.75e-279) tmp = Float64(sqrt(Float64(2.0 * Float64(n * U))) * sqrt(t)); elseif (l_m <= 3.95e-168) tmp = sqrt(abs(t_2)); elseif (l_m <= 2.5e-20) tmp = sqrt(Float64(2.0 * Float64(n * Float64(U * Float64(t + Float64(-2.0 * t_1)))))); elseif (l_m <= 1.06e+169) tmp = sqrt(Float64(2.0 * Float64(U * Float64(n * Float64(t - Float64(2.0 * t_1)))))); else tmp = Float64(l_m * Float64(Float64(Float64(n * 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_) t_1 = (l_m ^ 2.0) / Om; t_2 = 2.0 * (U * (n * t)); tmp = 0.0; if (l_m <= 8e-286) tmp = sqrt(t_2); elseif (l_m <= 1.75e-279) tmp = sqrt((2.0 * (n * U))) * sqrt(t); elseif (l_m <= 3.95e-168) tmp = sqrt(abs(t_2)); elseif (l_m <= 2.5e-20) tmp = sqrt((2.0 * (n * (U * (t + (-2.0 * t_1)))))); elseif (l_m <= 1.06e+169) tmp = sqrt((2.0 * (U * (n * (t - (2.0 * t_1)))))); 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$_] := Block[{t$95$1 = N[(N[Power[l$95$m, 2.0], $MachinePrecision] / Om), $MachinePrecision]}, Block[{t$95$2 = N[(2.0 * N[(U * N[(n * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[l$95$m, 8e-286], N[Sqrt[t$95$2], $MachinePrecision], If[LessEqual[l$95$m, 1.75e-279], N[(N[Sqrt[N[(2.0 * N[(n * U), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * N[Sqrt[t], $MachinePrecision]), $MachinePrecision], If[LessEqual[l$95$m, 3.95e-168], N[Sqrt[N[Abs[t$95$2], $MachinePrecision]], $MachinePrecision], If[LessEqual[l$95$m, 2.5e-20], N[Sqrt[N[(2.0 * N[(n * N[(U * N[(t + N[(-2.0 * t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], If[LessEqual[l$95$m, 1.06e+169], N[Sqrt[N[(2.0 * N[(U * N[(n * N[(t - N[(2.0 * t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], N[(l$95$m * N[(N[(N[(n * N[Sqrt[2.0], $MachinePrecision]), $MachinePrecision] / Om), $MachinePrecision] * N[Sqrt[N[(U * U$42$), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]
\begin{array}{l}
l_m = \left|\ell\right|
\\
\begin{array}{l}
t_1 := \frac{{l\_m}^{2}}{Om}\\
t_2 := 2 \cdot \left(U \cdot \left(n \cdot t\right)\right)\\
\mathbf{if}\;l\_m \leq 8 \cdot 10^{-286}:\\
\;\;\;\;\sqrt{t\_2}\\
\mathbf{elif}\;l\_m \leq 1.75 \cdot 10^{-279}:\\
\;\;\;\;\sqrt{2 \cdot \left(n \cdot U\right)} \cdot \sqrt{t}\\
\mathbf{elif}\;l\_m \leq 3.95 \cdot 10^{-168}:\\
\;\;\;\;\sqrt{\left|t\_2\right|}\\
\mathbf{elif}\;l\_m \leq 2.5 \cdot 10^{-20}:\\
\;\;\;\;\sqrt{2 \cdot \left(n \cdot \left(U \cdot \left(t + -2 \cdot t\_1\right)\right)\right)}\\
\mathbf{elif}\;l\_m \leq 1.06 \cdot 10^{+169}:\\
\;\;\;\;\sqrt{2 \cdot \left(U \cdot \left(n \cdot \left(t - 2 \cdot t\_1\right)\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;l\_m \cdot \left(\frac{n \cdot \sqrt{2}}{Om} \cdot \sqrt{U \cdot U*}\right)\\
\end{array}
\end{array}
if l < 8.0000000000000004e-286Initial program 47.2%
Simplified54.5%
Taylor expanded in l around 0 36.9%
if 8.0000000000000004e-286 < l < 1.75000000000000005e-279Initial program 53.1%
Simplified53.1%
Taylor expanded in l around 0 29.1%
pow1/229.1%
associate-*r*53.1%
*-commutative53.1%
associate-*r*53.1%
associate-*l*53.1%
unpow-prod-down74.6%
pow1/274.6%
associate-*l*74.6%
pow1/274.6%
Applied egg-rr74.6%
if 1.75000000000000005e-279 < l < 3.9499999999999999e-168Initial program 72.0%
Simplified65.9%
Taylor expanded in l around 0 69.8%
associate-*r*65.4%
*-commutative65.4%
pow165.4%
metadata-eval65.4%
pow-prod-up65.4%
pow-prod-down31.3%
pow231.3%
*-commutative31.3%
associate-*r*32.1%
associate-*r*32.1%
Applied egg-rr32.1%
unpow1/232.1%
unpow232.1%
rem-sqrt-square69.8%
associate-*r*69.8%
Simplified69.8%
if 3.9499999999999999e-168 < l < 2.4999999999999999e-20Initial program 55.0%
Simplified63.9%
Taylor expanded in n around 0 57.4%
if 2.4999999999999999e-20 < l < 1.05999999999999995e169Initial program 51.1%
Simplified53.4%
Taylor expanded in n around 0 55.4%
if 1.05999999999999995e169 < l Initial program 14.6%
Simplified37.4%
Taylor expanded in U* around inf 33.1%
associate-*r*33.1%
Simplified33.1%
Taylor expanded in n around 0 34.2%
associate-/l*42.7%
associate-*l*42.7%
Simplified42.7%
Final simplification46.5%
l_m = (fabs.f64 l)
(FPCore (n U t l_m Om U*)
:precision binary64
(if (<= t -7.5e+179)
(sqrt (* 2.0 (* t (* n U))))
(if (<= t 2.25e+142)
(sqrt
(*
(* 2.0 n)
(*
U
(+
(- t (* 2.0 (* l_m (/ l_m Om))))
(* (* n (pow (/ l_m Om) 2.0)) (- U* U))))))
(* (sqrt (* 2.0 (* n U))) (sqrt t)))))l_m = fabs(l);
double code(double n, double U, double t, double l_m, double Om, double U_42_) {
double tmp;
if (t <= -7.5e+179) {
tmp = sqrt((2.0 * (t * (n * U))));
} else if (t <= 2.25e+142) {
tmp = sqrt(((2.0 * n) * (U * ((t - (2.0 * (l_m * (l_m / Om)))) + ((n * pow((l_m / Om), 2.0)) * (U_42_ - U))))));
} else {
tmp = sqrt((2.0 * (n * U))) * sqrt(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 (t <= (-7.5d+179)) then
tmp = sqrt((2.0d0 * (t * (n * u))))
else if (t <= 2.25d+142) then
tmp = sqrt(((2.0d0 * n) * (u * ((t - (2.0d0 * (l_m * (l_m / om)))) + ((n * ((l_m / om) ** 2.0d0)) * (u_42 - u))))))
else
tmp = sqrt((2.0d0 * (n * u))) * sqrt(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 (t <= -7.5e+179) {
tmp = Math.sqrt((2.0 * (t * (n * U))));
} else if (t <= 2.25e+142) {
tmp = 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))))));
} else {
tmp = Math.sqrt((2.0 * (n * U))) * Math.sqrt(t);
}
return tmp;
}
l_m = math.fabs(l) def code(n, U, t, l_m, Om, U_42_): tmp = 0 if t <= -7.5e+179: tmp = math.sqrt((2.0 * (t * (n * U)))) elif t <= 2.25e+142: tmp = 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)))))) else: tmp = math.sqrt((2.0 * (n * U))) * math.sqrt(t) return tmp
l_m = abs(l) function code(n, U, t, l_m, Om, U_42_) tmp = 0.0 if (t <= -7.5e+179) tmp = sqrt(Float64(2.0 * Float64(t * Float64(n * U)))); elseif (t <= 2.25e+142) tmp = sqrt(Float64(Float64(2.0 * n) * Float64(U * Float64(Float64(t - Float64(2.0 * Float64(l_m * Float64(l_m / Om)))) + Float64(Float64(n * (Float64(l_m / Om) ^ 2.0)) * Float64(U_42_ - U)))))); else tmp = Float64(sqrt(Float64(2.0 * Float64(n * U))) * sqrt(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 (t <= -7.5e+179) tmp = sqrt((2.0 * (t * (n * U)))); elseif (t <= 2.25e+142) tmp = sqrt(((2.0 * n) * (U * ((t - (2.0 * (l_m * (l_m / Om)))) + ((n * ((l_m / Om) ^ 2.0)) * (U_42_ - U)))))); else tmp = sqrt((2.0 * (n * U))) * sqrt(t); end tmp_2 = tmp; end
l_m = N[Abs[l], $MachinePrecision] code[n_, U_, t_, l$95$m_, Om_, U$42$_] := If[LessEqual[t, -7.5e+179], N[Sqrt[N[(2.0 * N[(t * N[(n * U), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], If[LessEqual[t, 2.25e+142], N[Sqrt[N[(N[(2.0 * n), $MachinePrecision] * N[(U * N[(N[(t - N[(2.0 * N[(l$95$m * N[(l$95$m / Om), $MachinePrecision]), $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]], $MachinePrecision], N[(N[Sqrt[N[(2.0 * N[(n * U), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * N[Sqrt[t], $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
l_m = \left|\ell\right|
\\
\begin{array}{l}
\mathbf{if}\;t \leq -7.5 \cdot 10^{+179}:\\
\;\;\;\;\sqrt{2 \cdot \left(t \cdot \left(n \cdot U\right)\right)}\\
\mathbf{elif}\;t \leq 2.25 \cdot 10^{+142}:\\
\;\;\;\;\sqrt{\left(2 \cdot n\right) \cdot \left(U \cdot \left(\left(t - 2 \cdot \left(l\_m \cdot \frac{l\_m}{Om}\right)\right) + \left(n \cdot {\left(\frac{l\_m}{Om}\right)}^{2}\right) \cdot \left(U* - U\right)\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;\sqrt{2 \cdot \left(n \cdot U\right)} \cdot \sqrt{t}\\
\end{array}
\end{array}
if t < -7.50000000000000007e179Initial program 32.8%
Simplified36.2%
Taylor expanded in l around 0 39.2%
associate-*r*47.8%
*-commutative47.8%
Simplified47.8%
if -7.50000000000000007e179 < t < 2.2499999999999999e142Initial program 51.2%
Simplified59.7%
if 2.2499999999999999e142 < t Initial program 48.2%
Simplified48.8%
Taylor expanded in l around 0 61.0%
pow1/263.7%
associate-*r*55.8%
*-commutative55.8%
associate-*r*55.8%
associate-*l*55.8%
unpow-prod-down69.8%
pow1/269.8%
associate-*l*69.8%
pow1/269.8%
Applied egg-rr69.8%
Final simplification59.8%
l_m = (fabs.f64 l)
(FPCore (n U t l_m Om U*)
:precision binary64
(if (<= l_m 8.2e-286)
(sqrt (* 2.0 (* U (* n t))))
(if (<= l_m 1.12e-278)
(* (sqrt (* 2.0 (* n U))) (sqrt t))
(if (<= l_m 4.4e+167)
(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 <= 8.2e-286) {
tmp = sqrt((2.0 * (U * (n * t))));
} else if (l_m <= 1.12e-278) {
tmp = sqrt((2.0 * (n * U))) * sqrt(t);
} else if (l_m <= 4.4e+167) {
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 <= 8.2d-286) then
tmp = sqrt((2.0d0 * (u * (n * t))))
else if (l_m <= 1.12d-278) then
tmp = sqrt((2.0d0 * (n * u))) * sqrt(t)
else if (l_m <= 4.4d+167) 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 <= 8.2e-286) {
tmp = Math.sqrt((2.0 * (U * (n * t))));
} else if (l_m <= 1.12e-278) {
tmp = Math.sqrt((2.0 * (n * U))) * Math.sqrt(t);
} else if (l_m <= 4.4e+167) {
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 <= 8.2e-286: tmp = math.sqrt((2.0 * (U * (n * t)))) elif l_m <= 1.12e-278: tmp = math.sqrt((2.0 * (n * U))) * math.sqrt(t) elif l_m <= 4.4e+167: 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 <= 8.2e-286) tmp = sqrt(Float64(2.0 * Float64(U * Float64(n * t)))); elseif (l_m <= 1.12e-278) tmp = Float64(sqrt(Float64(2.0 * Float64(n * U))) * sqrt(t)); elseif (l_m <= 4.4e+167) 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(Float64(Float64(n * 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 <= 8.2e-286) tmp = sqrt((2.0 * (U * (n * t)))); elseif (l_m <= 1.12e-278) tmp = sqrt((2.0 * (n * U))) * sqrt(t); elseif (l_m <= 4.4e+167) 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, 8.2e-286], N[Sqrt[N[(2.0 * N[(U * N[(n * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], If[LessEqual[l$95$m, 1.12e-278], N[(N[Sqrt[N[(2.0 * N[(n * U), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * N[Sqrt[t], $MachinePrecision]), $MachinePrecision], If[LessEqual[l$95$m, 4.4e+167], 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]), $MachinePrecision] / Om), $MachinePrecision] * N[Sqrt[N[(U * U$42$), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
l_m = \left|\ell\right|
\\
\begin{array}{l}
\mathbf{if}\;l\_m \leq 8.2 \cdot 10^{-286}:\\
\;\;\;\;\sqrt{2 \cdot \left(U \cdot \left(n \cdot t\right)\right)}\\
\mathbf{elif}\;l\_m \leq 1.12 \cdot 10^{-278}:\\
\;\;\;\;\sqrt{2 \cdot \left(n \cdot U\right)} \cdot \sqrt{t}\\
\mathbf{elif}\;l\_m \leq 4.4 \cdot 10^{+167}:\\
\;\;\;\;\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(\frac{n \cdot \sqrt{2}}{Om} \cdot \sqrt{U \cdot U*}\right)\\
\end{array}
\end{array}
if l < 8.2e-286Initial program 47.2%
Simplified54.5%
Taylor expanded in l around 0 36.9%
if 8.2e-286 < l < 1.12e-278Initial program 53.1%
Simplified53.1%
Taylor expanded in l around 0 29.1%
pow1/229.1%
associate-*r*53.1%
*-commutative53.1%
associate-*r*53.1%
associate-*l*53.1%
unpow-prod-down74.6%
pow1/274.6%
associate-*l*74.6%
pow1/274.6%
Applied egg-rr74.6%
if 1.12e-278 < l < 4.40000000000000007e167Initial program 58.3%
Simplified59.4%
Taylor expanded in n around 0 57.1%
if 4.40000000000000007e167 < l Initial program 14.6%
Simplified37.4%
Taylor expanded in U* around inf 33.1%
associate-*r*33.1%
Simplified33.1%
Taylor expanded in n around 0 34.2%
associate-/l*42.7%
associate-*l*42.7%
Simplified42.7%
Final simplification45.3%
l_m = (fabs.f64 l) (FPCore (n U t l_m Om U*) :precision binary64 (if (or (<= n -3.1e-111) (not (<= n 3.8e+84))) (pow (* t (* 2.0 (* n U))) 0.5) (sqrt (+ (* -4.0 (/ (* U (* n (pow l_m 2.0))) Om)) (* 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 <= -3.1e-111) || !(n <= 3.8e+84)) {
tmp = pow((t * (2.0 * (n * U))), 0.5);
} else {
tmp = sqrt(((-4.0 * ((U * (n * pow(l_m, 2.0))) / Om)) + (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 <= (-3.1d-111)) .or. (.not. (n <= 3.8d+84))) then
tmp = (t * (2.0d0 * (n * u))) ** 0.5d0
else
tmp = sqrt((((-4.0d0) * ((u * (n * (l_m ** 2.0d0))) / om)) + (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 <= -3.1e-111) || !(n <= 3.8e+84)) {
tmp = Math.pow((t * (2.0 * (n * U))), 0.5);
} else {
tmp = Math.sqrt(((-4.0 * ((U * (n * Math.pow(l_m, 2.0))) / Om)) + (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 <= -3.1e-111) or not (n <= 3.8e+84): tmp = math.pow((t * (2.0 * (n * U))), 0.5) else: tmp = math.sqrt(((-4.0 * ((U * (n * math.pow(l_m, 2.0))) / Om)) + (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 <= -3.1e-111) || !(n <= 3.8e+84)) tmp = Float64(t * Float64(2.0 * Float64(n * U))) ^ 0.5; else tmp = sqrt(Float64(Float64(-4.0 * Float64(Float64(U * Float64(n * (l_m ^ 2.0))) / Om)) + 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 <= -3.1e-111) || ~((n <= 3.8e+84))) tmp = (t * (2.0 * (n * U))) ^ 0.5; else tmp = sqrt(((-4.0 * ((U * (n * (l_m ^ 2.0))) / Om)) + (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[Or[LessEqual[n, -3.1e-111], N[Not[LessEqual[n, 3.8e+84]], $MachinePrecision]], N[Power[N[(t * N[(2.0 * N[(n * U), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 0.5], $MachinePrecision], N[Sqrt[N[(N[(-4.0 * N[(N[(U * N[(n * N[Power[l$95$m, 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / Om), $MachinePrecision]), $MachinePrecision] + 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}\;n \leq -3.1 \cdot 10^{-111} \lor \neg \left(n \leq 3.8 \cdot 10^{+84}\right):\\
\;\;\;\;{\left(t \cdot \left(2 \cdot \left(n \cdot U\right)\right)\right)}^{0.5}\\
\mathbf{else}:\\
\;\;\;\;\sqrt{-4 \cdot \frac{U \cdot \left(n \cdot {l\_m}^{2}\right)}{Om} + 2 \cdot \left(U \cdot \left(n \cdot t\right)\right)}\\
\end{array}
\end{array}
if n < -3.10000000000000014e-111 or 3.8000000000000001e84 < n Initial program 53.7%
Simplified57.1%
Taylor expanded in l around 0 39.6%
associate-*r*45.4%
*-commutative45.4%
Simplified45.4%
pow1/248.6%
associate-*r*48.6%
*-commutative48.6%
Applied egg-rr48.6%
if -3.10000000000000014e-111 < n < 3.8000000000000001e84Initial program 43.5%
Simplified54.3%
Taylor expanded in Om around inf 51.9%
Final simplification50.3%
l_m = (fabs.f64 l)
(FPCore (n U t l_m Om U*)
:precision binary64
(if (<= t -4e-199)
(sqrt (fabs (* 2.0 (* U (* n t)))))
(if (<= t 2e-252)
(* l_m (* (/ (* n (sqrt 2.0)) Om) (sqrt (* U U*))))
(* (sqrt (* 2.0 (* n U))) (sqrt t)))))l_m = fabs(l);
double code(double n, double U, double t, double l_m, double Om, double U_42_) {
double tmp;
if (t <= -4e-199) {
tmp = sqrt(fabs((2.0 * (U * (n * t)))));
} else if (t <= 2e-252) {
tmp = l_m * (((n * sqrt(2.0)) / Om) * sqrt((U * U_42_)));
} else {
tmp = sqrt((2.0 * (n * U))) * sqrt(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 (t <= (-4d-199)) then
tmp = sqrt(abs((2.0d0 * (u * (n * t)))))
else if (t <= 2d-252) then
tmp = l_m * (((n * sqrt(2.0d0)) / om) * sqrt((u * u_42)))
else
tmp = sqrt((2.0d0 * (n * u))) * sqrt(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 (t <= -4e-199) {
tmp = Math.sqrt(Math.abs((2.0 * (U * (n * t)))));
} else if (t <= 2e-252) {
tmp = l_m * (((n * Math.sqrt(2.0)) / Om) * Math.sqrt((U * U_42_)));
} else {
tmp = Math.sqrt((2.0 * (n * U))) * Math.sqrt(t);
}
return tmp;
}
l_m = math.fabs(l) def code(n, U, t, l_m, Om, U_42_): tmp = 0 if t <= -4e-199: tmp = math.sqrt(math.fabs((2.0 * (U * (n * t))))) elif t <= 2e-252: tmp = l_m * (((n * math.sqrt(2.0)) / Om) * math.sqrt((U * U_42_))) else: tmp = math.sqrt((2.0 * (n * U))) * math.sqrt(t) return tmp
l_m = abs(l) function code(n, U, t, l_m, Om, U_42_) tmp = 0.0 if (t <= -4e-199) tmp = sqrt(abs(Float64(2.0 * Float64(U * Float64(n * t))))); elseif (t <= 2e-252) tmp = Float64(l_m * Float64(Float64(Float64(n * sqrt(2.0)) / Om) * sqrt(Float64(U * U_42_)))); else tmp = Float64(sqrt(Float64(2.0 * Float64(n * U))) * sqrt(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 (t <= -4e-199) tmp = sqrt(abs((2.0 * (U * (n * t))))); elseif (t <= 2e-252) tmp = l_m * (((n * sqrt(2.0)) / Om) * sqrt((U * U_42_))); else tmp = sqrt((2.0 * (n * U))) * sqrt(t); end tmp_2 = tmp; end
l_m = N[Abs[l], $MachinePrecision] code[n_, U_, t_, l$95$m_, Om_, U$42$_] := If[LessEqual[t, -4e-199], N[Sqrt[N[Abs[N[(2.0 * N[(U * N[(n * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]], $MachinePrecision], If[LessEqual[t, 2e-252], N[(l$95$m * N[(N[(N[(n * N[Sqrt[2.0], $MachinePrecision]), $MachinePrecision] / Om), $MachinePrecision] * N[Sqrt[N[(U * U$42$), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[Sqrt[N[(2.0 * N[(n * U), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * N[Sqrt[t], $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
l_m = \left|\ell\right|
\\
\begin{array}{l}
\mathbf{if}\;t \leq -4 \cdot 10^{-199}:\\
\;\;\;\;\sqrt{\left|2 \cdot \left(U \cdot \left(n \cdot t\right)\right)\right|}\\
\mathbf{elif}\;t \leq 2 \cdot 10^{-252}:\\
\;\;\;\;l\_m \cdot \left(\frac{n \cdot \sqrt{2}}{Om} \cdot \sqrt{U \cdot U*}\right)\\
\mathbf{else}:\\
\;\;\;\;\sqrt{2 \cdot \left(n \cdot U\right)} \cdot \sqrt{t}\\
\end{array}
\end{array}
if t < -3.99999999999999993e-199Initial program 50.9%
Simplified57.5%
Taylor expanded in l around 0 39.1%
associate-*r*38.9%
*-commutative38.9%
pow138.9%
metadata-eval38.9%
pow-prod-up41.8%
pow-prod-down32.4%
pow232.4%
*-commutative32.4%
associate-*r*32.6%
associate-*r*32.6%
Applied egg-rr32.6%
unpow1/232.6%
unpow232.6%
rem-sqrt-square42.9%
associate-*r*42.9%
Simplified42.9%
if -3.99999999999999993e-199 < t < 1.99999999999999989e-252Initial program 25.4%
Simplified33.7%
Taylor expanded in U* around inf 11.7%
associate-*r*11.7%
Simplified11.7%
Taylor expanded in n around 0 21.5%
associate-/l*25.7%
associate-*l*25.8%
Simplified25.8%
if 1.99999999999999989e-252 < t Initial program 51.4%
Simplified55.5%
Taylor expanded in l around 0 47.3%
pow1/248.2%
associate-*r*48.0%
*-commutative48.0%
associate-*r*48.0%
associate-*l*48.0%
unpow-prod-down55.9%
pow1/255.9%
associate-*l*55.9%
pow1/255.9%
Applied egg-rr55.9%
Final simplification47.6%
l_m = (fabs.f64 l) (FPCore (n U t l_m Om U*) :precision binary64 (if (<= t 3.5e-271) (pow (* 2.0 (* n (* U t))) 0.5) (* (sqrt (* 2.0 (* n U))) (sqrt t))))
l_m = fabs(l);
double code(double n, double U, double t, double l_m, double Om, double U_42_) {
double tmp;
if (t <= 3.5e-271) {
tmp = pow((2.0 * (n * (U * t))), 0.5);
} else {
tmp = sqrt((2.0 * (n * U))) * sqrt(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 (t <= 3.5d-271) then
tmp = (2.0d0 * (n * (u * t))) ** 0.5d0
else
tmp = sqrt((2.0d0 * (n * u))) * sqrt(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 (t <= 3.5e-271) {
tmp = Math.pow((2.0 * (n * (U * t))), 0.5);
} else {
tmp = Math.sqrt((2.0 * (n * U))) * Math.sqrt(t);
}
return tmp;
}
l_m = math.fabs(l) def code(n, U, t, l_m, Om, U_42_): tmp = 0 if t <= 3.5e-271: tmp = math.pow((2.0 * (n * (U * t))), 0.5) else: tmp = math.sqrt((2.0 * (n * U))) * math.sqrt(t) return tmp
l_m = abs(l) function code(n, U, t, l_m, Om, U_42_) tmp = 0.0 if (t <= 3.5e-271) tmp = Float64(2.0 * Float64(n * Float64(U * t))) ^ 0.5; else tmp = Float64(sqrt(Float64(2.0 * Float64(n * U))) * sqrt(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 (t <= 3.5e-271) tmp = (2.0 * (n * (U * t))) ^ 0.5; else tmp = sqrt((2.0 * (n * U))) * sqrt(t); end tmp_2 = tmp; end
l_m = N[Abs[l], $MachinePrecision] code[n_, U_, t_, l$95$m_, Om_, U$42$_] := If[LessEqual[t, 3.5e-271], N[Power[N[(2.0 * N[(n * N[(U * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 0.5], $MachinePrecision], N[(N[Sqrt[N[(2.0 * N[(n * U), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * N[Sqrt[t], $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
l_m = \left|\ell\right|
\\
\begin{array}{l}
\mathbf{if}\;t \leq 3.5 \cdot 10^{-271}:\\
\;\;\;\;{\left(2 \cdot \left(n \cdot \left(U \cdot t\right)\right)\right)}^{0.5}\\
\mathbf{else}:\\
\;\;\;\;\sqrt{2 \cdot \left(n \cdot U\right)} \cdot \sqrt{t}\\
\end{array}
\end{array}
if t < 3.4999999999999999e-271Initial program 46.1%
Simplified53.1%
Taylor expanded in l around 0 33.1%
pow1/236.3%
Applied egg-rr36.3%
if 3.4999999999999999e-271 < t Initial program 51.0%
Simplified55.2%
Taylor expanded in l around 0 47.0%
pow1/247.8%
associate-*r*47.6%
*-commutative47.6%
associate-*r*47.6%
associate-*l*47.6%
unpow-prod-down55.4%
pow1/255.4%
associate-*l*55.4%
pow1/255.4%
Applied egg-rr55.4%
Final simplification45.8%
l_m = (fabs.f64 l) (FPCore (n U t l_m Om U*) :precision binary64 (if (<= n 1.45e-276) (sqrt (* 2.0 (* t (* n U)))) (pow (* 2.0 (* n (* U t))) 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 (n <= 1.45e-276) {
tmp = sqrt((2.0 * (t * (n * U))));
} else {
tmp = pow((2.0 * (n * (U * t))), 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 (n <= 1.45d-276) then
tmp = sqrt((2.0d0 * (t * (n * u))))
else
tmp = (2.0d0 * (n * (u * t))) ** 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 (n <= 1.45e-276) {
tmp = Math.sqrt((2.0 * (t * (n * U))));
} else {
tmp = Math.pow((2.0 * (n * (U * t))), 0.5);
}
return tmp;
}
l_m = math.fabs(l) def code(n, U, t, l_m, Om, U_42_): tmp = 0 if n <= 1.45e-276: tmp = math.sqrt((2.0 * (t * (n * U)))) else: tmp = math.pow((2.0 * (n * (U * t))), 0.5) return tmp
l_m = abs(l) function code(n, U, t, l_m, Om, U_42_) tmp = 0.0 if (n <= 1.45e-276) tmp = sqrt(Float64(2.0 * Float64(t * Float64(n * U)))); else tmp = Float64(2.0 * Float64(n * Float64(U * t))) ^ 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 (n <= 1.45e-276) tmp = sqrt((2.0 * (t * (n * U)))); else tmp = (2.0 * (n * (U * t))) ^ 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[n, 1.45e-276], N[Sqrt[N[(2.0 * N[(t * N[(n * U), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], N[Power[N[(2.0 * N[(n * N[(U * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 0.5], $MachinePrecision]]
\begin{array}{l}
l_m = \left|\ell\right|
\\
\begin{array}{l}
\mathbf{if}\;n \leq 1.45 \cdot 10^{-276}:\\
\;\;\;\;\sqrt{2 \cdot \left(t \cdot \left(n \cdot U\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;{\left(2 \cdot \left(n \cdot \left(U \cdot t\right)\right)\right)}^{0.5}\\
\end{array}
\end{array}
if n < 1.44999999999999994e-276Initial program 51.1%
Simplified52.9%
Taylor expanded in l around 0 41.5%
associate-*r*43.7%
*-commutative43.7%
Simplified43.7%
if 1.44999999999999994e-276 < n Initial program 45.7%
Simplified55.5%
Taylor expanded in l around 0 41.0%
pow1/242.7%
Applied egg-rr42.7%
Final simplification43.2%
l_m = (fabs.f64 l) (FPCore (n U t l_m Om U*) :precision binary64 (if (<= n 3e-272) (pow (* t (* 2.0 (* n U))) 0.5) (pow (* 2.0 (* n (* U t))) 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 (n <= 3e-272) {
tmp = pow((t * (2.0 * (n * U))), 0.5);
} else {
tmp = pow((2.0 * (n * (U * t))), 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 (n <= 3d-272) then
tmp = (t * (2.0d0 * (n * u))) ** 0.5d0
else
tmp = (2.0d0 * (n * (u * t))) ** 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 (n <= 3e-272) {
tmp = Math.pow((t * (2.0 * (n * U))), 0.5);
} else {
tmp = Math.pow((2.0 * (n * (U * t))), 0.5);
}
return tmp;
}
l_m = math.fabs(l) def code(n, U, t, l_m, Om, U_42_): tmp = 0 if n <= 3e-272: tmp = math.pow((t * (2.0 * (n * U))), 0.5) else: tmp = math.pow((2.0 * (n * (U * t))), 0.5) return tmp
l_m = abs(l) function code(n, U, t, l_m, Om, U_42_) tmp = 0.0 if (n <= 3e-272) tmp = Float64(t * Float64(2.0 * Float64(n * U))) ^ 0.5; else tmp = Float64(2.0 * Float64(n * Float64(U * t))) ^ 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 (n <= 3e-272) tmp = (t * (2.0 * (n * U))) ^ 0.5; else tmp = (2.0 * (n * (U * t))) ^ 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[n, 3e-272], N[Power[N[(t * N[(2.0 * N[(n * U), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 0.5], $MachinePrecision], N[Power[N[(2.0 * N[(n * N[(U * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 0.5], $MachinePrecision]]
\begin{array}{l}
l_m = \left|\ell\right|
\\
\begin{array}{l}
\mathbf{if}\;n \leq 3 \cdot 10^{-272}:\\
\;\;\;\;{\left(t \cdot \left(2 \cdot \left(n \cdot U\right)\right)\right)}^{0.5}\\
\mathbf{else}:\\
\;\;\;\;{\left(2 \cdot \left(n \cdot \left(U \cdot t\right)\right)\right)}^{0.5}\\
\end{array}
\end{array}
if n < 3.0000000000000003e-272Initial program 51.1%
Simplified52.9%
Taylor expanded in l around 0 41.5%
associate-*r*43.7%
*-commutative43.7%
Simplified43.7%
pow1/245.2%
associate-*r*45.2%
*-commutative45.2%
Applied egg-rr45.2%
if 3.0000000000000003e-272 < n Initial program 45.7%
Simplified55.5%
Taylor expanded in l around 0 41.0%
pow1/242.7%
Applied egg-rr42.7%
Final simplification44.0%
l_m = (fabs.f64 l) (FPCore (n U t l_m Om U*) :precision binary64 (if (<= n -4.9e-285) (sqrt (* 2.0 (* U (* n t)))) (sqrt (* 2.0 (* n (* U 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 <= -4.9e-285) {
tmp = sqrt((2.0 * (U * (n * t))));
} else {
tmp = sqrt((2.0 * (n * (U * 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 <= (-4.9d-285)) then
tmp = sqrt((2.0d0 * (u * (n * t))))
else
tmp = sqrt((2.0d0 * (n * (u * 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 <= -4.9e-285) {
tmp = Math.sqrt((2.0 * (U * (n * t))));
} else {
tmp = Math.sqrt((2.0 * (n * (U * t))));
}
return tmp;
}
l_m = math.fabs(l) def code(n, U, t, l_m, Om, U_42_): tmp = 0 if n <= -4.9e-285: tmp = math.sqrt((2.0 * (U * (n * t)))) else: tmp = math.sqrt((2.0 * (n * (U * t)))) return tmp
l_m = abs(l) function code(n, U, t, l_m, Om, U_42_) tmp = 0.0 if (n <= -4.9e-285) tmp = sqrt(Float64(2.0 * Float64(U * Float64(n * t)))); else tmp = sqrt(Float64(2.0 * Float64(n * Float64(U * 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 <= -4.9e-285) tmp = sqrt((2.0 * (U * (n * t)))); else tmp = sqrt((2.0 * (n * (U * 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, -4.9e-285], N[Sqrt[N[(2.0 * N[(U * N[(n * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], N[Sqrt[N[(2.0 * N[(n * N[(U * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]]
\begin{array}{l}
l_m = \left|\ell\right|
\\
\begin{array}{l}
\mathbf{if}\;n \leq -4.9 \cdot 10^{-285}:\\
\;\;\;\;\sqrt{2 \cdot \left(U \cdot \left(n \cdot t\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;\sqrt{2 \cdot \left(n \cdot \left(U \cdot t\right)\right)}\\
\end{array}
\end{array}
if n < -4.89999999999999975e-285Initial program 51.5%
Simplified54.1%
Taylor expanded in l around 0 42.6%
if -4.89999999999999975e-285 < n Initial program 45.7%
Simplified54.1%
Taylor expanded in l around 0 40.7%
Final simplification41.6%
l_m = (fabs.f64 l) (FPCore (n U t l_m Om U*) :precision binary64 (if (<= n 1.85e-272) (sqrt (* 2.0 (* t (* n U)))) (sqrt (* 2.0 (* n (* U 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.85e-272) {
tmp = sqrt((2.0 * (t * (n * U))));
} else {
tmp = sqrt((2.0 * (n * (U * 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.85d-272) then
tmp = sqrt((2.0d0 * (t * (n * u))))
else
tmp = sqrt((2.0d0 * (n * (u * 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.85e-272) {
tmp = Math.sqrt((2.0 * (t * (n * U))));
} else {
tmp = Math.sqrt((2.0 * (n * (U * t))));
}
return tmp;
}
l_m = math.fabs(l) def code(n, U, t, l_m, Om, U_42_): tmp = 0 if n <= 1.85e-272: tmp = math.sqrt((2.0 * (t * (n * U)))) else: tmp = math.sqrt((2.0 * (n * (U * t)))) return tmp
l_m = abs(l) function code(n, U, t, l_m, Om, U_42_) tmp = 0.0 if (n <= 1.85e-272) tmp = sqrt(Float64(2.0 * Float64(t * Float64(n * U)))); else tmp = sqrt(Float64(2.0 * Float64(n * Float64(U * 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.85e-272) tmp = sqrt((2.0 * (t * (n * U)))); else tmp = sqrt((2.0 * (n * (U * 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.85e-272], N[Sqrt[N[(2.0 * N[(t * N[(n * U), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], N[Sqrt[N[(2.0 * N[(n * N[(U * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]]
\begin{array}{l}
l_m = \left|\ell\right|
\\
\begin{array}{l}
\mathbf{if}\;n \leq 1.85 \cdot 10^{-272}:\\
\;\;\;\;\sqrt{2 \cdot \left(t \cdot \left(n \cdot U\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;\sqrt{2 \cdot \left(n \cdot \left(U \cdot t\right)\right)}\\
\end{array}
\end{array}
if n < 1.8499999999999998e-272Initial program 51.1%
Simplified52.9%
Taylor expanded in l around 0 41.5%
associate-*r*43.7%
*-commutative43.7%
Simplified43.7%
if 1.8499999999999998e-272 < n Initial program 45.7%
Simplified55.5%
Taylor expanded in l around 0 41.0%
Final simplification42.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 48.6%
Simplified54.1%
Taylor expanded in l around 0 40.0%
Final simplification40.0%
herbie shell --seed 2024041
(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*))))))