
(FPCore (n U t l Om U*) :precision binary64 (sqrt (* (* (* 2.0 n) U) (- (- t (* 2.0 (/ (* l l) Om))) (* (* n (pow (/ l Om) 2.0)) (- U U*))))))
double code(double n, double U, double t, double l, double Om, double U_42_) {
return sqrt((((2.0 * n) * U) * ((t - (2.0 * ((l * l) / Om))) - ((n * pow((l / Om), 2.0)) * (U - U_42_)))));
}
real(8) function code(n, u, t, l, om, u_42)
real(8), intent (in) :: n
real(8), intent (in) :: u
real(8), intent (in) :: t
real(8), intent (in) :: l
real(8), intent (in) :: om
real(8), intent (in) :: u_42
code = sqrt((((2.0d0 * n) * u) * ((t - (2.0d0 * ((l * l) / om))) - ((n * ((l / om) ** 2.0d0)) * (u - u_42)))))
end function
public static double code(double n, double U, double t, double l, double Om, double U_42_) {
return Math.sqrt((((2.0 * n) * U) * ((t - (2.0 * ((l * l) / Om))) - ((n * Math.pow((l / Om), 2.0)) * (U - U_42_)))));
}
def code(n, U, t, l, Om, U_42_): return math.sqrt((((2.0 * n) * U) * ((t - (2.0 * ((l * l) / Om))) - ((n * math.pow((l / Om), 2.0)) * (U - U_42_)))))
function code(n, U, t, l, Om, U_42_) return sqrt(Float64(Float64(Float64(2.0 * n) * U) * Float64(Float64(t - Float64(2.0 * Float64(Float64(l * l) / Om))) - Float64(Float64(n * (Float64(l / Om) ^ 2.0)) * Float64(U - U_42_))))) end
function tmp = code(n, U, t, l, Om, U_42_) tmp = sqrt((((2.0 * n) * U) * ((t - (2.0 * ((l * l) / Om))) - ((n * ((l / Om) ^ 2.0)) * (U - U_42_))))); end
code[n_, U_, t_, l_, Om_, U$42$_] := N[Sqrt[N[(N[(N[(2.0 * n), $MachinePrecision] * U), $MachinePrecision] * N[(N[(t - N[(2.0 * N[(N[(l * l), $MachinePrecision] / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(n * N[Power[N[(l / Om), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision] * N[(U - U$42$), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]
\begin{array}{l}
\\
\sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(t - 2 \cdot \frac{\ell \cdot \ell}{Om}\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 21 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (n U t l Om U*) :precision binary64 (sqrt (* (* (* 2.0 n) U) (- (- t (* 2.0 (/ (* l l) Om))) (* (* n (pow (/ l Om) 2.0)) (- U U*))))))
double code(double n, double U, double t, double l, double Om, double U_42_) {
return sqrt((((2.0 * n) * U) * ((t - (2.0 * ((l * l) / Om))) - ((n * pow((l / Om), 2.0)) * (U - U_42_)))));
}
real(8) function code(n, u, t, l, om, u_42)
real(8), intent (in) :: n
real(8), intent (in) :: u
real(8), intent (in) :: t
real(8), intent (in) :: l
real(8), intent (in) :: om
real(8), intent (in) :: u_42
code = sqrt((((2.0d0 * n) * u) * ((t - (2.0d0 * ((l * l) / om))) - ((n * ((l / om) ** 2.0d0)) * (u - u_42)))))
end function
public static double code(double n, double U, double t, double l, double Om, double U_42_) {
return Math.sqrt((((2.0 * n) * U) * ((t - (2.0 * ((l * l) / Om))) - ((n * Math.pow((l / Om), 2.0)) * (U - U_42_)))));
}
def code(n, U, t, l, Om, U_42_): return math.sqrt((((2.0 * n) * U) * ((t - (2.0 * ((l * l) / Om))) - ((n * math.pow((l / Om), 2.0)) * (U - U_42_)))))
function code(n, U, t, l, Om, U_42_) return sqrt(Float64(Float64(Float64(2.0 * n) * U) * Float64(Float64(t - Float64(2.0 * Float64(Float64(l * l) / Om))) - Float64(Float64(n * (Float64(l / Om) ^ 2.0)) * Float64(U - U_42_))))) end
function tmp = code(n, U, t, l, Om, U_42_) tmp = sqrt((((2.0 * n) * U) * ((t - (2.0 * ((l * l) / Om))) - ((n * ((l / Om) ^ 2.0)) * (U - U_42_))))); end
code[n_, U_, t_, l_, Om_, U$42$_] := N[Sqrt[N[(N[(N[(2.0 * n), $MachinePrecision] * U), $MachinePrecision] * N[(N[(t - N[(2.0 * N[(N[(l * l), $MachinePrecision] / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(n * N[Power[N[(l / Om), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision] * N[(U - U$42$), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]
\begin{array}{l}
\\
\sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(t - 2 \cdot \frac{\ell \cdot \ell}{Om}\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)}
\end{array}
(FPCore (n U t l Om U*)
:precision binary64
(if (<= n -3.6e-279)
(sqrt
(*
(+ (/ U (/ (/ Om l) (+ (* l -2.0) (* (/ n (/ Om l)) (- U* U))))) (* U t))
(* n 2.0)))
(if (<= n 3.05e-114)
(sqrt (+ (* (* U 2.0) (* n t)) (/ (* (* (* U l) (* n l)) -4.0) Om)))
(*
(sqrt
(*
(* U 2.0)
(+ t (/ (+ (* l -2.0) (/ (- U* U) (/ (/ Om l) n))) (/ Om l)))))
(sqrt n)))))
double code(double n, double U, double t, double l, double Om, double U_42_) {
double tmp;
if (n <= -3.6e-279) {
tmp = sqrt((((U / ((Om / l) / ((l * -2.0) + ((n / (Om / l)) * (U_42_ - U))))) + (U * t)) * (n * 2.0)));
} else if (n <= 3.05e-114) {
tmp = sqrt((((U * 2.0) * (n * t)) + ((((U * l) * (n * l)) * -4.0) / Om)));
} else {
tmp = sqrt(((U * 2.0) * (t + (((l * -2.0) + ((U_42_ - U) / ((Om / l) / n))) / (Om / l))))) * sqrt(n);
}
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 <= (-3.6d-279)) then
tmp = sqrt((((u / ((om / l) / ((l * (-2.0d0)) + ((n / (om / l)) * (u_42 - u))))) + (u * t)) * (n * 2.0d0)))
else if (n <= 3.05d-114) then
tmp = sqrt((((u * 2.0d0) * (n * t)) + ((((u * l) * (n * l)) * (-4.0d0)) / om)))
else
tmp = sqrt(((u * 2.0d0) * (t + (((l * (-2.0d0)) + ((u_42 - u) / ((om / l) / n))) / (om / l))))) * sqrt(n)
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 <= -3.6e-279) {
tmp = Math.sqrt((((U / ((Om / l) / ((l * -2.0) + ((n / (Om / l)) * (U_42_ - U))))) + (U * t)) * (n * 2.0)));
} else if (n <= 3.05e-114) {
tmp = Math.sqrt((((U * 2.0) * (n * t)) + ((((U * l) * (n * l)) * -4.0) / Om)));
} else {
tmp = Math.sqrt(((U * 2.0) * (t + (((l * -2.0) + ((U_42_ - U) / ((Om / l) / n))) / (Om / l))))) * Math.sqrt(n);
}
return tmp;
}
def code(n, U, t, l, Om, U_42_): tmp = 0 if n <= -3.6e-279: tmp = math.sqrt((((U / ((Om / l) / ((l * -2.0) + ((n / (Om / l)) * (U_42_ - U))))) + (U * t)) * (n * 2.0))) elif n <= 3.05e-114: tmp = math.sqrt((((U * 2.0) * (n * t)) + ((((U * l) * (n * l)) * -4.0) / Om))) else: tmp = math.sqrt(((U * 2.0) * (t + (((l * -2.0) + ((U_42_ - U) / ((Om / l) / n))) / (Om / l))))) * math.sqrt(n) return tmp
function code(n, U, t, l, Om, U_42_) tmp = 0.0 if (n <= -3.6e-279) tmp = sqrt(Float64(Float64(Float64(U / Float64(Float64(Om / l) / Float64(Float64(l * -2.0) + Float64(Float64(n / Float64(Om / l)) * Float64(U_42_ - U))))) + Float64(U * t)) * Float64(n * 2.0))); elseif (n <= 3.05e-114) tmp = sqrt(Float64(Float64(Float64(U * 2.0) * Float64(n * t)) + Float64(Float64(Float64(Float64(U * l) * Float64(n * l)) * -4.0) / Om))); else tmp = Float64(sqrt(Float64(Float64(U * 2.0) * Float64(t + Float64(Float64(Float64(l * -2.0) + Float64(Float64(U_42_ - U) / Float64(Float64(Om / l) / n))) / Float64(Om / l))))) * sqrt(n)); end return tmp end
function tmp_2 = code(n, U, t, l, Om, U_42_) tmp = 0.0; if (n <= -3.6e-279) tmp = sqrt((((U / ((Om / l) / ((l * -2.0) + ((n / (Om / l)) * (U_42_ - U))))) + (U * t)) * (n * 2.0))); elseif (n <= 3.05e-114) tmp = sqrt((((U * 2.0) * (n * t)) + ((((U * l) * (n * l)) * -4.0) / Om))); else tmp = sqrt(((U * 2.0) * (t + (((l * -2.0) + ((U_42_ - U) / ((Om / l) / n))) / (Om / l))))) * sqrt(n); end tmp_2 = tmp; end
code[n_, U_, t_, l_, Om_, U$42$_] := If[LessEqual[n, -3.6e-279], N[Sqrt[N[(N[(N[(U / N[(N[(Om / l), $MachinePrecision] / N[(N[(l * -2.0), $MachinePrecision] + N[(N[(n / N[(Om / l), $MachinePrecision]), $MachinePrecision] * N[(U$42$ - U), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(U * t), $MachinePrecision]), $MachinePrecision] * N[(n * 2.0), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], If[LessEqual[n, 3.05e-114], N[Sqrt[N[(N[(N[(U * 2.0), $MachinePrecision] * N[(n * t), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(N[(U * l), $MachinePrecision] * N[(n * l), $MachinePrecision]), $MachinePrecision] * -4.0), $MachinePrecision] / Om), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], N[(N[Sqrt[N[(N[(U * 2.0), $MachinePrecision] * N[(t + N[(N[(N[(l * -2.0), $MachinePrecision] + N[(N[(U$42$ - U), $MachinePrecision] / N[(N[(Om / l), $MachinePrecision] / n), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(Om / l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * N[Sqrt[n], $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;n \leq -3.6 \cdot 10^{-279}:\\
\;\;\;\;\sqrt{\left(\frac{U}{\frac{\frac{Om}{\ell}}{\ell \cdot -2 + \frac{n}{\frac{Om}{\ell}} \cdot \left(U* - U\right)}} + U \cdot t\right) \cdot \left(n \cdot 2\right)}\\
\mathbf{elif}\;n \leq 3.05 \cdot 10^{-114}:\\
\;\;\;\;\sqrt{\left(U \cdot 2\right) \cdot \left(n \cdot t\right) + \frac{\left(\left(U \cdot \ell\right) \cdot \left(n \cdot \ell\right)\right) \cdot -4}{Om}}\\
\mathbf{else}:\\
\;\;\;\;\sqrt{\left(U \cdot 2\right) \cdot \left(t + \frac{\ell \cdot -2 + \frac{U* - U}{\frac{\frac{Om}{\ell}}{n}}}{\frac{Om}{\ell}}\right)} \cdot \sqrt{n}\\
\end{array}
\end{array}
if n < -3.5999999999999997e-279Initial program 48.7%
associate-/l*N/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
/-lowering-/.f6453.5%
Applied egg-rr53.5%
associate-/r/N/A
associate-*l/N/A
unpow2N/A
associate-*r*N/A
clear-numN/A
div-invN/A
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
Applied egg-rr58.2%
+-commutativeN/A
distribute-lft-inN/A
*-commutativeN/A
+-lowering-+.f64N/A
Applied egg-rr62.1%
if -3.5999999999999997e-279 < n < 3.04999999999999988e-114Initial program 43.8%
Taylor expanded in Om around inf
+-commutativeN/A
+-lowering-+.f64N/A
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
associate-*r/N/A
/-lowering-/.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6453.7%
Simplified53.7%
associate-*l*N/A
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f6471.4%
Applied egg-rr71.4%
if 3.04999999999999988e-114 < n Initial program 51.7%
associate-/l*N/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
/-lowering-/.f6452.9%
Applied egg-rr52.9%
associate-/r/N/A
associate-*l/N/A
unpow2N/A
associate-*r*N/A
clear-numN/A
div-invN/A
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
Applied egg-rr56.3%
clear-numN/A
associate-/r/N/A
clear-numN/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
--lowering--.f64N/A
*-commutativeN/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
/-lowering-/.f6464.2%
Applied egg-rr64.2%
Applied egg-rr82.2%
Final simplification70.4%
(FPCore (n U t l Om U*)
:precision binary64
(let* ((t_1 (+ (* l -2.0) (* (/ n (/ Om l)) (- U* U)))))
(if (<= n -1.35e-274)
(sqrt (* (+ (/ U (/ (/ Om l) t_1)) (* U t)) (* n 2.0)))
(if (<= n 3.05e-114)
(sqrt (+ (* (* U 2.0) (* n t)) (/ (* (* (* U l) (* n l)) -4.0) Om)))
(* (sqrt n) (sqrt (* (* U 2.0) (+ t (/ l (/ Om t_1))))))))))
double code(double n, double U, double t, double l, double Om, double U_42_) {
double t_1 = (l * -2.0) + ((n / (Om / l)) * (U_42_ - U));
double tmp;
if (n <= -1.35e-274) {
tmp = sqrt((((U / ((Om / l) / t_1)) + (U * t)) * (n * 2.0)));
} else if (n <= 3.05e-114) {
tmp = sqrt((((U * 2.0) * (n * t)) + ((((U * l) * (n * l)) * -4.0) / Om)));
} else {
tmp = sqrt(n) * sqrt(((U * 2.0) * (t + (l / (Om / t_1)))));
}
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) :: tmp
t_1 = (l * (-2.0d0)) + ((n / (om / l)) * (u_42 - u))
if (n <= (-1.35d-274)) then
tmp = sqrt((((u / ((om / l) / t_1)) + (u * t)) * (n * 2.0d0)))
else if (n <= 3.05d-114) then
tmp = sqrt((((u * 2.0d0) * (n * t)) + ((((u * l) * (n * l)) * (-4.0d0)) / om)))
else
tmp = sqrt(n) * sqrt(((u * 2.0d0) * (t + (l / (om / t_1)))))
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 * -2.0) + ((n / (Om / l)) * (U_42_ - U));
double tmp;
if (n <= -1.35e-274) {
tmp = Math.sqrt((((U / ((Om / l) / t_1)) + (U * t)) * (n * 2.0)));
} else if (n <= 3.05e-114) {
tmp = Math.sqrt((((U * 2.0) * (n * t)) + ((((U * l) * (n * l)) * -4.0) / Om)));
} else {
tmp = Math.sqrt(n) * Math.sqrt(((U * 2.0) * (t + (l / (Om / t_1)))));
}
return tmp;
}
def code(n, U, t, l, Om, U_42_): t_1 = (l * -2.0) + ((n / (Om / l)) * (U_42_ - U)) tmp = 0 if n <= -1.35e-274: tmp = math.sqrt((((U / ((Om / l) / t_1)) + (U * t)) * (n * 2.0))) elif n <= 3.05e-114: tmp = math.sqrt((((U * 2.0) * (n * t)) + ((((U * l) * (n * l)) * -4.0) / Om))) else: tmp = math.sqrt(n) * math.sqrt(((U * 2.0) * (t + (l / (Om / t_1))))) return tmp
function code(n, U, t, l, Om, U_42_) t_1 = Float64(Float64(l * -2.0) + Float64(Float64(n / Float64(Om / l)) * Float64(U_42_ - U))) tmp = 0.0 if (n <= -1.35e-274) tmp = sqrt(Float64(Float64(Float64(U / Float64(Float64(Om / l) / t_1)) + Float64(U * t)) * Float64(n * 2.0))); elseif (n <= 3.05e-114) tmp = sqrt(Float64(Float64(Float64(U * 2.0) * Float64(n * t)) + Float64(Float64(Float64(Float64(U * l) * Float64(n * l)) * -4.0) / Om))); else tmp = Float64(sqrt(n) * sqrt(Float64(Float64(U * 2.0) * Float64(t + Float64(l / Float64(Om / t_1)))))); end return tmp end
function tmp_2 = code(n, U, t, l, Om, U_42_) t_1 = (l * -2.0) + ((n / (Om / l)) * (U_42_ - U)); tmp = 0.0; if (n <= -1.35e-274) tmp = sqrt((((U / ((Om / l) / t_1)) + (U * t)) * (n * 2.0))); elseif (n <= 3.05e-114) tmp = sqrt((((U * 2.0) * (n * t)) + ((((U * l) * (n * l)) * -4.0) / Om))); else tmp = sqrt(n) * sqrt(((U * 2.0) * (t + (l / (Om / t_1))))); end tmp_2 = tmp; end
code[n_, U_, t_, l_, Om_, U$42$_] := Block[{t$95$1 = N[(N[(l * -2.0), $MachinePrecision] + N[(N[(n / N[(Om / l), $MachinePrecision]), $MachinePrecision] * N[(U$42$ - U), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[n, -1.35e-274], N[Sqrt[N[(N[(N[(U / N[(N[(Om / l), $MachinePrecision] / t$95$1), $MachinePrecision]), $MachinePrecision] + N[(U * t), $MachinePrecision]), $MachinePrecision] * N[(n * 2.0), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], If[LessEqual[n, 3.05e-114], N[Sqrt[N[(N[(N[(U * 2.0), $MachinePrecision] * N[(n * t), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(N[(U * l), $MachinePrecision] * N[(n * l), $MachinePrecision]), $MachinePrecision] * -4.0), $MachinePrecision] / Om), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], N[(N[Sqrt[n], $MachinePrecision] * N[Sqrt[N[(N[(U * 2.0), $MachinePrecision] * N[(t + N[(l / N[(Om / t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \ell \cdot -2 + \frac{n}{\frac{Om}{\ell}} \cdot \left(U* - U\right)\\
\mathbf{if}\;n \leq -1.35 \cdot 10^{-274}:\\
\;\;\;\;\sqrt{\left(\frac{U}{\frac{\frac{Om}{\ell}}{t\_1}} + U \cdot t\right) \cdot \left(n \cdot 2\right)}\\
\mathbf{elif}\;n \leq 3.05 \cdot 10^{-114}:\\
\;\;\;\;\sqrt{\left(U \cdot 2\right) \cdot \left(n \cdot t\right) + \frac{\left(\left(U \cdot \ell\right) \cdot \left(n \cdot \ell\right)\right) \cdot -4}{Om}}\\
\mathbf{else}:\\
\;\;\;\;\sqrt{n} \cdot \sqrt{\left(U \cdot 2\right) \cdot \left(t + \frac{\ell}{\frac{Om}{t\_1}}\right)}\\
\end{array}
\end{array}
if n < -1.35e-274Initial program 48.7%
associate-/l*N/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
/-lowering-/.f6453.5%
Applied egg-rr53.5%
associate-/r/N/A
associate-*l/N/A
unpow2N/A
associate-*r*N/A
clear-numN/A
div-invN/A
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
Applied egg-rr58.2%
+-commutativeN/A
distribute-lft-inN/A
*-commutativeN/A
+-lowering-+.f64N/A
Applied egg-rr62.1%
if -1.35e-274 < n < 3.04999999999999988e-114Initial program 43.8%
Taylor expanded in Om around inf
+-commutativeN/A
+-lowering-+.f64N/A
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
associate-*r/N/A
/-lowering-/.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6453.7%
Simplified53.7%
associate-*l*N/A
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f6471.4%
Applied egg-rr71.4%
if 3.04999999999999988e-114 < n Initial program 51.7%
associate-/l*N/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
/-lowering-/.f6452.9%
Applied egg-rr52.9%
associate-/r/N/A
associate-*l/N/A
unpow2N/A
associate-*r*N/A
clear-numN/A
div-invN/A
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
Applied egg-rr56.3%
pow1/2N/A
associate-*r*N/A
unpow-prod-downN/A
*-lowering-*.f64N/A
Applied egg-rr81.0%
Final simplification70.0%
(FPCore (n U t l Om U*)
:precision binary64
(if (<= n -6.1e-276)
(sqrt
(*
(+ (/ U (/ (/ Om l) (+ (* l -2.0) (* (/ n (/ Om l)) (- U* U))))) (* U t))
(* n 2.0)))
(if (<= n 4.9e-163)
(sqrt (+ (* (* U 2.0) (* n t)) (/ (* (* (* U l) (* n l)) -4.0) Om)))
(*
(sqrt
(* U (+ t (/ (+ (* l -2.0) (* (/ l Om) (* n (- U* U)))) (/ Om l)))))
(sqrt (* n 2.0))))))
double code(double n, double U, double t, double l, double Om, double U_42_) {
double tmp;
if (n <= -6.1e-276) {
tmp = sqrt((((U / ((Om / l) / ((l * -2.0) + ((n / (Om / l)) * (U_42_ - U))))) + (U * t)) * (n * 2.0)));
} else if (n <= 4.9e-163) {
tmp = sqrt((((U * 2.0) * (n * t)) + ((((U * l) * (n * l)) * -4.0) / Om)));
} else {
tmp = sqrt((U * (t + (((l * -2.0) + ((l / Om) * (n * (U_42_ - U)))) / (Om / l))))) * sqrt((n * 2.0));
}
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 <= (-6.1d-276)) then
tmp = sqrt((((u / ((om / l) / ((l * (-2.0d0)) + ((n / (om / l)) * (u_42 - u))))) + (u * t)) * (n * 2.0d0)))
else if (n <= 4.9d-163) then
tmp = sqrt((((u * 2.0d0) * (n * t)) + ((((u * l) * (n * l)) * (-4.0d0)) / om)))
else
tmp = sqrt((u * (t + (((l * (-2.0d0)) + ((l / om) * (n * (u_42 - u)))) / (om / l))))) * sqrt((n * 2.0d0))
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 <= -6.1e-276) {
tmp = Math.sqrt((((U / ((Om / l) / ((l * -2.0) + ((n / (Om / l)) * (U_42_ - U))))) + (U * t)) * (n * 2.0)));
} else if (n <= 4.9e-163) {
tmp = Math.sqrt((((U * 2.0) * (n * t)) + ((((U * l) * (n * l)) * -4.0) / Om)));
} else {
tmp = Math.sqrt((U * (t + (((l * -2.0) + ((l / Om) * (n * (U_42_ - U)))) / (Om / l))))) * Math.sqrt((n * 2.0));
}
return tmp;
}
def code(n, U, t, l, Om, U_42_): tmp = 0 if n <= -6.1e-276: tmp = math.sqrt((((U / ((Om / l) / ((l * -2.0) + ((n / (Om / l)) * (U_42_ - U))))) + (U * t)) * (n * 2.0))) elif n <= 4.9e-163: tmp = math.sqrt((((U * 2.0) * (n * t)) + ((((U * l) * (n * l)) * -4.0) / Om))) else: tmp = math.sqrt((U * (t + (((l * -2.0) + ((l / Om) * (n * (U_42_ - U)))) / (Om / l))))) * math.sqrt((n * 2.0)) return tmp
function code(n, U, t, l, Om, U_42_) tmp = 0.0 if (n <= -6.1e-276) tmp = sqrt(Float64(Float64(Float64(U / Float64(Float64(Om / l) / Float64(Float64(l * -2.0) + Float64(Float64(n / Float64(Om / l)) * Float64(U_42_ - U))))) + Float64(U * t)) * Float64(n * 2.0))); elseif (n <= 4.9e-163) tmp = sqrt(Float64(Float64(Float64(U * 2.0) * Float64(n * t)) + Float64(Float64(Float64(Float64(U * l) * Float64(n * l)) * -4.0) / Om))); else tmp = Float64(sqrt(Float64(U * Float64(t + Float64(Float64(Float64(l * -2.0) + Float64(Float64(l / Om) * Float64(n * Float64(U_42_ - U)))) / Float64(Om / l))))) * sqrt(Float64(n * 2.0))); end return tmp end
function tmp_2 = code(n, U, t, l, Om, U_42_) tmp = 0.0; if (n <= -6.1e-276) tmp = sqrt((((U / ((Om / l) / ((l * -2.0) + ((n / (Om / l)) * (U_42_ - U))))) + (U * t)) * (n * 2.0))); elseif (n <= 4.9e-163) tmp = sqrt((((U * 2.0) * (n * t)) + ((((U * l) * (n * l)) * -4.0) / Om))); else tmp = sqrt((U * (t + (((l * -2.0) + ((l / Om) * (n * (U_42_ - U)))) / (Om / l))))) * sqrt((n * 2.0)); end tmp_2 = tmp; end
code[n_, U_, t_, l_, Om_, U$42$_] := If[LessEqual[n, -6.1e-276], N[Sqrt[N[(N[(N[(U / N[(N[(Om / l), $MachinePrecision] / N[(N[(l * -2.0), $MachinePrecision] + N[(N[(n / N[(Om / l), $MachinePrecision]), $MachinePrecision] * N[(U$42$ - U), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(U * t), $MachinePrecision]), $MachinePrecision] * N[(n * 2.0), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], If[LessEqual[n, 4.9e-163], N[Sqrt[N[(N[(N[(U * 2.0), $MachinePrecision] * N[(n * t), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(N[(U * l), $MachinePrecision] * N[(n * l), $MachinePrecision]), $MachinePrecision] * -4.0), $MachinePrecision] / Om), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], N[(N[Sqrt[N[(U * N[(t + N[(N[(N[(l * -2.0), $MachinePrecision] + N[(N[(l / Om), $MachinePrecision] * N[(n * N[(U$42$ - U), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(Om / l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * N[Sqrt[N[(n * 2.0), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;n \leq -6.1 \cdot 10^{-276}:\\
\;\;\;\;\sqrt{\left(\frac{U}{\frac{\frac{Om}{\ell}}{\ell \cdot -2 + \frac{n}{\frac{Om}{\ell}} \cdot \left(U* - U\right)}} + U \cdot t\right) \cdot \left(n \cdot 2\right)}\\
\mathbf{elif}\;n \leq 4.9 \cdot 10^{-163}:\\
\;\;\;\;\sqrt{\left(U \cdot 2\right) \cdot \left(n \cdot t\right) + \frac{\left(\left(U \cdot \ell\right) \cdot \left(n \cdot \ell\right)\right) \cdot -4}{Om}}\\
\mathbf{else}:\\
\;\;\;\;\sqrt{U \cdot \left(t + \frac{\ell \cdot -2 + \frac{\ell}{Om} \cdot \left(n \cdot \left(U* - U\right)\right)}{\frac{Om}{\ell}}\right)} \cdot \sqrt{n \cdot 2}\\
\end{array}
\end{array}
if n < -6.09999999999999977e-276Initial program 48.7%
associate-/l*N/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
/-lowering-/.f6453.5%
Applied egg-rr53.5%
associate-/r/N/A
associate-*l/N/A
unpow2N/A
associate-*r*N/A
clear-numN/A
div-invN/A
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
Applied egg-rr58.2%
+-commutativeN/A
distribute-lft-inN/A
*-commutativeN/A
+-lowering-+.f64N/A
Applied egg-rr62.1%
if -6.09999999999999977e-276 < n < 4.9000000000000003e-163Initial program 42.5%
Taylor expanded in Om around inf
+-commutativeN/A
+-lowering-+.f64N/A
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
associate-*r/N/A
/-lowering-/.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6449.8%
Simplified49.8%
associate-*l*N/A
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f6470.7%
Applied egg-rr70.7%
if 4.9000000000000003e-163 < n Initial program 51.7%
associate-/l*N/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
/-lowering-/.f6452.8%
Applied egg-rr52.8%
Applied egg-rr65.9%
Final simplification65.0%
(FPCore (n U t l Om U*)
:precision binary64
(let* ((t_1 (+ (* l -2.0) (* (/ n (/ Om l)) (- U* U)))))
(if (<= n -4.8e-277)
(sqrt (* (+ (/ U (/ (/ Om l) t_1)) (* U t)) (* n 2.0)))
(if (<= n 3.5e-162)
(sqrt (+ (* (* U 2.0) (* n t)) (/ (* (* (* U l) (* n l)) -4.0) Om)))
(sqrt (* (* n 2.0) (* U (+ t (* t_1 (/ l Om))))))))))
double code(double n, double U, double t, double l, double Om, double U_42_) {
double t_1 = (l * -2.0) + ((n / (Om / l)) * (U_42_ - U));
double tmp;
if (n <= -4.8e-277) {
tmp = sqrt((((U / ((Om / l) / t_1)) + (U * t)) * (n * 2.0)));
} else if (n <= 3.5e-162) {
tmp = sqrt((((U * 2.0) * (n * t)) + ((((U * l) * (n * l)) * -4.0) / Om)));
} else {
tmp = sqrt(((n * 2.0) * (U * (t + (t_1 * (l / 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) :: t_1
real(8) :: tmp
t_1 = (l * (-2.0d0)) + ((n / (om / l)) * (u_42 - u))
if (n <= (-4.8d-277)) then
tmp = sqrt((((u / ((om / l) / t_1)) + (u * t)) * (n * 2.0d0)))
else if (n <= 3.5d-162) then
tmp = sqrt((((u * 2.0d0) * (n * t)) + ((((u * l) * (n * l)) * (-4.0d0)) / om)))
else
tmp = sqrt(((n * 2.0d0) * (u * (t + (t_1 * (l / 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 t_1 = (l * -2.0) + ((n / (Om / l)) * (U_42_ - U));
double tmp;
if (n <= -4.8e-277) {
tmp = Math.sqrt((((U / ((Om / l) / t_1)) + (U * t)) * (n * 2.0)));
} else if (n <= 3.5e-162) {
tmp = Math.sqrt((((U * 2.0) * (n * t)) + ((((U * l) * (n * l)) * -4.0) / Om)));
} else {
tmp = Math.sqrt(((n * 2.0) * (U * (t + (t_1 * (l / Om))))));
}
return tmp;
}
def code(n, U, t, l, Om, U_42_): t_1 = (l * -2.0) + ((n / (Om / l)) * (U_42_ - U)) tmp = 0 if n <= -4.8e-277: tmp = math.sqrt((((U / ((Om / l) / t_1)) + (U * t)) * (n * 2.0))) elif n <= 3.5e-162: tmp = math.sqrt((((U * 2.0) * (n * t)) + ((((U * l) * (n * l)) * -4.0) / Om))) else: tmp = math.sqrt(((n * 2.0) * (U * (t + (t_1 * (l / Om)))))) return tmp
function code(n, U, t, l, Om, U_42_) t_1 = Float64(Float64(l * -2.0) + Float64(Float64(n / Float64(Om / l)) * Float64(U_42_ - U))) tmp = 0.0 if (n <= -4.8e-277) tmp = sqrt(Float64(Float64(Float64(U / Float64(Float64(Om / l) / t_1)) + Float64(U * t)) * Float64(n * 2.0))); elseif (n <= 3.5e-162) tmp = sqrt(Float64(Float64(Float64(U * 2.0) * Float64(n * t)) + Float64(Float64(Float64(Float64(U * l) * Float64(n * l)) * -4.0) / Om))); else tmp = sqrt(Float64(Float64(n * 2.0) * Float64(U * Float64(t + Float64(t_1 * Float64(l / Om)))))); end return tmp end
function tmp_2 = code(n, U, t, l, Om, U_42_) t_1 = (l * -2.0) + ((n / (Om / l)) * (U_42_ - U)); tmp = 0.0; if (n <= -4.8e-277) tmp = sqrt((((U / ((Om / l) / t_1)) + (U * t)) * (n * 2.0))); elseif (n <= 3.5e-162) tmp = sqrt((((U * 2.0) * (n * t)) + ((((U * l) * (n * l)) * -4.0) / Om))); else tmp = sqrt(((n * 2.0) * (U * (t + (t_1 * (l / Om)))))); end tmp_2 = tmp; end
code[n_, U_, t_, l_, Om_, U$42$_] := Block[{t$95$1 = N[(N[(l * -2.0), $MachinePrecision] + N[(N[(n / N[(Om / l), $MachinePrecision]), $MachinePrecision] * N[(U$42$ - U), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[n, -4.8e-277], N[Sqrt[N[(N[(N[(U / N[(N[(Om / l), $MachinePrecision] / t$95$1), $MachinePrecision]), $MachinePrecision] + N[(U * t), $MachinePrecision]), $MachinePrecision] * N[(n * 2.0), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], If[LessEqual[n, 3.5e-162], N[Sqrt[N[(N[(N[(U * 2.0), $MachinePrecision] * N[(n * t), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(N[(U * l), $MachinePrecision] * N[(n * l), $MachinePrecision]), $MachinePrecision] * -4.0), $MachinePrecision] / Om), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], N[Sqrt[N[(N[(n * 2.0), $MachinePrecision] * N[(U * N[(t + N[(t$95$1 * N[(l / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \ell \cdot -2 + \frac{n}{\frac{Om}{\ell}} \cdot \left(U* - U\right)\\
\mathbf{if}\;n \leq -4.8 \cdot 10^{-277}:\\
\;\;\;\;\sqrt{\left(\frac{U}{\frac{\frac{Om}{\ell}}{t\_1}} + U \cdot t\right) \cdot \left(n \cdot 2\right)}\\
\mathbf{elif}\;n \leq 3.5 \cdot 10^{-162}:\\
\;\;\;\;\sqrt{\left(U \cdot 2\right) \cdot \left(n \cdot t\right) + \frac{\left(\left(U \cdot \ell\right) \cdot \left(n \cdot \ell\right)\right) \cdot -4}{Om}}\\
\mathbf{else}:\\
\;\;\;\;\sqrt{\left(n \cdot 2\right) \cdot \left(U \cdot \left(t + t\_1 \cdot \frac{\ell}{Om}\right)\right)}\\
\end{array}
\end{array}
if n < -4.8e-277Initial program 48.7%
associate-/l*N/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
/-lowering-/.f6453.5%
Applied egg-rr53.5%
associate-/r/N/A
associate-*l/N/A
unpow2N/A
associate-*r*N/A
clear-numN/A
div-invN/A
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
Applied egg-rr58.2%
+-commutativeN/A
distribute-lft-inN/A
*-commutativeN/A
+-lowering-+.f64N/A
Applied egg-rr62.1%
if -4.8e-277 < n < 3.4999999999999999e-162Initial program 42.5%
Taylor expanded in Om around inf
+-commutativeN/A
+-lowering-+.f64N/A
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
associate-*r/N/A
/-lowering-/.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6449.8%
Simplified49.8%
associate-*l*N/A
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f6470.7%
Applied egg-rr70.7%
if 3.4999999999999999e-162 < n Initial program 51.7%
associate-/l*N/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
/-lowering-/.f6452.8%
Applied egg-rr52.8%
associate-/r/N/A
associate-*l/N/A
unpow2N/A
associate-*r*N/A
clear-numN/A
div-invN/A
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
Applied egg-rr58.1%
clear-numN/A
associate-/r/N/A
clear-numN/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
--lowering--.f64N/A
*-commutativeN/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
/-lowering-/.f6465.3%
Applied egg-rr65.3%
Final simplification64.8%
(FPCore (n U t l Om U*)
:precision binary64
(let* ((t_1
(sqrt
(*
(* n 2.0)
(*
U
(+ t (* (+ (* l -2.0) (* (/ n (/ Om l)) (- U* U))) (/ l Om))))))))
(if (<= n -8e-285)
t_1
(if (<= n 2.4e-159)
(sqrt (+ (* (* U 2.0) (* n t)) (/ (* (* (* U l) (* n l)) -4.0) Om)))
t_1))))
double code(double n, double U, double t, double l, double Om, double U_42_) {
double t_1 = sqrt(((n * 2.0) * (U * (t + (((l * -2.0) + ((n / (Om / l)) * (U_42_ - U))) * (l / Om))))));
double tmp;
if (n <= -8e-285) {
tmp = t_1;
} else if (n <= 2.4e-159) {
tmp = sqrt((((U * 2.0) * (n * t)) + ((((U * l) * (n * l)) * -4.0) / Om)));
} else {
tmp = t_1;
}
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) :: tmp
t_1 = sqrt(((n * 2.0d0) * (u * (t + (((l * (-2.0d0)) + ((n / (om / l)) * (u_42 - u))) * (l / om))))))
if (n <= (-8d-285)) then
tmp = t_1
else if (n <= 2.4d-159) then
tmp = sqrt((((u * 2.0d0) * (n * t)) + ((((u * l) * (n * l)) * (-4.0d0)) / om)))
else
tmp = t_1
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 = Math.sqrt(((n * 2.0) * (U * (t + (((l * -2.0) + ((n / (Om / l)) * (U_42_ - U))) * (l / Om))))));
double tmp;
if (n <= -8e-285) {
tmp = t_1;
} else if (n <= 2.4e-159) {
tmp = Math.sqrt((((U * 2.0) * (n * t)) + ((((U * l) * (n * l)) * -4.0) / Om)));
} else {
tmp = t_1;
}
return tmp;
}
def code(n, U, t, l, Om, U_42_): t_1 = math.sqrt(((n * 2.0) * (U * (t + (((l * -2.0) + ((n / (Om / l)) * (U_42_ - U))) * (l / Om)))))) tmp = 0 if n <= -8e-285: tmp = t_1 elif n <= 2.4e-159: tmp = math.sqrt((((U * 2.0) * (n * t)) + ((((U * l) * (n * l)) * -4.0) / Om))) else: tmp = t_1 return tmp
function code(n, U, t, l, Om, U_42_) t_1 = sqrt(Float64(Float64(n * 2.0) * Float64(U * Float64(t + Float64(Float64(Float64(l * -2.0) + Float64(Float64(n / Float64(Om / l)) * Float64(U_42_ - U))) * Float64(l / Om)))))) tmp = 0.0 if (n <= -8e-285) tmp = t_1; elseif (n <= 2.4e-159) tmp = sqrt(Float64(Float64(Float64(U * 2.0) * Float64(n * t)) + Float64(Float64(Float64(Float64(U * l) * Float64(n * l)) * -4.0) / Om))); else tmp = t_1; end return tmp end
function tmp_2 = code(n, U, t, l, Om, U_42_) t_1 = sqrt(((n * 2.0) * (U * (t + (((l * -2.0) + ((n / (Om / l)) * (U_42_ - U))) * (l / Om)))))); tmp = 0.0; if (n <= -8e-285) tmp = t_1; elseif (n <= 2.4e-159) tmp = sqrt((((U * 2.0) * (n * t)) + ((((U * l) * (n * l)) * -4.0) / Om))); else tmp = t_1; end tmp_2 = tmp; end
code[n_, U_, t_, l_, Om_, U$42$_] := Block[{t$95$1 = N[Sqrt[N[(N[(n * 2.0), $MachinePrecision] * N[(U * N[(t + N[(N[(N[(l * -2.0), $MachinePrecision] + N[(N[(n / N[(Om / l), $MachinePrecision]), $MachinePrecision] * N[(U$42$ - U), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(l / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]}, If[LessEqual[n, -8e-285], t$95$1, If[LessEqual[n, 2.4e-159], N[Sqrt[N[(N[(N[(U * 2.0), $MachinePrecision] * N[(n * t), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(N[(U * l), $MachinePrecision] * N[(n * l), $MachinePrecision]), $MachinePrecision] * -4.0), $MachinePrecision] / Om), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \sqrt{\left(n \cdot 2\right) \cdot \left(U \cdot \left(t + \left(\ell \cdot -2 + \frac{n}{\frac{Om}{\ell}} \cdot \left(U* - U\right)\right) \cdot \frac{\ell}{Om}\right)\right)}\\
\mathbf{if}\;n \leq -8 \cdot 10^{-285}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;n \leq 2.4 \cdot 10^{-159}:\\
\;\;\;\;\sqrt{\left(U \cdot 2\right) \cdot \left(n \cdot t\right) + \frac{\left(\left(U \cdot \ell\right) \cdot \left(n \cdot \ell\right)\right) \cdot -4}{Om}}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if n < -8.00000000000000059e-285 or 2.39999999999999997e-159 < n Initial program 49.7%
associate-/l*N/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
/-lowering-/.f6452.9%
Applied egg-rr52.9%
associate-/r/N/A
associate-*l/N/A
unpow2N/A
associate-*r*N/A
clear-numN/A
div-invN/A
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
Applied egg-rr57.8%
clear-numN/A
associate-/r/N/A
clear-numN/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
--lowering--.f64N/A
*-commutativeN/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
/-lowering-/.f6462.9%
Applied egg-rr62.9%
if -8.00000000000000059e-285 < n < 2.39999999999999997e-159Initial program 43.0%
Taylor expanded in Om around inf
+-commutativeN/A
+-lowering-+.f64N/A
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
associate-*r/N/A
/-lowering-/.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6450.8%
Simplified50.8%
associate-*l*N/A
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f6473.1%
Applied egg-rr73.1%
Final simplification64.6%
(FPCore (n U t l Om U*)
:precision binary64
(let* ((t_1
(sqrt
(*
(* n 2.0)
(* U (+ t (* (/ l Om) (+ (* l -2.0) (* U* (/ (* n l) Om))))))))))
(if (<= n -1.28e-284)
t_1
(if (<= n 1.55e-161)
(sqrt (+ (* (* U 2.0) (* n t)) (/ (* (* (* U l) (* n l)) -4.0) Om)))
t_1))))
double code(double n, double U, double t, double l, double Om, double U_42_) {
double t_1 = sqrt(((n * 2.0) * (U * (t + ((l / Om) * ((l * -2.0) + (U_42_ * ((n * l) / Om))))))));
double tmp;
if (n <= -1.28e-284) {
tmp = t_1;
} else if (n <= 1.55e-161) {
tmp = sqrt((((U * 2.0) * (n * t)) + ((((U * l) * (n * l)) * -4.0) / Om)));
} else {
tmp = t_1;
}
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) :: tmp
t_1 = sqrt(((n * 2.0d0) * (u * (t + ((l / om) * ((l * (-2.0d0)) + (u_42 * ((n * l) / om))))))))
if (n <= (-1.28d-284)) then
tmp = t_1
else if (n <= 1.55d-161) then
tmp = sqrt((((u * 2.0d0) * (n * t)) + ((((u * l) * (n * l)) * (-4.0d0)) / om)))
else
tmp = t_1
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 = Math.sqrt(((n * 2.0) * (U * (t + ((l / Om) * ((l * -2.0) + (U_42_ * ((n * l) / Om))))))));
double tmp;
if (n <= -1.28e-284) {
tmp = t_1;
} else if (n <= 1.55e-161) {
tmp = Math.sqrt((((U * 2.0) * (n * t)) + ((((U * l) * (n * l)) * -4.0) / Om)));
} else {
tmp = t_1;
}
return tmp;
}
def code(n, U, t, l, Om, U_42_): t_1 = math.sqrt(((n * 2.0) * (U * (t + ((l / Om) * ((l * -2.0) + (U_42_ * ((n * l) / Om)))))))) tmp = 0 if n <= -1.28e-284: tmp = t_1 elif n <= 1.55e-161: tmp = math.sqrt((((U * 2.0) * (n * t)) + ((((U * l) * (n * l)) * -4.0) / Om))) else: tmp = t_1 return tmp
function code(n, U, t, l, Om, U_42_) t_1 = sqrt(Float64(Float64(n * 2.0) * Float64(U * Float64(t + Float64(Float64(l / Om) * Float64(Float64(l * -2.0) + Float64(U_42_ * Float64(Float64(n * l) / Om)))))))) tmp = 0.0 if (n <= -1.28e-284) tmp = t_1; elseif (n <= 1.55e-161) tmp = sqrt(Float64(Float64(Float64(U * 2.0) * Float64(n * t)) + Float64(Float64(Float64(Float64(U * l) * Float64(n * l)) * -4.0) / Om))); else tmp = t_1; end return tmp end
function tmp_2 = code(n, U, t, l, Om, U_42_) t_1 = sqrt(((n * 2.0) * (U * (t + ((l / Om) * ((l * -2.0) + (U_42_ * ((n * l) / Om)))))))); tmp = 0.0; if (n <= -1.28e-284) tmp = t_1; elseif (n <= 1.55e-161) tmp = sqrt((((U * 2.0) * (n * t)) + ((((U * l) * (n * l)) * -4.0) / Om))); else tmp = t_1; end tmp_2 = tmp; end
code[n_, U_, t_, l_, Om_, U$42$_] := Block[{t$95$1 = N[Sqrt[N[(N[(n * 2.0), $MachinePrecision] * N[(U * N[(t + N[(N[(l / Om), $MachinePrecision] * N[(N[(l * -2.0), $MachinePrecision] + N[(U$42$ * N[(N[(n * l), $MachinePrecision] / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]}, If[LessEqual[n, -1.28e-284], t$95$1, If[LessEqual[n, 1.55e-161], N[Sqrt[N[(N[(N[(U * 2.0), $MachinePrecision] * N[(n * t), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(N[(U * l), $MachinePrecision] * N[(n * l), $MachinePrecision]), $MachinePrecision] * -4.0), $MachinePrecision] / Om), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \sqrt{\left(n \cdot 2\right) \cdot \left(U \cdot \left(t + \frac{\ell}{Om} \cdot \left(\ell \cdot -2 + U* \cdot \frac{n \cdot \ell}{Om}\right)\right)\right)}\\
\mathbf{if}\;n \leq -1.28 \cdot 10^{-284}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;n \leq 1.55 \cdot 10^{-161}:\\
\;\;\;\;\sqrt{\left(U \cdot 2\right) \cdot \left(n \cdot t\right) + \frac{\left(\left(U \cdot \ell\right) \cdot \left(n \cdot \ell\right)\right) \cdot -4}{Om}}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if n < -1.28000000000000006e-284 or 1.5499999999999999e-161 < n Initial program 49.7%
associate-/l*N/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
/-lowering-/.f6452.9%
Applied egg-rr52.9%
associate-/r/N/A
associate-*l/N/A
unpow2N/A
associate-*r*N/A
clear-numN/A
div-invN/A
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
Applied egg-rr57.8%
clear-numN/A
associate-/r/N/A
clear-numN/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
--lowering--.f64N/A
*-commutativeN/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
/-lowering-/.f6462.9%
Applied egg-rr62.9%
Taylor expanded in U around 0
mul-1-negN/A
neg-lowering-neg.f64N/A
associate-/l*N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f6460.9%
Simplified60.9%
if -1.28000000000000006e-284 < n < 1.5499999999999999e-161Initial program 43.0%
Taylor expanded in Om around inf
+-commutativeN/A
+-lowering-+.f64N/A
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
associate-*r/N/A
/-lowering-/.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6450.8%
Simplified50.8%
associate-*l*N/A
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f6473.1%
Applied egg-rr73.1%
Final simplification63.0%
(FPCore (n U t l Om U*)
:precision binary64
(let* ((t_1
(sqrt (* (* n 2.0) (* U (+ t (* (/ l Om) (* U* (/ (* n l) Om)))))))))
(if (<= n -1.26e-55)
t_1
(if (<= n 6.8e-34)
(sqrt (+ (* (* U 2.0) (* n t)) (/ (* (* (* U l) (* n l)) -4.0) Om)))
t_1))))
double code(double n, double U, double t, double l, double Om, double U_42_) {
double t_1 = sqrt(((n * 2.0) * (U * (t + ((l / Om) * (U_42_ * ((n * l) / Om)))))));
double tmp;
if (n <= -1.26e-55) {
tmp = t_1;
} else if (n <= 6.8e-34) {
tmp = sqrt((((U * 2.0) * (n * t)) + ((((U * l) * (n * l)) * -4.0) / Om)));
} else {
tmp = t_1;
}
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) :: tmp
t_1 = sqrt(((n * 2.0d0) * (u * (t + ((l / om) * (u_42 * ((n * l) / om)))))))
if (n <= (-1.26d-55)) then
tmp = t_1
else if (n <= 6.8d-34) then
tmp = sqrt((((u * 2.0d0) * (n * t)) + ((((u * l) * (n * l)) * (-4.0d0)) / om)))
else
tmp = t_1
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 = Math.sqrt(((n * 2.0) * (U * (t + ((l / Om) * (U_42_ * ((n * l) / Om)))))));
double tmp;
if (n <= -1.26e-55) {
tmp = t_1;
} else if (n <= 6.8e-34) {
tmp = Math.sqrt((((U * 2.0) * (n * t)) + ((((U * l) * (n * l)) * -4.0) / Om)));
} else {
tmp = t_1;
}
return tmp;
}
def code(n, U, t, l, Om, U_42_): t_1 = math.sqrt(((n * 2.0) * (U * (t + ((l / Om) * (U_42_ * ((n * l) / Om))))))) tmp = 0 if n <= -1.26e-55: tmp = t_1 elif n <= 6.8e-34: tmp = math.sqrt((((U * 2.0) * (n * t)) + ((((U * l) * (n * l)) * -4.0) / Om))) else: tmp = t_1 return tmp
function code(n, U, t, l, Om, U_42_) t_1 = sqrt(Float64(Float64(n * 2.0) * Float64(U * Float64(t + Float64(Float64(l / Om) * Float64(U_42_ * Float64(Float64(n * l) / Om))))))) tmp = 0.0 if (n <= -1.26e-55) tmp = t_1; elseif (n <= 6.8e-34) tmp = sqrt(Float64(Float64(Float64(U * 2.0) * Float64(n * t)) + Float64(Float64(Float64(Float64(U * l) * Float64(n * l)) * -4.0) / Om))); else tmp = t_1; end return tmp end
function tmp_2 = code(n, U, t, l, Om, U_42_) t_1 = sqrt(((n * 2.0) * (U * (t + ((l / Om) * (U_42_ * ((n * l) / Om))))))); tmp = 0.0; if (n <= -1.26e-55) tmp = t_1; elseif (n <= 6.8e-34) tmp = sqrt((((U * 2.0) * (n * t)) + ((((U * l) * (n * l)) * -4.0) / Om))); else tmp = t_1; end tmp_2 = tmp; end
code[n_, U_, t_, l_, Om_, U$42$_] := Block[{t$95$1 = N[Sqrt[N[(N[(n * 2.0), $MachinePrecision] * N[(U * N[(t + N[(N[(l / Om), $MachinePrecision] * N[(U$42$ * N[(N[(n * l), $MachinePrecision] / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]}, If[LessEqual[n, -1.26e-55], t$95$1, If[LessEqual[n, 6.8e-34], N[Sqrt[N[(N[(N[(U * 2.0), $MachinePrecision] * N[(n * t), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(N[(U * l), $MachinePrecision] * N[(n * l), $MachinePrecision]), $MachinePrecision] * -4.0), $MachinePrecision] / Om), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \sqrt{\left(n \cdot 2\right) \cdot \left(U \cdot \left(t + \frac{\ell}{Om} \cdot \left(U* \cdot \frac{n \cdot \ell}{Om}\right)\right)\right)}\\
\mathbf{if}\;n \leq -1.26 \cdot 10^{-55}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;n \leq 6.8 \cdot 10^{-34}:\\
\;\;\;\;\sqrt{\left(U \cdot 2\right) \cdot \left(n \cdot t\right) + \frac{\left(\left(U \cdot \ell\right) \cdot \left(n \cdot \ell\right)\right) \cdot -4}{Om}}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if n < -1.2599999999999999e-55 or 6.8000000000000001e-34 < n Initial program 54.0%
associate-/l*N/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
/-lowering-/.f6456.9%
Applied egg-rr56.9%
associate-/r/N/A
associate-*l/N/A
unpow2N/A
associate-*r*N/A
clear-numN/A
div-invN/A
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
Applied egg-rr58.8%
clear-numN/A
associate-/r/N/A
clear-numN/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
--lowering--.f64N/A
*-commutativeN/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
/-lowering-/.f6466.8%
Applied egg-rr66.8%
Taylor expanded in U* around inf
associate-/l*N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f6461.5%
Simplified61.5%
if -1.2599999999999999e-55 < n < 6.8000000000000001e-34Initial program 42.5%
Taylor expanded in Om around inf
+-commutativeN/A
+-lowering-+.f64N/A
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
associate-*r/N/A
/-lowering-/.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6443.8%
Simplified43.8%
associate-*l*N/A
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f6456.1%
Applied egg-rr56.1%
Final simplification58.9%
(FPCore (n U t l Om U*)
:precision binary64
(let* ((t_1
(sqrt (* (* n 2.0) (* U (+ t (* (/ l Om) (* U* (/ (* n l) Om)))))))))
(if (<= U* -2.1e+80)
t_1
(if (<= U* 1.65e-10)
(sqrt (* (* n 2.0) (* U (+ t (* (* l -2.0) (/ l Om))))))
t_1))))
double code(double n, double U, double t, double l, double Om, double U_42_) {
double t_1 = sqrt(((n * 2.0) * (U * (t + ((l / Om) * (U_42_ * ((n * l) / Om)))))));
double tmp;
if (U_42_ <= -2.1e+80) {
tmp = t_1;
} else if (U_42_ <= 1.65e-10) {
tmp = sqrt(((n * 2.0) * (U * (t + ((l * -2.0) * (l / Om))))));
} else {
tmp = t_1;
}
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) :: tmp
t_1 = sqrt(((n * 2.0d0) * (u * (t + ((l / om) * (u_42 * ((n * l) / om)))))))
if (u_42 <= (-2.1d+80)) then
tmp = t_1
else if (u_42 <= 1.65d-10) then
tmp = sqrt(((n * 2.0d0) * (u * (t + ((l * (-2.0d0)) * (l / om))))))
else
tmp = t_1
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 = Math.sqrt(((n * 2.0) * (U * (t + ((l / Om) * (U_42_ * ((n * l) / Om)))))));
double tmp;
if (U_42_ <= -2.1e+80) {
tmp = t_1;
} else if (U_42_ <= 1.65e-10) {
tmp = Math.sqrt(((n * 2.0) * (U * (t + ((l * -2.0) * (l / Om))))));
} else {
tmp = t_1;
}
return tmp;
}
def code(n, U, t, l, Om, U_42_): t_1 = math.sqrt(((n * 2.0) * (U * (t + ((l / Om) * (U_42_ * ((n * l) / Om))))))) tmp = 0 if U_42_ <= -2.1e+80: tmp = t_1 elif U_42_ <= 1.65e-10: tmp = math.sqrt(((n * 2.0) * (U * (t + ((l * -2.0) * (l / Om)))))) else: tmp = t_1 return tmp
function code(n, U, t, l, Om, U_42_) t_1 = sqrt(Float64(Float64(n * 2.0) * Float64(U * Float64(t + Float64(Float64(l / Om) * Float64(U_42_ * Float64(Float64(n * l) / Om))))))) tmp = 0.0 if (U_42_ <= -2.1e+80) tmp = t_1; elseif (U_42_ <= 1.65e-10) tmp = sqrt(Float64(Float64(n * 2.0) * Float64(U * Float64(t + Float64(Float64(l * -2.0) * Float64(l / Om)))))); else tmp = t_1; end return tmp end
function tmp_2 = code(n, U, t, l, Om, U_42_) t_1 = sqrt(((n * 2.0) * (U * (t + ((l / Om) * (U_42_ * ((n * l) / Om))))))); tmp = 0.0; if (U_42_ <= -2.1e+80) tmp = t_1; elseif (U_42_ <= 1.65e-10) tmp = sqrt(((n * 2.0) * (U * (t + ((l * -2.0) * (l / Om)))))); else tmp = t_1; end tmp_2 = tmp; end
code[n_, U_, t_, l_, Om_, U$42$_] := Block[{t$95$1 = N[Sqrt[N[(N[(n * 2.0), $MachinePrecision] * N[(U * N[(t + N[(N[(l / Om), $MachinePrecision] * N[(U$42$ * N[(N[(n * l), $MachinePrecision] / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]}, If[LessEqual[U$42$, -2.1e+80], t$95$1, If[LessEqual[U$42$, 1.65e-10], N[Sqrt[N[(N[(n * 2.0), $MachinePrecision] * N[(U * N[(t + N[(N[(l * -2.0), $MachinePrecision] * N[(l / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \sqrt{\left(n \cdot 2\right) \cdot \left(U \cdot \left(t + \frac{\ell}{Om} \cdot \left(U* \cdot \frac{n \cdot \ell}{Om}\right)\right)\right)}\\
\mathbf{if}\;U* \leq -2.1 \cdot 10^{+80}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;U* \leq 1.65 \cdot 10^{-10}:\\
\;\;\;\;\sqrt{\left(n \cdot 2\right) \cdot \left(U \cdot \left(t + \left(\ell \cdot -2\right) \cdot \frac{\ell}{Om}\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if U* < -2.10000000000000001e80 or 1.65e-10 < U* Initial program 48.7%
associate-/l*N/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
/-lowering-/.f6451.7%
Applied egg-rr51.7%
associate-/r/N/A
associate-*l/N/A
unpow2N/A
associate-*r*N/A
clear-numN/A
div-invN/A
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
Applied egg-rr54.4%
clear-numN/A
associate-/r/N/A
clear-numN/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
--lowering--.f64N/A
*-commutativeN/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
/-lowering-/.f6460.1%
Applied egg-rr60.1%
Taylor expanded in U* around inf
associate-/l*N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f6458.0%
Simplified58.0%
if -2.10000000000000001e80 < U* < 1.65e-10Initial program 48.5%
associate-/l*N/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
/-lowering-/.f6452.3%
Applied egg-rr52.3%
associate-/r/N/A
associate-*l/N/A
unpow2N/A
associate-*r*N/A
clear-numN/A
div-invN/A
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
Applied egg-rr58.1%
clear-numN/A
associate-/r/N/A
clear-numN/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
--lowering--.f64N/A
*-commutativeN/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
/-lowering-/.f6460.8%
Applied egg-rr60.8%
Taylor expanded in n around 0
*-lowering-*.f6457.2%
Simplified57.2%
Final simplification57.6%
(FPCore (n U t l Om U*)
:precision binary64
(let* ((t_1 (sqrt (* (* n 2.0) (* U (+ t (* (* l -2.0) (/ l Om))))))))
(if (<= Om -7.9e-75)
t_1
(if (<= Om 2.8e-163)
(sqrt (* (* U -2.0) (/ (/ (* l (* n (* n l))) (/ Om (- U U*))) Om)))
t_1))))
double code(double n, double U, double t, double l, double Om, double U_42_) {
double t_1 = sqrt(((n * 2.0) * (U * (t + ((l * -2.0) * (l / Om))))));
double tmp;
if (Om <= -7.9e-75) {
tmp = t_1;
} else if (Om <= 2.8e-163) {
tmp = sqrt(((U * -2.0) * (((l * (n * (n * l))) / (Om / (U - U_42_))) / Om)));
} else {
tmp = t_1;
}
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) :: tmp
t_1 = sqrt(((n * 2.0d0) * (u * (t + ((l * (-2.0d0)) * (l / om))))))
if (om <= (-7.9d-75)) then
tmp = t_1
else if (om <= 2.8d-163) then
tmp = sqrt(((u * (-2.0d0)) * (((l * (n * (n * l))) / (om / (u - u_42))) / om)))
else
tmp = t_1
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 = Math.sqrt(((n * 2.0) * (U * (t + ((l * -2.0) * (l / Om))))));
double tmp;
if (Om <= -7.9e-75) {
tmp = t_1;
} else if (Om <= 2.8e-163) {
tmp = Math.sqrt(((U * -2.0) * (((l * (n * (n * l))) / (Om / (U - U_42_))) / Om)));
} else {
tmp = t_1;
}
return tmp;
}
def code(n, U, t, l, Om, U_42_): t_1 = math.sqrt(((n * 2.0) * (U * (t + ((l * -2.0) * (l / Om)))))) tmp = 0 if Om <= -7.9e-75: tmp = t_1 elif Om <= 2.8e-163: tmp = math.sqrt(((U * -2.0) * (((l * (n * (n * l))) / (Om / (U - U_42_))) / Om))) else: tmp = t_1 return tmp
function code(n, U, t, l, Om, U_42_) t_1 = sqrt(Float64(Float64(n * 2.0) * Float64(U * Float64(t + Float64(Float64(l * -2.0) * Float64(l / Om)))))) tmp = 0.0 if (Om <= -7.9e-75) tmp = t_1; elseif (Om <= 2.8e-163) tmp = sqrt(Float64(Float64(U * -2.0) * Float64(Float64(Float64(l * Float64(n * Float64(n * l))) / Float64(Om / Float64(U - U_42_))) / Om))); else tmp = t_1; end return tmp end
function tmp_2 = code(n, U, t, l, Om, U_42_) t_1 = sqrt(((n * 2.0) * (U * (t + ((l * -2.0) * (l / Om)))))); tmp = 0.0; if (Om <= -7.9e-75) tmp = t_1; elseif (Om <= 2.8e-163) tmp = sqrt(((U * -2.0) * (((l * (n * (n * l))) / (Om / (U - U_42_))) / Om))); else tmp = t_1; end tmp_2 = tmp; end
code[n_, U_, t_, l_, Om_, U$42$_] := Block[{t$95$1 = N[Sqrt[N[(N[(n * 2.0), $MachinePrecision] * N[(U * N[(t + N[(N[(l * -2.0), $MachinePrecision] * N[(l / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]}, If[LessEqual[Om, -7.9e-75], t$95$1, If[LessEqual[Om, 2.8e-163], N[Sqrt[N[(N[(U * -2.0), $MachinePrecision] * N[(N[(N[(l * N[(n * N[(n * l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(Om / N[(U - U$42$), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / Om), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \sqrt{\left(n \cdot 2\right) \cdot \left(U \cdot \left(t + \left(\ell \cdot -2\right) \cdot \frac{\ell}{Om}\right)\right)}\\
\mathbf{if}\;Om \leq -7.9 \cdot 10^{-75}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;Om \leq 2.8 \cdot 10^{-163}:\\
\;\;\;\;\sqrt{\left(U \cdot -2\right) \cdot \frac{\frac{\ell \cdot \left(n \cdot \left(n \cdot \ell\right)\right)}{\frac{Om}{U - U*}}}{Om}}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if Om < -7.9e-75 or 2.8e-163 < Om Initial program 48.1%
associate-/l*N/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
/-lowering-/.f6452.7%
Applied egg-rr52.7%
associate-/r/N/A
associate-*l/N/A
unpow2N/A
associate-*r*N/A
clear-numN/A
div-invN/A
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
Applied egg-rr51.4%
clear-numN/A
associate-/r/N/A
clear-numN/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
--lowering--.f64N/A
*-commutativeN/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
/-lowering-/.f6456.4%
Applied egg-rr56.4%
Taylor expanded in n around 0
*-lowering-*.f6452.9%
Simplified52.9%
if -7.9e-75 < Om < 2.8e-163Initial program 49.9%
Taylor expanded in n around inf
associate-*r/N/A
associate-*r*N/A
associate-/l*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
associate-*r*N/A
associate-/l*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
associate-/r*N/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
--lowering--.f6442.5%
Simplified42.5%
associate-*r/N/A
/-lowering-/.f64N/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
associate-*l*N/A
*-lowering-*.f64N/A
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
--lowering--.f6448.5%
Applied egg-rr48.5%
Final simplification51.8%
(FPCore (n U t l Om U*)
:precision binary64
(let* ((t_1 (sqrt (* (* n 2.0) (* U (+ t (* (* l -2.0) (/ l Om))))))))
(if (<= Om -1.1e-131)
t_1
(if (<= Om 1.4e-160)
(sqrt (* (* U -2.0) (* (* (* n l) (* n l)) (/ (/ (- U U*) Om) Om))))
t_1))))
double code(double n, double U, double t, double l, double Om, double U_42_) {
double t_1 = sqrt(((n * 2.0) * (U * (t + ((l * -2.0) * (l / Om))))));
double tmp;
if (Om <= -1.1e-131) {
tmp = t_1;
} else if (Om <= 1.4e-160) {
tmp = sqrt(((U * -2.0) * (((n * l) * (n * l)) * (((U - U_42_) / Om) / Om))));
} else {
tmp = t_1;
}
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) :: tmp
t_1 = sqrt(((n * 2.0d0) * (u * (t + ((l * (-2.0d0)) * (l / om))))))
if (om <= (-1.1d-131)) then
tmp = t_1
else if (om <= 1.4d-160) then
tmp = sqrt(((u * (-2.0d0)) * (((n * l) * (n * l)) * (((u - u_42) / om) / om))))
else
tmp = t_1
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 = Math.sqrt(((n * 2.0) * (U * (t + ((l * -2.0) * (l / Om))))));
double tmp;
if (Om <= -1.1e-131) {
tmp = t_1;
} else if (Om <= 1.4e-160) {
tmp = Math.sqrt(((U * -2.0) * (((n * l) * (n * l)) * (((U - U_42_) / Om) / Om))));
} else {
tmp = t_1;
}
return tmp;
}
def code(n, U, t, l, Om, U_42_): t_1 = math.sqrt(((n * 2.0) * (U * (t + ((l * -2.0) * (l / Om)))))) tmp = 0 if Om <= -1.1e-131: tmp = t_1 elif Om <= 1.4e-160: tmp = math.sqrt(((U * -2.0) * (((n * l) * (n * l)) * (((U - U_42_) / Om) / Om)))) else: tmp = t_1 return tmp
function code(n, U, t, l, Om, U_42_) t_1 = sqrt(Float64(Float64(n * 2.0) * Float64(U * Float64(t + Float64(Float64(l * -2.0) * Float64(l / Om)))))) tmp = 0.0 if (Om <= -1.1e-131) tmp = t_1; elseif (Om <= 1.4e-160) tmp = sqrt(Float64(Float64(U * -2.0) * Float64(Float64(Float64(n * l) * Float64(n * l)) * Float64(Float64(Float64(U - U_42_) / Om) / Om)))); else tmp = t_1; end return tmp end
function tmp_2 = code(n, U, t, l, Om, U_42_) t_1 = sqrt(((n * 2.0) * (U * (t + ((l * -2.0) * (l / Om)))))); tmp = 0.0; if (Om <= -1.1e-131) tmp = t_1; elseif (Om <= 1.4e-160) tmp = sqrt(((U * -2.0) * (((n * l) * (n * l)) * (((U - U_42_) / Om) / Om)))); else tmp = t_1; end tmp_2 = tmp; end
code[n_, U_, t_, l_, Om_, U$42$_] := Block[{t$95$1 = N[Sqrt[N[(N[(n * 2.0), $MachinePrecision] * N[(U * N[(t + N[(N[(l * -2.0), $MachinePrecision] * N[(l / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]}, If[LessEqual[Om, -1.1e-131], t$95$1, If[LessEqual[Om, 1.4e-160], N[Sqrt[N[(N[(U * -2.0), $MachinePrecision] * N[(N[(N[(n * l), $MachinePrecision] * N[(n * l), $MachinePrecision]), $MachinePrecision] * N[(N[(N[(U - U$42$), $MachinePrecision] / Om), $MachinePrecision] / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \sqrt{\left(n \cdot 2\right) \cdot \left(U \cdot \left(t + \left(\ell \cdot -2\right) \cdot \frac{\ell}{Om}\right)\right)}\\
\mathbf{if}\;Om \leq -1.1 \cdot 10^{-131}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;Om \leq 1.4 \cdot 10^{-160}:\\
\;\;\;\;\sqrt{\left(U \cdot -2\right) \cdot \left(\left(\left(n \cdot \ell\right) \cdot \left(n \cdot \ell\right)\right) \cdot \frac{\frac{U - U*}{Om}}{Om}\right)}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if Om < -1.1e-131 or 1.40000000000000008e-160 < Om Initial program 47.9%
associate-/l*N/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
/-lowering-/.f6452.2%
Applied egg-rr52.2%
associate-/r/N/A
associate-*l/N/A
unpow2N/A
associate-*r*N/A
clear-numN/A
div-invN/A
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
Applied egg-rr51.9%
clear-numN/A
associate-/r/N/A
clear-numN/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
--lowering--.f64N/A
*-commutativeN/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
/-lowering-/.f6457.1%
Applied egg-rr57.1%
Taylor expanded in n around 0
*-lowering-*.f6451.4%
Simplified51.4%
if -1.1e-131 < Om < 1.40000000000000008e-160Initial program 51.5%
Taylor expanded in n around inf
associate-*r/N/A
associate-*r*N/A
associate-/l*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
associate-*r*N/A
associate-/l*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
associate-/r*N/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
--lowering--.f6446.0%
Simplified46.0%
unswap-sqrN/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f6453.1%
Applied egg-rr53.1%
Final simplification51.7%
(FPCore (n U t l Om U*)
:precision binary64
(if (<= l 2.35e+22)
(sqrt (* (* n 2.0) (* U (+ t (* (/ l Om) (* U* (/ (* n l) Om)))))))
(sqrt
(/
(* 2.0 (* U (* (* n l) (- (* l -2.0) (/ (* l (* n (- U U*))) Om)))))
Om))))
double code(double n, double U, double t, double l, double Om, double U_42_) {
double tmp;
if (l <= 2.35e+22) {
tmp = sqrt(((n * 2.0) * (U * (t + ((l / Om) * (U_42_ * ((n * l) / Om)))))));
} else {
tmp = sqrt(((2.0 * (U * ((n * l) * ((l * -2.0) - ((l * (n * (U - U_42_))) / Om))))) / 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 <= 2.35d+22) then
tmp = sqrt(((n * 2.0d0) * (u * (t + ((l / om) * (u_42 * ((n * l) / om)))))))
else
tmp = sqrt(((2.0d0 * (u * ((n * l) * ((l * (-2.0d0)) - ((l * (n * (u - u_42))) / om))))) / 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 <= 2.35e+22) {
tmp = Math.sqrt(((n * 2.0) * (U * (t + ((l / Om) * (U_42_ * ((n * l) / Om)))))));
} else {
tmp = Math.sqrt(((2.0 * (U * ((n * l) * ((l * -2.0) - ((l * (n * (U - U_42_))) / Om))))) / Om));
}
return tmp;
}
def code(n, U, t, l, Om, U_42_): tmp = 0 if l <= 2.35e+22: tmp = math.sqrt(((n * 2.0) * (U * (t + ((l / Om) * (U_42_ * ((n * l) / Om))))))) else: tmp = math.sqrt(((2.0 * (U * ((n * l) * ((l * -2.0) - ((l * (n * (U - U_42_))) / Om))))) / Om)) return tmp
function code(n, U, t, l, Om, U_42_) tmp = 0.0 if (l <= 2.35e+22) tmp = sqrt(Float64(Float64(n * 2.0) * Float64(U * Float64(t + Float64(Float64(l / Om) * Float64(U_42_ * Float64(Float64(n * l) / Om))))))); else tmp = sqrt(Float64(Float64(2.0 * Float64(U * Float64(Float64(n * l) * Float64(Float64(l * -2.0) - Float64(Float64(l * Float64(n * Float64(U - U_42_))) / Om))))) / Om)); end return tmp end
function tmp_2 = code(n, U, t, l, Om, U_42_) tmp = 0.0; if (l <= 2.35e+22) tmp = sqrt(((n * 2.0) * (U * (t + ((l / Om) * (U_42_ * ((n * l) / Om))))))); else tmp = sqrt(((2.0 * (U * ((n * l) * ((l * -2.0) - ((l * (n * (U - U_42_))) / Om))))) / Om)); end tmp_2 = tmp; end
code[n_, U_, t_, l_, Om_, U$42$_] := If[LessEqual[l, 2.35e+22], N[Sqrt[N[(N[(n * 2.0), $MachinePrecision] * N[(U * N[(t + N[(N[(l / Om), $MachinePrecision] * N[(U$42$ * N[(N[(n * l), $MachinePrecision] / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], N[Sqrt[N[(N[(2.0 * N[(U * N[(N[(n * l), $MachinePrecision] * N[(N[(l * -2.0), $MachinePrecision] - N[(N[(l * N[(n * N[(U - U$42$), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / Om), $MachinePrecision]], $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;\ell \leq 2.35 \cdot 10^{+22}:\\
\;\;\;\;\sqrt{\left(n \cdot 2\right) \cdot \left(U \cdot \left(t + \frac{\ell}{Om} \cdot \left(U* \cdot \frac{n \cdot \ell}{Om}\right)\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;\sqrt{\frac{2 \cdot \left(U \cdot \left(\left(n \cdot \ell\right) \cdot \left(\ell \cdot -2 - \frac{\ell \cdot \left(n \cdot \left(U - U*\right)\right)}{Om}\right)\right)\right)}{Om}}\\
\end{array}
\end{array}
if l < 2.3500000000000001e22Initial program 53.9%
associate-/l*N/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
/-lowering-/.f6455.3%
Applied egg-rr55.3%
associate-/r/N/A
associate-*l/N/A
unpow2N/A
associate-*r*N/A
clear-numN/A
div-invN/A
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
Applied egg-rr56.2%
clear-numN/A
associate-/r/N/A
clear-numN/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
--lowering--.f64N/A
*-commutativeN/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
/-lowering-/.f6461.3%
Applied egg-rr61.3%
Taylor expanded in U* around inf
associate-/l*N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f6453.6%
Simplified53.6%
if 2.3500000000000001e22 < l Initial program 26.1%
associate-/l*N/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
/-lowering-/.f6438.1%
Applied egg-rr38.1%
associate-/r/N/A
associate-*l/N/A
unpow2N/A
associate-*r*N/A
clear-numN/A
div-invN/A
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
Applied egg-rr56.7%
Taylor expanded in t around 0
associate-*r/N/A
/-lowering-/.f64N/A
Simplified60.2%
Final simplification54.8%
(FPCore (n U t l Om U*)
:precision binary64
(let* ((t_1 (sqrt (* (* n 2.0) (* U (+ t (* (* l -2.0) (/ l Om))))))))
(if (<= Om -8.5e-75)
t_1
(if (<= Om 1.35e-208)
(* l (sqrt (* (* U -2.0) (/ (* n n) (/ Om (/ (- U U*) Om))))))
t_1))))
double code(double n, double U, double t, double l, double Om, double U_42_) {
double t_1 = sqrt(((n * 2.0) * (U * (t + ((l * -2.0) * (l / Om))))));
double tmp;
if (Om <= -8.5e-75) {
tmp = t_1;
} else if (Om <= 1.35e-208) {
tmp = l * sqrt(((U * -2.0) * ((n * n) / (Om / ((U - U_42_) / Om)))));
} else {
tmp = t_1;
}
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) :: tmp
t_1 = sqrt(((n * 2.0d0) * (u * (t + ((l * (-2.0d0)) * (l / om))))))
if (om <= (-8.5d-75)) then
tmp = t_1
else if (om <= 1.35d-208) then
tmp = l * sqrt(((u * (-2.0d0)) * ((n * n) / (om / ((u - u_42) / om)))))
else
tmp = t_1
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 = Math.sqrt(((n * 2.0) * (U * (t + ((l * -2.0) * (l / Om))))));
double tmp;
if (Om <= -8.5e-75) {
tmp = t_1;
} else if (Om <= 1.35e-208) {
tmp = l * Math.sqrt(((U * -2.0) * ((n * n) / (Om / ((U - U_42_) / Om)))));
} else {
tmp = t_1;
}
return tmp;
}
def code(n, U, t, l, Om, U_42_): t_1 = math.sqrt(((n * 2.0) * (U * (t + ((l * -2.0) * (l / Om)))))) tmp = 0 if Om <= -8.5e-75: tmp = t_1 elif Om <= 1.35e-208: tmp = l * math.sqrt(((U * -2.0) * ((n * n) / (Om / ((U - U_42_) / Om))))) else: tmp = t_1 return tmp
function code(n, U, t, l, Om, U_42_) t_1 = sqrt(Float64(Float64(n * 2.0) * Float64(U * Float64(t + Float64(Float64(l * -2.0) * Float64(l / Om)))))) tmp = 0.0 if (Om <= -8.5e-75) tmp = t_1; elseif (Om <= 1.35e-208) tmp = Float64(l * sqrt(Float64(Float64(U * -2.0) * Float64(Float64(n * n) / Float64(Om / Float64(Float64(U - U_42_) / Om)))))); else tmp = t_1; end return tmp end
function tmp_2 = code(n, U, t, l, Om, U_42_) t_1 = sqrt(((n * 2.0) * (U * (t + ((l * -2.0) * (l / Om)))))); tmp = 0.0; if (Om <= -8.5e-75) tmp = t_1; elseif (Om <= 1.35e-208) tmp = l * sqrt(((U * -2.0) * ((n * n) / (Om / ((U - U_42_) / Om))))); else tmp = t_1; end tmp_2 = tmp; end
code[n_, U_, t_, l_, Om_, U$42$_] := Block[{t$95$1 = N[Sqrt[N[(N[(n * 2.0), $MachinePrecision] * N[(U * N[(t + N[(N[(l * -2.0), $MachinePrecision] * N[(l / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]}, If[LessEqual[Om, -8.5e-75], t$95$1, If[LessEqual[Om, 1.35e-208], N[(l * N[Sqrt[N[(N[(U * -2.0), $MachinePrecision] * N[(N[(n * n), $MachinePrecision] / N[(Om / N[(N[(U - U$42$), $MachinePrecision] / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \sqrt{\left(n \cdot 2\right) \cdot \left(U \cdot \left(t + \left(\ell \cdot -2\right) \cdot \frac{\ell}{Om}\right)\right)}\\
\mathbf{if}\;Om \leq -8.5 \cdot 10^{-75}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;Om \leq 1.35 \cdot 10^{-208}:\\
\;\;\;\;\ell \cdot \sqrt{\left(U \cdot -2\right) \cdot \frac{n \cdot n}{\frac{Om}{\frac{U - U*}{Om}}}}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if Om < -8.5000000000000001e-75 or 1.35e-208 < Om Initial program 47.2%
associate-/l*N/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
/-lowering-/.f6451.7%
Applied egg-rr51.7%
associate-/r/N/A
associate-*l/N/A
unpow2N/A
associate-*r*N/A
clear-numN/A
div-invN/A
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
Applied egg-rr51.4%
clear-numN/A
associate-/r/N/A
clear-numN/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
--lowering--.f64N/A
*-commutativeN/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
/-lowering-/.f6456.3%
Applied egg-rr56.3%
Taylor expanded in n around 0
*-lowering-*.f6452.4%
Simplified52.4%
if -8.5000000000000001e-75 < Om < 1.35e-208Initial program 53.2%
Taylor expanded in n around inf
associate-*r/N/A
associate-*r*N/A
associate-/l*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
associate-*r*N/A
associate-/l*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
associate-/r*N/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
--lowering--.f6443.6%
Simplified43.6%
*-commutativeN/A
associate-*l*N/A
associate-*l*N/A
sqrt-prodN/A
pow2N/A
sqrt-pow1N/A
metadata-evalN/A
unpow1N/A
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f64N/A
*-lowering-*.f64N/A
Applied egg-rr21.4%
Final simplification45.2%
(FPCore (n U t l Om U*) :precision binary64 (if (<= l 2.8e+213) (sqrt (* (* n 2.0) (* U (+ t (* (* l -2.0) (/ l Om)))))) (sqrt (* (* n 2.0) (/ (* U (* U* (* n (* l l)))) (* Om Om))))))
double code(double n, double U, double t, double l, double Om, double U_42_) {
double tmp;
if (l <= 2.8e+213) {
tmp = sqrt(((n * 2.0) * (U * (t + ((l * -2.0) * (l / Om))))));
} else {
tmp = sqrt(((n * 2.0) * ((U * (U_42_ * (n * (l * l)))) / (Om * 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 <= 2.8d+213) then
tmp = sqrt(((n * 2.0d0) * (u * (t + ((l * (-2.0d0)) * (l / om))))))
else
tmp = sqrt(((n * 2.0d0) * ((u * (u_42 * (n * (l * l)))) / (om * 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 <= 2.8e+213) {
tmp = Math.sqrt(((n * 2.0) * (U * (t + ((l * -2.0) * (l / Om))))));
} else {
tmp = Math.sqrt(((n * 2.0) * ((U * (U_42_ * (n * (l * l)))) / (Om * Om))));
}
return tmp;
}
def code(n, U, t, l, Om, U_42_): tmp = 0 if l <= 2.8e+213: tmp = math.sqrt(((n * 2.0) * (U * (t + ((l * -2.0) * (l / Om)))))) else: tmp = math.sqrt(((n * 2.0) * ((U * (U_42_ * (n * (l * l)))) / (Om * Om)))) return tmp
function code(n, U, t, l, Om, U_42_) tmp = 0.0 if (l <= 2.8e+213) tmp = sqrt(Float64(Float64(n * 2.0) * Float64(U * Float64(t + Float64(Float64(l * -2.0) * Float64(l / Om)))))); else tmp = sqrt(Float64(Float64(n * 2.0) * Float64(Float64(U * Float64(U_42_ * Float64(n * Float64(l * l)))) / Float64(Om * Om)))); end return tmp end
function tmp_2 = code(n, U, t, l, Om, U_42_) tmp = 0.0; if (l <= 2.8e+213) tmp = sqrt(((n * 2.0) * (U * (t + ((l * -2.0) * (l / Om)))))); else tmp = sqrt(((n * 2.0) * ((U * (U_42_ * (n * (l * l)))) / (Om * Om)))); end tmp_2 = tmp; end
code[n_, U_, t_, l_, Om_, U$42$_] := If[LessEqual[l, 2.8e+213], N[Sqrt[N[(N[(n * 2.0), $MachinePrecision] * N[(U * N[(t + N[(N[(l * -2.0), $MachinePrecision] * N[(l / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], N[Sqrt[N[(N[(n * 2.0), $MachinePrecision] * N[(N[(U * N[(U$42$ * N[(n * N[(l * l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(Om * Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;\ell \leq 2.8 \cdot 10^{+213}:\\
\;\;\;\;\sqrt{\left(n \cdot 2\right) \cdot \left(U \cdot \left(t + \left(\ell \cdot -2\right) \cdot \frac{\ell}{Om}\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;\sqrt{\left(n \cdot 2\right) \cdot \frac{U \cdot \left(U* \cdot \left(n \cdot \left(\ell \cdot \ell\right)\right)\right)}{Om \cdot Om}}\\
\end{array}
\end{array}
if l < 2.7999999999999999e213Initial program 51.3%
associate-/l*N/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
/-lowering-/.f6454.6%
Applied egg-rr54.6%
associate-/r/N/A
associate-*l/N/A
unpow2N/A
associate-*r*N/A
clear-numN/A
div-invN/A
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
Applied egg-rr56.2%
clear-numN/A
associate-/r/N/A
clear-numN/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
--lowering--.f64N/A
*-commutativeN/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
/-lowering-/.f6460.7%
Applied egg-rr60.7%
Taylor expanded in n around 0
*-lowering-*.f6449.5%
Simplified49.5%
if 2.7999999999999999e213 < l Initial program 12.6%
associate-/l*N/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
/-lowering-/.f6417.9%
Applied egg-rr17.9%
associate-/r/N/A
associate-*l/N/A
unpow2N/A
associate-*r*N/A
clear-numN/A
div-invN/A
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
Applied egg-rr57.2%
Taylor expanded in U* around inf
/-lowering-/.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6450.6%
Simplified50.6%
Final simplification49.6%
(FPCore (n U t l Om U*) :precision binary64 (if (<= t -3.3e+170) (pow (* n (* (* U t) 2.0)) 0.5) (sqrt (* (* U 2.0) (* n (+ t (* -2.0 (/ (* l l) Om))))))))
double code(double n, double U, double t, double l, double Om, double U_42_) {
double tmp;
if (t <= -3.3e+170) {
tmp = pow((n * ((U * t) * 2.0)), 0.5);
} else {
tmp = sqrt(((U * 2.0) * (n * (t + (-2.0 * ((l * l) / 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 (t <= (-3.3d+170)) then
tmp = (n * ((u * t) * 2.0d0)) ** 0.5d0
else
tmp = sqrt(((u * 2.0d0) * (n * (t + ((-2.0d0) * ((l * l) / 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 (t <= -3.3e+170) {
tmp = Math.pow((n * ((U * t) * 2.0)), 0.5);
} else {
tmp = Math.sqrt(((U * 2.0) * (n * (t + (-2.0 * ((l * l) / Om))))));
}
return tmp;
}
def code(n, U, t, l, Om, U_42_): tmp = 0 if t <= -3.3e+170: tmp = math.pow((n * ((U * t) * 2.0)), 0.5) else: tmp = math.sqrt(((U * 2.0) * (n * (t + (-2.0 * ((l * l) / Om)))))) return tmp
function code(n, U, t, l, Om, U_42_) tmp = 0.0 if (t <= -3.3e+170) tmp = Float64(n * Float64(Float64(U * t) * 2.0)) ^ 0.5; else tmp = sqrt(Float64(Float64(U * 2.0) * Float64(n * Float64(t + Float64(-2.0 * Float64(Float64(l * l) / Om)))))); end return tmp end
function tmp_2 = code(n, U, t, l, Om, U_42_) tmp = 0.0; if (t <= -3.3e+170) tmp = (n * ((U * t) * 2.0)) ^ 0.5; else tmp = sqrt(((U * 2.0) * (n * (t + (-2.0 * ((l * l) / Om)))))); end tmp_2 = tmp; end
code[n_, U_, t_, l_, Om_, U$42$_] := If[LessEqual[t, -3.3e+170], N[Power[N[(n * N[(N[(U * t), $MachinePrecision] * 2.0), $MachinePrecision]), $MachinePrecision], 0.5], $MachinePrecision], N[Sqrt[N[(N[(U * 2.0), $MachinePrecision] * N[(n * N[(t + N[(-2.0 * N[(N[(l * l), $MachinePrecision] / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -3.3 \cdot 10^{+170}:\\
\;\;\;\;{\left(n \cdot \left(\left(U \cdot t\right) \cdot 2\right)\right)}^{0.5}\\
\mathbf{else}:\\
\;\;\;\;\sqrt{\left(U \cdot 2\right) \cdot \left(n \cdot \left(t + -2 \cdot \frac{\ell \cdot \ell}{Om}\right)\right)}\\
\end{array}
\end{array}
if t < -3.30000000000000023e170Initial program 39.6%
associate-/l*N/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
/-lowering-/.f6448.0%
Applied egg-rr48.0%
Taylor expanded in t around inf
*-lowering-*.f64N/A
associate-*r*N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6448.1%
Simplified48.1%
pow1/2N/A
pow-lowering-pow.f64N/A
*-commutativeN/A
associate-*l*N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f6451.1%
Applied egg-rr51.1%
if -3.30000000000000023e170 < t Initial program 50.0%
Taylor expanded in n around 0
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
cancel-sign-sub-invN/A
metadata-evalN/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
unpow2N/A
*-lowering-*.f6444.5%
Simplified44.5%
Final simplification45.4%
(FPCore (n U t l Om U*) :precision binary64 (if (<= l 1.12e+83) (pow (* n (* (* U t) 2.0)) 0.5) (sqrt (/ (* -4.0 (* n (* U (* l l)))) Om))))
double code(double n, double U, double t, double l, double Om, double U_42_) {
double tmp;
if (l <= 1.12e+83) {
tmp = pow((n * ((U * t) * 2.0)), 0.5);
} else {
tmp = sqrt(((-4.0 * (n * (U * (l * l)))) / 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.12d+83) then
tmp = (n * ((u * t) * 2.0d0)) ** 0.5d0
else
tmp = sqrt((((-4.0d0) * (n * (u * (l * l)))) / 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.12e+83) {
tmp = Math.pow((n * ((U * t) * 2.0)), 0.5);
} else {
tmp = Math.sqrt(((-4.0 * (n * (U * (l * l)))) / Om));
}
return tmp;
}
def code(n, U, t, l, Om, U_42_): tmp = 0 if l <= 1.12e+83: tmp = math.pow((n * ((U * t) * 2.0)), 0.5) else: tmp = math.sqrt(((-4.0 * (n * (U * (l * l)))) / Om)) return tmp
function code(n, U, t, l, Om, U_42_) tmp = 0.0 if (l <= 1.12e+83) tmp = Float64(n * Float64(Float64(U * t) * 2.0)) ^ 0.5; else tmp = sqrt(Float64(Float64(-4.0 * Float64(n * Float64(U * Float64(l * l)))) / Om)); end return tmp end
function tmp_2 = code(n, U, t, l, Om, U_42_) tmp = 0.0; if (l <= 1.12e+83) tmp = (n * ((U * t) * 2.0)) ^ 0.5; else tmp = sqrt(((-4.0 * (n * (U * (l * l)))) / Om)); end tmp_2 = tmp; end
code[n_, U_, t_, l_, Om_, U$42$_] := If[LessEqual[l, 1.12e+83], N[Power[N[(n * N[(N[(U * t), $MachinePrecision] * 2.0), $MachinePrecision]), $MachinePrecision], 0.5], $MachinePrecision], N[Sqrt[N[(N[(-4.0 * N[(n * N[(U * N[(l * l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / Om), $MachinePrecision]], $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;\ell \leq 1.12 \cdot 10^{+83}:\\
\;\;\;\;{\left(n \cdot \left(\left(U \cdot t\right) \cdot 2\right)\right)}^{0.5}\\
\mathbf{else}:\\
\;\;\;\;\sqrt{\frac{-4 \cdot \left(n \cdot \left(U \cdot \left(\ell \cdot \ell\right)\right)\right)}{Om}}\\
\end{array}
\end{array}
if l < 1.12e83Initial program 54.1%
associate-/l*N/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
/-lowering-/.f6455.5%
Applied egg-rr55.5%
Taylor expanded in t around inf
*-lowering-*.f64N/A
associate-*r*N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6439.2%
Simplified39.2%
pow1/2N/A
pow-lowering-pow.f64N/A
*-commutativeN/A
associate-*l*N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f6440.9%
Applied egg-rr40.9%
if 1.12e83 < l Initial program 18.9%
Taylor expanded in Om around inf
+-commutativeN/A
+-lowering-+.f64N/A
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
associate-*r/N/A
/-lowering-/.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6422.3%
Simplified22.3%
Taylor expanded in t around 0
associate-*r/N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6422.3%
Simplified22.3%
Final simplification38.0%
(FPCore (n U t l Om U*) :precision binary64 (sqrt (* (* n 2.0) (* U (+ t (* (* l -2.0) (/ l Om)))))))
double code(double n, double U, double t, double l, double Om, double U_42_) {
return sqrt(((n * 2.0) * (U * (t + ((l * -2.0) * (l / Om))))));
}
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(((n * 2.0d0) * (u * (t + ((l * (-2.0d0)) * (l / om))))))
end function
public static double code(double n, double U, double t, double l, double Om, double U_42_) {
return Math.sqrt(((n * 2.0) * (U * (t + ((l * -2.0) * (l / Om))))));
}
def code(n, U, t, l, Om, U_42_): return math.sqrt(((n * 2.0) * (U * (t + ((l * -2.0) * (l / Om))))))
function code(n, U, t, l, Om, U_42_) return sqrt(Float64(Float64(n * 2.0) * Float64(U * Float64(t + Float64(Float64(l * -2.0) * Float64(l / Om)))))) end
function tmp = code(n, U, t, l, Om, U_42_) tmp = sqrt(((n * 2.0) * (U * (t + ((l * -2.0) * (l / Om)))))); end
code[n_, U_, t_, l_, Om_, U$42$_] := N[Sqrt[N[(N[(n * 2.0), $MachinePrecision] * N[(U * N[(t + N[(N[(l * -2.0), $MachinePrecision] * N[(l / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]
\begin{array}{l}
\\
\sqrt{\left(n \cdot 2\right) \cdot \left(U \cdot \left(t + \left(\ell \cdot -2\right) \cdot \frac{\ell}{Om}\right)\right)}
\end{array}
Initial program 48.6%
associate-/l*N/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
/-lowering-/.f6452.0%
Applied egg-rr52.0%
associate-/r/N/A
associate-*l/N/A
unpow2N/A
associate-*r*N/A
clear-numN/A
div-invN/A
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
Applied egg-rr56.3%
clear-numN/A
associate-/r/N/A
clear-numN/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
--lowering--.f64N/A
*-commutativeN/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
/-lowering-/.f6460.5%
Applied egg-rr60.5%
Taylor expanded in n around 0
*-lowering-*.f6447.7%
Simplified47.7%
Final simplification47.7%
(FPCore (n U t l Om U*) :precision binary64 (if (<= n -8.8e-269) (sqrt (* n (* t (* U 2.0)))) (pow (* 2.0 (* U (* n t))) 0.5)))
double code(double n, double U, double t, double l, double Om, double U_42_) {
double tmp;
if (n <= -8.8e-269) {
tmp = sqrt((n * (t * (U * 2.0))));
} else {
tmp = pow((2.0 * (U * (n * t))), 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 <= (-8.8d-269)) then
tmp = sqrt((n * (t * (u * 2.0d0))))
else
tmp = (2.0d0 * (u * (n * t))) ** 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 <= -8.8e-269) {
tmp = Math.sqrt((n * (t * (U * 2.0))));
} else {
tmp = Math.pow((2.0 * (U * (n * t))), 0.5);
}
return tmp;
}
def code(n, U, t, l, Om, U_42_): tmp = 0 if n <= -8.8e-269: tmp = math.sqrt((n * (t * (U * 2.0)))) else: tmp = math.pow((2.0 * (U * (n * t))), 0.5) return tmp
function code(n, U, t, l, Om, U_42_) tmp = 0.0 if (n <= -8.8e-269) tmp = sqrt(Float64(n * Float64(t * Float64(U * 2.0)))); else tmp = Float64(2.0 * Float64(U * Float64(n * t))) ^ 0.5; end return tmp end
function tmp_2 = code(n, U, t, l, Om, U_42_) tmp = 0.0; if (n <= -8.8e-269) tmp = sqrt((n * (t * (U * 2.0)))); else tmp = (2.0 * (U * (n * t))) ^ 0.5; end tmp_2 = tmp; end
code[n_, U_, t_, l_, Om_, U$42$_] := If[LessEqual[n, -8.8e-269], N[Sqrt[N[(n * N[(t * N[(U * 2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], N[Power[N[(2.0 * N[(U * N[(n * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 0.5], $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;n \leq -8.8 \cdot 10^{-269}:\\
\;\;\;\;\sqrt{n \cdot \left(t \cdot \left(U \cdot 2\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;{\left(2 \cdot \left(U \cdot \left(n \cdot t\right)\right)\right)}^{0.5}\\
\end{array}
\end{array}
if n < -8.79999999999999936e-269Initial program 48.5%
Taylor expanded in t around inf
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f6427.1%
Simplified27.1%
*-commutativeN/A
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f6436.0%
Applied egg-rr36.0%
if -8.79999999999999936e-269 < n Initial program 48.6%
Taylor expanded in t around inf
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f6438.5%
Simplified38.5%
pow1/2N/A
pow-lowering-pow.f64N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6439.2%
Applied egg-rr39.2%
Final simplification37.7%
(FPCore (n U t l Om U*) :precision binary64 (if (<= n -1.32e-269) (sqrt (* 2.0 (* t (* n U)))) (sqrt (* (* U 2.0) (* n t)))))
double code(double n, double U, double t, double l, double Om, double U_42_) {
double tmp;
if (n <= -1.32e-269) {
tmp = sqrt((2.0 * (t * (n * U))));
} else {
tmp = sqrt(((U * 2.0) * (n * t)));
}
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.32d-269)) then
tmp = sqrt((2.0d0 * (t * (n * u))))
else
tmp = sqrt(((u * 2.0d0) * (n * t)))
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.32e-269) {
tmp = Math.sqrt((2.0 * (t * (n * U))));
} else {
tmp = Math.sqrt(((U * 2.0) * (n * t)));
}
return tmp;
}
def code(n, U, t, l, Om, U_42_): tmp = 0 if n <= -1.32e-269: tmp = math.sqrt((2.0 * (t * (n * U)))) else: tmp = math.sqrt(((U * 2.0) * (n * t))) return tmp
function code(n, U, t, l, Om, U_42_) tmp = 0.0 if (n <= -1.32e-269) tmp = sqrt(Float64(2.0 * Float64(t * Float64(n * U)))); else tmp = sqrt(Float64(Float64(U * 2.0) * Float64(n * t))); end return tmp end
function tmp_2 = code(n, U, t, l, Om, U_42_) tmp = 0.0; if (n <= -1.32e-269) tmp = sqrt((2.0 * (t * (n * U)))); else tmp = sqrt(((U * 2.0) * (n * t))); end tmp_2 = tmp; end
code[n_, U_, t_, l_, Om_, U$42$_] := If[LessEqual[n, -1.32e-269], N[Sqrt[N[(2.0 * N[(t * N[(n * U), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], N[Sqrt[N[(N[(U * 2.0), $MachinePrecision] * N[(n * t), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;n \leq -1.32 \cdot 10^{-269}:\\
\;\;\;\;\sqrt{2 \cdot \left(t \cdot \left(n \cdot U\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;\sqrt{\left(U \cdot 2\right) \cdot \left(n \cdot t\right)}\\
\end{array}
\end{array}
if n < -1.32000000000000007e-269Initial program 48.5%
associate-/l*N/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
/-lowering-/.f6453.4%
Applied egg-rr53.4%
Taylor expanded in t around inf
*-lowering-*.f64N/A
associate-*r*N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6434.0%
Simplified34.0%
if -1.32000000000000007e-269 < n Initial program 48.6%
Taylor expanded in t around inf
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f6438.5%
Simplified38.5%
Final simplification36.4%
(FPCore (n U t l Om U*) :precision binary64 (pow (* n (* (* U t) 2.0)) 0.5))
double code(double n, double U, double t, double l, double Om, double U_42_) {
return pow((n * ((U * t) * 2.0)), 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 = (n * ((u * t) * 2.0d0)) ** 0.5d0
end function
public static double code(double n, double U, double t, double l, double Om, double U_42_) {
return Math.pow((n * ((U * t) * 2.0)), 0.5);
}
def code(n, U, t, l, Om, U_42_): return math.pow((n * ((U * t) * 2.0)), 0.5)
function code(n, U, t, l, Om, U_42_) return Float64(n * Float64(Float64(U * t) * 2.0)) ^ 0.5 end
function tmp = code(n, U, t, l, Om, U_42_) tmp = (n * ((U * t) * 2.0)) ^ 0.5; end
code[n_, U_, t_, l_, Om_, U$42$_] := N[Power[N[(n * N[(N[(U * t), $MachinePrecision] * 2.0), $MachinePrecision]), $MachinePrecision], 0.5], $MachinePrecision]
\begin{array}{l}
\\
{\left(n \cdot \left(\left(U \cdot t\right) \cdot 2\right)\right)}^{0.5}
\end{array}
Initial program 48.6%
associate-/l*N/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
/-lowering-/.f6452.0%
Applied egg-rr52.0%
Taylor expanded in t around inf
*-lowering-*.f64N/A
associate-*r*N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6434.6%
Simplified34.6%
pow1/2N/A
pow-lowering-pow.f64N/A
*-commutativeN/A
associate-*l*N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f6436.4%
Applied egg-rr36.4%
(FPCore (n U t l Om U*) :precision binary64 (sqrt (* n (* t (* U 2.0)))))
double code(double n, double U, double t, double l, double Om, double U_42_) {
return sqrt((n * (t * (U * 2.0))));
}
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((n * (t * (u * 2.0d0))))
end function
public static double code(double n, double U, double t, double l, double Om, double U_42_) {
return Math.sqrt((n * (t * (U * 2.0))));
}
def code(n, U, t, l, Om, U_42_): return math.sqrt((n * (t * (U * 2.0))))
function code(n, U, t, l, Om, U_42_) return sqrt(Float64(n * Float64(t * Float64(U * 2.0)))) end
function tmp = code(n, U, t, l, Om, U_42_) tmp = sqrt((n * (t * (U * 2.0)))); end
code[n_, U_, t_, l_, Om_, U$42$_] := N[Sqrt[N[(n * N[(t * N[(U * 2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]
\begin{array}{l}
\\
\sqrt{n \cdot \left(t \cdot \left(U \cdot 2\right)\right)}
\end{array}
Initial program 48.6%
Taylor expanded in t around inf
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f6433.2%
Simplified33.2%
*-commutativeN/A
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f6436.0%
Applied egg-rr36.0%
Final simplification36.0%
(FPCore (n U t l Om U*) :precision binary64 (sqrt (* 2.0 (* t (* n U)))))
double code(double n, double U, double t, double l, double Om, double U_42_) {
return sqrt((2.0 * (t * (n * U))));
}
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 * (t * (n * u))))
end function
public static double code(double n, double U, double t, double l, double Om, double U_42_) {
return Math.sqrt((2.0 * (t * (n * U))));
}
def code(n, U, t, l, Om, U_42_): return math.sqrt((2.0 * (t * (n * U))))
function code(n, U, t, l, Om, U_42_) return sqrt(Float64(2.0 * Float64(t * Float64(n * U)))) end
function tmp = code(n, U, t, l, Om, U_42_) tmp = sqrt((2.0 * (t * (n * U)))); end
code[n_, U_, t_, l_, Om_, U$42$_] := N[Sqrt[N[(2.0 * N[(t * N[(n * U), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]
\begin{array}{l}
\\
\sqrt{2 \cdot \left(t \cdot \left(n \cdot U\right)\right)}
\end{array}
Initial program 48.6%
associate-/l*N/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
/-lowering-/.f6452.0%
Applied egg-rr52.0%
Taylor expanded in t around inf
*-lowering-*.f64N/A
associate-*r*N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6434.6%
Simplified34.6%
Final simplification34.6%
herbie shell --seed 2024191
(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*))))))