
(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}
l_m = (fabs.f64 l)
(FPCore (n U t l_m Om U*)
:precision binary64
(let* ((t_1 (/ (* l_m l_m) Om))
(t_2 (* (* 2.0 n) U))
(t_3
(sqrt
(*
t_2
(- (- t (* 2.0 t_1)) (* (* n (pow (/ l_m Om) 2.0)) (- U U*)))))))
(if (<= t_3 0.0)
(* (sqrt (* (fma (* (/ l_m Om) l_m) -2.0 t) U)) (sqrt (* 2.0 n)))
(if (<= t_3 1e+154)
(sqrt
(*
t_2
(fma (* (- U* U) (* n (/ l_m Om))) (/ l_m Om) (fma -2.0 t_1 t))))
(*
(sqrt (* (* U n) (fma (/ n Om) (/ (- U* U) Om) (/ -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 = (l_m * l_m) / Om;
double t_2 = (2.0 * n) * U;
double t_3 = sqrt((t_2 * ((t - (2.0 * t_1)) - ((n * pow((l_m / Om), 2.0)) * (U - U_42_)))));
double tmp;
if (t_3 <= 0.0) {
tmp = sqrt((fma(((l_m / Om) * l_m), -2.0, t) * U)) * sqrt((2.0 * n));
} else if (t_3 <= 1e+154) {
tmp = sqrt((t_2 * fma(((U_42_ - U) * (n * (l_m / Om))), (l_m / Om), fma(-2.0, t_1, t))));
} else {
tmp = sqrt(((U * n) * fma((n / Om), ((U_42_ - U) / Om), (-2.0 / Om)))) * (l_m * sqrt(2.0));
}
return tmp;
}
l_m = abs(l) function code(n, U, t, l_m, Om, U_42_) t_1 = Float64(Float64(l_m * l_m) / Om) t_2 = Float64(Float64(2.0 * n) * U) t_3 = sqrt(Float64(t_2 * Float64(Float64(t - Float64(2.0 * t_1)) - Float64(Float64(n * (Float64(l_m / Om) ^ 2.0)) * Float64(U - U_42_))))) tmp = 0.0 if (t_3 <= 0.0) tmp = Float64(sqrt(Float64(fma(Float64(Float64(l_m / Om) * l_m), -2.0, t) * U)) * sqrt(Float64(2.0 * n))); elseif (t_3 <= 1e+154) tmp = sqrt(Float64(t_2 * fma(Float64(Float64(U_42_ - U) * Float64(n * Float64(l_m / Om))), Float64(l_m / Om), fma(-2.0, t_1, t)))); else tmp = Float64(sqrt(Float64(Float64(U * n) * fma(Float64(n / Om), Float64(Float64(U_42_ - U) / Om), Float64(-2.0 / Om)))) * Float64(l_m * sqrt(2.0))); end return tmp end
l_m = N[Abs[l], $MachinePrecision]
code[n_, U_, t_, l$95$m_, Om_, U$42$_] := Block[{t$95$1 = N[(N[(l$95$m * l$95$m), $MachinePrecision] / Om), $MachinePrecision]}, Block[{t$95$2 = N[(N[(2.0 * n), $MachinePrecision] * U), $MachinePrecision]}, Block[{t$95$3 = N[Sqrt[N[(t$95$2 * N[(N[(t - N[(2.0 * t$95$1), $MachinePrecision]), $MachinePrecision] - N[(N[(n * N[Power[N[(l$95$m / Om), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision] * N[(U - U$42$), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]}, If[LessEqual[t$95$3, 0.0], N[(N[Sqrt[N[(N[(N[(N[(l$95$m / Om), $MachinePrecision] * l$95$m), $MachinePrecision] * -2.0 + t), $MachinePrecision] * U), $MachinePrecision]], $MachinePrecision] * N[Sqrt[N[(2.0 * n), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$3, 1e+154], N[Sqrt[N[(t$95$2 * N[(N[(N[(U$42$ - U), $MachinePrecision] * N[(n * N[(l$95$m / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(l$95$m / Om), $MachinePrecision] + N[(-2.0 * t$95$1 + t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], N[(N[Sqrt[N[(N[(U * n), $MachinePrecision] * N[(N[(n / Om), $MachinePrecision] * N[(N[(U$42$ - U), $MachinePrecision] / Om), $MachinePrecision] + N[(-2.0 / Om), $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 := \frac{l\_m \cdot l\_m}{Om}\\
t_2 := \left(2 \cdot n\right) \cdot U\\
t_3 := \sqrt{t\_2 \cdot \left(\left(t - 2 \cdot t\_1\right) - \left(n \cdot {\left(\frac{l\_m}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)}\\
\mathbf{if}\;t\_3 \leq 0:\\
\;\;\;\;\sqrt{\mathsf{fma}\left(\frac{l\_m}{Om} \cdot l\_m, -2, t\right) \cdot U} \cdot \sqrt{2 \cdot n}\\
\mathbf{elif}\;t\_3 \leq 10^{+154}:\\
\;\;\;\;\sqrt{t\_2 \cdot \mathsf{fma}\left(\left(U* - U\right) \cdot \left(n \cdot \frac{l\_m}{Om}\right), \frac{l\_m}{Om}, \mathsf{fma}\left(-2, t\_1, t\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;\sqrt{\left(U \cdot n\right) \cdot \mathsf{fma}\left(\frac{n}{Om}, \frac{U* - U}{Om}, \frac{-2}{Om}\right)} \cdot \left(l\_m \cdot \sqrt{2}\right)\\
\end{array}
\end{array}
if (sqrt.f64 (*.f64 (*.f64 (*.f64 #s(literal 2 binary64) n) U) (-.f64 (-.f64 t (*.f64 #s(literal 2 binary64) (/.f64 (*.f64 l l) Om))) (*.f64 (*.f64 n (pow.f64 (/.f64 l Om) #s(literal 2 binary64))) (-.f64 U U*))))) < 0.0Initial program 8.6%
Taylor expanded in n around 0
*-commutativeN/A
lower-*.f64N/A
lower-sqrt.f64N/A
lower-sqrt.f64N/A
*-commutativeN/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f64N/A
cancel-sign-sub-invN/A
metadata-evalN/A
+-commutativeN/A
lower-fma.f64N/A
lower-/.f64N/A
unpow2N/A
lower-*.f6432.9
Applied rewrites32.9%
Applied rewrites45.0%
if 0.0 < (sqrt.f64 (*.f64 (*.f64 (*.f64 #s(literal 2 binary64) n) U) (-.f64 (-.f64 t (*.f64 #s(literal 2 binary64) (/.f64 (*.f64 l l) Om))) (*.f64 (*.f64 n (pow.f64 (/.f64 l Om) #s(literal 2 binary64))) (-.f64 U U*))))) < 1.00000000000000004e154Initial program 97.0%
lift--.f64N/A
sub-negN/A
+-commutativeN/A
lift-*.f64N/A
*-commutativeN/A
distribute-lft-neg-inN/A
lift-*.f64N/A
lift-pow.f64N/A
unpow2N/A
associate-*r*N/A
associate-*r*N/A
lower-fma.f64N/A
lower-*.f64N/A
lower-neg.f64N/A
lower-*.f6498.6
lift--.f64N/A
sub-negN/A
Applied rewrites98.6%
Taylor expanded in U around 0
mul-1-negN/A
sub-negN/A
lower--.f6498.6
Applied rewrites98.6%
if 1.00000000000000004e154 < (sqrt.f64 (*.f64 (*.f64 (*.f64 #s(literal 2 binary64) n) U) (-.f64 (-.f64 t (*.f64 #s(literal 2 binary64) (/.f64 (*.f64 l l) Om))) (*.f64 (*.f64 n (pow.f64 (/.f64 l Om) #s(literal 2 binary64))) (-.f64 U U*))))) Initial program 20.8%
lift--.f64N/A
sub-negN/A
+-commutativeN/A
lift-*.f64N/A
*-commutativeN/A
distribute-lft-neg-inN/A
lift-*.f64N/A
lift-pow.f64N/A
unpow2N/A
associate-*r*N/A
associate-*r*N/A
lower-fma.f64N/A
lower-*.f64N/A
lower-neg.f64N/A
lower-*.f6423.7
lift--.f64N/A
sub-negN/A
Applied rewrites23.7%
lift-fma.f64N/A
*-commutativeN/A
lower-fma.f6423.7
lift-*.f64N/A
*-commutativeN/A
lower-*.f6423.7
lift-*.f64N/A
*-commutativeN/A
lower-*.f6423.7
lift-fma.f64N/A
*-commutativeN/A
lower-fma.f6423.7
lift-/.f64N/A
lift-*.f64N/A
associate-*l/N/A
lift-/.f64N/A
lower-*.f6429.1
Applied rewrites29.1%
Taylor expanded in l around inf
lower-*.f64N/A
Applied rewrites24.2%
l_m = (fabs.f64 l)
(FPCore (n U t l_m Om U*)
:precision binary64
(let* ((t_1 (/ (* l_m l_m) Om))
(t_2 (* (* 2.0 n) U))
(t_3
(sqrt
(*
t_2
(- (- t (* 2.0 t_1)) (* (* n (pow (/ l_m Om) 2.0)) (- U U*)))))))
(if (<= t_3 0.0)
(* (sqrt (* (fma (* (/ l_m Om) l_m) -2.0 t) U)) (sqrt (* 2.0 n)))
(if (<= t_3 2e+79)
(sqrt (* t_2 (fma (/ (* U* (* l_m n)) Om) (/ l_m Om) (fma -2.0 t_1 t))))
(if (<= t_3 1e+154)
(sqrt (* t_2 (fma -2.0 t_1 (fma (- U) (* (/ n Om) t_1) t))))
(*
(sqrt (* (* U n) (fma (/ n Om) (/ (- U* U) Om) (/ -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 = (l_m * l_m) / Om;
double t_2 = (2.0 * n) * U;
double t_3 = sqrt((t_2 * ((t - (2.0 * t_1)) - ((n * pow((l_m / Om), 2.0)) * (U - U_42_)))));
double tmp;
if (t_3 <= 0.0) {
tmp = sqrt((fma(((l_m / Om) * l_m), -2.0, t) * U)) * sqrt((2.0 * n));
} else if (t_3 <= 2e+79) {
tmp = sqrt((t_2 * fma(((U_42_ * (l_m * n)) / Om), (l_m / Om), fma(-2.0, t_1, t))));
} else if (t_3 <= 1e+154) {
tmp = sqrt((t_2 * fma(-2.0, t_1, fma(-U, ((n / Om) * t_1), t))));
} else {
tmp = sqrt(((U * n) * fma((n / Om), ((U_42_ - U) / Om), (-2.0 / Om)))) * (l_m * sqrt(2.0));
}
return tmp;
}
l_m = abs(l) function code(n, U, t, l_m, Om, U_42_) t_1 = Float64(Float64(l_m * l_m) / Om) t_2 = Float64(Float64(2.0 * n) * U) t_3 = sqrt(Float64(t_2 * Float64(Float64(t - Float64(2.0 * t_1)) - Float64(Float64(n * (Float64(l_m / Om) ^ 2.0)) * Float64(U - U_42_))))) tmp = 0.0 if (t_3 <= 0.0) tmp = Float64(sqrt(Float64(fma(Float64(Float64(l_m / Om) * l_m), -2.0, t) * U)) * sqrt(Float64(2.0 * n))); elseif (t_3 <= 2e+79) tmp = sqrt(Float64(t_2 * fma(Float64(Float64(U_42_ * Float64(l_m * n)) / Om), Float64(l_m / Om), fma(-2.0, t_1, t)))); elseif (t_3 <= 1e+154) tmp = sqrt(Float64(t_2 * fma(-2.0, t_1, fma(Float64(-U), Float64(Float64(n / Om) * t_1), t)))); else tmp = Float64(sqrt(Float64(Float64(U * n) * fma(Float64(n / Om), Float64(Float64(U_42_ - U) / Om), Float64(-2.0 / Om)))) * Float64(l_m * sqrt(2.0))); end return tmp end
l_m = N[Abs[l], $MachinePrecision]
code[n_, U_, t_, l$95$m_, Om_, U$42$_] := Block[{t$95$1 = N[(N[(l$95$m * l$95$m), $MachinePrecision] / Om), $MachinePrecision]}, Block[{t$95$2 = N[(N[(2.0 * n), $MachinePrecision] * U), $MachinePrecision]}, Block[{t$95$3 = N[Sqrt[N[(t$95$2 * N[(N[(t - N[(2.0 * t$95$1), $MachinePrecision]), $MachinePrecision] - N[(N[(n * N[Power[N[(l$95$m / Om), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision] * N[(U - U$42$), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]}, If[LessEqual[t$95$3, 0.0], N[(N[Sqrt[N[(N[(N[(N[(l$95$m / Om), $MachinePrecision] * l$95$m), $MachinePrecision] * -2.0 + t), $MachinePrecision] * U), $MachinePrecision]], $MachinePrecision] * N[Sqrt[N[(2.0 * n), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$3, 2e+79], N[Sqrt[N[(t$95$2 * N[(N[(N[(U$42$ * N[(l$95$m * n), $MachinePrecision]), $MachinePrecision] / Om), $MachinePrecision] * N[(l$95$m / Om), $MachinePrecision] + N[(-2.0 * t$95$1 + t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], If[LessEqual[t$95$3, 1e+154], N[Sqrt[N[(t$95$2 * N[(-2.0 * t$95$1 + N[((-U) * N[(N[(n / Om), $MachinePrecision] * t$95$1), $MachinePrecision] + t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], N[(N[Sqrt[N[(N[(U * n), $MachinePrecision] * N[(N[(n / Om), $MachinePrecision] * N[(N[(U$42$ - U), $MachinePrecision] / Om), $MachinePrecision] + N[(-2.0 / Om), $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 := \frac{l\_m \cdot l\_m}{Om}\\
t_2 := \left(2 \cdot n\right) \cdot U\\
t_3 := \sqrt{t\_2 \cdot \left(\left(t - 2 \cdot t\_1\right) - \left(n \cdot {\left(\frac{l\_m}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)}\\
\mathbf{if}\;t\_3 \leq 0:\\
\;\;\;\;\sqrt{\mathsf{fma}\left(\frac{l\_m}{Om} \cdot l\_m, -2, t\right) \cdot U} \cdot \sqrt{2 \cdot n}\\
\mathbf{elif}\;t\_3 \leq 2 \cdot 10^{+79}:\\
\;\;\;\;\sqrt{t\_2 \cdot \mathsf{fma}\left(\frac{U* \cdot \left(l\_m \cdot n\right)}{Om}, \frac{l\_m}{Om}, \mathsf{fma}\left(-2, t\_1, t\right)\right)}\\
\mathbf{elif}\;t\_3 \leq 10^{+154}:\\
\;\;\;\;\sqrt{t\_2 \cdot \mathsf{fma}\left(-2, t\_1, \mathsf{fma}\left(-U, \frac{n}{Om} \cdot t\_1, t\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;\sqrt{\left(U \cdot n\right) \cdot \mathsf{fma}\left(\frac{n}{Om}, \frac{U* - U}{Om}, \frac{-2}{Om}\right)} \cdot \left(l\_m \cdot \sqrt{2}\right)\\
\end{array}
\end{array}
if (sqrt.f64 (*.f64 (*.f64 (*.f64 #s(literal 2 binary64) n) U) (-.f64 (-.f64 t (*.f64 #s(literal 2 binary64) (/.f64 (*.f64 l l) Om))) (*.f64 (*.f64 n (pow.f64 (/.f64 l Om) #s(literal 2 binary64))) (-.f64 U U*))))) < 0.0Initial program 8.6%
Taylor expanded in n around 0
*-commutativeN/A
lower-*.f64N/A
lower-sqrt.f64N/A
lower-sqrt.f64N/A
*-commutativeN/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f64N/A
cancel-sign-sub-invN/A
metadata-evalN/A
+-commutativeN/A
lower-fma.f64N/A
lower-/.f64N/A
unpow2N/A
lower-*.f6432.9
Applied rewrites32.9%
Applied rewrites45.0%
if 0.0 < (sqrt.f64 (*.f64 (*.f64 (*.f64 #s(literal 2 binary64) n) U) (-.f64 (-.f64 t (*.f64 #s(literal 2 binary64) (/.f64 (*.f64 l l) Om))) (*.f64 (*.f64 n (pow.f64 (/.f64 l Om) #s(literal 2 binary64))) (-.f64 U U*))))) < 1.99999999999999993e79Initial program 96.2%
lift--.f64N/A
sub-negN/A
+-commutativeN/A
lift-*.f64N/A
*-commutativeN/A
distribute-lft-neg-inN/A
lift-*.f64N/A
lift-pow.f64N/A
unpow2N/A
associate-*r*N/A
associate-*r*N/A
lower-fma.f64N/A
lower-*.f64N/A
lower-neg.f64N/A
lower-*.f6498.3
lift--.f64N/A
sub-negN/A
Applied rewrites98.3%
Taylor expanded in U around 0
lower-/.f64N/A
lower-*.f64N/A
lower-*.f6496.1
Applied rewrites96.1%
if 1.99999999999999993e79 < (sqrt.f64 (*.f64 (*.f64 (*.f64 #s(literal 2 binary64) n) U) (-.f64 (-.f64 t (*.f64 #s(literal 2 binary64) (/.f64 (*.f64 l l) Om))) (*.f64 (*.f64 n (pow.f64 (/.f64 l Om) #s(literal 2 binary64))) (-.f64 U U*))))) < 1.00000000000000004e154Initial program 99.6%
Taylor expanded in U* around 0
associate--r+N/A
cancel-sign-sub-invN/A
metadata-evalN/A
+-commutativeN/A
metadata-evalN/A
distribute-lft-neg-inN/A
associate--l+N/A
distribute-lft-neg-inN/A
metadata-evalN/A
unsub-negN/A
mul-1-negN/A
lower-fma.f64N/A
lower-/.f64N/A
unpow2N/A
lower-*.f64N/A
Applied rewrites99.7%
if 1.00000000000000004e154 < (sqrt.f64 (*.f64 (*.f64 (*.f64 #s(literal 2 binary64) n) U) (-.f64 (-.f64 t (*.f64 #s(literal 2 binary64) (/.f64 (*.f64 l l) Om))) (*.f64 (*.f64 n (pow.f64 (/.f64 l Om) #s(literal 2 binary64))) (-.f64 U U*))))) Initial program 20.8%
lift--.f64N/A
sub-negN/A
+-commutativeN/A
lift-*.f64N/A
*-commutativeN/A
distribute-lft-neg-inN/A
lift-*.f64N/A
lift-pow.f64N/A
unpow2N/A
associate-*r*N/A
associate-*r*N/A
lower-fma.f64N/A
lower-*.f64N/A
lower-neg.f64N/A
lower-*.f6423.7
lift--.f64N/A
sub-negN/A
Applied rewrites23.7%
lift-fma.f64N/A
*-commutativeN/A
lower-fma.f6423.7
lift-*.f64N/A
*-commutativeN/A
lower-*.f6423.7
lift-*.f64N/A
*-commutativeN/A
lower-*.f6423.7
lift-fma.f64N/A
*-commutativeN/A
lower-fma.f6423.7
lift-/.f64N/A
lift-*.f64N/A
associate-*l/N/A
lift-/.f64N/A
lower-*.f6429.1
Applied rewrites29.1%
Taylor expanded in l around inf
lower-*.f64N/A
Applied rewrites24.2%
l_m = (fabs.f64 l)
(FPCore (n U t l_m Om U*)
:precision binary64
(let* ((t_1 (* (* 2.0 n) U))
(t_2
(*
t_1
(-
(- t (* 2.0 (/ (* l_m l_m) Om)))
(* (* n (pow (/ l_m Om) 2.0)) (- U U*))))))
(if (<= t_2 5e-41)
(sqrt
(*
(* (fma (/ l_m Om) (fma (* (- U* U) n) (/ l_m Om) (* -2.0 l_m)) t) U)
(* 2.0 n)))
(if (<= t_2 5e+307)
(sqrt (* t_1 (- t (/ (* (* l_m l_m) (fma (- U U*) (/ n Om) 2.0)) Om))))
(*
(sqrt (* (* U n) (fma (/ n Om) (/ (- U* U) Om) (/ -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 = (2.0 * n) * U;
double t_2 = t_1 * ((t - (2.0 * ((l_m * l_m) / Om))) - ((n * pow((l_m / Om), 2.0)) * (U - U_42_)));
double tmp;
if (t_2 <= 5e-41) {
tmp = sqrt(((fma((l_m / Om), fma(((U_42_ - U) * n), (l_m / Om), (-2.0 * l_m)), t) * U) * (2.0 * n)));
} else if (t_2 <= 5e+307) {
tmp = sqrt((t_1 * (t - (((l_m * l_m) * fma((U - U_42_), (n / Om), 2.0)) / Om))));
} else {
tmp = sqrt(((U * n) * fma((n / Om), ((U_42_ - U) / Om), (-2.0 / Om)))) * (l_m * sqrt(2.0));
}
return tmp;
}
l_m = abs(l) function code(n, U, t, l_m, Om, U_42_) t_1 = Float64(Float64(2.0 * n) * U) t_2 = Float64(t_1 * Float64(Float64(t - Float64(2.0 * Float64(Float64(l_m * l_m) / Om))) - Float64(Float64(n * (Float64(l_m / Om) ^ 2.0)) * Float64(U - U_42_)))) tmp = 0.0 if (t_2 <= 5e-41) tmp = sqrt(Float64(Float64(fma(Float64(l_m / Om), fma(Float64(Float64(U_42_ - U) * n), Float64(l_m / Om), Float64(-2.0 * l_m)), t) * U) * Float64(2.0 * n))); elseif (t_2 <= 5e+307) tmp = sqrt(Float64(t_1 * Float64(t - Float64(Float64(Float64(l_m * l_m) * fma(Float64(U - U_42_), Float64(n / Om), 2.0)) / Om)))); else tmp = Float64(sqrt(Float64(Float64(U * n) * fma(Float64(n / Om), Float64(Float64(U_42_ - U) / Om), Float64(-2.0 / Om)))) * Float64(l_m * sqrt(2.0))); end return tmp end
l_m = N[Abs[l], $MachinePrecision]
code[n_, U_, t_, l$95$m_, Om_, U$42$_] := Block[{t$95$1 = N[(N[(2.0 * n), $MachinePrecision] * U), $MachinePrecision]}, Block[{t$95$2 = N[(t$95$1 * N[(N[(t - N[(2.0 * N[(N[(l$95$m * l$95$m), $MachinePrecision] / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(n * N[Power[N[(l$95$m / Om), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision] * N[(U - U$42$), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$2, 5e-41], N[Sqrt[N[(N[(N[(N[(l$95$m / Om), $MachinePrecision] * N[(N[(N[(U$42$ - U), $MachinePrecision] * n), $MachinePrecision] * N[(l$95$m / Om), $MachinePrecision] + N[(-2.0 * l$95$m), $MachinePrecision]), $MachinePrecision] + t), $MachinePrecision] * U), $MachinePrecision] * N[(2.0 * n), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], If[LessEqual[t$95$2, 5e+307], N[Sqrt[N[(t$95$1 * N[(t - N[(N[(N[(l$95$m * l$95$m), $MachinePrecision] * N[(N[(U - U$42$), $MachinePrecision] * N[(n / Om), $MachinePrecision] + 2.0), $MachinePrecision]), $MachinePrecision] / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], N[(N[Sqrt[N[(N[(U * n), $MachinePrecision] * N[(N[(n / Om), $MachinePrecision] * N[(N[(U$42$ - U), $MachinePrecision] / Om), $MachinePrecision] + N[(-2.0 / Om), $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 := \left(2 \cdot n\right) \cdot U\\
t_2 := t\_1 \cdot \left(\left(t - 2 \cdot \frac{l\_m \cdot l\_m}{Om}\right) - \left(n \cdot {\left(\frac{l\_m}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)\\
\mathbf{if}\;t\_2 \leq 5 \cdot 10^{-41}:\\
\;\;\;\;\sqrt{\left(\mathsf{fma}\left(\frac{l\_m}{Om}, \mathsf{fma}\left(\left(U* - U\right) \cdot n, \frac{l\_m}{Om}, -2 \cdot l\_m\right), t\right) \cdot U\right) \cdot \left(2 \cdot n\right)}\\
\mathbf{elif}\;t\_2 \leq 5 \cdot 10^{+307}:\\
\;\;\;\;\sqrt{t\_1 \cdot \left(t - \frac{\left(l\_m \cdot l\_m\right) \cdot \mathsf{fma}\left(U - U*, \frac{n}{Om}, 2\right)}{Om}\right)}\\
\mathbf{else}:\\
\;\;\;\;\sqrt{\left(U \cdot n\right) \cdot \mathsf{fma}\left(\frac{n}{Om}, \frac{U* - U}{Om}, \frac{-2}{Om}\right)} \cdot \left(l\_m \cdot \sqrt{2}\right)\\
\end{array}
\end{array}
if (*.f64 (*.f64 (*.f64 #s(literal 2 binary64) n) U) (-.f64 (-.f64 t (*.f64 #s(literal 2 binary64) (/.f64 (*.f64 l l) Om))) (*.f64 (*.f64 n (pow.f64 (/.f64 l Om) #s(literal 2 binary64))) (-.f64 U U*)))) < 4.9999999999999996e-41Initial program 59.4%
lift--.f64N/A
sub-negN/A
+-commutativeN/A
lift-*.f64N/A
*-commutativeN/A
distribute-lft-neg-inN/A
lift-*.f64N/A
lift-pow.f64N/A
unpow2N/A
associate-*r*N/A
associate-*r*N/A
lower-fma.f64N/A
lower-*.f64N/A
lower-neg.f64N/A
lower-*.f6462.7
lift--.f64N/A
sub-negN/A
Applied rewrites62.7%
lift-fma.f64N/A
*-commutativeN/A
lower-fma.f6462.7
lift-*.f64N/A
*-commutativeN/A
lower-*.f6462.7
lift-*.f64N/A
*-commutativeN/A
lower-*.f6462.7
lift-fma.f64N/A
*-commutativeN/A
lower-fma.f6462.7
lift-/.f64N/A
lift-*.f64N/A
associate-*l/N/A
lift-/.f64N/A
lower-*.f6462.7
Applied rewrites62.7%
lift-*.f64N/A
lift-*.f64N/A
associate-*l*N/A
*-commutativeN/A
lower-*.f64N/A
Applied rewrites71.4%
if 4.9999999999999996e-41 < (*.f64 (*.f64 (*.f64 #s(literal 2 binary64) n) U) (-.f64 (-.f64 t (*.f64 #s(literal 2 binary64) (/.f64 (*.f64 l l) Om))) (*.f64 (*.f64 n (pow.f64 (/.f64 l Om) #s(literal 2 binary64))) (-.f64 U U*)))) < 5e307Initial program 98.2%
Taylor expanded in n around 0
mul-1-negN/A
unsub-negN/A
associate--r+N/A
+-commutativeN/A
lower--.f64N/A
+-commutativeN/A
unpow2N/A
associate-/r*N/A
metadata-evalN/A
cancel-sign-sub-invN/A
associate-*r/N/A
Applied rewrites95.2%
if 5e307 < (*.f64 (*.f64 (*.f64 #s(literal 2 binary64) n) U) (-.f64 (-.f64 t (*.f64 #s(literal 2 binary64) (/.f64 (*.f64 l l) Om))) (*.f64 (*.f64 n (pow.f64 (/.f64 l Om) #s(literal 2 binary64))) (-.f64 U U*)))) Initial program 21.4%
lift--.f64N/A
sub-negN/A
+-commutativeN/A
lift-*.f64N/A
*-commutativeN/A
distribute-lft-neg-inN/A
lift-*.f64N/A
lift-pow.f64N/A
unpow2N/A
associate-*r*N/A
associate-*r*N/A
lower-fma.f64N/A
lower-*.f64N/A
lower-neg.f64N/A
lower-*.f6422.7
lift--.f64N/A
sub-negN/A
Applied rewrites22.7%
lift-fma.f64N/A
*-commutativeN/A
lower-fma.f6422.7
lift-*.f64N/A
*-commutativeN/A
lower-*.f6422.7
lift-*.f64N/A
*-commutativeN/A
lower-*.f6422.7
lift-fma.f64N/A
*-commutativeN/A
lower-fma.f6422.7
lift-/.f64N/A
lift-*.f64N/A
associate-*l/N/A
lift-/.f64N/A
lower-*.f6428.2
Applied rewrites28.2%
Taylor expanded in l around inf
lower-*.f64N/A
Applied rewrites24.8%
l_m = (fabs.f64 l)
(FPCore (n U t l_m Om U*)
:precision binary64
(let* ((t_1 (* (* 2.0 n) U))
(t_2
(*
t_1
(-
(- t (* 2.0 (/ (* l_m l_m) Om)))
(* (* n (pow (/ l_m Om) 2.0)) (- U U*))))))
(if (<= t_2 5e-41)
(sqrt
(*
(* (fma (/ l_m Om) (fma (* (- U* U) n) (/ l_m Om) (* -2.0 l_m)) t) U)
(* 2.0 n)))
(if (<= t_2 5e+307)
(sqrt (* t_1 (- t (/ (* (* l_m l_m) (fma (- U U*) (/ n Om) 2.0)) Om))))
(sqrt
(*
(*
2.0
(/ (* l_m (* n (fma -2.0 l_m (/ (* l_m (* n (- U* U))) Om)))) Om))
U))))))l_m = fabs(l);
double code(double n, double U, double t, double l_m, double Om, double U_42_) {
double t_1 = (2.0 * n) * U;
double t_2 = t_1 * ((t - (2.0 * ((l_m * l_m) / Om))) - ((n * pow((l_m / Om), 2.0)) * (U - U_42_)));
double tmp;
if (t_2 <= 5e-41) {
tmp = sqrt(((fma((l_m / Om), fma(((U_42_ - U) * n), (l_m / Om), (-2.0 * l_m)), t) * U) * (2.0 * n)));
} else if (t_2 <= 5e+307) {
tmp = sqrt((t_1 * (t - (((l_m * l_m) * fma((U - U_42_), (n / Om), 2.0)) / Om))));
} else {
tmp = sqrt(((2.0 * ((l_m * (n * fma(-2.0, l_m, ((l_m * (n * (U_42_ - U))) / Om)))) / Om)) * U));
}
return tmp;
}
l_m = abs(l) function code(n, U, t, l_m, Om, U_42_) t_1 = Float64(Float64(2.0 * n) * U) t_2 = Float64(t_1 * Float64(Float64(t - Float64(2.0 * Float64(Float64(l_m * l_m) / Om))) - Float64(Float64(n * (Float64(l_m / Om) ^ 2.0)) * Float64(U - U_42_)))) tmp = 0.0 if (t_2 <= 5e-41) tmp = sqrt(Float64(Float64(fma(Float64(l_m / Om), fma(Float64(Float64(U_42_ - U) * n), Float64(l_m / Om), Float64(-2.0 * l_m)), t) * U) * Float64(2.0 * n))); elseif (t_2 <= 5e+307) tmp = sqrt(Float64(t_1 * Float64(t - Float64(Float64(Float64(l_m * l_m) * fma(Float64(U - U_42_), Float64(n / Om), 2.0)) / Om)))); else tmp = sqrt(Float64(Float64(2.0 * Float64(Float64(l_m * Float64(n * fma(-2.0, l_m, Float64(Float64(l_m * Float64(n * Float64(U_42_ - U))) / Om)))) / Om)) * U)); end return tmp end
l_m = N[Abs[l], $MachinePrecision]
code[n_, U_, t_, l$95$m_, Om_, U$42$_] := Block[{t$95$1 = N[(N[(2.0 * n), $MachinePrecision] * U), $MachinePrecision]}, Block[{t$95$2 = N[(t$95$1 * N[(N[(t - N[(2.0 * N[(N[(l$95$m * l$95$m), $MachinePrecision] / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(n * N[Power[N[(l$95$m / Om), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision] * N[(U - U$42$), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$2, 5e-41], N[Sqrt[N[(N[(N[(N[(l$95$m / Om), $MachinePrecision] * N[(N[(N[(U$42$ - U), $MachinePrecision] * n), $MachinePrecision] * N[(l$95$m / Om), $MachinePrecision] + N[(-2.0 * l$95$m), $MachinePrecision]), $MachinePrecision] + t), $MachinePrecision] * U), $MachinePrecision] * N[(2.0 * n), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], If[LessEqual[t$95$2, 5e+307], N[Sqrt[N[(t$95$1 * N[(t - N[(N[(N[(l$95$m * l$95$m), $MachinePrecision] * N[(N[(U - U$42$), $MachinePrecision] * N[(n / Om), $MachinePrecision] + 2.0), $MachinePrecision]), $MachinePrecision] / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], N[Sqrt[N[(N[(2.0 * N[(N[(l$95$m * N[(n * N[(-2.0 * l$95$m + N[(N[(l$95$m * N[(n * N[(U$42$ - U), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / Om), $MachinePrecision]), $MachinePrecision] * U), $MachinePrecision]], $MachinePrecision]]]]]
\begin{array}{l}
l_m = \left|\ell\right|
\\
\begin{array}{l}
t_1 := \left(2 \cdot n\right) \cdot U\\
t_2 := t\_1 \cdot \left(\left(t - 2 \cdot \frac{l\_m \cdot l\_m}{Om}\right) - \left(n \cdot {\left(\frac{l\_m}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)\\
\mathbf{if}\;t\_2 \leq 5 \cdot 10^{-41}:\\
\;\;\;\;\sqrt{\left(\mathsf{fma}\left(\frac{l\_m}{Om}, \mathsf{fma}\left(\left(U* - U\right) \cdot n, \frac{l\_m}{Om}, -2 \cdot l\_m\right), t\right) \cdot U\right) \cdot \left(2 \cdot n\right)}\\
\mathbf{elif}\;t\_2 \leq 5 \cdot 10^{+307}:\\
\;\;\;\;\sqrt{t\_1 \cdot \left(t - \frac{\left(l\_m \cdot l\_m\right) \cdot \mathsf{fma}\left(U - U*, \frac{n}{Om}, 2\right)}{Om}\right)}\\
\mathbf{else}:\\
\;\;\;\;\sqrt{\left(2 \cdot \frac{l\_m \cdot \left(n \cdot \mathsf{fma}\left(-2, l\_m, \frac{l\_m \cdot \left(n \cdot \left(U* - U\right)\right)}{Om}\right)\right)}{Om}\right) \cdot U}\\
\end{array}
\end{array}
if (*.f64 (*.f64 (*.f64 #s(literal 2 binary64) n) U) (-.f64 (-.f64 t (*.f64 #s(literal 2 binary64) (/.f64 (*.f64 l l) Om))) (*.f64 (*.f64 n (pow.f64 (/.f64 l Om) #s(literal 2 binary64))) (-.f64 U U*)))) < 4.9999999999999996e-41Initial program 59.4%
lift--.f64N/A
sub-negN/A
+-commutativeN/A
lift-*.f64N/A
*-commutativeN/A
distribute-lft-neg-inN/A
lift-*.f64N/A
lift-pow.f64N/A
unpow2N/A
associate-*r*N/A
associate-*r*N/A
lower-fma.f64N/A
lower-*.f64N/A
lower-neg.f64N/A
lower-*.f6462.7
lift--.f64N/A
sub-negN/A
Applied rewrites62.7%
lift-fma.f64N/A
*-commutativeN/A
lower-fma.f6462.7
lift-*.f64N/A
*-commutativeN/A
lower-*.f6462.7
lift-*.f64N/A
*-commutativeN/A
lower-*.f6462.7
lift-fma.f64N/A
*-commutativeN/A
lower-fma.f6462.7
lift-/.f64N/A
lift-*.f64N/A
associate-*l/N/A
lift-/.f64N/A
lower-*.f6462.7
Applied rewrites62.7%
lift-*.f64N/A
lift-*.f64N/A
associate-*l*N/A
*-commutativeN/A
lower-*.f64N/A
Applied rewrites71.4%
if 4.9999999999999996e-41 < (*.f64 (*.f64 (*.f64 #s(literal 2 binary64) n) U) (-.f64 (-.f64 t (*.f64 #s(literal 2 binary64) (/.f64 (*.f64 l l) Om))) (*.f64 (*.f64 n (pow.f64 (/.f64 l Om) #s(literal 2 binary64))) (-.f64 U U*)))) < 5e307Initial program 98.2%
Taylor expanded in n around 0
mul-1-negN/A
unsub-negN/A
associate--r+N/A
+-commutativeN/A
lower--.f64N/A
+-commutativeN/A
unpow2N/A
associate-/r*N/A
metadata-evalN/A
cancel-sign-sub-invN/A
associate-*r/N/A
Applied rewrites95.2%
if 5e307 < (*.f64 (*.f64 (*.f64 #s(literal 2 binary64) n) U) (-.f64 (-.f64 t (*.f64 #s(literal 2 binary64) (/.f64 (*.f64 l l) Om))) (*.f64 (*.f64 n (pow.f64 (/.f64 l Om) #s(literal 2 binary64))) (-.f64 U U*)))) Initial program 21.4%
lift--.f64N/A
sub-negN/A
+-commutativeN/A
lift-*.f64N/A
*-commutativeN/A
distribute-lft-neg-inN/A
lift-*.f64N/A
lift-pow.f64N/A
unpow2N/A
associate-*r*N/A
associate-*r*N/A
lower-fma.f64N/A
lower-*.f64N/A
lower-neg.f64N/A
lower-*.f6422.7
lift--.f64N/A
sub-negN/A
Applied rewrites22.7%
lift-fma.f64N/A
*-commutativeN/A
lower-fma.f6422.7
lift-*.f64N/A
*-commutativeN/A
lower-*.f6422.7
lift-*.f64N/A
*-commutativeN/A
lower-*.f6422.7
lift-fma.f64N/A
*-commutativeN/A
lower-fma.f6422.7
lift-/.f64N/A
lift-*.f64N/A
associate-*l/N/A
lift-/.f64N/A
lower-*.f6428.2
Applied rewrites28.2%
lift-*.f64N/A
*-commutativeN/A
lift-*.f64N/A
associate-*r*N/A
lower-*.f64N/A
Applied rewrites33.0%
Taylor expanded in t around 0
lower-*.f64N/A
lower-/.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower-fma.f64N/A
lower-/.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower--.f6436.0
Applied rewrites36.0%
l_m = (fabs.f64 l)
(FPCore (n U t l_m Om U*)
:precision binary64
(let* ((t_1 (/ (* l_m l_m) Om))
(t_2 (fma -2.0 t_1 t))
(t_3 (* (* 2.0 n) U))
(t_4
(sqrt
(*
t_3
(- (- t (* 2.0 t_1)) (* (* n (pow (/ l_m Om) 2.0)) (- U U*)))))))
(if (<= t_4 2e-144)
(sqrt (* (* (* t_2 n) U) 2.0))
(if (<= t_4 1e+154)
(sqrt (* t_3 t_2))
(sqrt (* (* (* (* l_m (* n (/ l_m Om))) U) -2.0) 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 = (l_m * l_m) / Om;
double t_2 = fma(-2.0, t_1, t);
double t_3 = (2.0 * n) * U;
double t_4 = sqrt((t_3 * ((t - (2.0 * t_1)) - ((n * pow((l_m / Om), 2.0)) * (U - U_42_)))));
double tmp;
if (t_4 <= 2e-144) {
tmp = sqrt((((t_2 * n) * U) * 2.0));
} else if (t_4 <= 1e+154) {
tmp = sqrt((t_3 * t_2));
} else {
tmp = sqrt(((((l_m * (n * (l_m / Om))) * U) * -2.0) * 2.0));
}
return tmp;
}
l_m = abs(l) function code(n, U, t, l_m, Om, U_42_) t_1 = Float64(Float64(l_m * l_m) / Om) t_2 = fma(-2.0, t_1, t) t_3 = Float64(Float64(2.0 * n) * U) t_4 = sqrt(Float64(t_3 * Float64(Float64(t - Float64(2.0 * t_1)) - Float64(Float64(n * (Float64(l_m / Om) ^ 2.0)) * Float64(U - U_42_))))) tmp = 0.0 if (t_4 <= 2e-144) tmp = sqrt(Float64(Float64(Float64(t_2 * n) * U) * 2.0)); elseif (t_4 <= 1e+154) tmp = sqrt(Float64(t_3 * t_2)); else tmp = sqrt(Float64(Float64(Float64(Float64(l_m * Float64(n * Float64(l_m / Om))) * U) * -2.0) * 2.0)); end return tmp end
l_m = N[Abs[l], $MachinePrecision]
code[n_, U_, t_, l$95$m_, Om_, U$42$_] := Block[{t$95$1 = N[(N[(l$95$m * l$95$m), $MachinePrecision] / Om), $MachinePrecision]}, Block[{t$95$2 = N[(-2.0 * t$95$1 + t), $MachinePrecision]}, Block[{t$95$3 = N[(N[(2.0 * n), $MachinePrecision] * U), $MachinePrecision]}, Block[{t$95$4 = N[Sqrt[N[(t$95$3 * N[(N[(t - N[(2.0 * t$95$1), $MachinePrecision]), $MachinePrecision] - N[(N[(n * N[Power[N[(l$95$m / Om), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision] * N[(U - U$42$), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]}, If[LessEqual[t$95$4, 2e-144], N[Sqrt[N[(N[(N[(t$95$2 * n), $MachinePrecision] * U), $MachinePrecision] * 2.0), $MachinePrecision]], $MachinePrecision], If[LessEqual[t$95$4, 1e+154], N[Sqrt[N[(t$95$3 * t$95$2), $MachinePrecision]], $MachinePrecision], N[Sqrt[N[(N[(N[(N[(l$95$m * N[(n * N[(l$95$m / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * U), $MachinePrecision] * -2.0), $MachinePrecision] * 2.0), $MachinePrecision]], $MachinePrecision]]]]]]]
\begin{array}{l}
l_m = \left|\ell\right|
\\
\begin{array}{l}
t_1 := \frac{l\_m \cdot l\_m}{Om}\\
t_2 := \mathsf{fma}\left(-2, t\_1, t\right)\\
t_3 := \left(2 \cdot n\right) \cdot U\\
t_4 := \sqrt{t\_3 \cdot \left(\left(t - 2 \cdot t\_1\right) - \left(n \cdot {\left(\frac{l\_m}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)}\\
\mathbf{if}\;t\_4 \leq 2 \cdot 10^{-144}:\\
\;\;\;\;\sqrt{\left(\left(t\_2 \cdot n\right) \cdot U\right) \cdot 2}\\
\mathbf{elif}\;t\_4 \leq 10^{+154}:\\
\;\;\;\;\sqrt{t\_3 \cdot t\_2}\\
\mathbf{else}:\\
\;\;\;\;\sqrt{\left(\left(\left(l\_m \cdot \left(n \cdot \frac{l\_m}{Om}\right)\right) \cdot U\right) \cdot -2\right) \cdot 2}\\
\end{array}
\end{array}
if (sqrt.f64 (*.f64 (*.f64 (*.f64 #s(literal 2 binary64) n) U) (-.f64 (-.f64 t (*.f64 #s(literal 2 binary64) (/.f64 (*.f64 l l) Om))) (*.f64 (*.f64 n (pow.f64 (/.f64 l Om) #s(literal 2 binary64))) (-.f64 U U*))))) < 1.9999999999999999e-144Initial program 14.0%
Taylor expanded in n around 0
*-commutativeN/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f64N/A
cancel-sign-sub-invN/A
metadata-evalN/A
+-commutativeN/A
lower-fma.f64N/A
lower-/.f64N/A
unpow2N/A
lower-*.f6437.2
Applied rewrites37.2%
if 1.9999999999999999e-144 < (sqrt.f64 (*.f64 (*.f64 (*.f64 #s(literal 2 binary64) n) U) (-.f64 (-.f64 t (*.f64 #s(literal 2 binary64) (/.f64 (*.f64 l l) Om))) (*.f64 (*.f64 n (pow.f64 (/.f64 l Om) #s(literal 2 binary64))) (-.f64 U U*))))) < 1.00000000000000004e154Initial program 96.9%
Taylor expanded in n around 0
cancel-sign-sub-invN/A
metadata-evalN/A
+-commutativeN/A
lower-fma.f64N/A
lower-/.f64N/A
unpow2N/A
lower-*.f6488.8
Applied rewrites88.8%
if 1.00000000000000004e154 < (sqrt.f64 (*.f64 (*.f64 (*.f64 #s(literal 2 binary64) n) U) (-.f64 (-.f64 t (*.f64 #s(literal 2 binary64) (/.f64 (*.f64 l l) Om))) (*.f64 (*.f64 n (pow.f64 (/.f64 l Om) #s(literal 2 binary64))) (-.f64 U U*))))) Initial program 20.8%
Taylor expanded in n around 0
*-commutativeN/A
lower-*.f64N/A
lower-sqrt.f64N/A
lower-sqrt.f64N/A
*-commutativeN/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f64N/A
cancel-sign-sub-invN/A
metadata-evalN/A
+-commutativeN/A
lower-fma.f64N/A
lower-/.f64N/A
unpow2N/A
lower-*.f6418.4
Applied rewrites18.4%
Taylor expanded in t around 0
Applied rewrites15.0%
Applied rewrites25.0%
l_m = (fabs.f64 l)
(FPCore (n U t l_m Om U*)
:precision binary64
(let* ((t_1 (/ (* l_m l_m) Om))
(t_2 (* (* 2.0 n) U))
(t_3
(*
t_2
(- (- t (* 2.0 t_1)) (* (* n (pow (/ l_m Om) 2.0)) (- U U*))))))
(if (<= t_3 1e-150)
(* (sqrt 2.0) (sqrt (* (* U (fma (* (/ l_m Om) l_m) -2.0 t)) n)))
(if (<= t_3 5e+307)
(sqrt (* t_2 (fma -2.0 t_1 t)))
(* (sqrt (* U* U)) (/ (* (* (sqrt 2.0) n) l_m) Om))))))l_m = fabs(l);
double code(double n, double U, double t, double l_m, double Om, double U_42_) {
double t_1 = (l_m * l_m) / Om;
double t_2 = (2.0 * n) * U;
double t_3 = t_2 * ((t - (2.0 * t_1)) - ((n * pow((l_m / Om), 2.0)) * (U - U_42_)));
double tmp;
if (t_3 <= 1e-150) {
tmp = sqrt(2.0) * sqrt(((U * fma(((l_m / Om) * l_m), -2.0, t)) * n));
} else if (t_3 <= 5e+307) {
tmp = sqrt((t_2 * fma(-2.0, t_1, t)));
} else {
tmp = sqrt((U_42_ * U)) * (((sqrt(2.0) * n) * l_m) / Om);
}
return tmp;
}
l_m = abs(l) function code(n, U, t, l_m, Om, U_42_) t_1 = Float64(Float64(l_m * l_m) / Om) t_2 = Float64(Float64(2.0 * n) * U) t_3 = Float64(t_2 * Float64(Float64(t - Float64(2.0 * t_1)) - Float64(Float64(n * (Float64(l_m / Om) ^ 2.0)) * Float64(U - U_42_)))) tmp = 0.0 if (t_3 <= 1e-150) tmp = Float64(sqrt(2.0) * sqrt(Float64(Float64(U * fma(Float64(Float64(l_m / Om) * l_m), -2.0, t)) * n))); elseif (t_3 <= 5e+307) tmp = sqrt(Float64(t_2 * fma(-2.0, t_1, t))); else tmp = Float64(sqrt(Float64(U_42_ * U)) * Float64(Float64(Float64(sqrt(2.0) * n) * l_m) / Om)); end return tmp end
l_m = N[Abs[l], $MachinePrecision]
code[n_, U_, t_, l$95$m_, Om_, U$42$_] := Block[{t$95$1 = N[(N[(l$95$m * l$95$m), $MachinePrecision] / Om), $MachinePrecision]}, Block[{t$95$2 = N[(N[(2.0 * n), $MachinePrecision] * U), $MachinePrecision]}, Block[{t$95$3 = N[(t$95$2 * N[(N[(t - N[(2.0 * t$95$1), $MachinePrecision]), $MachinePrecision] - N[(N[(n * N[Power[N[(l$95$m / Om), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision] * N[(U - U$42$), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$3, 1e-150], N[(N[Sqrt[2.0], $MachinePrecision] * N[Sqrt[N[(N[(U * N[(N[(N[(l$95$m / Om), $MachinePrecision] * l$95$m), $MachinePrecision] * -2.0 + t), $MachinePrecision]), $MachinePrecision] * n), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$3, 5e+307], N[Sqrt[N[(t$95$2 * N[(-2.0 * t$95$1 + t), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], N[(N[Sqrt[N[(U$42$ * U), $MachinePrecision]], $MachinePrecision] * N[(N[(N[(N[Sqrt[2.0], $MachinePrecision] * n), $MachinePrecision] * l$95$m), $MachinePrecision] / Om), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
l_m = \left|\ell\right|
\\
\begin{array}{l}
t_1 := \frac{l\_m \cdot l\_m}{Om}\\
t_2 := \left(2 \cdot n\right) \cdot U\\
t_3 := t\_2 \cdot \left(\left(t - 2 \cdot t\_1\right) - \left(n \cdot {\left(\frac{l\_m}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)\\
\mathbf{if}\;t\_3 \leq 10^{-150}:\\
\;\;\;\;\sqrt{2} \cdot \sqrt{\left(U \cdot \mathsf{fma}\left(\frac{l\_m}{Om} \cdot l\_m, -2, t\right)\right) \cdot n}\\
\mathbf{elif}\;t\_3 \leq 5 \cdot 10^{+307}:\\
\;\;\;\;\sqrt{t\_2 \cdot \mathsf{fma}\left(-2, t\_1, t\right)}\\
\mathbf{else}:\\
\;\;\;\;\sqrt{U* \cdot U} \cdot \frac{\left(\sqrt{2} \cdot n\right) \cdot l\_m}{Om}\\
\end{array}
\end{array}
if (*.f64 (*.f64 (*.f64 #s(literal 2 binary64) n) U) (-.f64 (-.f64 t (*.f64 #s(literal 2 binary64) (/.f64 (*.f64 l l) Om))) (*.f64 (*.f64 n (pow.f64 (/.f64 l Om) #s(literal 2 binary64))) (-.f64 U U*)))) < 1.00000000000000001e-150Initial program 36.7%
Taylor expanded in n around 0
*-commutativeN/A
lower-*.f64N/A
lower-sqrt.f64N/A
lower-sqrt.f64N/A
*-commutativeN/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f64N/A
cancel-sign-sub-invN/A
metadata-evalN/A
+-commutativeN/A
lower-fma.f64N/A
lower-/.f64N/A
unpow2N/A
lower-*.f6447.2
Applied rewrites47.2%
Applied rewrites53.1%
if 1.00000000000000001e-150 < (*.f64 (*.f64 (*.f64 #s(literal 2 binary64) n) U) (-.f64 (-.f64 t (*.f64 #s(literal 2 binary64) (/.f64 (*.f64 l l) Om))) (*.f64 (*.f64 n (pow.f64 (/.f64 l Om) #s(literal 2 binary64))) (-.f64 U U*)))) < 5e307Initial program 98.7%
Taylor expanded in n around 0
cancel-sign-sub-invN/A
metadata-evalN/A
+-commutativeN/A
lower-fma.f64N/A
lower-/.f64N/A
unpow2N/A
lower-*.f6491.2
Applied rewrites91.2%
if 5e307 < (*.f64 (*.f64 (*.f64 #s(literal 2 binary64) n) U) (-.f64 (-.f64 t (*.f64 #s(literal 2 binary64) (/.f64 (*.f64 l l) Om))) (*.f64 (*.f64 n (pow.f64 (/.f64 l Om) #s(literal 2 binary64))) (-.f64 U U*)))) Initial program 21.4%
Taylor expanded in U* around inf
*-commutativeN/A
lower-*.f64N/A
lower-sqrt.f64N/A
*-commutativeN/A
lower-*.f64N/A
lower-/.f64N/A
*-commutativeN/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f64N/A
lower-sqrt.f6419.4
Applied rewrites19.4%
l_m = (fabs.f64 l)
(FPCore (n U t l_m Om U*)
:precision binary64
(let* ((t_1 (/ (* l_m l_m) Om))
(t_2 (fma -2.0 t_1 t))
(t_3 (* (* 2.0 n) U))
(t_4
(*
t_3
(- (- t (* 2.0 t_1)) (* (* n (pow (/ l_m Om) 2.0)) (- U U*))))))
(if (<= t_4 2e-288)
(sqrt (* (* (* t_2 n) U) 2.0))
(if (<= t_4 5e+307)
(sqrt (* t_3 t_2))
(* (sqrt (* U* U)) (/ (* (* (sqrt 2.0) n) l_m) Om))))))l_m = fabs(l);
double code(double n, double U, double t, double l_m, double Om, double U_42_) {
double t_1 = (l_m * l_m) / Om;
double t_2 = fma(-2.0, t_1, t);
double t_3 = (2.0 * n) * U;
double t_4 = t_3 * ((t - (2.0 * t_1)) - ((n * pow((l_m / Om), 2.0)) * (U - U_42_)));
double tmp;
if (t_4 <= 2e-288) {
tmp = sqrt((((t_2 * n) * U) * 2.0));
} else if (t_4 <= 5e+307) {
tmp = sqrt((t_3 * t_2));
} else {
tmp = sqrt((U_42_ * U)) * (((sqrt(2.0) * n) * l_m) / Om);
}
return tmp;
}
l_m = abs(l) function code(n, U, t, l_m, Om, U_42_) t_1 = Float64(Float64(l_m * l_m) / Om) t_2 = fma(-2.0, t_1, t) t_3 = Float64(Float64(2.0 * n) * U) t_4 = Float64(t_3 * Float64(Float64(t - Float64(2.0 * t_1)) - Float64(Float64(n * (Float64(l_m / Om) ^ 2.0)) * Float64(U - U_42_)))) tmp = 0.0 if (t_4 <= 2e-288) tmp = sqrt(Float64(Float64(Float64(t_2 * n) * U) * 2.0)); elseif (t_4 <= 5e+307) tmp = sqrt(Float64(t_3 * t_2)); else tmp = Float64(sqrt(Float64(U_42_ * U)) * Float64(Float64(Float64(sqrt(2.0) * n) * l_m) / Om)); end return tmp end
l_m = N[Abs[l], $MachinePrecision]
code[n_, U_, t_, l$95$m_, Om_, U$42$_] := Block[{t$95$1 = N[(N[(l$95$m * l$95$m), $MachinePrecision] / Om), $MachinePrecision]}, Block[{t$95$2 = N[(-2.0 * t$95$1 + t), $MachinePrecision]}, Block[{t$95$3 = N[(N[(2.0 * n), $MachinePrecision] * U), $MachinePrecision]}, Block[{t$95$4 = N[(t$95$3 * N[(N[(t - N[(2.0 * t$95$1), $MachinePrecision]), $MachinePrecision] - N[(N[(n * N[Power[N[(l$95$m / Om), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision] * N[(U - U$42$), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$4, 2e-288], N[Sqrt[N[(N[(N[(t$95$2 * n), $MachinePrecision] * U), $MachinePrecision] * 2.0), $MachinePrecision]], $MachinePrecision], If[LessEqual[t$95$4, 5e+307], N[Sqrt[N[(t$95$3 * t$95$2), $MachinePrecision]], $MachinePrecision], N[(N[Sqrt[N[(U$42$ * U), $MachinePrecision]], $MachinePrecision] * N[(N[(N[(N[Sqrt[2.0], $MachinePrecision] * n), $MachinePrecision] * l$95$m), $MachinePrecision] / Om), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
l_m = \left|\ell\right|
\\
\begin{array}{l}
t_1 := \frac{l\_m \cdot l\_m}{Om}\\
t_2 := \mathsf{fma}\left(-2, t\_1, t\right)\\
t_3 := \left(2 \cdot n\right) \cdot U\\
t_4 := t\_3 \cdot \left(\left(t - 2 \cdot t\_1\right) - \left(n \cdot {\left(\frac{l\_m}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)\\
\mathbf{if}\;t\_4 \leq 2 \cdot 10^{-288}:\\
\;\;\;\;\sqrt{\left(\left(t\_2 \cdot n\right) \cdot U\right) \cdot 2}\\
\mathbf{elif}\;t\_4 \leq 5 \cdot 10^{+307}:\\
\;\;\;\;\sqrt{t\_3 \cdot t\_2}\\
\mathbf{else}:\\
\;\;\;\;\sqrt{U* \cdot U} \cdot \frac{\left(\sqrt{2} \cdot n\right) \cdot l\_m}{Om}\\
\end{array}
\end{array}
if (*.f64 (*.f64 (*.f64 #s(literal 2 binary64) n) U) (-.f64 (-.f64 t (*.f64 #s(literal 2 binary64) (/.f64 (*.f64 l l) Om))) (*.f64 (*.f64 n (pow.f64 (/.f64 l Om) #s(literal 2 binary64))) (-.f64 U U*)))) < 2.00000000000000012e-288Initial program 12.9%
Taylor expanded in n around 0
*-commutativeN/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f64N/A
cancel-sign-sub-invN/A
metadata-evalN/A
+-commutativeN/A
lower-fma.f64N/A
lower-/.f64N/A
unpow2N/A
lower-*.f6439.6
Applied rewrites39.6%
if 2.00000000000000012e-288 < (*.f64 (*.f64 (*.f64 #s(literal 2 binary64) n) U) (-.f64 (-.f64 t (*.f64 #s(literal 2 binary64) (/.f64 (*.f64 l l) Om))) (*.f64 (*.f64 n (pow.f64 (/.f64 l Om) #s(literal 2 binary64))) (-.f64 U U*)))) < 5e307Initial program 96.9%
Taylor expanded in n around 0
cancel-sign-sub-invN/A
metadata-evalN/A
+-commutativeN/A
lower-fma.f64N/A
lower-/.f64N/A
unpow2N/A
lower-*.f6488.8
Applied rewrites88.8%
if 5e307 < (*.f64 (*.f64 (*.f64 #s(literal 2 binary64) n) U) (-.f64 (-.f64 t (*.f64 #s(literal 2 binary64) (/.f64 (*.f64 l l) Om))) (*.f64 (*.f64 n (pow.f64 (/.f64 l Om) #s(literal 2 binary64))) (-.f64 U U*)))) Initial program 21.4%
Taylor expanded in U* around inf
*-commutativeN/A
lower-*.f64N/A
lower-sqrt.f64N/A
*-commutativeN/A
lower-*.f64N/A
lower-/.f64N/A
*-commutativeN/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f64N/A
lower-sqrt.f6419.4
Applied rewrites19.4%
l_m = (fabs.f64 l)
(FPCore (n U t l_m Om U*)
:precision binary64
(if (<=
(sqrt
(*
(* (* 2.0 n) U)
(-
(- t (* 2.0 (/ (* l_m l_m) Om)))
(* (* n (pow (/ l_m Om) 2.0)) (- U U*)))))
1e-20)
(sqrt (* n (* t (* 2.0 U))))
(sqrt (* (* (* n U) t) 2.0))))l_m = fabs(l);
double code(double n, double U, double t, double l_m, double Om, double U_42_) {
double tmp;
if (sqrt((((2.0 * n) * U) * ((t - (2.0 * ((l_m * l_m) / Om))) - ((n * pow((l_m / Om), 2.0)) * (U - U_42_))))) <= 1e-20) {
tmp = sqrt((n * (t * (2.0 * U))));
} else {
tmp = sqrt((((n * U) * t) * 2.0));
}
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 (sqrt((((2.0d0 * n) * u) * ((t - (2.0d0 * ((l_m * l_m) / om))) - ((n * ((l_m / om) ** 2.0d0)) * (u - u_42))))) <= 1d-20) then
tmp = sqrt((n * (t * (2.0d0 * u))))
else
tmp = sqrt((((n * u) * t) * 2.0d0))
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 (Math.sqrt((((2.0 * n) * U) * ((t - (2.0 * ((l_m * l_m) / Om))) - ((n * Math.pow((l_m / Om), 2.0)) * (U - U_42_))))) <= 1e-20) {
tmp = Math.sqrt((n * (t * (2.0 * U))));
} else {
tmp = Math.sqrt((((n * U) * t) * 2.0));
}
return tmp;
}
l_m = math.fabs(l) def code(n, U, t, l_m, Om, U_42_): tmp = 0 if math.sqrt((((2.0 * n) * U) * ((t - (2.0 * ((l_m * l_m) / Om))) - ((n * math.pow((l_m / Om), 2.0)) * (U - U_42_))))) <= 1e-20: tmp = math.sqrt((n * (t * (2.0 * U)))) else: tmp = math.sqrt((((n * U) * t) * 2.0)) return tmp
l_m = abs(l) function code(n, U, t, l_m, Om, U_42_) tmp = 0.0 if (sqrt(Float64(Float64(Float64(2.0 * n) * U) * Float64(Float64(t - Float64(2.0 * Float64(Float64(l_m * l_m) / Om))) - Float64(Float64(n * (Float64(l_m / Om) ^ 2.0)) * Float64(U - U_42_))))) <= 1e-20) tmp = sqrt(Float64(n * Float64(t * Float64(2.0 * U)))); else tmp = sqrt(Float64(Float64(Float64(n * U) * t) * 2.0)); end return tmp end
l_m = abs(l); function tmp_2 = code(n, U, t, l_m, Om, U_42_) tmp = 0.0; if (sqrt((((2.0 * n) * U) * ((t - (2.0 * ((l_m * l_m) / Om))) - ((n * ((l_m / Om) ^ 2.0)) * (U - U_42_))))) <= 1e-20) tmp = sqrt((n * (t * (2.0 * U)))); else tmp = sqrt((((n * U) * t) * 2.0)); end tmp_2 = tmp; end
l_m = N[Abs[l], $MachinePrecision] code[n_, U_, t_, l$95$m_, Om_, U$42$_] := If[LessEqual[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[(N[(n * N[Power[N[(l$95$m / Om), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision] * N[(U - U$42$), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], 1e-20], N[Sqrt[N[(n * N[(t * N[(2.0 * U), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], N[Sqrt[N[(N[(N[(n * U), $MachinePrecision] * t), $MachinePrecision] * 2.0), $MachinePrecision]], $MachinePrecision]]
\begin{array}{l}
l_m = \left|\ell\right|
\\
\begin{array}{l}
\mathbf{if}\;\sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(t - 2 \cdot \frac{l\_m \cdot l\_m}{Om}\right) - \left(n \cdot {\left(\frac{l\_m}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \leq 10^{-20}:\\
\;\;\;\;\sqrt{n \cdot \left(t \cdot \left(2 \cdot U\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;\sqrt{\left(\left(n \cdot U\right) \cdot t\right) \cdot 2}\\
\end{array}
\end{array}
if (sqrt.f64 (*.f64 (*.f64 (*.f64 #s(literal 2 binary64) n) U) (-.f64 (-.f64 t (*.f64 #s(literal 2 binary64) (/.f64 (*.f64 l l) Om))) (*.f64 (*.f64 n (pow.f64 (/.f64 l Om) #s(literal 2 binary64))) (-.f64 U U*))))) < 9.99999999999999945e-21Initial program 61.7%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f64N/A
lower-*.f6454.3
Applied rewrites54.3%
Applied rewrites58.3%
if 9.99999999999999945e-21 < (sqrt.f64 (*.f64 (*.f64 (*.f64 #s(literal 2 binary64) n) U) (-.f64 (-.f64 t (*.f64 #s(literal 2 binary64) (/.f64 (*.f64 l l) Om))) (*.f64 (*.f64 n (pow.f64 (/.f64 l Om) #s(literal 2 binary64))) (-.f64 U U*))))) Initial program 50.3%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f64N/A
lower-*.f6436.4
Applied rewrites36.4%
Applied rewrites37.5%
l_m = (fabs.f64 l)
(FPCore (n U t l_m Om U*)
:precision binary64
(if (<= l_m 2e-115)
(sqrt (* (* (fma (/ l_m Om) (/ (* U* (* l_m n)) Om) t) (* 2.0 n)) U))
(if (<= l_m 1.1e+148)
(sqrt
(*
(* (fma (/ l_m Om) (* l_m (fma n (/ (- U* U) Om) -2.0)) t) (* 2.0 n))
U))
(sqrt
(*
(* -2.0 U)
(* (* (* l_m n) l_m) (fma (/ n Om) (/ (- U U*) Om) (/ 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 <= 2e-115) {
tmp = sqrt(((fma((l_m / Om), ((U_42_ * (l_m * n)) / Om), t) * (2.0 * n)) * U));
} else if (l_m <= 1.1e+148) {
tmp = sqrt(((fma((l_m / Om), (l_m * fma(n, ((U_42_ - U) / Om), -2.0)), t) * (2.0 * n)) * U));
} else {
tmp = sqrt(((-2.0 * U) * (((l_m * n) * l_m) * fma((n / Om), ((U - U_42_) / Om), (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 <= 2e-115) tmp = sqrt(Float64(Float64(fma(Float64(l_m / Om), Float64(Float64(U_42_ * Float64(l_m * n)) / Om), t) * Float64(2.0 * n)) * U)); elseif (l_m <= 1.1e+148) tmp = sqrt(Float64(Float64(fma(Float64(l_m / Om), Float64(l_m * fma(n, Float64(Float64(U_42_ - U) / Om), -2.0)), t) * Float64(2.0 * n)) * U)); else tmp = sqrt(Float64(Float64(-2.0 * U) * Float64(Float64(Float64(l_m * n) * l_m) * fma(Float64(n / Om), Float64(Float64(U - U_42_) / Om), Float64(2.0 / Om))))); end return tmp end
l_m = N[Abs[l], $MachinePrecision] code[n_, U_, t_, l$95$m_, Om_, U$42$_] := If[LessEqual[l$95$m, 2e-115], N[Sqrt[N[(N[(N[(N[(l$95$m / Om), $MachinePrecision] * N[(N[(U$42$ * N[(l$95$m * n), $MachinePrecision]), $MachinePrecision] / Om), $MachinePrecision] + t), $MachinePrecision] * N[(2.0 * n), $MachinePrecision]), $MachinePrecision] * U), $MachinePrecision]], $MachinePrecision], If[LessEqual[l$95$m, 1.1e+148], N[Sqrt[N[(N[(N[(N[(l$95$m / Om), $MachinePrecision] * N[(l$95$m * N[(n * N[(N[(U$42$ - U), $MachinePrecision] / Om), $MachinePrecision] + -2.0), $MachinePrecision]), $MachinePrecision] + t), $MachinePrecision] * N[(2.0 * n), $MachinePrecision]), $MachinePrecision] * U), $MachinePrecision]], $MachinePrecision], N[Sqrt[N[(N[(-2.0 * U), $MachinePrecision] * N[(N[(N[(l$95$m * n), $MachinePrecision] * l$95$m), $MachinePrecision] * N[(N[(n / Om), $MachinePrecision] * N[(N[(U - U$42$), $MachinePrecision] / Om), $MachinePrecision] + N[(2.0 / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]]]
\begin{array}{l}
l_m = \left|\ell\right|
\\
\begin{array}{l}
\mathbf{if}\;l\_m \leq 2 \cdot 10^{-115}:\\
\;\;\;\;\sqrt{\left(\mathsf{fma}\left(\frac{l\_m}{Om}, \frac{U* \cdot \left(l\_m \cdot n\right)}{Om}, t\right) \cdot \left(2 \cdot n\right)\right) \cdot U}\\
\mathbf{elif}\;l\_m \leq 1.1 \cdot 10^{+148}:\\
\;\;\;\;\sqrt{\left(\mathsf{fma}\left(\frac{l\_m}{Om}, l\_m \cdot \mathsf{fma}\left(n, \frac{U* - U}{Om}, -2\right), t\right) \cdot \left(2 \cdot n\right)\right) \cdot U}\\
\mathbf{else}:\\
\;\;\;\;\sqrt{\left(-2 \cdot U\right) \cdot \left(\left(\left(l\_m \cdot n\right) \cdot l\_m\right) \cdot \mathsf{fma}\left(\frac{n}{Om}, \frac{U - U*}{Om}, \frac{2}{Om}\right)\right)}\\
\end{array}
\end{array}
if l < 2.0000000000000001e-115Initial program 58.7%
lift--.f64N/A
sub-negN/A
+-commutativeN/A
lift-*.f64N/A
*-commutativeN/A
distribute-lft-neg-inN/A
lift-*.f64N/A
lift-pow.f64N/A
unpow2N/A
associate-*r*N/A
associate-*r*N/A
lower-fma.f64N/A
lower-*.f64N/A
lower-neg.f64N/A
lower-*.f6461.3
lift--.f64N/A
sub-negN/A
Applied rewrites61.3%
lift-fma.f64N/A
*-commutativeN/A
lower-fma.f6461.3
lift-*.f64N/A
*-commutativeN/A
lower-*.f6461.3
lift-*.f64N/A
*-commutativeN/A
lower-*.f6461.3
lift-fma.f64N/A
*-commutativeN/A
lower-fma.f6461.3
lift-/.f64N/A
lift-*.f64N/A
associate-*l/N/A
lift-/.f64N/A
lower-*.f6462.4
Applied rewrites62.4%
lift-*.f64N/A
*-commutativeN/A
lift-*.f64N/A
associate-*r*N/A
lower-*.f64N/A
Applied rewrites59.9%
Taylor expanded in U* around inf
lower-/.f64N/A
lower-*.f64N/A
lower-*.f6457.8
Applied rewrites57.8%
if 2.0000000000000001e-115 < l < 1.0999999999999999e148Initial program 54.5%
lift--.f64N/A
sub-negN/A
+-commutativeN/A
lift-*.f64N/A
*-commutativeN/A
distribute-lft-neg-inN/A
lift-*.f64N/A
lift-pow.f64N/A
unpow2N/A
associate-*r*N/A
associate-*r*N/A
lower-fma.f64N/A
lower-*.f64N/A
lower-neg.f64N/A
lower-*.f6454.8
lift--.f64N/A
sub-negN/A
Applied rewrites54.8%
lift-fma.f64N/A
*-commutativeN/A
lower-fma.f6454.8
lift-*.f64N/A
*-commutativeN/A
lower-*.f6454.8
lift-*.f64N/A
*-commutativeN/A
lower-*.f6454.8
lift-fma.f64N/A
*-commutativeN/A
lower-fma.f6454.8
lift-/.f64N/A
lift-*.f64N/A
associate-*l/N/A
lift-/.f64N/A
lower-*.f6454.8
Applied rewrites54.8%
lift-*.f64N/A
*-commutativeN/A
lift-*.f64N/A
associate-*r*N/A
lower-*.f64N/A
Applied rewrites56.3%
Taylor expanded in l around 0
lower-*.f64N/A
sub-negN/A
associate-/l*N/A
metadata-evalN/A
lower-fma.f64N/A
lower-/.f64N/A
lower--.f6458.6
Applied rewrites58.6%
if 1.0999999999999999e148 < l Initial program 17.7%
Taylor expanded in l around inf
associate-*r*N/A
lower-*.f64N/A
lower-*.f64N/A
associate-*r*N/A
lower-*.f64N/A
lower-*.f64N/A
unpow2N/A
lower-*.f64N/A
+-commutativeN/A
unpow2N/A
times-fracN/A
lower-fma.f64N/A
lower-/.f64N/A
lower-/.f64N/A
lower--.f64N/A
associate-*r/N/A
metadata-evalN/A
lower-/.f6427.8
Applied rewrites27.8%
Applied rewrites50.9%
l_m = (fabs.f64 l)
(FPCore (n U t l_m Om U*)
:precision binary64
(if (<= n 5.2e-289)
(sqrt
(*
(*
(fma (/ l_m Om) (fma (* (- U* U) n) (/ l_m Om) (* -2.0 l_m)) t)
(* 2.0 n))
U))
(*
(sqrt
(* (fma (/ l_m Om) (fma (- U* U) (* n (/ l_m Om)) (* -2.0 l_m)) t) U))
(sqrt (* 2.0 n)))))l_m = fabs(l);
double code(double n, double U, double t, double l_m, double Om, double U_42_) {
double tmp;
if (n <= 5.2e-289) {
tmp = sqrt(((fma((l_m / Om), fma(((U_42_ - U) * n), (l_m / Om), (-2.0 * l_m)), t) * (2.0 * n)) * U));
} else {
tmp = sqrt((fma((l_m / Om), fma((U_42_ - U), (n * (l_m / Om)), (-2.0 * l_m)), t) * U)) * sqrt((2.0 * n));
}
return tmp;
}
l_m = abs(l) function code(n, U, t, l_m, Om, U_42_) tmp = 0.0 if (n <= 5.2e-289) tmp = sqrt(Float64(Float64(fma(Float64(l_m / Om), fma(Float64(Float64(U_42_ - U) * n), Float64(l_m / Om), Float64(-2.0 * l_m)), t) * Float64(2.0 * n)) * U)); else tmp = Float64(sqrt(Float64(fma(Float64(l_m / Om), fma(Float64(U_42_ - U), Float64(n * Float64(l_m / Om)), Float64(-2.0 * l_m)), t) * U)) * sqrt(Float64(2.0 * n))); end return tmp end
l_m = N[Abs[l], $MachinePrecision] code[n_, U_, t_, l$95$m_, Om_, U$42$_] := If[LessEqual[n, 5.2e-289], N[Sqrt[N[(N[(N[(N[(l$95$m / Om), $MachinePrecision] * N[(N[(N[(U$42$ - U), $MachinePrecision] * n), $MachinePrecision] * N[(l$95$m / Om), $MachinePrecision] + N[(-2.0 * l$95$m), $MachinePrecision]), $MachinePrecision] + t), $MachinePrecision] * N[(2.0 * n), $MachinePrecision]), $MachinePrecision] * U), $MachinePrecision]], $MachinePrecision], N[(N[Sqrt[N[(N[(N[(l$95$m / Om), $MachinePrecision] * N[(N[(U$42$ - U), $MachinePrecision] * N[(n * N[(l$95$m / Om), $MachinePrecision]), $MachinePrecision] + N[(-2.0 * l$95$m), $MachinePrecision]), $MachinePrecision] + t), $MachinePrecision] * U), $MachinePrecision]], $MachinePrecision] * N[Sqrt[N[(2.0 * n), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
l_m = \left|\ell\right|
\\
\begin{array}{l}
\mathbf{if}\;n \leq 5.2 \cdot 10^{-289}:\\
\;\;\;\;\sqrt{\left(\mathsf{fma}\left(\frac{l\_m}{Om}, \mathsf{fma}\left(\left(U* - U\right) \cdot n, \frac{l\_m}{Om}, -2 \cdot l\_m\right), t\right) \cdot \left(2 \cdot n\right)\right) \cdot U}\\
\mathbf{else}:\\
\;\;\;\;\sqrt{\mathsf{fma}\left(\frac{l\_m}{Om}, \mathsf{fma}\left(U* - U, n \cdot \frac{l\_m}{Om}, -2 \cdot l\_m\right), t\right) \cdot U} \cdot \sqrt{2 \cdot n}\\
\end{array}
\end{array}
if n < 5.1999999999999998e-289Initial program 58.5%
lift--.f64N/A
sub-negN/A
+-commutativeN/A
lift-*.f64N/A
*-commutativeN/A
distribute-lft-neg-inN/A
lift-*.f64N/A
lift-pow.f64N/A
unpow2N/A
associate-*r*N/A
associate-*r*N/A
lower-fma.f64N/A
lower-*.f64N/A
lower-neg.f64N/A
lower-*.f6460.5
lift--.f64N/A
sub-negN/A
Applied rewrites60.5%
lift-fma.f64N/A
*-commutativeN/A
lower-fma.f6460.5
lift-*.f64N/A
*-commutativeN/A
lower-*.f6460.5
lift-*.f64N/A
*-commutativeN/A
lower-*.f6460.5
lift-fma.f64N/A
*-commutativeN/A
lower-fma.f6460.5
lift-/.f64N/A
lift-*.f64N/A
associate-*l/N/A
lift-/.f64N/A
lower-*.f6462.0
Applied rewrites62.0%
lift-*.f64N/A
*-commutativeN/A
lift-*.f64N/A
associate-*r*N/A
lower-*.f64N/A
Applied rewrites62.6%
if 5.1999999999999998e-289 < n Initial program 48.8%
lift--.f64N/A
sub-negN/A
+-commutativeN/A
lift-*.f64N/A
*-commutativeN/A
distribute-lft-neg-inN/A
lift-*.f64N/A
lift-pow.f64N/A
unpow2N/A
associate-*r*N/A
associate-*r*N/A
lower-fma.f64N/A
lower-*.f64N/A
lower-neg.f64N/A
lower-*.f6450.7
lift--.f64N/A
sub-negN/A
Applied rewrites50.7%
Taylor expanded in U around 0
mul-1-negN/A
sub-negN/A
lower--.f6450.7
Applied rewrites50.7%
lift-sqrt.f64N/A
pow1/2N/A
lift-*.f64N/A
lift-*.f64N/A
associate-*l*N/A
*-commutativeN/A
unpow-prod-downN/A
lower-*.f64N/A
Applied rewrites70.7%
l_m = (fabs.f64 l)
(FPCore (n U t l_m Om U*)
:precision binary64
(if (<= l_m 3.9e-106)
(sqrt (* (* (fma (/ l_m Om) (/ (* U* (* l_m n)) Om) t) (* 2.0 n)) U))
(sqrt
(*
(* (fma (/ l_m Om) (* l_m (fma n (/ (- U* U) Om) -2.0)) t) (* 2.0 n))
U))))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 <= 3.9e-106) {
tmp = sqrt(((fma((l_m / Om), ((U_42_ * (l_m * n)) / Om), t) * (2.0 * n)) * U));
} else {
tmp = sqrt(((fma((l_m / Om), (l_m * fma(n, ((U_42_ - U) / Om), -2.0)), t) * (2.0 * n)) * U));
}
return tmp;
}
l_m = abs(l) function code(n, U, t, l_m, Om, U_42_) tmp = 0.0 if (l_m <= 3.9e-106) tmp = sqrt(Float64(Float64(fma(Float64(l_m / Om), Float64(Float64(U_42_ * Float64(l_m * n)) / Om), t) * Float64(2.0 * n)) * U)); else tmp = sqrt(Float64(Float64(fma(Float64(l_m / Om), Float64(l_m * fma(n, Float64(Float64(U_42_ - U) / Om), -2.0)), t) * Float64(2.0 * n)) * U)); end return tmp end
l_m = N[Abs[l], $MachinePrecision] code[n_, U_, t_, l$95$m_, Om_, U$42$_] := If[LessEqual[l$95$m, 3.9e-106], N[Sqrt[N[(N[(N[(N[(l$95$m / Om), $MachinePrecision] * N[(N[(U$42$ * N[(l$95$m * n), $MachinePrecision]), $MachinePrecision] / Om), $MachinePrecision] + t), $MachinePrecision] * N[(2.0 * n), $MachinePrecision]), $MachinePrecision] * U), $MachinePrecision]], $MachinePrecision], N[Sqrt[N[(N[(N[(N[(l$95$m / Om), $MachinePrecision] * N[(l$95$m * N[(n * N[(N[(U$42$ - U), $MachinePrecision] / Om), $MachinePrecision] + -2.0), $MachinePrecision]), $MachinePrecision] + t), $MachinePrecision] * N[(2.0 * n), $MachinePrecision]), $MachinePrecision] * U), $MachinePrecision]], $MachinePrecision]]
\begin{array}{l}
l_m = \left|\ell\right|
\\
\begin{array}{l}
\mathbf{if}\;l\_m \leq 3.9 \cdot 10^{-106}:\\
\;\;\;\;\sqrt{\left(\mathsf{fma}\left(\frac{l\_m}{Om}, \frac{U* \cdot \left(l\_m \cdot n\right)}{Om}, t\right) \cdot \left(2 \cdot n\right)\right) \cdot U}\\
\mathbf{else}:\\
\;\;\;\;\sqrt{\left(\mathsf{fma}\left(\frac{l\_m}{Om}, l\_m \cdot \mathsf{fma}\left(n, \frac{U* - U}{Om}, -2\right), t\right) \cdot \left(2 \cdot n\right)\right) \cdot U}\\
\end{array}
\end{array}
if l < 3.9000000000000001e-106Initial program 58.4%
lift--.f64N/A
sub-negN/A
+-commutativeN/A
lift-*.f64N/A
*-commutativeN/A
distribute-lft-neg-inN/A
lift-*.f64N/A
lift-pow.f64N/A
unpow2N/A
associate-*r*N/A
associate-*r*N/A
lower-fma.f64N/A
lower-*.f64N/A
lower-neg.f64N/A
lower-*.f6461.0
lift--.f64N/A
sub-negN/A
Applied rewrites61.0%
lift-fma.f64N/A
*-commutativeN/A
lower-fma.f6461.0
lift-*.f64N/A
*-commutativeN/A
lower-*.f6461.0
lift-*.f64N/A
*-commutativeN/A
lower-*.f6461.0
lift-fma.f64N/A
*-commutativeN/A
lower-fma.f6461.0
lift-/.f64N/A
lift-*.f64N/A
associate-*l/N/A
lift-/.f64N/A
lower-*.f6462.1
Applied rewrites62.1%
lift-*.f64N/A
*-commutativeN/A
lift-*.f64N/A
associate-*r*N/A
lower-*.f64N/A
Applied rewrites60.1%
Taylor expanded in U* around inf
lower-/.f64N/A
lower-*.f64N/A
lower-*.f6458.0
Applied rewrites58.0%
if 3.9000000000000001e-106 < l Initial program 43.1%
lift--.f64N/A
sub-negN/A
+-commutativeN/A
lift-*.f64N/A
*-commutativeN/A
distribute-lft-neg-inN/A
lift-*.f64N/A
lift-pow.f64N/A
unpow2N/A
associate-*r*N/A
associate-*r*N/A
lower-fma.f64N/A
lower-*.f64N/A
lower-neg.f64N/A
lower-*.f6443.5
lift--.f64N/A
sub-negN/A
Applied rewrites43.5%
lift-fma.f64N/A
*-commutativeN/A
lower-fma.f6443.5
lift-*.f64N/A
*-commutativeN/A
lower-*.f6443.5
lift-*.f64N/A
*-commutativeN/A
lower-*.f6443.5
lift-fma.f64N/A
*-commutativeN/A
lower-fma.f6443.5
lift-/.f64N/A
lift-*.f64N/A
associate-*l/N/A
lift-/.f64N/A
lower-*.f6448.7
Applied rewrites48.7%
lift-*.f64N/A
*-commutativeN/A
lift-*.f64N/A
associate-*r*N/A
lower-*.f64N/A
Applied rewrites51.4%
Taylor expanded in l around 0
lower-*.f64N/A
sub-negN/A
associate-/l*N/A
metadata-evalN/A
lower-fma.f64N/A
lower-/.f64N/A
lower--.f6453.0
Applied rewrites53.0%
l_m = (fabs.f64 l)
(FPCore (n U t l_m Om U*)
:precision binary64
(let* ((t_1 (fma (* (/ l_m Om) l_m) -2.0 t)))
(if (<= n -4.8e-80)
(sqrt (* (* (fma (/ l_m Om) (/ (* U* (* l_m n)) Om) t) (* 2.0 n)) U))
(if (<= n 2.6e-291)
(sqrt (* (* (* t_1 n) U) 2.0))
(* (sqrt (* t_1 U)) (sqrt (* 2.0 n)))))))l_m = fabs(l);
double code(double n, double U, double t, double l_m, double Om, double U_42_) {
double t_1 = fma(((l_m / Om) * l_m), -2.0, t);
double tmp;
if (n <= -4.8e-80) {
tmp = sqrt(((fma((l_m / Om), ((U_42_ * (l_m * n)) / Om), t) * (2.0 * n)) * U));
} else if (n <= 2.6e-291) {
tmp = sqrt((((t_1 * n) * U) * 2.0));
} else {
tmp = sqrt((t_1 * U)) * sqrt((2.0 * n));
}
return tmp;
}
l_m = abs(l) function code(n, U, t, l_m, Om, U_42_) t_1 = fma(Float64(Float64(l_m / Om) * l_m), -2.0, t) tmp = 0.0 if (n <= -4.8e-80) tmp = sqrt(Float64(Float64(fma(Float64(l_m / Om), Float64(Float64(U_42_ * Float64(l_m * n)) / Om), t) * Float64(2.0 * n)) * U)); elseif (n <= 2.6e-291) tmp = sqrt(Float64(Float64(Float64(t_1 * n) * U) * 2.0)); else tmp = Float64(sqrt(Float64(t_1 * U)) * sqrt(Float64(2.0 * n))); end return 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[(l$95$m / Om), $MachinePrecision] * l$95$m), $MachinePrecision] * -2.0 + t), $MachinePrecision]}, If[LessEqual[n, -4.8e-80], N[Sqrt[N[(N[(N[(N[(l$95$m / Om), $MachinePrecision] * N[(N[(U$42$ * N[(l$95$m * n), $MachinePrecision]), $MachinePrecision] / Om), $MachinePrecision] + t), $MachinePrecision] * N[(2.0 * n), $MachinePrecision]), $MachinePrecision] * U), $MachinePrecision]], $MachinePrecision], If[LessEqual[n, 2.6e-291], N[Sqrt[N[(N[(N[(t$95$1 * n), $MachinePrecision] * U), $MachinePrecision] * 2.0), $MachinePrecision]], $MachinePrecision], N[(N[Sqrt[N[(t$95$1 * U), $MachinePrecision]], $MachinePrecision] * N[Sqrt[N[(2.0 * n), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
l_m = \left|\ell\right|
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(\frac{l\_m}{Om} \cdot l\_m, -2, t\right)\\
\mathbf{if}\;n \leq -4.8 \cdot 10^{-80}:\\
\;\;\;\;\sqrt{\left(\mathsf{fma}\left(\frac{l\_m}{Om}, \frac{U* \cdot \left(l\_m \cdot n\right)}{Om}, t\right) \cdot \left(2 \cdot n\right)\right) \cdot U}\\
\mathbf{elif}\;n \leq 2.6 \cdot 10^{-291}:\\
\;\;\;\;\sqrt{\left(\left(t\_1 \cdot n\right) \cdot U\right) \cdot 2}\\
\mathbf{else}:\\
\;\;\;\;\sqrt{t\_1 \cdot U} \cdot \sqrt{2 \cdot n}\\
\end{array}
\end{array}
if n < -4.7999999999999998e-80Initial program 68.6%
lift--.f64N/A
sub-negN/A
+-commutativeN/A
lift-*.f64N/A
*-commutativeN/A
distribute-lft-neg-inN/A
lift-*.f64N/A
lift-pow.f64N/A
unpow2N/A
associate-*r*N/A
associate-*r*N/A
lower-fma.f64N/A
lower-*.f64N/A
lower-neg.f64N/A
lower-*.f6469.8
lift--.f64N/A
sub-negN/A
Applied rewrites69.8%
lift-fma.f64N/A
*-commutativeN/A
lower-fma.f6469.8
lift-*.f64N/A
*-commutativeN/A
lower-*.f6469.8
lift-*.f64N/A
*-commutativeN/A
lower-*.f6469.8
lift-fma.f64N/A
*-commutativeN/A
lower-fma.f6469.8
lift-/.f64N/A
lift-*.f64N/A
associate-*l/N/A
lift-/.f64N/A
lower-*.f6470.9
Applied rewrites70.9%
lift-*.f64N/A
*-commutativeN/A
lift-*.f64N/A
associate-*r*N/A
lower-*.f64N/A
Applied rewrites63.9%
Taylor expanded in U* around inf
lower-/.f64N/A
lower-*.f64N/A
lower-*.f6464.2
Applied rewrites64.2%
if -4.7999999999999998e-80 < n < 2.5999999999999999e-291Initial program 41.4%
Taylor expanded in n around 0
*-commutativeN/A
lower-*.f64N/A
lower-sqrt.f64N/A
lower-sqrt.f64N/A
*-commutativeN/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f64N/A
cancel-sign-sub-invN/A
metadata-evalN/A
+-commutativeN/A
lower-fma.f64N/A
lower-/.f64N/A
unpow2N/A
lower-*.f6455.6
Applied rewrites55.6%
Applied rewrites58.2%
if 2.5999999999999999e-291 < n Initial program 48.5%
Taylor expanded in n around 0
*-commutativeN/A
lower-*.f64N/A
lower-sqrt.f64N/A
lower-sqrt.f64N/A
*-commutativeN/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f64N/A
cancel-sign-sub-invN/A
metadata-evalN/A
+-commutativeN/A
lower-fma.f64N/A
lower-/.f64N/A
unpow2N/A
lower-*.f6442.2
Applied rewrites42.2%
Applied rewrites56.1%
l_m = (fabs.f64 l)
(FPCore (n U t l_m Om U*)
:precision binary64
(let* ((t_1 (fma (* (/ l_m Om) l_m) -2.0 t)))
(if (<= n 2.6e-291)
(sqrt (* (* (* t_1 n) U) 2.0))
(* (sqrt (* t_1 U)) (sqrt (* 2.0 n))))))l_m = fabs(l);
double code(double n, double U, double t, double l_m, double Om, double U_42_) {
double t_1 = fma(((l_m / Om) * l_m), -2.0, t);
double tmp;
if (n <= 2.6e-291) {
tmp = sqrt((((t_1 * n) * U) * 2.0));
} else {
tmp = sqrt((t_1 * U)) * sqrt((2.0 * n));
}
return tmp;
}
l_m = abs(l) function code(n, U, t, l_m, Om, U_42_) t_1 = fma(Float64(Float64(l_m / Om) * l_m), -2.0, t) tmp = 0.0 if (n <= 2.6e-291) tmp = sqrt(Float64(Float64(Float64(t_1 * n) * U) * 2.0)); else tmp = Float64(sqrt(Float64(t_1 * U)) * sqrt(Float64(2.0 * n))); end return 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[(l$95$m / Om), $MachinePrecision] * l$95$m), $MachinePrecision] * -2.0 + t), $MachinePrecision]}, If[LessEqual[n, 2.6e-291], N[Sqrt[N[(N[(N[(t$95$1 * n), $MachinePrecision] * U), $MachinePrecision] * 2.0), $MachinePrecision]], $MachinePrecision], N[(N[Sqrt[N[(t$95$1 * U), $MachinePrecision]], $MachinePrecision] * N[Sqrt[N[(2.0 * n), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
l_m = \left|\ell\right|
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(\frac{l\_m}{Om} \cdot l\_m, -2, t\right)\\
\mathbf{if}\;n \leq 2.6 \cdot 10^{-291}:\\
\;\;\;\;\sqrt{\left(\left(t\_1 \cdot n\right) \cdot U\right) \cdot 2}\\
\mathbf{else}:\\
\;\;\;\;\sqrt{t\_1 \cdot U} \cdot \sqrt{2 \cdot n}\\
\end{array}
\end{array}
if n < 2.5999999999999999e-291Initial program 58.9%
Taylor expanded in n around 0
*-commutativeN/A
lower-*.f64N/A
lower-sqrt.f64N/A
lower-sqrt.f64N/A
*-commutativeN/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f64N/A
cancel-sign-sub-invN/A
metadata-evalN/A
+-commutativeN/A
lower-fma.f64N/A
lower-/.f64N/A
unpow2N/A
lower-*.f6455.5
Applied rewrites55.5%
Applied rewrites56.5%
if 2.5999999999999999e-291 < n Initial program 48.5%
Taylor expanded in n around 0
*-commutativeN/A
lower-*.f64N/A
lower-sqrt.f64N/A
lower-sqrt.f64N/A
*-commutativeN/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f64N/A
cancel-sign-sub-invN/A
metadata-evalN/A
+-commutativeN/A
lower-fma.f64N/A
lower-/.f64N/A
unpow2N/A
lower-*.f6442.2
Applied rewrites42.2%
Applied rewrites56.1%
l_m = (fabs.f64 l) (FPCore (n U t l_m Om U*) :precision binary64 (if (<= l_m 1.14e+154) (sqrt (* (* (* (fma -2.0 (/ (* l_m l_m) Om) t) n) U) 2.0)) (sqrt (* (* (* (* l_m (* n (/ l_m Om))) U) -2.0) 2.0))))
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.14e+154) {
tmp = sqrt((((fma(-2.0, ((l_m * l_m) / Om), t) * n) * U) * 2.0));
} else {
tmp = sqrt(((((l_m * (n * (l_m / Om))) * U) * -2.0) * 2.0));
}
return tmp;
}
l_m = abs(l) function code(n, U, t, l_m, Om, U_42_) tmp = 0.0 if (l_m <= 1.14e+154) tmp = sqrt(Float64(Float64(Float64(fma(-2.0, Float64(Float64(l_m * l_m) / Om), t) * n) * U) * 2.0)); else tmp = sqrt(Float64(Float64(Float64(Float64(l_m * Float64(n * Float64(l_m / Om))) * U) * -2.0) * 2.0)); end return tmp end
l_m = N[Abs[l], $MachinePrecision] code[n_, U_, t_, l$95$m_, Om_, U$42$_] := If[LessEqual[l$95$m, 1.14e+154], N[Sqrt[N[(N[(N[(N[(-2.0 * N[(N[(l$95$m * l$95$m), $MachinePrecision] / Om), $MachinePrecision] + t), $MachinePrecision] * n), $MachinePrecision] * U), $MachinePrecision] * 2.0), $MachinePrecision]], $MachinePrecision], N[Sqrt[N[(N[(N[(N[(l$95$m * N[(n * N[(l$95$m / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * U), $MachinePrecision] * -2.0), $MachinePrecision] * 2.0), $MachinePrecision]], $MachinePrecision]]
\begin{array}{l}
l_m = \left|\ell\right|
\\
\begin{array}{l}
\mathbf{if}\;l\_m \leq 1.14 \cdot 10^{+154}:\\
\;\;\;\;\sqrt{\left(\left(\mathsf{fma}\left(-2, \frac{l\_m \cdot l\_m}{Om}, t\right) \cdot n\right) \cdot U\right) \cdot 2}\\
\mathbf{else}:\\
\;\;\;\;\sqrt{\left(\left(\left(l\_m \cdot \left(n \cdot \frac{l\_m}{Om}\right)\right) \cdot U\right) \cdot -2\right) \cdot 2}\\
\end{array}
\end{array}
if l < 1.13999999999999997e154Initial program 57.9%
Taylor expanded in n around 0
*-commutativeN/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f64N/A
cancel-sign-sub-invN/A
metadata-evalN/A
+-commutativeN/A
lower-fma.f64N/A
lower-/.f64N/A
unpow2N/A
lower-*.f6452.7
Applied rewrites52.7%
if 1.13999999999999997e154 < l Initial program 14.3%
Taylor expanded in n around 0
*-commutativeN/A
lower-*.f64N/A
lower-sqrt.f64N/A
lower-sqrt.f64N/A
*-commutativeN/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f64N/A
cancel-sign-sub-invN/A
metadata-evalN/A
+-commutativeN/A
lower-fma.f64N/A
lower-/.f64N/A
unpow2N/A
lower-*.f6415.4
Applied rewrites15.4%
Taylor expanded in t around 0
Applied rewrites15.4%
Applied rewrites36.1%
l_m = (fabs.f64 l) (FPCore (n U t l_m Om U*) :precision binary64 (if (<= l_m 2.15e+155) (sqrt (* (* (* (fma (* (/ l_m Om) l_m) -2.0 t) n) U) 2.0)) (sqrt (* (* (* (* l_m (* n (/ l_m Om))) U) -2.0) 2.0))))
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 <= 2.15e+155) {
tmp = sqrt((((fma(((l_m / Om) * l_m), -2.0, t) * n) * U) * 2.0));
} else {
tmp = sqrt(((((l_m * (n * (l_m / Om))) * U) * -2.0) * 2.0));
}
return tmp;
}
l_m = abs(l) function code(n, U, t, l_m, Om, U_42_) tmp = 0.0 if (l_m <= 2.15e+155) tmp = sqrt(Float64(Float64(Float64(fma(Float64(Float64(l_m / Om) * l_m), -2.0, t) * n) * U) * 2.0)); else tmp = sqrt(Float64(Float64(Float64(Float64(l_m * Float64(n * Float64(l_m / Om))) * U) * -2.0) * 2.0)); end return tmp end
l_m = N[Abs[l], $MachinePrecision] code[n_, U_, t_, l$95$m_, Om_, U$42$_] := If[LessEqual[l$95$m, 2.15e+155], N[Sqrt[N[(N[(N[(N[(N[(N[(l$95$m / Om), $MachinePrecision] * l$95$m), $MachinePrecision] * -2.0 + t), $MachinePrecision] * n), $MachinePrecision] * U), $MachinePrecision] * 2.0), $MachinePrecision]], $MachinePrecision], N[Sqrt[N[(N[(N[(N[(l$95$m * N[(n * N[(l$95$m / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * U), $MachinePrecision] * -2.0), $MachinePrecision] * 2.0), $MachinePrecision]], $MachinePrecision]]
\begin{array}{l}
l_m = \left|\ell\right|
\\
\begin{array}{l}
\mathbf{if}\;l\_m \leq 2.15 \cdot 10^{+155}:\\
\;\;\;\;\sqrt{\left(\left(\mathsf{fma}\left(\frac{l\_m}{Om} \cdot l\_m, -2, t\right) \cdot n\right) \cdot U\right) \cdot 2}\\
\mathbf{else}:\\
\;\;\;\;\sqrt{\left(\left(\left(l\_m \cdot \left(n \cdot \frac{l\_m}{Om}\right)\right) \cdot U\right) \cdot -2\right) \cdot 2}\\
\end{array}
\end{array}
if l < 2.1500000000000001e155Initial program 57.7%
Taylor expanded in n around 0
*-commutativeN/A
lower-*.f64N/A
lower-sqrt.f64N/A
lower-sqrt.f64N/A
*-commutativeN/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f64N/A
cancel-sign-sub-invN/A
metadata-evalN/A
+-commutativeN/A
lower-fma.f64N/A
lower-/.f64N/A
unpow2N/A
lower-*.f6452.3
Applied rewrites52.3%
Applied rewrites53.8%
if 2.1500000000000001e155 < l Initial program 14.7%
Taylor expanded in n around 0
*-commutativeN/A
lower-*.f64N/A
lower-sqrt.f64N/A
lower-sqrt.f64N/A
*-commutativeN/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f64N/A
cancel-sign-sub-invN/A
metadata-evalN/A
+-commutativeN/A
lower-fma.f64N/A
lower-/.f64N/A
unpow2N/A
lower-*.f6415.9
Applied rewrites15.9%
Taylor expanded in t around 0
Applied rewrites15.9%
Applied rewrites33.4%
l_m = (fabs.f64 l) (FPCore (n U t l_m Om U*) :precision binary64 (if (<= l_m 5.6e+16) (sqrt (* (* (* n t) U) 2.0)) (sqrt (* (* (* (* l_m (* n (/ l_m Om))) U) -2.0) 2.0))))
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 <= 5.6e+16) {
tmp = sqrt((((n * t) * U) * 2.0));
} else {
tmp = sqrt(((((l_m * (n * (l_m / Om))) * U) * -2.0) * 2.0));
}
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 <= 5.6d+16) then
tmp = sqrt((((n * t) * u) * 2.0d0))
else
tmp = sqrt(((((l_m * (n * (l_m / om))) * u) * (-2.0d0)) * 2.0d0))
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 <= 5.6e+16) {
tmp = Math.sqrt((((n * t) * U) * 2.0));
} else {
tmp = Math.sqrt(((((l_m * (n * (l_m / Om))) * U) * -2.0) * 2.0));
}
return tmp;
}
l_m = math.fabs(l) def code(n, U, t, l_m, Om, U_42_): tmp = 0 if l_m <= 5.6e+16: tmp = math.sqrt((((n * t) * U) * 2.0)) else: tmp = math.sqrt(((((l_m * (n * (l_m / Om))) * U) * -2.0) * 2.0)) return tmp
l_m = abs(l) function code(n, U, t, l_m, Om, U_42_) tmp = 0.0 if (l_m <= 5.6e+16) tmp = sqrt(Float64(Float64(Float64(n * t) * U) * 2.0)); else tmp = sqrt(Float64(Float64(Float64(Float64(l_m * Float64(n * Float64(l_m / Om))) * U) * -2.0) * 2.0)); 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 <= 5.6e+16) tmp = sqrt((((n * t) * U) * 2.0)); else tmp = sqrt(((((l_m * (n * (l_m / Om))) * U) * -2.0) * 2.0)); 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, 5.6e+16], N[Sqrt[N[(N[(N[(n * t), $MachinePrecision] * U), $MachinePrecision] * 2.0), $MachinePrecision]], $MachinePrecision], N[Sqrt[N[(N[(N[(N[(l$95$m * N[(n * N[(l$95$m / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * U), $MachinePrecision] * -2.0), $MachinePrecision] * 2.0), $MachinePrecision]], $MachinePrecision]]
\begin{array}{l}
l_m = \left|\ell\right|
\\
\begin{array}{l}
\mathbf{if}\;l\_m \leq 5.6 \cdot 10^{+16}:\\
\;\;\;\;\sqrt{\left(\left(n \cdot t\right) \cdot U\right) \cdot 2}\\
\mathbf{else}:\\
\;\;\;\;\sqrt{\left(\left(\left(l\_m \cdot \left(n \cdot \frac{l\_m}{Om}\right)\right) \cdot U\right) \cdot -2\right) \cdot 2}\\
\end{array}
\end{array}
if l < 5.6e16Initial program 56.5%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f64N/A
lower-*.f6448.1
Applied rewrites48.1%
if 5.6e16 < l Initial program 42.1%
Taylor expanded in n around 0
*-commutativeN/A
lower-*.f64N/A
lower-sqrt.f64N/A
lower-sqrt.f64N/A
*-commutativeN/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f64N/A
cancel-sign-sub-invN/A
metadata-evalN/A
+-commutativeN/A
lower-fma.f64N/A
lower-/.f64N/A
unpow2N/A
lower-*.f6434.6
Applied rewrites34.6%
Taylor expanded in t around 0
Applied rewrites30.3%
Applied rewrites40.9%
l_m = (fabs.f64 l) (FPCore (n U t l_m Om U*) :precision binary64 (if (<= l_m 5.6e+16) (sqrt (* (* (* n t) U) 2.0)) (sqrt (* -4.0 (* U (/ (* (* l_m l_m) n) 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 <= 5.6e+16) {
tmp = sqrt((((n * t) * U) * 2.0));
} else {
tmp = sqrt((-4.0 * (U * (((l_m * l_m) * n) / 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 <= 5.6d+16) then
tmp = sqrt((((n * t) * u) * 2.0d0))
else
tmp = sqrt(((-4.0d0) * (u * (((l_m * l_m) * n) / 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 <= 5.6e+16) {
tmp = Math.sqrt((((n * t) * U) * 2.0));
} else {
tmp = Math.sqrt((-4.0 * (U * (((l_m * l_m) * n) / Om))));
}
return tmp;
}
l_m = math.fabs(l) def code(n, U, t, l_m, Om, U_42_): tmp = 0 if l_m <= 5.6e+16: tmp = math.sqrt((((n * t) * U) * 2.0)) else: tmp = math.sqrt((-4.0 * (U * (((l_m * l_m) * n) / Om)))) return tmp
l_m = abs(l) function code(n, U, t, l_m, Om, U_42_) tmp = 0.0 if (l_m <= 5.6e+16) tmp = sqrt(Float64(Float64(Float64(n * t) * U) * 2.0)); else tmp = sqrt(Float64(-4.0 * Float64(U * Float64(Float64(Float64(l_m * l_m) * n) / 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 <= 5.6e+16) tmp = sqrt((((n * t) * U) * 2.0)); else tmp = sqrt((-4.0 * (U * (((l_m * l_m) * n) / 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, 5.6e+16], N[Sqrt[N[(N[(N[(n * t), $MachinePrecision] * U), $MachinePrecision] * 2.0), $MachinePrecision]], $MachinePrecision], N[Sqrt[N[(-4.0 * N[(U * N[(N[(N[(l$95$m * l$95$m), $MachinePrecision] * n), $MachinePrecision] / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]]
\begin{array}{l}
l_m = \left|\ell\right|
\\
\begin{array}{l}
\mathbf{if}\;l\_m \leq 5.6 \cdot 10^{+16}:\\
\;\;\;\;\sqrt{\left(\left(n \cdot t\right) \cdot U\right) \cdot 2}\\
\mathbf{else}:\\
\;\;\;\;\sqrt{-4 \cdot \left(U \cdot \frac{\left(l\_m \cdot l\_m\right) \cdot n}{Om}\right)}\\
\end{array}
\end{array}
if l < 5.6e16Initial program 56.5%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f64N/A
lower-*.f6448.1
Applied rewrites48.1%
if 5.6e16 < l Initial program 42.1%
Taylor expanded in l around inf
associate-*r*N/A
lower-*.f64N/A
lower-*.f64N/A
associate-*r*N/A
lower-*.f64N/A
lower-*.f64N/A
unpow2N/A
lower-*.f64N/A
+-commutativeN/A
unpow2N/A
times-fracN/A
lower-fma.f64N/A
lower-/.f64N/A
lower-/.f64N/A
lower--.f64N/A
associate-*r/N/A
metadata-evalN/A
lower-/.f6441.7
Applied rewrites41.7%
Taylor expanded in n around 0
Applied rewrites30.4%
l_m = (fabs.f64 l) (FPCore (n U t l_m Om U*) :precision binary64 (sqrt (* n (* t (* 2.0 U)))))
l_m = fabs(l);
double code(double n, double U, double t, double l_m, double Om, double U_42_) {
return sqrt((n * (t * (2.0 * U))));
}
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((n * (t * (2.0d0 * u))))
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((n * (t * (2.0 * U))));
}
l_m = math.fabs(l) def code(n, U, t, l_m, Om, U_42_): return math.sqrt((n * (t * (2.0 * U))))
l_m = abs(l) function code(n, U, t, l_m, Om, U_42_) return sqrt(Float64(n * Float64(t * Float64(2.0 * U)))) end
l_m = abs(l); function tmp = code(n, U, t, l_m, Om, U_42_) tmp = sqrt((n * (t * (2.0 * U)))); end
l_m = N[Abs[l], $MachinePrecision] code[n_, U_, t_, l$95$m_, Om_, U$42$_] := N[Sqrt[N[(n * N[(t * N[(2.0 * U), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]
\begin{array}{l}
l_m = \left|\ell\right|
\\
\sqrt{n \cdot \left(t \cdot \left(2 \cdot U\right)\right)}
\end{array}
Initial program 53.8%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f64N/A
lower-*.f6442.0
Applied rewrites42.0%
Applied rewrites40.3%
herbie shell --seed 2024324
(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*))))))