
(FPCore (n U t l Om U*) :precision binary64 (sqrt (* (* (* 2.0 n) U) (- (- t (* 2.0 (/ (* l l) Om))) (* (* n (pow (/ l Om) 2.0)) (- U U*))))))
double code(double n, double U, double t, double l, double Om, double U_42_) {
return sqrt((((2.0 * n) * U) * ((t - (2.0 * ((l * l) / Om))) - ((n * pow((l / Om), 2.0)) * (U - U_42_)))));
}
real(8) function code(n, u, t, l, om, u_42)
real(8), intent (in) :: n
real(8), intent (in) :: u
real(8), intent (in) :: t
real(8), intent (in) :: l
real(8), intent (in) :: om
real(8), intent (in) :: u_42
code = sqrt((((2.0d0 * n) * u) * ((t - (2.0d0 * ((l * l) / om))) - ((n * ((l / om) ** 2.0d0)) * (u - u_42)))))
end function
public static double code(double n, double U, double t, double l, double Om, double U_42_) {
return Math.sqrt((((2.0 * n) * U) * ((t - (2.0 * ((l * l) / Om))) - ((n * Math.pow((l / Om), 2.0)) * (U - U_42_)))));
}
def code(n, U, t, l, Om, U_42_): return math.sqrt((((2.0 * n) * U) * ((t - (2.0 * ((l * l) / Om))) - ((n * math.pow((l / Om), 2.0)) * (U - U_42_)))))
function code(n, U, t, l, Om, U_42_) return sqrt(Float64(Float64(Float64(2.0 * n) * U) * Float64(Float64(t - Float64(2.0 * Float64(Float64(l * l) / Om))) - Float64(Float64(n * (Float64(l / Om) ^ 2.0)) * Float64(U - U_42_))))) end
function tmp = code(n, U, t, l, Om, U_42_) tmp = sqrt((((2.0 * n) * U) * ((t - (2.0 * ((l * l) / Om))) - ((n * ((l / Om) ^ 2.0)) * (U - U_42_))))); end
code[n_, U_, t_, l_, Om_, U$42$_] := N[Sqrt[N[(N[(N[(2.0 * n), $MachinePrecision] * U), $MachinePrecision] * N[(N[(t - N[(2.0 * N[(N[(l * l), $MachinePrecision] / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(n * N[Power[N[(l / Om), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision] * N[(U - U$42$), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]
\begin{array}{l}
\\
\sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(t - 2 \cdot \frac{\ell \cdot \ell}{Om}\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 15 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (n U t l Om U*) :precision binary64 (sqrt (* (* (* 2.0 n) U) (- (- t (* 2.0 (/ (* l l) Om))) (* (* n (pow (/ l Om) 2.0)) (- U U*))))))
double code(double n, double U, double t, double l, double Om, double U_42_) {
return sqrt((((2.0 * n) * U) * ((t - (2.0 * ((l * l) / Om))) - ((n * pow((l / Om), 2.0)) * (U - U_42_)))));
}
real(8) function code(n, u, t, l, om, u_42)
real(8), intent (in) :: n
real(8), intent (in) :: u
real(8), intent (in) :: t
real(8), intent (in) :: l
real(8), intent (in) :: om
real(8), intent (in) :: u_42
code = sqrt((((2.0d0 * n) * u) * ((t - (2.0d0 * ((l * l) / om))) - ((n * ((l / om) ** 2.0d0)) * (u - u_42)))))
end function
public static double code(double n, double U, double t, double l, double Om, double U_42_) {
return Math.sqrt((((2.0 * n) * U) * ((t - (2.0 * ((l * l) / Om))) - ((n * Math.pow((l / Om), 2.0)) * (U - U_42_)))));
}
def code(n, U, t, l, Om, U_42_): return math.sqrt((((2.0 * n) * U) * ((t - (2.0 * ((l * l) / Om))) - ((n * math.pow((l / Om), 2.0)) * (U - U_42_)))))
function code(n, U, t, l, Om, U_42_) return sqrt(Float64(Float64(Float64(2.0 * n) * U) * Float64(Float64(t - Float64(2.0 * Float64(Float64(l * l) / Om))) - Float64(Float64(n * (Float64(l / Om) ^ 2.0)) * Float64(U - U_42_))))) end
function tmp = code(n, U, t, l, Om, U_42_) tmp = sqrt((((2.0 * n) * U) * ((t - (2.0 * ((l * l) / Om))) - ((n * ((l / Om) ^ 2.0)) * (U - U_42_))))); end
code[n_, U_, t_, l_, Om_, U$42$_] := N[Sqrt[N[(N[(N[(2.0 * n), $MachinePrecision] * U), $MachinePrecision] * N[(N[(t - N[(2.0 * N[(N[(l * l), $MachinePrecision] / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(n * N[Power[N[(l / Om), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision] * N[(U - U$42$), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]
\begin{array}{l}
\\
\sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(t - 2 \cdot \frac{\ell \cdot \ell}{Om}\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)}
\end{array}
(FPCore (n U t l Om U*)
:precision binary64
(let* ((t_1
(sqrt
(*
(* (* 2.0 n) U)
(+
(- t (* 2.0 (/ (* l l) Om)))
(* (* n (pow (/ l Om) 2.0)) (- U* U)))))))
(if (<= t_1 0.0)
(*
(sqrt (* 2.0 n))
(sqrt (* U (+ t (* (/ l Om) (fma l -2.0 (* (/ l Om) (* n (- U* U)))))))))
(if (<= t_1 5e+135)
t_1
(if (<= t_1 INFINITY)
(pow
(*
2.0
(+
(* n (* U t))
(/ (+ (/ n (/ Om (* l U*))) (* l -2.0)) (/ Om (* n (* U l))))))
0.5)
(sqrt
(* -2.0 (/ (* (* l (* n l)) (* U (- 2.0 (/ (* n U*) Om)))) Om))))))))
double code(double n, double U, double t, double l, double Om, double U_42_) {
double t_1 = sqrt((((2.0 * n) * U) * ((t - (2.0 * ((l * l) / Om))) + ((n * pow((l / Om), 2.0)) * (U_42_ - U)))));
double tmp;
if (t_1 <= 0.0) {
tmp = sqrt((2.0 * n)) * sqrt((U * (t + ((l / Om) * fma(l, -2.0, ((l / Om) * (n * (U_42_ - U))))))));
} else if (t_1 <= 5e+135) {
tmp = t_1;
} else if (t_1 <= ((double) INFINITY)) {
tmp = pow((2.0 * ((n * (U * t)) + (((n / (Om / (l * U_42_))) + (l * -2.0)) / (Om / (n * (U * l)))))), 0.5);
} else {
tmp = sqrt((-2.0 * (((l * (n * l)) * (U * (2.0 - ((n * U_42_) / Om)))) / Om)));
}
return tmp;
}
function code(n, U, t, l, Om, U_42_) t_1 = 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_42_ - U))))) tmp = 0.0 if (t_1 <= 0.0) tmp = Float64(sqrt(Float64(2.0 * n)) * sqrt(Float64(U * Float64(t + Float64(Float64(l / Om) * fma(l, -2.0, Float64(Float64(l / Om) * Float64(n * Float64(U_42_ - U))))))))); elseif (t_1 <= 5e+135) tmp = t_1; elseif (t_1 <= Inf) tmp = Float64(2.0 * Float64(Float64(n * Float64(U * t)) + Float64(Float64(Float64(n / Float64(Om / Float64(l * U_42_))) + Float64(l * -2.0)) / Float64(Om / Float64(n * Float64(U * l)))))) ^ 0.5; else tmp = sqrt(Float64(-2.0 * Float64(Float64(Float64(l * Float64(n * l)) * Float64(U * Float64(2.0 - Float64(Float64(n * U_42_) / Om)))) / Om))); end return tmp end
code[n_, U_, t_, l_, Om_, U$42$_] := Block[{t$95$1 = N[Sqrt[N[(N[(N[(2.0 * n), $MachinePrecision] * U), $MachinePrecision] * N[(N[(t - N[(2.0 * N[(N[(l * l), $MachinePrecision] / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(n * N[Power[N[(l / Om), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision] * N[(U$42$ - U), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]}, If[LessEqual[t$95$1, 0.0], N[(N[Sqrt[N[(2.0 * n), $MachinePrecision]], $MachinePrecision] * N[Sqrt[N[(U * N[(t + N[(N[(l / Om), $MachinePrecision] * N[(l * -2.0 + N[(N[(l / Om), $MachinePrecision] * N[(n * N[(U$42$ - U), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, 5e+135], t$95$1, If[LessEqual[t$95$1, Infinity], N[Power[N[(2.0 * N[(N[(n * N[(U * t), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(n / N[(Om / N[(l * U$42$), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(l * -2.0), $MachinePrecision]), $MachinePrecision] / N[(Om / N[(n * N[(U * l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 0.5], $MachinePrecision], N[Sqrt[N[(-2.0 * N[(N[(N[(l * N[(n * l), $MachinePrecision]), $MachinePrecision] * N[(U * N[(2.0 - N[(N[(n * U$42$), $MachinePrecision] / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / Om), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \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)}\\
\mathbf{if}\;t_1 \leq 0:\\
\;\;\;\;\sqrt{2 \cdot n} \cdot \sqrt{U \cdot \left(t + \frac{\ell}{Om} \cdot \mathsf{fma}\left(\ell, -2, \frac{\ell}{Om} \cdot \left(n \cdot \left(U* - U\right)\right)\right)\right)}\\
\mathbf{elif}\;t_1 \leq 5 \cdot 10^{+135}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t_1 \leq \infty:\\
\;\;\;\;{\left(2 \cdot \left(n \cdot \left(U \cdot t\right) + \frac{\frac{n}{\frac{Om}{\ell \cdot U*}} + \ell \cdot -2}{\frac{Om}{n \cdot \left(U \cdot \ell\right)}}\right)\right)}^{0.5}\\
\mathbf{else}:\\
\;\;\;\;\sqrt{-2 \cdot \frac{\left(\ell \cdot \left(n \cdot \ell\right)\right) \cdot \left(U \cdot \left(2 - \frac{n \cdot U*}{Om}\right)\right)}{Om}}\\
\end{array}
\end{array}
if (sqrt.f64 (*.f64 (*.f64 (*.f64 2 n) U) (-.f64 (-.f64 t (*.f64 2 (/.f64 (*.f64 l l) Om))) (*.f64 (*.f64 n (pow.f64 (/.f64 l Om) 2)) (-.f64 U U*))))) < 0.0Initial program 13.2%
associate-*l*28.3%
sub-neg28.3%
associate--l+28.3%
*-commutative28.3%
distribute-rgt-neg-in28.3%
associate-*l/28.4%
associate-*l*28.4%
*-commutative28.4%
*-commutative28.4%
associate-*l*28.4%
unpow228.4%
associate-*l*28.4%
Simplified28.4%
sqrt-prod32.8%
Applied egg-rr32.8%
*-commutative32.8%
*-commutative32.8%
Simplified32.8%
if 0.0 < (sqrt.f64 (*.f64 (*.f64 (*.f64 2 n) U) (-.f64 (-.f64 t (*.f64 2 (/.f64 (*.f64 l l) Om))) (*.f64 (*.f64 n (pow.f64 (/.f64 l Om) 2)) (-.f64 U U*))))) < 5.00000000000000029e135Initial program 98.0%
if 5.00000000000000029e135 < (sqrt.f64 (*.f64 (*.f64 (*.f64 2 n) U) (-.f64 (-.f64 t (*.f64 2 (/.f64 (*.f64 l l) Om))) (*.f64 (*.f64 n (pow.f64 (/.f64 l Om) 2)) (-.f64 U U*))))) < +inf.0Initial program 30.3%
associate-*l*34.1%
sub-neg34.1%
associate--l+34.1%
*-commutative34.1%
distribute-rgt-neg-in34.1%
associate-*l/37.9%
associate-*l*37.9%
*-commutative37.9%
*-commutative37.9%
associate-*l*32.2%
unpow232.2%
associate-*l*33.5%
Simplified33.5%
Taylor expanded in t around inf 37.9%
Taylor expanded in U* around inf 41.0%
pow1/241.1%
distribute-lft-out41.1%
associate-/l*41.1%
associate-/l*42.4%
*-commutative42.4%
*-commutative42.4%
Applied egg-rr42.4%
if +inf.0 < (sqrt.f64 (*.f64 (*.f64 (*.f64 2 n) U) (-.f64 (-.f64 t (*.f64 2 (/.f64 (*.f64 l l) Om))) (*.f64 (*.f64 n (pow.f64 (/.f64 l Om) 2)) (-.f64 U U*))))) Initial program 0.0%
associate-*l*0.9%
sub-neg0.9%
associate--l+0.9%
*-commutative0.9%
distribute-rgt-neg-in0.9%
associate-*l/10.0%
associate-*l*10.0%
*-commutative10.0%
*-commutative10.0%
associate-*l*9.9%
unpow29.9%
associate-*l*12.9%
Simplified43.2%
Taylor expanded in l around -inf 49.3%
associate-/l*45.5%
unpow245.5%
*-commutative45.5%
mul-1-neg45.5%
associate-/l*45.1%
Simplified45.1%
Taylor expanded in U around 0 49.3%
associate-*r*53.7%
unpow253.7%
*-commutative53.7%
Simplified53.7%
Taylor expanded in n around 0 53.7%
unpow253.7%
associate-*r*71.3%
Simplified71.3%
Final simplification70.5%
(FPCore (n U t l Om U*)
:precision binary64
(let* ((t_1
(sqrt
(*
(* (* 2.0 n) U)
(+
(- t (* 2.0 (/ (* l l) Om)))
(* (* n (pow (/ l Om) 2.0)) (- U* U)))))))
(if (<= t_1 5e+135)
t_1
(if (<= t_1 INFINITY)
(pow
(*
2.0
(+
(* n (* U t))
(/ (+ (/ n (/ Om (* l U*))) (* l -2.0)) (/ Om (* n (* U l))))))
0.5)
(sqrt
(* -2.0 (/ (* (* l (* n l)) (* U (- 2.0 (/ (* n U*) Om)))) Om)))))))
double code(double n, double U, double t, double l, double Om, double U_42_) {
double t_1 = sqrt((((2.0 * n) * U) * ((t - (2.0 * ((l * l) / Om))) + ((n * pow((l / Om), 2.0)) * (U_42_ - U)))));
double tmp;
if (t_1 <= 5e+135) {
tmp = t_1;
} else if (t_1 <= ((double) INFINITY)) {
tmp = pow((2.0 * ((n * (U * t)) + (((n / (Om / (l * U_42_))) + (l * -2.0)) / (Om / (n * (U * l)))))), 0.5);
} else {
tmp = sqrt((-2.0 * (((l * (n * l)) * (U * (2.0 - ((n * U_42_) / Om)))) / Om)));
}
return tmp;
}
public static double code(double n, double U, double t, double l, double Om, double U_42_) {
double t_1 = Math.sqrt((((2.0 * n) * U) * ((t - (2.0 * ((l * l) / Om))) + ((n * Math.pow((l / Om), 2.0)) * (U_42_ - U)))));
double tmp;
if (t_1 <= 5e+135) {
tmp = t_1;
} else if (t_1 <= Double.POSITIVE_INFINITY) {
tmp = Math.pow((2.0 * ((n * (U * t)) + (((n / (Om / (l * U_42_))) + (l * -2.0)) / (Om / (n * (U * l)))))), 0.5);
} else {
tmp = Math.sqrt((-2.0 * (((l * (n * l)) * (U * (2.0 - ((n * U_42_) / Om)))) / Om)));
}
return tmp;
}
def code(n, U, t, l, Om, U_42_): t_1 = math.sqrt((((2.0 * n) * U) * ((t - (2.0 * ((l * l) / Om))) + ((n * math.pow((l / Om), 2.0)) * (U_42_ - U))))) tmp = 0 if t_1 <= 5e+135: tmp = t_1 elif t_1 <= math.inf: tmp = math.pow((2.0 * ((n * (U * t)) + (((n / (Om / (l * U_42_))) + (l * -2.0)) / (Om / (n * (U * l)))))), 0.5) else: tmp = math.sqrt((-2.0 * (((l * (n * l)) * (U * (2.0 - ((n * U_42_) / Om)))) / Om))) return tmp
function code(n, U, t, l, Om, U_42_) t_1 = 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_42_ - U))))) tmp = 0.0 if (t_1 <= 5e+135) tmp = t_1; elseif (t_1 <= Inf) tmp = Float64(2.0 * Float64(Float64(n * Float64(U * t)) + Float64(Float64(Float64(n / Float64(Om / Float64(l * U_42_))) + Float64(l * -2.0)) / Float64(Om / Float64(n * Float64(U * l)))))) ^ 0.5; else tmp = sqrt(Float64(-2.0 * Float64(Float64(Float64(l * Float64(n * l)) * Float64(U * Float64(2.0 - Float64(Float64(n * U_42_) / Om)))) / Om))); end return tmp end
function tmp_2 = code(n, U, t, l, Om, U_42_) t_1 = sqrt((((2.0 * n) * U) * ((t - (2.0 * ((l * l) / Om))) + ((n * ((l / Om) ^ 2.0)) * (U_42_ - U))))); tmp = 0.0; if (t_1 <= 5e+135) tmp = t_1; elseif (t_1 <= Inf) tmp = (2.0 * ((n * (U * t)) + (((n / (Om / (l * U_42_))) + (l * -2.0)) / (Om / (n * (U * l)))))) ^ 0.5; else tmp = sqrt((-2.0 * (((l * (n * l)) * (U * (2.0 - ((n * U_42_) / Om)))) / Om))); end tmp_2 = tmp; end
code[n_, U_, t_, l_, Om_, U$42$_] := Block[{t$95$1 = N[Sqrt[N[(N[(N[(2.0 * n), $MachinePrecision] * U), $MachinePrecision] * N[(N[(t - N[(2.0 * N[(N[(l * l), $MachinePrecision] / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(n * N[Power[N[(l / Om), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision] * N[(U$42$ - U), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]}, If[LessEqual[t$95$1, 5e+135], t$95$1, If[LessEqual[t$95$1, Infinity], N[Power[N[(2.0 * N[(N[(n * N[(U * t), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(n / N[(Om / N[(l * U$42$), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(l * -2.0), $MachinePrecision]), $MachinePrecision] / N[(Om / N[(n * N[(U * l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 0.5], $MachinePrecision], N[Sqrt[N[(-2.0 * N[(N[(N[(l * N[(n * l), $MachinePrecision]), $MachinePrecision] * N[(U * N[(2.0 - N[(N[(n * U$42$), $MachinePrecision] / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / Om), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \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)}\\
\mathbf{if}\;t_1 \leq 5 \cdot 10^{+135}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t_1 \leq \infty:\\
\;\;\;\;{\left(2 \cdot \left(n \cdot \left(U \cdot t\right) + \frac{\frac{n}{\frac{Om}{\ell \cdot U*}} + \ell \cdot -2}{\frac{Om}{n \cdot \left(U \cdot \ell\right)}}\right)\right)}^{0.5}\\
\mathbf{else}:\\
\;\;\;\;\sqrt{-2 \cdot \frac{\left(\ell \cdot \left(n \cdot \ell\right)\right) \cdot \left(U \cdot \left(2 - \frac{n \cdot U*}{Om}\right)\right)}{Om}}\\
\end{array}
\end{array}
if (sqrt.f64 (*.f64 (*.f64 (*.f64 2 n) U) (-.f64 (-.f64 t (*.f64 2 (/.f64 (*.f64 l l) Om))) (*.f64 (*.f64 n (pow.f64 (/.f64 l Om) 2)) (-.f64 U U*))))) < 5.00000000000000029e135Initial program 82.4%
if 5.00000000000000029e135 < (sqrt.f64 (*.f64 (*.f64 (*.f64 2 n) U) (-.f64 (-.f64 t (*.f64 2 (/.f64 (*.f64 l l) Om))) (*.f64 (*.f64 n (pow.f64 (/.f64 l Om) 2)) (-.f64 U U*))))) < +inf.0Initial program 30.3%
associate-*l*34.1%
sub-neg34.1%
associate--l+34.1%
*-commutative34.1%
distribute-rgt-neg-in34.1%
associate-*l/37.9%
associate-*l*37.9%
*-commutative37.9%
*-commutative37.9%
associate-*l*32.2%
unpow232.2%
associate-*l*33.5%
Simplified33.5%
Taylor expanded in t around inf 37.9%
Taylor expanded in U* around inf 41.0%
pow1/241.1%
distribute-lft-out41.1%
associate-/l*41.1%
associate-/l*42.4%
*-commutative42.4%
*-commutative42.4%
Applied egg-rr42.4%
if +inf.0 < (sqrt.f64 (*.f64 (*.f64 (*.f64 2 n) U) (-.f64 (-.f64 t (*.f64 2 (/.f64 (*.f64 l l) Om))) (*.f64 (*.f64 n (pow.f64 (/.f64 l Om) 2)) (-.f64 U U*))))) Initial program 0.0%
associate-*l*0.9%
sub-neg0.9%
associate--l+0.9%
*-commutative0.9%
distribute-rgt-neg-in0.9%
associate-*l/10.0%
associate-*l*10.0%
*-commutative10.0%
*-commutative10.0%
associate-*l*9.9%
unpow29.9%
associate-*l*12.9%
Simplified43.2%
Taylor expanded in l around -inf 49.3%
associate-/l*45.5%
unpow245.5%
*-commutative45.5%
mul-1-neg45.5%
associate-/l*45.1%
Simplified45.1%
Taylor expanded in U around 0 49.3%
associate-*r*53.7%
unpow253.7%
*-commutative53.7%
Simplified53.7%
Taylor expanded in n around 0 53.7%
unpow253.7%
associate-*r*71.3%
Simplified71.3%
Final simplification68.6%
(FPCore (n U t l Om U*)
:precision binary64
(let* ((t_1 (* n (* U l)))
(t_2 (sqrt (* 2.0 (* U (* n (fma -2.0 (* l (/ l Om)) t))))))
(t_3 (* n (* U t))))
(if (<= U -6.8e+68)
t_2
(if (<= U 3.7e-258)
(sqrt
(+
(* 2.0 t_3)
(* 2.0 (/ (* (+ (* l -2.0) (/ (* n (* l U*)) Om)) t_1) Om))))
(if (<= U 1.55e-227)
(sqrt (fma 2.0 (* U (* n t)) (/ (* n -4.0) (/ (/ Om U) (* l l)))))
(if (<= U 1.92e+59)
(pow
(* 2.0 (+ t_3 (/ (+ (/ n (/ Om (* l U*))) (* l -2.0)) (/ Om t_1))))
0.5)
t_2))))))
double code(double n, double U, double t, double l, double Om, double U_42_) {
double t_1 = n * (U * l);
double t_2 = sqrt((2.0 * (U * (n * fma(-2.0, (l * (l / Om)), t)))));
double t_3 = n * (U * t);
double tmp;
if (U <= -6.8e+68) {
tmp = t_2;
} else if (U <= 3.7e-258) {
tmp = sqrt(((2.0 * t_3) + (2.0 * ((((l * -2.0) + ((n * (l * U_42_)) / Om)) * t_1) / Om))));
} else if (U <= 1.55e-227) {
tmp = sqrt(fma(2.0, (U * (n * t)), ((n * -4.0) / ((Om / U) / (l * l)))));
} else if (U <= 1.92e+59) {
tmp = pow((2.0 * (t_3 + (((n / (Om / (l * U_42_))) + (l * -2.0)) / (Om / t_1)))), 0.5);
} else {
tmp = t_2;
}
return tmp;
}
function code(n, U, t, l, Om, U_42_) t_1 = Float64(n * Float64(U * l)) t_2 = sqrt(Float64(2.0 * Float64(U * Float64(n * fma(-2.0, Float64(l * Float64(l / Om)), t))))) t_3 = Float64(n * Float64(U * t)) tmp = 0.0 if (U <= -6.8e+68) tmp = t_2; elseif (U <= 3.7e-258) tmp = sqrt(Float64(Float64(2.0 * t_3) + Float64(2.0 * Float64(Float64(Float64(Float64(l * -2.0) + Float64(Float64(n * Float64(l * U_42_)) / Om)) * t_1) / Om)))); elseif (U <= 1.55e-227) tmp = sqrt(fma(2.0, Float64(U * Float64(n * t)), Float64(Float64(n * -4.0) / Float64(Float64(Om / U) / Float64(l * l))))); elseif (U <= 1.92e+59) tmp = Float64(2.0 * Float64(t_3 + Float64(Float64(Float64(n / Float64(Om / Float64(l * U_42_))) + Float64(l * -2.0)) / Float64(Om / t_1)))) ^ 0.5; else tmp = t_2; end return tmp end
code[n_, U_, t_, l_, Om_, U$42$_] := Block[{t$95$1 = N[(n * N[(U * l), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[Sqrt[N[(2.0 * N[(U * N[(n * N[(-2.0 * N[(l * N[(l / Om), $MachinePrecision]), $MachinePrecision] + t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]}, Block[{t$95$3 = N[(n * N[(U * t), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[U, -6.8e+68], t$95$2, If[LessEqual[U, 3.7e-258], N[Sqrt[N[(N[(2.0 * t$95$3), $MachinePrecision] + N[(2.0 * N[(N[(N[(N[(l * -2.0), $MachinePrecision] + N[(N[(n * N[(l * U$42$), $MachinePrecision]), $MachinePrecision] / Om), $MachinePrecision]), $MachinePrecision] * t$95$1), $MachinePrecision] / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], If[LessEqual[U, 1.55e-227], N[Sqrt[N[(2.0 * N[(U * N[(n * t), $MachinePrecision]), $MachinePrecision] + N[(N[(n * -4.0), $MachinePrecision] / N[(N[(Om / U), $MachinePrecision] / N[(l * l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], If[LessEqual[U, 1.92e+59], N[Power[N[(2.0 * N[(t$95$3 + N[(N[(N[(n / N[(Om / N[(l * U$42$), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(l * -2.0), $MachinePrecision]), $MachinePrecision] / N[(Om / t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 0.5], $MachinePrecision], t$95$2]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := n \cdot \left(U \cdot \ell\right)\\
t_2 := \sqrt{2 \cdot \left(U \cdot \left(n \cdot \mathsf{fma}\left(-2, \ell \cdot \frac{\ell}{Om}, t\right)\right)\right)}\\
t_3 := n \cdot \left(U \cdot t\right)\\
\mathbf{if}\;U \leq -6.8 \cdot 10^{+68}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;U \leq 3.7 \cdot 10^{-258}:\\
\;\;\;\;\sqrt{2 \cdot t_3 + 2 \cdot \frac{\left(\ell \cdot -2 + \frac{n \cdot \left(\ell \cdot U*\right)}{Om}\right) \cdot t_1}{Om}}\\
\mathbf{elif}\;U \leq 1.55 \cdot 10^{-227}:\\
\;\;\;\;\sqrt{\mathsf{fma}\left(2, U \cdot \left(n \cdot t\right), \frac{n \cdot -4}{\frac{\frac{Om}{U}}{\ell \cdot \ell}}\right)}\\
\mathbf{elif}\;U \leq 1.92 \cdot 10^{+59}:\\
\;\;\;\;{\left(2 \cdot \left(t_3 + \frac{\frac{n}{\frac{Om}{\ell \cdot U*}} + \ell \cdot -2}{\frac{Om}{t_1}}\right)\right)}^{0.5}\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if U < -6.8000000000000003e68 or 1.92e59 < U Initial program 62.2%
associate-*l*47.1%
sub-neg47.1%
associate--l+47.1%
*-commutative47.1%
distribute-rgt-neg-in47.1%
associate-*l/48.2%
associate-*l*48.2%
*-commutative48.2%
*-commutative48.2%
associate-*l*42.2%
unpow242.2%
associate-*l*43.5%
Simplified45.9%
Taylor expanded in n around 0 44.8%
associate-*r*63.5%
+-commutative63.5%
unpow263.5%
fma-def63.5%
associate-*r/67.8%
Simplified67.8%
if -6.8000000000000003e68 < U < 3.7e-258Initial program 46.9%
associate-*l*48.3%
sub-neg48.3%
associate--l+48.3%
*-commutative48.3%
distribute-rgt-neg-in48.3%
associate-*l/51.2%
associate-*l*51.2%
*-commutative51.2%
*-commutative51.2%
associate-*l*46.3%
unpow246.3%
associate-*l*47.3%
Simplified55.4%
Taylor expanded in t around inf 59.8%
Taylor expanded in U* around inf 59.8%
if 3.7e-258 < U < 1.5499999999999999e-227Initial program 71.2%
associate-*l*16.3%
sub-neg16.3%
associate--l+16.3%
*-commutative16.3%
distribute-rgt-neg-in16.3%
associate-*l/16.3%
associate-*l*16.3%
*-commutative16.3%
*-commutative16.3%
associate-*l*15.7%
unpow215.7%
associate-*l*16.1%
Simplified16.1%
Taylor expanded in t around inf 15.3%
Taylor expanded in U* around inf 15.3%
Taylor expanded in U* around 0 15.5%
fma-def15.5%
associate-*r*70.6%
associate-/l*84.3%
associate-*r/84.3%
*-commutative84.3%
associate-/r*84.3%
unpow284.3%
Simplified84.3%
if 1.5499999999999999e-227 < U < 1.92e59Initial program 46.4%
associate-*l*48.5%
sub-neg48.5%
associate--l+48.5%
*-commutative48.5%
distribute-rgt-neg-in48.5%
associate-*l/53.6%
associate-*l*53.6%
*-commutative53.6%
*-commutative53.6%
associate-*l*52.0%
unpow252.0%
associate-*l*53.7%
Simplified58.9%
Taylor expanded in t around inf 62.7%
Taylor expanded in U* around inf 62.7%
pow1/262.8%
distribute-lft-out62.8%
associate-/l*64.4%
associate-/l*64.4%
*-commutative64.4%
*-commutative64.4%
Applied egg-rr64.4%
Final simplification64.3%
(FPCore (n U t l Om U*)
:precision binary64
(let* ((t_1 (* n (* U l)))
(t_2 (sqrt (* 2.0 (* U (* n (fma -2.0 (* l (/ l Om)) t))))))
(t_3 (* n (* U t))))
(if (<= U -1.28e+67)
t_2
(if (<= U 2.1e-302)
(sqrt
(+
(* 2.0 t_3)
(* 2.0 (/ (* (+ (* l -2.0) (/ (* n (* l U*)) Om)) t_1) Om))))
(if (<= U 8e-228)
(* (sqrt 2.0) (sqrt (* (* n U) (+ t (* (/ (* l l) Om) -2.0)))))
(if (<= U 1.22e+54)
(pow
(* 2.0 (+ t_3 (/ (+ (/ n (/ Om (* l U*))) (* l -2.0)) (/ Om t_1))))
0.5)
t_2))))))
double code(double n, double U, double t, double l, double Om, double U_42_) {
double t_1 = n * (U * l);
double t_2 = sqrt((2.0 * (U * (n * fma(-2.0, (l * (l / Om)), t)))));
double t_3 = n * (U * t);
double tmp;
if (U <= -1.28e+67) {
tmp = t_2;
} else if (U <= 2.1e-302) {
tmp = sqrt(((2.0 * t_3) + (2.0 * ((((l * -2.0) + ((n * (l * U_42_)) / Om)) * t_1) / Om))));
} else if (U <= 8e-228) {
tmp = sqrt(2.0) * sqrt(((n * U) * (t + (((l * l) / Om) * -2.0))));
} else if (U <= 1.22e+54) {
tmp = pow((2.0 * (t_3 + (((n / (Om / (l * U_42_))) + (l * -2.0)) / (Om / t_1)))), 0.5);
} else {
tmp = t_2;
}
return tmp;
}
function code(n, U, t, l, Om, U_42_) t_1 = Float64(n * Float64(U * l)) t_2 = sqrt(Float64(2.0 * Float64(U * Float64(n * fma(-2.0, Float64(l * Float64(l / Om)), t))))) t_3 = Float64(n * Float64(U * t)) tmp = 0.0 if (U <= -1.28e+67) tmp = t_2; elseif (U <= 2.1e-302) tmp = sqrt(Float64(Float64(2.0 * t_3) + Float64(2.0 * Float64(Float64(Float64(Float64(l * -2.0) + Float64(Float64(n * Float64(l * U_42_)) / Om)) * t_1) / Om)))); elseif (U <= 8e-228) tmp = Float64(sqrt(2.0) * sqrt(Float64(Float64(n * U) * Float64(t + Float64(Float64(Float64(l * l) / Om) * -2.0))))); elseif (U <= 1.22e+54) tmp = Float64(2.0 * Float64(t_3 + Float64(Float64(Float64(n / Float64(Om / Float64(l * U_42_))) + Float64(l * -2.0)) / Float64(Om / t_1)))) ^ 0.5; else tmp = t_2; end return tmp end
code[n_, U_, t_, l_, Om_, U$42$_] := Block[{t$95$1 = N[(n * N[(U * l), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[Sqrt[N[(2.0 * N[(U * N[(n * N[(-2.0 * N[(l * N[(l / Om), $MachinePrecision]), $MachinePrecision] + t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]}, Block[{t$95$3 = N[(n * N[(U * t), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[U, -1.28e+67], t$95$2, If[LessEqual[U, 2.1e-302], N[Sqrt[N[(N[(2.0 * t$95$3), $MachinePrecision] + N[(2.0 * N[(N[(N[(N[(l * -2.0), $MachinePrecision] + N[(N[(n * N[(l * U$42$), $MachinePrecision]), $MachinePrecision] / Om), $MachinePrecision]), $MachinePrecision] * t$95$1), $MachinePrecision] / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], If[LessEqual[U, 8e-228], N[(N[Sqrt[2.0], $MachinePrecision] * N[Sqrt[N[(N[(n * U), $MachinePrecision] * N[(t + N[(N[(N[(l * l), $MachinePrecision] / Om), $MachinePrecision] * -2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], If[LessEqual[U, 1.22e+54], N[Power[N[(2.0 * N[(t$95$3 + N[(N[(N[(n / N[(Om / N[(l * U$42$), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(l * -2.0), $MachinePrecision]), $MachinePrecision] / N[(Om / t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 0.5], $MachinePrecision], t$95$2]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := n \cdot \left(U \cdot \ell\right)\\
t_2 := \sqrt{2 \cdot \left(U \cdot \left(n \cdot \mathsf{fma}\left(-2, \ell \cdot \frac{\ell}{Om}, t\right)\right)\right)}\\
t_3 := n \cdot \left(U \cdot t\right)\\
\mathbf{if}\;U \leq -1.28 \cdot 10^{+67}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;U \leq 2.1 \cdot 10^{-302}:\\
\;\;\;\;\sqrt{2 \cdot t_3 + 2 \cdot \frac{\left(\ell \cdot -2 + \frac{n \cdot \left(\ell \cdot U*\right)}{Om}\right) \cdot t_1}{Om}}\\
\mathbf{elif}\;U \leq 8 \cdot 10^{-228}:\\
\;\;\;\;\sqrt{2} \cdot \sqrt{\left(n \cdot U\right) \cdot \left(t + \frac{\ell \cdot \ell}{Om} \cdot -2\right)}\\
\mathbf{elif}\;U \leq 1.22 \cdot 10^{+54}:\\
\;\;\;\;{\left(2 \cdot \left(t_3 + \frac{\frac{n}{\frac{Om}{\ell \cdot U*}} + \ell \cdot -2}{\frac{Om}{t_1}}\right)\right)}^{0.5}\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if U < -1.28e67 or 1.22e54 < U Initial program 62.2%
associate-*l*47.1%
sub-neg47.1%
associate--l+47.1%
*-commutative47.1%
distribute-rgt-neg-in47.1%
associate-*l/48.2%
associate-*l*48.2%
*-commutative48.2%
*-commutative48.2%
associate-*l*42.2%
unpow242.2%
associate-*l*43.5%
Simplified45.9%
Taylor expanded in n around 0 44.8%
associate-*r*63.5%
+-commutative63.5%
unpow263.5%
fma-def63.5%
associate-*r/67.8%
Simplified67.8%
if -1.28e67 < U < 2.10000000000000013e-302Initial program 47.1%
associate-*l*49.6%
sub-neg49.6%
associate--l+49.6%
*-commutative49.6%
distribute-rgt-neg-in49.6%
associate-*l/52.7%
associate-*l*52.7%
*-commutative52.7%
*-commutative52.7%
associate-*l*47.4%
unpow247.4%
associate-*l*48.5%
Simplified57.2%
Taylor expanded in t around inf 62.9%
Taylor expanded in U* around inf 62.9%
if 2.10000000000000013e-302 < U < 8.00000000000000026e-228Initial program 58.1%
associate-*l*24.2%
sub-neg24.2%
associate--l+24.2%
*-commutative24.2%
distribute-rgt-neg-in24.2%
associate-*l/24.2%
associate-*l*24.2%
*-commutative24.2%
*-commutative24.2%
associate-*l*23.9%
unpow223.9%
associate-*l*24.1%
Simplified24.1%
Taylor expanded in U* around 0 16.6%
associate-*r*44.0%
associate-/l*44.0%
+-commutative44.0%
mul-1-neg44.0%
unsub-neg44.0%
*-commutative44.0%
Simplified44.0%
Taylor expanded in n around 0 50.6%
*-commutative50.6%
unpow250.6%
Simplified50.6%
if 8.00000000000000026e-228 < U < 1.22e54Initial program 46.4%
associate-*l*48.5%
sub-neg48.5%
associate--l+48.5%
*-commutative48.5%
distribute-rgt-neg-in48.5%
associate-*l/53.6%
associate-*l*53.6%
*-commutative53.6%
*-commutative53.6%
associate-*l*52.0%
unpow252.0%
associate-*l*53.7%
Simplified58.9%
Taylor expanded in t around inf 62.7%
Taylor expanded in U* around inf 62.7%
pow1/262.8%
distribute-lft-out62.8%
associate-/l*64.4%
associate-/l*64.4%
*-commutative64.4%
*-commutative64.4%
Applied egg-rr64.4%
Final simplification64.3%
(FPCore (n U t l Om U*)
:precision binary64
(let* ((t_1 (* U* (/ n Om))))
(if (<= l -1.2e+21)
(sqrt (* -2.0 (* (/ (* l (* n l)) Om) (* U (- 2.0 t_1)))))
(if (<= l 9.2e+86)
(sqrt
(*
(* 2.0 n)
(* U (+ t (/ (* l (+ (* l -2.0) (/ (* n (* l U*)) Om))) Om)))))
(* (sqrt 2.0) (* l (sqrt (/ (* n (* U (+ -2.0 t_1))) Om))))))))
double code(double n, double U, double t, double l, double Om, double U_42_) {
double t_1 = U_42_ * (n / Om);
double tmp;
if (l <= -1.2e+21) {
tmp = sqrt((-2.0 * (((l * (n * l)) / Om) * (U * (2.0 - t_1)))));
} else if (l <= 9.2e+86) {
tmp = sqrt(((2.0 * n) * (U * (t + ((l * ((l * -2.0) + ((n * (l * U_42_)) / Om))) / Om)))));
} else {
tmp = sqrt(2.0) * (l * sqrt(((n * (U * (-2.0 + t_1))) / 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 = u_42 * (n / om)
if (l <= (-1.2d+21)) then
tmp = sqrt(((-2.0d0) * (((l * (n * l)) / om) * (u * (2.0d0 - t_1)))))
else if (l <= 9.2d+86) then
tmp = sqrt(((2.0d0 * n) * (u * (t + ((l * ((l * (-2.0d0)) + ((n * (l * u_42)) / om))) / om)))))
else
tmp = sqrt(2.0d0) * (l * sqrt(((n * (u * ((-2.0d0) + t_1))) / 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 = U_42_ * (n / Om);
double tmp;
if (l <= -1.2e+21) {
tmp = Math.sqrt((-2.0 * (((l * (n * l)) / Om) * (U * (2.0 - t_1)))));
} else if (l <= 9.2e+86) {
tmp = Math.sqrt(((2.0 * n) * (U * (t + ((l * ((l * -2.0) + ((n * (l * U_42_)) / Om))) / Om)))));
} else {
tmp = Math.sqrt(2.0) * (l * Math.sqrt(((n * (U * (-2.0 + t_1))) / Om)));
}
return tmp;
}
def code(n, U, t, l, Om, U_42_): t_1 = U_42_ * (n / Om) tmp = 0 if l <= -1.2e+21: tmp = math.sqrt((-2.0 * (((l * (n * l)) / Om) * (U * (2.0 - t_1))))) elif l <= 9.2e+86: tmp = math.sqrt(((2.0 * n) * (U * (t + ((l * ((l * -2.0) + ((n * (l * U_42_)) / Om))) / Om))))) else: tmp = math.sqrt(2.0) * (l * math.sqrt(((n * (U * (-2.0 + t_1))) / Om))) return tmp
function code(n, U, t, l, Om, U_42_) t_1 = Float64(U_42_ * Float64(n / Om)) tmp = 0.0 if (l <= -1.2e+21) tmp = sqrt(Float64(-2.0 * Float64(Float64(Float64(l * Float64(n * l)) / Om) * Float64(U * Float64(2.0 - t_1))))); elseif (l <= 9.2e+86) tmp = sqrt(Float64(Float64(2.0 * n) * Float64(U * Float64(t + Float64(Float64(l * Float64(Float64(l * -2.0) + Float64(Float64(n * Float64(l * U_42_)) / Om))) / Om))))); else tmp = Float64(sqrt(2.0) * Float64(l * sqrt(Float64(Float64(n * Float64(U * Float64(-2.0 + t_1))) / Om)))); end return tmp end
function tmp_2 = code(n, U, t, l, Om, U_42_) t_1 = U_42_ * (n / Om); tmp = 0.0; if (l <= -1.2e+21) tmp = sqrt((-2.0 * (((l * (n * l)) / Om) * (U * (2.0 - t_1))))); elseif (l <= 9.2e+86) tmp = sqrt(((2.0 * n) * (U * (t + ((l * ((l * -2.0) + ((n * (l * U_42_)) / Om))) / Om))))); else tmp = sqrt(2.0) * (l * sqrt(((n * (U * (-2.0 + t_1))) / Om))); end tmp_2 = tmp; end
code[n_, U_, t_, l_, Om_, U$42$_] := Block[{t$95$1 = N[(U$42$ * N[(n / Om), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[l, -1.2e+21], N[Sqrt[N[(-2.0 * N[(N[(N[(l * N[(n * l), $MachinePrecision]), $MachinePrecision] / Om), $MachinePrecision] * N[(U * N[(2.0 - t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], If[LessEqual[l, 9.2e+86], N[Sqrt[N[(N[(2.0 * n), $MachinePrecision] * N[(U * N[(t + N[(N[(l * N[(N[(l * -2.0), $MachinePrecision] + N[(N[(n * N[(l * U$42$), $MachinePrecision]), $MachinePrecision] / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], N[(N[Sqrt[2.0], $MachinePrecision] * N[(l * N[Sqrt[N[(N[(n * N[(U * N[(-2.0 + t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / Om), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := U* \cdot \frac{n}{Om}\\
\mathbf{if}\;\ell \leq -1.2 \cdot 10^{+21}:\\
\;\;\;\;\sqrt{-2 \cdot \left(\frac{\ell \cdot \left(n \cdot \ell\right)}{Om} \cdot \left(U \cdot \left(2 - t_1\right)\right)\right)}\\
\mathbf{elif}\;\ell \leq 9.2 \cdot 10^{+86}:\\
\;\;\;\;\sqrt{\left(2 \cdot n\right) \cdot \left(U \cdot \left(t + \frac{\ell \cdot \left(\ell \cdot -2 + \frac{n \cdot \left(\ell \cdot U*\right)}{Om}\right)}{Om}\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;\sqrt{2} \cdot \left(\ell \cdot \sqrt{\frac{n \cdot \left(U \cdot \left(-2 + t_1\right)\right)}{Om}}\right)\\
\end{array}
\end{array}
if l < -1.2e21Initial program 22.4%
associate-*l*22.7%
sub-neg22.7%
associate--l+22.7%
*-commutative22.7%
distribute-rgt-neg-in22.7%
associate-*l/29.5%
associate-*l*29.5%
*-commutative29.5%
*-commutative29.5%
associate-*l*29.5%
unpow229.5%
associate-*l*29.7%
Simplified48.6%
Taylor expanded in l around -inf 43.5%
associate-/l*41.9%
unpow241.9%
*-commutative41.9%
mul-1-neg41.9%
associate-/l*41.6%
Simplified41.6%
Taylor expanded in U around 0 43.5%
associate-*r*44.7%
unpow244.7%
*-commutative44.7%
Simplified44.7%
Taylor expanded in l around 0 43.5%
associate-*r*44.7%
unpow244.7%
*-commutative44.7%
associate-/l*44.4%
associate-*l/44.6%
associate-*r*60.2%
associate-/r/60.5%
Simplified60.5%
if -1.2e21 < l < 9.19999999999999958e86Initial program 68.4%
associate-*l*60.8%
sub-neg60.8%
associate--l+60.8%
*-commutative60.8%
distribute-rgt-neg-in60.8%
associate-*l/60.8%
associate-*l*60.8%
*-commutative60.8%
*-commutative60.8%
associate-*l*53.7%
unpow253.7%
associate-*l*55.6%
Simplified55.6%
Taylor expanded in U around 0 61.3%
if 9.19999999999999958e86 < l Initial program 31.1%
associate-*l*26.1%
sub-neg26.1%
associate--l+26.1%
*-commutative26.1%
distribute-rgt-neg-in26.1%
associate-*l/33.5%
associate-*l*33.5%
*-commutative33.5%
*-commutative33.5%
associate-*l*33.4%
unpow233.4%
associate-*l*33.6%
Simplified43.3%
Taylor expanded in t around inf 47.7%
Taylor expanded in U* around inf 48.0%
pow1/248.2%
distribute-lft-out48.2%
associate-/l*48.3%
associate-/l*50.0%
*-commutative50.0%
*-commutative50.0%
Applied egg-rr50.0%
Taylor expanded in l around inf 71.1%
associate-*l*71.2%
*-commutative71.2%
sub-neg71.2%
associate-*l/71.2%
metadata-eval71.2%
Simplified71.2%
Final simplification63.2%
(FPCore (n U t l Om U*)
:precision binary64
(if (or (<= U -9.5e+69) (not (<= U 6.4e+56)))
(sqrt (* 2.0 (* U (* n (fma -2.0 (* l (/ l Om)) t)))))
(pow
(*
2.0
(+
(* n (* U t))
(/ (+ (/ n (/ Om (* l U*))) (* l -2.0)) (/ Om (* n (* U l))))))
0.5)))
double code(double n, double U, double t, double l, double Om, double U_42_) {
double tmp;
if ((U <= -9.5e+69) || !(U <= 6.4e+56)) {
tmp = sqrt((2.0 * (U * (n * fma(-2.0, (l * (l / Om)), t)))));
} else {
tmp = pow((2.0 * ((n * (U * t)) + (((n / (Om / (l * U_42_))) + (l * -2.0)) / (Om / (n * (U * l)))))), 0.5);
}
return tmp;
}
function code(n, U, t, l, Om, U_42_) tmp = 0.0 if ((U <= -9.5e+69) || !(U <= 6.4e+56)) tmp = sqrt(Float64(2.0 * Float64(U * Float64(n * fma(-2.0, Float64(l * Float64(l / Om)), t))))); else tmp = Float64(2.0 * Float64(Float64(n * Float64(U * t)) + Float64(Float64(Float64(n / Float64(Om / Float64(l * U_42_))) + Float64(l * -2.0)) / Float64(Om / Float64(n * Float64(U * l)))))) ^ 0.5; end return tmp end
code[n_, U_, t_, l_, Om_, U$42$_] := If[Or[LessEqual[U, -9.5e+69], N[Not[LessEqual[U, 6.4e+56]], $MachinePrecision]], N[Sqrt[N[(2.0 * N[(U * N[(n * N[(-2.0 * N[(l * N[(l / Om), $MachinePrecision]), $MachinePrecision] + t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], N[Power[N[(2.0 * N[(N[(n * N[(U * t), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(n / N[(Om / N[(l * U$42$), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(l * -2.0), $MachinePrecision]), $MachinePrecision] / N[(Om / N[(n * N[(U * l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 0.5], $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;U \leq -9.5 \cdot 10^{+69} \lor \neg \left(U \leq 6.4 \cdot 10^{+56}\right):\\
\;\;\;\;\sqrt{2 \cdot \left(U \cdot \left(n \cdot \mathsf{fma}\left(-2, \ell \cdot \frac{\ell}{Om}, t\right)\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;{\left(2 \cdot \left(n \cdot \left(U \cdot t\right) + \frac{\frac{n}{\frac{Om}{\ell \cdot U*}} + \ell \cdot -2}{\frac{Om}{n \cdot \left(U \cdot \ell\right)}}\right)\right)}^{0.5}\\
\end{array}
\end{array}
if U < -9.4999999999999995e69 or 6.40000000000000007e56 < U Initial program 62.2%
associate-*l*47.1%
sub-neg47.1%
associate--l+47.1%
*-commutative47.1%
distribute-rgt-neg-in47.1%
associate-*l/48.2%
associate-*l*48.2%
*-commutative48.2%
*-commutative48.2%
associate-*l*42.2%
unpow242.2%
associate-*l*43.5%
Simplified45.9%
Taylor expanded in n around 0 44.8%
associate-*r*63.5%
+-commutative63.5%
unpow263.5%
fma-def63.5%
associate-*r/67.8%
Simplified67.8%
if -9.4999999999999995e69 < U < 6.40000000000000007e56Initial program 47.7%
associate-*l*47.1%
sub-neg47.1%
associate--l+47.1%
*-commutative47.1%
distribute-rgt-neg-in47.1%
associate-*l/50.6%
associate-*l*50.6%
*-commutative50.6%
*-commutative50.6%
associate-*l*47.0%
unpow247.0%
associate-*l*48.3%
Simplified55.0%
Taylor expanded in t around inf 58.9%
Taylor expanded in U* around inf 58.9%
pow1/259.0%
distribute-lft-out59.0%
associate-/l*58.4%
associate-/l*59.0%
*-commutative59.0%
*-commutative59.0%
Applied egg-rr59.0%
Final simplification62.1%
(FPCore (n U t l Om U*)
:precision binary64
(let* ((t_1 (* l (* n l))))
(if (<= l -6.5e+20)
(sqrt (* -2.0 (* (/ t_1 Om) (* U (- 2.0 (* U* (/ n Om)))))))
(if (<= l 9.8e+86)
(sqrt
(*
(* 2.0 n)
(* U (+ t (/ (* l (+ (* l -2.0) (/ (* n (* l U*)) Om))) Om)))))
(sqrt (* -2.0 (/ (* t_1 (* U (- 2.0 (/ (* n U*) Om)))) Om)))))))
double code(double n, double U, double t, double l, double Om, double U_42_) {
double t_1 = l * (n * l);
double tmp;
if (l <= -6.5e+20) {
tmp = sqrt((-2.0 * ((t_1 / Om) * (U * (2.0 - (U_42_ * (n / Om)))))));
} else if (l <= 9.8e+86) {
tmp = sqrt(((2.0 * n) * (U * (t + ((l * ((l * -2.0) + ((n * (l * U_42_)) / Om))) / Om)))));
} else {
tmp = sqrt((-2.0 * ((t_1 * (U * (2.0 - ((n * 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) :: t_1
real(8) :: tmp
t_1 = l * (n * l)
if (l <= (-6.5d+20)) then
tmp = sqrt(((-2.0d0) * ((t_1 / om) * (u * (2.0d0 - (u_42 * (n / om)))))))
else if (l <= 9.8d+86) then
tmp = sqrt(((2.0d0 * n) * (u * (t + ((l * ((l * (-2.0d0)) + ((n * (l * u_42)) / om))) / om)))))
else
tmp = sqrt(((-2.0d0) * ((t_1 * (u * (2.0d0 - ((n * 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 t_1 = l * (n * l);
double tmp;
if (l <= -6.5e+20) {
tmp = Math.sqrt((-2.0 * ((t_1 / Om) * (U * (2.0 - (U_42_ * (n / Om)))))));
} else if (l <= 9.8e+86) {
tmp = Math.sqrt(((2.0 * n) * (U * (t + ((l * ((l * -2.0) + ((n * (l * U_42_)) / Om))) / Om)))));
} else {
tmp = Math.sqrt((-2.0 * ((t_1 * (U * (2.0 - ((n * U_42_) / Om)))) / Om)));
}
return tmp;
}
def code(n, U, t, l, Om, U_42_): t_1 = l * (n * l) tmp = 0 if l <= -6.5e+20: tmp = math.sqrt((-2.0 * ((t_1 / Om) * (U * (2.0 - (U_42_ * (n / Om))))))) elif l <= 9.8e+86: tmp = math.sqrt(((2.0 * n) * (U * (t + ((l * ((l * -2.0) + ((n * (l * U_42_)) / Om))) / Om))))) else: tmp = math.sqrt((-2.0 * ((t_1 * (U * (2.0 - ((n * U_42_) / Om)))) / Om))) return tmp
function code(n, U, t, l, Om, U_42_) t_1 = Float64(l * Float64(n * l)) tmp = 0.0 if (l <= -6.5e+20) tmp = sqrt(Float64(-2.0 * Float64(Float64(t_1 / Om) * Float64(U * Float64(2.0 - Float64(U_42_ * Float64(n / Om))))))); elseif (l <= 9.8e+86) tmp = sqrt(Float64(Float64(2.0 * n) * Float64(U * Float64(t + Float64(Float64(l * Float64(Float64(l * -2.0) + Float64(Float64(n * Float64(l * U_42_)) / Om))) / Om))))); else tmp = sqrt(Float64(-2.0 * Float64(Float64(t_1 * Float64(U * Float64(2.0 - Float64(Float64(n * U_42_) / Om)))) / Om))); end return tmp end
function tmp_2 = code(n, U, t, l, Om, U_42_) t_1 = l * (n * l); tmp = 0.0; if (l <= -6.5e+20) tmp = sqrt((-2.0 * ((t_1 / Om) * (U * (2.0 - (U_42_ * (n / Om))))))); elseif (l <= 9.8e+86) tmp = sqrt(((2.0 * n) * (U * (t + ((l * ((l * -2.0) + ((n * (l * U_42_)) / Om))) / Om))))); else tmp = sqrt((-2.0 * ((t_1 * (U * (2.0 - ((n * U_42_) / Om)))) / Om))); end tmp_2 = tmp; end
code[n_, U_, t_, l_, Om_, U$42$_] := Block[{t$95$1 = N[(l * N[(n * l), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[l, -6.5e+20], N[Sqrt[N[(-2.0 * N[(N[(t$95$1 / Om), $MachinePrecision] * N[(U * N[(2.0 - N[(U$42$ * N[(n / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], If[LessEqual[l, 9.8e+86], N[Sqrt[N[(N[(2.0 * n), $MachinePrecision] * N[(U * N[(t + N[(N[(l * N[(N[(l * -2.0), $MachinePrecision] + N[(N[(n * N[(l * U$42$), $MachinePrecision]), $MachinePrecision] / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], N[Sqrt[N[(-2.0 * N[(N[(t$95$1 * N[(U * N[(2.0 - N[(N[(n * U$42$), $MachinePrecision] / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / Om), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \ell \cdot \left(n \cdot \ell\right)\\
\mathbf{if}\;\ell \leq -6.5 \cdot 10^{+20}:\\
\;\;\;\;\sqrt{-2 \cdot \left(\frac{t_1}{Om} \cdot \left(U \cdot \left(2 - U* \cdot \frac{n}{Om}\right)\right)\right)}\\
\mathbf{elif}\;\ell \leq 9.8 \cdot 10^{+86}:\\
\;\;\;\;\sqrt{\left(2 \cdot n\right) \cdot \left(U \cdot \left(t + \frac{\ell \cdot \left(\ell \cdot -2 + \frac{n \cdot \left(\ell \cdot U*\right)}{Om}\right)}{Om}\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;\sqrt{-2 \cdot \frac{t_1 \cdot \left(U \cdot \left(2 - \frac{n \cdot U*}{Om}\right)\right)}{Om}}\\
\end{array}
\end{array}
if l < -6.5e20Initial program 22.4%
associate-*l*22.7%
sub-neg22.7%
associate--l+22.7%
*-commutative22.7%
distribute-rgt-neg-in22.7%
associate-*l/29.5%
associate-*l*29.5%
*-commutative29.5%
*-commutative29.5%
associate-*l*29.5%
unpow229.5%
associate-*l*29.7%
Simplified48.6%
Taylor expanded in l around -inf 43.5%
associate-/l*41.9%
unpow241.9%
*-commutative41.9%
mul-1-neg41.9%
associate-/l*41.6%
Simplified41.6%
Taylor expanded in U around 0 43.5%
associate-*r*44.7%
unpow244.7%
*-commutative44.7%
Simplified44.7%
Taylor expanded in l around 0 43.5%
associate-*r*44.7%
unpow244.7%
*-commutative44.7%
associate-/l*44.4%
associate-*l/44.6%
associate-*r*60.2%
associate-/r/60.5%
Simplified60.5%
if -6.5e20 < l < 9.7999999999999999e86Initial program 68.4%
associate-*l*60.8%
sub-neg60.8%
associate--l+60.8%
*-commutative60.8%
distribute-rgt-neg-in60.8%
associate-*l/60.8%
associate-*l*60.8%
*-commutative60.8%
*-commutative60.8%
associate-*l*53.7%
unpow253.7%
associate-*l*55.6%
Simplified55.6%
Taylor expanded in U around 0 61.3%
if 9.7999999999999999e86 < l Initial program 31.1%
associate-*l*26.1%
sub-neg26.1%
associate--l+26.1%
*-commutative26.1%
distribute-rgt-neg-in26.1%
associate-*l/33.5%
associate-*l*33.5%
*-commutative33.5%
*-commutative33.5%
associate-*l*33.4%
unpow233.4%
associate-*l*33.6%
Simplified43.3%
Taylor expanded in l around -inf 39.5%
associate-/l*37.7%
unpow237.7%
*-commutative37.7%
mul-1-neg37.7%
associate-/l*35.9%
Simplified35.9%
Taylor expanded in U around 0 39.5%
associate-*r*43.2%
unpow243.2%
*-commutative43.2%
Simplified43.2%
Taylor expanded in n around 0 43.2%
unpow243.2%
associate-*r*54.0%
Simplified54.0%
Final simplification59.6%
(FPCore (n U t l Om U*) :precision binary64 (if (or (<= l -6.2e+19) (not (<= l 3e-20))) (sqrt (* -2.0 (* (/ (* l (* n l)) Om) (* U (- 2.0 (* U* (/ n Om))))))) (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 <= -6.2e+19) || !(l <= 3e-20)) {
tmp = sqrt((-2.0 * (((l * (n * l)) / Om) * (U * (2.0 - (U_42_ * (n / Om)))))));
} 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 <= (-6.2d+19)) .or. (.not. (l <= 3d-20))) then
tmp = sqrt(((-2.0d0) * (((l * (n * l)) / om) * (u * (2.0d0 - (u_42 * (n / om)))))))
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 <= -6.2e+19) || !(l <= 3e-20)) {
tmp = Math.sqrt((-2.0 * (((l * (n * l)) / Om) * (U * (2.0 - (U_42_ * (n / Om)))))));
} else {
tmp = Math.sqrt((2.0 * (U * (n * t))));
}
return tmp;
}
def code(n, U, t, l, Om, U_42_): tmp = 0 if (l <= -6.2e+19) or not (l <= 3e-20): tmp = math.sqrt((-2.0 * (((l * (n * l)) / Om) * (U * (2.0 - (U_42_ * (n / Om))))))) 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 <= -6.2e+19) || !(l <= 3e-20)) tmp = sqrt(Float64(-2.0 * Float64(Float64(Float64(l * Float64(n * l)) / Om) * Float64(U * Float64(2.0 - Float64(U_42_ * Float64(n / Om))))))); 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 <= -6.2e+19) || ~((l <= 3e-20))) tmp = sqrt((-2.0 * (((l * (n * l)) / Om) * (U * (2.0 - (U_42_ * (n / Om))))))); else tmp = sqrt((2.0 * (U * (n * t)))); end tmp_2 = tmp; end
code[n_, U_, t_, l_, Om_, U$42$_] := If[Or[LessEqual[l, -6.2e+19], N[Not[LessEqual[l, 3e-20]], $MachinePrecision]], N[Sqrt[N[(-2.0 * N[(N[(N[(l * N[(n * l), $MachinePrecision]), $MachinePrecision] / Om), $MachinePrecision] * N[(U * N[(2.0 - N[(U$42$ * N[(n / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $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 -6.2 \cdot 10^{+19} \lor \neg \left(\ell \leq 3 \cdot 10^{-20}\right):\\
\;\;\;\;\sqrt{-2 \cdot \left(\frac{\ell \cdot \left(n \cdot \ell\right)}{Om} \cdot \left(U \cdot \left(2 - U* \cdot \frac{n}{Om}\right)\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;\sqrt{2 \cdot \left(U \cdot \left(n \cdot t\right)\right)}\\
\end{array}
\end{array}
if l < -6.2e19 or 3.00000000000000029e-20 < l Initial program 32.7%
associate-*l*30.5%
sub-neg30.5%
associate--l+30.5%
*-commutative30.5%
distribute-rgt-neg-in30.5%
associate-*l/36.6%
associate-*l*36.6%
*-commutative36.6%
*-commutative36.6%
associate-*l*36.6%
unpow236.6%
associate-*l*36.8%
Simplified48.7%
Taylor expanded in l around -inf 42.3%
associate-/l*40.8%
unpow240.8%
*-commutative40.8%
mul-1-neg40.8%
associate-/l*40.6%
Simplified40.6%
Taylor expanded in U around 0 42.3%
associate-*r*44.6%
unpow244.6%
*-commutative44.6%
Simplified44.6%
Taylor expanded in l around 0 42.3%
associate-*r*44.6%
unpow244.6%
*-commutative44.6%
associate-/l*43.6%
associate-*l/42.8%
associate-*r*53.1%
associate-/r/54.9%
Simplified54.9%
if -6.2e19 < l < 3.00000000000000029e-20Initial program 68.3%
associate-*l*60.0%
sub-neg60.0%
associate--l+60.0%
*-commutative60.0%
distribute-rgt-neg-in60.0%
associate-*l/60.0%
associate-*l*60.0%
*-commutative60.0%
*-commutative60.0%
associate-*l*52.2%
unpow252.2%
associate-*l*54.3%
Simplified54.3%
Taylor expanded in t around inf 48.5%
Taylor expanded in n around 0 48.5%
associate-*r*55.6%
Simplified55.6%
Final simplification55.3%
(FPCore (n U t l Om U*)
:precision binary64
(let* ((t_1 (* l (* n l))))
(if (<= l -4.2e+14)
(sqrt (* -2.0 (* (/ t_1 Om) (* U (- 2.0 (* U* (/ n Om)))))))
(if (<= l 4.3e-20)
(sqrt (* 2.0 (* U (* n t))))
(sqrt (* -2.0 (/ (* t_1 (* U (- 2.0 (/ (* n U*) Om)))) Om)))))))
double code(double n, double U, double t, double l, double Om, double U_42_) {
double t_1 = l * (n * l);
double tmp;
if (l <= -4.2e+14) {
tmp = sqrt((-2.0 * ((t_1 / Om) * (U * (2.0 - (U_42_ * (n / Om)))))));
} else if (l <= 4.3e-20) {
tmp = sqrt((2.0 * (U * (n * t))));
} else {
tmp = sqrt((-2.0 * ((t_1 * (U * (2.0 - ((n * 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) :: t_1
real(8) :: tmp
t_1 = l * (n * l)
if (l <= (-4.2d+14)) then
tmp = sqrt(((-2.0d0) * ((t_1 / om) * (u * (2.0d0 - (u_42 * (n / om)))))))
else if (l <= 4.3d-20) then
tmp = sqrt((2.0d0 * (u * (n * t))))
else
tmp = sqrt(((-2.0d0) * ((t_1 * (u * (2.0d0 - ((n * 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 t_1 = l * (n * l);
double tmp;
if (l <= -4.2e+14) {
tmp = Math.sqrt((-2.0 * ((t_1 / Om) * (U * (2.0 - (U_42_ * (n / Om)))))));
} else if (l <= 4.3e-20) {
tmp = Math.sqrt((2.0 * (U * (n * t))));
} else {
tmp = Math.sqrt((-2.0 * ((t_1 * (U * (2.0 - ((n * U_42_) / Om)))) / Om)));
}
return tmp;
}
def code(n, U, t, l, Om, U_42_): t_1 = l * (n * l) tmp = 0 if l <= -4.2e+14: tmp = math.sqrt((-2.0 * ((t_1 / Om) * (U * (2.0 - (U_42_ * (n / Om))))))) elif l <= 4.3e-20: tmp = math.sqrt((2.0 * (U * (n * t)))) else: tmp = math.sqrt((-2.0 * ((t_1 * (U * (2.0 - ((n * U_42_) / Om)))) / Om))) return tmp
function code(n, U, t, l, Om, U_42_) t_1 = Float64(l * Float64(n * l)) tmp = 0.0 if (l <= -4.2e+14) tmp = sqrt(Float64(-2.0 * Float64(Float64(t_1 / Om) * Float64(U * Float64(2.0 - Float64(U_42_ * Float64(n / Om))))))); elseif (l <= 4.3e-20) tmp = sqrt(Float64(2.0 * Float64(U * Float64(n * t)))); else tmp = sqrt(Float64(-2.0 * Float64(Float64(t_1 * Float64(U * Float64(2.0 - Float64(Float64(n * U_42_) / Om)))) / Om))); end return tmp end
function tmp_2 = code(n, U, t, l, Om, U_42_) t_1 = l * (n * l); tmp = 0.0; if (l <= -4.2e+14) tmp = sqrt((-2.0 * ((t_1 / Om) * (U * (2.0 - (U_42_ * (n / Om))))))); elseif (l <= 4.3e-20) tmp = sqrt((2.0 * (U * (n * t)))); else tmp = sqrt((-2.0 * ((t_1 * (U * (2.0 - ((n * U_42_) / Om)))) / Om))); end tmp_2 = tmp; end
code[n_, U_, t_, l_, Om_, U$42$_] := Block[{t$95$1 = N[(l * N[(n * l), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[l, -4.2e+14], N[Sqrt[N[(-2.0 * N[(N[(t$95$1 / Om), $MachinePrecision] * N[(U * N[(2.0 - N[(U$42$ * N[(n / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], If[LessEqual[l, 4.3e-20], N[Sqrt[N[(2.0 * N[(U * N[(n * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], N[Sqrt[N[(-2.0 * N[(N[(t$95$1 * N[(U * N[(2.0 - N[(N[(n * U$42$), $MachinePrecision] / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / Om), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \ell \cdot \left(n \cdot \ell\right)\\
\mathbf{if}\;\ell \leq -4.2 \cdot 10^{+14}:\\
\;\;\;\;\sqrt{-2 \cdot \left(\frac{t_1}{Om} \cdot \left(U \cdot \left(2 - U* \cdot \frac{n}{Om}\right)\right)\right)}\\
\mathbf{elif}\;\ell \leq 4.3 \cdot 10^{-20}:\\
\;\;\;\;\sqrt{2 \cdot \left(U \cdot \left(n \cdot t\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;\sqrt{-2 \cdot \frac{t_1 \cdot \left(U \cdot \left(2 - \frac{n \cdot U*}{Om}\right)\right)}{Om}}\\
\end{array}
\end{array}
if l < -4.2e14Initial program 22.4%
associate-*l*22.7%
sub-neg22.7%
associate--l+22.7%
*-commutative22.7%
distribute-rgt-neg-in22.7%
associate-*l/29.5%
associate-*l*29.5%
*-commutative29.5%
*-commutative29.5%
associate-*l*29.5%
unpow229.5%
associate-*l*29.7%
Simplified48.6%
Taylor expanded in l around -inf 43.5%
associate-/l*41.9%
unpow241.9%
*-commutative41.9%
mul-1-neg41.9%
associate-/l*41.6%
Simplified41.6%
Taylor expanded in U around 0 43.5%
associate-*r*44.7%
unpow244.7%
*-commutative44.7%
Simplified44.7%
Taylor expanded in l around 0 43.5%
associate-*r*44.7%
unpow244.7%
*-commutative44.7%
associate-/l*44.4%
associate-*l/44.6%
associate-*r*60.2%
associate-/r/60.5%
Simplified60.5%
if -4.2e14 < l < 4.30000000000000011e-20Initial program 68.3%
associate-*l*60.0%
sub-neg60.0%
associate--l+60.0%
*-commutative60.0%
distribute-rgt-neg-in60.0%
associate-*l/60.0%
associate-*l*60.0%
*-commutative60.0%
*-commutative60.0%
associate-*l*52.2%
unpow252.2%
associate-*l*54.3%
Simplified54.3%
Taylor expanded in t around inf 48.5%
Taylor expanded in n around 0 48.5%
associate-*r*55.6%
Simplified55.6%
if 4.30000000000000011e-20 < l Initial program 39.2%
associate-*l*35.3%
sub-neg35.3%
associate--l+35.3%
*-commutative35.3%
distribute-rgt-neg-in35.3%
associate-*l/41.1%
associate-*l*41.1%
*-commutative41.1%
*-commutative41.1%
associate-*l*41.0%
unpow241.0%
associate-*l*41.2%
Simplified48.8%
Taylor expanded in l around -inf 41.5%
associate-/l*40.1%
unpow240.1%
*-commutative40.1%
mul-1-neg40.1%
associate-/l*40.0%
Simplified40.0%
Taylor expanded in U around 0 41.5%
associate-*r*44.5%
unpow244.5%
*-commutative44.5%
Simplified44.5%
Taylor expanded in n around 0 44.5%
unpow244.5%
associate-*r*52.9%
Simplified52.9%
Final simplification55.7%
(FPCore (n U t l Om U*) :precision binary64 (if (or (<= Om -2400.0) (not (<= Om 7.2e-233))) (sqrt (* (* 2.0 n) (* U (+ t (* -2.0 (* l (/ l Om))))))) (sqrt (* -2.0 (/ n (/ Om (/ (- n) (/ Om (* (* l l) (* U U*))))))))))
double code(double n, double U, double t, double l, double Om, double U_42_) {
double tmp;
if ((Om <= -2400.0) || !(Om <= 7.2e-233)) {
tmp = sqrt(((2.0 * n) * (U * (t + (-2.0 * (l * (l / Om)))))));
} else {
tmp = sqrt((-2.0 * (n / (Om / (-n / (Om / ((l * l) * (U * U_42_))))))));
}
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 ((om <= (-2400.0d0)) .or. (.not. (om <= 7.2d-233))) then
tmp = sqrt(((2.0d0 * n) * (u * (t + ((-2.0d0) * (l * (l / om)))))))
else
tmp = sqrt(((-2.0d0) * (n / (om / (-n / (om / ((l * l) * (u * u_42))))))))
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 ((Om <= -2400.0) || !(Om <= 7.2e-233)) {
tmp = Math.sqrt(((2.0 * n) * (U * (t + (-2.0 * (l * (l / Om)))))));
} else {
tmp = Math.sqrt((-2.0 * (n / (Om / (-n / (Om / ((l * l) * (U * U_42_))))))));
}
return tmp;
}
def code(n, U, t, l, Om, U_42_): tmp = 0 if (Om <= -2400.0) or not (Om <= 7.2e-233): tmp = math.sqrt(((2.0 * n) * (U * (t + (-2.0 * (l * (l / Om))))))) else: tmp = math.sqrt((-2.0 * (n / (Om / (-n / (Om / ((l * l) * (U * U_42_)))))))) return tmp
function code(n, U, t, l, Om, U_42_) tmp = 0.0 if ((Om <= -2400.0) || !(Om <= 7.2e-233)) tmp = sqrt(Float64(Float64(2.0 * n) * Float64(U * Float64(t + Float64(-2.0 * Float64(l * Float64(l / Om))))))); else tmp = sqrt(Float64(-2.0 * Float64(n / Float64(Om / Float64(Float64(-n) / Float64(Om / Float64(Float64(l * l) * Float64(U * U_42_)))))))); end return tmp end
function tmp_2 = code(n, U, t, l, Om, U_42_) tmp = 0.0; if ((Om <= -2400.0) || ~((Om <= 7.2e-233))) tmp = sqrt(((2.0 * n) * (U * (t + (-2.0 * (l * (l / Om))))))); else tmp = sqrt((-2.0 * (n / (Om / (-n / (Om / ((l * l) * (U * U_42_)))))))); end tmp_2 = tmp; end
code[n_, U_, t_, l_, Om_, U$42$_] := If[Or[LessEqual[Om, -2400.0], N[Not[LessEqual[Om, 7.2e-233]], $MachinePrecision]], N[Sqrt[N[(N[(2.0 * n), $MachinePrecision] * N[(U * N[(t + N[(-2.0 * N[(l * N[(l / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], N[Sqrt[N[(-2.0 * N[(n / N[(Om / N[((-n) / N[(Om / N[(N[(l * l), $MachinePrecision] * N[(U * U$42$), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;Om \leq -2400 \lor \neg \left(Om \leq 7.2 \cdot 10^{-233}\right):\\
\;\;\;\;\sqrt{\left(2 \cdot n\right) \cdot \left(U \cdot \left(t + -2 \cdot \left(\ell \cdot \frac{\ell}{Om}\right)\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;\sqrt{-2 \cdot \frac{n}{\frac{Om}{\frac{-n}{\frac{Om}{\left(\ell \cdot \ell\right) \cdot \left(U \cdot U*\right)}}}}}\\
\end{array}
\end{array}
if Om < -2400 or 7.20000000000000014e-233 < Om Initial program 52.7%
associate-*l*48.7%
sub-neg48.7%
associate--l+48.7%
*-commutative48.7%
distribute-rgt-neg-in48.7%
associate-*l/52.3%
associate-*l*52.3%
*-commutative52.3%
*-commutative52.3%
associate-*l*46.8%
unpow246.8%
associate-*l*48.0%
Simplified49.2%
Taylor expanded in n around 0 46.0%
*-commutative46.0%
unpow246.0%
associate-*r/49.7%
Simplified49.7%
if -2400 < Om < 7.20000000000000014e-233Initial program 53.0%
associate-*l*42.8%
sub-neg42.8%
associate--l+42.8%
*-commutative42.8%
distribute-rgt-neg-in42.8%
associate-*l/42.8%
associate-*l*42.8%
*-commutative42.8%
*-commutative42.8%
associate-*l*41.5%
unpow241.5%
associate-*l*43.0%
Simplified59.0%
Taylor expanded in l around -inf 47.5%
associate-/l*45.1%
unpow245.1%
*-commutative45.1%
mul-1-neg45.1%
associate-/l*44.8%
Simplified44.8%
Taylor expanded in U* around inf 42.5%
mul-1-neg42.5%
associate-/l*42.5%
unpow242.5%
*-commutative42.5%
Simplified42.5%
Final simplification47.7%
(FPCore (n U t l Om U*)
:precision binary64
(if (<= l -1.9e+55)
(sqrt (* 2.0 (/ (* (* (* l l) (* U U*)) (* n n)) (* Om Om))))
(if (<= l 6.7e-26)
(sqrt (* 2.0 (* U (* n t))))
(sqrt (* (* 2.0 n) (* U (+ 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 <= -1.9e+55) {
tmp = sqrt((2.0 * ((((l * l) * (U * U_42_)) * (n * n)) / (Om * Om))));
} else if (l <= 6.7e-26) {
tmp = sqrt((2.0 * (U * (n * t))));
} else {
tmp = sqrt(((2.0 * n) * (U * (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 <= (-1.9d+55)) then
tmp = sqrt((2.0d0 * ((((l * l) * (u * u_42)) * (n * n)) / (om * om))))
else if (l <= 6.7d-26) then
tmp = sqrt((2.0d0 * (u * (n * t))))
else
tmp = sqrt(((2.0d0 * n) * (u * (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 <= -1.9e+55) {
tmp = Math.sqrt((2.0 * ((((l * l) * (U * U_42_)) * (n * n)) / (Om * Om))));
} else if (l <= 6.7e-26) {
tmp = Math.sqrt((2.0 * (U * (n * t))));
} else {
tmp = Math.sqrt(((2.0 * n) * (U * (t + (-2.0 * (l * (l / Om)))))));
}
return tmp;
}
def code(n, U, t, l, Om, U_42_): tmp = 0 if l <= -1.9e+55: tmp = math.sqrt((2.0 * ((((l * l) * (U * U_42_)) * (n * n)) / (Om * Om)))) elif l <= 6.7e-26: tmp = math.sqrt((2.0 * (U * (n * t)))) else: tmp = math.sqrt(((2.0 * n) * (U * (t + (-2.0 * (l * (l / Om))))))) return tmp
function code(n, U, t, l, Om, U_42_) tmp = 0.0 if (l <= -1.9e+55) tmp = sqrt(Float64(2.0 * Float64(Float64(Float64(Float64(l * l) * Float64(U * U_42_)) * Float64(n * n)) / Float64(Om * Om)))); elseif (l <= 6.7e-26) tmp = sqrt(Float64(2.0 * Float64(U * Float64(n * t)))); else tmp = sqrt(Float64(Float64(2.0 * n) * Float64(U * Float64(t + Float64(-2.0 * Float64(l * Float64(l / Om))))))); end return tmp end
function tmp_2 = code(n, U, t, l, Om, U_42_) tmp = 0.0; if (l <= -1.9e+55) tmp = sqrt((2.0 * ((((l * l) * (U * U_42_)) * (n * n)) / (Om * Om)))); elseif (l <= 6.7e-26) tmp = sqrt((2.0 * (U * (n * t)))); else tmp = sqrt(((2.0 * n) * (U * (t + (-2.0 * (l * (l / Om))))))); end tmp_2 = tmp; end
code[n_, U_, t_, l_, Om_, U$42$_] := If[LessEqual[l, -1.9e+55], N[Sqrt[N[(2.0 * N[(N[(N[(N[(l * l), $MachinePrecision] * N[(U * U$42$), $MachinePrecision]), $MachinePrecision] * N[(n * n), $MachinePrecision]), $MachinePrecision] / N[(Om * Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], If[LessEqual[l, 6.7e-26], N[Sqrt[N[(2.0 * N[(U * N[(n * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], N[Sqrt[N[(N[(2.0 * n), $MachinePrecision] * N[(U * N[(t + N[(-2.0 * N[(l * N[(l / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;\ell \leq -1.9 \cdot 10^{+55}:\\
\;\;\;\;\sqrt{2 \cdot \frac{\left(\left(\ell \cdot \ell\right) \cdot \left(U \cdot U*\right)\right) \cdot \left(n \cdot n\right)}{Om \cdot Om}}\\
\mathbf{elif}\;\ell \leq 6.7 \cdot 10^{-26}:\\
\;\;\;\;\sqrt{2 \cdot \left(U \cdot \left(n \cdot t\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;\sqrt{\left(2 \cdot n\right) \cdot \left(U \cdot \left(t + -2 \cdot \left(\ell \cdot \frac{\ell}{Om}\right)\right)\right)}\\
\end{array}
\end{array}
if l < -1.9e55Initial program 16.6%
associate-*l*16.9%
sub-neg16.9%
associate--l+16.9%
*-commutative16.9%
distribute-rgt-neg-in16.9%
associate-*l/25.7%
associate-*l*25.7%
*-commutative25.7%
*-commutative25.7%
associate-*l*25.7%
unpow225.7%
associate-*l*25.9%
Simplified50.5%
Taylor expanded in U* around inf 31.0%
unpow231.0%
unpow231.0%
*-commutative31.0%
unpow231.0%
Simplified31.0%
if -1.9e55 < l < 6.70000000000000054e-26Initial program 67.0%
associate-*l*59.2%
sub-neg59.2%
associate--l+59.2%
*-commutative59.2%
distribute-rgt-neg-in59.2%
associate-*l/59.2%
associate-*l*59.2%
*-commutative59.2%
*-commutative59.2%
associate-*l*51.9%
unpow251.9%
associate-*l*53.8%
Simplified53.8%
Taylor expanded in t around inf 47.8%
Taylor expanded in n around 0 47.7%
associate-*r*54.5%
Simplified54.5%
if 6.70000000000000054e-26 < l Initial program 38.7%
associate-*l*34.9%
sub-neg34.9%
associate--l+34.9%
*-commutative34.9%
distribute-rgt-neg-in34.9%
associate-*l/40.6%
associate-*l*40.6%
*-commutative40.6%
*-commutative40.6%
associate-*l*40.4%
unpow240.4%
associate-*l*40.6%
Simplified48.1%
Taylor expanded in n around 0 31.0%
*-commutative31.0%
unpow231.0%
associate-*r/36.6%
Simplified36.6%
Final simplification46.6%
(FPCore (n U t l Om U*)
:precision binary64
(if (<= l -1.4e+53)
(sqrt (* (* 2.0 n) (/ n (/ (/ (* Om Om) (* (* l l) U*)) U))))
(if (<= l 3.5e-23)
(sqrt (* 2.0 (* U (* n t))))
(sqrt (* (* 2.0 n) (* U (+ 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 <= -1.4e+53) {
tmp = sqrt(((2.0 * n) * (n / (((Om * Om) / ((l * l) * U_42_)) / U))));
} else if (l <= 3.5e-23) {
tmp = sqrt((2.0 * (U * (n * t))));
} else {
tmp = sqrt(((2.0 * n) * (U * (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 <= (-1.4d+53)) then
tmp = sqrt(((2.0d0 * n) * (n / (((om * om) / ((l * l) * u_42)) / u))))
else if (l <= 3.5d-23) then
tmp = sqrt((2.0d0 * (u * (n * t))))
else
tmp = sqrt(((2.0d0 * n) * (u * (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 <= -1.4e+53) {
tmp = Math.sqrt(((2.0 * n) * (n / (((Om * Om) / ((l * l) * U_42_)) / U))));
} else if (l <= 3.5e-23) {
tmp = Math.sqrt((2.0 * (U * (n * t))));
} else {
tmp = Math.sqrt(((2.0 * n) * (U * (t + (-2.0 * (l * (l / Om)))))));
}
return tmp;
}
def code(n, U, t, l, Om, U_42_): tmp = 0 if l <= -1.4e+53: tmp = math.sqrt(((2.0 * n) * (n / (((Om * Om) / ((l * l) * U_42_)) / U)))) elif l <= 3.5e-23: tmp = math.sqrt((2.0 * (U * (n * t)))) else: tmp = math.sqrt(((2.0 * n) * (U * (t + (-2.0 * (l * (l / Om))))))) return tmp
function code(n, U, t, l, Om, U_42_) tmp = 0.0 if (l <= -1.4e+53) tmp = sqrt(Float64(Float64(2.0 * n) * Float64(n / Float64(Float64(Float64(Om * Om) / Float64(Float64(l * l) * U_42_)) / U)))); elseif (l <= 3.5e-23) tmp = sqrt(Float64(2.0 * Float64(U * Float64(n * t)))); else tmp = sqrt(Float64(Float64(2.0 * n) * Float64(U * Float64(t + Float64(-2.0 * Float64(l * Float64(l / Om))))))); end return tmp end
function tmp_2 = code(n, U, t, l, Om, U_42_) tmp = 0.0; if (l <= -1.4e+53) tmp = sqrt(((2.0 * n) * (n / (((Om * Om) / ((l * l) * U_42_)) / U)))); elseif (l <= 3.5e-23) tmp = sqrt((2.0 * (U * (n * t)))); else tmp = sqrt(((2.0 * n) * (U * (t + (-2.0 * (l * (l / Om))))))); end tmp_2 = tmp; end
code[n_, U_, t_, l_, Om_, U$42$_] := If[LessEqual[l, -1.4e+53], N[Sqrt[N[(N[(2.0 * n), $MachinePrecision] * N[(n / N[(N[(N[(Om * Om), $MachinePrecision] / N[(N[(l * l), $MachinePrecision] * U$42$), $MachinePrecision]), $MachinePrecision] / U), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], If[LessEqual[l, 3.5e-23], N[Sqrt[N[(2.0 * N[(U * N[(n * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], N[Sqrt[N[(N[(2.0 * n), $MachinePrecision] * N[(U * N[(t + N[(-2.0 * N[(l * N[(l / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;\ell \leq -1.4 \cdot 10^{+53}:\\
\;\;\;\;\sqrt{\left(2 \cdot n\right) \cdot \frac{n}{\frac{\frac{Om \cdot Om}{\left(\ell \cdot \ell\right) \cdot U*}}{U}}}\\
\mathbf{elif}\;\ell \leq 3.5 \cdot 10^{-23}:\\
\;\;\;\;\sqrt{2 \cdot \left(U \cdot \left(n \cdot t\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;\sqrt{\left(2 \cdot n\right) \cdot \left(U \cdot \left(t + -2 \cdot \left(\ell \cdot \frac{\ell}{Om}\right)\right)\right)}\\
\end{array}
\end{array}
if l < -1.4e53Initial program 16.3%
associate-*l*16.5%
sub-neg16.5%
associate--l+16.5%
*-commutative16.5%
distribute-rgt-neg-in16.5%
associate-*l/25.1%
associate-*l*25.1%
*-commutative25.1%
*-commutative25.1%
associate-*l*25.1%
unpow225.1%
associate-*l*25.3%
Simplified49.2%
Taylor expanded in U* around inf 30.7%
associate-/l*30.7%
associate-*r*33.7%
associate-/r*33.9%
unpow233.9%
*-commutative33.9%
unpow233.9%
Simplified33.9%
if -1.4e53 < l < 3.49999999999999993e-23Initial program 67.4%
associate-*l*59.5%
sub-neg59.5%
associate--l+59.5%
*-commutative59.5%
distribute-rgt-neg-in59.5%
associate-*l/59.5%
associate-*l*59.5%
*-commutative59.5%
*-commutative59.5%
associate-*l*52.2%
unpow252.2%
associate-*l*54.2%
Simplified54.2%
Taylor expanded in t around inf 48.1%
Taylor expanded in n around 0 48.0%
associate-*r*54.8%
Simplified54.8%
if 3.49999999999999993e-23 < l Initial program 38.7%
associate-*l*34.9%
sub-neg34.9%
associate--l+34.9%
*-commutative34.9%
distribute-rgt-neg-in34.9%
associate-*l/40.6%
associate-*l*40.6%
*-commutative40.6%
*-commutative40.6%
associate-*l*40.4%
unpow240.4%
associate-*l*40.6%
Simplified48.1%
Taylor expanded in n around 0 31.0%
*-commutative31.0%
unpow231.0%
associate-*r/36.6%
Simplified36.6%
Final simplification47.1%
(FPCore (n U t l Om U*) :precision binary64 (if (<= t -2.6e+62) (sqrt (* 2.0 (* U (* n t)))) (sqrt (* (* 2.0 n) (* U (+ 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 <= -2.6e+62) {
tmp = sqrt((2.0 * (U * (n * t))));
} else {
tmp = sqrt(((2.0 * n) * (U * (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 <= (-2.6d+62)) then
tmp = sqrt((2.0d0 * (u * (n * t))))
else
tmp = sqrt(((2.0d0 * n) * (u * (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 <= -2.6e+62) {
tmp = Math.sqrt((2.0 * (U * (n * t))));
} else {
tmp = Math.sqrt(((2.0 * n) * (U * (t + (-2.0 * (l * (l / Om)))))));
}
return tmp;
}
def code(n, U, t, l, Om, U_42_): tmp = 0 if t <= -2.6e+62: tmp = math.sqrt((2.0 * (U * (n * t)))) else: tmp = math.sqrt(((2.0 * n) * (U * (t + (-2.0 * (l * (l / Om))))))) return tmp
function code(n, U, t, l, Om, U_42_) tmp = 0.0 if (t <= -2.6e+62) tmp = sqrt(Float64(2.0 * Float64(U * Float64(n * t)))); else tmp = sqrt(Float64(Float64(2.0 * n) * Float64(U * Float64(t + Float64(-2.0 * Float64(l * Float64(l / Om))))))); end return tmp end
function tmp_2 = code(n, U, t, l, Om, U_42_) tmp = 0.0; if (t <= -2.6e+62) tmp = sqrt((2.0 * (U * (n * t)))); else tmp = sqrt(((2.0 * n) * (U * (t + (-2.0 * (l * (l / Om))))))); end tmp_2 = tmp; end
code[n_, U_, t_, l_, Om_, U$42$_] := If[LessEqual[t, -2.6e+62], N[Sqrt[N[(2.0 * N[(U * N[(n * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], N[Sqrt[N[(N[(2.0 * n), $MachinePrecision] * N[(U * N[(t + N[(-2.0 * N[(l * N[(l / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -2.6 \cdot 10^{+62}:\\
\;\;\;\;\sqrt{2 \cdot \left(U \cdot \left(n \cdot t\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;\sqrt{\left(2 \cdot n\right) \cdot \left(U \cdot \left(t + -2 \cdot \left(\ell \cdot \frac{\ell}{Om}\right)\right)\right)}\\
\end{array}
\end{array}
if t < -2.59999999999999984e62Initial program 53.8%
associate-*l*40.2%
sub-neg40.2%
associate--l+40.2%
*-commutative40.2%
distribute-rgt-neg-in40.2%
associate-*l/42.0%
associate-*l*42.0%
*-commutative42.0%
*-commutative42.0%
associate-*l*43.5%
unpow243.5%
associate-*l*43.7%
Simplified52.8%
Taylor expanded in t around inf 43.8%
Taylor expanded in n around 0 43.8%
associate-*r*54.2%
Simplified54.2%
if -2.59999999999999984e62 < t Initial program 52.5%
associate-*l*49.0%
sub-neg49.0%
associate--l+49.0%
*-commutative49.0%
distribute-rgt-neg-in49.0%
associate-*l/51.9%
associate-*l*51.9%
*-commutative51.9%
*-commutative51.9%
associate-*l*45.8%
unpow245.8%
associate-*l*47.4%
Simplified51.6%
Taylor expanded in n around 0 39.7%
*-commutative39.7%
unpow239.7%
associate-*r/42.2%
Simplified42.2%
Final simplification44.8%
(FPCore (n U t l Om U*) :precision binary64 (if (<= l 3.6e+30) (sqrt (* 2.0 (* U (* n t)))) (sqrt (* -2.0 (/ (* 2.0 (* U (* n (* l l)))) Om)))))
double code(double n, double U, double t, double l, double Om, double U_42_) {
double tmp;
if (l <= 3.6e+30) {
tmp = sqrt((2.0 * (U * (n * t))));
} else {
tmp = sqrt((-2.0 * ((2.0 * (U * (n * (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 <= 3.6d+30) then
tmp = sqrt((2.0d0 * (u * (n * t))))
else
tmp = sqrt(((-2.0d0) * ((2.0d0 * (u * (n * (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 <= 3.6e+30) {
tmp = Math.sqrt((2.0 * (U * (n * t))));
} else {
tmp = Math.sqrt((-2.0 * ((2.0 * (U * (n * (l * l)))) / Om)));
}
return tmp;
}
def code(n, U, t, l, Om, U_42_): tmp = 0 if l <= 3.6e+30: tmp = math.sqrt((2.0 * (U * (n * t)))) else: tmp = math.sqrt((-2.0 * ((2.0 * (U * (n * (l * l)))) / Om))) return tmp
function code(n, U, t, l, Om, U_42_) tmp = 0.0 if (l <= 3.6e+30) tmp = sqrt(Float64(2.0 * Float64(U * Float64(n * t)))); else tmp = sqrt(Float64(-2.0 * Float64(Float64(2.0 * Float64(U * Float64(n * Float64(l * l)))) / Om))); end return tmp end
function tmp_2 = code(n, U, t, l, Om, U_42_) tmp = 0.0; if (l <= 3.6e+30) tmp = sqrt((2.0 * (U * (n * t)))); else tmp = sqrt((-2.0 * ((2.0 * (U * (n * (l * l)))) / Om))); end tmp_2 = tmp; end
code[n_, U_, t_, l_, Om_, U$42$_] := If[LessEqual[l, 3.6e+30], N[Sqrt[N[(2.0 * N[(U * N[(n * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], N[Sqrt[N[(-2.0 * N[(N[(2.0 * N[(U * N[(n * N[(l * l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / Om), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;\ell \leq 3.6 \cdot 10^{+30}:\\
\;\;\;\;\sqrt{2 \cdot \left(U \cdot \left(n \cdot t\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;\sqrt{-2 \cdot \frac{2 \cdot \left(U \cdot \left(n \cdot \left(\ell \cdot \ell\right)\right)\right)}{Om}}\\
\end{array}
\end{array}
if l < 3.6000000000000002e30Initial program 58.9%
associate-*l*52.7%
sub-neg52.7%
associate--l+52.7%
*-commutative52.7%
distribute-rgt-neg-in52.7%
associate-*l/54.2%
associate-*l*54.2%
*-commutative54.2%
*-commutative54.2%
associate-*l*48.3%
unpow248.3%
associate-*l*50.0%
Simplified54.2%
Taylor expanded in t around inf 40.1%
Taylor expanded in n around 0 40.1%
associate-*r*46.0%
Simplified46.0%
if 3.6000000000000002e30 < l Initial program 34.4%
associate-*l*30.3%
sub-neg30.3%
associate--l+30.3%
*-commutative30.3%
distribute-rgt-neg-in30.3%
associate-*l/36.5%
associate-*l*36.5%
*-commutative36.5%
*-commutative36.5%
associate-*l*36.3%
unpow236.3%
associate-*l*36.6%
Simplified44.8%
Taylor expanded in l around -inf 39.9%
associate-/l*38.4%
unpow238.4%
*-commutative38.4%
mul-1-neg38.4%
associate-/l*38.4%
Simplified38.4%
Taylor expanded in U around 0 40.0%
associate-*r*43.2%
unpow243.2%
*-commutative43.2%
Simplified43.2%
Taylor expanded in n around 0 43.2%
unpow243.2%
associate-*r*52.2%
Simplified52.2%
Taylor expanded in n around 0 22.9%
associate-*r*26.0%
unpow226.0%
Simplified26.0%
Final simplification41.0%
(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 52.8%
associate-*l*47.1%
sub-neg47.1%
associate--l+47.1%
*-commutative47.1%
distribute-rgt-neg-in47.1%
associate-*l/49.8%
associate-*l*49.8%
*-commutative49.8%
*-commutative49.8%
associate-*l*45.3%
unpow245.3%
associate-*l*46.6%
Simplified51.8%
Taylor expanded in t around inf 33.8%
Taylor expanded in n around 0 33.8%
associate-*r*38.8%
Simplified38.8%
Final simplification38.8%
herbie shell --seed 2023187
(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*))))))