
(FPCore (n U t l Om U*) :precision binary64 (sqrt (* (* (* 2.0 n) U) (- (- t (* 2.0 (/ (* l l) Om))) (* (* n (pow (/ l Om) 2.0)) (- U U*))))))
double code(double n, double U, double t, double l, double Om, double U_42_) {
return sqrt((((2.0 * n) * U) * ((t - (2.0 * ((l * l) / Om))) - ((n * pow((l / Om), 2.0)) * (U - U_42_)))));
}
real(8) function code(n, u, t, l, om, u_42)
real(8), intent (in) :: n
real(8), intent (in) :: u
real(8), intent (in) :: t
real(8), intent (in) :: l
real(8), intent (in) :: om
real(8), intent (in) :: u_42
code = sqrt((((2.0d0 * n) * u) * ((t - (2.0d0 * ((l * l) / om))) - ((n * ((l / om) ** 2.0d0)) * (u - u_42)))))
end function
public static double code(double n, double U, double t, double l, double Om, double U_42_) {
return Math.sqrt((((2.0 * n) * U) * ((t - (2.0 * ((l * l) / Om))) - ((n * Math.pow((l / Om), 2.0)) * (U - U_42_)))));
}
def code(n, U, t, l, Om, U_42_): return math.sqrt((((2.0 * n) * U) * ((t - (2.0 * ((l * l) / Om))) - ((n * math.pow((l / Om), 2.0)) * (U - U_42_)))))
function code(n, U, t, l, Om, U_42_) return sqrt(Float64(Float64(Float64(2.0 * n) * U) * Float64(Float64(t - Float64(2.0 * Float64(Float64(l * l) / Om))) - Float64(Float64(n * (Float64(l / Om) ^ 2.0)) * Float64(U - U_42_))))) end
function tmp = code(n, U, t, l, Om, U_42_) tmp = sqrt((((2.0 * n) * U) * ((t - (2.0 * ((l * l) / Om))) - ((n * ((l / Om) ^ 2.0)) * (U - U_42_))))); end
code[n_, U_, t_, l_, Om_, U$42$_] := N[Sqrt[N[(N[(N[(2.0 * n), $MachinePrecision] * U), $MachinePrecision] * N[(N[(t - N[(2.0 * N[(N[(l * l), $MachinePrecision] / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(n * N[Power[N[(l / Om), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision] * N[(U - U$42$), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]
\begin{array}{l}
\\
\sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(t - 2 \cdot \frac{\ell \cdot \ell}{Om}\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 15 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (n U t l Om U*) :precision binary64 (sqrt (* (* (* 2.0 n) U) (- (- t (* 2.0 (/ (* l l) Om))) (* (* n (pow (/ l Om) 2.0)) (- U U*))))))
double code(double n, double U, double t, double l, double Om, double U_42_) {
return sqrt((((2.0 * n) * U) * ((t - (2.0 * ((l * l) / Om))) - ((n * pow((l / Om), 2.0)) * (U - U_42_)))));
}
real(8) function code(n, u, t, l, om, u_42)
real(8), intent (in) :: n
real(8), intent (in) :: u
real(8), intent (in) :: t
real(8), intent (in) :: l
real(8), intent (in) :: om
real(8), intent (in) :: u_42
code = sqrt((((2.0d0 * n) * u) * ((t - (2.0d0 * ((l * l) / om))) - ((n * ((l / om) ** 2.0d0)) * (u - u_42)))))
end function
public static double code(double n, double U, double t, double l, double Om, double U_42_) {
return Math.sqrt((((2.0 * n) * U) * ((t - (2.0 * ((l * l) / Om))) - ((n * Math.pow((l / Om), 2.0)) * (U - U_42_)))));
}
def code(n, U, t, l, Om, U_42_): return math.sqrt((((2.0 * n) * U) * ((t - (2.0 * ((l * l) / Om))) - ((n * math.pow((l / Om), 2.0)) * (U - U_42_)))))
function code(n, U, t, l, Om, U_42_) return sqrt(Float64(Float64(Float64(2.0 * n) * U) * Float64(Float64(t - Float64(2.0 * Float64(Float64(l * l) / Om))) - Float64(Float64(n * (Float64(l / Om) ^ 2.0)) * Float64(U - U_42_))))) end
function tmp = code(n, U, t, l, Om, U_42_) tmp = sqrt((((2.0 * n) * U) * ((t - (2.0 * ((l * l) / Om))) - ((n * ((l / Om) ^ 2.0)) * (U - U_42_))))); end
code[n_, U_, t_, l_, Om_, U$42$_] := N[Sqrt[N[(N[(N[(2.0 * n), $MachinePrecision] * U), $MachinePrecision] * N[(N[(t - N[(2.0 * N[(N[(l * l), $MachinePrecision] / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(n * N[Power[N[(l / Om), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision] * N[(U - U$42$), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]
\begin{array}{l}
\\
\sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(t - 2 \cdot \frac{\ell \cdot \ell}{Om}\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)}
\end{array}
(FPCore (n U t l Om U*)
:precision binary64
(let* ((t_1 (* (* n (pow (/ l Om) 2.0)) (- U* U)))
(t_2 (* (* (* 2.0 n) U) (+ (- t (* 2.0 (/ (* l l) Om))) t_1))))
(if (<= t_2 5e-280)
(sqrt
(*
(* 2.0 n)
(*
U
(+
t
(/
(+ (* (pow l 2.0) -2.0) (/ (* (pow l 2.0) (* n (- U* U))) Om))
Om)))))
(if (<= t_2 INFINITY)
(sqrt (* (* 2.0 (* n U)) (+ t (- t_1 (* 2.0 (* l (/ l Om)))))))
(sqrt
(*
-2.0
(/ (* U (* (pow l 2.0) (* n (+ 2.0 (/ (* n (- U U*)) Om))))) Om)))))))
double code(double n, double U, double t, double l, double Om, double U_42_) {
double t_1 = (n * pow((l / Om), 2.0)) * (U_42_ - U);
double t_2 = ((2.0 * n) * U) * ((t - (2.0 * ((l * l) / Om))) + t_1);
double tmp;
if (t_2 <= 5e-280) {
tmp = sqrt(((2.0 * n) * (U * (t + (((pow(l, 2.0) * -2.0) + ((pow(l, 2.0) * (n * (U_42_ - U))) / Om)) / Om)))));
} else if (t_2 <= ((double) INFINITY)) {
tmp = sqrt(((2.0 * (n * U)) * (t + (t_1 - (2.0 * (l * (l / Om)))))));
} else {
tmp = sqrt((-2.0 * ((U * (pow(l, 2.0) * (n * (2.0 + ((n * (U - 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 = (n * Math.pow((l / Om), 2.0)) * (U_42_ - U);
double t_2 = ((2.0 * n) * U) * ((t - (2.0 * ((l * l) / Om))) + t_1);
double tmp;
if (t_2 <= 5e-280) {
tmp = Math.sqrt(((2.0 * n) * (U * (t + (((Math.pow(l, 2.0) * -2.0) + ((Math.pow(l, 2.0) * (n * (U_42_ - U))) / Om)) / Om)))));
} else if (t_2 <= Double.POSITIVE_INFINITY) {
tmp = Math.sqrt(((2.0 * (n * U)) * (t + (t_1 - (2.0 * (l * (l / Om)))))));
} else {
tmp = Math.sqrt((-2.0 * ((U * (Math.pow(l, 2.0) * (n * (2.0 + ((n * (U - U_42_)) / Om))))) / Om)));
}
return tmp;
}
def code(n, U, t, l, Om, U_42_): t_1 = (n * math.pow((l / Om), 2.0)) * (U_42_ - U) t_2 = ((2.0 * n) * U) * ((t - (2.0 * ((l * l) / Om))) + t_1) tmp = 0 if t_2 <= 5e-280: tmp = math.sqrt(((2.0 * n) * (U * (t + (((math.pow(l, 2.0) * -2.0) + ((math.pow(l, 2.0) * (n * (U_42_ - U))) / Om)) / Om))))) elif t_2 <= math.inf: tmp = math.sqrt(((2.0 * (n * U)) * (t + (t_1 - (2.0 * (l * (l / Om))))))) else: tmp = math.sqrt((-2.0 * ((U * (math.pow(l, 2.0) * (n * (2.0 + ((n * (U - U_42_)) / Om))))) / Om))) return tmp
function code(n, U, t, l, Om, U_42_) t_1 = Float64(Float64(n * (Float64(l / Om) ^ 2.0)) * Float64(U_42_ - U)) t_2 = Float64(Float64(Float64(2.0 * n) * U) * Float64(Float64(t - Float64(2.0 * Float64(Float64(l * l) / Om))) + t_1)) tmp = 0.0 if (t_2 <= 5e-280) tmp = sqrt(Float64(Float64(2.0 * n) * Float64(U * Float64(t + Float64(Float64(Float64((l ^ 2.0) * -2.0) + Float64(Float64((l ^ 2.0) * Float64(n * Float64(U_42_ - U))) / Om)) / Om))))); elseif (t_2 <= Inf) tmp = sqrt(Float64(Float64(2.0 * Float64(n * U)) * Float64(t + Float64(t_1 - Float64(2.0 * Float64(l * Float64(l / Om))))))); else tmp = sqrt(Float64(-2.0 * Float64(Float64(U * Float64((l ^ 2.0) * Float64(n * Float64(2.0 + Float64(Float64(n * Float64(U - U_42_)) / Om))))) / Om))); end return tmp end
function tmp_2 = code(n, U, t, l, Om, U_42_) t_1 = (n * ((l / Om) ^ 2.0)) * (U_42_ - U); t_2 = ((2.0 * n) * U) * ((t - (2.0 * ((l * l) / Om))) + t_1); tmp = 0.0; if (t_2 <= 5e-280) tmp = sqrt(((2.0 * n) * (U * (t + ((((l ^ 2.0) * -2.0) + (((l ^ 2.0) * (n * (U_42_ - U))) / Om)) / Om))))); elseif (t_2 <= Inf) tmp = sqrt(((2.0 * (n * U)) * (t + (t_1 - (2.0 * (l * (l / Om))))))); else tmp = sqrt((-2.0 * ((U * ((l ^ 2.0) * (n * (2.0 + ((n * (U - U_42_)) / Om))))) / Om))); end tmp_2 = tmp; end
code[n_, U_, t_, l_, Om_, U$42$_] := Block[{t$95$1 = N[(N[(n * N[Power[N[(l / Om), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision] * N[(U$42$ - U), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(N[(2.0 * n), $MachinePrecision] * U), $MachinePrecision] * N[(N[(t - N[(2.0 * N[(N[(l * l), $MachinePrecision] / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$2, 5e-280], N[Sqrt[N[(N[(2.0 * n), $MachinePrecision] * N[(U * N[(t + N[(N[(N[(N[Power[l, 2.0], $MachinePrecision] * -2.0), $MachinePrecision] + N[(N[(N[Power[l, 2.0], $MachinePrecision] * N[(n * N[(U$42$ - U), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / Om), $MachinePrecision]), $MachinePrecision] / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], If[LessEqual[t$95$2, Infinity], N[Sqrt[N[(N[(2.0 * N[(n * U), $MachinePrecision]), $MachinePrecision] * N[(t + N[(t$95$1 - N[(2.0 * N[(l * N[(l / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], N[Sqrt[N[(-2.0 * N[(N[(U * N[(N[Power[l, 2.0], $MachinePrecision] * N[(n * N[(2.0 + N[(N[(n * N[(U - U$42$), $MachinePrecision]), $MachinePrecision] / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / Om), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U* - U\right)\\
t_2 := \left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(t - 2 \cdot \frac{\ell \cdot \ell}{Om}\right) + t\_1\right)\\
\mathbf{if}\;t\_2 \leq 5 \cdot 10^{-280}:\\
\;\;\;\;\sqrt{\left(2 \cdot n\right) \cdot \left(U \cdot \left(t + \frac{{\ell}^{2} \cdot -2 + \frac{{\ell}^{2} \cdot \left(n \cdot \left(U* - U\right)\right)}{Om}}{Om}\right)\right)}\\
\mathbf{elif}\;t\_2 \leq \infty:\\
\;\;\;\;\sqrt{\left(2 \cdot \left(n \cdot U\right)\right) \cdot \left(t + \left(t\_1 - 2 \cdot \left(\ell \cdot \frac{\ell}{Om}\right)\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;\sqrt{-2 \cdot \frac{U \cdot \left({\ell}^{2} \cdot \left(n \cdot \left(2 + \frac{n \cdot \left(U - U*\right)}{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*)))) < 5.00000000000000028e-280Initial program 12.6%
Simplified58.5%
Taylor expanded in Om around -inf 67.8%
if 5.00000000000000028e-280 < (*.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 69.0%
Simplified72.3%
if +inf.0 < (*.f64 (*.f64 (*.f64 #s(literal 2 binary64) n) U) (-.f64 (-.f64 t (*.f64 #s(literal 2 binary64) (/.f64 (*.f64 l l) Om))) (*.f64 (*.f64 n (pow.f64 (/.f64 l Om) #s(literal 2 binary64))) (-.f64 U U*)))) Initial program 0.0%
Simplified8.5%
Taylor expanded in l around 0 27.5%
mul-1-neg27.5%
unsub-neg27.5%
associate-*r/27.5%
metadata-eval27.5%
associate-/l*27.5%
Simplified27.5%
Taylor expanded in Om around inf 27.6%
Taylor expanded in t around 0 39.3%
Final simplification66.3%
(FPCore (n U t l Om U*)
:precision binary64
(let* ((t_1 (+ 2.0 (/ (* n (- U U*)) Om)))
(t_2 (* (* n (pow (/ l Om) 2.0)) (- U* U)))
(t_3 (* (* (* 2.0 n) U) (+ (- t (* 2.0 (/ (* l l) Om))) t_2))))
(if (<= t_3 5e-280)
(sqrt (* (* 2.0 n) (* U (- t (/ (* (pow l 2.0) t_1) Om)))))
(if (<= t_3 INFINITY)
(sqrt (* (* 2.0 (* n U)) (+ t (- t_2 (* 2.0 (* l (/ l Om)))))))
(sqrt (* -2.0 (/ (* U (* (pow l 2.0) (* n t_1))) Om)))))))
double code(double n, double U, double t, double l, double Om, double U_42_) {
double t_1 = 2.0 + ((n * (U - U_42_)) / Om);
double t_2 = (n * pow((l / Om), 2.0)) * (U_42_ - U);
double t_3 = ((2.0 * n) * U) * ((t - (2.0 * ((l * l) / Om))) + t_2);
double tmp;
if (t_3 <= 5e-280) {
tmp = sqrt(((2.0 * n) * (U * (t - ((pow(l, 2.0) * t_1) / Om)))));
} else if (t_3 <= ((double) INFINITY)) {
tmp = sqrt(((2.0 * (n * U)) * (t + (t_2 - (2.0 * (l * (l / Om)))))));
} else {
tmp = sqrt((-2.0 * ((U * (pow(l, 2.0) * (n * t_1))) / 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 + ((n * (U - U_42_)) / Om);
double t_2 = (n * Math.pow((l / Om), 2.0)) * (U_42_ - U);
double t_3 = ((2.0 * n) * U) * ((t - (2.0 * ((l * l) / Om))) + t_2);
double tmp;
if (t_3 <= 5e-280) {
tmp = Math.sqrt(((2.0 * n) * (U * (t - ((Math.pow(l, 2.0) * t_1) / Om)))));
} else if (t_3 <= Double.POSITIVE_INFINITY) {
tmp = Math.sqrt(((2.0 * (n * U)) * (t + (t_2 - (2.0 * (l * (l / Om)))))));
} else {
tmp = Math.sqrt((-2.0 * ((U * (Math.pow(l, 2.0) * (n * t_1))) / Om)));
}
return tmp;
}
def code(n, U, t, l, Om, U_42_): t_1 = 2.0 + ((n * (U - U_42_)) / Om) t_2 = (n * math.pow((l / Om), 2.0)) * (U_42_ - U) t_3 = ((2.0 * n) * U) * ((t - (2.0 * ((l * l) / Om))) + t_2) tmp = 0 if t_3 <= 5e-280: tmp = math.sqrt(((2.0 * n) * (U * (t - ((math.pow(l, 2.0) * t_1) / Om))))) elif t_3 <= math.inf: tmp = math.sqrt(((2.0 * (n * U)) * (t + (t_2 - (2.0 * (l * (l / Om))))))) else: tmp = math.sqrt((-2.0 * ((U * (math.pow(l, 2.0) * (n * t_1))) / Om))) return tmp
function code(n, U, t, l, Om, U_42_) t_1 = Float64(2.0 + Float64(Float64(n * Float64(U - U_42_)) / Om)) t_2 = Float64(Float64(n * (Float64(l / Om) ^ 2.0)) * Float64(U_42_ - U)) t_3 = Float64(Float64(Float64(2.0 * n) * U) * Float64(Float64(t - Float64(2.0 * Float64(Float64(l * l) / Om))) + t_2)) tmp = 0.0 if (t_3 <= 5e-280) tmp = sqrt(Float64(Float64(2.0 * n) * Float64(U * Float64(t - Float64(Float64((l ^ 2.0) * t_1) / Om))))); elseif (t_3 <= Inf) tmp = sqrt(Float64(Float64(2.0 * Float64(n * U)) * Float64(t + Float64(t_2 - Float64(2.0 * Float64(l * Float64(l / Om))))))); else tmp = sqrt(Float64(-2.0 * Float64(Float64(U * Float64((l ^ 2.0) * Float64(n * t_1))) / Om))); end return tmp end
function tmp_2 = code(n, U, t, l, Om, U_42_) t_1 = 2.0 + ((n * (U - U_42_)) / Om); t_2 = (n * ((l / Om) ^ 2.0)) * (U_42_ - U); t_3 = ((2.0 * n) * U) * ((t - (2.0 * ((l * l) / Om))) + t_2); tmp = 0.0; if (t_3 <= 5e-280) tmp = sqrt(((2.0 * n) * (U * (t - (((l ^ 2.0) * t_1) / Om))))); elseif (t_3 <= Inf) tmp = sqrt(((2.0 * (n * U)) * (t + (t_2 - (2.0 * (l * (l / Om))))))); else tmp = sqrt((-2.0 * ((U * ((l ^ 2.0) * (n * t_1))) / Om))); end tmp_2 = tmp; end
code[n_, U_, t_, l_, Om_, U$42$_] := Block[{t$95$1 = N[(2.0 + N[(N[(n * N[(U - U$42$), $MachinePrecision]), $MachinePrecision] / Om), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(n * N[Power[N[(l / Om), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision] * N[(U$42$ - U), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(N[(2.0 * n), $MachinePrecision] * U), $MachinePrecision] * N[(N[(t - N[(2.0 * N[(N[(l * l), $MachinePrecision] / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$2), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$3, 5e-280], N[Sqrt[N[(N[(2.0 * n), $MachinePrecision] * N[(U * N[(t - N[(N[(N[Power[l, 2.0], $MachinePrecision] * t$95$1), $MachinePrecision] / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], If[LessEqual[t$95$3, Infinity], N[Sqrt[N[(N[(2.0 * N[(n * U), $MachinePrecision]), $MachinePrecision] * N[(t + N[(t$95$2 - N[(2.0 * N[(l * N[(l / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], N[Sqrt[N[(-2.0 * N[(N[(U * N[(N[Power[l, 2.0], $MachinePrecision] * N[(n * t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / Om), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := 2 + \frac{n \cdot \left(U - U*\right)}{Om}\\
t_2 := \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U* - U\right)\\
t_3 := \left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(t - 2 \cdot \frac{\ell \cdot \ell}{Om}\right) + t\_2\right)\\
\mathbf{if}\;t\_3 \leq 5 \cdot 10^{-280}:\\
\;\;\;\;\sqrt{\left(2 \cdot n\right) \cdot \left(U \cdot \left(t - \frac{{\ell}^{2} \cdot t\_1}{Om}\right)\right)}\\
\mathbf{elif}\;t\_3 \leq \infty:\\
\;\;\;\;\sqrt{\left(2 \cdot \left(n \cdot U\right)\right) \cdot \left(t + \left(t\_2 - 2 \cdot \left(\ell \cdot \frac{\ell}{Om}\right)\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;\sqrt{-2 \cdot \frac{U \cdot \left({\ell}^{2} \cdot \left(n \cdot t\_1\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*)))) < 5.00000000000000028e-280Initial program 12.6%
Simplified58.5%
Taylor expanded in l around 0 63.2%
mul-1-neg63.2%
unsub-neg63.2%
associate-*r/63.2%
metadata-eval63.2%
associate-/l*60.8%
Simplified60.8%
Taylor expanded in Om around inf 65.7%
Taylor expanded in l around 0 67.8%
if 5.00000000000000028e-280 < (*.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 69.0%
Simplified72.3%
if +inf.0 < (*.f64 (*.f64 (*.f64 #s(literal 2 binary64) n) U) (-.f64 (-.f64 t (*.f64 #s(literal 2 binary64) (/.f64 (*.f64 l l) Om))) (*.f64 (*.f64 n (pow.f64 (/.f64 l Om) #s(literal 2 binary64))) (-.f64 U U*)))) Initial program 0.0%
Simplified8.5%
Taylor expanded in l around 0 27.5%
mul-1-neg27.5%
unsub-neg27.5%
associate-*r/27.5%
metadata-eval27.5%
associate-/l*27.5%
Simplified27.5%
Taylor expanded in Om around inf 27.6%
Taylor expanded in t around 0 39.3%
Final simplification66.3%
(FPCore (n U t l Om U*)
:precision binary64
(if (<= l 2.7e-152)
(sqrt
(+
(* t (* 2.0 (* n U)))
(* (* n (* (pow (/ l Om) 2.0) (- U* U))) (* n (* 2.0 U)))))
(if (<= l 9e-73)
(sqrt (* (* 2.0 n) (* U (+ t (/ (/ (* U* (* n (pow l 2.0))) Om) Om)))))
(sqrt
(*
(* 2.0 n)
(* U (- t (/ (* (pow l 2.0) (+ 2.0 (/ (* n (- U U*)) Om))) Om))))))))
double code(double n, double U, double t, double l, double Om, double U_42_) {
double tmp;
if (l <= 2.7e-152) {
tmp = sqrt(((t * (2.0 * (n * U))) + ((n * (pow((l / Om), 2.0) * (U_42_ - U))) * (n * (2.0 * U)))));
} else if (l <= 9e-73) {
tmp = sqrt(((2.0 * n) * (U * (t + (((U_42_ * (n * pow(l, 2.0))) / Om) / Om)))));
} else {
tmp = sqrt(((2.0 * n) * (U * (t - ((pow(l, 2.0) * (2.0 + ((n * (U - U_42_)) / Om))) / Om)))));
}
return tmp;
}
real(8) function code(n, u, t, l, om, u_42)
real(8), intent (in) :: n
real(8), intent (in) :: u
real(8), intent (in) :: t
real(8), intent (in) :: l
real(8), intent (in) :: om
real(8), intent (in) :: u_42
real(8) :: tmp
if (l <= 2.7d-152) then
tmp = sqrt(((t * (2.0d0 * (n * u))) + ((n * (((l / om) ** 2.0d0) * (u_42 - u))) * (n * (2.0d0 * u)))))
else if (l <= 9d-73) then
tmp = sqrt(((2.0d0 * n) * (u * (t + (((u_42 * (n * (l ** 2.0d0))) / om) / om)))))
else
tmp = sqrt(((2.0d0 * n) * (u * (t - (((l ** 2.0d0) * (2.0d0 + ((n * (u - u_42)) / om))) / om)))))
end if
code = tmp
end function
public static double code(double n, double U, double t, double l, double Om, double U_42_) {
double tmp;
if (l <= 2.7e-152) {
tmp = Math.sqrt(((t * (2.0 * (n * U))) + ((n * (Math.pow((l / Om), 2.0) * (U_42_ - U))) * (n * (2.0 * U)))));
} else if (l <= 9e-73) {
tmp = Math.sqrt(((2.0 * n) * (U * (t + (((U_42_ * (n * Math.pow(l, 2.0))) / Om) / Om)))));
} else {
tmp = Math.sqrt(((2.0 * n) * (U * (t - ((Math.pow(l, 2.0) * (2.0 + ((n * (U - U_42_)) / Om))) / Om)))));
}
return tmp;
}
def code(n, U, t, l, Om, U_42_): tmp = 0 if l <= 2.7e-152: tmp = math.sqrt(((t * (2.0 * (n * U))) + ((n * (math.pow((l / Om), 2.0) * (U_42_ - U))) * (n * (2.0 * U))))) elif l <= 9e-73: tmp = math.sqrt(((2.0 * n) * (U * (t + (((U_42_ * (n * math.pow(l, 2.0))) / Om) / Om))))) else: tmp = math.sqrt(((2.0 * n) * (U * (t - ((math.pow(l, 2.0) * (2.0 + ((n * (U - U_42_)) / Om))) / Om))))) return tmp
function code(n, U, t, l, Om, U_42_) tmp = 0.0 if (l <= 2.7e-152) tmp = sqrt(Float64(Float64(t * Float64(2.0 * Float64(n * U))) + Float64(Float64(n * Float64((Float64(l / Om) ^ 2.0) * Float64(U_42_ - U))) * Float64(n * Float64(2.0 * U))))); elseif (l <= 9e-73) tmp = sqrt(Float64(Float64(2.0 * n) * Float64(U * Float64(t + Float64(Float64(Float64(U_42_ * Float64(n * (l ^ 2.0))) / Om) / Om))))); else tmp = sqrt(Float64(Float64(2.0 * n) * Float64(U * Float64(t - Float64(Float64((l ^ 2.0) * Float64(2.0 + Float64(Float64(n * Float64(U - U_42_)) / Om))) / Om))))); end return tmp end
function tmp_2 = code(n, U, t, l, Om, U_42_) tmp = 0.0; if (l <= 2.7e-152) tmp = sqrt(((t * (2.0 * (n * U))) + ((n * (((l / Om) ^ 2.0) * (U_42_ - U))) * (n * (2.0 * U))))); elseif (l <= 9e-73) tmp = sqrt(((2.0 * n) * (U * (t + (((U_42_ * (n * (l ^ 2.0))) / Om) / Om))))); else tmp = sqrt(((2.0 * n) * (U * (t - (((l ^ 2.0) * (2.0 + ((n * (U - U_42_)) / Om))) / Om))))); end tmp_2 = tmp; end
code[n_, U_, t_, l_, Om_, U$42$_] := If[LessEqual[l, 2.7e-152], N[Sqrt[N[(N[(t * N[(2.0 * N[(n * U), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(n * N[(N[Power[N[(l / Om), $MachinePrecision], 2.0], $MachinePrecision] * N[(U$42$ - U), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(n * N[(2.0 * U), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], If[LessEqual[l, 9e-73], N[Sqrt[N[(N[(2.0 * n), $MachinePrecision] * N[(U * N[(t + N[(N[(N[(U$42$ * N[(n * N[Power[l, 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / Om), $MachinePrecision] / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], N[Sqrt[N[(N[(2.0 * n), $MachinePrecision] * N[(U * N[(t - N[(N[(N[Power[l, 2.0], $MachinePrecision] * N[(2.0 + N[(N[(n * N[(U - U$42$), $MachinePrecision]), $MachinePrecision] / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;\ell \leq 2.7 \cdot 10^{-152}:\\
\;\;\;\;\sqrt{t \cdot \left(2 \cdot \left(n \cdot U\right)\right) + \left(n \cdot \left({\left(\frac{\ell}{Om}\right)}^{2} \cdot \left(U* - U\right)\right)\right) \cdot \left(n \cdot \left(2 \cdot U\right)\right)}\\
\mathbf{elif}\;\ell \leq 9 \cdot 10^{-73}:\\
\;\;\;\;\sqrt{\left(2 \cdot n\right) \cdot \left(U \cdot \left(t + \frac{\frac{U* \cdot \left(n \cdot {\ell}^{2}\right)}{Om}}{Om}\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;\sqrt{\left(2 \cdot n\right) \cdot \left(U \cdot \left(t - \frac{{\ell}^{2} \cdot \left(2 + \frac{n \cdot \left(U - U*\right)}{Om}\right)}{Om}\right)\right)}\\
\end{array}
\end{array}
if l < 2.69999999999999999e-152Initial program 52.1%
Simplified58.8%
Applied egg-rr50.7%
Taylor expanded in t around inf 50.7%
associate-*r*50.7%
associate-*r*50.8%
associate-*r*50.8%
Simplified50.8%
if 2.69999999999999999e-152 < l < 9e-73Initial program 60.2%
Simplified70.4%
Taylor expanded in Om around -inf 53.5%
Taylor expanded in U* around inf 70.4%
associate-*r/70.4%
associate-*r*70.4%
neg-mul-170.4%
Simplified70.4%
if 9e-73 < l Initial program 41.0%
Simplified50.0%
Taylor expanded in l around 0 52.9%
mul-1-neg52.9%
unsub-neg52.9%
associate-*r/52.9%
metadata-eval52.9%
associate-/l*54.2%
Simplified54.2%
Taylor expanded in Om around inf 55.3%
Taylor expanded in l around 0 55.3%
Final simplification53.7%
(FPCore (n U t l Om U*)
:precision binary64
(if (<= Om 1.06e-125)
(sqrt
(*
(* 2.0 n)
(* U (- t (/ (* (pow l 2.0) (+ 2.0 (/ (* n (- U U*)) Om))) Om)))))
(sqrt
(*
(* 2.0 (* n U))
(+ t (- (* n (* (pow (/ l Om) 2.0) (- U* U))) (* 2.0 (* l (/ l Om)))))))))
double code(double n, double U, double t, double l, double Om, double U_42_) {
double tmp;
if (Om <= 1.06e-125) {
tmp = sqrt(((2.0 * n) * (U * (t - ((pow(l, 2.0) * (2.0 + ((n * (U - U_42_)) / Om))) / Om)))));
} else {
tmp = sqrt(((2.0 * (n * U)) * (t + ((n * (pow((l / Om), 2.0) * (U_42_ - U))) - (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 (om <= 1.06d-125) then
tmp = sqrt(((2.0d0 * n) * (u * (t - (((l ** 2.0d0) * (2.0d0 + ((n * (u - u_42)) / om))) / om)))))
else
tmp = sqrt(((2.0d0 * (n * u)) * (t + ((n * (((l / om) ** 2.0d0) * (u_42 - u))) - (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 (Om <= 1.06e-125) {
tmp = Math.sqrt(((2.0 * n) * (U * (t - ((Math.pow(l, 2.0) * (2.0 + ((n * (U - U_42_)) / Om))) / Om)))));
} else {
tmp = Math.sqrt(((2.0 * (n * U)) * (t + ((n * (Math.pow((l / Om), 2.0) * (U_42_ - U))) - (2.0 * (l * (l / Om)))))));
}
return tmp;
}
def code(n, U, t, l, Om, U_42_): tmp = 0 if Om <= 1.06e-125: tmp = math.sqrt(((2.0 * n) * (U * (t - ((math.pow(l, 2.0) * (2.0 + ((n * (U - U_42_)) / Om))) / Om))))) else: tmp = math.sqrt(((2.0 * (n * U)) * (t + ((n * (math.pow((l / Om), 2.0) * (U_42_ - U))) - (2.0 * (l * (l / Om))))))) return tmp
function code(n, U, t, l, Om, U_42_) tmp = 0.0 if (Om <= 1.06e-125) tmp = sqrt(Float64(Float64(2.0 * n) * Float64(U * Float64(t - Float64(Float64((l ^ 2.0) * Float64(2.0 + Float64(Float64(n * Float64(U - U_42_)) / Om))) / Om))))); else tmp = sqrt(Float64(Float64(2.0 * Float64(n * U)) * Float64(t + Float64(Float64(n * Float64((Float64(l / Om) ^ 2.0) * Float64(U_42_ - U))) - 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 (Om <= 1.06e-125) tmp = sqrt(((2.0 * n) * (U * (t - (((l ^ 2.0) * (2.0 + ((n * (U - U_42_)) / Om))) / Om))))); else tmp = sqrt(((2.0 * (n * U)) * (t + ((n * (((l / Om) ^ 2.0) * (U_42_ - U))) - (2.0 * (l * (l / Om))))))); end tmp_2 = tmp; end
code[n_, U_, t_, l_, Om_, U$42$_] := If[LessEqual[Om, 1.06e-125], N[Sqrt[N[(N[(2.0 * n), $MachinePrecision] * N[(U * N[(t - N[(N[(N[Power[l, 2.0], $MachinePrecision] * N[(2.0 + N[(N[(n * N[(U - U$42$), $MachinePrecision]), $MachinePrecision] / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], N[Sqrt[N[(N[(2.0 * N[(n * U), $MachinePrecision]), $MachinePrecision] * N[(t + N[(N[(n * N[(N[Power[N[(l / Om), $MachinePrecision], 2.0], $MachinePrecision] * N[(U$42$ - U), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(2.0 * N[(l * N[(l / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;Om \leq 1.06 \cdot 10^{-125}:\\
\;\;\;\;\sqrt{\left(2 \cdot n\right) \cdot \left(U \cdot \left(t - \frac{{\ell}^{2} \cdot \left(2 + \frac{n \cdot \left(U - U*\right)}{Om}\right)}{Om}\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;\sqrt{\left(2 \cdot \left(n \cdot U\right)\right) \cdot \left(t + \left(n \cdot \left({\left(\frac{\ell}{Om}\right)}^{2} \cdot \left(U* - U\right)\right) - 2 \cdot \left(\ell \cdot \frac{\ell}{Om}\right)\right)\right)}\\
\end{array}
\end{array}
if Om < 1.05999999999999999e-125Initial program 45.1%
Simplified52.4%
Taylor expanded in l around 0 51.8%
mul-1-neg51.8%
unsub-neg51.8%
associate-*r/51.8%
metadata-eval51.8%
associate-/l*52.0%
Simplified52.0%
Taylor expanded in Om around inf 53.0%
Taylor expanded in l around 0 57.7%
if 1.05999999999999999e-125 < Om Initial program 56.3%
Simplified61.7%
sub-neg61.7%
distribute-lft-in57.2%
Applied egg-rr57.2%
distribute-lft-out61.7%
sub-neg61.7%
associate-*r*61.8%
*-commutative61.8%
Simplified61.8%
Final simplification59.2%
(FPCore (n U t l Om U*)
:precision binary64
(if (<= Om 5.0)
(sqrt
(*
(* 2.0 n)
(* U (- t (/ (* (pow l 2.0) (+ 2.0 (/ (* n (- U U*)) Om))) Om)))))
(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 (Om <= 5.0) {
tmp = sqrt(((2.0 * n) * (U * (t - ((pow(l, 2.0) * (2.0 + ((n * (U - U_42_)) / Om))) / Om)))));
} 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 (om <= 5.0d0) then
tmp = sqrt(((2.0d0 * n) * (u * (t - (((l ** 2.0d0) * (2.0d0 + ((n * (u - u_42)) / om))) / om)))))
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 (Om <= 5.0) {
tmp = Math.sqrt(((2.0 * n) * (U * (t - ((Math.pow(l, 2.0) * (2.0 + ((n * (U - U_42_)) / Om))) / Om)))));
} 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 Om <= 5.0: tmp = math.sqrt(((2.0 * n) * (U * (t - ((math.pow(l, 2.0) * (2.0 + ((n * (U - U_42_)) / Om))) / Om))))) 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 (Om <= 5.0) tmp = sqrt(Float64(Float64(2.0 * n) * Float64(U * Float64(t - Float64(Float64((l ^ 2.0) * Float64(2.0 + Float64(Float64(n * Float64(U - U_42_)) / Om))) / Om))))); else tmp = sqrt(Float64(Float64(2.0 * n) * Float64(U * 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 (Om <= 5.0) tmp = sqrt(((2.0 * n) * (U * (t - (((l ^ 2.0) * (2.0 + ((n * (U - U_42_)) / Om))) / Om))))); 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[Om, 5.0], N[Sqrt[N[(N[(2.0 * n), $MachinePrecision] * N[(U * N[(t - N[(N[(N[Power[l, 2.0], $MachinePrecision] * N[(2.0 + N[(N[(n * N[(U - U$42$), $MachinePrecision]), $MachinePrecision] / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], N[Sqrt[N[(N[(2.0 * n), $MachinePrecision] * N[(U * 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}\;Om \leq 5:\\
\;\;\;\;\sqrt{\left(2 \cdot n\right) \cdot \left(U \cdot \left(t - \frac{{\ell}^{2} \cdot \left(2 + \frac{n \cdot \left(U - U*\right)}{Om}\right)}{Om}\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;\sqrt{\left(2 \cdot n\right) \cdot \left(U \cdot \left(t - 2 \cdot \frac{\ell \cdot \ell}{Om}\right)\right)}\\
\end{array}
\end{array}
if Om < 5Initial program 48.4%
Simplified54.8%
Taylor expanded in l around 0 53.8%
mul-1-neg53.8%
unsub-neg53.8%
associate-*r/53.8%
metadata-eval53.8%
associate-/l*52.9%
Simplified52.9%
Taylor expanded in Om around inf 54.9%
Taylor expanded in l around 0 59.2%
if 5 < Om Initial program 51.2%
Simplified62.3%
Taylor expanded in n around 0 53.6%
unpow253.6%
Applied egg-rr53.6%
(FPCore (n U t l Om U*)
:precision binary64
(if (<= l 8e-73)
(sqrt (* (* 2.0 n) (* U (+ t (/ (/ (* U* (* n (pow l 2.0))) Om) Om)))))
(sqrt
(*
(* 2.0 n)
(* U (- t (* (* l l) (/ (+ 2.0 (/ (* n (- U U*)) Om)) Om))))))))
double code(double n, double U, double t, double l, double Om, double U_42_) {
double tmp;
if (l <= 8e-73) {
tmp = sqrt(((2.0 * n) * (U * (t + (((U_42_ * (n * pow(l, 2.0))) / Om) / Om)))));
} else {
tmp = sqrt(((2.0 * n) * (U * (t - ((l * l) * ((2.0 + ((n * (U - U_42_)) / Om)) / Om))))));
}
return tmp;
}
real(8) function code(n, u, t, l, om, u_42)
real(8), intent (in) :: n
real(8), intent (in) :: u
real(8), intent (in) :: t
real(8), intent (in) :: l
real(8), intent (in) :: om
real(8), intent (in) :: u_42
real(8) :: tmp
if (l <= 8d-73) then
tmp = sqrt(((2.0d0 * n) * (u * (t + (((u_42 * (n * (l ** 2.0d0))) / om) / om)))))
else
tmp = sqrt(((2.0d0 * n) * (u * (t - ((l * l) * ((2.0d0 + ((n * (u - u_42)) / om)) / om))))))
end if
code = tmp
end function
public static double code(double n, double U, double t, double l, double Om, double U_42_) {
double tmp;
if (l <= 8e-73) {
tmp = Math.sqrt(((2.0 * n) * (U * (t + (((U_42_ * (n * Math.pow(l, 2.0))) / Om) / Om)))));
} else {
tmp = Math.sqrt(((2.0 * n) * (U * (t - ((l * l) * ((2.0 + ((n * (U - U_42_)) / Om)) / Om))))));
}
return tmp;
}
def code(n, U, t, l, Om, U_42_): tmp = 0 if l <= 8e-73: tmp = math.sqrt(((2.0 * n) * (U * (t + (((U_42_ * (n * math.pow(l, 2.0))) / Om) / Om))))) else: tmp = math.sqrt(((2.0 * n) * (U * (t - ((l * l) * ((2.0 + ((n * (U - U_42_)) / Om)) / Om)))))) return tmp
function code(n, U, t, l, Om, U_42_) tmp = 0.0 if (l <= 8e-73) tmp = sqrt(Float64(Float64(2.0 * n) * Float64(U * Float64(t + Float64(Float64(Float64(U_42_ * Float64(n * (l ^ 2.0))) / Om) / Om))))); else tmp = sqrt(Float64(Float64(2.0 * n) * Float64(U * Float64(t - Float64(Float64(l * l) * Float64(Float64(2.0 + Float64(Float64(n * Float64(U - U_42_)) / Om)) / Om)))))); end return tmp end
function tmp_2 = code(n, U, t, l, Om, U_42_) tmp = 0.0; if (l <= 8e-73) tmp = sqrt(((2.0 * n) * (U * (t + (((U_42_ * (n * (l ^ 2.0))) / Om) / Om))))); else tmp = sqrt(((2.0 * n) * (U * (t - ((l * l) * ((2.0 + ((n * (U - U_42_)) / Om)) / Om)))))); end tmp_2 = tmp; end
code[n_, U_, t_, l_, Om_, U$42$_] := If[LessEqual[l, 8e-73], N[Sqrt[N[(N[(2.0 * n), $MachinePrecision] * N[(U * N[(t + N[(N[(N[(U$42$ * N[(n * N[Power[l, 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / Om), $MachinePrecision] / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], N[Sqrt[N[(N[(2.0 * n), $MachinePrecision] * N[(U * N[(t - N[(N[(l * l), $MachinePrecision] * N[(N[(2.0 + N[(N[(n * N[(U - U$42$), $MachinePrecision]), $MachinePrecision] / Om), $MachinePrecision]), $MachinePrecision] / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;\ell \leq 8 \cdot 10^{-73}:\\
\;\;\;\;\sqrt{\left(2 \cdot n\right) \cdot \left(U \cdot \left(t + \frac{\frac{U* \cdot \left(n \cdot {\ell}^{2}\right)}{Om}}{Om}\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;\sqrt{\left(2 \cdot n\right) \cdot \left(U \cdot \left(t - \left(\ell \cdot \ell\right) \cdot \frac{2 + \frac{n \cdot \left(U - U*\right)}{Om}}{Om}\right)\right)}\\
\end{array}
\end{array}
if l < 7.99999999999999998e-73Initial program 53.0%
Simplified60.0%
Taylor expanded in Om around -inf 51.4%
Taylor expanded in U* around inf 54.3%
associate-*r/54.3%
associate-*r*54.3%
neg-mul-154.3%
Simplified54.3%
if 7.99999999999999998e-73 < l Initial program 41.0%
Simplified50.0%
Taylor expanded in l around 0 52.9%
mul-1-neg52.9%
unsub-neg52.9%
associate-*r/52.9%
metadata-eval52.9%
associate-/l*54.2%
Simplified54.2%
Taylor expanded in Om around inf 55.3%
unpow242.7%
Applied egg-rr55.3%
Final simplification54.6%
(FPCore (n U t l Om U*)
:precision binary64
(if (<= l 1.7e-84)
(sqrt (fabs (* 2.0 (* n (* U t)))))
(sqrt
(*
(* 2.0 n)
(* U (- t (* (* l l) (/ (+ 2.0 (/ (* n (- U U*)) Om)) Om))))))))
double code(double n, double U, double t, double l, double Om, double U_42_) {
double tmp;
if (l <= 1.7e-84) {
tmp = sqrt(fabs((2.0 * (n * (U * t)))));
} else {
tmp = sqrt(((2.0 * n) * (U * (t - ((l * l) * ((2.0 + ((n * (U - U_42_)) / Om)) / Om))))));
}
return tmp;
}
real(8) function code(n, u, t, l, om, u_42)
real(8), intent (in) :: n
real(8), intent (in) :: u
real(8), intent (in) :: t
real(8), intent (in) :: l
real(8), intent (in) :: om
real(8), intent (in) :: u_42
real(8) :: tmp
if (l <= 1.7d-84) then
tmp = sqrt(abs((2.0d0 * (n * (u * t)))))
else
tmp = sqrt(((2.0d0 * n) * (u * (t - ((l * l) * ((2.0d0 + ((n * (u - u_42)) / om)) / om))))))
end if
code = tmp
end function
public static double code(double n, double U, double t, double l, double Om, double U_42_) {
double tmp;
if (l <= 1.7e-84) {
tmp = Math.sqrt(Math.abs((2.0 * (n * (U * t)))));
} else {
tmp = Math.sqrt(((2.0 * n) * (U * (t - ((l * l) * ((2.0 + ((n * (U - U_42_)) / Om)) / Om))))));
}
return tmp;
}
def code(n, U, t, l, Om, U_42_): tmp = 0 if l <= 1.7e-84: tmp = math.sqrt(math.fabs((2.0 * (n * (U * t))))) else: tmp = math.sqrt(((2.0 * n) * (U * (t - ((l * l) * ((2.0 + ((n * (U - U_42_)) / Om)) / Om)))))) return tmp
function code(n, U, t, l, Om, U_42_) tmp = 0.0 if (l <= 1.7e-84) tmp = sqrt(abs(Float64(2.0 * Float64(n * Float64(U * t))))); else tmp = sqrt(Float64(Float64(2.0 * n) * Float64(U * Float64(t - Float64(Float64(l * l) * Float64(Float64(2.0 + Float64(Float64(n * Float64(U - U_42_)) / Om)) / Om)))))); end return tmp end
function tmp_2 = code(n, U, t, l, Om, U_42_) tmp = 0.0; if (l <= 1.7e-84) tmp = sqrt(abs((2.0 * (n * (U * t))))); else tmp = sqrt(((2.0 * n) * (U * (t - ((l * l) * ((2.0 + ((n * (U - U_42_)) / Om)) / Om)))))); end tmp_2 = tmp; end
code[n_, U_, t_, l_, Om_, U$42$_] := If[LessEqual[l, 1.7e-84], N[Sqrt[N[Abs[N[(2.0 * N[(n * N[(U * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]], $MachinePrecision], N[Sqrt[N[(N[(2.0 * n), $MachinePrecision] * N[(U * N[(t - N[(N[(l * l), $MachinePrecision] * N[(N[(2.0 + N[(N[(n * N[(U - U$42$), $MachinePrecision]), $MachinePrecision] / Om), $MachinePrecision]), $MachinePrecision] / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;\ell \leq 1.7 \cdot 10^{-84}:\\
\;\;\;\;\sqrt{\left|2 \cdot \left(n \cdot \left(U \cdot t\right)\right)\right|}\\
\mathbf{else}:\\
\;\;\;\;\sqrt{\left(2 \cdot n\right) \cdot \left(U \cdot \left(t - \left(\ell \cdot \ell\right) \cdot \frac{2 + \frac{n \cdot \left(U - U*\right)}{Om}}{Om}\right)\right)}\\
\end{array}
\end{array}
if l < 1.7000000000000001e-84Initial program 53.3%
Simplified60.3%
Taylor expanded in t around inf 46.9%
add-sqr-sqrt46.9%
pow1/246.9%
metadata-eval46.9%
pow1/247.0%
metadata-eval47.0%
pow-prod-down36.1%
pow236.1%
metadata-eval36.1%
Applied egg-rr36.1%
unpow1/236.1%
unpow236.1%
rem-sqrt-square47.5%
associate-*l*47.5%
Simplified47.5%
if 1.7000000000000001e-84 < l Initial program 40.6%
Simplified49.4%
Taylor expanded in l around 0 52.2%
mul-1-neg52.2%
unsub-neg52.2%
associate-*r/52.2%
metadata-eval52.2%
associate-/l*53.6%
Simplified53.6%
Taylor expanded in Om around inf 54.6%
unpow242.2%
Applied egg-rr54.6%
(FPCore (n U t l Om U*)
:precision binary64
(if (<= l 1.1e-84)
(sqrt (* (* 2.0 n) (* U t)))
(sqrt
(*
(* 2.0 n)
(* U (- t (* (* l l) (/ (+ 2.0 (/ (* n (- U U*)) Om)) Om))))))))
double code(double n, double U, double t, double l, double Om, double U_42_) {
double tmp;
if (l <= 1.1e-84) {
tmp = sqrt(((2.0 * n) * (U * t)));
} else {
tmp = sqrt(((2.0 * n) * (U * (t - ((l * l) * ((2.0 + ((n * (U - U_42_)) / Om)) / Om))))));
}
return tmp;
}
real(8) function code(n, u, t, l, om, u_42)
real(8), intent (in) :: n
real(8), intent (in) :: u
real(8), intent (in) :: t
real(8), intent (in) :: l
real(8), intent (in) :: om
real(8), intent (in) :: u_42
real(8) :: tmp
if (l <= 1.1d-84) then
tmp = sqrt(((2.0d0 * n) * (u * t)))
else
tmp = sqrt(((2.0d0 * n) * (u * (t - ((l * l) * ((2.0d0 + ((n * (u - u_42)) / om)) / om))))))
end if
code = tmp
end function
public static double code(double n, double U, double t, double l, double Om, double U_42_) {
double tmp;
if (l <= 1.1e-84) {
tmp = Math.sqrt(((2.0 * n) * (U * t)));
} else {
tmp = Math.sqrt(((2.0 * n) * (U * (t - ((l * l) * ((2.0 + ((n * (U - U_42_)) / Om)) / Om))))));
}
return tmp;
}
def code(n, U, t, l, Om, U_42_): tmp = 0 if l <= 1.1e-84: tmp = math.sqrt(((2.0 * n) * (U * t))) else: tmp = math.sqrt(((2.0 * n) * (U * (t - ((l * l) * ((2.0 + ((n * (U - U_42_)) / Om)) / Om)))))) return tmp
function code(n, U, t, l, Om, U_42_) tmp = 0.0 if (l <= 1.1e-84) tmp = sqrt(Float64(Float64(2.0 * n) * Float64(U * t))); else tmp = sqrt(Float64(Float64(2.0 * n) * Float64(U * Float64(t - Float64(Float64(l * l) * Float64(Float64(2.0 + Float64(Float64(n * Float64(U - U_42_)) / Om)) / Om)))))); end return tmp end
function tmp_2 = code(n, U, t, l, Om, U_42_) tmp = 0.0; if (l <= 1.1e-84) tmp = sqrt(((2.0 * n) * (U * t))); else tmp = sqrt(((2.0 * n) * (U * (t - ((l * l) * ((2.0 + ((n * (U - U_42_)) / Om)) / Om)))))); end tmp_2 = tmp; end
code[n_, U_, t_, l_, Om_, U$42$_] := If[LessEqual[l, 1.1e-84], N[Sqrt[N[(N[(2.0 * n), $MachinePrecision] * N[(U * t), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], N[Sqrt[N[(N[(2.0 * n), $MachinePrecision] * N[(U * N[(t - N[(N[(l * l), $MachinePrecision] * N[(N[(2.0 + N[(N[(n * N[(U - U$42$), $MachinePrecision]), $MachinePrecision] / Om), $MachinePrecision]), $MachinePrecision] / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;\ell \leq 1.1 \cdot 10^{-84}:\\
\;\;\;\;\sqrt{\left(2 \cdot n\right) \cdot \left(U \cdot t\right)}\\
\mathbf{else}:\\
\;\;\;\;\sqrt{\left(2 \cdot n\right) \cdot \left(U \cdot \left(t - \left(\ell \cdot \ell\right) \cdot \frac{2 + \frac{n \cdot \left(U - U*\right)}{Om}}{Om}\right)\right)}\\
\end{array}
\end{array}
if l < 1.0999999999999999e-84Initial program 53.3%
Simplified60.3%
Taylor expanded in t around inf 46.9%
if 1.0999999999999999e-84 < l Initial program 40.6%
Simplified49.4%
Taylor expanded in l around 0 52.2%
mul-1-neg52.2%
unsub-neg52.2%
associate-*r/52.2%
metadata-eval52.2%
associate-/l*53.6%
Simplified53.6%
Taylor expanded in Om around inf 54.6%
unpow242.2%
Applied egg-rr54.6%
(FPCore (n U t l Om U*) :precision binary64 (if (<= U 1.2e+86) (sqrt (* (* 2.0 n) (* U (- t (* 2.0 (/ (* l l) Om)))))) (sqrt (* 2.0 (* t (* n U))))))
double code(double n, double U, double t, double l, double Om, double U_42_) {
double tmp;
if (U <= 1.2e+86) {
tmp = sqrt(((2.0 * n) * (U * (t - (2.0 * ((l * l) / Om))))));
} else {
tmp = sqrt((2.0 * (t * (n * U))));
}
return tmp;
}
real(8) function code(n, u, t, l, om, u_42)
real(8), intent (in) :: n
real(8), intent (in) :: u
real(8), intent (in) :: t
real(8), intent (in) :: l
real(8), intent (in) :: om
real(8), intent (in) :: u_42
real(8) :: tmp
if (u <= 1.2d+86) then
tmp = sqrt(((2.0d0 * n) * (u * (t - (2.0d0 * ((l * l) / om))))))
else
tmp = sqrt((2.0d0 * (t * (n * u))))
end if
code = tmp
end function
public static double code(double n, double U, double t, double l, double Om, double U_42_) {
double tmp;
if (U <= 1.2e+86) {
tmp = Math.sqrt(((2.0 * n) * (U * (t - (2.0 * ((l * l) / Om))))));
} else {
tmp = Math.sqrt((2.0 * (t * (n * U))));
}
return tmp;
}
def code(n, U, t, l, Om, U_42_): tmp = 0 if U <= 1.2e+86: tmp = math.sqrt(((2.0 * n) * (U * (t - (2.0 * ((l * l) / Om)))))) else: tmp = math.sqrt((2.0 * (t * (n * U)))) return tmp
function code(n, U, t, l, Om, U_42_) tmp = 0.0 if (U <= 1.2e+86) tmp = sqrt(Float64(Float64(2.0 * n) * Float64(U * Float64(t - Float64(2.0 * Float64(Float64(l * l) / Om)))))); else tmp = sqrt(Float64(2.0 * Float64(t * Float64(n * U)))); end return tmp end
function tmp_2 = code(n, U, t, l, Om, U_42_) tmp = 0.0; if (U <= 1.2e+86) tmp = sqrt(((2.0 * n) * (U * (t - (2.0 * ((l * l) / Om)))))); else tmp = sqrt((2.0 * (t * (n * U)))); end tmp_2 = tmp; end
code[n_, U_, t_, l_, Om_, U$42$_] := If[LessEqual[U, 1.2e+86], N[Sqrt[N[(N[(2.0 * n), $MachinePrecision] * N[(U * N[(t - N[(2.0 * N[(N[(l * l), $MachinePrecision] / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], N[Sqrt[N[(2.0 * N[(t * N[(n * U), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;U \leq 1.2 \cdot 10^{+86}:\\
\;\;\;\;\sqrt{\left(2 \cdot n\right) \cdot \left(U \cdot \left(t - 2 \cdot \frac{\ell \cdot \ell}{Om}\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;\sqrt{2 \cdot \left(t \cdot \left(n \cdot U\right)\right)}\\
\end{array}
\end{array}
if U < 1.2e86Initial program 46.0%
Simplified57.2%
Taylor expanded in n around 0 48.4%
unpow248.4%
Applied egg-rr48.4%
if 1.2e86 < U Initial program 73.6%
Simplified53.4%
Taylor expanded in t around inf 56.9%
associate-*r*66.9%
Simplified66.9%
Final simplification50.5%
(FPCore (n U t l Om U*) :precision binary64 (if (<= l 2.25e-242) (sqrt (* 2.0 (* t (* n U)))) (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 <= 2.25e-242) {
tmp = sqrt((2.0 * (t * (n * U))));
} 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 <= 2.25d-242) then
tmp = sqrt((2.0d0 * (t * (n * u))))
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 <= 2.25e-242) {
tmp = Math.sqrt((2.0 * (t * (n * U))));
} 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 <= 2.25e-242: tmp = math.sqrt((2.0 * (t * (n * U)))) 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 <= 2.25e-242) tmp = sqrt(Float64(2.0 * Float64(t * Float64(n * U)))); else tmp = sqrt(Float64(2.0 * Float64(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 <= 2.25e-242) tmp = sqrt((2.0 * (t * (n * U)))); 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, 2.25e-242], N[Sqrt[N[(2.0 * N[(t * N[(n * U), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], N[Sqrt[N[(2.0 * N[(U * N[(n * N[(t - N[(2.0 * N[(N[(l * l), $MachinePrecision] / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;\ell \leq 2.25 \cdot 10^{-242}:\\
\;\;\;\;\sqrt{2 \cdot \left(t \cdot \left(n \cdot U\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;\sqrt{2 \cdot \left(U \cdot \left(n \cdot \left(t - 2 \cdot \frac{\ell \cdot \ell}{Om}\right)\right)\right)}\\
\end{array}
\end{array}
if l < 2.2499999999999999e-242Initial program 49.6%
Simplified57.1%
Taylor expanded in t around inf 40.0%
associate-*r*40.8%
Simplified40.8%
if 2.2499999999999999e-242 < l Initial program 48.6%
Simplified56.4%
Taylor expanded in n around 0 47.3%
unpow248.1%
Applied egg-rr47.3%
Final simplification43.8%
(FPCore (n U t l Om U*) :precision binary64 (if (<= U -9.5e-300) (sqrt (* (* 2.0 n) (* U t))) (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 (U <= -9.5e-300) {
tmp = sqrt(((2.0 * n) * (U * t)));
} 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 (u <= (-9.5d-300)) then
tmp = sqrt(((2.0d0 * n) * (u * t)))
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 (U <= -9.5e-300) {
tmp = Math.sqrt(((2.0 * n) * (U * t)));
} 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 U <= -9.5e-300: tmp = math.sqrt(((2.0 * n) * (U * t))) 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 (U <= -9.5e-300) tmp = sqrt(Float64(Float64(2.0 * n) * Float64(U * t))); 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 (U <= -9.5e-300) tmp = sqrt(((2.0 * n) * (U * t))); else tmp = ((2.0 * U) * (n * t)) ^ 0.5; end tmp_2 = tmp; end
code[n_, U_, t_, l_, Om_, U$42$_] := If[LessEqual[U, -9.5e-300], N[Sqrt[N[(N[(2.0 * n), $MachinePrecision] * N[(U * t), $MachinePrecision]), $MachinePrecision]], $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}\;U \leq -9.5 \cdot 10^{-300}:\\
\;\;\;\;\sqrt{\left(2 \cdot n\right) \cdot \left(U \cdot t\right)}\\
\mathbf{else}:\\
\;\;\;\;{\left(\left(2 \cdot U\right) \cdot \left(n \cdot t\right)\right)}^{0.5}\\
\end{array}
\end{array}
if U < -9.5000000000000007e-300Initial program 46.5%
Simplified57.1%
Taylor expanded in t around inf 42.9%
if -9.5000000000000007e-300 < U Initial program 51.3%
Simplified56.6%
Taylor expanded in t around inf 40.0%
pow1/242.1%
associate-*r*42.1%
Applied egg-rr42.1%
(FPCore (n U t l Om U*) :precision binary64 (if (<= U 3.4e-86) (sqrt (* (* 2.0 n) (* U t))) (sqrt (* 2.0 (* t (* n U))))))
double code(double n, double U, double t, double l, double Om, double U_42_) {
double tmp;
if (U <= 3.4e-86) {
tmp = sqrt(((2.0 * n) * (U * t)));
} else {
tmp = sqrt((2.0 * (t * (n * U))));
}
return tmp;
}
real(8) function code(n, u, t, l, om, u_42)
real(8), intent (in) :: n
real(8), intent (in) :: u
real(8), intent (in) :: t
real(8), intent (in) :: l
real(8), intent (in) :: om
real(8), intent (in) :: u_42
real(8) :: tmp
if (u <= 3.4d-86) then
tmp = sqrt(((2.0d0 * n) * (u * t)))
else
tmp = sqrt((2.0d0 * (t * (n * u))))
end if
code = tmp
end function
public static double code(double n, double U, double t, double l, double Om, double U_42_) {
double tmp;
if (U <= 3.4e-86) {
tmp = Math.sqrt(((2.0 * n) * (U * t)));
} else {
tmp = Math.sqrt((2.0 * (t * (n * U))));
}
return tmp;
}
def code(n, U, t, l, Om, U_42_): tmp = 0 if U <= 3.4e-86: tmp = math.sqrt(((2.0 * n) * (U * t))) else: tmp = math.sqrt((2.0 * (t * (n * U)))) return tmp
function code(n, U, t, l, Om, U_42_) tmp = 0.0 if (U <= 3.4e-86) tmp = sqrt(Float64(Float64(2.0 * n) * Float64(U * t))); else tmp = sqrt(Float64(2.0 * Float64(t * Float64(n * U)))); end return tmp end
function tmp_2 = code(n, U, t, l, Om, U_42_) tmp = 0.0; if (U <= 3.4e-86) tmp = sqrt(((2.0 * n) * (U * t))); else tmp = sqrt((2.0 * (t * (n * U)))); end tmp_2 = tmp; end
code[n_, U_, t_, l_, Om_, U$42$_] := If[LessEqual[U, 3.4e-86], N[Sqrt[N[(N[(2.0 * n), $MachinePrecision] * N[(U * t), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], N[Sqrt[N[(2.0 * N[(t * N[(n * U), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;U \leq 3.4 \cdot 10^{-86}:\\
\;\;\;\;\sqrt{\left(2 \cdot n\right) \cdot \left(U \cdot t\right)}\\
\mathbf{else}:\\
\;\;\;\;\sqrt{2 \cdot \left(t \cdot \left(n \cdot U\right)\right)}\\
\end{array}
\end{array}
if U < 3.4e-86Initial program 41.4%
Simplified54.5%
Taylor expanded in t around inf 37.8%
if 3.4e-86 < U Initial program 69.7%
Simplified62.9%
Taylor expanded in t around inf 49.1%
associate-*r*54.6%
Simplified54.6%
Final simplification42.4%
(FPCore (n U t l Om U*) :precision binary64 (if (<= l 3e-233) (sqrt (* 2.0 (* t (* n U)))) (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 <= 3e-233) {
tmp = sqrt((2.0 * (t * (n * U))));
} 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 <= 3d-233) then
tmp = sqrt((2.0d0 * (t * (n * u))))
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 <= 3e-233) {
tmp = Math.sqrt((2.0 * (t * (n * U))));
} else {
tmp = Math.sqrt((2.0 * (U * (n * t))));
}
return tmp;
}
def code(n, U, t, l, Om, U_42_): tmp = 0 if l <= 3e-233: tmp = math.sqrt((2.0 * (t * (n * U)))) 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 <= 3e-233) tmp = sqrt(Float64(2.0 * Float64(t * Float64(n * U)))); 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 <= 3e-233) tmp = sqrt((2.0 * (t * (n * U)))); else tmp = sqrt((2.0 * (U * (n * t)))); end tmp_2 = tmp; end
code[n_, U_, t_, l_, Om_, U$42$_] := If[LessEqual[l, 3e-233], N[Sqrt[N[(2.0 * N[(t * N[(n * U), $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 \cdot 10^{-233}:\\
\;\;\;\;\sqrt{2 \cdot \left(t \cdot \left(n \cdot U\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;\sqrt{2 \cdot \left(U \cdot \left(n \cdot t\right)\right)}\\
\end{array}
\end{array}
if l < 2.99999999999999999e-233Initial program 49.6%
Simplified57.1%
Taylor expanded in t around inf 40.0%
associate-*r*40.8%
Simplified40.8%
if 2.99999999999999999e-233 < l Initial program 48.6%
Simplified56.4%
Taylor expanded in t around inf 36.7%
Final simplification38.9%
(FPCore (n U t l Om U*) :precision binary64 (pow (* (* 2.0 n) (* U t)) 0.5))
double code(double n, double U, double t, double l, double Om, double U_42_) {
return pow(((2.0 * n) * (U * t)), 0.5);
}
real(8) function code(n, u, t, l, om, u_42)
real(8), intent (in) :: n
real(8), intent (in) :: u
real(8), intent (in) :: t
real(8), intent (in) :: l
real(8), intent (in) :: om
real(8), intent (in) :: u_42
code = ((2.0d0 * n) * (u * t)) ** 0.5d0
end function
public static double code(double n, double U, double t, double l, double Om, double U_42_) {
return Math.pow(((2.0 * n) * (U * t)), 0.5);
}
def code(n, U, t, l, Om, U_42_): return math.pow(((2.0 * n) * (U * t)), 0.5)
function code(n, U, t, l, Om, U_42_) return Float64(Float64(2.0 * n) * Float64(U * t)) ^ 0.5 end
function tmp = code(n, U, t, l, Om, U_42_) tmp = ((2.0 * n) * (U * t)) ^ 0.5; end
code[n_, U_, t_, l_, Om_, U$42$_] := N[Power[N[(N[(2.0 * n), $MachinePrecision] * N[(U * t), $MachinePrecision]), $MachinePrecision], 0.5], $MachinePrecision]
\begin{array}{l}
\\
{\left(\left(2 \cdot n\right) \cdot \left(U \cdot t\right)\right)}^{0.5}
\end{array}
Initial program 49.2%
Simplified56.8%
Taylor expanded in t around inf 40.1%
pow1/241.0%
Applied egg-rr41.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 49.2%
Simplified56.8%
Taylor expanded in t around inf 38.5%
herbie shell --seed 2024186
(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*))))))