
(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 13 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}
l_m = (fabs.f64 l)
(FPCore (n U t l_m Om U*)
:precision binary64
(let* ((t_1 (* n (pow (/ l_m Om) 2.0)))
(t_2
(sqrt
(*
(* (* 2.0 n) U)
(+ (- t (* 2.0 (/ (* l_m l_m) Om))) (* t_1 (- U* U)))))))
(if (<= t_2 0.0)
(sqrt (* 2.0 (* U (* n (+ t (/ (* U* (* (pow l_m 2.0) (/ n Om))) Om))))))
(if (<= t_2 INFINITY)
(sqrt
(*
(* 2.0 (* n U))
(- t (+ (* t_1 (- U U*)) (* 2.0 (* l_m (/ l_m Om)))))))
(*
(sqrt (* U (* n (- (/ (* n U*) (pow Om 2.0)) (/ 2.0 Om)))))
(* l_m (sqrt 2.0)))))))l_m = fabs(l);
double code(double n, double U, double t, double l_m, double Om, double U_42_) {
double t_1 = n * pow((l_m / Om), 2.0);
double t_2 = sqrt((((2.0 * n) * U) * ((t - (2.0 * ((l_m * l_m) / Om))) + (t_1 * (U_42_ - U)))));
double tmp;
if (t_2 <= 0.0) {
tmp = sqrt((2.0 * (U * (n * (t + ((U_42_ * (pow(l_m, 2.0) * (n / Om))) / Om))))));
} else if (t_2 <= ((double) INFINITY)) {
tmp = sqrt(((2.0 * (n * U)) * (t - ((t_1 * (U - U_42_)) + (2.0 * (l_m * (l_m / Om)))))));
} else {
tmp = sqrt((U * (n * (((n * U_42_) / pow(Om, 2.0)) - (2.0 / Om))))) * (l_m * sqrt(2.0));
}
return tmp;
}
l_m = Math.abs(l);
public static double code(double n, double U, double t, double l_m, double Om, double U_42_) {
double t_1 = n * Math.pow((l_m / Om), 2.0);
double t_2 = Math.sqrt((((2.0 * n) * U) * ((t - (2.0 * ((l_m * l_m) / Om))) + (t_1 * (U_42_ - U)))));
double tmp;
if (t_2 <= 0.0) {
tmp = Math.sqrt((2.0 * (U * (n * (t + ((U_42_ * (Math.pow(l_m, 2.0) * (n / Om))) / Om))))));
} else if (t_2 <= Double.POSITIVE_INFINITY) {
tmp = Math.sqrt(((2.0 * (n * U)) * (t - ((t_1 * (U - U_42_)) + (2.0 * (l_m * (l_m / Om)))))));
} else {
tmp = Math.sqrt((U * (n * (((n * U_42_) / Math.pow(Om, 2.0)) - (2.0 / Om))))) * (l_m * Math.sqrt(2.0));
}
return tmp;
}
l_m = math.fabs(l) def code(n, U, t, l_m, Om, U_42_): t_1 = n * math.pow((l_m / Om), 2.0) t_2 = math.sqrt((((2.0 * n) * U) * ((t - (2.0 * ((l_m * l_m) / Om))) + (t_1 * (U_42_ - U))))) tmp = 0 if t_2 <= 0.0: tmp = math.sqrt((2.0 * (U * (n * (t + ((U_42_ * (math.pow(l_m, 2.0) * (n / Om))) / Om)))))) elif t_2 <= math.inf: tmp = math.sqrt(((2.0 * (n * U)) * (t - ((t_1 * (U - U_42_)) + (2.0 * (l_m * (l_m / Om))))))) else: tmp = math.sqrt((U * (n * (((n * U_42_) / math.pow(Om, 2.0)) - (2.0 / Om))))) * (l_m * math.sqrt(2.0)) return tmp
l_m = abs(l) function code(n, U, t, l_m, Om, U_42_) t_1 = Float64(n * (Float64(l_m / Om) ^ 2.0)) t_2 = sqrt(Float64(Float64(Float64(2.0 * n) * U) * Float64(Float64(t - Float64(2.0 * Float64(Float64(l_m * l_m) / Om))) + Float64(t_1 * Float64(U_42_ - U))))) tmp = 0.0 if (t_2 <= 0.0) tmp = sqrt(Float64(2.0 * Float64(U * Float64(n * Float64(t + Float64(Float64(U_42_ * Float64((l_m ^ 2.0) * Float64(n / Om))) / Om)))))); elseif (t_2 <= Inf) tmp = sqrt(Float64(Float64(2.0 * Float64(n * U)) * Float64(t - Float64(Float64(t_1 * Float64(U - U_42_)) + Float64(2.0 * Float64(l_m * Float64(l_m / Om))))))); else tmp = Float64(sqrt(Float64(U * Float64(n * Float64(Float64(Float64(n * U_42_) / (Om ^ 2.0)) - Float64(2.0 / Om))))) * Float64(l_m * sqrt(2.0))); end return tmp end
l_m = abs(l); function tmp_2 = code(n, U, t, l_m, Om, U_42_) t_1 = n * ((l_m / Om) ^ 2.0); t_2 = sqrt((((2.0 * n) * U) * ((t - (2.0 * ((l_m * l_m) / Om))) + (t_1 * (U_42_ - U))))); tmp = 0.0; if (t_2 <= 0.0) tmp = sqrt((2.0 * (U * (n * (t + ((U_42_ * ((l_m ^ 2.0) * (n / Om))) / Om)))))); elseif (t_2 <= Inf) tmp = sqrt(((2.0 * (n * U)) * (t - ((t_1 * (U - U_42_)) + (2.0 * (l_m * (l_m / Om))))))); else tmp = sqrt((U * (n * (((n * U_42_) / (Om ^ 2.0)) - (2.0 / Om))))) * (l_m * sqrt(2.0)); end tmp_2 = tmp; end
l_m = N[Abs[l], $MachinePrecision]
code[n_, U_, t_, l$95$m_, Om_, U$42$_] := Block[{t$95$1 = N[(n * N[Power[N[(l$95$m / Om), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[Sqrt[N[(N[(N[(2.0 * n), $MachinePrecision] * U), $MachinePrecision] * N[(N[(t - N[(2.0 * N[(N[(l$95$m * l$95$m), $MachinePrecision] / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(t$95$1 * N[(U$42$ - U), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]}, If[LessEqual[t$95$2, 0.0], N[Sqrt[N[(2.0 * N[(U * N[(n * N[(t + N[(N[(U$42$ * N[(N[Power[l$95$m, 2.0], $MachinePrecision] * N[(n / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / Om), $MachinePrecision]), $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[(N[(t$95$1 * N[(U - U$42$), $MachinePrecision]), $MachinePrecision] + N[(2.0 * N[(l$95$m * N[(l$95$m / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], N[(N[Sqrt[N[(U * N[(n * N[(N[(N[(n * U$42$), $MachinePrecision] / N[Power[Om, 2.0], $MachinePrecision]), $MachinePrecision] - N[(2.0 / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * N[(l$95$m * N[Sqrt[2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
l_m = \left|\ell\right|
\\
\begin{array}{l}
t_1 := n \cdot {\left(\frac{l\_m}{Om}\right)}^{2}\\
t_2 := \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(t - 2 \cdot \frac{l\_m \cdot l\_m}{Om}\right) + t\_1 \cdot \left(U* - U\right)\right)}\\
\mathbf{if}\;t\_2 \leq 0:\\
\;\;\;\;\sqrt{2 \cdot \left(U \cdot \left(n \cdot \left(t + \frac{U* \cdot \left({l\_m}^{2} \cdot \frac{n}{Om}\right)}{Om}\right)\right)\right)}\\
\mathbf{elif}\;t\_2 \leq \infty:\\
\;\;\;\;\sqrt{\left(2 \cdot \left(n \cdot U\right)\right) \cdot \left(t - \left(t\_1 \cdot \left(U - U*\right) + 2 \cdot \left(l\_m \cdot \frac{l\_m}{Om}\right)\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;\sqrt{U \cdot \left(n \cdot \left(\frac{n \cdot U*}{{Om}^{2}} - \frac{2}{Om}\right)\right)} \cdot \left(l\_m \cdot \sqrt{2}\right)\\
\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 14.1%
Simplified14.1%
Taylor expanded in Om around inf 16.5%
*-commutative16.5%
associate-/l*16.4%
distribute-lft-out16.4%
Simplified16.4%
Taylor expanded in U around 0 39.7%
mul-1-neg39.7%
Simplified39.7%
Taylor expanded in U* around inf 32.4%
mul-1-neg32.4%
associate-/l*32.4%
associate-/l*39.9%
Simplified39.9%
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*))))) < +inf.0Initial program 69.3%
Simplified73.4%
if +inf.0 < (sqrt.f64 (*.f64 (*.f64 (*.f64 2 n) U) (-.f64 (-.f64 t (*.f64 2 (/.f64 (*.f64 l l) Om))) (*.f64 (*.f64 n (pow.f64 (/.f64 l Om) 2)) (-.f64 U U*))))) Initial program 0.0%
Simplified10.5%
Taylor expanded in Om around inf 15.4%
*-commutative15.4%
associate-/l*15.4%
distribute-lft-out41.8%
Simplified41.8%
Taylor expanded in U around 0 43.2%
mul-1-neg43.2%
Simplified43.2%
Taylor expanded in l around inf 40.2%
associate-*r/40.2%
metadata-eval40.2%
Simplified40.2%
Final simplification63.4%
l_m = (fabs.f64 l)
(FPCore (n U t l_m Om U*)
:precision binary64
(let* ((t_1 (* n (pow (/ l_m Om) 2.0)))
(t_2
(*
(* (* 2.0 n) U)
(+ (- t (* 2.0 (/ (* l_m l_m) Om))) (* t_1 (- U* U))))))
(if (<= t_2 0.0)
(sqrt
(*
2.0
(* U (* n (- t (/ (* (pow l_m 2.0) (- 2.0 (/ (* n U*) Om))) Om))))))
(if (<= t_2 INFINITY)
(sqrt
(*
(* 2.0 (* n U))
(- t (+ (* t_1 (- U U*)) (* 2.0 (* l_m (/ l_m Om)))))))
(* (* n l_m) (* (sqrt 2.0) (/ (sqrt (* U U*)) Om)))))))l_m = fabs(l);
double code(double n, double U, double t, double l_m, double Om, double U_42_) {
double t_1 = n * pow((l_m / Om), 2.0);
double t_2 = ((2.0 * n) * U) * ((t - (2.0 * ((l_m * l_m) / Om))) + (t_1 * (U_42_ - U)));
double tmp;
if (t_2 <= 0.0) {
tmp = sqrt((2.0 * (U * (n * (t - ((pow(l_m, 2.0) * (2.0 - ((n * U_42_) / Om))) / Om))))));
} else if (t_2 <= ((double) INFINITY)) {
tmp = sqrt(((2.0 * (n * U)) * (t - ((t_1 * (U - U_42_)) + (2.0 * (l_m * (l_m / Om)))))));
} else {
tmp = (n * l_m) * (sqrt(2.0) * (sqrt((U * U_42_)) / Om));
}
return tmp;
}
l_m = Math.abs(l);
public static double code(double n, double U, double t, double l_m, double Om, double U_42_) {
double t_1 = n * Math.pow((l_m / Om), 2.0);
double t_2 = ((2.0 * n) * U) * ((t - (2.0 * ((l_m * l_m) / Om))) + (t_1 * (U_42_ - U)));
double tmp;
if (t_2 <= 0.0) {
tmp = Math.sqrt((2.0 * (U * (n * (t - ((Math.pow(l_m, 2.0) * (2.0 - ((n * U_42_) / Om))) / Om))))));
} else if (t_2 <= Double.POSITIVE_INFINITY) {
tmp = Math.sqrt(((2.0 * (n * U)) * (t - ((t_1 * (U - U_42_)) + (2.0 * (l_m * (l_m / Om)))))));
} else {
tmp = (n * l_m) * (Math.sqrt(2.0) * (Math.sqrt((U * U_42_)) / Om));
}
return tmp;
}
l_m = math.fabs(l) def code(n, U, t, l_m, Om, U_42_): t_1 = n * math.pow((l_m / Om), 2.0) t_2 = ((2.0 * n) * U) * ((t - (2.0 * ((l_m * l_m) / Om))) + (t_1 * (U_42_ - U))) tmp = 0 if t_2 <= 0.0: tmp = math.sqrt((2.0 * (U * (n * (t - ((math.pow(l_m, 2.0) * (2.0 - ((n * U_42_) / Om))) / Om)))))) elif t_2 <= math.inf: tmp = math.sqrt(((2.0 * (n * U)) * (t - ((t_1 * (U - U_42_)) + (2.0 * (l_m * (l_m / Om))))))) else: tmp = (n * l_m) * (math.sqrt(2.0) * (math.sqrt((U * U_42_)) / Om)) return tmp
l_m = abs(l) function code(n, U, t, l_m, Om, U_42_) t_1 = Float64(n * (Float64(l_m / Om) ^ 2.0)) t_2 = Float64(Float64(Float64(2.0 * n) * U) * Float64(Float64(t - Float64(2.0 * Float64(Float64(l_m * l_m) / Om))) + Float64(t_1 * Float64(U_42_ - U)))) tmp = 0.0 if (t_2 <= 0.0) tmp = sqrt(Float64(2.0 * Float64(U * Float64(n * Float64(t - Float64(Float64((l_m ^ 2.0) * Float64(2.0 - Float64(Float64(n * U_42_) / Om))) / Om)))))); elseif (t_2 <= Inf) tmp = sqrt(Float64(Float64(2.0 * Float64(n * U)) * Float64(t - Float64(Float64(t_1 * Float64(U - U_42_)) + Float64(2.0 * Float64(l_m * Float64(l_m / Om))))))); else tmp = Float64(Float64(n * l_m) * Float64(sqrt(2.0) * Float64(sqrt(Float64(U * U_42_)) / Om))); end return tmp end
l_m = abs(l); function tmp_2 = code(n, U, t, l_m, Om, U_42_) t_1 = n * ((l_m / Om) ^ 2.0); t_2 = ((2.0 * n) * U) * ((t - (2.0 * ((l_m * l_m) / Om))) + (t_1 * (U_42_ - U))); tmp = 0.0; if (t_2 <= 0.0) tmp = sqrt((2.0 * (U * (n * (t - (((l_m ^ 2.0) * (2.0 - ((n * U_42_) / Om))) / Om)))))); elseif (t_2 <= Inf) tmp = sqrt(((2.0 * (n * U)) * (t - ((t_1 * (U - U_42_)) + (2.0 * (l_m * (l_m / Om))))))); else tmp = (n * l_m) * (sqrt(2.0) * (sqrt((U * U_42_)) / Om)); end tmp_2 = tmp; end
l_m = N[Abs[l], $MachinePrecision]
code[n_, U_, t_, l$95$m_, Om_, U$42$_] := Block[{t$95$1 = N[(n * N[Power[N[(l$95$m / Om), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(N[(2.0 * n), $MachinePrecision] * U), $MachinePrecision] * N[(N[(t - N[(2.0 * N[(N[(l$95$m * l$95$m), $MachinePrecision] / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(t$95$1 * N[(U$42$ - U), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$2, 0.0], N[Sqrt[N[(2.0 * N[(U * N[(n * N[(t - N[(N[(N[Power[l$95$m, 2.0], $MachinePrecision] * N[(2.0 - N[(N[(n * U$42$), $MachinePrecision] / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / Om), $MachinePrecision]), $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[(N[(t$95$1 * N[(U - U$42$), $MachinePrecision]), $MachinePrecision] + N[(2.0 * N[(l$95$m * N[(l$95$m / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], N[(N[(n * l$95$m), $MachinePrecision] * N[(N[Sqrt[2.0], $MachinePrecision] * N[(N[Sqrt[N[(U * U$42$), $MachinePrecision]], $MachinePrecision] / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
l_m = \left|\ell\right|
\\
\begin{array}{l}
t_1 := n \cdot {\left(\frac{l\_m}{Om}\right)}^{2}\\
t_2 := \left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(t - 2 \cdot \frac{l\_m \cdot l\_m}{Om}\right) + t\_1 \cdot \left(U* - U\right)\right)\\
\mathbf{if}\;t\_2 \leq 0:\\
\;\;\;\;\sqrt{2 \cdot \left(U \cdot \left(n \cdot \left(t - \frac{{l\_m}^{2} \cdot \left(2 - \frac{n \cdot U*}{Om}\right)}{Om}\right)\right)\right)}\\
\mathbf{elif}\;t\_2 \leq \infty:\\
\;\;\;\;\sqrt{\left(2 \cdot \left(n \cdot U\right)\right) \cdot \left(t - \left(t\_1 \cdot \left(U - U*\right) + 2 \cdot \left(l\_m \cdot \frac{l\_m}{Om}\right)\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;\left(n \cdot l\_m\right) \cdot \left(\sqrt{2} \cdot \frac{\sqrt{U \cdot U*}}{Om}\right)\\
\end{array}
\end{array}
if (*.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 12.4%
Simplified17.1%
Taylor expanded in Om around inf 21.5%
*-commutative21.5%
associate-/l*21.5%
distribute-lft-out21.6%
Simplified21.6%
Taylor expanded in U around 0 39.9%
mul-1-neg39.9%
Simplified39.9%
if 0.0 < (*.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 69.3%
Simplified73.4%
if +inf.0 < (*.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%
Simplified9.9%
Taylor expanded in U* around inf 48.1%
associate-*l/48.1%
Simplified48.1%
associate-/l*48.2%
associate-*r*48.2%
*-commutative48.2%
Applied egg-rr48.2%
associate-*l*48.2%
Simplified48.2%
Final simplification64.4%
l_m = (fabs.f64 l)
(FPCore (n U t l_m Om U*)
:precision binary64
(if (<= n -1.85e+118)
(sqrt (* 2.0 (* U (* n (+ t (/ (* U* (* (pow l_m 2.0) (/ n Om))) Om))))))
(if (<= n 1.35e+24)
(sqrt
(*
2.0
(* U (* n (- t (/ (* (pow l_m 2.0) (- 2.0 (/ (* n U*) Om))) Om))))))
(sqrt
(*
(* 2.0 (* n U))
(- t (/ (* (pow l_m 2.0) (* n (/ (- U U*) Om))) Om)))))))l_m = fabs(l);
double code(double n, double U, double t, double l_m, double Om, double U_42_) {
double tmp;
if (n <= -1.85e+118) {
tmp = sqrt((2.0 * (U * (n * (t + ((U_42_ * (pow(l_m, 2.0) * (n / Om))) / Om))))));
} else if (n <= 1.35e+24) {
tmp = sqrt((2.0 * (U * (n * (t - ((pow(l_m, 2.0) * (2.0 - ((n * U_42_) / Om))) / Om))))));
} else {
tmp = sqrt(((2.0 * (n * U)) * (t - ((pow(l_m, 2.0) * (n * ((U - U_42_) / Om))) / Om))));
}
return tmp;
}
l_m = abs(l)
real(8) function code(n, u, t, l_m, om, u_42)
real(8), intent (in) :: n
real(8), intent (in) :: u
real(8), intent (in) :: t
real(8), intent (in) :: l_m
real(8), intent (in) :: om
real(8), intent (in) :: u_42
real(8) :: tmp
if (n <= (-1.85d+118)) then
tmp = sqrt((2.0d0 * (u * (n * (t + ((u_42 * ((l_m ** 2.0d0) * (n / om))) / om))))))
else if (n <= 1.35d+24) then
tmp = sqrt((2.0d0 * (u * (n * (t - (((l_m ** 2.0d0) * (2.0d0 - ((n * u_42) / om))) / om))))))
else
tmp = sqrt(((2.0d0 * (n * u)) * (t - (((l_m ** 2.0d0) * (n * ((u - u_42) / om))) / om))))
end if
code = tmp
end function
l_m = Math.abs(l);
public static double code(double n, double U, double t, double l_m, double Om, double U_42_) {
double tmp;
if (n <= -1.85e+118) {
tmp = Math.sqrt((2.0 * (U * (n * (t + ((U_42_ * (Math.pow(l_m, 2.0) * (n / Om))) / Om))))));
} else if (n <= 1.35e+24) {
tmp = Math.sqrt((2.0 * (U * (n * (t - ((Math.pow(l_m, 2.0) * (2.0 - ((n * U_42_) / Om))) / Om))))));
} else {
tmp = Math.sqrt(((2.0 * (n * U)) * (t - ((Math.pow(l_m, 2.0) * (n * ((U - U_42_) / Om))) / Om))));
}
return tmp;
}
l_m = math.fabs(l) def code(n, U, t, l_m, Om, U_42_): tmp = 0 if n <= -1.85e+118: tmp = math.sqrt((2.0 * (U * (n * (t + ((U_42_ * (math.pow(l_m, 2.0) * (n / Om))) / Om)))))) elif n <= 1.35e+24: tmp = math.sqrt((2.0 * (U * (n * (t - ((math.pow(l_m, 2.0) * (2.0 - ((n * U_42_) / Om))) / Om)))))) else: tmp = math.sqrt(((2.0 * (n * U)) * (t - ((math.pow(l_m, 2.0) * (n * ((U - U_42_) / Om))) / Om)))) return tmp
l_m = abs(l) function code(n, U, t, l_m, Om, U_42_) tmp = 0.0 if (n <= -1.85e+118) tmp = sqrt(Float64(2.0 * Float64(U * Float64(n * Float64(t + Float64(Float64(U_42_ * Float64((l_m ^ 2.0) * Float64(n / Om))) / Om)))))); elseif (n <= 1.35e+24) tmp = sqrt(Float64(2.0 * Float64(U * Float64(n * Float64(t - Float64(Float64((l_m ^ 2.0) * Float64(2.0 - Float64(Float64(n * U_42_) / Om))) / Om)))))); else tmp = sqrt(Float64(Float64(2.0 * Float64(n * U)) * Float64(t - Float64(Float64((l_m ^ 2.0) * Float64(n * Float64(Float64(U - U_42_) / Om))) / Om)))); end return tmp end
l_m = abs(l); function tmp_2 = code(n, U, t, l_m, Om, U_42_) tmp = 0.0; if (n <= -1.85e+118) tmp = sqrt((2.0 * (U * (n * (t + ((U_42_ * ((l_m ^ 2.0) * (n / Om))) / Om)))))); elseif (n <= 1.35e+24) tmp = sqrt((2.0 * (U * (n * (t - (((l_m ^ 2.0) * (2.0 - ((n * U_42_) / Om))) / Om)))))); else tmp = sqrt(((2.0 * (n * U)) * (t - (((l_m ^ 2.0) * (n * ((U - U_42_) / Om))) / Om)))); end tmp_2 = tmp; end
l_m = N[Abs[l], $MachinePrecision] code[n_, U_, t_, l$95$m_, Om_, U$42$_] := If[LessEqual[n, -1.85e+118], N[Sqrt[N[(2.0 * N[(U * N[(n * N[(t + N[(N[(U$42$ * N[(N[Power[l$95$m, 2.0], $MachinePrecision] * N[(n / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], If[LessEqual[n, 1.35e+24], N[Sqrt[N[(2.0 * N[(U * N[(n * N[(t - N[(N[(N[Power[l$95$m, 2.0], $MachinePrecision] * N[(2.0 - N[(N[(n * U$42$), $MachinePrecision] / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], N[Sqrt[N[(N[(2.0 * N[(n * U), $MachinePrecision]), $MachinePrecision] * N[(t - N[(N[(N[Power[l$95$m, 2.0], $MachinePrecision] * N[(n * N[(N[(U - U$42$), $MachinePrecision] / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]]]
\begin{array}{l}
l_m = \left|\ell\right|
\\
\begin{array}{l}
\mathbf{if}\;n \leq -1.85 \cdot 10^{+118}:\\
\;\;\;\;\sqrt{2 \cdot \left(U \cdot \left(n \cdot \left(t + \frac{U* \cdot \left({l\_m}^{2} \cdot \frac{n}{Om}\right)}{Om}\right)\right)\right)}\\
\mathbf{elif}\;n \leq 1.35 \cdot 10^{+24}:\\
\;\;\;\;\sqrt{2 \cdot \left(U \cdot \left(n \cdot \left(t - \frac{{l\_m}^{2} \cdot \left(2 - \frac{n \cdot U*}{Om}\right)}{Om}\right)\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;\sqrt{\left(2 \cdot \left(n \cdot U\right)\right) \cdot \left(t - \frac{{l\_m}^{2} \cdot \left(n \cdot \frac{U - U*}{Om}\right)}{Om}\right)}\\
\end{array}
\end{array}
if n < -1.84999999999999993e118Initial program 51.9%
Simplified58.9%
Taylor expanded in Om around inf 40.1%
*-commutative40.1%
associate-/l*43.7%
distribute-lft-out54.4%
Simplified54.4%
Taylor expanded in U around 0 61.7%
mul-1-neg61.7%
Simplified61.7%
Taylor expanded in U* around inf 76.5%
mul-1-neg76.5%
associate-/l*79.8%
associate-/l*79.8%
Simplified79.8%
if -1.84999999999999993e118 < n < 1.35e24Initial program 48.1%
Simplified52.3%
Taylor expanded in Om around inf 48.2%
*-commutative48.2%
associate-/l*48.7%
distribute-lft-out50.8%
Simplified50.8%
Taylor expanded in U around 0 54.1%
mul-1-neg54.1%
Simplified54.1%
if 1.35e24 < n Initial program 58.0%
Simplified61.7%
Taylor expanded in Om around inf 38.6%
*-commutative38.6%
associate-/l*44.0%
distribute-lft-out51.5%
Simplified51.5%
Taylor expanded in n around inf 57.4%
div-sub59.2%
Simplified59.2%
Final simplification58.0%
l_m = (fabs.f64 l)
(FPCore (n U t l_m Om U*)
:precision binary64
(let* ((t_1 (pow (* n l_m) 2.0)))
(if (<= Om -9.8e-113)
(sqrt (* (* 2.0 (* n U)) (- t (/ (* 2.0 (pow l_m 2.0)) Om))))
(if (<= Om -5e-310)
(* (sqrt (* (* 2.0 U) (* U* t_1))) (/ -1.0 Om))
(if (<= Om 1.5e-138)
(/ (pow (* 2.0 (* (* U U*) t_1)) 0.5) Om)
(sqrt (* 2.0 (* U (* n (- t (* 2.0 (/ (pow l_m 2.0) Om))))))))))))l_m = fabs(l);
double code(double n, double U, double t, double l_m, double Om, double U_42_) {
double t_1 = pow((n * l_m), 2.0);
double tmp;
if (Om <= -9.8e-113) {
tmp = sqrt(((2.0 * (n * U)) * (t - ((2.0 * pow(l_m, 2.0)) / Om))));
} else if (Om <= -5e-310) {
tmp = sqrt(((2.0 * U) * (U_42_ * t_1))) * (-1.0 / Om);
} else if (Om <= 1.5e-138) {
tmp = pow((2.0 * ((U * U_42_) * t_1)), 0.5) / Om;
} else {
tmp = sqrt((2.0 * (U * (n * (t - (2.0 * (pow(l_m, 2.0) / Om)))))));
}
return tmp;
}
l_m = abs(l)
real(8) function code(n, u, t, l_m, om, u_42)
real(8), intent (in) :: n
real(8), intent (in) :: u
real(8), intent (in) :: t
real(8), intent (in) :: l_m
real(8), intent (in) :: om
real(8), intent (in) :: u_42
real(8) :: t_1
real(8) :: tmp
t_1 = (n * l_m) ** 2.0d0
if (om <= (-9.8d-113)) then
tmp = sqrt(((2.0d0 * (n * u)) * (t - ((2.0d0 * (l_m ** 2.0d0)) / om))))
else if (om <= (-5d-310)) then
tmp = sqrt(((2.0d0 * u) * (u_42 * t_1))) * ((-1.0d0) / om)
else if (om <= 1.5d-138) then
tmp = ((2.0d0 * ((u * u_42) * t_1)) ** 0.5d0) / om
else
tmp = sqrt((2.0d0 * (u * (n * (t - (2.0d0 * ((l_m ** 2.0d0) / om)))))))
end if
code = tmp
end function
l_m = Math.abs(l);
public static double code(double n, double U, double t, double l_m, double Om, double U_42_) {
double t_1 = Math.pow((n * l_m), 2.0);
double tmp;
if (Om <= -9.8e-113) {
tmp = Math.sqrt(((2.0 * (n * U)) * (t - ((2.0 * Math.pow(l_m, 2.0)) / Om))));
} else if (Om <= -5e-310) {
tmp = Math.sqrt(((2.0 * U) * (U_42_ * t_1))) * (-1.0 / Om);
} else if (Om <= 1.5e-138) {
tmp = Math.pow((2.0 * ((U * U_42_) * t_1)), 0.5) / Om;
} else {
tmp = Math.sqrt((2.0 * (U * (n * (t - (2.0 * (Math.pow(l_m, 2.0) / Om)))))));
}
return tmp;
}
l_m = math.fabs(l) def code(n, U, t, l_m, Om, U_42_): t_1 = math.pow((n * l_m), 2.0) tmp = 0 if Om <= -9.8e-113: tmp = math.sqrt(((2.0 * (n * U)) * (t - ((2.0 * math.pow(l_m, 2.0)) / Om)))) elif Om <= -5e-310: tmp = math.sqrt(((2.0 * U) * (U_42_ * t_1))) * (-1.0 / Om) elif Om <= 1.5e-138: tmp = math.pow((2.0 * ((U * U_42_) * t_1)), 0.5) / Om else: tmp = math.sqrt((2.0 * (U * (n * (t - (2.0 * (math.pow(l_m, 2.0) / Om))))))) return tmp
l_m = abs(l) function code(n, U, t, l_m, Om, U_42_) t_1 = Float64(n * l_m) ^ 2.0 tmp = 0.0 if (Om <= -9.8e-113) tmp = sqrt(Float64(Float64(2.0 * Float64(n * U)) * Float64(t - Float64(Float64(2.0 * (l_m ^ 2.0)) / Om)))); elseif (Om <= -5e-310) tmp = Float64(sqrt(Float64(Float64(2.0 * U) * Float64(U_42_ * t_1))) * Float64(-1.0 / Om)); elseif (Om <= 1.5e-138) tmp = Float64((Float64(2.0 * Float64(Float64(U * U_42_) * t_1)) ^ 0.5) / Om); else tmp = sqrt(Float64(2.0 * Float64(U * Float64(n * Float64(t - Float64(2.0 * Float64((l_m ^ 2.0) / Om))))))); end return tmp end
l_m = abs(l); function tmp_2 = code(n, U, t, l_m, Om, U_42_) t_1 = (n * l_m) ^ 2.0; tmp = 0.0; if (Om <= -9.8e-113) tmp = sqrt(((2.0 * (n * U)) * (t - ((2.0 * (l_m ^ 2.0)) / Om)))); elseif (Om <= -5e-310) tmp = sqrt(((2.0 * U) * (U_42_ * t_1))) * (-1.0 / Om); elseif (Om <= 1.5e-138) tmp = ((2.0 * ((U * U_42_) * t_1)) ^ 0.5) / Om; else tmp = sqrt((2.0 * (U * (n * (t - (2.0 * ((l_m ^ 2.0) / Om))))))); end tmp_2 = tmp; end
l_m = N[Abs[l], $MachinePrecision]
code[n_, U_, t_, l$95$m_, Om_, U$42$_] := Block[{t$95$1 = N[Power[N[(n * l$95$m), $MachinePrecision], 2.0], $MachinePrecision]}, If[LessEqual[Om, -9.8e-113], N[Sqrt[N[(N[(2.0 * N[(n * U), $MachinePrecision]), $MachinePrecision] * N[(t - N[(N[(2.0 * N[Power[l$95$m, 2.0], $MachinePrecision]), $MachinePrecision] / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], If[LessEqual[Om, -5e-310], N[(N[Sqrt[N[(N[(2.0 * U), $MachinePrecision] * N[(U$42$ * t$95$1), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * N[(-1.0 / Om), $MachinePrecision]), $MachinePrecision], If[LessEqual[Om, 1.5e-138], N[(N[Power[N[(2.0 * N[(N[(U * U$42$), $MachinePrecision] * t$95$1), $MachinePrecision]), $MachinePrecision], 0.5], $MachinePrecision] / Om), $MachinePrecision], N[Sqrt[N[(2.0 * N[(U * N[(n * N[(t - N[(2.0 * N[(N[Power[l$95$m, 2.0], $MachinePrecision] / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]]]]]
\begin{array}{l}
l_m = \left|\ell\right|
\\
\begin{array}{l}
t_1 := {\left(n \cdot l\_m\right)}^{2}\\
\mathbf{if}\;Om \leq -9.8 \cdot 10^{-113}:\\
\;\;\;\;\sqrt{\left(2 \cdot \left(n \cdot U\right)\right) \cdot \left(t - \frac{2 \cdot {l\_m}^{2}}{Om}\right)}\\
\mathbf{elif}\;Om \leq -5 \cdot 10^{-310}:\\
\;\;\;\;\sqrt{\left(2 \cdot U\right) \cdot \left(U* \cdot t\_1\right)} \cdot \frac{-1}{Om}\\
\mathbf{elif}\;Om \leq 1.5 \cdot 10^{-138}:\\
\;\;\;\;\frac{{\left(2 \cdot \left(\left(U \cdot U*\right) \cdot t\_1\right)\right)}^{0.5}}{Om}\\
\mathbf{else}:\\
\;\;\;\;\sqrt{2 \cdot \left(U \cdot \left(n \cdot \left(t - 2 \cdot \frac{{l\_m}^{2}}{Om}\right)\right)\right)}\\
\end{array}
\end{array}
if Om < -9.8000000000000006e-113Initial program 56.4%
Simplified60.9%
Taylor expanded in Om around inf 52.9%
associate-*r/52.9%
Simplified52.9%
if -9.8000000000000006e-113 < Om < -4.999999999999985e-310Initial program 38.3%
Simplified38.7%
Taylor expanded in U* around inf 28.2%
associate-*r/28.2%
Simplified28.2%
pow1/228.2%
div-inv28.2%
unpow-prod-down28.2%
pow1/228.2%
associate-*r*28.2%
pow-prod-down38.1%
pow-flip38.1%
metadata-eval38.1%
Applied egg-rr38.1%
unpow1/238.1%
Simplified38.1%
Taylor expanded in Om around -inf 57.7%
if -4.999999999999985e-310 < Om < 1.5e-138Initial program 37.8%
Simplified38.0%
Taylor expanded in U* around inf 40.2%
associate-*r/40.2%
Simplified40.2%
pow1/240.6%
div-inv40.6%
unpow-prod-down40.4%
pow1/240.2%
associate-*r*40.2%
pow-prod-down44.9%
pow-flip44.9%
metadata-eval44.9%
Applied egg-rr44.9%
unpow1/244.9%
Simplified44.9%
pow144.9%
*-commutative44.9%
sqrt-pow155.4%
metadata-eval55.4%
inv-pow55.4%
associate-*l*55.4%
*-commutative55.4%
Applied egg-rr55.4%
unpow155.4%
associate-*l/55.3%
*-lft-identity55.3%
Simplified55.3%
pow1/255.3%
associate-*r*58.9%
Applied egg-rr58.9%
if 1.5e-138 < Om Initial program 51.8%
Simplified61.8%
Taylor expanded in n around 0 54.7%
Final simplification54.8%
l_m = (fabs.f64 l)
(FPCore (n U t l_m Om U*)
:precision binary64
(if (<= n 1e+19)
(sqrt (* 2.0 (* U (* n (+ t (/ (* U* (* (pow l_m 2.0) (/ n Om))) Om))))))
(sqrt
(* (* 2.0 (* n U)) (- t (/ (* (pow l_m 2.0) (* n (/ (- U U*) Om))) Om))))))l_m = fabs(l);
double code(double n, double U, double t, double l_m, double Om, double U_42_) {
double tmp;
if (n <= 1e+19) {
tmp = sqrt((2.0 * (U * (n * (t + ((U_42_ * (pow(l_m, 2.0) * (n / Om))) / Om))))));
} else {
tmp = sqrt(((2.0 * (n * U)) * (t - ((pow(l_m, 2.0) * (n * ((U - U_42_) / Om))) / Om))));
}
return tmp;
}
l_m = abs(l)
real(8) function code(n, u, t, l_m, om, u_42)
real(8), intent (in) :: n
real(8), intent (in) :: u
real(8), intent (in) :: t
real(8), intent (in) :: l_m
real(8), intent (in) :: om
real(8), intent (in) :: u_42
real(8) :: tmp
if (n <= 1d+19) then
tmp = sqrt((2.0d0 * (u * (n * (t + ((u_42 * ((l_m ** 2.0d0) * (n / om))) / om))))))
else
tmp = sqrt(((2.0d0 * (n * u)) * (t - (((l_m ** 2.0d0) * (n * ((u - u_42) / om))) / om))))
end if
code = tmp
end function
l_m = Math.abs(l);
public static double code(double n, double U, double t, double l_m, double Om, double U_42_) {
double tmp;
if (n <= 1e+19) {
tmp = Math.sqrt((2.0 * (U * (n * (t + ((U_42_ * (Math.pow(l_m, 2.0) * (n / Om))) / Om))))));
} else {
tmp = Math.sqrt(((2.0 * (n * U)) * (t - ((Math.pow(l_m, 2.0) * (n * ((U - U_42_) / Om))) / Om))));
}
return tmp;
}
l_m = math.fabs(l) def code(n, U, t, l_m, Om, U_42_): tmp = 0 if n <= 1e+19: tmp = math.sqrt((2.0 * (U * (n * (t + ((U_42_ * (math.pow(l_m, 2.0) * (n / Om))) / Om)))))) else: tmp = math.sqrt(((2.0 * (n * U)) * (t - ((math.pow(l_m, 2.0) * (n * ((U - U_42_) / Om))) / Om)))) return tmp
l_m = abs(l) function code(n, U, t, l_m, Om, U_42_) tmp = 0.0 if (n <= 1e+19) tmp = sqrt(Float64(2.0 * Float64(U * Float64(n * Float64(t + Float64(Float64(U_42_ * Float64((l_m ^ 2.0) * Float64(n / Om))) / Om)))))); else tmp = sqrt(Float64(Float64(2.0 * Float64(n * U)) * Float64(t - Float64(Float64((l_m ^ 2.0) * Float64(n * Float64(Float64(U - U_42_) / Om))) / Om)))); end return tmp end
l_m = abs(l); function tmp_2 = code(n, U, t, l_m, Om, U_42_) tmp = 0.0; if (n <= 1e+19) tmp = sqrt((2.0 * (U * (n * (t + ((U_42_ * ((l_m ^ 2.0) * (n / Om))) / Om)))))); else tmp = sqrt(((2.0 * (n * U)) * (t - (((l_m ^ 2.0) * (n * ((U - U_42_) / Om))) / Om)))); end tmp_2 = tmp; end
l_m = N[Abs[l], $MachinePrecision] code[n_, U_, t_, l$95$m_, Om_, U$42$_] := If[LessEqual[n, 1e+19], N[Sqrt[N[(2.0 * N[(U * N[(n * N[(t + N[(N[(U$42$ * N[(N[Power[l$95$m, 2.0], $MachinePrecision] * N[(n / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], N[Sqrt[N[(N[(2.0 * N[(n * U), $MachinePrecision]), $MachinePrecision] * N[(t - N[(N[(N[Power[l$95$m, 2.0], $MachinePrecision] * N[(n * N[(N[(U - U$42$), $MachinePrecision] / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]]
\begin{array}{l}
l_m = \left|\ell\right|
\\
\begin{array}{l}
\mathbf{if}\;n \leq 10^{+19}:\\
\;\;\;\;\sqrt{2 \cdot \left(U \cdot \left(n \cdot \left(t + \frac{U* \cdot \left({l\_m}^{2} \cdot \frac{n}{Om}\right)}{Om}\right)\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;\sqrt{\left(2 \cdot \left(n \cdot U\right)\right) \cdot \left(t - \frac{{l\_m}^{2} \cdot \left(n \cdot \frac{U - U*}{Om}\right)}{Om}\right)}\\
\end{array}
\end{array}
if n < 1e19Initial program 48.6%
Simplified53.2%
Taylor expanded in Om around inf 47.1%
*-commutative47.1%
associate-/l*48.0%
distribute-lft-out51.3%
Simplified51.3%
Taylor expanded in U around 0 55.1%
mul-1-neg55.1%
Simplified55.1%
Taylor expanded in U* around inf 51.2%
mul-1-neg51.2%
associate-/l*52.1%
associate-/l*54.0%
Simplified54.0%
if 1e19 < n Initial program 58.0%
Simplified61.7%
Taylor expanded in Om around inf 38.6%
*-commutative38.6%
associate-/l*44.0%
distribute-lft-out51.5%
Simplified51.5%
Taylor expanded in n around inf 57.4%
div-sub59.2%
Simplified59.2%
Final simplification55.1%
l_m = (fabs.f64 l) (FPCore (n U t l_m Om U*) :precision binary64 (if (<= l_m 1.5e+155) (sqrt (* 2.0 (* U (* n (- t (* 2.0 (/ (pow l_m 2.0) Om))))))) (* l_m (* (* (sqrt (* U U*)) (* n (sqrt 2.0))) (/ 1.0 Om)))))
l_m = fabs(l);
double code(double n, double U, double t, double l_m, double Om, double U_42_) {
double tmp;
if (l_m <= 1.5e+155) {
tmp = sqrt((2.0 * (U * (n * (t - (2.0 * (pow(l_m, 2.0) / Om)))))));
} else {
tmp = l_m * ((sqrt((U * U_42_)) * (n * sqrt(2.0))) * (1.0 / Om));
}
return tmp;
}
l_m = abs(l)
real(8) function code(n, u, t, l_m, om, u_42)
real(8), intent (in) :: n
real(8), intent (in) :: u
real(8), intent (in) :: t
real(8), intent (in) :: l_m
real(8), intent (in) :: om
real(8), intent (in) :: u_42
real(8) :: tmp
if (l_m <= 1.5d+155) then
tmp = sqrt((2.0d0 * (u * (n * (t - (2.0d0 * ((l_m ** 2.0d0) / om)))))))
else
tmp = l_m * ((sqrt((u * u_42)) * (n * sqrt(2.0d0))) * (1.0d0 / om))
end if
code = tmp
end function
l_m = Math.abs(l);
public static double code(double n, double U, double t, double l_m, double Om, double U_42_) {
double tmp;
if (l_m <= 1.5e+155) {
tmp = Math.sqrt((2.0 * (U * (n * (t - (2.0 * (Math.pow(l_m, 2.0) / Om)))))));
} else {
tmp = l_m * ((Math.sqrt((U * U_42_)) * (n * Math.sqrt(2.0))) * (1.0 / Om));
}
return tmp;
}
l_m = math.fabs(l) def code(n, U, t, l_m, Om, U_42_): tmp = 0 if l_m <= 1.5e+155: tmp = math.sqrt((2.0 * (U * (n * (t - (2.0 * (math.pow(l_m, 2.0) / Om))))))) else: tmp = l_m * ((math.sqrt((U * U_42_)) * (n * math.sqrt(2.0))) * (1.0 / Om)) return tmp
l_m = abs(l) function code(n, U, t, l_m, Om, U_42_) tmp = 0.0 if (l_m <= 1.5e+155) tmp = sqrt(Float64(2.0 * Float64(U * Float64(n * Float64(t - Float64(2.0 * Float64((l_m ^ 2.0) / Om))))))); else tmp = Float64(l_m * Float64(Float64(sqrt(Float64(U * U_42_)) * Float64(n * sqrt(2.0))) * Float64(1.0 / Om))); end return tmp end
l_m = abs(l); function tmp_2 = code(n, U, t, l_m, Om, U_42_) tmp = 0.0; if (l_m <= 1.5e+155) tmp = sqrt((2.0 * (U * (n * (t - (2.0 * ((l_m ^ 2.0) / Om))))))); else tmp = l_m * ((sqrt((U * U_42_)) * (n * sqrt(2.0))) * (1.0 / Om)); end tmp_2 = tmp; end
l_m = N[Abs[l], $MachinePrecision] code[n_, U_, t_, l$95$m_, Om_, U$42$_] := If[LessEqual[l$95$m, 1.5e+155], N[Sqrt[N[(2.0 * N[(U * N[(n * N[(t - N[(2.0 * N[(N[Power[l$95$m, 2.0], $MachinePrecision] / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], N[(l$95$m * N[(N[(N[Sqrt[N[(U * U$42$), $MachinePrecision]], $MachinePrecision] * N[(n * N[Sqrt[2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(1.0 / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
l_m = \left|\ell\right|
\\
\begin{array}{l}
\mathbf{if}\;l\_m \leq 1.5 \cdot 10^{+155}:\\
\;\;\;\;\sqrt{2 \cdot \left(U \cdot \left(n \cdot \left(t - 2 \cdot \frac{{l\_m}^{2}}{Om}\right)\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;l\_m \cdot \left(\left(\sqrt{U \cdot U*} \cdot \left(n \cdot \sqrt{2}\right)\right) \cdot \frac{1}{Om}\right)\\
\end{array}
\end{array}
if l < 1.5000000000000001e155Initial program 56.7%
Simplified59.7%
Taylor expanded in n around 0 50.4%
if 1.5000000000000001e155 < l Initial program 12.8%
Simplified29.3%
Taylor expanded in U* around inf 39.6%
associate-*l/39.7%
Simplified39.7%
div-inv39.7%
associate-*l*39.8%
Applied egg-rr39.8%
associate-*l*42.4%
Simplified42.4%
Final simplification49.3%
l_m = (fabs.f64 l) (FPCore (n U t l_m Om U*) :precision binary64 (if (<= l_m 1.9e+156) (pow (* 2.0 (* U (* n t))) 0.5) (* l_m (* (* (sqrt (* U U*)) (* n (sqrt 2.0))) (/ 1.0 Om)))))
l_m = fabs(l);
double code(double n, double U, double t, double l_m, double Om, double U_42_) {
double tmp;
if (l_m <= 1.9e+156) {
tmp = pow((2.0 * (U * (n * t))), 0.5);
} else {
tmp = l_m * ((sqrt((U * U_42_)) * (n * sqrt(2.0))) * (1.0 / Om));
}
return tmp;
}
l_m = abs(l)
real(8) function code(n, u, t, l_m, om, u_42)
real(8), intent (in) :: n
real(8), intent (in) :: u
real(8), intent (in) :: t
real(8), intent (in) :: l_m
real(8), intent (in) :: om
real(8), intent (in) :: u_42
real(8) :: tmp
if (l_m <= 1.9d+156) then
tmp = (2.0d0 * (u * (n * t))) ** 0.5d0
else
tmp = l_m * ((sqrt((u * u_42)) * (n * sqrt(2.0d0))) * (1.0d0 / om))
end if
code = tmp
end function
l_m = Math.abs(l);
public static double code(double n, double U, double t, double l_m, double Om, double U_42_) {
double tmp;
if (l_m <= 1.9e+156) {
tmp = Math.pow((2.0 * (U * (n * t))), 0.5);
} else {
tmp = l_m * ((Math.sqrt((U * U_42_)) * (n * Math.sqrt(2.0))) * (1.0 / Om));
}
return tmp;
}
l_m = math.fabs(l) def code(n, U, t, l_m, Om, U_42_): tmp = 0 if l_m <= 1.9e+156: tmp = math.pow((2.0 * (U * (n * t))), 0.5) else: tmp = l_m * ((math.sqrt((U * U_42_)) * (n * math.sqrt(2.0))) * (1.0 / Om)) return tmp
l_m = abs(l) function code(n, U, t, l_m, Om, U_42_) tmp = 0.0 if (l_m <= 1.9e+156) tmp = Float64(2.0 * Float64(U * Float64(n * t))) ^ 0.5; else tmp = Float64(l_m * Float64(Float64(sqrt(Float64(U * U_42_)) * Float64(n * sqrt(2.0))) * Float64(1.0 / Om))); end return tmp end
l_m = abs(l); function tmp_2 = code(n, U, t, l_m, Om, U_42_) tmp = 0.0; if (l_m <= 1.9e+156) tmp = (2.0 * (U * (n * t))) ^ 0.5; else tmp = l_m * ((sqrt((U * U_42_)) * (n * sqrt(2.0))) * (1.0 / Om)); end tmp_2 = tmp; end
l_m = N[Abs[l], $MachinePrecision] code[n_, U_, t_, l$95$m_, Om_, U$42$_] := If[LessEqual[l$95$m, 1.9e+156], N[Power[N[(2.0 * N[(U * N[(n * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 0.5], $MachinePrecision], N[(l$95$m * N[(N[(N[Sqrt[N[(U * U$42$), $MachinePrecision]], $MachinePrecision] * N[(n * N[Sqrt[2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(1.0 / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
l_m = \left|\ell\right|
\\
\begin{array}{l}
\mathbf{if}\;l\_m \leq 1.9 \cdot 10^{+156}:\\
\;\;\;\;{\left(2 \cdot \left(U \cdot \left(n \cdot t\right)\right)\right)}^{0.5}\\
\mathbf{else}:\\
\;\;\;\;l\_m \cdot \left(\left(\sqrt{U \cdot U*} \cdot \left(n \cdot \sqrt{2}\right)\right) \cdot \frac{1}{Om}\right)\\
\end{array}
\end{array}
if l < 1.90000000000000012e156Initial program 56.7%
Simplified59.7%
Taylor expanded in t around inf 44.4%
pow1/247.7%
Applied egg-rr47.7%
if 1.90000000000000012e156 < l Initial program 12.8%
Simplified29.3%
Taylor expanded in U* around inf 39.6%
associate-*l/39.7%
Simplified39.7%
div-inv39.7%
associate-*l*39.8%
Applied egg-rr39.8%
associate-*l*42.4%
Simplified42.4%
Final simplification46.9%
l_m = (fabs.f64 l) (FPCore (n U t l_m Om U*) :precision binary64 (sqrt (* 2.0 (* U (* n (+ t (/ (* U* (* (pow l_m 2.0) (/ n Om))) Om)))))))
l_m = fabs(l);
double code(double n, double U, double t, double l_m, double Om, double U_42_) {
return sqrt((2.0 * (U * (n * (t + ((U_42_ * (pow(l_m, 2.0) * (n / Om))) / Om))))));
}
l_m = abs(l)
real(8) function code(n, u, t, l_m, om, u_42)
real(8), intent (in) :: n
real(8), intent (in) :: u
real(8), intent (in) :: t
real(8), intent (in) :: l_m
real(8), intent (in) :: om
real(8), intent (in) :: u_42
code = sqrt((2.0d0 * (u * (n * (t + ((u_42 * ((l_m ** 2.0d0) * (n / om))) / om))))))
end function
l_m = Math.abs(l);
public static double code(double n, double U, double t, double l_m, double Om, double U_42_) {
return Math.sqrt((2.0 * (U * (n * (t + ((U_42_ * (Math.pow(l_m, 2.0) * (n / Om))) / Om))))));
}
l_m = math.fabs(l) def code(n, U, t, l_m, Om, U_42_): return math.sqrt((2.0 * (U * (n * (t + ((U_42_ * (math.pow(l_m, 2.0) * (n / Om))) / Om))))))
l_m = abs(l) function code(n, U, t, l_m, Om, U_42_) return sqrt(Float64(2.0 * Float64(U * Float64(n * Float64(t + Float64(Float64(U_42_ * Float64((l_m ^ 2.0) * Float64(n / Om))) / Om)))))) end
l_m = abs(l); function tmp = code(n, U, t, l_m, Om, U_42_) tmp = sqrt((2.0 * (U * (n * (t + ((U_42_ * ((l_m ^ 2.0) * (n / Om))) / Om)))))); end
l_m = N[Abs[l], $MachinePrecision] code[n_, U_, t_, l$95$m_, Om_, U$42$_] := N[Sqrt[N[(2.0 * N[(U * N[(n * N[(t + N[(N[(U$42$ * N[(N[Power[l$95$m, 2.0], $MachinePrecision] * N[(n / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]
\begin{array}{l}
l_m = \left|\ell\right|
\\
\sqrt{2 \cdot \left(U \cdot \left(n \cdot \left(t + \frac{U* \cdot \left({l\_m}^{2} \cdot \frac{n}{Om}\right)}{Om}\right)\right)\right)}
\end{array}
Initial program 50.6%
Simplified55.0%
Taylor expanded in Om around inf 45.3%
*-commutative45.3%
associate-/l*47.2%
distribute-lft-out51.4%
Simplified51.4%
Taylor expanded in U around 0 53.3%
mul-1-neg53.3%
Simplified53.3%
Taylor expanded in U* around inf 49.8%
mul-1-neg49.8%
associate-/l*51.7%
associate-/l*53.1%
Simplified53.1%
Final simplification53.1%
l_m = (fabs.f64 l) (FPCore (n U t l_m Om U*) :precision binary64 (if (<= l_m 1.55e+159) (pow (* 2.0 (* U (* n t))) 0.5) (* (sqrt (* U U*)) (* l_m (/ (* n (sqrt 2.0)) Om)))))
l_m = fabs(l);
double code(double n, double U, double t, double l_m, double Om, double U_42_) {
double tmp;
if (l_m <= 1.55e+159) {
tmp = pow((2.0 * (U * (n * t))), 0.5);
} else {
tmp = sqrt((U * U_42_)) * (l_m * ((n * sqrt(2.0)) / Om));
}
return tmp;
}
l_m = abs(l)
real(8) function code(n, u, t, l_m, om, u_42)
real(8), intent (in) :: n
real(8), intent (in) :: u
real(8), intent (in) :: t
real(8), intent (in) :: l_m
real(8), intent (in) :: om
real(8), intent (in) :: u_42
real(8) :: tmp
if (l_m <= 1.55d+159) then
tmp = (2.0d0 * (u * (n * t))) ** 0.5d0
else
tmp = sqrt((u * u_42)) * (l_m * ((n * sqrt(2.0d0)) / om))
end if
code = tmp
end function
l_m = Math.abs(l);
public static double code(double n, double U, double t, double l_m, double Om, double U_42_) {
double tmp;
if (l_m <= 1.55e+159) {
tmp = Math.pow((2.0 * (U * (n * t))), 0.5);
} else {
tmp = Math.sqrt((U * U_42_)) * (l_m * ((n * Math.sqrt(2.0)) / Om));
}
return tmp;
}
l_m = math.fabs(l) def code(n, U, t, l_m, Om, U_42_): tmp = 0 if l_m <= 1.55e+159: tmp = math.pow((2.0 * (U * (n * t))), 0.5) else: tmp = math.sqrt((U * U_42_)) * (l_m * ((n * math.sqrt(2.0)) / Om)) return tmp
l_m = abs(l) function code(n, U, t, l_m, Om, U_42_) tmp = 0.0 if (l_m <= 1.55e+159) tmp = Float64(2.0 * Float64(U * Float64(n * t))) ^ 0.5; else tmp = Float64(sqrt(Float64(U * U_42_)) * Float64(l_m * Float64(Float64(n * sqrt(2.0)) / Om))); end return tmp end
l_m = abs(l); function tmp_2 = code(n, U, t, l_m, Om, U_42_) tmp = 0.0; if (l_m <= 1.55e+159) tmp = (2.0 * (U * (n * t))) ^ 0.5; else tmp = sqrt((U * U_42_)) * (l_m * ((n * sqrt(2.0)) / Om)); end tmp_2 = tmp; end
l_m = N[Abs[l], $MachinePrecision] code[n_, U_, t_, l$95$m_, Om_, U$42$_] := If[LessEqual[l$95$m, 1.55e+159], N[Power[N[(2.0 * N[(U * N[(n * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 0.5], $MachinePrecision], N[(N[Sqrt[N[(U * U$42$), $MachinePrecision]], $MachinePrecision] * N[(l$95$m * N[(N[(n * N[Sqrt[2.0], $MachinePrecision]), $MachinePrecision] / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
l_m = \left|\ell\right|
\\
\begin{array}{l}
\mathbf{if}\;l\_m \leq 1.55 \cdot 10^{+159}:\\
\;\;\;\;{\left(2 \cdot \left(U \cdot \left(n \cdot t\right)\right)\right)}^{0.5}\\
\mathbf{else}:\\
\;\;\;\;\sqrt{U \cdot U*} \cdot \left(l\_m \cdot \frac{n \cdot \sqrt{2}}{Om}\right)\\
\end{array}
\end{array}
if l < 1.5499999999999999e159Initial program 56.7%
Simplified59.7%
Taylor expanded in t around inf 44.4%
pow1/247.7%
Applied egg-rr47.7%
if 1.5499999999999999e159 < l Initial program 12.8%
Simplified29.3%
Taylor expanded in U* around inf 39.6%
associate-/l*42.3%
Simplified42.3%
Final simplification46.9%
l_m = (fabs.f64 l) (FPCore (n U t l_m Om U*) :precision binary64 (if (<= n 8e-193) (pow (* 2.0 (* U (* n t))) 0.5) (* (sqrt (* 2.0 n)) (sqrt (* U t)))))
l_m = fabs(l);
double code(double n, double U, double t, double l_m, double Om, double U_42_) {
double tmp;
if (n <= 8e-193) {
tmp = pow((2.0 * (U * (n * t))), 0.5);
} else {
tmp = sqrt((2.0 * n)) * sqrt((U * t));
}
return tmp;
}
l_m = abs(l)
real(8) function code(n, u, t, l_m, om, u_42)
real(8), intent (in) :: n
real(8), intent (in) :: u
real(8), intent (in) :: t
real(8), intent (in) :: l_m
real(8), intent (in) :: om
real(8), intent (in) :: u_42
real(8) :: tmp
if (n <= 8d-193) then
tmp = (2.0d0 * (u * (n * t))) ** 0.5d0
else
tmp = sqrt((2.0d0 * n)) * sqrt((u * t))
end if
code = tmp
end function
l_m = Math.abs(l);
public static double code(double n, double U, double t, double l_m, double Om, double U_42_) {
double tmp;
if (n <= 8e-193) {
tmp = Math.pow((2.0 * (U * (n * t))), 0.5);
} else {
tmp = Math.sqrt((2.0 * n)) * Math.sqrt((U * t));
}
return tmp;
}
l_m = math.fabs(l) def code(n, U, t, l_m, Om, U_42_): tmp = 0 if n <= 8e-193: tmp = math.pow((2.0 * (U * (n * t))), 0.5) else: tmp = math.sqrt((2.0 * n)) * math.sqrt((U * t)) return tmp
l_m = abs(l) function code(n, U, t, l_m, Om, U_42_) tmp = 0.0 if (n <= 8e-193) tmp = Float64(2.0 * Float64(U * Float64(n * t))) ^ 0.5; else tmp = Float64(sqrt(Float64(2.0 * n)) * sqrt(Float64(U * t))); end return tmp end
l_m = abs(l); function tmp_2 = code(n, U, t, l_m, Om, U_42_) tmp = 0.0; if (n <= 8e-193) tmp = (2.0 * (U * (n * t))) ^ 0.5; else tmp = sqrt((2.0 * n)) * sqrt((U * t)); end tmp_2 = tmp; end
l_m = N[Abs[l], $MachinePrecision] code[n_, U_, t_, l$95$m_, Om_, U$42$_] := If[LessEqual[n, 8e-193], N[Power[N[(2.0 * N[(U * N[(n * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 0.5], $MachinePrecision], N[(N[Sqrt[N[(2.0 * n), $MachinePrecision]], $MachinePrecision] * N[Sqrt[N[(U * t), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
l_m = \left|\ell\right|
\\
\begin{array}{l}
\mathbf{if}\;n \leq 8 \cdot 10^{-193}:\\
\;\;\;\;{\left(2 \cdot \left(U \cdot \left(n \cdot t\right)\right)\right)}^{0.5}\\
\mathbf{else}:\\
\;\;\;\;\sqrt{2 \cdot n} \cdot \sqrt{U \cdot t}\\
\end{array}
\end{array}
if n < 8.0000000000000004e-193Initial program 48.9%
Simplified52.8%
Taylor expanded in t around inf 43.0%
pow1/246.7%
Applied egg-rr46.7%
if 8.0000000000000004e-193 < n Initial program 53.5%
Simplified60.1%
sqrt-prod68.2%
fma-undefine68.2%
associate-*r*68.5%
+-commutative68.5%
*-commutative68.5%
fma-define68.5%
associate-*r/62.1%
associate-*r/62.1%
pow262.1%
Applied egg-rr62.1%
*-commutative62.1%
Simplified62.1%
Taylor expanded in t around inf 40.1%
Final simplification44.3%
l_m = (fabs.f64 l) (FPCore (n U t l_m Om U*) :precision binary64 (pow (* 2.0 (* U (* n t))) 0.5))
l_m = fabs(l);
double code(double n, double U, double t, double l_m, double Om, double U_42_) {
return pow((2.0 * (U * (n * t))), 0.5);
}
l_m = abs(l)
real(8) function code(n, u, t, l_m, om, u_42)
real(8), intent (in) :: n
real(8), intent (in) :: u
real(8), intent (in) :: t
real(8), intent (in) :: l_m
real(8), intent (in) :: om
real(8), intent (in) :: u_42
code = (2.0d0 * (u * (n * t))) ** 0.5d0
end function
l_m = Math.abs(l);
public static double code(double n, double U, double t, double l_m, double Om, double U_42_) {
return Math.pow((2.0 * (U * (n * t))), 0.5);
}
l_m = math.fabs(l) def code(n, U, t, l_m, Om, U_42_): return math.pow((2.0 * (U * (n * t))), 0.5)
l_m = abs(l) function code(n, U, t, l_m, Om, U_42_) return Float64(2.0 * Float64(U * Float64(n * t))) ^ 0.5 end
l_m = abs(l); function tmp = code(n, U, t, l_m, Om, U_42_) tmp = (2.0 * (U * (n * t))) ^ 0.5; end
l_m = N[Abs[l], $MachinePrecision] code[n_, U_, t_, l$95$m_, Om_, U$42$_] := N[Power[N[(2.0 * N[(U * N[(n * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 0.5], $MachinePrecision]
\begin{array}{l}
l_m = \left|\ell\right|
\\
{\left(2 \cdot \left(U \cdot \left(n \cdot t\right)\right)\right)}^{0.5}
\end{array}
Initial program 50.6%
Simplified55.4%
Taylor expanded in t around inf 38.9%
pow1/242.4%
Applied egg-rr42.4%
Final simplification42.4%
l_m = (fabs.f64 l) (FPCore (n U t l_m Om U*) :precision binary64 (sqrt (* 2.0 (* U (* n t)))))
l_m = fabs(l);
double code(double n, double U, double t, double l_m, double Om, double U_42_) {
return sqrt((2.0 * (U * (n * t))));
}
l_m = abs(l)
real(8) function code(n, u, t, l_m, om, u_42)
real(8), intent (in) :: n
real(8), intent (in) :: u
real(8), intent (in) :: t
real(8), intent (in) :: l_m
real(8), intent (in) :: om
real(8), intent (in) :: u_42
code = sqrt((2.0d0 * (u * (n * t))))
end function
l_m = Math.abs(l);
public static double code(double n, double U, double t, double l_m, double Om, double U_42_) {
return Math.sqrt((2.0 * (U * (n * t))));
}
l_m = math.fabs(l) def code(n, U, t, l_m, Om, U_42_): return math.sqrt((2.0 * (U * (n * t))))
l_m = abs(l) function code(n, U, t, l_m, Om, U_42_) return sqrt(Float64(2.0 * Float64(U * Float64(n * t)))) end
l_m = abs(l); function tmp = code(n, U, t, l_m, Om, U_42_) tmp = sqrt((2.0 * (U * (n * t)))); end
l_m = N[Abs[l], $MachinePrecision] code[n_, U_, t_, l$95$m_, Om_, U$42$_] := N[Sqrt[N[(2.0 * N[(U * N[(n * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]
\begin{array}{l}
l_m = \left|\ell\right|
\\
\sqrt{2 \cdot \left(U \cdot \left(n \cdot t\right)\right)}
\end{array}
Initial program 50.6%
Simplified55.4%
Taylor expanded in t around inf 38.9%
Final simplification38.9%
l_m = (fabs.f64 l) (FPCore (n U t l_m Om U*) :precision binary64 (sqrt (* (* 2.0 U) (* n t))))
l_m = fabs(l);
double code(double n, double U, double t, double l_m, double Om, double U_42_) {
return sqrt(((2.0 * U) * (n * t)));
}
l_m = abs(l)
real(8) function code(n, u, t, l_m, om, u_42)
real(8), intent (in) :: n
real(8), intent (in) :: u
real(8), intent (in) :: t
real(8), intent (in) :: l_m
real(8), intent (in) :: om
real(8), intent (in) :: u_42
code = sqrt(((2.0d0 * u) * (n * t)))
end function
l_m = Math.abs(l);
public static double code(double n, double U, double t, double l_m, double Om, double U_42_) {
return Math.sqrt(((2.0 * U) * (n * t)));
}
l_m = math.fabs(l) def code(n, U, t, l_m, Om, U_42_): return math.sqrt(((2.0 * U) * (n * t)))
l_m = abs(l) function code(n, U, t, l_m, Om, U_42_) return sqrt(Float64(Float64(2.0 * U) * Float64(n * t))) end
l_m = abs(l); function tmp = code(n, U, t, l_m, Om, U_42_) tmp = sqrt(((2.0 * U) * (n * t))); end
l_m = N[Abs[l], $MachinePrecision] code[n_, U_, t_, l$95$m_, Om_, U$42$_] := N[Sqrt[N[(N[(2.0 * U), $MachinePrecision] * N[(n * t), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]
\begin{array}{l}
l_m = \left|\ell\right|
\\
\sqrt{\left(2 \cdot U\right) \cdot \left(n \cdot t\right)}
\end{array}
Initial program 50.6%
Simplified55.4%
Taylor expanded in t around inf 38.9%
pow1/242.4%
Applied egg-rr42.4%
unpow1/238.9%
associate-*r*38.9%
Applied egg-rr38.9%
Final simplification38.9%
herbie shell --seed 2024053
(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*))))))