
(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 19 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
(* 2.0 (+ t (/ (+ (/ (- U* U) (/ (/ Om l) n)) (* l -2.0)) (/ Om l)))))
(t_2 (* (* 2.0 n) U))
(t_3 (- t (* 2.0 (/ (* l l) Om))))
(t_4 (* t_2 (+ t_3 (* (* n (pow (/ l Om) 2.0)) (- U* U))))))
(if (<= t_4 1e-321)
(* (sqrt (* U t_1)) (sqrt n))
(if (<= t_4 5e+293)
(sqrt (* t_2 (+ t_3 (* (* (/ l Om) (/ n (/ Om l))) (- U* U)))))
(if (<= t_4 INFINITY)
(sqrt (* U (* n t_1)))
(sqrt
(/
(* 2.0 (* U (* (* n l) (+ (* l -2.0) (* U* (/ (* n l) Om))))))
Om)))))))
double code(double n, double U, double t, double l, double Om, double U_42_) {
double t_1 = 2.0 * (t + ((((U_42_ - U) / ((Om / l) / n)) + (l * -2.0)) / (Om / l)));
double t_2 = (2.0 * n) * U;
double t_3 = t - (2.0 * ((l * l) / Om));
double t_4 = t_2 * (t_3 + ((n * pow((l / Om), 2.0)) * (U_42_ - U)));
double tmp;
if (t_4 <= 1e-321) {
tmp = sqrt((U * t_1)) * sqrt(n);
} else if (t_4 <= 5e+293) {
tmp = sqrt((t_2 * (t_3 + (((l / Om) * (n / (Om / l))) * (U_42_ - U)))));
} else if (t_4 <= ((double) INFINITY)) {
tmp = sqrt((U * (n * t_1)));
} else {
tmp = sqrt(((2.0 * (U * ((n * l) * ((l * -2.0) + (U_42_ * ((n * l) / Om)))))) / Om));
}
return tmp;
}
public static double code(double n, double U, double t, double l, double Om, double U_42_) {
double t_1 = 2.0 * (t + ((((U_42_ - U) / ((Om / l) / n)) + (l * -2.0)) / (Om / l)));
double t_2 = (2.0 * n) * U;
double t_3 = t - (2.0 * ((l * l) / Om));
double t_4 = t_2 * (t_3 + ((n * Math.pow((l / Om), 2.0)) * (U_42_ - U)));
double tmp;
if (t_4 <= 1e-321) {
tmp = Math.sqrt((U * t_1)) * Math.sqrt(n);
} else if (t_4 <= 5e+293) {
tmp = Math.sqrt((t_2 * (t_3 + (((l / Om) * (n / (Om / l))) * (U_42_ - U)))));
} else if (t_4 <= Double.POSITIVE_INFINITY) {
tmp = Math.sqrt((U * (n * t_1)));
} else {
tmp = Math.sqrt(((2.0 * (U * ((n * l) * ((l * -2.0) + (U_42_ * ((n * l) / Om)))))) / Om));
}
return tmp;
}
def code(n, U, t, l, Om, U_42_): t_1 = 2.0 * (t + ((((U_42_ - U) / ((Om / l) / n)) + (l * -2.0)) / (Om / l))) t_2 = (2.0 * n) * U t_3 = t - (2.0 * ((l * l) / Om)) t_4 = t_2 * (t_3 + ((n * math.pow((l / Om), 2.0)) * (U_42_ - U))) tmp = 0 if t_4 <= 1e-321: tmp = math.sqrt((U * t_1)) * math.sqrt(n) elif t_4 <= 5e+293: tmp = math.sqrt((t_2 * (t_3 + (((l / Om) * (n / (Om / l))) * (U_42_ - U))))) elif t_4 <= math.inf: tmp = math.sqrt((U * (n * t_1))) else: tmp = math.sqrt(((2.0 * (U * ((n * l) * ((l * -2.0) + (U_42_ * ((n * l) / Om)))))) / Om)) return tmp
function code(n, U, t, l, Om, U_42_) t_1 = Float64(2.0 * Float64(t + Float64(Float64(Float64(Float64(U_42_ - U) / Float64(Float64(Om / l) / n)) + Float64(l * -2.0)) / Float64(Om / l)))) t_2 = Float64(Float64(2.0 * n) * U) t_3 = Float64(t - Float64(2.0 * Float64(Float64(l * l) / Om))) t_4 = Float64(t_2 * Float64(t_3 + Float64(Float64(n * (Float64(l / Om) ^ 2.0)) * Float64(U_42_ - U)))) tmp = 0.0 if (t_4 <= 1e-321) tmp = Float64(sqrt(Float64(U * t_1)) * sqrt(n)); elseif (t_4 <= 5e+293) tmp = sqrt(Float64(t_2 * Float64(t_3 + Float64(Float64(Float64(l / Om) * Float64(n / Float64(Om / l))) * Float64(U_42_ - U))))); elseif (t_4 <= Inf) tmp = sqrt(Float64(U * Float64(n * t_1))); else tmp = sqrt(Float64(Float64(2.0 * Float64(U * Float64(Float64(n * l) * Float64(Float64(l * -2.0) + Float64(U_42_ * Float64(Float64(n * l) / Om)))))) / Om)); end return tmp end
function tmp_2 = code(n, U, t, l, Om, U_42_) t_1 = 2.0 * (t + ((((U_42_ - U) / ((Om / l) / n)) + (l * -2.0)) / (Om / l))); t_2 = (2.0 * n) * U; t_3 = t - (2.0 * ((l * l) / Om)); t_4 = t_2 * (t_3 + ((n * ((l / Om) ^ 2.0)) * (U_42_ - U))); tmp = 0.0; if (t_4 <= 1e-321) tmp = sqrt((U * t_1)) * sqrt(n); elseif (t_4 <= 5e+293) tmp = sqrt((t_2 * (t_3 + (((l / Om) * (n / (Om / l))) * (U_42_ - U))))); elseif (t_4 <= Inf) tmp = sqrt((U * (n * t_1))); else tmp = sqrt(((2.0 * (U * ((n * l) * ((l * -2.0) + (U_42_ * ((n * l) / Om)))))) / Om)); end tmp_2 = tmp; end
code[n_, U_, t_, l_, Om_, U$42$_] := Block[{t$95$1 = N[(2.0 * N[(t + N[(N[(N[(N[(U$42$ - U), $MachinePrecision] / N[(N[(Om / l), $MachinePrecision] / n), $MachinePrecision]), $MachinePrecision] + N[(l * -2.0), $MachinePrecision]), $MachinePrecision] / N[(Om / l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(2.0 * n), $MachinePrecision] * U), $MachinePrecision]}, Block[{t$95$3 = N[(t - N[(2.0 * N[(N[(l * l), $MachinePrecision] / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(t$95$2 * N[(t$95$3 + N[(N[(n * N[Power[N[(l / Om), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision] * N[(U$42$ - U), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$4, 1e-321], N[(N[Sqrt[N[(U * t$95$1), $MachinePrecision]], $MachinePrecision] * N[Sqrt[n], $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$4, 5e+293], N[Sqrt[N[(t$95$2 * N[(t$95$3 + N[(N[(N[(l / Om), $MachinePrecision] * N[(n / N[(Om / l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(U$42$ - U), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], If[LessEqual[t$95$4, Infinity], N[Sqrt[N[(U * N[(n * t$95$1), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], N[Sqrt[N[(N[(2.0 * N[(U * N[(N[(n * l), $MachinePrecision] * N[(N[(l * -2.0), $MachinePrecision] + N[(U$42$ * N[(N[(n * l), $MachinePrecision] / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / Om), $MachinePrecision]], $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := 2 \cdot \left(t + \frac{\frac{U* - U}{\frac{\frac{Om}{\ell}}{n}} + \ell \cdot -2}{\frac{Om}{\ell}}\right)\\
t_2 := \left(2 \cdot n\right) \cdot U\\
t_3 := t - 2 \cdot \frac{\ell \cdot \ell}{Om}\\
t_4 := t\_2 \cdot \left(t\_3 + \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U* - U\right)\right)\\
\mathbf{if}\;t\_4 \leq 10^{-321}:\\
\;\;\;\;\sqrt{U \cdot t\_1} \cdot \sqrt{n}\\
\mathbf{elif}\;t\_4 \leq 5 \cdot 10^{+293}:\\
\;\;\;\;\sqrt{t\_2 \cdot \left(t\_3 + \left(\frac{\ell}{Om} \cdot \frac{n}{\frac{Om}{\ell}}\right) \cdot \left(U* - U\right)\right)}\\
\mathbf{elif}\;t\_4 \leq \infty:\\
\;\;\;\;\sqrt{U \cdot \left(n \cdot t\_1\right)}\\
\mathbf{else}:\\
\;\;\;\;\sqrt{\frac{2 \cdot \left(U \cdot \left(\left(n \cdot \ell\right) \cdot \left(\ell \cdot -2 + U* \cdot \frac{n \cdot \ell}{Om}\right)\right)\right)}{Om}}\\
\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*)))) < 9.98013e-322Initial program 14.3%
Simplified28.6%
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
sqrt-prodN/A
*-lowering-*.f64N/A
Applied egg-rr57.2%
if 9.98013e-322 < (*.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*)))) < 5.00000000000000033e293Initial program 98.0%
*-commutativeN/A
*-lowering-*.f64N/A
--lowering--.f64N/A
*-commutativeN/A
unpow2N/A
associate-*l*N/A
*-commutativeN/A
associate-/l*N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
associate-/l*N/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
/-lowering-/.f6498.9%
Applied egg-rr98.9%
if 5.00000000000000033e293 < (*.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 32.2%
Simplified42.8%
associate-*r*N/A
associate-*r*N/A
*-lowering-*.f64N/A
Applied egg-rr46.9%
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%
Simplified21.8%
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
*-lowering-*.f64N/A
Applied egg-rr25.4%
Taylor expanded in U* around inf
associate-/l*N/A
*-lowering-*.f64N/A
associate-/l*N/A
*-lowering-*.f64N/A
/-lowering-/.f6426.1%
Simplified26.1%
Taylor expanded in t around 0
associate-*r/N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
associate-/l*N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f6466.3%
Simplified66.3%
Final simplification70.8%
(FPCore (n U t l Om U*)
:precision binary64
(let* ((t_1 (+ (* l -2.0) (* U* (/ (* n l) Om)))))
(if (<= n -6.2e-86)
(sqrt
(*
n
(* U (* 2.0 (+ t (/ (+ (* l -2.0) (* U* (* l (/ n Om)))) (/ Om l)))))))
(if (<= n 9.2e-308)
(sqrt (* t (* 2.0 (+ (* (/ (* U l) Om) (/ (* n t_1) t)) (* n U)))))
(* (sqrt n) (sqrt (* 2.0 (* U (+ t (/ t_1 (/ Om l)))))))))))
double code(double n, double U, double t, double l, double Om, double U_42_) {
double t_1 = (l * -2.0) + (U_42_ * ((n * l) / Om));
double tmp;
if (n <= -6.2e-86) {
tmp = sqrt((n * (U * (2.0 * (t + (((l * -2.0) + (U_42_ * (l * (n / Om)))) / (Om / l)))))));
} else if (n <= 9.2e-308) {
tmp = sqrt((t * (2.0 * ((((U * l) / Om) * ((n * t_1) / t)) + (n * U)))));
} else {
tmp = sqrt(n) * sqrt((2.0 * (U * (t + (t_1 / (Om / l))))));
}
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)) + (u_42 * ((n * l) / om))
if (n <= (-6.2d-86)) then
tmp = sqrt((n * (u * (2.0d0 * (t + (((l * (-2.0d0)) + (u_42 * (l * (n / om)))) / (om / l)))))))
else if (n <= 9.2d-308) then
tmp = sqrt((t * (2.0d0 * ((((u * l) / om) * ((n * t_1) / t)) + (n * u)))))
else
tmp = sqrt(n) * sqrt((2.0d0 * (u * (t + (t_1 / (om / l))))))
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) + (U_42_ * ((n * l) / Om));
double tmp;
if (n <= -6.2e-86) {
tmp = Math.sqrt((n * (U * (2.0 * (t + (((l * -2.0) + (U_42_ * (l * (n / Om)))) / (Om / l)))))));
} else if (n <= 9.2e-308) {
tmp = Math.sqrt((t * (2.0 * ((((U * l) / Om) * ((n * t_1) / t)) + (n * U)))));
} else {
tmp = Math.sqrt(n) * Math.sqrt((2.0 * (U * (t + (t_1 / (Om / l))))));
}
return tmp;
}
def code(n, U, t, l, Om, U_42_): t_1 = (l * -2.0) + (U_42_ * ((n * l) / Om)) tmp = 0 if n <= -6.2e-86: tmp = math.sqrt((n * (U * (2.0 * (t + (((l * -2.0) + (U_42_ * (l * (n / Om)))) / (Om / l))))))) elif n <= 9.2e-308: tmp = math.sqrt((t * (2.0 * ((((U * l) / Om) * ((n * t_1) / t)) + (n * U))))) else: tmp = math.sqrt(n) * math.sqrt((2.0 * (U * (t + (t_1 / (Om / l)))))) return tmp
function code(n, U, t, l, Om, U_42_) t_1 = Float64(Float64(l * -2.0) + Float64(U_42_ * Float64(Float64(n * l) / Om))) tmp = 0.0 if (n <= -6.2e-86) tmp = sqrt(Float64(n * Float64(U * Float64(2.0 * Float64(t + Float64(Float64(Float64(l * -2.0) + Float64(U_42_ * Float64(l * Float64(n / Om)))) / Float64(Om / l))))))); elseif (n <= 9.2e-308) tmp = sqrt(Float64(t * Float64(2.0 * Float64(Float64(Float64(Float64(U * l) / Om) * Float64(Float64(n * t_1) / t)) + Float64(n * U))))); else tmp = Float64(sqrt(n) * sqrt(Float64(2.0 * Float64(U * Float64(t + Float64(t_1 / Float64(Om / l))))))); end return tmp end
function tmp_2 = code(n, U, t, l, Om, U_42_) t_1 = (l * -2.0) + (U_42_ * ((n * l) / Om)); tmp = 0.0; if (n <= -6.2e-86) tmp = sqrt((n * (U * (2.0 * (t + (((l * -2.0) + (U_42_ * (l * (n / Om)))) / (Om / l))))))); elseif (n <= 9.2e-308) tmp = sqrt((t * (2.0 * ((((U * l) / Om) * ((n * t_1) / t)) + (n * U))))); else tmp = sqrt(n) * sqrt((2.0 * (U * (t + (t_1 / (Om / l)))))); end tmp_2 = tmp; end
code[n_, U_, t_, l_, Om_, U$42$_] := Block[{t$95$1 = N[(N[(l * -2.0), $MachinePrecision] + N[(U$42$ * N[(N[(n * l), $MachinePrecision] / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[n, -6.2e-86], N[Sqrt[N[(n * N[(U * N[(2.0 * N[(t + N[(N[(N[(l * -2.0), $MachinePrecision] + N[(U$42$ * N[(l * N[(n / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(Om / l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], If[LessEqual[n, 9.2e-308], N[Sqrt[N[(t * N[(2.0 * N[(N[(N[(N[(U * l), $MachinePrecision] / Om), $MachinePrecision] * N[(N[(n * t$95$1), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision] + N[(n * U), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], N[(N[Sqrt[n], $MachinePrecision] * N[Sqrt[N[(2.0 * N[(U * N[(t + N[(t$95$1 / N[(Om / l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \ell \cdot -2 + U* \cdot \frac{n \cdot \ell}{Om}\\
\mathbf{if}\;n \leq -6.2 \cdot 10^{-86}:\\
\;\;\;\;\sqrt{n \cdot \left(U \cdot \left(2 \cdot \left(t + \frac{\ell \cdot -2 + U* \cdot \left(\ell \cdot \frac{n}{Om}\right)}{\frac{Om}{\ell}}\right)\right)\right)}\\
\mathbf{elif}\;n \leq 9.2 \cdot 10^{-308}:\\
\;\;\;\;\sqrt{t \cdot \left(2 \cdot \left(\frac{U \cdot \ell}{Om} \cdot \frac{n \cdot t\_1}{t} + n \cdot U\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;\sqrt{n} \cdot \sqrt{2 \cdot \left(U \cdot \left(t + \frac{t\_1}{\frac{Om}{\ell}}\right)\right)}\\
\end{array}
\end{array}
if n < -6.19999999999999977e-86Initial program 60.0%
Simplified64.1%
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
*-lowering-*.f64N/A
Applied egg-rr69.3%
Taylor expanded in U* around inf
associate-/l*N/A
*-lowering-*.f64N/A
associate-/l*N/A
*-lowering-*.f64N/A
/-lowering-/.f6469.3%
Simplified69.3%
if -6.19999999999999977e-86 < n < 9.1999999999999996e-308Initial program 44.3%
Simplified52.6%
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
*-lowering-*.f64N/A
Applied egg-rr52.0%
Taylor expanded in U* around inf
associate-/l*N/A
*-lowering-*.f64N/A
associate-/l*N/A
*-lowering-*.f64N/A
/-lowering-/.f6452.1%
Simplified52.1%
Taylor expanded in t around inf
*-lowering-*.f64N/A
distribute-lft-outN/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
associate-*r*N/A
times-fracN/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
Simplified63.9%
if 9.1999999999999996e-308 < n Initial program 47.5%
Simplified55.7%
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
*-lowering-*.f64N/A
Applied egg-rr58.6%
Taylor expanded in U* around inf
associate-/l*N/A
*-lowering-*.f64N/A
associate-/l*N/A
*-lowering-*.f64N/A
/-lowering-/.f6457.8%
Simplified57.8%
pow1/2N/A
unpow-prod-downN/A
*-lowering-*.f64N/A
Applied egg-rr69.2%
Final simplification68.1%
(FPCore (n U t l Om U*)
:precision binary64
(if (<= n -8e-86)
(sqrt
(*
n
(* U (* 2.0 (+ t (/ (+ (* l -2.0) (* U* (* l (/ n Om)))) (/ Om l)))))))
(if (<= n 1.35e-41)
(sqrt
(*
t
(*
2.0
(+
(* (/ (* U l) Om) (/ (* n (+ (* l -2.0) (* U* (/ (* n l) Om)))) t))
(* n U)))))
(sqrt
(*
n
(*
U
(*
2.0
(+ t (/ (+ (/ (- U* U) (/ (/ Om l) n)) (* l -2.0)) (/ Om l))))))))))
double code(double n, double U, double t, double l, double Om, double U_42_) {
double tmp;
if (n <= -8e-86) {
tmp = sqrt((n * (U * (2.0 * (t + (((l * -2.0) + (U_42_ * (l * (n / Om)))) / (Om / l)))))));
} else if (n <= 1.35e-41) {
tmp = sqrt((t * (2.0 * ((((U * l) / Om) * ((n * ((l * -2.0) + (U_42_ * ((n * l) / Om)))) / t)) + (n * U)))));
} else {
tmp = sqrt((n * (U * (2.0 * (t + ((((U_42_ - U) / ((Om / l) / n)) + (l * -2.0)) / (Om / l)))))));
}
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 <= (-8d-86)) then
tmp = sqrt((n * (u * (2.0d0 * (t + (((l * (-2.0d0)) + (u_42 * (l * (n / om)))) / (om / l)))))))
else if (n <= 1.35d-41) then
tmp = sqrt((t * (2.0d0 * ((((u * l) / om) * ((n * ((l * (-2.0d0)) + (u_42 * ((n * l) / om)))) / t)) + (n * u)))))
else
tmp = sqrt((n * (u * (2.0d0 * (t + ((((u_42 - u) / ((om / l) / n)) + (l * (-2.0d0))) / (om / l)))))))
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 <= -8e-86) {
tmp = Math.sqrt((n * (U * (2.0 * (t + (((l * -2.0) + (U_42_ * (l * (n / Om)))) / (Om / l)))))));
} else if (n <= 1.35e-41) {
tmp = Math.sqrt((t * (2.0 * ((((U * l) / Om) * ((n * ((l * -2.0) + (U_42_ * ((n * l) / Om)))) / t)) + (n * U)))));
} else {
tmp = Math.sqrt((n * (U * (2.0 * (t + ((((U_42_ - U) / ((Om / l) / n)) + (l * -2.0)) / (Om / l)))))));
}
return tmp;
}
def code(n, U, t, l, Om, U_42_): tmp = 0 if n <= -8e-86: tmp = math.sqrt((n * (U * (2.0 * (t + (((l * -2.0) + (U_42_ * (l * (n / Om)))) / (Om / l))))))) elif n <= 1.35e-41: tmp = math.sqrt((t * (2.0 * ((((U * l) / Om) * ((n * ((l * -2.0) + (U_42_ * ((n * l) / Om)))) / t)) + (n * U))))) else: tmp = math.sqrt((n * (U * (2.0 * (t + ((((U_42_ - U) / ((Om / l) / n)) + (l * -2.0)) / (Om / l))))))) return tmp
function code(n, U, t, l, Om, U_42_) tmp = 0.0 if (n <= -8e-86) tmp = sqrt(Float64(n * Float64(U * Float64(2.0 * Float64(t + Float64(Float64(Float64(l * -2.0) + Float64(U_42_ * Float64(l * Float64(n / Om)))) / Float64(Om / l))))))); elseif (n <= 1.35e-41) tmp = sqrt(Float64(t * Float64(2.0 * Float64(Float64(Float64(Float64(U * l) / Om) * Float64(Float64(n * Float64(Float64(l * -2.0) + Float64(U_42_ * Float64(Float64(n * l) / Om)))) / t)) + Float64(n * U))))); else tmp = sqrt(Float64(n * Float64(U * Float64(2.0 * Float64(t + Float64(Float64(Float64(Float64(U_42_ - U) / Float64(Float64(Om / l) / n)) + Float64(l * -2.0)) / Float64(Om / l))))))); end return tmp end
function tmp_2 = code(n, U, t, l, Om, U_42_) tmp = 0.0; if (n <= -8e-86) tmp = sqrt((n * (U * (2.0 * (t + (((l * -2.0) + (U_42_ * (l * (n / Om)))) / (Om / l))))))); elseif (n <= 1.35e-41) tmp = sqrt((t * (2.0 * ((((U * l) / Om) * ((n * ((l * -2.0) + (U_42_ * ((n * l) / Om)))) / t)) + (n * U))))); else tmp = sqrt((n * (U * (2.0 * (t + ((((U_42_ - U) / ((Om / l) / n)) + (l * -2.0)) / (Om / l))))))); end tmp_2 = tmp; end
code[n_, U_, t_, l_, Om_, U$42$_] := If[LessEqual[n, -8e-86], N[Sqrt[N[(n * N[(U * N[(2.0 * N[(t + N[(N[(N[(l * -2.0), $MachinePrecision] + N[(U$42$ * N[(l * N[(n / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(Om / l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], If[LessEqual[n, 1.35e-41], N[Sqrt[N[(t * N[(2.0 * N[(N[(N[(N[(U * l), $MachinePrecision] / Om), $MachinePrecision] * N[(N[(n * N[(N[(l * -2.0), $MachinePrecision] + N[(U$42$ * N[(N[(n * l), $MachinePrecision] / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision] + N[(n * U), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], N[Sqrt[N[(n * N[(U * N[(2.0 * N[(t + N[(N[(N[(N[(U$42$ - U), $MachinePrecision] / N[(N[(Om / l), $MachinePrecision] / n), $MachinePrecision]), $MachinePrecision] + N[(l * -2.0), $MachinePrecision]), $MachinePrecision] / N[(Om / l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;n \leq -8 \cdot 10^{-86}:\\
\;\;\;\;\sqrt{n \cdot \left(U \cdot \left(2 \cdot \left(t + \frac{\ell \cdot -2 + U* \cdot \left(\ell \cdot \frac{n}{Om}\right)}{\frac{Om}{\ell}}\right)\right)\right)}\\
\mathbf{elif}\;n \leq 1.35 \cdot 10^{-41}:\\
\;\;\;\;\sqrt{t \cdot \left(2 \cdot \left(\frac{U \cdot \ell}{Om} \cdot \frac{n \cdot \left(\ell \cdot -2 + U* \cdot \frac{n \cdot \ell}{Om}\right)}{t} + n \cdot U\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;\sqrt{n \cdot \left(U \cdot \left(2 \cdot \left(t + \frac{\frac{U* - U}{\frac{\frac{Om}{\ell}}{n}} + \ell \cdot -2}{\frac{Om}{\ell}}\right)\right)\right)}\\
\end{array}
\end{array}
if n < -8.00000000000000068e-86Initial program 60.0%
Simplified64.1%
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
*-lowering-*.f64N/A
Applied egg-rr69.3%
Taylor expanded in U* around inf
associate-/l*N/A
*-lowering-*.f64N/A
associate-/l*N/A
*-lowering-*.f64N/A
/-lowering-/.f6469.3%
Simplified69.3%
if -8.00000000000000068e-86 < n < 1.35e-41Initial program 44.6%
Simplified52.5%
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
*-lowering-*.f64N/A
Applied egg-rr52.0%
Taylor expanded in U* around inf
associate-/l*N/A
*-lowering-*.f64N/A
associate-/l*N/A
*-lowering-*.f64N/A
/-lowering-/.f6452.0%
Simplified52.0%
Taylor expanded in t around inf
*-lowering-*.f64N/A
distribute-lft-outN/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
associate-*r*N/A
times-fracN/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
Simplified66.9%
if 1.35e-41 < n Initial program 49.3%
Simplified58.0%
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
*-lowering-*.f64N/A
Applied egg-rr63.4%
Final simplification66.6%
(FPCore (n U t l Om U*)
:precision binary64
(if (<= l 3.6e-72)
(pow (* 2.0 (* n (* U t))) 0.5)
(if (<= l 1.44e+47)
(sqrt (* (* 2.0 U) (* n (- t (* 2.0 (/ (* l l) Om))))))
(sqrt
(/ (* (* (* U -2.0) (+ 2.0 (/ n (/ Om (- U U*))))) (* l (* n l))) Om)))))
double code(double n, double U, double t, double l, double Om, double U_42_) {
double tmp;
if (l <= 3.6e-72) {
tmp = pow((2.0 * (n * (U * t))), 0.5);
} else if (l <= 1.44e+47) {
tmp = sqrt(((2.0 * U) * (n * (t - (2.0 * ((l * l) / Om))))));
} else {
tmp = sqrt(((((U * -2.0) * (2.0 + (n / (Om / (U - U_42_))))) * (l * (n * 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 <= 3.6d-72) then
tmp = (2.0d0 * (n * (u * t))) ** 0.5d0
else if (l <= 1.44d+47) then
tmp = sqrt(((2.0d0 * u) * (n * (t - (2.0d0 * ((l * l) / om))))))
else
tmp = sqrt(((((u * (-2.0d0)) * (2.0d0 + (n / (om / (u - u_42))))) * (l * (n * 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 <= 3.6e-72) {
tmp = Math.pow((2.0 * (n * (U * t))), 0.5);
} else if (l <= 1.44e+47) {
tmp = Math.sqrt(((2.0 * U) * (n * (t - (2.0 * ((l * l) / Om))))));
} else {
tmp = Math.sqrt(((((U * -2.0) * (2.0 + (n / (Om / (U - U_42_))))) * (l * (n * l))) / Om));
}
return tmp;
}
def code(n, U, t, l, Om, U_42_): tmp = 0 if l <= 3.6e-72: tmp = math.pow((2.0 * (n * (U * t))), 0.5) elif l <= 1.44e+47: tmp = math.sqrt(((2.0 * U) * (n * (t - (2.0 * ((l * l) / Om)))))) else: tmp = math.sqrt(((((U * -2.0) * (2.0 + (n / (Om / (U - U_42_))))) * (l * (n * l))) / Om)) return tmp
function code(n, U, t, l, Om, U_42_) tmp = 0.0 if (l <= 3.6e-72) tmp = Float64(2.0 * Float64(n * Float64(U * t))) ^ 0.5; elseif (l <= 1.44e+47) tmp = sqrt(Float64(Float64(2.0 * U) * Float64(n * Float64(t - Float64(2.0 * Float64(Float64(l * l) / Om)))))); else tmp = sqrt(Float64(Float64(Float64(Float64(U * -2.0) * Float64(2.0 + Float64(n / Float64(Om / Float64(U - U_42_))))) * Float64(l * Float64(n * l))) / Om)); end return tmp end
function tmp_2 = code(n, U, t, l, Om, U_42_) tmp = 0.0; if (l <= 3.6e-72) tmp = (2.0 * (n * (U * t))) ^ 0.5; elseif (l <= 1.44e+47) tmp = sqrt(((2.0 * U) * (n * (t - (2.0 * ((l * l) / Om)))))); else tmp = sqrt(((((U * -2.0) * (2.0 + (n / (Om / (U - U_42_))))) * (l * (n * l))) / Om)); end tmp_2 = tmp; end
code[n_, U_, t_, l_, Om_, U$42$_] := If[LessEqual[l, 3.6e-72], N[Power[N[(2.0 * N[(n * N[(U * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 0.5], $MachinePrecision], If[LessEqual[l, 1.44e+47], N[Sqrt[N[(N[(2.0 * U), $MachinePrecision] * N[(n * N[(t - N[(2.0 * N[(N[(l * l), $MachinePrecision] / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], N[Sqrt[N[(N[(N[(N[(U * -2.0), $MachinePrecision] * N[(2.0 + N[(n / N[(Om / N[(U - U$42$), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(l * N[(n * l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / Om), $MachinePrecision]], $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;\ell \leq 3.6 \cdot 10^{-72}:\\
\;\;\;\;{\left(2 \cdot \left(n \cdot \left(U \cdot t\right)\right)\right)}^{0.5}\\
\mathbf{elif}\;\ell \leq 1.44 \cdot 10^{+47}:\\
\;\;\;\;\sqrt{\left(2 \cdot U\right) \cdot \left(n \cdot \left(t - 2 \cdot \frac{\ell \cdot \ell}{Om}\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;\sqrt{\frac{\left(\left(U \cdot -2\right) \cdot \left(2 + \frac{n}{\frac{Om}{U - U*}}\right)\right) \cdot \left(\ell \cdot \left(n \cdot \ell\right)\right)}{Om}}\\
\end{array}
\end{array}
if l < 3.6e-72Initial program 51.6%
Taylor expanded in t around inf
Simplified45.1%
pow1/2N/A
pow-lowering-pow.f64N/A
associate-*l*N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6447.3%
Applied egg-rr47.3%
if 3.6e-72 < l < 1.4399999999999999e47Initial program 57.4%
Simplified60.4%
Taylor expanded in n around 0
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
metadata-evalN/A
cancel-sign-sub-invN/A
--lowering--.f64N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
unpow2N/A
*-lowering-*.f6455.4%
Simplified55.4%
if 1.4399999999999999e47 < l Initial program 39.8%
Simplified56.7%
Taylor expanded in l around -inf
associate-*r/N/A
/-lowering-/.f64N/A
Simplified38.6%
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
--lowering--.f64N/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6453.4%
Applied egg-rr53.4%
Final simplification49.2%
(FPCore (n U t l Om U*)
:precision binary64
(if (<= l 3.4e-72)
(pow (* 2.0 (* n (* U t))) 0.5)
(if (<= l 6.2e+46)
(sqrt (* (* 2.0 U) (* n (- t (* 2.0 (/ (* l l) Om))))))
(sqrt
(* n (* (* 2.0 (* U l)) (/ (+ (* l -2.0) (* l (* U* (/ n Om)))) Om)))))))
double code(double n, double U, double t, double l, double Om, double U_42_) {
double tmp;
if (l <= 3.4e-72) {
tmp = pow((2.0 * (n * (U * t))), 0.5);
} else if (l <= 6.2e+46) {
tmp = sqrt(((2.0 * U) * (n * (t - (2.0 * ((l * l) / Om))))));
} else {
tmp = sqrt((n * ((2.0 * (U * l)) * (((l * -2.0) + (l * (U_42_ * (n / 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 <= 3.4d-72) then
tmp = (2.0d0 * (n * (u * t))) ** 0.5d0
else if (l <= 6.2d+46) then
tmp = sqrt(((2.0d0 * u) * (n * (t - (2.0d0 * ((l * l) / om))))))
else
tmp = sqrt((n * ((2.0d0 * (u * l)) * (((l * (-2.0d0)) + (l * (u_42 * (n / 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 <= 3.4e-72) {
tmp = Math.pow((2.0 * (n * (U * t))), 0.5);
} else if (l <= 6.2e+46) {
tmp = Math.sqrt(((2.0 * U) * (n * (t - (2.0 * ((l * l) / Om))))));
} else {
tmp = Math.sqrt((n * ((2.0 * (U * l)) * (((l * -2.0) + (l * (U_42_ * (n / Om)))) / Om))));
}
return tmp;
}
def code(n, U, t, l, Om, U_42_): tmp = 0 if l <= 3.4e-72: tmp = math.pow((2.0 * (n * (U * t))), 0.5) elif l <= 6.2e+46: tmp = math.sqrt(((2.0 * U) * (n * (t - (2.0 * ((l * l) / Om)))))) else: tmp = math.sqrt((n * ((2.0 * (U * l)) * (((l * -2.0) + (l * (U_42_ * (n / Om)))) / Om)))) return tmp
function code(n, U, t, l, Om, U_42_) tmp = 0.0 if (l <= 3.4e-72) tmp = Float64(2.0 * Float64(n * Float64(U * t))) ^ 0.5; elseif (l <= 6.2e+46) tmp = sqrt(Float64(Float64(2.0 * U) * Float64(n * Float64(t - Float64(2.0 * Float64(Float64(l * l) / Om)))))); else tmp = sqrt(Float64(n * Float64(Float64(2.0 * Float64(U * l)) * Float64(Float64(Float64(l * -2.0) + Float64(l * Float64(U_42_ * Float64(n / Om)))) / Om)))); end return tmp end
function tmp_2 = code(n, U, t, l, Om, U_42_) tmp = 0.0; if (l <= 3.4e-72) tmp = (2.0 * (n * (U * t))) ^ 0.5; elseif (l <= 6.2e+46) tmp = sqrt(((2.0 * U) * (n * (t - (2.0 * ((l * l) / Om)))))); else tmp = sqrt((n * ((2.0 * (U * l)) * (((l * -2.0) + (l * (U_42_ * (n / Om)))) / Om)))); end tmp_2 = tmp; end
code[n_, U_, t_, l_, Om_, U$42$_] := If[LessEqual[l, 3.4e-72], N[Power[N[(2.0 * N[(n * N[(U * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 0.5], $MachinePrecision], If[LessEqual[l, 6.2e+46], N[Sqrt[N[(N[(2.0 * U), $MachinePrecision] * N[(n * N[(t - N[(2.0 * N[(N[(l * l), $MachinePrecision] / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], N[Sqrt[N[(n * N[(N[(2.0 * N[(U * l), $MachinePrecision]), $MachinePrecision] * N[(N[(N[(l * -2.0), $MachinePrecision] + N[(l * N[(U$42$ * N[(n / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;\ell \leq 3.4 \cdot 10^{-72}:\\
\;\;\;\;{\left(2 \cdot \left(n \cdot \left(U \cdot t\right)\right)\right)}^{0.5}\\
\mathbf{elif}\;\ell \leq 6.2 \cdot 10^{+46}:\\
\;\;\;\;\sqrt{\left(2 \cdot U\right) \cdot \left(n \cdot \left(t - 2 \cdot \frac{\ell \cdot \ell}{Om}\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;\sqrt{n \cdot \left(\left(2 \cdot \left(U \cdot \ell\right)\right) \cdot \frac{\ell \cdot -2 + \ell \cdot \left(U* \cdot \frac{n}{Om}\right)}{Om}\right)}\\
\end{array}
\end{array}
if l < 3.3999999999999998e-72Initial program 51.6%
Taylor expanded in t around inf
Simplified45.1%
pow1/2N/A
pow-lowering-pow.f64N/A
associate-*l*N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6447.3%
Applied egg-rr47.3%
if 3.3999999999999998e-72 < l < 6.1999999999999995e46Initial program 57.4%
Simplified60.4%
Taylor expanded in n around 0
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
metadata-evalN/A
cancel-sign-sub-invN/A
--lowering--.f64N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
unpow2N/A
*-lowering-*.f6455.4%
Simplified55.4%
if 6.1999999999999995e46 < l Initial program 39.8%
Simplified56.7%
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
*-lowering-*.f64N/A
Applied egg-rr60.6%
Taylor expanded in U* around inf
associate-/l*N/A
*-lowering-*.f64N/A
associate-/l*N/A
*-lowering-*.f64N/A
/-lowering-/.f6460.9%
Simplified60.9%
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
+-lowering-+.f64N/A
*-lowering-*.f64N/A
associate-/l*N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f6446.0%
Simplified46.0%
associate-*r*N/A
associate-/l*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
associate-/l*N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
/-lowering-/.f6454.8%
Applied egg-rr54.8%
Final simplification49.4%
(FPCore (n U t l Om U*)
:precision binary64
(if (<= l 1.05e+153)
(sqrt
(*
n
(*
U
(* 2.0 (+ t (/ (+ (/ (- U* U) (/ (/ Om l) n)) (* l -2.0)) (/ Om l)))))))
(sqrt
(/ (* (* (* U -2.0) (+ 2.0 (/ n (/ Om (- U U*))))) (* l (* n l))) Om))))
double code(double n, double U, double t, double l, double Om, double U_42_) {
double tmp;
if (l <= 1.05e+153) {
tmp = sqrt((n * (U * (2.0 * (t + ((((U_42_ - U) / ((Om / l) / n)) + (l * -2.0)) / (Om / l)))))));
} else {
tmp = sqrt(((((U * -2.0) * (2.0 + (n / (Om / (U - U_42_))))) * (l * (n * 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.05d+153) then
tmp = sqrt((n * (u * (2.0d0 * (t + ((((u_42 - u) / ((om / l) / n)) + (l * (-2.0d0))) / (om / l)))))))
else
tmp = sqrt(((((u * (-2.0d0)) * (2.0d0 + (n / (om / (u - u_42))))) * (l * (n * 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.05e+153) {
tmp = Math.sqrt((n * (U * (2.0 * (t + ((((U_42_ - U) / ((Om / l) / n)) + (l * -2.0)) / (Om / l)))))));
} else {
tmp = Math.sqrt(((((U * -2.0) * (2.0 + (n / (Om / (U - U_42_))))) * (l * (n * l))) / Om));
}
return tmp;
}
def code(n, U, t, l, Om, U_42_): tmp = 0 if l <= 1.05e+153: tmp = math.sqrt((n * (U * (2.0 * (t + ((((U_42_ - U) / ((Om / l) / n)) + (l * -2.0)) / (Om / l))))))) else: tmp = math.sqrt(((((U * -2.0) * (2.0 + (n / (Om / (U - U_42_))))) * (l * (n * l))) / Om)) return tmp
function code(n, U, t, l, Om, U_42_) tmp = 0.0 if (l <= 1.05e+153) tmp = sqrt(Float64(n * Float64(U * Float64(2.0 * Float64(t + Float64(Float64(Float64(Float64(U_42_ - U) / Float64(Float64(Om / l) / n)) + Float64(l * -2.0)) / Float64(Om / l))))))); else tmp = sqrt(Float64(Float64(Float64(Float64(U * -2.0) * Float64(2.0 + Float64(n / Float64(Om / Float64(U - U_42_))))) * Float64(l * Float64(n * l))) / Om)); end return tmp end
function tmp_2 = code(n, U, t, l, Om, U_42_) tmp = 0.0; if (l <= 1.05e+153) tmp = sqrt((n * (U * (2.0 * (t + ((((U_42_ - U) / ((Om / l) / n)) + (l * -2.0)) / (Om / l))))))); else tmp = sqrt(((((U * -2.0) * (2.0 + (n / (Om / (U - U_42_))))) * (l * (n * l))) / Om)); end tmp_2 = tmp; end
code[n_, U_, t_, l_, Om_, U$42$_] := If[LessEqual[l, 1.05e+153], N[Sqrt[N[(n * N[(U * N[(2.0 * N[(t + N[(N[(N[(N[(U$42$ - U), $MachinePrecision] / N[(N[(Om / l), $MachinePrecision] / n), $MachinePrecision]), $MachinePrecision] + N[(l * -2.0), $MachinePrecision]), $MachinePrecision] / N[(Om / l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], N[Sqrt[N[(N[(N[(N[(U * -2.0), $MachinePrecision] * N[(2.0 + N[(n / N[(Om / N[(U - U$42$), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(l * N[(n * l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / Om), $MachinePrecision]], $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;\ell \leq 1.05 \cdot 10^{+153}:\\
\;\;\;\;\sqrt{n \cdot \left(U \cdot \left(2 \cdot \left(t + \frac{\frac{U* - U}{\frac{\frac{Om}{\ell}}{n}} + \ell \cdot -2}{\frac{Om}{\ell}}\right)\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;\sqrt{\frac{\left(\left(U \cdot -2\right) \cdot \left(2 + \frac{n}{\frac{Om}{U - U*}}\right)\right) \cdot \left(\ell \cdot \left(n \cdot \ell\right)\right)}{Om}}\\
\end{array}
\end{array}
if l < 1.05000000000000008e153Initial program 53.2%
Simplified58.0%
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
*-lowering-*.f64N/A
Applied egg-rr60.9%
if 1.05000000000000008e153 < l Initial program 20.5%
Simplified51.7%
Taylor expanded in l around -inf
associate-*r/N/A
/-lowering-/.f64N/A
Simplified27.2%
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
--lowering--.f64N/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6454.7%
Applied egg-rr54.7%
Final simplification60.4%
(FPCore (n U t l Om U*)
:precision binary64
(if (<= U -48000000000000.0)
(sqrt
(*
2.0
(*
(+ t (* (/ l Om) (+ (* l -2.0) (* (/ (* n l) Om) (- U* U)))))
(* n U))))
(sqrt
(*
n
(* U (* 2.0 (+ t (/ (+ (* l -2.0) (* U* (* l (/ n Om)))) (/ Om l)))))))))
double code(double n, double U, double t, double l, double Om, double U_42_) {
double tmp;
if (U <= -48000000000000.0) {
tmp = sqrt((2.0 * ((t + ((l / Om) * ((l * -2.0) + (((n * l) / Om) * (U_42_ - U))))) * (n * U))));
} else {
tmp = sqrt((n * (U * (2.0 * (t + (((l * -2.0) + (U_42_ * (l * (n / Om)))) / (Om / l)))))));
}
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 <= (-48000000000000.0d0)) then
tmp = sqrt((2.0d0 * ((t + ((l / om) * ((l * (-2.0d0)) + (((n * l) / om) * (u_42 - u))))) * (n * u))))
else
tmp = sqrt((n * (u * (2.0d0 * (t + (((l * (-2.0d0)) + (u_42 * (l * (n / om)))) / (om / l)))))))
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 <= -48000000000000.0) {
tmp = Math.sqrt((2.0 * ((t + ((l / Om) * ((l * -2.0) + (((n * l) / Om) * (U_42_ - U))))) * (n * U))));
} else {
tmp = Math.sqrt((n * (U * (2.0 * (t + (((l * -2.0) + (U_42_ * (l * (n / Om)))) / (Om / l)))))));
}
return tmp;
}
def code(n, U, t, l, Om, U_42_): tmp = 0 if U <= -48000000000000.0: tmp = math.sqrt((2.0 * ((t + ((l / Om) * ((l * -2.0) + (((n * l) / Om) * (U_42_ - U))))) * (n * U)))) else: tmp = math.sqrt((n * (U * (2.0 * (t + (((l * -2.0) + (U_42_ * (l * (n / Om)))) / (Om / l))))))) return tmp
function code(n, U, t, l, Om, U_42_) tmp = 0.0 if (U <= -48000000000000.0) tmp = sqrt(Float64(2.0 * Float64(Float64(t + Float64(Float64(l / Om) * Float64(Float64(l * -2.0) + Float64(Float64(Float64(n * l) / Om) * Float64(U_42_ - U))))) * Float64(n * U)))); else tmp = sqrt(Float64(n * Float64(U * Float64(2.0 * Float64(t + Float64(Float64(Float64(l * -2.0) + Float64(U_42_ * Float64(l * Float64(n / Om)))) / Float64(Om / l))))))); end return tmp end
function tmp_2 = code(n, U, t, l, Om, U_42_) tmp = 0.0; if (U <= -48000000000000.0) tmp = sqrt((2.0 * ((t + ((l / Om) * ((l * -2.0) + (((n * l) / Om) * (U_42_ - U))))) * (n * U)))); else tmp = sqrt((n * (U * (2.0 * (t + (((l * -2.0) + (U_42_ * (l * (n / Om)))) / (Om / l))))))); end tmp_2 = tmp; end
code[n_, U_, t_, l_, Om_, U$42$_] := If[LessEqual[U, -48000000000000.0], N[Sqrt[N[(2.0 * N[(N[(t + N[(N[(l / Om), $MachinePrecision] * N[(N[(l * -2.0), $MachinePrecision] + N[(N[(N[(n * l), $MachinePrecision] / Om), $MachinePrecision] * N[(U$42$ - U), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(n * U), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], N[Sqrt[N[(n * N[(U * N[(2.0 * N[(t + N[(N[(N[(l * -2.0), $MachinePrecision] + N[(U$42$ * N[(l * N[(n / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(Om / l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;U \leq -48000000000000:\\
\;\;\;\;\sqrt{2 \cdot \left(\left(t + \frac{\ell}{Om} \cdot \left(\ell \cdot -2 + \frac{n \cdot \ell}{Om} \cdot \left(U* - U\right)\right)\right) \cdot \left(n \cdot U\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;\sqrt{n \cdot \left(U \cdot \left(2 \cdot \left(t + \frac{\ell \cdot -2 + U* \cdot \left(\ell \cdot \frac{n}{Om}\right)}{\frac{Om}{\ell}}\right)\right)\right)}\\
\end{array}
\end{array}
if U < -4.8e13Initial program 54.1%
Simplified62.9%
if -4.8e13 < U Initial program 49.8%
Simplified56.4%
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
*-lowering-*.f64N/A
Applied egg-rr62.0%
Taylor expanded in U* around inf
associate-/l*N/A
*-lowering-*.f64N/A
associate-/l*N/A
*-lowering-*.f64N/A
/-lowering-/.f6461.7%
Simplified61.7%
Final simplification61.9%
(FPCore (n U t l Om U*)
:precision binary64
(if (<= l 2.15e-72)
(pow (* 2.0 (* n (* U t))) 0.5)
(if (<= l 3.35e+47)
(sqrt (* (* 2.0 U) (* n (- t (* 2.0 (/ (* l l) Om))))))
(sqrt (* n (/ (* -2.0 (* (* U (* l l)) (- 2.0 (* U* (/ n Om))))) Om))))))
double code(double n, double U, double t, double l, double Om, double U_42_) {
double tmp;
if (l <= 2.15e-72) {
tmp = pow((2.0 * (n * (U * t))), 0.5);
} else if (l <= 3.35e+47) {
tmp = sqrt(((2.0 * U) * (n * (t - (2.0 * ((l * l) / Om))))));
} else {
tmp = sqrt((n * ((-2.0 * ((U * (l * l)) * (2.0 - (U_42_ * (n / 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.15d-72) then
tmp = (2.0d0 * (n * (u * t))) ** 0.5d0
else if (l <= 3.35d+47) then
tmp = sqrt(((2.0d0 * u) * (n * (t - (2.0d0 * ((l * l) / om))))))
else
tmp = sqrt((n * (((-2.0d0) * ((u * (l * l)) * (2.0d0 - (u_42 * (n / 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.15e-72) {
tmp = Math.pow((2.0 * (n * (U * t))), 0.5);
} else if (l <= 3.35e+47) {
tmp = Math.sqrt(((2.0 * U) * (n * (t - (2.0 * ((l * l) / Om))))));
} else {
tmp = Math.sqrt((n * ((-2.0 * ((U * (l * l)) * (2.0 - (U_42_ * (n / Om))))) / Om)));
}
return tmp;
}
def code(n, U, t, l, Om, U_42_): tmp = 0 if l <= 2.15e-72: tmp = math.pow((2.0 * (n * (U * t))), 0.5) elif l <= 3.35e+47: tmp = math.sqrt(((2.0 * U) * (n * (t - (2.0 * ((l * l) / Om)))))) else: tmp = math.sqrt((n * ((-2.0 * ((U * (l * l)) * (2.0 - (U_42_ * (n / Om))))) / Om))) return tmp
function code(n, U, t, l, Om, U_42_) tmp = 0.0 if (l <= 2.15e-72) tmp = Float64(2.0 * Float64(n * Float64(U * t))) ^ 0.5; elseif (l <= 3.35e+47) tmp = sqrt(Float64(Float64(2.0 * U) * Float64(n * Float64(t - Float64(2.0 * Float64(Float64(l * l) / Om)))))); else tmp = sqrt(Float64(n * Float64(Float64(-2.0 * Float64(Float64(U * Float64(l * l)) * Float64(2.0 - Float64(U_42_ * Float64(n / Om))))) / Om))); end return tmp end
function tmp_2 = code(n, U, t, l, Om, U_42_) tmp = 0.0; if (l <= 2.15e-72) tmp = (2.0 * (n * (U * t))) ^ 0.5; elseif (l <= 3.35e+47) tmp = sqrt(((2.0 * U) * (n * (t - (2.0 * ((l * l) / Om)))))); else tmp = sqrt((n * ((-2.0 * ((U * (l * l)) * (2.0 - (U_42_ * (n / Om))))) / Om))); end tmp_2 = tmp; end
code[n_, U_, t_, l_, Om_, U$42$_] := If[LessEqual[l, 2.15e-72], N[Power[N[(2.0 * N[(n * N[(U * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 0.5], $MachinePrecision], If[LessEqual[l, 3.35e+47], N[Sqrt[N[(N[(2.0 * U), $MachinePrecision] * N[(n * N[(t - N[(2.0 * N[(N[(l * l), $MachinePrecision] / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], N[Sqrt[N[(n * N[(N[(-2.0 * N[(N[(U * N[(l * l), $MachinePrecision]), $MachinePrecision] * N[(2.0 - N[(U$42$ * N[(n / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / Om), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;\ell \leq 2.15 \cdot 10^{-72}:\\
\;\;\;\;{\left(2 \cdot \left(n \cdot \left(U \cdot t\right)\right)\right)}^{0.5}\\
\mathbf{elif}\;\ell \leq 3.35 \cdot 10^{+47}:\\
\;\;\;\;\sqrt{\left(2 \cdot U\right) \cdot \left(n \cdot \left(t - 2 \cdot \frac{\ell \cdot \ell}{Om}\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;\sqrt{n \cdot \frac{-2 \cdot \left(\left(U \cdot \left(\ell \cdot \ell\right)\right) \cdot \left(2 - U* \cdot \frac{n}{Om}\right)\right)}{Om}}\\
\end{array}
\end{array}
if l < 2.1499999999999999e-72Initial program 51.6%
Taylor expanded in t around inf
Simplified45.1%
pow1/2N/A
pow-lowering-pow.f64N/A
associate-*l*N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6447.3%
Applied egg-rr47.3%
if 2.1499999999999999e-72 < l < 3.34999999999999986e47Initial program 57.4%
Simplified60.4%
Taylor expanded in n around 0
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
metadata-evalN/A
cancel-sign-sub-invN/A
--lowering--.f64N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
unpow2N/A
*-lowering-*.f6455.4%
Simplified55.4%
if 3.34999999999999986e47 < l Initial program 39.8%
Simplified56.7%
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
*-lowering-*.f64N/A
Applied egg-rr60.6%
Taylor expanded in U* around inf
associate-/l*N/A
*-lowering-*.f64N/A
associate-/l*N/A
*-lowering-*.f64N/A
/-lowering-/.f6460.9%
Simplified60.9%
Taylor expanded in l around -inf
associate-*r/N/A
mul-1-negN/A
sub-negN/A
/-lowering-/.f64N/A
Simplified43.5%
Final simplification47.7%
(FPCore (n U t l Om U*)
:precision binary64
(if (<= l 2e-72)
(pow (* 2.0 (* n (* U t))) 0.5)
(if (<= l 1.6e+47)
(sqrt (* (* 2.0 U) (* n (- t (* 2.0 (/ (* l l) Om))))))
(sqrt (* n (* U (/ (* -2.0 (* (* l l) (- 2.0 (* U* (/ n Om))))) Om)))))))
double code(double n, double U, double t, double l, double Om, double U_42_) {
double tmp;
if (l <= 2e-72) {
tmp = pow((2.0 * (n * (U * t))), 0.5);
} else if (l <= 1.6e+47) {
tmp = sqrt(((2.0 * U) * (n * (t - (2.0 * ((l * l) / Om))))));
} else {
tmp = sqrt((n * (U * ((-2.0 * ((l * l) * (2.0 - (U_42_ * (n / 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 <= 2d-72) then
tmp = (2.0d0 * (n * (u * t))) ** 0.5d0
else if (l <= 1.6d+47) then
tmp = sqrt(((2.0d0 * u) * (n * (t - (2.0d0 * ((l * l) / om))))))
else
tmp = sqrt((n * (u * (((-2.0d0) * ((l * l) * (2.0d0 - (u_42 * (n / 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 <= 2e-72) {
tmp = Math.pow((2.0 * (n * (U * t))), 0.5);
} else if (l <= 1.6e+47) {
tmp = Math.sqrt(((2.0 * U) * (n * (t - (2.0 * ((l * l) / Om))))));
} else {
tmp = Math.sqrt((n * (U * ((-2.0 * ((l * l) * (2.0 - (U_42_ * (n / Om))))) / Om))));
}
return tmp;
}
def code(n, U, t, l, Om, U_42_): tmp = 0 if l <= 2e-72: tmp = math.pow((2.0 * (n * (U * t))), 0.5) elif l <= 1.6e+47: tmp = math.sqrt(((2.0 * U) * (n * (t - (2.0 * ((l * l) / Om)))))) else: tmp = math.sqrt((n * (U * ((-2.0 * ((l * l) * (2.0 - (U_42_ * (n / Om))))) / Om)))) return tmp
function code(n, U, t, l, Om, U_42_) tmp = 0.0 if (l <= 2e-72) tmp = Float64(2.0 * Float64(n * Float64(U * t))) ^ 0.5; elseif (l <= 1.6e+47) tmp = sqrt(Float64(Float64(2.0 * U) * Float64(n * Float64(t - Float64(2.0 * Float64(Float64(l * l) / Om)))))); else tmp = sqrt(Float64(n * Float64(U * Float64(Float64(-2.0 * Float64(Float64(l * l) * Float64(2.0 - Float64(U_42_ * Float64(n / Om))))) / Om)))); end return tmp end
function tmp_2 = code(n, U, t, l, Om, U_42_) tmp = 0.0; if (l <= 2e-72) tmp = (2.0 * (n * (U * t))) ^ 0.5; elseif (l <= 1.6e+47) tmp = sqrt(((2.0 * U) * (n * (t - (2.0 * ((l * l) / Om)))))); else tmp = sqrt((n * (U * ((-2.0 * ((l * l) * (2.0 - (U_42_ * (n / Om))))) / Om)))); end tmp_2 = tmp; end
code[n_, U_, t_, l_, Om_, U$42$_] := If[LessEqual[l, 2e-72], N[Power[N[(2.0 * N[(n * N[(U * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 0.5], $MachinePrecision], If[LessEqual[l, 1.6e+47], N[Sqrt[N[(N[(2.0 * U), $MachinePrecision] * N[(n * N[(t - N[(2.0 * N[(N[(l * l), $MachinePrecision] / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], N[Sqrt[N[(n * N[(U * N[(N[(-2.0 * N[(N[(l * l), $MachinePrecision] * N[(2.0 - N[(U$42$ * N[(n / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;\ell \leq 2 \cdot 10^{-72}:\\
\;\;\;\;{\left(2 \cdot \left(n \cdot \left(U \cdot t\right)\right)\right)}^{0.5}\\
\mathbf{elif}\;\ell \leq 1.6 \cdot 10^{+47}:\\
\;\;\;\;\sqrt{\left(2 \cdot U\right) \cdot \left(n \cdot \left(t - 2 \cdot \frac{\ell \cdot \ell}{Om}\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;\sqrt{n \cdot \left(U \cdot \frac{-2 \cdot \left(\left(\ell \cdot \ell\right) \cdot \left(2 - U* \cdot \frac{n}{Om}\right)\right)}{Om}\right)}\\
\end{array}
\end{array}
if l < 1.9999999999999999e-72Initial program 51.6%
Taylor expanded in t around inf
Simplified45.1%
pow1/2N/A
pow-lowering-pow.f64N/A
associate-*l*N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6447.3%
Applied egg-rr47.3%
if 1.9999999999999999e-72 < l < 1.6e47Initial program 57.4%
Simplified60.4%
Taylor expanded in n around 0
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
metadata-evalN/A
cancel-sign-sub-invN/A
--lowering--.f64N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
unpow2N/A
*-lowering-*.f6455.4%
Simplified55.4%
if 1.6e47 < l Initial program 39.8%
Simplified56.7%
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
*-lowering-*.f64N/A
Applied egg-rr60.6%
Taylor expanded in U* around inf
associate-/l*N/A
*-lowering-*.f64N/A
associate-/l*N/A
*-lowering-*.f64N/A
/-lowering-/.f6460.9%
Simplified60.9%
Taylor expanded in l around -inf
associate-*r/N/A
mul-1-negN/A
sub-negN/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
associate-/l*N/A
*-lowering-*.f64N/A
/-lowering-/.f6441.0%
Simplified41.0%
Final simplification47.3%
(FPCore (n U t l Om U*)
:precision binary64
(if (<= U -1.7e+52)
(sqrt
(*
(+ t (/ (+ (* l -2.0) (* U* (/ (* n l) Om))) (/ Om l)))
(* 2.0 (* n U))))
(sqrt
(*
n
(* U (* 2.0 (+ t (/ (+ (* l -2.0) (* U* (* l (/ n Om)))) (/ Om l)))))))))
double code(double n, double U, double t, double l, double Om, double U_42_) {
double tmp;
if (U <= -1.7e+52) {
tmp = sqrt(((t + (((l * -2.0) + (U_42_ * ((n * l) / Om))) / (Om / l))) * (2.0 * (n * U))));
} else {
tmp = sqrt((n * (U * (2.0 * (t + (((l * -2.0) + (U_42_ * (l * (n / Om)))) / (Om / l)))))));
}
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.7d+52)) then
tmp = sqrt(((t + (((l * (-2.0d0)) + (u_42 * ((n * l) / om))) / (om / l))) * (2.0d0 * (n * u))))
else
tmp = sqrt((n * (u * (2.0d0 * (t + (((l * (-2.0d0)) + (u_42 * (l * (n / om)))) / (om / l)))))))
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.7e+52) {
tmp = Math.sqrt(((t + (((l * -2.0) + (U_42_ * ((n * l) / Om))) / (Om / l))) * (2.0 * (n * U))));
} else {
tmp = Math.sqrt((n * (U * (2.0 * (t + (((l * -2.0) + (U_42_ * (l * (n / Om)))) / (Om / l)))))));
}
return tmp;
}
def code(n, U, t, l, Om, U_42_): tmp = 0 if U <= -1.7e+52: tmp = math.sqrt(((t + (((l * -2.0) + (U_42_ * ((n * l) / Om))) / (Om / l))) * (2.0 * (n * U)))) else: tmp = math.sqrt((n * (U * (2.0 * (t + (((l * -2.0) + (U_42_ * (l * (n / Om)))) / (Om / l))))))) return tmp
function code(n, U, t, l, Om, U_42_) tmp = 0.0 if (U <= -1.7e+52) tmp = sqrt(Float64(Float64(t + Float64(Float64(Float64(l * -2.0) + Float64(U_42_ * Float64(Float64(n * l) / Om))) / Float64(Om / l))) * Float64(2.0 * Float64(n * U)))); else tmp = sqrt(Float64(n * Float64(U * Float64(2.0 * Float64(t + Float64(Float64(Float64(l * -2.0) + Float64(U_42_ * Float64(l * Float64(n / Om)))) / Float64(Om / l))))))); end return tmp end
function tmp_2 = code(n, U, t, l, Om, U_42_) tmp = 0.0; if (U <= -1.7e+52) tmp = sqrt(((t + (((l * -2.0) + (U_42_ * ((n * l) / Om))) / (Om / l))) * (2.0 * (n * U)))); else tmp = sqrt((n * (U * (2.0 * (t + (((l * -2.0) + (U_42_ * (l * (n / Om)))) / (Om / l))))))); end tmp_2 = tmp; end
code[n_, U_, t_, l_, Om_, U$42$_] := If[LessEqual[U, -1.7e+52], N[Sqrt[N[(N[(t + N[(N[(N[(l * -2.0), $MachinePrecision] + N[(U$42$ * N[(N[(n * l), $MachinePrecision] / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(Om / l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(2.0 * N[(n * U), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], N[Sqrt[N[(n * N[(U * N[(2.0 * N[(t + N[(N[(N[(l * -2.0), $MachinePrecision] + N[(U$42$ * N[(l * N[(n / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(Om / l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;U \leq -1.7 \cdot 10^{+52}:\\
\;\;\;\;\sqrt{\left(t + \frac{\ell \cdot -2 + U* \cdot \frac{n \cdot \ell}{Om}}{\frac{Om}{\ell}}\right) \cdot \left(2 \cdot \left(n \cdot U\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;\sqrt{n \cdot \left(U \cdot \left(2 \cdot \left(t + \frac{\ell \cdot -2 + U* \cdot \left(\ell \cdot \frac{n}{Om}\right)}{\frac{Om}{\ell}}\right)\right)\right)}\\
\end{array}
\end{array}
if U < -1.7e52Initial program 51.9%
Simplified59.6%
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
*-lowering-*.f64N/A
Applied egg-rr46.7%
Taylor expanded in U* around inf
associate-/l*N/A
*-lowering-*.f64N/A
associate-/l*N/A
*-lowering-*.f64N/A
/-lowering-/.f6446.7%
Simplified46.7%
sqrt-lowering-sqrt.f64N/A
associate-*l*N/A
*-commutativeN/A
associate-*l*N/A
*-commutativeN/A
associate-*l*N/A
*-lowering-*.f64N/A
Applied egg-rr59.7%
if -1.7e52 < U Initial program 50.3%
Simplified57.2%
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
*-lowering-*.f64N/A
Applied egg-rr62.6%
Taylor expanded in U* around inf
associate-/l*N/A
*-lowering-*.f64N/A
associate-/l*N/A
*-lowering-*.f64N/A
/-lowering-/.f6462.2%
Simplified62.2%
Final simplification61.9%
(FPCore (n U t l Om U*)
:precision binary64
(if (<= l 6.6e+154)
(sqrt
(*
n
(* U (* 2.0 (+ t (/ (+ (* l -2.0) (* U* (* l (/ n Om)))) (/ Om l)))))))
(sqrt
(/ (* (* (* U -2.0) (+ 2.0 (/ n (/ Om (- U U*))))) (* l (* n l))) Om))))
double code(double n, double U, double t, double l, double Om, double U_42_) {
double tmp;
if (l <= 6.6e+154) {
tmp = sqrt((n * (U * (2.0 * (t + (((l * -2.0) + (U_42_ * (l * (n / Om)))) / (Om / l)))))));
} else {
tmp = sqrt(((((U * -2.0) * (2.0 + (n / (Om / (U - U_42_))))) * (l * (n * 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 <= 6.6d+154) then
tmp = sqrt((n * (u * (2.0d0 * (t + (((l * (-2.0d0)) + (u_42 * (l * (n / om)))) / (om / l)))))))
else
tmp = sqrt(((((u * (-2.0d0)) * (2.0d0 + (n / (om / (u - u_42))))) * (l * (n * 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 <= 6.6e+154) {
tmp = Math.sqrt((n * (U * (2.0 * (t + (((l * -2.0) + (U_42_ * (l * (n / Om)))) / (Om / l)))))));
} else {
tmp = Math.sqrt(((((U * -2.0) * (2.0 + (n / (Om / (U - U_42_))))) * (l * (n * l))) / Om));
}
return tmp;
}
def code(n, U, t, l, Om, U_42_): tmp = 0 if l <= 6.6e+154: tmp = math.sqrt((n * (U * (2.0 * (t + (((l * -2.0) + (U_42_ * (l * (n / Om)))) / (Om / l))))))) else: tmp = math.sqrt(((((U * -2.0) * (2.0 + (n / (Om / (U - U_42_))))) * (l * (n * l))) / Om)) return tmp
function code(n, U, t, l, Om, U_42_) tmp = 0.0 if (l <= 6.6e+154) tmp = sqrt(Float64(n * Float64(U * Float64(2.0 * Float64(t + Float64(Float64(Float64(l * -2.0) + Float64(U_42_ * Float64(l * Float64(n / Om)))) / Float64(Om / l))))))); else tmp = sqrt(Float64(Float64(Float64(Float64(U * -2.0) * Float64(2.0 + Float64(n / Float64(Om / Float64(U - U_42_))))) * Float64(l * Float64(n * l))) / Om)); end return tmp end
function tmp_2 = code(n, U, t, l, Om, U_42_) tmp = 0.0; if (l <= 6.6e+154) tmp = sqrt((n * (U * (2.0 * (t + (((l * -2.0) + (U_42_ * (l * (n / Om)))) / (Om / l))))))); else tmp = sqrt(((((U * -2.0) * (2.0 + (n / (Om / (U - U_42_))))) * (l * (n * l))) / Om)); end tmp_2 = tmp; end
code[n_, U_, t_, l_, Om_, U$42$_] := If[LessEqual[l, 6.6e+154], N[Sqrt[N[(n * N[(U * N[(2.0 * N[(t + N[(N[(N[(l * -2.0), $MachinePrecision] + N[(U$42$ * N[(l * N[(n / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(Om / l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], N[Sqrt[N[(N[(N[(N[(U * -2.0), $MachinePrecision] * N[(2.0 + N[(n / N[(Om / N[(U - U$42$), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(l * N[(n * l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / Om), $MachinePrecision]], $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;\ell \leq 6.6 \cdot 10^{+154}:\\
\;\;\;\;\sqrt{n \cdot \left(U \cdot \left(2 \cdot \left(t + \frac{\ell \cdot -2 + U* \cdot \left(\ell \cdot \frac{n}{Om}\right)}{\frac{Om}{\ell}}\right)\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;\sqrt{\frac{\left(\left(U \cdot -2\right) \cdot \left(2 + \frac{n}{\frac{Om}{U - U*}}\right)\right) \cdot \left(\ell \cdot \left(n \cdot \ell\right)\right)}{Om}}\\
\end{array}
\end{array}
if l < 6.6e154Initial program 53.2%
Simplified58.0%
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
*-lowering-*.f64N/A
Applied egg-rr60.9%
Taylor expanded in U* around inf
associate-/l*N/A
*-lowering-*.f64N/A
associate-/l*N/A
*-lowering-*.f64N/A
/-lowering-/.f6460.5%
Simplified60.5%
if 6.6e154 < l Initial program 20.5%
Simplified51.7%
Taylor expanded in l around -inf
associate-*r/N/A
/-lowering-/.f64N/A
Simplified27.2%
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
--lowering--.f64N/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6454.7%
Applied egg-rr54.7%
Final simplification60.0%
(FPCore (n U t l Om U*)
:precision binary64
(if (<= l 8.4e+80)
(sqrt
(*
2.0
(* (* n U) (+ t (* (/ l Om) (+ (* l -2.0) (* U* (/ (* n l) Om))))))))
(sqrt
(/ (* (* (* U -2.0) (+ 2.0 (/ n (/ Om (- U U*))))) (* l (* n l))) Om))))
double code(double n, double U, double t, double l, double Om, double U_42_) {
double tmp;
if (l <= 8.4e+80) {
tmp = sqrt((2.0 * ((n * U) * (t + ((l / Om) * ((l * -2.0) + (U_42_ * ((n * l) / Om))))))));
} else {
tmp = sqrt(((((U * -2.0) * (2.0 + (n / (Om / (U - U_42_))))) * (l * (n * 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 <= 8.4d+80) then
tmp = sqrt((2.0d0 * ((n * u) * (t + ((l / om) * ((l * (-2.0d0)) + (u_42 * ((n * l) / om))))))))
else
tmp = sqrt(((((u * (-2.0d0)) * (2.0d0 + (n / (om / (u - u_42))))) * (l * (n * 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 <= 8.4e+80) {
tmp = Math.sqrt((2.0 * ((n * U) * (t + ((l / Om) * ((l * -2.0) + (U_42_ * ((n * l) / Om))))))));
} else {
tmp = Math.sqrt(((((U * -2.0) * (2.0 + (n / (Om / (U - U_42_))))) * (l * (n * l))) / Om));
}
return tmp;
}
def code(n, U, t, l, Om, U_42_): tmp = 0 if l <= 8.4e+80: tmp = math.sqrt((2.0 * ((n * U) * (t + ((l / Om) * ((l * -2.0) + (U_42_ * ((n * l) / Om)))))))) else: tmp = math.sqrt(((((U * -2.0) * (2.0 + (n / (Om / (U - U_42_))))) * (l * (n * l))) / Om)) return tmp
function code(n, U, t, l, Om, U_42_) tmp = 0.0 if (l <= 8.4e+80) tmp = sqrt(Float64(2.0 * Float64(Float64(n * U) * Float64(t + Float64(Float64(l / Om) * Float64(Float64(l * -2.0) + Float64(U_42_ * Float64(Float64(n * l) / Om)))))))); else tmp = sqrt(Float64(Float64(Float64(Float64(U * -2.0) * Float64(2.0 + Float64(n / Float64(Om / Float64(U - U_42_))))) * Float64(l * Float64(n * l))) / Om)); end return tmp end
function tmp_2 = code(n, U, t, l, Om, U_42_) tmp = 0.0; if (l <= 8.4e+80) tmp = sqrt((2.0 * ((n * U) * (t + ((l / Om) * ((l * -2.0) + (U_42_ * ((n * l) / Om)))))))); else tmp = sqrt(((((U * -2.0) * (2.0 + (n / (Om / (U - U_42_))))) * (l * (n * l))) / Om)); end tmp_2 = tmp; end
code[n_, U_, t_, l_, Om_, U$42$_] := If[LessEqual[l, 8.4e+80], N[Sqrt[N[(2.0 * N[(N[(n * U), $MachinePrecision] * 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], N[Sqrt[N[(N[(N[(N[(U * -2.0), $MachinePrecision] * N[(2.0 + N[(n / N[(Om / N[(U - U$42$), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(l * N[(n * l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / Om), $MachinePrecision]], $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;\ell \leq 8.4 \cdot 10^{+80}:\\
\;\;\;\;\sqrt{2 \cdot \left(\left(n \cdot U\right) \cdot \left(t + \frac{\ell}{Om} \cdot \left(\ell \cdot -2 + U* \cdot \frac{n \cdot \ell}{Om}\right)\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;\sqrt{\frac{\left(\left(U \cdot -2\right) \cdot \left(2 + \frac{n}{\frac{Om}{U - U*}}\right)\right) \cdot \left(\ell \cdot \left(n \cdot \ell\right)\right)}{Om}}\\
\end{array}
\end{array}
if l < 8.40000000000000005e80Initial program 52.9%
Simplified57.5%
Taylor expanded in U* around inf
associate-/l*N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f6457.5%
Simplified57.5%
if 8.40000000000000005e80 < l Initial program 34.6%
Simplified57.4%
Taylor expanded in l around -inf
associate-*r/N/A
/-lowering-/.f64N/A
Simplified36.2%
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
--lowering--.f64N/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6453.7%
Applied egg-rr53.7%
Final simplification57.0%
(FPCore (n U t l Om U*) :precision binary64 (if (<= l 4.2e-72) (pow (* 2.0 (* n (* U t))) 0.5) (sqrt (* (* 2.0 U) (* 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 (l <= 4.2e-72) {
tmp = pow((2.0 * (n * (U * t))), 0.5);
} else {
tmp = sqrt(((2.0 * U) * (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 (l <= 4.2d-72) then
tmp = (2.0d0 * (n * (u * t))) ** 0.5d0
else
tmp = sqrt(((2.0d0 * u) * (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 (l <= 4.2e-72) {
tmp = Math.pow((2.0 * (n * (U * t))), 0.5);
} else {
tmp = Math.sqrt(((2.0 * U) * (n * (t - (2.0 * ((l * l) / Om))))));
}
return tmp;
}
def code(n, U, t, l, Om, U_42_): tmp = 0 if l <= 4.2e-72: tmp = math.pow((2.0 * (n * (U * t))), 0.5) else: tmp = math.sqrt(((2.0 * U) * (n * (t - (2.0 * ((l * l) / Om)))))) return tmp
function code(n, U, t, l, Om, U_42_) tmp = 0.0 if (l <= 4.2e-72) tmp = Float64(2.0 * Float64(n * Float64(U * t))) ^ 0.5; else tmp = sqrt(Float64(Float64(2.0 * U) * 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 (l <= 4.2e-72) tmp = (2.0 * (n * (U * t))) ^ 0.5; else tmp = sqrt(((2.0 * U) * (n * (t - (2.0 * ((l * l) / Om)))))); end tmp_2 = tmp; end
code[n_, U_, t_, l_, Om_, U$42$_] := If[LessEqual[l, 4.2e-72], N[Power[N[(2.0 * N[(n * N[(U * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 0.5], $MachinePrecision], N[Sqrt[N[(N[(2.0 * U), $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}\;\ell \leq 4.2 \cdot 10^{-72}:\\
\;\;\;\;{\left(2 \cdot \left(n \cdot \left(U \cdot t\right)\right)\right)}^{0.5}\\
\mathbf{else}:\\
\;\;\;\;\sqrt{\left(2 \cdot U\right) \cdot \left(n \cdot \left(t - 2 \cdot \frac{\ell \cdot \ell}{Om}\right)\right)}\\
\end{array}
\end{array}
if l < 4.2e-72Initial program 51.6%
Taylor expanded in t around inf
Simplified45.1%
pow1/2N/A
pow-lowering-pow.f64N/A
associate-*l*N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6447.3%
Applied egg-rr47.3%
if 4.2e-72 < l Initial program 47.6%
Simplified58.4%
Taylor expanded in n around 0
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
metadata-evalN/A
cancel-sign-sub-invN/A
--lowering--.f64N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
unpow2N/A
*-lowering-*.f6441.3%
Simplified41.3%
Final simplification45.7%
(FPCore (n U t l Om U*) :precision binary64 (if (<= l 3e+51) (pow (* 2.0 (* n (* U t))) 0.5) (sqrt (* n (* U (/ (* (* l l) -4.0) Om))))))
double code(double n, double U, double t, double l, double Om, double U_42_) {
double tmp;
if (l <= 3e+51) {
tmp = pow((2.0 * (n * (U * t))), 0.5);
} else {
tmp = sqrt((n * (U * (((l * l) * -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 <= 3d+51) then
tmp = (2.0d0 * (n * (u * t))) ** 0.5d0
else
tmp = sqrt((n * (u * (((l * l) * (-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 <= 3e+51) {
tmp = Math.pow((2.0 * (n * (U * t))), 0.5);
} else {
tmp = Math.sqrt((n * (U * (((l * l) * -4.0) / Om))));
}
return tmp;
}
def code(n, U, t, l, Om, U_42_): tmp = 0 if l <= 3e+51: tmp = math.pow((2.0 * (n * (U * t))), 0.5) else: tmp = math.sqrt((n * (U * (((l * l) * -4.0) / Om)))) return tmp
function code(n, U, t, l, Om, U_42_) tmp = 0.0 if (l <= 3e+51) tmp = Float64(2.0 * Float64(n * Float64(U * t))) ^ 0.5; else tmp = sqrt(Float64(n * Float64(U * Float64(Float64(Float64(l * l) * -4.0) / Om)))); end return tmp end
function tmp_2 = code(n, U, t, l, Om, U_42_) tmp = 0.0; if (l <= 3e+51) tmp = (2.0 * (n * (U * t))) ^ 0.5; else tmp = sqrt((n * (U * (((l * l) * -4.0) / Om)))); end tmp_2 = tmp; end
code[n_, U_, t_, l_, Om_, U$42$_] := If[LessEqual[l, 3e+51], N[Power[N[(2.0 * N[(n * N[(U * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 0.5], $MachinePrecision], N[Sqrt[N[(n * N[(U * N[(N[(N[(l * l), $MachinePrecision] * -4.0), $MachinePrecision] / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;\ell \leq 3 \cdot 10^{+51}:\\
\;\;\;\;{\left(2 \cdot \left(n \cdot \left(U \cdot t\right)\right)\right)}^{0.5}\\
\mathbf{else}:\\
\;\;\;\;\sqrt{n \cdot \left(U \cdot \frac{\left(\ell \cdot \ell\right) \cdot -4}{Om}\right)}\\
\end{array}
\end{array}
if l < 3e51Initial program 52.7%
Taylor expanded in t around inf
Simplified45.3%
pow1/2N/A
pow-lowering-pow.f64N/A
associate-*l*N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6447.2%
Applied egg-rr47.2%
if 3e51 < l Initial program 38.2%
Simplified55.6%
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
*-lowering-*.f64N/A
Applied egg-rr59.5%
Taylor expanded in l around -inf
associate-*r/N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
mul-1-negN/A
sub-negN/A
--lowering--.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
--lowering--.f6439.4%
Simplified39.4%
Taylor expanded in n around 0
associate-*r/N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6425.7%
Simplified25.7%
Final simplification44.0%
(FPCore (n U t l Om U*) :precision binary64 (if (<= l 8.5e-81) (pow (* 2.0 (* n (* U t))) 0.5) (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 (l <= 8.5e-81) {
tmp = pow((2.0 * (n * (U * t))), 0.5);
} 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 (l <= 8.5d-81) then
tmp = (2.0d0 * (n * (u * t))) ** 0.5d0
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 (l <= 8.5e-81) {
tmp = Math.pow((2.0 * (n * (U * t))), 0.5);
} 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 l <= 8.5e-81: tmp = math.pow((2.0 * (n * (U * t))), 0.5) 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 (l <= 8.5e-81) tmp = Float64(2.0 * Float64(n * Float64(U * t))) ^ 0.5; else tmp = Float64(Float64(2.0 * 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 (l <= 8.5e-81) tmp = (2.0 * (n * (U * t))) ^ 0.5; else tmp = ((2.0 * U) * (n * t)) ^ 0.5; end tmp_2 = tmp; end
code[n_, U_, t_, l_, Om_, U$42$_] := If[LessEqual[l, 8.5e-81], N[Power[N[(2.0 * N[(n * N[(U * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 0.5], $MachinePrecision], N[Power[N[(N[(2.0 * U), $MachinePrecision] * N[(n * t), $MachinePrecision]), $MachinePrecision], 0.5], $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;\ell \leq 8.5 \cdot 10^{-81}:\\
\;\;\;\;{\left(2 \cdot \left(n \cdot \left(U \cdot t\right)\right)\right)}^{0.5}\\
\mathbf{else}:\\
\;\;\;\;{\left(\left(2 \cdot U\right) \cdot \left(n \cdot t\right)\right)}^{0.5}\\
\end{array}
\end{array}
if l < 8.5000000000000001e-81Initial program 51.9%
Taylor expanded in t around inf
Simplified45.3%
pow1/2N/A
pow-lowering-pow.f64N/A
associate-*l*N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6447.5%
Applied egg-rr47.5%
if 8.5000000000000001e-81 < l Initial program 47.0%
Taylor expanded in t around inf
Simplified27.9%
pow1/2N/A
unpow-prod-downN/A
*-commutativeN/A
*-commutativeN/A
associate-*l*N/A
unpow-prod-downN/A
associate-*l*N/A
unpow-prod-downN/A
pow-prod-downN/A
pow-lowering-pow.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f6430.6%
Applied egg-rr30.6%
Final simplification42.8%
(FPCore (n U t l Om U*) :precision binary64 (if (<= l 5.6e-72) (pow (* 2.0 (* n (* U t))) 0.5) (sqrt (* 2.0 (* U (* n t))))))
double code(double n, double U, double t, double l, double Om, double U_42_) {
double tmp;
if (l <= 5.6e-72) {
tmp = pow((2.0 * (n * (U * t))), 0.5);
} else {
tmp = sqrt((2.0 * (U * (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 (l <= 5.6d-72) then
tmp = (2.0d0 * (n * (u * t))) ** 0.5d0
else
tmp = sqrt((2.0d0 * (u * (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 (l <= 5.6e-72) {
tmp = Math.pow((2.0 * (n * (U * t))), 0.5);
} else {
tmp = Math.sqrt((2.0 * (U * (n * t))));
}
return tmp;
}
def code(n, U, t, l, Om, U_42_): tmp = 0 if l <= 5.6e-72: tmp = math.pow((2.0 * (n * (U * t))), 0.5) else: tmp = math.sqrt((2.0 * (U * (n * t)))) return tmp
function code(n, U, t, l, Om, U_42_) tmp = 0.0 if (l <= 5.6e-72) tmp = Float64(2.0 * Float64(n * Float64(U * t))) ^ 0.5; else tmp = sqrt(Float64(2.0 * Float64(U * Float64(n * t)))); end return tmp end
function tmp_2 = code(n, U, t, l, Om, U_42_) tmp = 0.0; if (l <= 5.6e-72) tmp = (2.0 * (n * (U * t))) ^ 0.5; else tmp = sqrt((2.0 * (U * (n * t)))); end tmp_2 = tmp; end
code[n_, U_, t_, l_, Om_, U$42$_] := If[LessEqual[l, 5.6e-72], N[Power[N[(2.0 * N[(n * N[(U * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 0.5], $MachinePrecision], N[Sqrt[N[(2.0 * N[(U * N[(n * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;\ell \leq 5.6 \cdot 10^{-72}:\\
\;\;\;\;{\left(2 \cdot \left(n \cdot \left(U \cdot t\right)\right)\right)}^{0.5}\\
\mathbf{else}:\\
\;\;\;\;\sqrt{2 \cdot \left(U \cdot \left(n \cdot t\right)\right)}\\
\end{array}
\end{array}
if l < 5.5999999999999996e-72Initial program 51.6%
Taylor expanded in t around inf
Simplified45.1%
pow1/2N/A
pow-lowering-pow.f64N/A
associate-*l*N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6447.3%
Applied egg-rr47.3%
if 5.5999999999999996e-72 < l Initial program 47.6%
Simplified58.4%
Taylor expanded in t around inf
*-lowering-*.f64N/A
*-lowering-*.f6430.8%
Simplified30.8%
Final simplification42.8%
(FPCore (n U t l Om U*) :precision binary64 (if (<= l 3.4e-81) (sqrt (* n (* U (* 2.0 t)))) (sqrt (* 2.0 (* U (* n t))))))
double code(double n, double U, double t, double l, double Om, double U_42_) {
double tmp;
if (l <= 3.4e-81) {
tmp = sqrt((n * (U * (2.0 * t))));
} else {
tmp = sqrt((2.0 * (U * (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 (l <= 3.4d-81) then
tmp = sqrt((n * (u * (2.0d0 * t))))
else
tmp = sqrt((2.0d0 * (u * (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 (l <= 3.4e-81) {
tmp = Math.sqrt((n * (U * (2.0 * t))));
} else {
tmp = Math.sqrt((2.0 * (U * (n * t))));
}
return tmp;
}
def code(n, U, t, l, Om, U_42_): tmp = 0 if l <= 3.4e-81: tmp = math.sqrt((n * (U * (2.0 * t)))) else: tmp = math.sqrt((2.0 * (U * (n * t)))) return tmp
function code(n, U, t, l, Om, U_42_) tmp = 0.0 if (l <= 3.4e-81) tmp = sqrt(Float64(n * Float64(U * Float64(2.0 * t)))); else tmp = sqrt(Float64(2.0 * Float64(U * Float64(n * t)))); end return tmp end
function tmp_2 = code(n, U, t, l, Om, U_42_) tmp = 0.0; if (l <= 3.4e-81) tmp = sqrt((n * (U * (2.0 * t)))); else tmp = sqrt((2.0 * (U * (n * t)))); end tmp_2 = tmp; end
code[n_, U_, t_, l_, Om_, U$42$_] := If[LessEqual[l, 3.4e-81], N[Sqrt[N[(n * N[(U * N[(2.0 * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], N[Sqrt[N[(2.0 * N[(U * N[(n * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;\ell \leq 3.4 \cdot 10^{-81}:\\
\;\;\;\;\sqrt{n \cdot \left(U \cdot \left(2 \cdot t\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;\sqrt{2 \cdot \left(U \cdot \left(n \cdot t\right)\right)}\\
\end{array}
\end{array}
if l < 3.3999999999999999e-81Initial program 51.9%
Simplified57.5%
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
*-lowering-*.f64N/A
Applied egg-rr60.3%
Taylor expanded in t around inf
*-lowering-*.f6446.4%
Simplified46.4%
if 3.3999999999999999e-81 < l Initial program 47.0%
Simplified57.6%
Taylor expanded in t around inf
*-lowering-*.f64N/A
*-lowering-*.f6430.5%
Simplified30.5%
Final simplification42.0%
(FPCore (n U t l Om U*) :precision binary64 (if (<= l 3.2e-71) (sqrt (* (* (* 2.0 n) U) t)) (sqrt (* 2.0 (* U (* n t))))))
double code(double n, double U, double t, double l, double Om, double U_42_) {
double tmp;
if (l <= 3.2e-71) {
tmp = sqrt((((2.0 * n) * U) * t));
} else {
tmp = sqrt((2.0 * (U * (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 (l <= 3.2d-71) then
tmp = sqrt((((2.0d0 * n) * u) * t))
else
tmp = sqrt((2.0d0 * (u * (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 (l <= 3.2e-71) {
tmp = Math.sqrt((((2.0 * n) * U) * t));
} else {
tmp = Math.sqrt((2.0 * (U * (n * t))));
}
return tmp;
}
def code(n, U, t, l, Om, U_42_): tmp = 0 if l <= 3.2e-71: tmp = math.sqrt((((2.0 * n) * U) * t)) else: tmp = math.sqrt((2.0 * (U * (n * t)))) return tmp
function code(n, U, t, l, Om, U_42_) tmp = 0.0 if (l <= 3.2e-71) tmp = sqrt(Float64(Float64(Float64(2.0 * n) * U) * t)); else tmp = sqrt(Float64(2.0 * Float64(U * Float64(n * t)))); end return tmp end
function tmp_2 = code(n, U, t, l, Om, U_42_) tmp = 0.0; if (l <= 3.2e-71) tmp = sqrt((((2.0 * n) * U) * t)); else tmp = sqrt((2.0 * (U * (n * t)))); end tmp_2 = tmp; end
code[n_, U_, t_, l_, Om_, U$42$_] := If[LessEqual[l, 3.2e-71], N[Sqrt[N[(N[(N[(2.0 * n), $MachinePrecision] * U), $MachinePrecision] * t), $MachinePrecision]], $MachinePrecision], N[Sqrt[N[(2.0 * N[(U * N[(n * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;\ell \leq 3.2 \cdot 10^{-71}:\\
\;\;\;\;\sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot t}\\
\mathbf{else}:\\
\;\;\;\;\sqrt{2 \cdot \left(U \cdot \left(n \cdot t\right)\right)}\\
\end{array}
\end{array}
if l < 3.1999999999999999e-71Initial program 51.4%
Taylor expanded in t around inf
Simplified44.9%
if 3.1999999999999999e-71 < l Initial program 48.2%
Simplified59.1%
Taylor expanded in t around inf
*-lowering-*.f64N/A
*-lowering-*.f6431.2%
Simplified31.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 50.5%
Simplified57.5%
Taylor expanded in t around inf
*-lowering-*.f64N/A
*-lowering-*.f6440.6%
Simplified40.6%
herbie shell --seed 2024141
(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*))))))