
(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 18 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 (* U l)))
(t_2 (* n (* U t)))
(t_3 (fma l -2.0 (* (* n (/ l Om)) (- U* U)))))
(if (<= n 4e-287)
(sqrt (* 2.0 (+ (/ t_3 (/ Om t_1)) t_2)))
(if (or (<= n 8e-208) (not (<= n 2.9e-62)))
(* (sqrt (* n 2.0)) (sqrt (* U (+ t (* (/ l Om) t_3)))))
(sqrt
(+
(* 2.0 t_2)
(*
2.0
(/ (* t_1 (- (* l -2.0) (/ (* n (* l (- U U*))) Om))) Om))))))))
double code(double n, double U, double t, double l, double Om, double U_42_) {
double t_1 = n * (U * l);
double t_2 = n * (U * t);
double t_3 = fma(l, -2.0, ((n * (l / Om)) * (U_42_ - U)));
double tmp;
if (n <= 4e-287) {
tmp = sqrt((2.0 * ((t_3 / (Om / t_1)) + t_2)));
} else if ((n <= 8e-208) || !(n <= 2.9e-62)) {
tmp = sqrt((n * 2.0)) * sqrt((U * (t + ((l / Om) * t_3))));
} else {
tmp = sqrt(((2.0 * t_2) + (2.0 * ((t_1 * ((l * -2.0) - ((n * (l * (U - U_42_))) / Om))) / Om))));
}
return tmp;
}
function code(n, U, t, l, Om, U_42_) t_1 = Float64(n * Float64(U * l)) t_2 = Float64(n * Float64(U * t)) t_3 = fma(l, -2.0, Float64(Float64(n * Float64(l / Om)) * Float64(U_42_ - U))) tmp = 0.0 if (n <= 4e-287) tmp = sqrt(Float64(2.0 * Float64(Float64(t_3 / Float64(Om / t_1)) + t_2))); elseif ((n <= 8e-208) || !(n <= 2.9e-62)) tmp = Float64(sqrt(Float64(n * 2.0)) * sqrt(Float64(U * Float64(t + Float64(Float64(l / Om) * t_3))))); else tmp = sqrt(Float64(Float64(2.0 * t_2) + Float64(2.0 * Float64(Float64(t_1 * Float64(Float64(l * -2.0) - Float64(Float64(n * Float64(l * Float64(U - U_42_))) / Om))) / Om)))); 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[(n * N[(U * t), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(l * -2.0 + N[(N[(n * N[(l / Om), $MachinePrecision]), $MachinePrecision] * N[(U$42$ - U), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[n, 4e-287], N[Sqrt[N[(2.0 * N[(N[(t$95$3 / N[(Om / t$95$1), $MachinePrecision]), $MachinePrecision] + t$95$2), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], If[Or[LessEqual[n, 8e-208], N[Not[LessEqual[n, 2.9e-62]], $MachinePrecision]], N[(N[Sqrt[N[(n * 2.0), $MachinePrecision]], $MachinePrecision] * N[Sqrt[N[(U * N[(t + N[(N[(l / Om), $MachinePrecision] * t$95$3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], N[Sqrt[N[(N[(2.0 * t$95$2), $MachinePrecision] + N[(2.0 * N[(N[(t$95$1 * N[(N[(l * -2.0), $MachinePrecision] - N[(N[(n * N[(l * N[(U - U$42$), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := n \cdot \left(U \cdot \ell\right)\\
t_2 := n \cdot \left(U \cdot t\right)\\
t_3 := \mathsf{fma}\left(\ell, -2, \left(n \cdot \frac{\ell}{Om}\right) \cdot \left(U* - U\right)\right)\\
\mathbf{if}\;n \leq 4 \cdot 10^{-287}:\\
\;\;\;\;\sqrt{2 \cdot \left(\frac{t_3}{\frac{Om}{t_1}} + t_2\right)}\\
\mathbf{elif}\;n \leq 8 \cdot 10^{-208} \lor \neg \left(n \leq 2.9 \cdot 10^{-62}\right):\\
\;\;\;\;\sqrt{n \cdot 2} \cdot \sqrt{U \cdot \left(t + \frac{\ell}{Om} \cdot t_3\right)}\\
\mathbf{else}:\\
\;\;\;\;\sqrt{2 \cdot t_2 + 2 \cdot \frac{t_1 \cdot \left(\ell \cdot -2 - \frac{n \cdot \left(\ell \cdot \left(U - U*\right)\right)}{Om}\right)}{Om}}\\
\end{array}
\end{array}
if n < 4.00000000000000009e-287Initial program 44.5%
associate-*l*44.7%
sub-neg44.7%
associate--l+44.7%
*-commutative44.7%
distribute-rgt-neg-in44.7%
associate-*l/51.3%
associate-*l*51.3%
*-commutative51.3%
*-commutative51.3%
associate-*l*44.2%
unpow244.2%
associate-*l*45.1%
Simplified49.3%
Taylor expanded in t around inf 50.9%
distribute-lft-out50.9%
*-commutative50.9%
associate-/l*55.0%
+-commutative55.0%
*-commutative55.0%
associate-*r*57.2%
*-commutative57.2%
associate-*r*51.0%
associate-*l/53.6%
fma-udef53.6%
associate-*r*60.6%
Simplified60.6%
if 4.00000000000000009e-287 < n < 8.0000000000000008e-208 or 2.89999999999999986e-62 < n Initial program 57.5%
associate-*l*55.7%
sub-neg55.7%
associate--l+55.7%
*-commutative55.7%
distribute-rgt-neg-in55.7%
associate-*l/62.5%
associate-*l*62.5%
*-commutative62.5%
*-commutative62.5%
associate-*l*58.8%
unpow258.8%
associate-*l*58.9%
Simplified61.4%
sqrt-prod71.2%
*-commutative71.2%
Applied egg-rr71.2%
*-commutative71.2%
*-commutative71.2%
associate-*r*78.1%
Simplified78.1%
if 8.0000000000000008e-208 < n < 2.89999999999999986e-62Initial program 42.5%
associate-*l*51.1%
sub-neg51.1%
associate--l+51.1%
*-commutative51.1%
distribute-rgt-neg-in51.1%
associate-*l/51.1%
associate-*l*51.1%
*-commutative51.1%
*-commutative51.1%
associate-*l*51.1%
unpow251.1%
associate-*l*55.5%
Simplified59.8%
Taylor expanded in t around inf 79.9%
Final simplification68.3%
(FPCore (n U t l Om U*)
:precision binary64
(let* ((t_1
(sqrt
(*
(* U (* n 2.0))
(+
(- t (* 2.0 (/ (* l l) Om)))
(* (- U* U) (* n (pow (/ l Om) 2.0))))))))
(if (<= t_1 0.0)
(*
(sqrt (* n 2.0))
(sqrt (* U (+ t (* (/ l Om) (- (* l -2.0) (* (/ n Om) (* U l))))))))
(if (<= t_1 2e+152)
t_1
(if (<= t_1 INFINITY)
(sqrt (* 2.0 (* U (* n (fma (* l (/ l Om)) -2.0 t)))))
(sqrt
(*
(* n 2.0)
(/ (fma l -2.0 (* (* n (/ l Om)) (- U* U))) (/ Om (* U l))))))))))
double code(double n, double U, double t, double l, double Om, double U_42_) {
double t_1 = sqrt(((U * (n * 2.0)) * ((t - (2.0 * ((l * l) / Om))) + ((U_42_ - U) * (n * pow((l / Om), 2.0))))));
double tmp;
if (t_1 <= 0.0) {
tmp = sqrt((n * 2.0)) * sqrt((U * (t + ((l / Om) * ((l * -2.0) - ((n / Om) * (U * l)))))));
} else if (t_1 <= 2e+152) {
tmp = t_1;
} else if (t_1 <= ((double) INFINITY)) {
tmp = sqrt((2.0 * (U * (n * fma((l * (l / Om)), -2.0, t)))));
} else {
tmp = sqrt(((n * 2.0) * (fma(l, -2.0, ((n * (l / Om)) * (U_42_ - U))) / (Om / (U * l)))));
}
return tmp;
}
function code(n, U, t, l, Om, U_42_) t_1 = sqrt(Float64(Float64(U * Float64(n * 2.0)) * Float64(Float64(t - Float64(2.0 * Float64(Float64(l * l) / Om))) + Float64(Float64(U_42_ - U) * Float64(n * (Float64(l / Om) ^ 2.0)))))) tmp = 0.0 if (t_1 <= 0.0) tmp = Float64(sqrt(Float64(n * 2.0)) * sqrt(Float64(U * Float64(t + Float64(Float64(l / Om) * Float64(Float64(l * -2.0) - Float64(Float64(n / Om) * Float64(U * l)))))))); elseif (t_1 <= 2e+152) tmp = t_1; elseif (t_1 <= Inf) tmp = sqrt(Float64(2.0 * Float64(U * Float64(n * fma(Float64(l * Float64(l / Om)), -2.0, t))))); else tmp = sqrt(Float64(Float64(n * 2.0) * Float64(fma(l, -2.0, Float64(Float64(n * Float64(l / Om)) * Float64(U_42_ - U))) / Float64(Om / Float64(U * l))))); end return tmp end
code[n_, U_, t_, l_, Om_, U$42$_] := Block[{t$95$1 = N[Sqrt[N[(N[(U * N[(n * 2.0), $MachinePrecision]), $MachinePrecision] * N[(N[(t - N[(2.0 * N[(N[(l * l), $MachinePrecision] / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(U$42$ - U), $MachinePrecision] * N[(n * N[Power[N[(l / Om), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]}, If[LessEqual[t$95$1, 0.0], N[(N[Sqrt[N[(n * 2.0), $MachinePrecision]], $MachinePrecision] * N[Sqrt[N[(U * N[(t + N[(N[(l / Om), $MachinePrecision] * N[(N[(l * -2.0), $MachinePrecision] - N[(N[(n / Om), $MachinePrecision] * N[(U * l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, 2e+152], t$95$1, If[LessEqual[t$95$1, Infinity], N[Sqrt[N[(2.0 * N[(U * N[(n * N[(N[(l * N[(l / Om), $MachinePrecision]), $MachinePrecision] * -2.0 + t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], N[Sqrt[N[(N[(n * 2.0), $MachinePrecision] * N[(N[(l * -2.0 + N[(N[(n * N[(l / Om), $MachinePrecision]), $MachinePrecision] * N[(U$42$ - U), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(Om / N[(U * l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \sqrt{\left(U \cdot \left(n \cdot 2\right)\right) \cdot \left(\left(t - 2 \cdot \frac{\ell \cdot \ell}{Om}\right) + \left(U* - U\right) \cdot \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right)\right)}\\
\mathbf{if}\;t_1 \leq 0:\\
\;\;\;\;\sqrt{n \cdot 2} \cdot \sqrt{U \cdot \left(t + \frac{\ell}{Om} \cdot \left(\ell \cdot -2 - \frac{n}{Om} \cdot \left(U \cdot \ell\right)\right)\right)}\\
\mathbf{elif}\;t_1 \leq 2 \cdot 10^{+152}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t_1 \leq \infty:\\
\;\;\;\;\sqrt{2 \cdot \left(U \cdot \left(n \cdot \mathsf{fma}\left(\ell \cdot \frac{\ell}{Om}, -2, t\right)\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;\sqrt{\left(n \cdot 2\right) \cdot \frac{\mathsf{fma}\left(\ell, -2, \left(n \cdot \frac{\ell}{Om}\right) \cdot \left(U* - U\right)\right)}{\frac{Om}{U \cdot \ell}}}\\
\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 7.5%
associate-*l*37.9%
sub-neg37.9%
associate--l+37.9%
*-commutative37.9%
distribute-rgt-neg-in37.9%
associate-*l/37.9%
associate-*l*37.9%
*-commutative37.9%
*-commutative37.9%
associate-*l*37.9%
unpow237.9%
associate-*l*37.9%
Simplified37.9%
Taylor expanded in U* around 0 34.7%
*-commutative34.7%
+-commutative34.7%
associate-/l*34.7%
+-commutative34.7%
mul-1-neg34.7%
unsub-neg34.7%
*-commutative34.7%
associate-/l*34.7%
Simplified34.7%
sqrt-prod38.9%
associate-/r/39.0%
associate-/r/39.0%
*-commutative39.0%
Applied egg-rr39.0%
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*))))) < 2.0000000000000001e152Initial program 97.2%
if 2.0000000000000001e152 < (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 22.7%
*-commutative22.7%
associate-*l*24.0%
associate-*l*25.2%
associate-*l*25.2%
sub-neg25.2%
+-commutative25.2%
*-commutative25.2%
distribute-rgt-neg-in25.2%
fma-def25.2%
associate-*r/38.9%
metadata-eval38.9%
Simplified38.9%
Taylor expanded in n around 0 23.6%
associate-*r*22.4%
+-commutative22.4%
unpow222.4%
associate-*r/38.7%
*-commutative38.7%
fma-udef38.7%
Simplified38.7%
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*3.0%
sub-neg3.0%
associate--l+3.0%
*-commutative3.0%
distribute-rgt-neg-in3.0%
associate-*l/14.6%
associate-*l*14.6%
*-commutative14.6%
*-commutative14.6%
associate-*l*14.7%
unpow214.7%
associate-*l*17.7%
Simplified39.6%
Taylor expanded in t around 0 43.7%
associate-/l*43.6%
+-commutative43.6%
*-commutative43.6%
associate-*r*53.9%
*-commutative53.9%
associate-*r*53.4%
associate-*l/55.2%
fma-udef55.2%
associate-*r*57.4%
Simplified57.4%
Final simplification66.6%
(FPCore (n U t l Om U*)
:precision binary64
(if (<= l 3.9e+152)
(sqrt
(*
2.0
(+
(/ (fma l -2.0 (* (* n (/ l Om)) (- U* U))) (/ Om (* n (* U l))))
(* n (* U t)))))
(*
(* l (sqrt 2.0))
(sqrt (/ n (/ Om (* U (+ -2.0 (/ n (/ Om (- U* U)))))))))))
double code(double n, double U, double t, double l, double Om, double U_42_) {
double tmp;
if (l <= 3.9e+152) {
tmp = sqrt((2.0 * ((fma(l, -2.0, ((n * (l / Om)) * (U_42_ - U))) / (Om / (n * (U * l)))) + (n * (U * t)))));
} else {
tmp = (l * sqrt(2.0)) * sqrt((n / (Om / (U * (-2.0 + (n / (Om / (U_42_ - U))))))));
}
return tmp;
}
function code(n, U, t, l, Om, U_42_) tmp = 0.0 if (l <= 3.9e+152) tmp = sqrt(Float64(2.0 * Float64(Float64(fma(l, -2.0, Float64(Float64(n * Float64(l / Om)) * Float64(U_42_ - U))) / Float64(Om / Float64(n * Float64(U * l)))) + Float64(n * Float64(U * t))))); else tmp = Float64(Float64(l * sqrt(2.0)) * sqrt(Float64(n / Float64(Om / Float64(U * Float64(-2.0 + Float64(n / Float64(Om / Float64(U_42_ - U))))))))); end return tmp end
code[n_, U_, t_, l_, Om_, U$42$_] := If[LessEqual[l, 3.9e+152], N[Sqrt[N[(2.0 * N[(N[(N[(l * -2.0 + N[(N[(n * N[(l / Om), $MachinePrecision]), $MachinePrecision] * N[(U$42$ - U), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(Om / N[(n * N[(U * l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(n * N[(U * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], N[(N[(l * N[Sqrt[2.0], $MachinePrecision]), $MachinePrecision] * N[Sqrt[N[(n / N[(Om / N[(U * N[(-2.0 + N[(n / N[(Om / N[(U$42$ - U), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;\ell \leq 3.9 \cdot 10^{+152}:\\
\;\;\;\;\sqrt{2 \cdot \left(\frac{\mathsf{fma}\left(\ell, -2, \left(n \cdot \frac{\ell}{Om}\right) \cdot \left(U* - U\right)\right)}{\frac{Om}{n \cdot \left(U \cdot \ell\right)}} + n \cdot \left(U \cdot t\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;\left(\ell \cdot \sqrt{2}\right) \cdot \sqrt{\frac{n}{\frac{Om}{U \cdot \left(-2 + \frac{n}{\frac{Om}{U* - U}}\right)}}}\\
\end{array}
\end{array}
if l < 3.90000000000000011e152Initial program 52.6%
associate-*l*52.9%
sub-neg52.9%
associate--l+52.9%
*-commutative52.9%
distribute-rgt-neg-in52.9%
associate-*l/57.2%
associate-*l*57.2%
*-commutative57.2%
*-commutative57.2%
associate-*l*51.2%
unpow251.2%
associate-*l*52.3%
Simplified55.1%
Taylor expanded in t around inf 57.0%
distribute-lft-out57.0%
*-commutative57.0%
associate-/l*57.9%
+-commutative57.9%
*-commutative57.9%
associate-*r*59.3%
*-commutative59.3%
associate-*r*54.8%
associate-*l/56.9%
fma-udef56.9%
associate-*r*62.8%
Simplified62.8%
if 3.90000000000000011e152 < l Initial program 18.8%
associate-*l*19.2%
sub-neg19.2%
associate--l+19.2%
*-commutative19.2%
distribute-rgt-neg-in19.2%
associate-*l/38.9%
associate-*l*38.9%
*-commutative38.9%
*-commutative38.9%
associate-*l*38.9%
unpow238.9%
associate-*l*39.0%
Simplified49.1%
Taylor expanded in t around inf 38.4%
distribute-lft-out38.4%
*-commutative38.4%
associate-/l*47.9%
+-commutative47.9%
*-commutative47.9%
associate-*r*52.1%
*-commutative52.1%
associate-*r*52.1%
associate-*l/51.8%
fma-udef51.8%
associate-*r*51.8%
Simplified51.8%
Taylor expanded in l around inf 73.9%
associate-/l*77.2%
*-commutative77.2%
sub-neg77.2%
associate-/l*77.2%
metadata-eval77.2%
Simplified77.2%
Final simplification64.5%
(FPCore (n U t l Om U*)
:precision binary64
(if (<= l 2.8e+143)
(pow
(*
2.0
(+
(* n (* U t))
(/ (+ (* l -2.0) (/ n (/ (/ Om l) U*))) (/ Om (* n (* U l))))))
0.5)
(*
(* l (sqrt 2.0))
(sqrt (/ n (/ Om (* U (+ -2.0 (/ n (/ Om (- U* U)))))))))))
double code(double n, double U, double t, double l, double Om, double U_42_) {
double tmp;
if (l <= 2.8e+143) {
tmp = pow((2.0 * ((n * (U * t)) + (((l * -2.0) + (n / ((Om / l) / U_42_))) / (Om / (n * (U * l)))))), 0.5);
} else {
tmp = (l * sqrt(2.0)) * sqrt((n / (Om / (U * (-2.0 + (n / (Om / (U_42_ - 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 (l <= 2.8d+143) then
tmp = (2.0d0 * ((n * (u * t)) + (((l * (-2.0d0)) + (n / ((om / l) / u_42))) / (om / (n * (u * l)))))) ** 0.5d0
else
tmp = (l * sqrt(2.0d0)) * sqrt((n / (om / (u * ((-2.0d0) + (n / (om / (u_42 - 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 (l <= 2.8e+143) {
tmp = Math.pow((2.0 * ((n * (U * t)) + (((l * -2.0) + (n / ((Om / l) / U_42_))) / (Om / (n * (U * l)))))), 0.5);
} else {
tmp = (l * Math.sqrt(2.0)) * Math.sqrt((n / (Om / (U * (-2.0 + (n / (Om / (U_42_ - U))))))));
}
return tmp;
}
def code(n, U, t, l, Om, U_42_): tmp = 0 if l <= 2.8e+143: tmp = math.pow((2.0 * ((n * (U * t)) + (((l * -2.0) + (n / ((Om / l) / U_42_))) / (Om / (n * (U * l)))))), 0.5) else: tmp = (l * math.sqrt(2.0)) * math.sqrt((n / (Om / (U * (-2.0 + (n / (Om / (U_42_ - U)))))))) return tmp
function code(n, U, t, l, Om, U_42_) tmp = 0.0 if (l <= 2.8e+143) tmp = Float64(2.0 * Float64(Float64(n * Float64(U * t)) + Float64(Float64(Float64(l * -2.0) + Float64(n / Float64(Float64(Om / l) / U_42_))) / Float64(Om / Float64(n * Float64(U * l)))))) ^ 0.5; else tmp = Float64(Float64(l * sqrt(2.0)) * sqrt(Float64(n / Float64(Om / Float64(U * Float64(-2.0 + Float64(n / Float64(Om / Float64(U_42_ - U))))))))); end return tmp end
function tmp_2 = code(n, U, t, l, Om, U_42_) tmp = 0.0; if (l <= 2.8e+143) tmp = (2.0 * ((n * (U * t)) + (((l * -2.0) + (n / ((Om / l) / U_42_))) / (Om / (n * (U * l)))))) ^ 0.5; else tmp = (l * sqrt(2.0)) * sqrt((n / (Om / (U * (-2.0 + (n / (Om / (U_42_ - U)))))))); end tmp_2 = tmp; end
code[n_, U_, t_, l_, Om_, U$42$_] := If[LessEqual[l, 2.8e+143], N[Power[N[(2.0 * N[(N[(n * N[(U * t), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(l * -2.0), $MachinePrecision] + N[(n / N[(N[(Om / l), $MachinePrecision] / U$42$), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(Om / N[(n * N[(U * l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 0.5], $MachinePrecision], N[(N[(l * N[Sqrt[2.0], $MachinePrecision]), $MachinePrecision] * N[Sqrt[N[(n / N[(Om / N[(U * N[(-2.0 + N[(n / N[(Om / N[(U$42$ - U), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;\ell \leq 2.8 \cdot 10^{+143}:\\
\;\;\;\;{\left(2 \cdot \left(n \cdot \left(U \cdot t\right) + \frac{\ell \cdot -2 + \frac{n}{\frac{\frac{Om}{\ell}}{U*}}}{\frac{Om}{n \cdot \left(U \cdot \ell\right)}}\right)\right)}^{0.5}\\
\mathbf{else}:\\
\;\;\;\;\left(\ell \cdot \sqrt{2}\right) \cdot \sqrt{\frac{n}{\frac{Om}{U \cdot \left(-2 + \frac{n}{\frac{Om}{U* - U}}\right)}}}\\
\end{array}
\end{array}
if l < 2.79999999999999998e143Initial program 52.9%
associate-*l*53.2%
sub-neg53.2%
associate--l+53.2%
*-commutative53.2%
distribute-rgt-neg-in53.2%
associate-*l/57.5%
associate-*l*57.5%
*-commutative57.5%
*-commutative57.5%
associate-*l*51.4%
unpow251.4%
associate-*l*52.5%
Simplified55.3%
Taylor expanded in t around inf 57.3%
pow1/257.4%
distribute-lft-out57.4%
associate-/l*58.4%
associate-/l*57.5%
*-commutative57.5%
*-commutative57.5%
Applied egg-rr57.5%
Taylor expanded in U* around inf 57.2%
associate-/r*61.1%
Simplified61.1%
if 2.79999999999999998e143 < l Initial program 20.3%
associate-*l*20.7%
sub-neg20.7%
associate--l+20.7%
*-commutative20.7%
distribute-rgt-neg-in20.7%
associate-*l/38.5%
associate-*l*38.5%
*-commutative38.5%
*-commutative38.5%
associate-*l*38.5%
unpow238.5%
associate-*l*38.6%
Simplified47.9%
Taylor expanded in t around inf 38.0%
distribute-lft-out38.0%
*-commutative38.0%
associate-/l*46.6%
+-commutative46.6%
*-commutative46.6%
associate-*r*53.6%
*-commutative53.6%
associate-*r*53.6%
associate-*l/53.2%
fma-udef53.2%
associate-*r*53.2%
Simplified53.2%
Taylor expanded in l around inf 67.6%
associate-/l*73.4%
*-commutative73.4%
sub-neg73.4%
associate-/l*73.5%
metadata-eval73.5%
Simplified73.5%
Final simplification62.7%
(FPCore (n U t l Om U*)
:precision binary64
(if (<= l 8.6e+137)
(pow
(*
2.0
(+
(* n (* U t))
(/ (+ (* l -2.0) (/ n (/ (/ Om l) U*))) (/ Om (* n (* U l))))))
0.5)
(*
(* l (sqrt 2.0))
(sqrt (/ n (/ Om (* U (- -2.0 (/ (* n (- U U*)) Om)))))))))
double code(double n, double U, double t, double l, double Om, double U_42_) {
double tmp;
if (l <= 8.6e+137) {
tmp = pow((2.0 * ((n * (U * t)) + (((l * -2.0) + (n / ((Om / l) / U_42_))) / (Om / (n * (U * l)))))), 0.5);
} else {
tmp = (l * sqrt(2.0)) * sqrt((n / (Om / (U * (-2.0 - ((n * (U - U_42_)) / Om))))));
}
return tmp;
}
real(8) function code(n, u, t, l, om, u_42)
real(8), intent (in) :: n
real(8), intent (in) :: u
real(8), intent (in) :: t
real(8), intent (in) :: l
real(8), intent (in) :: om
real(8), intent (in) :: u_42
real(8) :: tmp
if (l <= 8.6d+137) then
tmp = (2.0d0 * ((n * (u * t)) + (((l * (-2.0d0)) + (n / ((om / l) / u_42))) / (om / (n * (u * l)))))) ** 0.5d0
else
tmp = (l * sqrt(2.0d0)) * sqrt((n / (om / (u * ((-2.0d0) - ((n * (u - u_42)) / om))))))
end if
code = tmp
end function
public static double code(double n, double U, double t, double l, double Om, double U_42_) {
double tmp;
if (l <= 8.6e+137) {
tmp = Math.pow((2.0 * ((n * (U * t)) + (((l * -2.0) + (n / ((Om / l) / U_42_))) / (Om / (n * (U * l)))))), 0.5);
} else {
tmp = (l * Math.sqrt(2.0)) * Math.sqrt((n / (Om / (U * (-2.0 - ((n * (U - U_42_)) / Om))))));
}
return tmp;
}
def code(n, U, t, l, Om, U_42_): tmp = 0 if l <= 8.6e+137: tmp = math.pow((2.0 * ((n * (U * t)) + (((l * -2.0) + (n / ((Om / l) / U_42_))) / (Om / (n * (U * l)))))), 0.5) else: tmp = (l * math.sqrt(2.0)) * math.sqrt((n / (Om / (U * (-2.0 - ((n * (U - U_42_)) / Om)))))) return tmp
function code(n, U, t, l, Om, U_42_) tmp = 0.0 if (l <= 8.6e+137) tmp = Float64(2.0 * Float64(Float64(n * Float64(U * t)) + Float64(Float64(Float64(l * -2.0) + Float64(n / Float64(Float64(Om / l) / U_42_))) / Float64(Om / Float64(n * Float64(U * l)))))) ^ 0.5; else tmp = Float64(Float64(l * sqrt(2.0)) * sqrt(Float64(n / Float64(Om / Float64(U * Float64(-2.0 - Float64(Float64(n * Float64(U - U_42_)) / Om))))))); end return tmp end
function tmp_2 = code(n, U, t, l, Om, U_42_) tmp = 0.0; if (l <= 8.6e+137) tmp = (2.0 * ((n * (U * t)) + (((l * -2.0) + (n / ((Om / l) / U_42_))) / (Om / (n * (U * l)))))) ^ 0.5; else tmp = (l * sqrt(2.0)) * sqrt((n / (Om / (U * (-2.0 - ((n * (U - U_42_)) / Om)))))); end tmp_2 = tmp; end
code[n_, U_, t_, l_, Om_, U$42$_] := If[LessEqual[l, 8.6e+137], N[Power[N[(2.0 * N[(N[(n * N[(U * t), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(l * -2.0), $MachinePrecision] + N[(n / N[(N[(Om / l), $MachinePrecision] / U$42$), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(Om / N[(n * N[(U * l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 0.5], $MachinePrecision], N[(N[(l * N[Sqrt[2.0], $MachinePrecision]), $MachinePrecision] * N[Sqrt[N[(n / N[(Om / N[(U * N[(-2.0 - N[(N[(n * N[(U - U$42$), $MachinePrecision]), $MachinePrecision] / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;\ell \leq 8.6 \cdot 10^{+137}:\\
\;\;\;\;{\left(2 \cdot \left(n \cdot \left(U \cdot t\right) + \frac{\ell \cdot -2 + \frac{n}{\frac{\frac{Om}{\ell}}{U*}}}{\frac{Om}{n \cdot \left(U \cdot \ell\right)}}\right)\right)}^{0.5}\\
\mathbf{else}:\\
\;\;\;\;\left(\ell \cdot \sqrt{2}\right) \cdot \sqrt{\frac{n}{\frac{Om}{U \cdot \left(-2 - \frac{n \cdot \left(U - U*\right)}{Om}\right)}}}\\
\end{array}
\end{array}
if l < 8.59999999999999929e137Initial program 52.7%
associate-*l*53.0%
sub-neg53.0%
associate--l+53.0%
*-commutative53.0%
distribute-rgt-neg-in53.0%
associate-*l/57.4%
associate-*l*57.4%
*-commutative57.4%
*-commutative57.4%
associate-*l*51.2%
unpow251.2%
associate-*l*52.3%
Simplified55.2%
Taylor expanded in t around inf 57.6%
pow1/257.8%
distribute-lft-out57.8%
associate-/l*58.7%
associate-/l*57.9%
*-commutative57.9%
*-commutative57.9%
Applied egg-rr57.9%
Taylor expanded in U* around inf 57.5%
associate-/r*61.0%
Simplified61.0%
if 8.59999999999999929e137 < l Initial program 24.2%
associate-*l*24.5%
sub-neg24.5%
associate--l+24.5%
*-commutative24.5%
distribute-rgt-neg-in24.5%
associate-*l/40.9%
associate-*l*40.9%
*-commutative40.9%
*-commutative40.9%
associate-*l*40.9%
unpow240.9%
associate-*l*41.0%
Simplified49.6%
Taylor expanded in t around inf 37.6%
distribute-lft-out37.6%
*-commutative37.6%
associate-/l*45.5%
+-commutative45.5%
*-commutative45.5%
associate-*r*54.7%
*-commutative54.7%
associate-*r*54.7%
associate-*l/54.4%
fma-udef54.4%
associate-*r*54.4%
Simplified54.4%
Taylor expanded in l around inf 64.9%
associate-/l*73.0%
*-commutative73.0%
sub-neg73.0%
metadata-eval73.0%
Simplified73.0%
Final simplification62.7%
(FPCore (n U t l Om U*)
:precision binary64
(if (<= l 2.35e+154)
(pow
(*
2.0
(+
(* n (* U t))
(/ (+ (* l -2.0) (/ n (/ (/ Om l) U*))) (/ Om (* n (* U l))))))
0.5)
(* (* l (sqrt 2.0)) (sqrt (* (/ n Om) (* U (+ -2.0 (/ n (/ Om U*)))))))))
double code(double n, double U, double t, double l, double Om, double U_42_) {
double tmp;
if (l <= 2.35e+154) {
tmp = pow((2.0 * ((n * (U * t)) + (((l * -2.0) + (n / ((Om / l) / U_42_))) / (Om / (n * (U * l)))))), 0.5);
} else {
tmp = (l * sqrt(2.0)) * sqrt(((n / Om) * (U * (-2.0 + (n / (Om / 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 (l <= 2.35d+154) then
tmp = (2.0d0 * ((n * (u * t)) + (((l * (-2.0d0)) + (n / ((om / l) / u_42))) / (om / (n * (u * l)))))) ** 0.5d0
else
tmp = (l * sqrt(2.0d0)) * sqrt(((n / om) * (u * ((-2.0d0) + (n / (om / 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 (l <= 2.35e+154) {
tmp = Math.pow((2.0 * ((n * (U * t)) + (((l * -2.0) + (n / ((Om / l) / U_42_))) / (Om / (n * (U * l)))))), 0.5);
} else {
tmp = (l * Math.sqrt(2.0)) * Math.sqrt(((n / Om) * (U * (-2.0 + (n / (Om / U_42_))))));
}
return tmp;
}
def code(n, U, t, l, Om, U_42_): tmp = 0 if l <= 2.35e+154: tmp = math.pow((2.0 * ((n * (U * t)) + (((l * -2.0) + (n / ((Om / l) / U_42_))) / (Om / (n * (U * l)))))), 0.5) else: tmp = (l * math.sqrt(2.0)) * math.sqrt(((n / Om) * (U * (-2.0 + (n / (Om / U_42_)))))) return tmp
function code(n, U, t, l, Om, U_42_) tmp = 0.0 if (l <= 2.35e+154) tmp = Float64(2.0 * Float64(Float64(n * Float64(U * t)) + Float64(Float64(Float64(l * -2.0) + Float64(n / Float64(Float64(Om / l) / U_42_))) / Float64(Om / Float64(n * Float64(U * l)))))) ^ 0.5; else tmp = Float64(Float64(l * sqrt(2.0)) * sqrt(Float64(Float64(n / Om) * Float64(U * Float64(-2.0 + Float64(n / Float64(Om / U_42_))))))); end return tmp end
function tmp_2 = code(n, U, t, l, Om, U_42_) tmp = 0.0; if (l <= 2.35e+154) tmp = (2.0 * ((n * (U * t)) + (((l * -2.0) + (n / ((Om / l) / U_42_))) / (Om / (n * (U * l)))))) ^ 0.5; else tmp = (l * sqrt(2.0)) * sqrt(((n / Om) * (U * (-2.0 + (n / (Om / U_42_)))))); end tmp_2 = tmp; end
code[n_, U_, t_, l_, Om_, U$42$_] := If[LessEqual[l, 2.35e+154], N[Power[N[(2.0 * N[(N[(n * N[(U * t), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(l * -2.0), $MachinePrecision] + N[(n / N[(N[(Om / l), $MachinePrecision] / U$42$), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(Om / N[(n * N[(U * l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 0.5], $MachinePrecision], N[(N[(l * N[Sqrt[2.0], $MachinePrecision]), $MachinePrecision] * N[Sqrt[N[(N[(n / Om), $MachinePrecision] * N[(U * N[(-2.0 + N[(n / N[(Om / U$42$), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;\ell \leq 2.35 \cdot 10^{+154}:\\
\;\;\;\;{\left(2 \cdot \left(n \cdot \left(U \cdot t\right) + \frac{\ell \cdot -2 + \frac{n}{\frac{\frac{Om}{\ell}}{U*}}}{\frac{Om}{n \cdot \left(U \cdot \ell\right)}}\right)\right)}^{0.5}\\
\mathbf{else}:\\
\;\;\;\;\left(\ell \cdot \sqrt{2}\right) \cdot \sqrt{\frac{n}{Om} \cdot \left(U \cdot \left(-2 + \frac{n}{\frac{Om}{U*}}\right)\right)}\\
\end{array}
\end{array}
if l < 2.34999999999999992e154Initial program 52.9%
associate-*l*52.7%
sub-neg52.7%
associate--l+52.7%
*-commutative52.7%
distribute-rgt-neg-in52.7%
associate-*l/57.0%
associate-*l*57.0%
*-commutative57.0%
*-commutative57.0%
associate-*l*51.0%
unpow251.0%
associate-*l*52.0%
Simplified54.9%
Taylor expanded in t around inf 56.7%
pow1/256.9%
distribute-lft-out56.9%
associate-/l*57.8%
associate-/l*57.0%
*-commutative57.0%
*-commutative57.0%
Applied egg-rr57.0%
Taylor expanded in U* around inf 56.6%
associate-/r*60.5%
Simplified60.5%
if 2.34999999999999992e154 < l Initial program 16.1%
associate-*l*19.7%
sub-neg19.7%
associate--l+19.7%
*-commutative19.7%
distribute-rgt-neg-in19.7%
associate-*l/40.0%
associate-*l*40.0%
*-commutative40.0%
*-commutative40.0%
associate-*l*40.0%
unpow240.0%
associate-*l*40.2%
Simplified50.7%
Taylor expanded in t around inf 39.7%
distribute-lft-out39.7%
*-commutative39.7%
associate-/l*49.5%
+-commutative49.5%
*-commutative49.5%
associate-*r*53.8%
*-commutative53.8%
associate-*r*53.8%
associate-*l/53.4%
fma-udef53.4%
associate-*r*53.4%
Simplified53.4%
Taylor expanded in l around inf 76.3%
associate-/l*79.7%
*-commutative79.7%
sub-neg79.7%
associate-/l*79.7%
metadata-eval79.7%
Simplified79.7%
Taylor expanded in U around 0 76.1%
*-un-lft-identity76.1%
associate-/l*79.5%
*-commutative79.5%
sub-neg79.5%
associate-/l*79.5%
metadata-eval79.5%
Applied egg-rr79.5%
*-lft-identity79.5%
associate-/r/72.7%
+-commutative72.7%
Simplified72.7%
Final simplification61.9%
(FPCore (n U t l Om U*)
:precision binary64
(if (<= l 6.4e+150)
(pow
(*
2.0
(+
(* n (* U t))
(/ (+ (* l -2.0) (/ n (/ (/ Om l) U*))) (/ Om (* n (* U l))))))
0.5)
(* (* l (sqrt 2.0)) (sqrt (/ (* n (* U (- (/ (* n U*) Om) 2.0))) Om)))))
double code(double n, double U, double t, double l, double Om, double U_42_) {
double tmp;
if (l <= 6.4e+150) {
tmp = pow((2.0 * ((n * (U * t)) + (((l * -2.0) + (n / ((Om / l) / U_42_))) / (Om / (n * (U * l)))))), 0.5);
} else {
tmp = (l * sqrt(2.0)) * sqrt(((n * (U * (((n * U_42_) / Om) - 2.0))) / Om));
}
return tmp;
}
real(8) function code(n, u, t, l, om, u_42)
real(8), intent (in) :: n
real(8), intent (in) :: u
real(8), intent (in) :: t
real(8), intent (in) :: l
real(8), intent (in) :: om
real(8), intent (in) :: u_42
real(8) :: tmp
if (l <= 6.4d+150) then
tmp = (2.0d0 * ((n * (u * t)) + (((l * (-2.0d0)) + (n / ((om / l) / u_42))) / (om / (n * (u * l)))))) ** 0.5d0
else
tmp = (l * sqrt(2.0d0)) * sqrt(((n * (u * (((n * u_42) / om) - 2.0d0))) / om))
end if
code = tmp
end function
public static double code(double n, double U, double t, double l, double Om, double U_42_) {
double tmp;
if (l <= 6.4e+150) {
tmp = Math.pow((2.0 * ((n * (U * t)) + (((l * -2.0) + (n / ((Om / l) / U_42_))) / (Om / (n * (U * l)))))), 0.5);
} else {
tmp = (l * Math.sqrt(2.0)) * Math.sqrt(((n * (U * (((n * U_42_) / Om) - 2.0))) / Om));
}
return tmp;
}
def code(n, U, t, l, Om, U_42_): tmp = 0 if l <= 6.4e+150: tmp = math.pow((2.0 * ((n * (U * t)) + (((l * -2.0) + (n / ((Om / l) / U_42_))) / (Om / (n * (U * l)))))), 0.5) else: tmp = (l * math.sqrt(2.0)) * math.sqrt(((n * (U * (((n * U_42_) / Om) - 2.0))) / Om)) return tmp
function code(n, U, t, l, Om, U_42_) tmp = 0.0 if (l <= 6.4e+150) tmp = Float64(2.0 * Float64(Float64(n * Float64(U * t)) + Float64(Float64(Float64(l * -2.0) + Float64(n / Float64(Float64(Om / l) / U_42_))) / Float64(Om / Float64(n * Float64(U * l)))))) ^ 0.5; else tmp = Float64(Float64(l * sqrt(2.0)) * sqrt(Float64(Float64(n * Float64(U * Float64(Float64(Float64(n * U_42_) / Om) - 2.0))) / Om))); end return tmp end
function tmp_2 = code(n, U, t, l, Om, U_42_) tmp = 0.0; if (l <= 6.4e+150) tmp = (2.0 * ((n * (U * t)) + (((l * -2.0) + (n / ((Om / l) / U_42_))) / (Om / (n * (U * l)))))) ^ 0.5; else tmp = (l * sqrt(2.0)) * sqrt(((n * (U * (((n * U_42_) / Om) - 2.0))) / Om)); end tmp_2 = tmp; end
code[n_, U_, t_, l_, Om_, U$42$_] := If[LessEqual[l, 6.4e+150], N[Power[N[(2.0 * N[(N[(n * N[(U * t), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(l * -2.0), $MachinePrecision] + N[(n / N[(N[(Om / l), $MachinePrecision] / U$42$), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(Om / N[(n * N[(U * l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 0.5], $MachinePrecision], N[(N[(l * N[Sqrt[2.0], $MachinePrecision]), $MachinePrecision] * N[Sqrt[N[(N[(n * N[(U * N[(N[(N[(n * U$42$), $MachinePrecision] / Om), $MachinePrecision] - 2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / Om), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;\ell \leq 6.4 \cdot 10^{+150}:\\
\;\;\;\;{\left(2 \cdot \left(n \cdot \left(U \cdot t\right) + \frac{\ell \cdot -2 + \frac{n}{\frac{\frac{Om}{\ell}}{U*}}}{\frac{Om}{n \cdot \left(U \cdot \ell\right)}}\right)\right)}^{0.5}\\
\mathbf{else}:\\
\;\;\;\;\left(\ell \cdot \sqrt{2}\right) \cdot \sqrt{\frac{n \cdot \left(U \cdot \left(\frac{n \cdot U*}{Om} - 2\right)\right)}{Om}}\\
\end{array}
\end{array}
if l < 6.40000000000000031e150Initial program 52.6%
associate-*l*52.9%
sub-neg52.9%
associate--l+52.9%
*-commutative52.9%
distribute-rgt-neg-in52.9%
associate-*l/57.2%
associate-*l*57.2%
*-commutative57.2%
*-commutative57.2%
associate-*l*51.2%
unpow251.2%
associate-*l*52.3%
Simplified55.1%
Taylor expanded in t around inf 57.0%
pow1/257.1%
distribute-lft-out57.1%
associate-/l*58.1%
associate-/l*57.2%
*-commutative57.2%
*-commutative57.2%
Applied egg-rr57.2%
Taylor expanded in U* around inf 56.9%
associate-/r*60.7%
Simplified60.7%
if 6.40000000000000031e150 < l Initial program 18.8%
associate-*l*19.2%
sub-neg19.2%
associate--l+19.2%
*-commutative19.2%
distribute-rgt-neg-in19.2%
associate-*l/38.9%
associate-*l*38.9%
*-commutative38.9%
*-commutative38.9%
associate-*l*38.9%
unpow238.9%
associate-*l*39.0%
Simplified49.1%
Taylor expanded in t around inf 38.4%
distribute-lft-out38.4%
*-commutative38.4%
associate-/l*47.9%
+-commutative47.9%
*-commutative47.9%
associate-*r*52.1%
*-commutative52.1%
associate-*r*52.1%
associate-*l/51.8%
fma-udef51.8%
associate-*r*51.8%
Simplified51.8%
Taylor expanded in l around inf 73.9%
associate-/l*77.2%
*-commutative77.2%
sub-neg77.2%
associate-/l*77.2%
metadata-eval77.2%
Simplified77.2%
Taylor expanded in U around 0 73.7%
Final simplification62.3%
(FPCore (n U t l Om U*)
:precision binary64
(let* ((t_1 (* n (* U l))) (t_2 (* n (* U t))))
(if (or (<= n -2.2e-245) (not (<= n 9e-178)))
(pow
(* 2.0 (+ t_2 (/ (+ (* l -2.0) (/ n (/ (/ Om l) U*))) (/ Om t_1))))
0.5)
(sqrt
(-
(* 2.0 t_2)
(* (/ (* t_1 (- (/ (* l (* n U)) Om) (* l -2.0))) Om) 2.0))))))
double code(double n, double U, double t, double l, double Om, double U_42_) {
double t_1 = n * (U * l);
double t_2 = n * (U * t);
double tmp;
if ((n <= -2.2e-245) || !(n <= 9e-178)) {
tmp = pow((2.0 * (t_2 + (((l * -2.0) + (n / ((Om / l) / U_42_))) / (Om / t_1)))), 0.5);
} else {
tmp = sqrt(((2.0 * t_2) - (((t_1 * (((l * (n * U)) / Om) - (l * -2.0))) / Om) * 2.0)));
}
return tmp;
}
real(8) function code(n, u, t, l, om, u_42)
real(8), intent (in) :: n
real(8), intent (in) :: u
real(8), intent (in) :: t
real(8), intent (in) :: l
real(8), intent (in) :: om
real(8), intent (in) :: u_42
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = n * (u * l)
t_2 = n * (u * t)
if ((n <= (-2.2d-245)) .or. (.not. (n <= 9d-178))) then
tmp = (2.0d0 * (t_2 + (((l * (-2.0d0)) + (n / ((om / l) / u_42))) / (om / t_1)))) ** 0.5d0
else
tmp = sqrt(((2.0d0 * t_2) - (((t_1 * (((l * (n * u)) / om) - (l * (-2.0d0)))) / om) * 2.0d0)))
end if
code = tmp
end function
public static double code(double n, double U, double t, double l, double Om, double U_42_) {
double t_1 = n * (U * l);
double t_2 = n * (U * t);
double tmp;
if ((n <= -2.2e-245) || !(n <= 9e-178)) {
tmp = Math.pow((2.0 * (t_2 + (((l * -2.0) + (n / ((Om / l) / U_42_))) / (Om / t_1)))), 0.5);
} else {
tmp = Math.sqrt(((2.0 * t_2) - (((t_1 * (((l * (n * U)) / Om) - (l * -2.0))) / Om) * 2.0)));
}
return tmp;
}
def code(n, U, t, l, Om, U_42_): t_1 = n * (U * l) t_2 = n * (U * t) tmp = 0 if (n <= -2.2e-245) or not (n <= 9e-178): tmp = math.pow((2.0 * (t_2 + (((l * -2.0) + (n / ((Om / l) / U_42_))) / (Om / t_1)))), 0.5) else: tmp = math.sqrt(((2.0 * t_2) - (((t_1 * (((l * (n * U)) / Om) - (l * -2.0))) / Om) * 2.0))) return tmp
function code(n, U, t, l, Om, U_42_) t_1 = Float64(n * Float64(U * l)) t_2 = Float64(n * Float64(U * t)) tmp = 0.0 if ((n <= -2.2e-245) || !(n <= 9e-178)) tmp = Float64(2.0 * Float64(t_2 + Float64(Float64(Float64(l * -2.0) + Float64(n / Float64(Float64(Om / l) / U_42_))) / Float64(Om / t_1)))) ^ 0.5; else tmp = sqrt(Float64(Float64(2.0 * t_2) - Float64(Float64(Float64(t_1 * Float64(Float64(Float64(l * Float64(n * U)) / Om) - Float64(l * -2.0))) / Om) * 2.0))); end return tmp end
function tmp_2 = code(n, U, t, l, Om, U_42_) t_1 = n * (U * l); t_2 = n * (U * t); tmp = 0.0; if ((n <= -2.2e-245) || ~((n <= 9e-178))) tmp = (2.0 * (t_2 + (((l * -2.0) + (n / ((Om / l) / U_42_))) / (Om / t_1)))) ^ 0.5; else tmp = sqrt(((2.0 * t_2) - (((t_1 * (((l * (n * U)) / Om) - (l * -2.0))) / Om) * 2.0))); end tmp_2 = 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[(n * N[(U * t), $MachinePrecision]), $MachinePrecision]}, If[Or[LessEqual[n, -2.2e-245], N[Not[LessEqual[n, 9e-178]], $MachinePrecision]], N[Power[N[(2.0 * N[(t$95$2 + N[(N[(N[(l * -2.0), $MachinePrecision] + N[(n / N[(N[(Om / l), $MachinePrecision] / U$42$), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(Om / t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 0.5], $MachinePrecision], N[Sqrt[N[(N[(2.0 * t$95$2), $MachinePrecision] - N[(N[(N[(t$95$1 * N[(N[(N[(l * N[(n * U), $MachinePrecision]), $MachinePrecision] / Om), $MachinePrecision] - N[(l * -2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / Om), $MachinePrecision] * 2.0), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := n \cdot \left(U \cdot \ell\right)\\
t_2 := n \cdot \left(U \cdot t\right)\\
\mathbf{if}\;n \leq -2.2 \cdot 10^{-245} \lor \neg \left(n \leq 9 \cdot 10^{-178}\right):\\
\;\;\;\;{\left(2 \cdot \left(t_2 + \frac{\ell \cdot -2 + \frac{n}{\frac{\frac{Om}{\ell}}{U*}}}{\frac{Om}{t_1}}\right)\right)}^{0.5}\\
\mathbf{else}:\\
\;\;\;\;\sqrt{2 \cdot t_2 - \frac{t_1 \cdot \left(\frac{\ell \cdot \left(n \cdot U\right)}{Om} - \ell \cdot -2\right)}{Om} \cdot 2}\\
\end{array}
\end{array}
if n < -2.19999999999999993e-245 or 8.99999999999999957e-178 < n Initial program 52.7%
associate-*l*52.9%
sub-neg52.9%
associate--l+52.9%
*-commutative52.9%
distribute-rgt-neg-in52.9%
associate-*l/58.6%
associate-*l*58.6%
*-commutative58.6%
*-commutative58.6%
associate-*l*52.1%
unpow252.1%
associate-*l*52.7%
Simplified57.2%
Taylor expanded in t around inf 56.8%
pow1/257.0%
distribute-lft-out57.0%
associate-/l*60.4%
associate-/l*60.4%
*-commutative60.4%
*-commutative60.4%
Applied egg-rr60.4%
Taylor expanded in U* around inf 60.3%
associate-/r*64.6%
Simplified64.6%
if -2.19999999999999993e-245 < n < 8.99999999999999957e-178Initial program 31.7%
associate-*l*32.2%
sub-neg32.2%
associate--l+32.2%
*-commutative32.2%
distribute-rgt-neg-in32.2%
associate-*l/40.1%
associate-*l*40.1%
*-commutative40.1%
*-commutative40.1%
associate-*l*40.1%
unpow240.1%
associate-*l*42.3%
Simplified42.6%
Taylor expanded in t around inf 46.3%
Taylor expanded in U* around 0 54.3%
associate-*r/54.3%
mul-1-neg54.3%
*-commutative54.3%
associate-*r*54.7%
distribute-rgt-neg-in54.7%
Simplified54.7%
Final simplification62.7%
(FPCore (n U t l Om U*)
:precision binary64
(pow
(*
2.0
(+
(* n (* U t))
(/ (+ (* l -2.0) (/ n (/ (/ Om l) U*))) (/ Om (* n (* U l))))))
0.5))
double code(double n, double U, double t, double l, double Om, double U_42_) {
return pow((2.0 * ((n * (U * t)) + (((l * -2.0) + (n / ((Om / l) / U_42_))) / (Om / (n * (U * l)))))), 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)) + (((l * (-2.0d0)) + (n / ((om / l) / u_42))) / (om / (n * (u * l)))))) ** 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)) + (((l * -2.0) + (n / ((Om / l) / U_42_))) / (Om / (n * (U * l)))))), 0.5);
}
def code(n, U, t, l, Om, U_42_): return math.pow((2.0 * ((n * (U * t)) + (((l * -2.0) + (n / ((Om / l) / U_42_))) / (Om / (n * (U * l)))))), 0.5)
function code(n, U, t, l, Om, U_42_) return Float64(2.0 * Float64(Float64(n * Float64(U * t)) + Float64(Float64(Float64(l * -2.0) + Float64(n / Float64(Float64(Om / l) / U_42_))) / Float64(Om / Float64(n * Float64(U * l)))))) ^ 0.5 end
function tmp = code(n, U, t, l, Om, U_42_) tmp = (2.0 * ((n * (U * t)) + (((l * -2.0) + (n / ((Om / l) / U_42_))) / (Om / (n * (U * l)))))) ^ 0.5; end
code[n_, U_, t_, l_, Om_, U$42$_] := N[Power[N[(2.0 * N[(N[(n * N[(U * t), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(l * -2.0), $MachinePrecision] + N[(n / N[(N[(Om / l), $MachinePrecision] / U$42$), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(Om / N[(n * N[(U * l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 0.5], $MachinePrecision]
\begin{array}{l}
\\
{\left(2 \cdot \left(n \cdot \left(U \cdot t\right) + \frac{\ell \cdot -2 + \frac{n}{\frac{\frac{Om}{\ell}}{U*}}}{\frac{Om}{n \cdot \left(U \cdot \ell\right)}}\right)\right)}^{0.5}
\end{array}
Initial program 48.7%
associate-*l*49.0%
sub-neg49.0%
associate--l+49.0%
*-commutative49.0%
distribute-rgt-neg-in49.0%
associate-*l/55.1%
associate-*l*55.1%
*-commutative55.1%
*-commutative55.1%
associate-*l*49.8%
unpow249.8%
associate-*l*50.7%
Simplified54.4%
Taylor expanded in t around inf 54.8%
pow1/255.0%
distribute-lft-out55.0%
associate-/l*57.0%
associate-/l*56.2%
*-commutative56.2%
*-commutative56.2%
Applied egg-rr56.2%
Taylor expanded in U* around inf 55.9%
associate-/r*59.4%
Simplified59.4%
Final simplification59.4%
(FPCore (n U t l Om U*)
:precision binary64
(if (or (<= Om -8.5e+165) (not (<= Om 1.05e+109)))
(sqrt (* (* n 2.0) (* U (- t (* (/ l Om) (* 2.0 l))))))
(sqrt
(*
(* n 2.0)
(* U (+ t (/ (* l (+ (* l -2.0) (/ (* n (* l U*)) Om))) Om)))))))
double code(double n, double U, double t, double l, double Om, double U_42_) {
double tmp;
if ((Om <= -8.5e+165) || !(Om <= 1.05e+109)) {
tmp = sqrt(((n * 2.0) * (U * (t - ((l / Om) * (2.0 * l))))));
} else {
tmp = sqrt(((n * 2.0) * (U * (t + ((l * ((l * -2.0) + ((n * (l * 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 ((om <= (-8.5d+165)) .or. (.not. (om <= 1.05d+109))) then
tmp = sqrt(((n * 2.0d0) * (u * (t - ((l / om) * (2.0d0 * l))))))
else
tmp = sqrt(((n * 2.0d0) * (u * (t + ((l * ((l * (-2.0d0)) + ((n * (l * 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 ((Om <= -8.5e+165) || !(Om <= 1.05e+109)) {
tmp = Math.sqrt(((n * 2.0) * (U * (t - ((l / Om) * (2.0 * l))))));
} else {
tmp = Math.sqrt(((n * 2.0) * (U * (t + ((l * ((l * -2.0) + ((n * (l * U_42_)) / Om))) / Om)))));
}
return tmp;
}
def code(n, U, t, l, Om, U_42_): tmp = 0 if (Om <= -8.5e+165) or not (Om <= 1.05e+109): tmp = math.sqrt(((n * 2.0) * (U * (t - ((l / Om) * (2.0 * l)))))) else: tmp = math.sqrt(((n * 2.0) * (U * (t + ((l * ((l * -2.0) + ((n * (l * U_42_)) / Om))) / Om))))) return tmp
function code(n, U, t, l, Om, U_42_) tmp = 0.0 if ((Om <= -8.5e+165) || !(Om <= 1.05e+109)) tmp = sqrt(Float64(Float64(n * 2.0) * Float64(U * Float64(t - Float64(Float64(l / Om) * Float64(2.0 * l)))))); else tmp = sqrt(Float64(Float64(n * 2.0) * Float64(U * Float64(t + Float64(Float64(l * Float64(Float64(l * -2.0) + Float64(Float64(n * Float64(l * U_42_)) / Om))) / Om))))); end return tmp end
function tmp_2 = code(n, U, t, l, Om, U_42_) tmp = 0.0; if ((Om <= -8.5e+165) || ~((Om <= 1.05e+109))) tmp = sqrt(((n * 2.0) * (U * (t - ((l / Om) * (2.0 * l)))))); else tmp = sqrt(((n * 2.0) * (U * (t + ((l * ((l * -2.0) + ((n * (l * U_42_)) / Om))) / Om))))); end tmp_2 = tmp; end
code[n_, U_, t_, l_, Om_, U$42$_] := If[Or[LessEqual[Om, -8.5e+165], N[Not[LessEqual[Om, 1.05e+109]], $MachinePrecision]], N[Sqrt[N[(N[(n * 2.0), $MachinePrecision] * N[(U * N[(t - N[(N[(l / Om), $MachinePrecision] * N[(2.0 * l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], N[Sqrt[N[(N[(n * 2.0), $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]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;Om \leq -8.5 \cdot 10^{+165} \lor \neg \left(Om \leq 1.05 \cdot 10^{+109}\right):\\
\;\;\;\;\sqrt{\left(n \cdot 2\right) \cdot \left(U \cdot \left(t - \frac{\ell}{Om} \cdot \left(2 \cdot \ell\right)\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;\sqrt{\left(n \cdot 2\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)}\\
\end{array}
\end{array}
if Om < -8.5000000000000001e165 or 1.0500000000000001e109 < Om Initial program 50.5%
associate-*l*48.0%
sub-neg48.0%
associate-+l-48.0%
sub-neg48.0%
associate-/l*61.3%
remove-double-neg61.3%
associate-*l*61.3%
Simplified61.3%
Taylor expanded in Om around inf 46.1%
unpow246.1%
associate-*r/58.5%
associate-*r*58.5%
Simplified58.5%
if -8.5000000000000001e165 < Om < 1.0500000000000001e109Initial program 47.5%
associate-*l*49.6%
sub-neg49.6%
associate--l+49.6%
*-commutative49.6%
distribute-rgt-neg-in49.6%
associate-*l/50.9%
associate-*l*50.9%
*-commutative50.9%
*-commutative50.9%
associate-*l*47.0%
unpow247.0%
associate-*l*47.9%
Simplified54.0%
Taylor expanded in U around 0 54.8%
Final simplification56.3%
(FPCore (n U t l Om U*)
:precision binary64
(if (or (<= Om -4.6e-134) (not (<= Om 8.8e-103)))
(sqrt (* (* n 2.0) (* U (- t (* (/ l Om) (* 2.0 l))))))
(sqrt
(* 2.0 (/ (* n (* l (* U (+ (* l -2.0) (/ (* n (* l U*)) Om))))) Om)))))
double code(double n, double U, double t, double l, double Om, double U_42_) {
double tmp;
if ((Om <= -4.6e-134) || !(Om <= 8.8e-103)) {
tmp = sqrt(((n * 2.0) * (U * (t - ((l / Om) * (2.0 * l))))));
} else {
tmp = sqrt((2.0 * ((n * (l * (U * ((l * -2.0) + ((n * (l * 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 ((om <= (-4.6d-134)) .or. (.not. (om <= 8.8d-103))) then
tmp = sqrt(((n * 2.0d0) * (u * (t - ((l / om) * (2.0d0 * l))))))
else
tmp = sqrt((2.0d0 * ((n * (l * (u * ((l * (-2.0d0)) + ((n * (l * 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 ((Om <= -4.6e-134) || !(Om <= 8.8e-103)) {
tmp = Math.sqrt(((n * 2.0) * (U * (t - ((l / Om) * (2.0 * l))))));
} else {
tmp = Math.sqrt((2.0 * ((n * (l * (U * ((l * -2.0) + ((n * (l * U_42_)) / Om))))) / Om)));
}
return tmp;
}
def code(n, U, t, l, Om, U_42_): tmp = 0 if (Om <= -4.6e-134) or not (Om <= 8.8e-103): tmp = math.sqrt(((n * 2.0) * (U * (t - ((l / Om) * (2.0 * l)))))) else: tmp = math.sqrt((2.0 * ((n * (l * (U * ((l * -2.0) + ((n * (l * U_42_)) / Om))))) / Om))) return tmp
function code(n, U, t, l, Om, U_42_) tmp = 0.0 if ((Om <= -4.6e-134) || !(Om <= 8.8e-103)) tmp = sqrt(Float64(Float64(n * 2.0) * Float64(U * Float64(t - Float64(Float64(l / Om) * Float64(2.0 * l)))))); else tmp = sqrt(Float64(2.0 * Float64(Float64(n * Float64(l * Float64(U * Float64(Float64(l * -2.0) + Float64(Float64(n * Float64(l * U_42_)) / Om))))) / Om))); end return tmp end
function tmp_2 = code(n, U, t, l, Om, U_42_) tmp = 0.0; if ((Om <= -4.6e-134) || ~((Om <= 8.8e-103))) tmp = sqrt(((n * 2.0) * (U * (t - ((l / Om) * (2.0 * l)))))); else tmp = sqrt((2.0 * ((n * (l * (U * ((l * -2.0) + ((n * (l * U_42_)) / Om))))) / Om))); end tmp_2 = tmp; end
code[n_, U_, t_, l_, Om_, U$42$_] := If[Or[LessEqual[Om, -4.6e-134], N[Not[LessEqual[Om, 8.8e-103]], $MachinePrecision]], N[Sqrt[N[(N[(n * 2.0), $MachinePrecision] * N[(U * N[(t - N[(N[(l / Om), $MachinePrecision] * N[(2.0 * l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], N[Sqrt[N[(2.0 * N[(N[(n * N[(l * N[(U * N[(N[(l * -2.0), $MachinePrecision] + N[(N[(n * N[(l * U$42$), $MachinePrecision]), $MachinePrecision] / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / Om), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;Om \leq -4.6 \cdot 10^{-134} \lor \neg \left(Om \leq 8.8 \cdot 10^{-103}\right):\\
\;\;\;\;\sqrt{\left(n \cdot 2\right) \cdot \left(U \cdot \left(t - \frac{\ell}{Om} \cdot \left(2 \cdot \ell\right)\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;\sqrt{2 \cdot \frac{n \cdot \left(\ell \cdot \left(U \cdot \left(\ell \cdot -2 + \frac{n \cdot \left(\ell \cdot U*\right)}{Om}\right)\right)\right)}{Om}}\\
\end{array}
\end{array}
if Om < -4.6000000000000001e-134 or 8.7999999999999997e-103 < Om Initial program 51.4%
associate-*l*51.6%
sub-neg51.6%
associate-+l-51.6%
sub-neg51.6%
associate-/l*59.0%
remove-double-neg59.0%
associate-*l*58.1%
Simplified58.1%
Taylor expanded in Om around inf 49.2%
unpow249.2%
associate-*r/55.2%
associate-*r*55.2%
Simplified55.2%
if -4.6000000000000001e-134 < Om < 8.7999999999999997e-103Initial program 36.4%
associate-*l*36.8%
sub-neg36.8%
associate--l+36.8%
*-commutative36.8%
distribute-rgt-neg-in36.8%
associate-*l/36.8%
associate-*l*36.8%
*-commutative36.8%
*-commutative36.8%
associate-*l*34.7%
unpow234.7%
associate-*l*34.9%
Simplified43.7%
Taylor expanded in t around 0 50.2%
Taylor expanded in U around 0 50.6%
Final simplification54.4%
(FPCore (n U t l Om U*) :precision binary64 (if (<= l 2.6e+116) (pow (* n (* 2.0 (* U t))) 0.5) (sqrt (* 2.0 (/ (* -2.0 (* n (* U (* l l)))) Om)))))
double code(double n, double U, double t, double l, double Om, double U_42_) {
double tmp;
if (l <= 2.6e+116) {
tmp = pow((n * (2.0 * (U * t))), 0.5);
} else {
tmp = sqrt((2.0 * ((-2.0 * (n * (U * (l * l)))) / Om)));
}
return tmp;
}
real(8) function code(n, u, t, l, om, u_42)
real(8), intent (in) :: n
real(8), intent (in) :: u
real(8), intent (in) :: t
real(8), intent (in) :: l
real(8), intent (in) :: om
real(8), intent (in) :: u_42
real(8) :: tmp
if (l <= 2.6d+116) then
tmp = (n * (2.0d0 * (u * t))) ** 0.5d0
else
tmp = sqrt((2.0d0 * (((-2.0d0) * (n * (u * (l * l)))) / om)))
end if
code = tmp
end function
public static double code(double n, double U, double t, double l, double Om, double U_42_) {
double tmp;
if (l <= 2.6e+116) {
tmp = Math.pow((n * (2.0 * (U * t))), 0.5);
} else {
tmp = Math.sqrt((2.0 * ((-2.0 * (n * (U * (l * l)))) / Om)));
}
return tmp;
}
def code(n, U, t, l, Om, U_42_): tmp = 0 if l <= 2.6e+116: tmp = math.pow((n * (2.0 * (U * t))), 0.5) else: tmp = math.sqrt((2.0 * ((-2.0 * (n * (U * (l * l)))) / Om))) return tmp
function code(n, U, t, l, Om, U_42_) tmp = 0.0 if (l <= 2.6e+116) tmp = Float64(n * Float64(2.0 * Float64(U * t))) ^ 0.5; else tmp = sqrt(Float64(2.0 * Float64(Float64(-2.0 * Float64(n * Float64(U * Float64(l * l)))) / Om))); end return tmp end
function tmp_2 = code(n, U, t, l, Om, U_42_) tmp = 0.0; if (l <= 2.6e+116) tmp = (n * (2.0 * (U * t))) ^ 0.5; else tmp = sqrt((2.0 * ((-2.0 * (n * (U * (l * l)))) / Om))); end tmp_2 = tmp; end
code[n_, U_, t_, l_, Om_, U$42$_] := If[LessEqual[l, 2.6e+116], N[Power[N[(n * N[(2.0 * N[(U * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 0.5], $MachinePrecision], N[Sqrt[N[(2.0 * N[(N[(-2.0 * N[(n * N[(U * N[(l * l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / Om), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;\ell \leq 2.6 \cdot 10^{+116}:\\
\;\;\;\;{\left(n \cdot \left(2 \cdot \left(U \cdot t\right)\right)\right)}^{0.5}\\
\mathbf{else}:\\
\;\;\;\;\sqrt{2 \cdot \frac{-2 \cdot \left(n \cdot \left(U \cdot \left(\ell \cdot \ell\right)\right)\right)}{Om}}\\
\end{array}
\end{array}
if l < 2.59999999999999987e116Initial program 52.7%
*-commutative52.7%
associate-*l*53.1%
associate-*l*53.0%
associate-*l*51.7%
sub-neg51.7%
+-commutative51.7%
*-commutative51.7%
distribute-rgt-neg-in51.7%
fma-def51.7%
associate-*r/56.2%
metadata-eval56.2%
Simplified56.2%
Taylor expanded in l around 0 45.0%
pow1/246.0%
associate-*l*46.0%
Applied egg-rr46.0%
if 2.59999999999999987e116 < l Initial program 27.0%
associate-*l*29.7%
sub-neg29.7%
associate--l+29.7%
*-commutative29.7%
distribute-rgt-neg-in29.7%
associate-*l/44.4%
associate-*l*44.4%
*-commutative44.4%
*-commutative44.4%
associate-*l*44.4%
unpow244.4%
associate-*l*44.5%
Simplified52.3%
Taylor expanded in t around 0 39.5%
Taylor expanded in n around 0 25.3%
*-commutative25.3%
unpow225.3%
Simplified25.3%
Final simplification42.8%
(FPCore (n U t l Om U*) :precision binary64 (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_) {
return sqrt((2.0 * ((n * U) * (t + (-2.0 * ((l * l) / Om))))));
}
real(8) function code(n, u, t, l, om, u_42)
real(8), intent (in) :: n
real(8), intent (in) :: u
real(8), intent (in) :: t
real(8), intent (in) :: l
real(8), intent (in) :: om
real(8), intent (in) :: u_42
code = sqrt((2.0d0 * ((n * u) * (t + ((-2.0d0) * ((l * l) / om))))))
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))))));
}
def code(n, U, t, l, Om, U_42_): return math.sqrt((2.0 * ((n * U) * (t + (-2.0 * ((l * l) / Om))))))
function code(n, U, t, l, Om, U_42_) return sqrt(Float64(2.0 * Float64(Float64(n * U) * Float64(t + Float64(-2.0 * Float64(Float64(l * l) / Om)))))) end
function tmp = code(n, U, t, l, Om, U_42_) tmp = sqrt((2.0 * ((n * U) * (t + (-2.0 * ((l * l) / Om)))))); end
code[n_, U_, t_, l_, Om_, U$42$_] := N[Sqrt[N[(2.0 * N[(N[(n * U), $MachinePrecision] * N[(t + N[(-2.0 * N[(N[(l * l), $MachinePrecision] / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]
\begin{array}{l}
\\
\sqrt{2 \cdot \left(\left(n \cdot U\right) \cdot \left(t + -2 \cdot \frac{\ell \cdot \ell}{Om}\right)\right)}
\end{array}
Initial program 48.7%
associate-*l*49.0%
sub-neg49.0%
associate--l+49.0%
*-commutative49.0%
distribute-rgt-neg-in49.0%
associate-*l/55.1%
associate-*l*55.1%
*-commutative55.1%
*-commutative55.1%
associate-*l*49.8%
unpow249.8%
associate-*l*50.7%
Simplified54.4%
Taylor expanded in U* around 0 40.7%
*-commutative40.7%
+-commutative40.7%
associate-/l*45.4%
+-commutative45.4%
mul-1-neg45.4%
unsub-neg45.4%
*-commutative45.4%
associate-/l*45.9%
Simplified45.9%
Taylor expanded in U around 0 45.0%
*-commutative45.0%
unpow245.0%
Simplified45.0%
Final simplification45.0%
(FPCore (n U t l Om U*) :precision binary64 (sqrt (* (* n 2.0) (* U (- t (* (/ l Om) (* 2.0 l)))))))
double code(double n, double U, double t, double l, double Om, double U_42_) {
return sqrt(((n * 2.0) * (U * (t - ((l / Om) * (2.0 * l))))));
}
real(8) function code(n, u, t, l, om, u_42)
real(8), intent (in) :: n
real(8), intent (in) :: u
real(8), intent (in) :: t
real(8), intent (in) :: l
real(8), intent (in) :: om
real(8), intent (in) :: u_42
code = sqrt(((n * 2.0d0) * (u * (t - ((l / om) * (2.0d0 * l))))))
end function
public static double code(double n, double U, double t, double l, double Om, double U_42_) {
return Math.sqrt(((n * 2.0) * (U * (t - ((l / Om) * (2.0 * l))))));
}
def code(n, U, t, l, Om, U_42_): return math.sqrt(((n * 2.0) * (U * (t - ((l / Om) * (2.0 * l))))))
function code(n, U, t, l, Om, U_42_) return sqrt(Float64(Float64(n * 2.0) * Float64(U * Float64(t - Float64(Float64(l / Om) * Float64(2.0 * l)))))) end
function tmp = code(n, U, t, l, Om, U_42_) tmp = sqrt(((n * 2.0) * (U * (t - ((l / Om) * (2.0 * l)))))); end
code[n_, U_, t_, l_, Om_, U$42$_] := N[Sqrt[N[(N[(n * 2.0), $MachinePrecision] * N[(U * N[(t - N[(N[(l / Om), $MachinePrecision] * N[(2.0 * l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]
\begin{array}{l}
\\
\sqrt{\left(n \cdot 2\right) \cdot \left(U \cdot \left(t - \frac{\ell}{Om} \cdot \left(2 \cdot \ell\right)\right)\right)}
\end{array}
Initial program 48.7%
associate-*l*49.0%
sub-neg49.0%
associate-+l-49.0%
sub-neg49.0%
associate-/l*55.0%
remove-double-neg55.0%
associate-*l*53.9%
Simplified53.9%
Taylor expanded in Om around inf 45.3%
unpow245.3%
associate-*r/50.3%
associate-*r*50.3%
Simplified50.3%
Final simplification50.3%
(FPCore (n U t l Om U*) :precision binary64 (if (<= l 4.3e-101) (sqrt (* n (* t (* 2.0 U)))) (pow (* 2.0 (* U (* n t))) 0.5)))
double code(double n, double U, double t, double l, double Om, double U_42_) {
double tmp;
if (l <= 4.3e-101) {
tmp = sqrt((n * (t * (2.0 * U))));
} else {
tmp = pow((2.0 * (U * (n * t))), 0.5);
}
return tmp;
}
real(8) function code(n, u, t, l, om, u_42)
real(8), intent (in) :: n
real(8), intent (in) :: u
real(8), intent (in) :: t
real(8), intent (in) :: l
real(8), intent (in) :: om
real(8), intent (in) :: u_42
real(8) :: tmp
if (l <= 4.3d-101) then
tmp = sqrt((n * (t * (2.0d0 * u))))
else
tmp = (2.0d0 * (u * (n * t))) ** 0.5d0
end if
code = tmp
end function
public static double code(double n, double U, double t, double l, double Om, double U_42_) {
double tmp;
if (l <= 4.3e-101) {
tmp = Math.sqrt((n * (t * (2.0 * U))));
} else {
tmp = Math.pow((2.0 * (U * (n * t))), 0.5);
}
return tmp;
}
def code(n, U, t, l, Om, U_42_): tmp = 0 if l <= 4.3e-101: tmp = math.sqrt((n * (t * (2.0 * U)))) else: tmp = math.pow((2.0 * (U * (n * t))), 0.5) return tmp
function code(n, U, t, l, Om, U_42_) tmp = 0.0 if (l <= 4.3e-101) tmp = sqrt(Float64(n * Float64(t * Float64(2.0 * U)))); else tmp = Float64(2.0 * Float64(U * Float64(n * t))) ^ 0.5; end return tmp end
function tmp_2 = code(n, U, t, l, Om, U_42_) tmp = 0.0; if (l <= 4.3e-101) tmp = sqrt((n * (t * (2.0 * U)))); else tmp = (2.0 * (U * (n * t))) ^ 0.5; end tmp_2 = tmp; end
code[n_, U_, t_, l_, Om_, U$42$_] := If[LessEqual[l, 4.3e-101], N[Sqrt[N[(n * N[(t * N[(2.0 * U), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], N[Power[N[(2.0 * N[(U * N[(n * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 0.5], $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;\ell \leq 4.3 \cdot 10^{-101}:\\
\;\;\;\;\sqrt{n \cdot \left(t \cdot \left(2 \cdot U\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;{\left(2 \cdot \left(U \cdot \left(n \cdot t\right)\right)\right)}^{0.5}\\
\end{array}
\end{array}
if l < 4.2999999999999997e-101Initial program 49.5%
*-commutative49.5%
associate-*l*50.0%
associate-*l*50.9%
associate-*l*50.4%
sub-neg50.4%
+-commutative50.4%
*-commutative50.4%
distribute-rgt-neg-in50.4%
fma-def50.4%
associate-*r/55.9%
metadata-eval55.9%
Simplified55.9%
Taylor expanded in l around 0 43.9%
if 4.2999999999999997e-101 < l Initial program 47.0%
*-commutative47.0%
associate-*l*47.0%
associate-*l*46.0%
associate-*l*43.6%
sub-neg43.6%
+-commutative43.6%
*-commutative43.6%
distribute-rgt-neg-in43.6%
fma-def43.6%
associate-*r/50.8%
metadata-eval50.8%
Simplified50.8%
Taylor expanded in l around 0 29.0%
pow1/230.3%
associate-*l*30.3%
Applied egg-rr30.3%
Taylor expanded in n around 0 30.3%
associate-*r*36.3%
Simplified36.3%
Final simplification41.5%
(FPCore (n U t l Om U*) :precision binary64 (if (<= l 4e-101) (pow (* n (* 2.0 (* U t))) 0.5) (pow (* 2.0 (* U (* n t))) 0.5)))
double code(double n, double U, double t, double l, double Om, double U_42_) {
double tmp;
if (l <= 4e-101) {
tmp = pow((n * (2.0 * (U * t))), 0.5);
} else {
tmp = pow((2.0 * (U * (n * t))), 0.5);
}
return tmp;
}
real(8) function code(n, u, t, l, om, u_42)
real(8), intent (in) :: n
real(8), intent (in) :: u
real(8), intent (in) :: t
real(8), intent (in) :: l
real(8), intent (in) :: om
real(8), intent (in) :: u_42
real(8) :: tmp
if (l <= 4d-101) then
tmp = (n * (2.0d0 * (u * t))) ** 0.5d0
else
tmp = (2.0d0 * (u * (n * t))) ** 0.5d0
end if
code = tmp
end function
public static double code(double n, double U, double t, double l, double Om, double U_42_) {
double tmp;
if (l <= 4e-101) {
tmp = Math.pow((n * (2.0 * (U * t))), 0.5);
} else {
tmp = Math.pow((2.0 * (U * (n * t))), 0.5);
}
return tmp;
}
def code(n, U, t, l, Om, U_42_): tmp = 0 if l <= 4e-101: tmp = math.pow((n * (2.0 * (U * t))), 0.5) else: tmp = math.pow((2.0 * (U * (n * t))), 0.5) return tmp
function code(n, U, t, l, Om, U_42_) tmp = 0.0 if (l <= 4e-101) tmp = Float64(n * Float64(2.0 * Float64(U * t))) ^ 0.5; else tmp = Float64(2.0 * Float64(U * Float64(n * t))) ^ 0.5; end return tmp end
function tmp_2 = code(n, U, t, l, Om, U_42_) tmp = 0.0; if (l <= 4e-101) tmp = (n * (2.0 * (U * t))) ^ 0.5; else tmp = (2.0 * (U * (n * t))) ^ 0.5; end tmp_2 = tmp; end
code[n_, U_, t_, l_, Om_, U$42$_] := If[LessEqual[l, 4e-101], N[Power[N[(n * N[(2.0 * N[(U * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 0.5], $MachinePrecision], N[Power[N[(2.0 * N[(U * N[(n * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 0.5], $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;\ell \leq 4 \cdot 10^{-101}:\\
\;\;\;\;{\left(n \cdot \left(2 \cdot \left(U \cdot t\right)\right)\right)}^{0.5}\\
\mathbf{else}:\\
\;\;\;\;{\left(2 \cdot \left(U \cdot \left(n \cdot t\right)\right)\right)}^{0.5}\\
\end{array}
\end{array}
if l < 4.00000000000000021e-101Initial program 49.5%
*-commutative49.5%
associate-*l*50.0%
associate-*l*50.9%
associate-*l*50.4%
sub-neg50.4%
+-commutative50.4%
*-commutative50.4%
distribute-rgt-neg-in50.4%
fma-def50.4%
associate-*r/55.9%
metadata-eval55.9%
Simplified55.9%
Taylor expanded in l around 0 43.9%
pow1/245.1%
associate-*l*45.1%
Applied egg-rr45.1%
if 4.00000000000000021e-101 < l Initial program 47.0%
*-commutative47.0%
associate-*l*47.0%
associate-*l*46.0%
associate-*l*43.6%
sub-neg43.6%
+-commutative43.6%
*-commutative43.6%
distribute-rgt-neg-in43.6%
fma-def43.6%
associate-*r/50.8%
metadata-eval50.8%
Simplified50.8%
Taylor expanded in l around 0 29.0%
pow1/230.3%
associate-*l*30.3%
Applied egg-rr30.3%
Taylor expanded in n around 0 30.3%
associate-*r*36.3%
Simplified36.3%
Final simplification42.3%
(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 48.7%
*-commutative48.7%
associate-*l*49.1%
associate-*l*49.4%
associate-*l*48.2%
sub-neg48.2%
+-commutative48.2%
*-commutative48.2%
distribute-rgt-neg-in48.2%
fma-def48.2%
associate-*r/54.3%
metadata-eval54.3%
Simplified54.3%
Taylor expanded in l around 0 39.2%
pow1/240.4%
associate-*l*40.4%
Applied egg-rr40.4%
Taylor expanded in n around 0 40.4%
associate-*r*39.2%
Simplified39.2%
*-un-lft-identity39.2%
unpow1/236.5%
associate-*r*39.2%
Applied egg-rr39.2%
*-lft-identity39.2%
associate-*r*36.5%
Simplified36.5%
Final simplification36.5%
(FPCore (n U t l Om U*) :precision binary64 (sqrt (* n (* t (* 2.0 U)))))
double code(double n, double U, double t, double l, double Om, double U_42_) {
return sqrt((n * (t * (2.0 * U))));
}
real(8) function code(n, u, t, l, om, u_42)
real(8), intent (in) :: n
real(8), intent (in) :: u
real(8), intent (in) :: t
real(8), intent (in) :: l
real(8), intent (in) :: om
real(8), intent (in) :: u_42
code = sqrt((n * (t * (2.0d0 * u))))
end function
public static double code(double n, double U, double t, double l, double Om, double U_42_) {
return Math.sqrt((n * (t * (2.0 * U))));
}
def code(n, U, t, l, Om, U_42_): return math.sqrt((n * (t * (2.0 * U))))
function code(n, U, t, l, Om, U_42_) return sqrt(Float64(n * Float64(t * Float64(2.0 * U)))) end
function tmp = code(n, U, t, l, Om, U_42_) tmp = sqrt((n * (t * (2.0 * U)))); end
code[n_, U_, t_, l_, Om_, U$42$_] := N[Sqrt[N[(n * N[(t * N[(2.0 * U), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]
\begin{array}{l}
\\
\sqrt{n \cdot \left(t \cdot \left(2 \cdot U\right)\right)}
\end{array}
Initial program 48.7%
*-commutative48.7%
associate-*l*49.1%
associate-*l*49.4%
associate-*l*48.2%
sub-neg48.2%
+-commutative48.2%
*-commutative48.2%
distribute-rgt-neg-in48.2%
fma-def48.2%
associate-*r/54.3%
metadata-eval54.3%
Simplified54.3%
Taylor expanded in l around 0 39.2%
Final simplification39.2%
herbie shell --seed 2023175
(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*))))))