
(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}
(FPCore (n U t l Om U*)
:precision binary64
(let* ((t_1 (* (* n (pow (/ l Om) 2.0)) (- U* U)))
(t_2 (* (* (* 2.0 n) U) (+ (- t (* 2.0 (/ (* l l) Om))) t_1))))
(if (<= t_2 0.0)
(sqrt
(*
(* 2.0 n)
(*
U
(+
t
(/
(- (/ (* (pow l 2.0) (* n (- U* U))) Om) (* 2.0 (pow l 2.0)))
Om)))))
(if (<= t_2 INFINITY)
(sqrt (* (* 2.0 (* n U)) (+ t (- t_1 (* 2.0 (* l (/ l Om)))))))
(sqrt
(*
(* U -2.0)
(*
(* n (pow l 2.0))
(+ (/ 2.0 Om) (* n (/ (- U U*) (pow Om 2.0)))))))))))
double code(double n, double U, double t, double l, double Om, double U_42_) {
double t_1 = (n * pow((l / Om), 2.0)) * (U_42_ - U);
double t_2 = ((2.0 * n) * U) * ((t - (2.0 * ((l * l) / Om))) + t_1);
double tmp;
if (t_2 <= 0.0) {
tmp = sqrt(((2.0 * n) * (U * (t + ((((pow(l, 2.0) * (n * (U_42_ - U))) / Om) - (2.0 * pow(l, 2.0))) / Om)))));
} else if (t_2 <= ((double) INFINITY)) {
tmp = sqrt(((2.0 * (n * U)) * (t + (t_1 - (2.0 * (l * (l / Om)))))));
} else {
tmp = sqrt(((U * -2.0) * ((n * pow(l, 2.0)) * ((2.0 / Om) + (n * ((U - U_42_) / pow(Om, 2.0)))))));
}
return tmp;
}
public static double code(double n, double U, double t, double l, double Om, double U_42_) {
double t_1 = (n * Math.pow((l / Om), 2.0)) * (U_42_ - U);
double t_2 = ((2.0 * n) * U) * ((t - (2.0 * ((l * l) / Om))) + t_1);
double tmp;
if (t_2 <= 0.0) {
tmp = Math.sqrt(((2.0 * n) * (U * (t + ((((Math.pow(l, 2.0) * (n * (U_42_ - U))) / Om) - (2.0 * Math.pow(l, 2.0))) / Om)))));
} else if (t_2 <= Double.POSITIVE_INFINITY) {
tmp = Math.sqrt(((2.0 * (n * U)) * (t + (t_1 - (2.0 * (l * (l / Om)))))));
} else {
tmp = Math.sqrt(((U * -2.0) * ((n * Math.pow(l, 2.0)) * ((2.0 / Om) + (n * ((U - U_42_) / Math.pow(Om, 2.0)))))));
}
return tmp;
}
def code(n, U, t, l, Om, U_42_): t_1 = (n * math.pow((l / Om), 2.0)) * (U_42_ - U) t_2 = ((2.0 * n) * U) * ((t - (2.0 * ((l * l) / Om))) + t_1) tmp = 0 if t_2 <= 0.0: tmp = math.sqrt(((2.0 * n) * (U * (t + ((((math.pow(l, 2.0) * (n * (U_42_ - U))) / Om) - (2.0 * math.pow(l, 2.0))) / Om))))) elif t_2 <= math.inf: tmp = math.sqrt(((2.0 * (n * U)) * (t + (t_1 - (2.0 * (l * (l / Om))))))) else: tmp = math.sqrt(((U * -2.0) * ((n * math.pow(l, 2.0)) * ((2.0 / Om) + (n * ((U - U_42_) / math.pow(Om, 2.0))))))) return tmp
function code(n, U, t, l, Om, U_42_) t_1 = Float64(Float64(n * (Float64(l / Om) ^ 2.0)) * Float64(U_42_ - U)) t_2 = Float64(Float64(Float64(2.0 * n) * U) * Float64(Float64(t - Float64(2.0 * Float64(Float64(l * l) / Om))) + t_1)) tmp = 0.0 if (t_2 <= 0.0) tmp = sqrt(Float64(Float64(2.0 * n) * Float64(U * Float64(t + Float64(Float64(Float64(Float64((l ^ 2.0) * Float64(n * Float64(U_42_ - U))) / Om) - Float64(2.0 * (l ^ 2.0))) / Om))))); elseif (t_2 <= Inf) tmp = sqrt(Float64(Float64(2.0 * Float64(n * U)) * Float64(t + Float64(t_1 - Float64(2.0 * Float64(l * Float64(l / Om))))))); else tmp = sqrt(Float64(Float64(U * -2.0) * Float64(Float64(n * (l ^ 2.0)) * Float64(Float64(2.0 / Om) + Float64(n * Float64(Float64(U - U_42_) / (Om ^ 2.0))))))); end return tmp end
function tmp_2 = code(n, U, t, l, Om, U_42_) t_1 = (n * ((l / Om) ^ 2.0)) * (U_42_ - U); t_2 = ((2.0 * n) * U) * ((t - (2.0 * ((l * l) / Om))) + t_1); tmp = 0.0; if (t_2 <= 0.0) tmp = sqrt(((2.0 * n) * (U * (t + (((((l ^ 2.0) * (n * (U_42_ - U))) / Om) - (2.0 * (l ^ 2.0))) / Om))))); elseif (t_2 <= Inf) tmp = sqrt(((2.0 * (n * U)) * (t + (t_1 - (2.0 * (l * (l / Om))))))); else tmp = sqrt(((U * -2.0) * ((n * (l ^ 2.0)) * ((2.0 / Om) + (n * ((U - U_42_) / (Om ^ 2.0))))))); end tmp_2 = tmp; end
code[n_, U_, t_, l_, Om_, U$42$_] := Block[{t$95$1 = N[(N[(n * N[Power[N[(l / Om), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision] * N[(U$42$ - U), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(N[(2.0 * n), $MachinePrecision] * U), $MachinePrecision] * N[(N[(t - N[(2.0 * N[(N[(l * l), $MachinePrecision] / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$2, 0.0], N[Sqrt[N[(N[(2.0 * n), $MachinePrecision] * N[(U * N[(t + N[(N[(N[(N[(N[Power[l, 2.0], $MachinePrecision] * N[(n * N[(U$42$ - U), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / Om), $MachinePrecision] - N[(2.0 * N[Power[l, 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], If[LessEqual[t$95$2, Infinity], N[Sqrt[N[(N[(2.0 * N[(n * U), $MachinePrecision]), $MachinePrecision] * N[(t + N[(t$95$1 - N[(2.0 * N[(l * N[(l / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], N[Sqrt[N[(N[(U * -2.0), $MachinePrecision] * N[(N[(n * N[Power[l, 2.0], $MachinePrecision]), $MachinePrecision] * N[(N[(2.0 / Om), $MachinePrecision] + N[(n * N[(N[(U - U$42$), $MachinePrecision] / N[Power[Om, 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U* - U\right)\\
t_2 := \left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(t - 2 \cdot \frac{\ell \cdot \ell}{Om}\right) + t\_1\right)\\
\mathbf{if}\;t\_2 \leq 0:\\
\;\;\;\;\sqrt{\left(2 \cdot n\right) \cdot \left(U \cdot \left(t + \frac{\frac{{\ell}^{2} \cdot \left(n \cdot \left(U* - U\right)\right)}{Om} - 2 \cdot {\ell}^{2}}{Om}\right)\right)}\\
\mathbf{elif}\;t\_2 \leq \infty:\\
\;\;\;\;\sqrt{\left(2 \cdot \left(n \cdot U\right)\right) \cdot \left(t + \left(t\_1 - 2 \cdot \left(\ell \cdot \frac{\ell}{Om}\right)\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;\sqrt{\left(U \cdot -2\right) \cdot \left(\left(n \cdot {\ell}^{2}\right) \cdot \left(\frac{2}{Om} + n \cdot \frac{U - U*}{{Om}^{2}}\right)\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 7.0%
Simplified27.3%
Taylor expanded in Om around inf 36.8%
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 71.0%
Simplified74.3%
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%
Simplified0.1%
Taylor expanded in l around inf 46.7%
associate-*r*46.7%
associate-*r*46.8%
*-commutative46.8%
associate-*r/46.8%
metadata-eval46.8%
associate-/l*46.8%
Simplified46.8%
Final simplification63.9%
(FPCore (n U t l Om U*)
:precision binary64
(let* ((t_1 (* (* n (pow (/ l Om) 2.0)) (- U* U)))
(t_2 (sqrt (* (* (* 2.0 n) U) (+ (- t (* 2.0 (/ (* l l) Om))) t_1)))))
(if (<= t_2 2e-157)
(* (sqrt (* 2.0 U)) (sqrt (* n t)))
(if (<= t_2 INFINITY)
(sqrt (* (* 2.0 (* n U)) (+ t (- t_1 (* 2.0 (* l (/ l Om)))))))
(sqrt
(*
(* U -2.0)
(*
(* n (pow l 2.0))
(+ (/ 2.0 Om) (* n (/ (- U U*) (pow Om 2.0)))))))))))
double code(double n, double U, double t, double l, double Om, double U_42_) {
double t_1 = (n * pow((l / Om), 2.0)) * (U_42_ - U);
double t_2 = sqrt((((2.0 * n) * U) * ((t - (2.0 * ((l * l) / Om))) + t_1)));
double tmp;
if (t_2 <= 2e-157) {
tmp = sqrt((2.0 * U)) * sqrt((n * t));
} else if (t_2 <= ((double) INFINITY)) {
tmp = sqrt(((2.0 * (n * U)) * (t + (t_1 - (2.0 * (l * (l / Om)))))));
} else {
tmp = sqrt(((U * -2.0) * ((n * pow(l, 2.0)) * ((2.0 / Om) + (n * ((U - U_42_) / pow(Om, 2.0)))))));
}
return tmp;
}
public static double code(double n, double U, double t, double l, double Om, double U_42_) {
double t_1 = (n * Math.pow((l / Om), 2.0)) * (U_42_ - U);
double t_2 = Math.sqrt((((2.0 * n) * U) * ((t - (2.0 * ((l * l) / Om))) + t_1)));
double tmp;
if (t_2 <= 2e-157) {
tmp = Math.sqrt((2.0 * U)) * Math.sqrt((n * t));
} else if (t_2 <= Double.POSITIVE_INFINITY) {
tmp = Math.sqrt(((2.0 * (n * U)) * (t + (t_1 - (2.0 * (l * (l / Om)))))));
} else {
tmp = Math.sqrt(((U * -2.0) * ((n * Math.pow(l, 2.0)) * ((2.0 / Om) + (n * ((U - U_42_) / Math.pow(Om, 2.0)))))));
}
return tmp;
}
def code(n, U, t, l, Om, U_42_): t_1 = (n * math.pow((l / Om), 2.0)) * (U_42_ - U) t_2 = math.sqrt((((2.0 * n) * U) * ((t - (2.0 * ((l * l) / Om))) + t_1))) tmp = 0 if t_2 <= 2e-157: tmp = math.sqrt((2.0 * U)) * math.sqrt((n * t)) elif t_2 <= math.inf: tmp = math.sqrt(((2.0 * (n * U)) * (t + (t_1 - (2.0 * (l * (l / Om))))))) else: tmp = math.sqrt(((U * -2.0) * ((n * math.pow(l, 2.0)) * ((2.0 / Om) + (n * ((U - U_42_) / math.pow(Om, 2.0))))))) return tmp
function code(n, U, t, l, Om, U_42_) t_1 = Float64(Float64(n * (Float64(l / Om) ^ 2.0)) * Float64(U_42_ - U)) t_2 = sqrt(Float64(Float64(Float64(2.0 * n) * U) * Float64(Float64(t - Float64(2.0 * Float64(Float64(l * l) / Om))) + t_1))) tmp = 0.0 if (t_2 <= 2e-157) tmp = Float64(sqrt(Float64(2.0 * U)) * sqrt(Float64(n * t))); elseif (t_2 <= Inf) tmp = sqrt(Float64(Float64(2.0 * Float64(n * U)) * Float64(t + Float64(t_1 - Float64(2.0 * Float64(l * Float64(l / Om))))))); else tmp = sqrt(Float64(Float64(U * -2.0) * Float64(Float64(n * (l ^ 2.0)) * Float64(Float64(2.0 / Om) + Float64(n * Float64(Float64(U - U_42_) / (Om ^ 2.0))))))); end return tmp end
function tmp_2 = code(n, U, t, l, Om, U_42_) t_1 = (n * ((l / Om) ^ 2.0)) * (U_42_ - U); t_2 = sqrt((((2.0 * n) * U) * ((t - (2.0 * ((l * l) / Om))) + t_1))); tmp = 0.0; if (t_2 <= 2e-157) tmp = sqrt((2.0 * U)) * sqrt((n * t)); elseif (t_2 <= Inf) tmp = sqrt(((2.0 * (n * U)) * (t + (t_1 - (2.0 * (l * (l / Om))))))); else tmp = sqrt(((U * -2.0) * ((n * (l ^ 2.0)) * ((2.0 / Om) + (n * ((U - U_42_) / (Om ^ 2.0))))))); end tmp_2 = tmp; end
code[n_, U_, t_, l_, Om_, U$42$_] := Block[{t$95$1 = N[(N[(n * N[Power[N[(l / Om), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision] * N[(U$42$ - U), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = 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] + t$95$1), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]}, If[LessEqual[t$95$2, 2e-157], N[(N[Sqrt[N[(2.0 * U), $MachinePrecision]], $MachinePrecision] * N[Sqrt[N[(n * t), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$2, Infinity], N[Sqrt[N[(N[(2.0 * N[(n * U), $MachinePrecision]), $MachinePrecision] * N[(t + N[(t$95$1 - N[(2.0 * N[(l * N[(l / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], N[Sqrt[N[(N[(U * -2.0), $MachinePrecision] * N[(N[(n * N[Power[l, 2.0], $MachinePrecision]), $MachinePrecision] * N[(N[(2.0 / Om), $MachinePrecision] + N[(n * N[(N[(U - U$42$), $MachinePrecision] / N[Power[Om, 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U* - U\right)\\
t_2 := \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(t - 2 \cdot \frac{\ell \cdot \ell}{Om}\right) + t\_1\right)}\\
\mathbf{if}\;t\_2 \leq 2 \cdot 10^{-157}:\\
\;\;\;\;\sqrt{2 \cdot U} \cdot \sqrt{n \cdot t}\\
\mathbf{elif}\;t\_2 \leq \infty:\\
\;\;\;\;\sqrt{\left(2 \cdot \left(n \cdot U\right)\right) \cdot \left(t + \left(t\_1 - 2 \cdot \left(\ell \cdot \frac{\ell}{Om}\right)\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;\sqrt{\left(U \cdot -2\right) \cdot \left(\left(n \cdot {\ell}^{2}\right) \cdot \left(\frac{2}{Om} + n \cdot \frac{U - U*}{{Om}^{2}}\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.99999999999999989e-157Initial program 10.0%
Simplified10.0%
Taylor expanded in t around inf 32.7%
pow1/232.7%
associate-*r*32.8%
unpow-prod-down37.6%
pow1/237.6%
Applied egg-rr37.6%
unpow1/237.6%
*-commutative37.6%
Simplified37.6%
if 1.99999999999999989e-157 < (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 71.0%
Simplified74.3%
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%
Simplified0.4%
Taylor expanded in l around inf 44.9%
associate-*r*44.9%
associate-*r*45.0%
*-commutative45.0%
associate-*r/45.0%
metadata-eval45.0%
associate-/l*45.0%
Simplified45.0%
Final simplification63.8%
(FPCore (n U t l Om U*)
:precision binary64
(let* ((t_1 (* (* n (pow (/ l Om) 2.0)) (- U* U)))
(t_2 (sqrt (* (* (* 2.0 n) U) (+ (- t (* 2.0 (/ (* l l) Om))) t_1)))))
(if (<= t_2 2e-157)
(* (sqrt (* 2.0 U)) (sqrt (* n t)))
(if (<= t_2 INFINITY)
(sqrt (* (* 2.0 (* n U)) (+ t (- t_1 (* 2.0 (* l (/ l Om)))))))
(sqrt
(*
-2.0
(*
U
(* (pow l 2.0) (* n (- (/ 2.0 Om) (* U* (/ n (pow Om 2.0)))))))))))))
double code(double n, double U, double t, double l, double Om, double U_42_) {
double t_1 = (n * pow((l / Om), 2.0)) * (U_42_ - U);
double t_2 = sqrt((((2.0 * n) * U) * ((t - (2.0 * ((l * l) / Om))) + t_1)));
double tmp;
if (t_2 <= 2e-157) {
tmp = sqrt((2.0 * U)) * sqrt((n * t));
} else if (t_2 <= ((double) INFINITY)) {
tmp = sqrt(((2.0 * (n * U)) * (t + (t_1 - (2.0 * (l * (l / Om)))))));
} else {
tmp = sqrt((-2.0 * (U * (pow(l, 2.0) * (n * ((2.0 / Om) - (U_42_ * (n / pow(Om, 2.0)))))))));
}
return tmp;
}
public static double code(double n, double U, double t, double l, double Om, double U_42_) {
double t_1 = (n * Math.pow((l / Om), 2.0)) * (U_42_ - U);
double t_2 = Math.sqrt((((2.0 * n) * U) * ((t - (2.0 * ((l * l) / Om))) + t_1)));
double tmp;
if (t_2 <= 2e-157) {
tmp = Math.sqrt((2.0 * U)) * Math.sqrt((n * t));
} else if (t_2 <= Double.POSITIVE_INFINITY) {
tmp = Math.sqrt(((2.0 * (n * U)) * (t + (t_1 - (2.0 * (l * (l / Om)))))));
} else {
tmp = Math.sqrt((-2.0 * (U * (Math.pow(l, 2.0) * (n * ((2.0 / Om) - (U_42_ * (n / Math.pow(Om, 2.0)))))))));
}
return tmp;
}
def code(n, U, t, l, Om, U_42_): t_1 = (n * math.pow((l / Om), 2.0)) * (U_42_ - U) t_2 = math.sqrt((((2.0 * n) * U) * ((t - (2.0 * ((l * l) / Om))) + t_1))) tmp = 0 if t_2 <= 2e-157: tmp = math.sqrt((2.0 * U)) * math.sqrt((n * t)) elif t_2 <= math.inf: tmp = math.sqrt(((2.0 * (n * U)) * (t + (t_1 - (2.0 * (l * (l / Om))))))) else: tmp = math.sqrt((-2.0 * (U * (math.pow(l, 2.0) * (n * ((2.0 / Om) - (U_42_ * (n / math.pow(Om, 2.0))))))))) return tmp
function code(n, U, t, l, Om, U_42_) t_1 = Float64(Float64(n * (Float64(l / Om) ^ 2.0)) * Float64(U_42_ - U)) t_2 = sqrt(Float64(Float64(Float64(2.0 * n) * U) * Float64(Float64(t - Float64(2.0 * Float64(Float64(l * l) / Om))) + t_1))) tmp = 0.0 if (t_2 <= 2e-157) tmp = Float64(sqrt(Float64(2.0 * U)) * sqrt(Float64(n * t))); elseif (t_2 <= Inf) tmp = sqrt(Float64(Float64(2.0 * Float64(n * U)) * Float64(t + Float64(t_1 - Float64(2.0 * Float64(l * Float64(l / Om))))))); else tmp = sqrt(Float64(-2.0 * Float64(U * Float64((l ^ 2.0) * Float64(n * Float64(Float64(2.0 / Om) - Float64(U_42_ * Float64(n / (Om ^ 2.0))))))))); end return tmp end
function tmp_2 = code(n, U, t, l, Om, U_42_) t_1 = (n * ((l / Om) ^ 2.0)) * (U_42_ - U); t_2 = sqrt((((2.0 * n) * U) * ((t - (2.0 * ((l * l) / Om))) + t_1))); tmp = 0.0; if (t_2 <= 2e-157) tmp = sqrt((2.0 * U)) * sqrt((n * t)); elseif (t_2 <= Inf) tmp = sqrt(((2.0 * (n * U)) * (t + (t_1 - (2.0 * (l * (l / Om))))))); else tmp = sqrt((-2.0 * (U * ((l ^ 2.0) * (n * ((2.0 / Om) - (U_42_ * (n / (Om ^ 2.0))))))))); end tmp_2 = tmp; end
code[n_, U_, t_, l_, Om_, U$42$_] := Block[{t$95$1 = N[(N[(n * N[Power[N[(l / Om), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision] * N[(U$42$ - U), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = 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] + t$95$1), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]}, If[LessEqual[t$95$2, 2e-157], N[(N[Sqrt[N[(2.0 * U), $MachinePrecision]], $MachinePrecision] * N[Sqrt[N[(n * t), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$2, Infinity], N[Sqrt[N[(N[(2.0 * N[(n * U), $MachinePrecision]), $MachinePrecision] * N[(t + N[(t$95$1 - N[(2.0 * N[(l * N[(l / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], N[Sqrt[N[(-2.0 * N[(U * N[(N[Power[l, 2.0], $MachinePrecision] * N[(n * N[(N[(2.0 / Om), $MachinePrecision] - N[(U$42$ * N[(n / N[Power[Om, 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U* - U\right)\\
t_2 := \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(t - 2 \cdot \frac{\ell \cdot \ell}{Om}\right) + t\_1\right)}\\
\mathbf{if}\;t\_2 \leq 2 \cdot 10^{-157}:\\
\;\;\;\;\sqrt{2 \cdot U} \cdot \sqrt{n \cdot t}\\
\mathbf{elif}\;t\_2 \leq \infty:\\
\;\;\;\;\sqrt{\left(2 \cdot \left(n \cdot U\right)\right) \cdot \left(t + \left(t\_1 - 2 \cdot \left(\ell \cdot \frac{\ell}{Om}\right)\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;\sqrt{-2 \cdot \left(U \cdot \left({\ell}^{2} \cdot \left(n \cdot \left(\frac{2}{Om} - U* \cdot \frac{n}{{Om}^{2}}\right)\right)\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.99999999999999989e-157Initial program 10.0%
Simplified10.0%
Taylor expanded in t around inf 32.7%
pow1/232.7%
associate-*r*32.8%
unpow-prod-down37.6%
pow1/237.6%
Applied egg-rr37.6%
unpow1/237.6%
*-commutative37.6%
Simplified37.6%
if 1.99999999999999989e-157 < (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 71.0%
Simplified74.3%
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%
Simplified0.4%
associate-*r*0.4%
fma-define13.8%
associate-*r*13.8%
Applied egg-rr13.8%
Taylor expanded in U around 0 17.2%
associate-/l*13.9%
unpow213.9%
unpow213.9%
times-frac14.1%
unpow214.1%
neg-mul-114.1%
distribute-lft-neg-out14.1%
*-commutative14.1%
Simplified14.1%
Taylor expanded in l around inf 44.0%
+-commutative44.0%
mul-1-neg44.0%
unsub-neg44.0%
associate-*r/44.0%
metadata-eval44.0%
associate-/l*44.1%
Simplified44.1%
Final simplification63.6%
(FPCore (n U t l Om U*)
:precision binary64
(let* ((t_1 (* (* n (pow (/ l Om) 2.0)) (- U* U)))
(t_2 (sqrt (* (* (* 2.0 n) U) (+ (- t (* 2.0 (/ (* l l) Om))) t_1)))))
(if (<= t_2 2e-157)
(* (sqrt (* 2.0 U)) (sqrt (* n t)))
(if (<= t_2 INFINITY)
(sqrt (* (* 2.0 (* n U)) (+ t (- t_1 (* 2.0 (* l (/ l Om)))))))
(sqrt (fabs (* (+ t (/ (* (pow l 2.0) -2.0) Om)) (* n (* 2.0 U)))))))))
double code(double n, double U, double t, double l, double Om, double U_42_) {
double t_1 = (n * pow((l / Om), 2.0)) * (U_42_ - U);
double t_2 = sqrt((((2.0 * n) * U) * ((t - (2.0 * ((l * l) / Om))) + t_1)));
double tmp;
if (t_2 <= 2e-157) {
tmp = sqrt((2.0 * U)) * sqrt((n * t));
} else if (t_2 <= ((double) INFINITY)) {
tmp = sqrt(((2.0 * (n * U)) * (t + (t_1 - (2.0 * (l * (l / Om)))))));
} else {
tmp = sqrt(fabs(((t + ((pow(l, 2.0) * -2.0) / Om)) * (n * (2.0 * U)))));
}
return tmp;
}
public static double code(double n, double U, double t, double l, double Om, double U_42_) {
double t_1 = (n * Math.pow((l / Om), 2.0)) * (U_42_ - U);
double t_2 = Math.sqrt((((2.0 * n) * U) * ((t - (2.0 * ((l * l) / Om))) + t_1)));
double tmp;
if (t_2 <= 2e-157) {
tmp = Math.sqrt((2.0 * U)) * Math.sqrt((n * t));
} else if (t_2 <= Double.POSITIVE_INFINITY) {
tmp = Math.sqrt(((2.0 * (n * U)) * (t + (t_1 - (2.0 * (l * (l / Om)))))));
} else {
tmp = Math.sqrt(Math.abs(((t + ((Math.pow(l, 2.0) * -2.0) / Om)) * (n * (2.0 * U)))));
}
return tmp;
}
def code(n, U, t, l, Om, U_42_): t_1 = (n * math.pow((l / Om), 2.0)) * (U_42_ - U) t_2 = math.sqrt((((2.0 * n) * U) * ((t - (2.0 * ((l * l) / Om))) + t_1))) tmp = 0 if t_2 <= 2e-157: tmp = math.sqrt((2.0 * U)) * math.sqrt((n * t)) elif t_2 <= math.inf: tmp = math.sqrt(((2.0 * (n * U)) * (t + (t_1 - (2.0 * (l * (l / Om))))))) else: tmp = math.sqrt(math.fabs(((t + ((math.pow(l, 2.0) * -2.0) / Om)) * (n * (2.0 * U))))) return tmp
function code(n, U, t, l, Om, U_42_) t_1 = Float64(Float64(n * (Float64(l / Om) ^ 2.0)) * Float64(U_42_ - U)) t_2 = sqrt(Float64(Float64(Float64(2.0 * n) * U) * Float64(Float64(t - Float64(2.0 * Float64(Float64(l * l) / Om))) + t_1))) tmp = 0.0 if (t_2 <= 2e-157) tmp = Float64(sqrt(Float64(2.0 * U)) * sqrt(Float64(n * t))); elseif (t_2 <= Inf) tmp = sqrt(Float64(Float64(2.0 * Float64(n * U)) * Float64(t + Float64(t_1 - Float64(2.0 * Float64(l * Float64(l / Om))))))); else tmp = sqrt(abs(Float64(Float64(t + Float64(Float64((l ^ 2.0) * -2.0) / Om)) * Float64(n * Float64(2.0 * U))))); end return tmp end
function tmp_2 = code(n, U, t, l, Om, U_42_) t_1 = (n * ((l / Om) ^ 2.0)) * (U_42_ - U); t_2 = sqrt((((2.0 * n) * U) * ((t - (2.0 * ((l * l) / Om))) + t_1))); tmp = 0.0; if (t_2 <= 2e-157) tmp = sqrt((2.0 * U)) * sqrt((n * t)); elseif (t_2 <= Inf) tmp = sqrt(((2.0 * (n * U)) * (t + (t_1 - (2.0 * (l * (l / Om))))))); else tmp = sqrt(abs(((t + (((l ^ 2.0) * -2.0) / Om)) * (n * (2.0 * U))))); end tmp_2 = tmp; end
code[n_, U_, t_, l_, Om_, U$42$_] := Block[{t$95$1 = N[(N[(n * N[Power[N[(l / Om), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision] * N[(U$42$ - U), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = 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] + t$95$1), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]}, If[LessEqual[t$95$2, 2e-157], N[(N[Sqrt[N[(2.0 * U), $MachinePrecision]], $MachinePrecision] * N[Sqrt[N[(n * t), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$2, Infinity], N[Sqrt[N[(N[(2.0 * N[(n * U), $MachinePrecision]), $MachinePrecision] * N[(t + N[(t$95$1 - N[(2.0 * N[(l * N[(l / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], N[Sqrt[N[Abs[N[(N[(t + N[(N[(N[Power[l, 2.0], $MachinePrecision] * -2.0), $MachinePrecision] / Om), $MachinePrecision]), $MachinePrecision] * N[(n * N[(2.0 * U), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]], $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U* - U\right)\\
t_2 := \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(t - 2 \cdot \frac{\ell \cdot \ell}{Om}\right) + t\_1\right)}\\
\mathbf{if}\;t\_2 \leq 2 \cdot 10^{-157}:\\
\;\;\;\;\sqrt{2 \cdot U} \cdot \sqrt{n \cdot t}\\
\mathbf{elif}\;t\_2 \leq \infty:\\
\;\;\;\;\sqrt{\left(2 \cdot \left(n \cdot U\right)\right) \cdot \left(t + \left(t\_1 - 2 \cdot \left(\ell \cdot \frac{\ell}{Om}\right)\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;\sqrt{\left|\left(t + \frac{{\ell}^{2} \cdot -2}{Om}\right) \cdot \left(n \cdot \left(2 \cdot U\right)\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.99999999999999989e-157Initial program 10.0%
Simplified10.0%
Taylor expanded in t around inf 32.7%
pow1/232.7%
associate-*r*32.8%
unpow-prod-down37.6%
pow1/237.6%
Applied egg-rr37.6%
unpow1/237.6%
*-commutative37.6%
Simplified37.6%
if 1.99999999999999989e-157 < (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 71.0%
Simplified74.3%
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%
Simplified3.0%
Taylor expanded in Om around inf 11.3%
add-sqr-sqrt11.3%
pow1/211.3%
pow1/246.8%
pow-prod-down42.9%
pow242.9%
associate-*r*41.0%
cancel-sign-sub-inv41.0%
metadata-eval41.0%
Applied egg-rr41.0%
unpow1/241.0%
unpow241.0%
rem-sqrt-square41.0%
metadata-eval41.0%
cancel-sign-sub-inv41.0%
*-commutative41.0%
cancel-sign-sub-inv41.0%
metadata-eval41.0%
associate-*r/41.0%
associate-*l*41.0%
*-commutative41.0%
associate-*r*41.0%
*-commutative41.0%
*-commutative41.0%
Simplified41.0%
Final simplification63.0%
(FPCore (n U t l Om U*)
:precision binary64
(let* ((t_1 (* (* n (pow (/ l Om) 2.0)) (- U* U)))
(t_2 (* (* 2.0 n) U))
(t_3 (sqrt (* t_2 (+ (- t (* 2.0 (/ (* l l) Om))) t_1)))))
(if (<= t_3 2e-157)
(* (sqrt (* 2.0 U)) (sqrt (* n t)))
(if (<= t_3 INFINITY)
(sqrt (* (* 2.0 (* n U)) (+ t (- t_1 (* 2.0 (* l (/ l Om)))))))
(pow (* t_2 (+ t (* -2.0 (/ (pow l 2.0) Om)))) 0.5)))))
double code(double n, double U, double t, double l, double Om, double U_42_) {
double t_1 = (n * pow((l / Om), 2.0)) * (U_42_ - U);
double t_2 = (2.0 * n) * U;
double t_3 = sqrt((t_2 * ((t - (2.0 * ((l * l) / Om))) + t_1)));
double tmp;
if (t_3 <= 2e-157) {
tmp = sqrt((2.0 * U)) * sqrt((n * t));
} else if (t_3 <= ((double) INFINITY)) {
tmp = sqrt(((2.0 * (n * U)) * (t + (t_1 - (2.0 * (l * (l / Om)))))));
} else {
tmp = pow((t_2 * (t + (-2.0 * (pow(l, 2.0) / Om)))), 0.5);
}
return tmp;
}
public static double code(double n, double U, double t, double l, double Om, double U_42_) {
double t_1 = (n * Math.pow((l / Om), 2.0)) * (U_42_ - U);
double t_2 = (2.0 * n) * U;
double t_3 = Math.sqrt((t_2 * ((t - (2.0 * ((l * l) / Om))) + t_1)));
double tmp;
if (t_3 <= 2e-157) {
tmp = Math.sqrt((2.0 * U)) * Math.sqrt((n * t));
} else if (t_3 <= Double.POSITIVE_INFINITY) {
tmp = Math.sqrt(((2.0 * (n * U)) * (t + (t_1 - (2.0 * (l * (l / Om)))))));
} else {
tmp = Math.pow((t_2 * (t + (-2.0 * (Math.pow(l, 2.0) / Om)))), 0.5);
}
return tmp;
}
def code(n, U, t, l, Om, U_42_): t_1 = (n * math.pow((l / Om), 2.0)) * (U_42_ - U) t_2 = (2.0 * n) * U t_3 = math.sqrt((t_2 * ((t - (2.0 * ((l * l) / Om))) + t_1))) tmp = 0 if t_3 <= 2e-157: tmp = math.sqrt((2.0 * U)) * math.sqrt((n * t)) elif t_3 <= math.inf: tmp = math.sqrt(((2.0 * (n * U)) * (t + (t_1 - (2.0 * (l * (l / Om))))))) else: tmp = math.pow((t_2 * (t + (-2.0 * (math.pow(l, 2.0) / Om)))), 0.5) return tmp
function code(n, U, t, l, Om, U_42_) t_1 = Float64(Float64(n * (Float64(l / Om) ^ 2.0)) * Float64(U_42_ - U)) t_2 = Float64(Float64(2.0 * n) * U) t_3 = sqrt(Float64(t_2 * Float64(Float64(t - Float64(2.0 * Float64(Float64(l * l) / Om))) + t_1))) tmp = 0.0 if (t_3 <= 2e-157) tmp = Float64(sqrt(Float64(2.0 * U)) * sqrt(Float64(n * t))); elseif (t_3 <= Inf) tmp = sqrt(Float64(Float64(2.0 * Float64(n * U)) * Float64(t + Float64(t_1 - Float64(2.0 * Float64(l * Float64(l / Om))))))); else tmp = Float64(t_2 * Float64(t + Float64(-2.0 * Float64((l ^ 2.0) / Om)))) ^ 0.5; end return tmp end
function tmp_2 = code(n, U, t, l, Om, U_42_) t_1 = (n * ((l / Om) ^ 2.0)) * (U_42_ - U); t_2 = (2.0 * n) * U; t_3 = sqrt((t_2 * ((t - (2.0 * ((l * l) / Om))) + t_1))); tmp = 0.0; if (t_3 <= 2e-157) tmp = sqrt((2.0 * U)) * sqrt((n * t)); elseif (t_3 <= Inf) tmp = sqrt(((2.0 * (n * U)) * (t + (t_1 - (2.0 * (l * (l / Om))))))); else tmp = (t_2 * (t + (-2.0 * ((l ^ 2.0) / Om)))) ^ 0.5; end tmp_2 = tmp; end
code[n_, U_, t_, l_, Om_, U$42$_] := Block[{t$95$1 = N[(N[(n * N[Power[N[(l / Om), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision] * N[(U$42$ - U), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(2.0 * n), $MachinePrecision] * U), $MachinePrecision]}, Block[{t$95$3 = N[Sqrt[N[(t$95$2 * N[(N[(t - N[(2.0 * N[(N[(l * l), $MachinePrecision] / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]}, If[LessEqual[t$95$3, 2e-157], N[(N[Sqrt[N[(2.0 * U), $MachinePrecision]], $MachinePrecision] * N[Sqrt[N[(n * t), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$3, Infinity], N[Sqrt[N[(N[(2.0 * N[(n * U), $MachinePrecision]), $MachinePrecision] * N[(t + N[(t$95$1 - N[(2.0 * N[(l * N[(l / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], N[Power[N[(t$95$2 * N[(t + N[(-2.0 * N[(N[Power[l, 2.0], $MachinePrecision] / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 0.5], $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U* - U\right)\\
t_2 := \left(2 \cdot n\right) \cdot U\\
t_3 := \sqrt{t\_2 \cdot \left(\left(t - 2 \cdot \frac{\ell \cdot \ell}{Om}\right) + t\_1\right)}\\
\mathbf{if}\;t\_3 \leq 2 \cdot 10^{-157}:\\
\;\;\;\;\sqrt{2 \cdot U} \cdot \sqrt{n \cdot t}\\
\mathbf{elif}\;t\_3 \leq \infty:\\
\;\;\;\;\sqrt{\left(2 \cdot \left(n \cdot U\right)\right) \cdot \left(t + \left(t\_1 - 2 \cdot \left(\ell \cdot \frac{\ell}{Om}\right)\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;{\left(t\_2 \cdot \left(t + -2 \cdot \frac{{\ell}^{2}}{Om}\right)\right)}^{0.5}\\
\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.99999999999999989e-157Initial program 10.0%
Simplified10.0%
Taylor expanded in t around inf 32.7%
pow1/232.7%
associate-*r*32.8%
unpow-prod-down37.6%
pow1/237.6%
Applied egg-rr37.6%
unpow1/237.6%
*-commutative37.6%
Simplified37.6%
if 1.99999999999999989e-157 < (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 71.0%
Simplified74.3%
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%
Simplified3.0%
Taylor expanded in Om around inf 11.3%
pow1/246.8%
associate-*r*40.8%
cancel-sign-sub-inv40.8%
metadata-eval40.8%
Applied egg-rr40.8%
Final simplification63.0%
(FPCore (n U t l Om U*)
:precision binary64
(if (<= n -1.05e-73)
(sqrt
(*
(* 2.0 (* n U))
(+ t (- (* n (* (pow (/ l Om) 2.0) U*)) (* (/ l Om) (* 2.0 l))))))
(if (<= n 1.05e-190)
(sqrt (+ (* -4.0 (/ (* U (* n (pow l 2.0))) Om)) (* 2.0 (* U (* n t)))))
(pow (* (* (* 2.0 n) U) (+ t (* -2.0 (/ (pow l 2.0) Om)))) 0.5))))
double code(double n, double U, double t, double l, double Om, double U_42_) {
double tmp;
if (n <= -1.05e-73) {
tmp = sqrt(((2.0 * (n * U)) * (t + ((n * (pow((l / Om), 2.0) * U_42_)) - ((l / Om) * (2.0 * l))))));
} else if (n <= 1.05e-190) {
tmp = sqrt(((-4.0 * ((U * (n * pow(l, 2.0))) / Om)) + (2.0 * (U * (n * t)))));
} else {
tmp = pow((((2.0 * n) * U) * (t + (-2.0 * (pow(l, 2.0) / Om)))), 0.5);
}
return tmp;
}
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
real(8) :: tmp
if (n <= (-1.05d-73)) then
tmp = sqrt(((2.0d0 * (n * u)) * (t + ((n * (((l / om) ** 2.0d0) * u_42)) - ((l / om) * (2.0d0 * l))))))
else if (n <= 1.05d-190) then
tmp = sqrt((((-4.0d0) * ((u * (n * (l ** 2.0d0))) / om)) + (2.0d0 * (u * (n * t)))))
else
tmp = (((2.0d0 * n) * u) * (t + ((-2.0d0) * ((l ** 2.0d0) / om)))) ** 0.5d0
end if
code = tmp
end function
public static double code(double n, double U, double t, double l, double Om, double U_42_) {
double tmp;
if (n <= -1.05e-73) {
tmp = Math.sqrt(((2.0 * (n * U)) * (t + ((n * (Math.pow((l / Om), 2.0) * U_42_)) - ((l / Om) * (2.0 * l))))));
} else if (n <= 1.05e-190) {
tmp = Math.sqrt(((-4.0 * ((U * (n * Math.pow(l, 2.0))) / Om)) + (2.0 * (U * (n * t)))));
} else {
tmp = Math.pow((((2.0 * n) * U) * (t + (-2.0 * (Math.pow(l, 2.0) / Om)))), 0.5);
}
return tmp;
}
def code(n, U, t, l, Om, U_42_): tmp = 0 if n <= -1.05e-73: tmp = math.sqrt(((2.0 * (n * U)) * (t + ((n * (math.pow((l / Om), 2.0) * U_42_)) - ((l / Om) * (2.0 * l)))))) elif n <= 1.05e-190: tmp = math.sqrt(((-4.0 * ((U * (n * math.pow(l, 2.0))) / Om)) + (2.0 * (U * (n * t))))) else: tmp = math.pow((((2.0 * n) * U) * (t + (-2.0 * (math.pow(l, 2.0) / Om)))), 0.5) return tmp
function code(n, U, t, l, Om, U_42_) tmp = 0.0 if (n <= -1.05e-73) tmp = sqrt(Float64(Float64(2.0 * Float64(n * U)) * Float64(t + Float64(Float64(n * Float64((Float64(l / Om) ^ 2.0) * U_42_)) - Float64(Float64(l / Om) * Float64(2.0 * l)))))); elseif (n <= 1.05e-190) tmp = sqrt(Float64(Float64(-4.0 * Float64(Float64(U * Float64(n * (l ^ 2.0))) / Om)) + Float64(2.0 * Float64(U * Float64(n * t))))); else tmp = Float64(Float64(Float64(2.0 * n) * U) * Float64(t + Float64(-2.0 * Float64((l ^ 2.0) / Om)))) ^ 0.5; end return tmp end
function tmp_2 = code(n, U, t, l, Om, U_42_) tmp = 0.0; if (n <= -1.05e-73) tmp = sqrt(((2.0 * (n * U)) * (t + ((n * (((l / Om) ^ 2.0) * U_42_)) - ((l / Om) * (2.0 * l)))))); elseif (n <= 1.05e-190) tmp = sqrt(((-4.0 * ((U * (n * (l ^ 2.0))) / Om)) + (2.0 * (U * (n * t))))); else tmp = (((2.0 * n) * U) * (t + (-2.0 * ((l ^ 2.0) / Om)))) ^ 0.5; end tmp_2 = tmp; end
code[n_, U_, t_, l_, Om_, U$42$_] := If[LessEqual[n, -1.05e-73], N[Sqrt[N[(N[(2.0 * N[(n * U), $MachinePrecision]), $MachinePrecision] * N[(t + N[(N[(n * N[(N[Power[N[(l / Om), $MachinePrecision], 2.0], $MachinePrecision] * U$42$), $MachinePrecision]), $MachinePrecision] - N[(N[(l / Om), $MachinePrecision] * N[(2.0 * l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], If[LessEqual[n, 1.05e-190], N[Sqrt[N[(N[(-4.0 * N[(N[(U * N[(n * N[Power[l, 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / Om), $MachinePrecision]), $MachinePrecision] + N[(2.0 * N[(U * N[(n * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], N[Power[N[(N[(N[(2.0 * n), $MachinePrecision] * U), $MachinePrecision] * N[(t + N[(-2.0 * N[(N[Power[l, 2.0], $MachinePrecision] / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 0.5], $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;n \leq -1.05 \cdot 10^{-73}:\\
\;\;\;\;\sqrt{\left(2 \cdot \left(n \cdot U\right)\right) \cdot \left(t + \left(n \cdot \left({\left(\frac{\ell}{Om}\right)}^{2} \cdot U*\right) - \frac{\ell}{Om} \cdot \left(2 \cdot \ell\right)\right)\right)}\\
\mathbf{elif}\;n \leq 1.05 \cdot 10^{-190}:\\
\;\;\;\;\sqrt{-4 \cdot \frac{U \cdot \left(n \cdot {\ell}^{2}\right)}{Om} + 2 \cdot \left(U \cdot \left(n \cdot t\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;{\left(\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(t + -2 \cdot \frac{{\ell}^{2}}{Om}\right)\right)}^{0.5}\\
\end{array}
\end{array}
if n < -1.0499999999999999e-73Initial program 49.6%
Simplified53.9%
associate-*r*53.9%
fma-define56.9%
associate-*r*56.9%
Applied egg-rr56.9%
Taylor expanded in U around 0 47.6%
associate-/l*47.0%
unpow247.0%
unpow247.0%
times-frac56.9%
unpow256.9%
neg-mul-156.9%
distribute-lft-neg-out56.9%
*-commutative56.9%
Simplified56.9%
fma-undefine53.9%
Applied egg-rr53.9%
if -1.0499999999999999e-73 < n < 1.04999999999999996e-190Initial program 38.9%
Simplified40.8%
Taylor expanded in Om around inf 49.7%
if 1.04999999999999996e-190 < n Initial program 59.5%
Simplified60.6%
Taylor expanded in Om around inf 51.8%
pow1/267.2%
associate-*r*67.1%
cancel-sign-sub-inv67.1%
metadata-eval67.1%
Applied egg-rr67.1%
Final simplification57.2%
(FPCore (n U t l Om U*)
:precision binary64
(let* ((t_1 (* n (sqrt 2.0))) (t_2 (sqrt (* U U*))))
(if (<= Om -7.2e-141)
(pow (* (* 2.0 U) (* n t)) 0.5)
(if (<= Om -9.5e-206)
(* (/ (* l t_1) Om) t_2)
(if (<= Om 4.2e-73)
(* t_2 (* l (/ t_1 (- Om))))
(sqrt (* 2.0 (fabs (* t (* n U))))))))))
double code(double n, double U, double t, double l, double Om, double U_42_) {
double t_1 = n * sqrt(2.0);
double t_2 = sqrt((U * U_42_));
double tmp;
if (Om <= -7.2e-141) {
tmp = pow(((2.0 * U) * (n * t)), 0.5);
} else if (Om <= -9.5e-206) {
tmp = ((l * t_1) / Om) * t_2;
} else if (Om <= 4.2e-73) {
tmp = t_2 * (l * (t_1 / -Om));
} else {
tmp = sqrt((2.0 * fabs((t * (n * U)))));
}
return tmp;
}
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
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = n * sqrt(2.0d0)
t_2 = sqrt((u * u_42))
if (om <= (-7.2d-141)) then
tmp = ((2.0d0 * u) * (n * t)) ** 0.5d0
else if (om <= (-9.5d-206)) then
tmp = ((l * t_1) / om) * t_2
else if (om <= 4.2d-73) then
tmp = t_2 * (l * (t_1 / -om))
else
tmp = sqrt((2.0d0 * abs((t * (n * u)))))
end if
code = tmp
end function
public static double code(double n, double U, double t, double l, double Om, double U_42_) {
double t_1 = n * Math.sqrt(2.0);
double t_2 = Math.sqrt((U * U_42_));
double tmp;
if (Om <= -7.2e-141) {
tmp = Math.pow(((2.0 * U) * (n * t)), 0.5);
} else if (Om <= -9.5e-206) {
tmp = ((l * t_1) / Om) * t_2;
} else if (Om <= 4.2e-73) {
tmp = t_2 * (l * (t_1 / -Om));
} else {
tmp = Math.sqrt((2.0 * Math.abs((t * (n * U)))));
}
return tmp;
}
def code(n, U, t, l, Om, U_42_): t_1 = n * math.sqrt(2.0) t_2 = math.sqrt((U * U_42_)) tmp = 0 if Om <= -7.2e-141: tmp = math.pow(((2.0 * U) * (n * t)), 0.5) elif Om <= -9.5e-206: tmp = ((l * t_1) / Om) * t_2 elif Om <= 4.2e-73: tmp = t_2 * (l * (t_1 / -Om)) else: tmp = math.sqrt((2.0 * math.fabs((t * (n * U))))) return tmp
function code(n, U, t, l, Om, U_42_) t_1 = Float64(n * sqrt(2.0)) t_2 = sqrt(Float64(U * U_42_)) tmp = 0.0 if (Om <= -7.2e-141) tmp = Float64(Float64(2.0 * U) * Float64(n * t)) ^ 0.5; elseif (Om <= -9.5e-206) tmp = Float64(Float64(Float64(l * t_1) / Om) * t_2); elseif (Om <= 4.2e-73) tmp = Float64(t_2 * Float64(l * Float64(t_1 / Float64(-Om)))); else tmp = sqrt(Float64(2.0 * abs(Float64(t * Float64(n * U))))); end return tmp end
function tmp_2 = code(n, U, t, l, Om, U_42_) t_1 = n * sqrt(2.0); t_2 = sqrt((U * U_42_)); tmp = 0.0; if (Om <= -7.2e-141) tmp = ((2.0 * U) * (n * t)) ^ 0.5; elseif (Om <= -9.5e-206) tmp = ((l * t_1) / Om) * t_2; elseif (Om <= 4.2e-73) tmp = t_2 * (l * (t_1 / -Om)); else tmp = sqrt((2.0 * abs((t * (n * U))))); end tmp_2 = tmp; end
code[n_, U_, t_, l_, Om_, U$42$_] := Block[{t$95$1 = N[(n * N[Sqrt[2.0], $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[Sqrt[N[(U * U$42$), $MachinePrecision]], $MachinePrecision]}, If[LessEqual[Om, -7.2e-141], N[Power[N[(N[(2.0 * U), $MachinePrecision] * N[(n * t), $MachinePrecision]), $MachinePrecision], 0.5], $MachinePrecision], If[LessEqual[Om, -9.5e-206], N[(N[(N[(l * t$95$1), $MachinePrecision] / Om), $MachinePrecision] * t$95$2), $MachinePrecision], If[LessEqual[Om, 4.2e-73], N[(t$95$2 * N[(l * N[(t$95$1 / (-Om)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[Sqrt[N[(2.0 * N[Abs[N[(t * N[(n * U), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]], $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := n \cdot \sqrt{2}\\
t_2 := \sqrt{U \cdot U*}\\
\mathbf{if}\;Om \leq -7.2 \cdot 10^{-141}:\\
\;\;\;\;{\left(\left(2 \cdot U\right) \cdot \left(n \cdot t\right)\right)}^{0.5}\\
\mathbf{elif}\;Om \leq -9.5 \cdot 10^{-206}:\\
\;\;\;\;\frac{\ell \cdot t\_1}{Om} \cdot t\_2\\
\mathbf{elif}\;Om \leq 4.2 \cdot 10^{-73}:\\
\;\;\;\;t\_2 \cdot \left(\ell \cdot \frac{t\_1}{-Om}\right)\\
\mathbf{else}:\\
\;\;\;\;\sqrt{2 \cdot \left|t \cdot \left(n \cdot U\right)\right|}\\
\end{array}
\end{array}
if Om < -7.2000000000000003e-141Initial program 46.4%
Simplified51.1%
Taylor expanded in t around inf 38.7%
pow1/244.6%
associate-*r*44.6%
Applied egg-rr44.6%
if -7.2000000000000003e-141 < Om < -9.49999999999999979e-206Initial program 31.4%
Simplified31.4%
Taylor expanded in U* around inf 40.4%
if -9.49999999999999979e-206 < Om < 4.1999999999999997e-73Initial program 39.5%
Simplified38.1%
Taylor expanded in Om around 0 40.0%
Taylor expanded in U around 0 40.0%
mul-1-neg40.0%
distribute-rgt-neg-in40.0%
*-commutative40.0%
distribute-rgt-neg-in40.0%
Simplified40.0%
Taylor expanded in l around -inf 29.9%
mul-1-neg29.9%
distribute-rgt-neg-in29.9%
associate-/l*31.4%
Simplified31.4%
if 4.1999999999999997e-73 < Om Initial program 63.0%
Simplified64.3%
Taylor expanded in t around inf 49.5%
associate-*r*50.1%
add-sqr-sqrt50.0%
pow1/250.0%
pow1/253.7%
pow-prod-down35.3%
pow235.3%
associate-*r*34.1%
Applied egg-rr34.1%
unpow1/234.1%
unpow234.1%
rem-sqrt-square50.3%
associate-*r*54.3%
Simplified54.3%
Final simplification44.3%
(FPCore (n U t l Om U*)
:precision binary64
(let* ((t_1 (* l (* n (sqrt 2.0)))) (t_2 (sqrt (* U U*))))
(if (<= Om -1e-141)
(pow (* (* 2.0 U) (* n t)) 0.5)
(if (<= Om -1.5e-205)
(* (/ t_1 Om) t_2)
(if (<= Om 6e-91)
(/ (* t_1 t_2) (- Om))
(sqrt (* 2.0 (fabs (* t (* n U))))))))))
double code(double n, double U, double t, double l, double Om, double U_42_) {
double t_1 = l * (n * sqrt(2.0));
double t_2 = sqrt((U * U_42_));
double tmp;
if (Om <= -1e-141) {
tmp = pow(((2.0 * U) * (n * t)), 0.5);
} else if (Om <= -1.5e-205) {
tmp = (t_1 / Om) * t_2;
} else if (Om <= 6e-91) {
tmp = (t_1 * t_2) / -Om;
} else {
tmp = sqrt((2.0 * fabs((t * (n * U)))));
}
return tmp;
}
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
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = l * (n * sqrt(2.0d0))
t_2 = sqrt((u * u_42))
if (om <= (-1d-141)) then
tmp = ((2.0d0 * u) * (n * t)) ** 0.5d0
else if (om <= (-1.5d-205)) then
tmp = (t_1 / om) * t_2
else if (om <= 6d-91) then
tmp = (t_1 * t_2) / -om
else
tmp = sqrt((2.0d0 * abs((t * (n * u)))))
end if
code = tmp
end function
public static double code(double n, double U, double t, double l, double Om, double U_42_) {
double t_1 = l * (n * Math.sqrt(2.0));
double t_2 = Math.sqrt((U * U_42_));
double tmp;
if (Om <= -1e-141) {
tmp = Math.pow(((2.0 * U) * (n * t)), 0.5);
} else if (Om <= -1.5e-205) {
tmp = (t_1 / Om) * t_2;
} else if (Om <= 6e-91) {
tmp = (t_1 * t_2) / -Om;
} else {
tmp = Math.sqrt((2.0 * Math.abs((t * (n * U)))));
}
return tmp;
}
def code(n, U, t, l, Om, U_42_): t_1 = l * (n * math.sqrt(2.0)) t_2 = math.sqrt((U * U_42_)) tmp = 0 if Om <= -1e-141: tmp = math.pow(((2.0 * U) * (n * t)), 0.5) elif Om <= -1.5e-205: tmp = (t_1 / Om) * t_2 elif Om <= 6e-91: tmp = (t_1 * t_2) / -Om else: tmp = math.sqrt((2.0 * math.fabs((t * (n * U))))) return tmp
function code(n, U, t, l, Om, U_42_) t_1 = Float64(l * Float64(n * sqrt(2.0))) t_2 = sqrt(Float64(U * U_42_)) tmp = 0.0 if (Om <= -1e-141) tmp = Float64(Float64(2.0 * U) * Float64(n * t)) ^ 0.5; elseif (Om <= -1.5e-205) tmp = Float64(Float64(t_1 / Om) * t_2); elseif (Om <= 6e-91) tmp = Float64(Float64(t_1 * t_2) / Float64(-Om)); else tmp = sqrt(Float64(2.0 * abs(Float64(t * Float64(n * U))))); end return tmp end
function tmp_2 = code(n, U, t, l, Om, U_42_) t_1 = l * (n * sqrt(2.0)); t_2 = sqrt((U * U_42_)); tmp = 0.0; if (Om <= -1e-141) tmp = ((2.0 * U) * (n * t)) ^ 0.5; elseif (Om <= -1.5e-205) tmp = (t_1 / Om) * t_2; elseif (Om <= 6e-91) tmp = (t_1 * t_2) / -Om; else tmp = sqrt((2.0 * abs((t * (n * U))))); end tmp_2 = tmp; end
code[n_, U_, t_, l_, Om_, U$42$_] := Block[{t$95$1 = N[(l * N[(n * N[Sqrt[2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[Sqrt[N[(U * U$42$), $MachinePrecision]], $MachinePrecision]}, If[LessEqual[Om, -1e-141], N[Power[N[(N[(2.0 * U), $MachinePrecision] * N[(n * t), $MachinePrecision]), $MachinePrecision], 0.5], $MachinePrecision], If[LessEqual[Om, -1.5e-205], N[(N[(t$95$1 / Om), $MachinePrecision] * t$95$2), $MachinePrecision], If[LessEqual[Om, 6e-91], N[(N[(t$95$1 * t$95$2), $MachinePrecision] / (-Om)), $MachinePrecision], N[Sqrt[N[(2.0 * N[Abs[N[(t * N[(n * U), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]], $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \ell \cdot \left(n \cdot \sqrt{2}\right)\\
t_2 := \sqrt{U \cdot U*}\\
\mathbf{if}\;Om \leq -1 \cdot 10^{-141}:\\
\;\;\;\;{\left(\left(2 \cdot U\right) \cdot \left(n \cdot t\right)\right)}^{0.5}\\
\mathbf{elif}\;Om \leq -1.5 \cdot 10^{-205}:\\
\;\;\;\;\frac{t\_1}{Om} \cdot t\_2\\
\mathbf{elif}\;Om \leq 6 \cdot 10^{-91}:\\
\;\;\;\;\frac{t\_1 \cdot t\_2}{-Om}\\
\mathbf{else}:\\
\;\;\;\;\sqrt{2 \cdot \left|t \cdot \left(n \cdot U\right)\right|}\\
\end{array}
\end{array}
if Om < -1e-141Initial program 46.4%
Simplified51.1%
Taylor expanded in t around inf 38.7%
pow1/244.6%
associate-*r*44.6%
Applied egg-rr44.6%
if -1e-141 < Om < -1.5e-205Initial program 31.4%
Simplified31.4%
Taylor expanded in U* around inf 40.4%
if -1.5e-205 < Om < 6.0000000000000004e-91Initial program 40.6%
Simplified37.6%
Taylor expanded in Om around 0 39.6%
Taylor expanded in U around 0 39.5%
mul-1-neg39.5%
distribute-rgt-neg-in39.5%
*-commutative39.5%
distribute-rgt-neg-in39.5%
Simplified39.5%
Taylor expanded in l around -inf 30.8%
mul-1-neg30.8%
associate-*l/30.7%
Simplified30.7%
if 6.0000000000000004e-91 < Om Initial program 61.6%
Simplified62.8%
Taylor expanded in t around inf 49.6%
associate-*r*49.0%
add-sqr-sqrt48.9%
pow1/248.9%
pow1/252.5%
pow-prod-down34.6%
pow234.6%
associate-*r*34.5%
Applied egg-rr34.5%
unpow1/234.5%
unpow234.5%
rem-sqrt-square50.3%
associate-*r*53.1%
Simplified53.1%
Final simplification43.9%
(FPCore (n U t l Om U*) :precision binary64 (if (or (<= U -1.3e+29) (not (<= U 1.5e-38))) (sqrt (* 2.0 (fabs (* t (* n U))))) (sqrt (* (* 2.0 n) (* U (- t (* 2.0 (/ (pow l 2.0) Om))))))))
double code(double n, double U, double t, double l, double Om, double U_42_) {
double tmp;
if ((U <= -1.3e+29) || !(U <= 1.5e-38)) {
tmp = sqrt((2.0 * fabs((t * (n * U)))));
} else {
tmp = sqrt(((2.0 * n) * (U * (t - (2.0 * (pow(l, 2.0) / Om))))));
}
return tmp;
}
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
real(8) :: tmp
if ((u <= (-1.3d+29)) .or. (.not. (u <= 1.5d-38))) then
tmp = sqrt((2.0d0 * abs((t * (n * u)))))
else
tmp = sqrt(((2.0d0 * n) * (u * (t - (2.0d0 * ((l ** 2.0d0) / om))))))
end if
code = tmp
end function
public static double code(double n, double U, double t, double l, double Om, double U_42_) {
double tmp;
if ((U <= -1.3e+29) || !(U <= 1.5e-38)) {
tmp = Math.sqrt((2.0 * Math.abs((t * (n * U)))));
} else {
tmp = Math.sqrt(((2.0 * n) * (U * (t - (2.0 * (Math.pow(l, 2.0) / Om))))));
}
return tmp;
}
def code(n, U, t, l, Om, U_42_): tmp = 0 if (U <= -1.3e+29) or not (U <= 1.5e-38): tmp = math.sqrt((2.0 * math.fabs((t * (n * U))))) else: tmp = math.sqrt(((2.0 * n) * (U * (t - (2.0 * (math.pow(l, 2.0) / Om)))))) return tmp
function code(n, U, t, l, Om, U_42_) tmp = 0.0 if ((U <= -1.3e+29) || !(U <= 1.5e-38)) tmp = sqrt(Float64(2.0 * abs(Float64(t * Float64(n * U))))); else tmp = sqrt(Float64(Float64(2.0 * n) * Float64(U * Float64(t - Float64(2.0 * Float64((l ^ 2.0) / Om)))))); end return tmp end
function tmp_2 = code(n, U, t, l, Om, U_42_) tmp = 0.0; if ((U <= -1.3e+29) || ~((U <= 1.5e-38))) tmp = sqrt((2.0 * abs((t * (n * U))))); else tmp = sqrt(((2.0 * n) * (U * (t - (2.0 * ((l ^ 2.0) / Om)))))); end tmp_2 = tmp; end
code[n_, U_, t_, l_, Om_, U$42$_] := If[Or[LessEqual[U, -1.3e+29], N[Not[LessEqual[U, 1.5e-38]], $MachinePrecision]], N[Sqrt[N[(2.0 * N[Abs[N[(t * N[(n * U), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]], $MachinePrecision], N[Sqrt[N[(N[(2.0 * n), $MachinePrecision] * N[(U * N[(t - N[(2.0 * N[(N[Power[l, 2.0], $MachinePrecision] / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;U \leq -1.3 \cdot 10^{+29} \lor \neg \left(U \leq 1.5 \cdot 10^{-38}\right):\\
\;\;\;\;\sqrt{2 \cdot \left|t \cdot \left(n \cdot U\right)\right|}\\
\mathbf{else}:\\
\;\;\;\;\sqrt{\left(2 \cdot n\right) \cdot \left(U \cdot \left(t - 2 \cdot \frac{{\ell}^{2}}{Om}\right)\right)}\\
\end{array}
\end{array}
if U < -1.3e29 or 1.49999999999999994e-38 < U Initial program 55.4%
Simplified56.5%
Taylor expanded in t around inf 40.8%
associate-*r*42.7%
add-sqr-sqrt42.5%
pow1/242.5%
pow1/248.6%
pow-prod-down32.2%
pow232.2%
associate-*r*31.3%
Applied egg-rr31.3%
unpow1/231.3%
unpow231.3%
rem-sqrt-square43.7%
associate-*r*49.4%
Simplified49.4%
if -1.3e29 < U < 1.49999999999999994e-38Initial program 45.5%
Simplified54.3%
Taylor expanded in Om around inf 47.2%
Final simplification48.1%
(FPCore (n U t l Om U*) :precision binary64 (if (<= l 1.85e+153) (sqrt (* 2.0 (fabs (* t (* n U))))) (* l (* (sqrt (* U U*)) (/ (* n (sqrt 2.0)) Om)))))
double code(double n, double U, double t, double l, double Om, double U_42_) {
double tmp;
if (l <= 1.85e+153) {
tmp = sqrt((2.0 * fabs((t * (n * U)))));
} else {
tmp = l * (sqrt((U * U_42_)) * ((n * sqrt(2.0)) / Om));
}
return tmp;
}
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
real(8) :: tmp
if (l <= 1.85d+153) then
tmp = sqrt((2.0d0 * abs((t * (n * u)))))
else
tmp = l * (sqrt((u * u_42)) * ((n * sqrt(2.0d0)) / om))
end if
code = tmp
end function
public static double code(double n, double U, double t, double l, double Om, double U_42_) {
double tmp;
if (l <= 1.85e+153) {
tmp = Math.sqrt((2.0 * Math.abs((t * (n * U)))));
} else {
tmp = l * (Math.sqrt((U * U_42_)) * ((n * Math.sqrt(2.0)) / Om));
}
return tmp;
}
def code(n, U, t, l, Om, U_42_): tmp = 0 if l <= 1.85e+153: tmp = math.sqrt((2.0 * math.fabs((t * (n * U))))) else: tmp = l * (math.sqrt((U * U_42_)) * ((n * math.sqrt(2.0)) / Om)) return tmp
function code(n, U, t, l, Om, U_42_) tmp = 0.0 if (l <= 1.85e+153) tmp = sqrt(Float64(2.0 * abs(Float64(t * Float64(n * U))))); else tmp = Float64(l * Float64(sqrt(Float64(U * U_42_)) * Float64(Float64(n * sqrt(2.0)) / Om))); end return tmp end
function tmp_2 = code(n, U, t, l, Om, U_42_) tmp = 0.0; if (l <= 1.85e+153) tmp = sqrt((2.0 * abs((t * (n * U))))); else tmp = l * (sqrt((U * U_42_)) * ((n * sqrt(2.0)) / Om)); end tmp_2 = tmp; end
code[n_, U_, t_, l_, Om_, U$42$_] := If[LessEqual[l, 1.85e+153], N[Sqrt[N[(2.0 * N[Abs[N[(t * N[(n * U), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]], $MachinePrecision], N[(l * N[(N[Sqrt[N[(U * U$42$), $MachinePrecision]], $MachinePrecision] * N[(N[(n * N[Sqrt[2.0], $MachinePrecision]), $MachinePrecision] / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;\ell \leq 1.85 \cdot 10^{+153}:\\
\;\;\;\;\sqrt{2 \cdot \left|t \cdot \left(n \cdot U\right)\right|}\\
\mathbf{else}:\\
\;\;\;\;\ell \cdot \left(\sqrt{U \cdot U*} \cdot \frac{n \cdot \sqrt{2}}{Om}\right)\\
\end{array}
\end{array}
if l < 1.8500000000000001e153Initial program 53.3%
Simplified53.8%
Taylor expanded in t around inf 40.3%
associate-*r*39.2%
add-sqr-sqrt39.1%
pow1/239.1%
pow1/242.7%
pow-prod-down31.5%
pow231.5%
associate-*r*32.3%
Applied egg-rr32.3%
unpow1/232.3%
unpow232.3%
rem-sqrt-square43.7%
associate-*r*43.5%
Simplified43.5%
if 1.8500000000000001e153 < l Initial program 20.8%
Simplified35.9%
associate-*r*35.9%
fma-define39.2%
associate-*r*36.0%
Applied egg-rr36.0%
Taylor expanded in U around 0 23.1%
associate-/l*23.1%
unpow223.1%
unpow223.1%
times-frac36.0%
unpow236.0%
neg-mul-136.0%
distribute-lft-neg-out36.0%
*-commutative36.0%
Simplified36.0%
Taylor expanded in n around inf 26.8%
associate-/l*29.8%
associate-*r/29.8%
associate-*r*29.8%
*-commutative29.8%
associate-*r/29.8%
Simplified29.8%
Final simplification41.8%
(FPCore (n U t l Om U*) :precision binary64 (if (<= l 4.9e+143) (sqrt (* 2.0 (fabs (* t (* n U))))) (sqrt (/ (* (* n (pow l 2.0)) (* U -4.0)) Om))))
double code(double n, double U, double t, double l, double Om, double U_42_) {
double tmp;
if (l <= 4.9e+143) {
tmp = sqrt((2.0 * fabs((t * (n * U)))));
} else {
tmp = sqrt((((n * pow(l, 2.0)) * (U * -4.0)) / Om));
}
return tmp;
}
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
real(8) :: tmp
if (l <= 4.9d+143) then
tmp = sqrt((2.0d0 * abs((t * (n * u)))))
else
tmp = sqrt((((n * (l ** 2.0d0)) * (u * (-4.0d0))) / om))
end if
code = tmp
end function
public static double code(double n, double U, double t, double l, double Om, double U_42_) {
double tmp;
if (l <= 4.9e+143) {
tmp = Math.sqrt((2.0 * Math.abs((t * (n * U)))));
} else {
tmp = Math.sqrt((((n * Math.pow(l, 2.0)) * (U * -4.0)) / Om));
}
return tmp;
}
def code(n, U, t, l, Om, U_42_): tmp = 0 if l <= 4.9e+143: tmp = math.sqrt((2.0 * math.fabs((t * (n * U))))) else: tmp = math.sqrt((((n * math.pow(l, 2.0)) * (U * -4.0)) / Om)) return tmp
function code(n, U, t, l, Om, U_42_) tmp = 0.0 if (l <= 4.9e+143) tmp = sqrt(Float64(2.0 * abs(Float64(t * Float64(n * U))))); else tmp = sqrt(Float64(Float64(Float64(n * (l ^ 2.0)) * Float64(U * -4.0)) / Om)); end return tmp end
function tmp_2 = code(n, U, t, l, Om, U_42_) tmp = 0.0; if (l <= 4.9e+143) tmp = sqrt((2.0 * abs((t * (n * U))))); else tmp = sqrt((((n * (l ^ 2.0)) * (U * -4.0)) / Om)); end tmp_2 = tmp; end
code[n_, U_, t_, l_, Om_, U$42$_] := If[LessEqual[l, 4.9e+143], N[Sqrt[N[(2.0 * N[Abs[N[(t * N[(n * U), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]], $MachinePrecision], N[Sqrt[N[(N[(N[(n * N[Power[l, 2.0], $MachinePrecision]), $MachinePrecision] * N[(U * -4.0), $MachinePrecision]), $MachinePrecision] / Om), $MachinePrecision]], $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;\ell \leq 4.9 \cdot 10^{+143}:\\
\;\;\;\;\sqrt{2 \cdot \left|t \cdot \left(n \cdot U\right)\right|}\\
\mathbf{else}:\\
\;\;\;\;\sqrt{\frac{\left(n \cdot {\ell}^{2}\right) \cdot \left(U \cdot -4\right)}{Om}}\\
\end{array}
\end{array}
if l < 4.89999999999999986e143Initial program 53.2%
Simplified53.7%
Taylor expanded in t around inf 40.4%
associate-*r*39.7%
add-sqr-sqrt39.6%
pow1/239.6%
pow1/243.2%
pow-prod-down31.9%
pow231.9%
associate-*r*32.3%
Applied egg-rr32.3%
unpow1/232.3%
unpow232.3%
rem-sqrt-square43.8%
associate-*r*44.0%
Simplified44.0%
if 4.89999999999999986e143 < l Initial program 24.9%
Simplified39.5%
Taylor expanded in Om around inf 28.6%
Taylor expanded in t around 0 28.6%
associate-*r/28.6%
associate-*r*28.6%
*-commutative28.6%
Simplified28.6%
Final simplification42.0%
(FPCore (n U t l Om U*) :precision binary64 (pow (* (* (* 2.0 n) U) (+ t (* -2.0 (/ (pow l 2.0) Om)))) 0.5))
double code(double n, double U, double t, double l, double Om, double U_42_) {
return pow((((2.0 * n) * U) * (t + (-2.0 * (pow(l, 2.0) / Om)))), 0.5);
}
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 = (((2.0d0 * n) * u) * (t + ((-2.0d0) * ((l ** 2.0d0) / om)))) ** 0.5d0
end function
public static double code(double n, double U, double t, double l, double Om, double U_42_) {
return Math.pow((((2.0 * n) * U) * (t + (-2.0 * (Math.pow(l, 2.0) / Om)))), 0.5);
}
def code(n, U, t, l, Om, U_42_): return math.pow((((2.0 * n) * U) * (t + (-2.0 * (math.pow(l, 2.0) / Om)))), 0.5)
function code(n, U, t, l, Om, U_42_) return Float64(Float64(Float64(2.0 * n) * U) * Float64(t + Float64(-2.0 * Float64((l ^ 2.0) / Om)))) ^ 0.5 end
function tmp = code(n, U, t, l, Om, U_42_) tmp = (((2.0 * n) * U) * (t + (-2.0 * ((l ^ 2.0) / Om)))) ^ 0.5; end
code[n_, U_, t_, l_, Om_, U$42$_] := N[Power[N[(N[(N[(2.0 * n), $MachinePrecision] * U), $MachinePrecision] * N[(t + N[(-2.0 * N[(N[Power[l, 2.0], $MachinePrecision] / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 0.5], $MachinePrecision]
\begin{array}{l}
\\
{\left(\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(t + -2 \cdot \frac{{\ell}^{2}}{Om}\right)\right)}^{0.5}
\end{array}
Initial program 49.4%
Simplified49.9%
Taylor expanded in Om around inf 43.3%
pow1/252.2%
associate-*r*51.8%
cancel-sign-sub-inv51.8%
metadata-eval51.8%
Applied egg-rr51.8%
(FPCore (n U t l Om U*) :precision binary64 (if (<= n 1.06e-243) (pow (* (* 2.0 U) (* n t)) 0.5) (sqrt (* 2.0 (fabs (* t (* n U)))))))
double code(double n, double U, double t, double l, double Om, double U_42_) {
double tmp;
if (n <= 1.06e-243) {
tmp = pow(((2.0 * U) * (n * t)), 0.5);
} else {
tmp = sqrt((2.0 * fabs((t * (n * U)))));
}
return tmp;
}
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
real(8) :: tmp
if (n <= 1.06d-243) then
tmp = ((2.0d0 * u) * (n * t)) ** 0.5d0
else
tmp = sqrt((2.0d0 * abs((t * (n * u)))))
end if
code = tmp
end function
public static double code(double n, double U, double t, double l, double Om, double U_42_) {
double tmp;
if (n <= 1.06e-243) {
tmp = Math.pow(((2.0 * U) * (n * t)), 0.5);
} else {
tmp = Math.sqrt((2.0 * Math.abs((t * (n * U)))));
}
return tmp;
}
def code(n, U, t, l, Om, U_42_): tmp = 0 if n <= 1.06e-243: tmp = math.pow(((2.0 * U) * (n * t)), 0.5) else: tmp = math.sqrt((2.0 * math.fabs((t * (n * U))))) return tmp
function code(n, U, t, l, Om, U_42_) tmp = 0.0 if (n <= 1.06e-243) tmp = Float64(Float64(2.0 * U) * Float64(n * t)) ^ 0.5; else tmp = sqrt(Float64(2.0 * abs(Float64(t * Float64(n * U))))); end return tmp end
function tmp_2 = code(n, U, t, l, Om, U_42_) tmp = 0.0; if (n <= 1.06e-243) tmp = ((2.0 * U) * (n * t)) ^ 0.5; else tmp = sqrt((2.0 * abs((t * (n * U))))); end tmp_2 = tmp; end
code[n_, U_, t_, l_, Om_, U$42$_] := If[LessEqual[n, 1.06e-243], N[Power[N[(N[(2.0 * U), $MachinePrecision] * N[(n * t), $MachinePrecision]), $MachinePrecision], 0.5], $MachinePrecision], N[Sqrt[N[(2.0 * N[Abs[N[(t * N[(n * U), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]], $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;n \leq 1.06 \cdot 10^{-243}:\\
\;\;\;\;{\left(\left(2 \cdot U\right) \cdot \left(n \cdot t\right)\right)}^{0.5}\\
\mathbf{else}:\\
\;\;\;\;\sqrt{2 \cdot \left|t \cdot \left(n \cdot U\right)\right|}\\
\end{array}
\end{array}
if n < 1.06e-243Initial program 43.3%
Simplified45.5%
Taylor expanded in t around inf 32.2%
pow1/233.6%
associate-*r*33.6%
Applied egg-rr33.6%
if 1.06e-243 < n Initial program 56.9%
Simplified59.2%
Taylor expanded in t around inf 40.7%
associate-*r*44.1%
add-sqr-sqrt43.9%
pow1/243.9%
pow1/251.0%
pow-prod-down39.5%
pow239.5%
associate-*r*37.8%
Applied egg-rr37.8%
unpow1/237.8%
unpow237.8%
rem-sqrt-square46.8%
associate-*r*51.9%
Simplified51.9%
Final simplification41.8%
(FPCore (n U t l Om U*) :precision binary64 (pow (* (* 2.0 U) (* n t)) 0.5))
double code(double n, double U, double t, double l, double Om, double U_42_) {
return pow(((2.0 * U) * (n * t)), 0.5);
}
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 = ((2.0d0 * u) * (n * t)) ** 0.5d0
end function
public static double code(double n, double U, double t, double l, double Om, double U_42_) {
return Math.pow(((2.0 * U) * (n * t)), 0.5);
}
def code(n, U, t, l, Om, U_42_): return math.pow(((2.0 * U) * (n * t)), 0.5)
function code(n, U, t, l, Om, U_42_) return Float64(Float64(2.0 * U) * Float64(n * t)) ^ 0.5 end
function tmp = code(n, U, t, l, Om, U_42_) tmp = ((2.0 * U) * (n * t)) ^ 0.5; end
code[n_, U_, t_, l_, Om_, U$42$_] := N[Power[N[(N[(2.0 * U), $MachinePrecision] * N[(n * t), $MachinePrecision]), $MachinePrecision], 0.5], $MachinePrecision]
\begin{array}{l}
\\
{\left(\left(2 \cdot U\right) \cdot \left(n \cdot t\right)\right)}^{0.5}
\end{array}
Initial program 49.4%
Simplified51.7%
Taylor expanded in t around inf 36.0%
pow1/239.2%
associate-*r*39.2%
Applied egg-rr39.2%
(FPCore (n U t l Om U*) :precision binary64 (sqrt (* 2.0 (* U (* n t)))))
double code(double n, double U, double t, double l, double Om, double U_42_) {
return sqrt((2.0 * (U * (n * t))));
}
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 * (u * (n * t))))
end function
public static double code(double n, double U, double t, double l, double Om, double U_42_) {
return Math.sqrt((2.0 * (U * (n * t))));
}
def code(n, U, t, l, Om, U_42_): return math.sqrt((2.0 * (U * (n * t))))
function code(n, U, t, l, Om, U_42_) return sqrt(Float64(2.0 * Float64(U * Float64(n * t)))) end
function tmp = code(n, U, t, l, Om, U_42_) tmp = sqrt((2.0 * (U * (n * t)))); end
code[n_, U_, t_, l_, Om_, U$42$_] := N[Sqrt[N[(2.0 * N[(U * N[(n * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]
\begin{array}{l}
\\
\sqrt{2 \cdot \left(U \cdot \left(n \cdot t\right)\right)}
\end{array}
Initial program 49.4%
Simplified51.7%
Taylor expanded in t around inf 36.0%
herbie shell --seed 2024089
(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*))))))