
(FPCore (n U t l Om U*) :precision binary64 (sqrt (* (* (* 2.0 n) U) (- (- t (* 2.0 (/ (* l l) Om))) (* (* n (pow (/ l Om) 2.0)) (- U U*))))))
double code(double n, double U, double t, double l, double Om, double U_42_) {
return sqrt((((2.0 * n) * U) * ((t - (2.0 * ((l * l) / Om))) - ((n * pow((l / Om), 2.0)) * (U - U_42_)))));
}
real(8) function code(n, u, t, l, om, u_42)
real(8), intent (in) :: n
real(8), intent (in) :: u
real(8), intent (in) :: t
real(8), intent (in) :: l
real(8), intent (in) :: om
real(8), intent (in) :: u_42
code = sqrt((((2.0d0 * n) * u) * ((t - (2.0d0 * ((l * l) / om))) - ((n * ((l / om) ** 2.0d0)) * (u - u_42)))))
end function
public static double code(double n, double U, double t, double l, double Om, double U_42_) {
return Math.sqrt((((2.0 * n) * U) * ((t - (2.0 * ((l * l) / Om))) - ((n * Math.pow((l / Om), 2.0)) * (U - U_42_)))));
}
def code(n, U, t, l, Om, U_42_): return math.sqrt((((2.0 * n) * U) * ((t - (2.0 * ((l * l) / Om))) - ((n * math.pow((l / Om), 2.0)) * (U - U_42_)))))
function code(n, U, t, l, Om, U_42_) return sqrt(Float64(Float64(Float64(2.0 * n) * U) * Float64(Float64(t - Float64(2.0 * Float64(Float64(l * l) / Om))) - Float64(Float64(n * (Float64(l / Om) ^ 2.0)) * Float64(U - U_42_))))) end
function tmp = code(n, U, t, l, Om, U_42_) tmp = sqrt((((2.0 * n) * U) * ((t - (2.0 * ((l * l) / Om))) - ((n * ((l / Om) ^ 2.0)) * (U - U_42_))))); end
code[n_, U_, t_, l_, Om_, U$42$_] := N[Sqrt[N[(N[(N[(2.0 * n), $MachinePrecision] * U), $MachinePrecision] * N[(N[(t - N[(2.0 * N[(N[(l * l), $MachinePrecision] / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(n * N[Power[N[(l / Om), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision] * N[(U - U$42$), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]
\begin{array}{l}
\\
\sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(t - 2 \cdot \frac{\ell \cdot \ell}{Om}\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 18 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (n U t l Om U*) :precision binary64 (sqrt (* (* (* 2.0 n) U) (- (- t (* 2.0 (/ (* l l) Om))) (* (* n (pow (/ l Om) 2.0)) (- U U*))))))
double code(double n, double U, double t, double l, double Om, double U_42_) {
return sqrt((((2.0 * n) * U) * ((t - (2.0 * ((l * l) / Om))) - ((n * pow((l / Om), 2.0)) * (U - U_42_)))));
}
real(8) function code(n, u, t, l, om, u_42)
real(8), intent (in) :: n
real(8), intent (in) :: u
real(8), intent (in) :: t
real(8), intent (in) :: l
real(8), intent (in) :: om
real(8), intent (in) :: u_42
code = sqrt((((2.0d0 * n) * u) * ((t - (2.0d0 * ((l * l) / om))) - ((n * ((l / om) ** 2.0d0)) * (u - u_42)))))
end function
public static double code(double n, double U, double t, double l, double Om, double U_42_) {
return Math.sqrt((((2.0 * n) * U) * ((t - (2.0 * ((l * l) / Om))) - ((n * Math.pow((l / Om), 2.0)) * (U - U_42_)))));
}
def code(n, U, t, l, Om, U_42_): return math.sqrt((((2.0 * n) * U) * ((t - (2.0 * ((l * l) / Om))) - ((n * math.pow((l / Om), 2.0)) * (U - U_42_)))))
function code(n, U, t, l, Om, U_42_) return sqrt(Float64(Float64(Float64(2.0 * n) * U) * Float64(Float64(t - Float64(2.0 * Float64(Float64(l * l) / Om))) - Float64(Float64(n * (Float64(l / Om) ^ 2.0)) * Float64(U - U_42_))))) end
function tmp = code(n, U, t, l, Om, U_42_) tmp = sqrt((((2.0 * n) * U) * ((t - (2.0 * ((l * l) / Om))) - ((n * ((l / Om) ^ 2.0)) * (U - U_42_))))); end
code[n_, U_, t_, l_, Om_, U$42$_] := N[Sqrt[N[(N[(N[(2.0 * n), $MachinePrecision] * U), $MachinePrecision] * N[(N[(t - N[(2.0 * N[(N[(l * l), $MachinePrecision] / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(n * N[Power[N[(l / Om), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision] * N[(U - U$42$), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]
\begin{array}{l}
\\
\sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(t - 2 \cdot \frac{\ell \cdot \ell}{Om}\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)}
\end{array}
(FPCore (n U t l Om U*)
:precision binary64
(let* ((t_1 (fma (/ l Om) (fma (* (/ l Om) n) (- U* U) (* -2.0 l)) t)))
(if (<= U -3.8e+75)
(sqrt
(*
(* (* 2.0 n) U)
(fma
(/ l Om)
(* (* n (/ l Om)) (- (- U U*)))
(fma (* (/ l Om) l) -2.0 t))))
(if (<= U 2.15e-305)
(sqrt (* (* t_1 U) (* 2.0 n)))
(* (sqrt (* (* 2.0 n) t_1)) (sqrt U))))))
double code(double n, double U, double t, double l, double Om, double U_42_) {
double t_1 = fma((l / Om), fma(((l / Om) * n), (U_42_ - U), (-2.0 * l)), t);
double tmp;
if (U <= -3.8e+75) {
tmp = sqrt((((2.0 * n) * U) * fma((l / Om), ((n * (l / Om)) * -(U - U_42_)), fma(((l / Om) * l), -2.0, t))));
} else if (U <= 2.15e-305) {
tmp = sqrt(((t_1 * U) * (2.0 * n)));
} else {
tmp = sqrt(((2.0 * n) * t_1)) * sqrt(U);
}
return tmp;
}
function code(n, U, t, l, Om, U_42_) t_1 = fma(Float64(l / Om), fma(Float64(Float64(l / Om) * n), Float64(U_42_ - U), Float64(-2.0 * l)), t) tmp = 0.0 if (U <= -3.8e+75) tmp = sqrt(Float64(Float64(Float64(2.0 * n) * U) * fma(Float64(l / Om), Float64(Float64(n * Float64(l / Om)) * Float64(-Float64(U - U_42_))), fma(Float64(Float64(l / Om) * l), -2.0, t)))); elseif (U <= 2.15e-305) tmp = sqrt(Float64(Float64(t_1 * U) * Float64(2.0 * n))); else tmp = Float64(sqrt(Float64(Float64(2.0 * n) * t_1)) * sqrt(U)); end return tmp end
code[n_, U_, t_, l_, Om_, U$42$_] := Block[{t$95$1 = N[(N[(l / Om), $MachinePrecision] * N[(N[(N[(l / Om), $MachinePrecision] * n), $MachinePrecision] * N[(U$42$ - U), $MachinePrecision] + N[(-2.0 * l), $MachinePrecision]), $MachinePrecision] + t), $MachinePrecision]}, If[LessEqual[U, -3.8e+75], N[Sqrt[N[(N[(N[(2.0 * n), $MachinePrecision] * U), $MachinePrecision] * N[(N[(l / Om), $MachinePrecision] * N[(N[(n * N[(l / Om), $MachinePrecision]), $MachinePrecision] * (-N[(U - U$42$), $MachinePrecision])), $MachinePrecision] + N[(N[(N[(l / Om), $MachinePrecision] * l), $MachinePrecision] * -2.0 + t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], If[LessEqual[U, 2.15e-305], N[Sqrt[N[(N[(t$95$1 * U), $MachinePrecision] * N[(2.0 * n), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], N[(N[Sqrt[N[(N[(2.0 * n), $MachinePrecision] * t$95$1), $MachinePrecision]], $MachinePrecision] * N[Sqrt[U], $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(\frac{\ell}{Om}, \mathsf{fma}\left(\frac{\ell}{Om} \cdot n, U* - U, -2 \cdot \ell\right), t\right)\\
\mathbf{if}\;U \leq -3.8 \cdot 10^{+75}:\\
\;\;\;\;\sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \mathsf{fma}\left(\frac{\ell}{Om}, \left(n \cdot \frac{\ell}{Om}\right) \cdot \left(-\left(U - U*\right)\right), \mathsf{fma}\left(\frac{\ell}{Om} \cdot \ell, -2, t\right)\right)}\\
\mathbf{elif}\;U \leq 2.15 \cdot 10^{-305}:\\
\;\;\;\;\sqrt{\left(t\_1 \cdot U\right) \cdot \left(2 \cdot n\right)}\\
\mathbf{else}:\\
\;\;\;\;\sqrt{\left(2 \cdot n\right) \cdot t\_1} \cdot \sqrt{U}\\
\end{array}
\end{array}
if U < -3.8000000000000002e75Initial program 66.5%
lift--.f64N/A
sub-negN/A
+-commutativeN/A
lift-*.f64N/A
*-commutativeN/A
distribute-lft-neg-inN/A
lift-*.f64N/A
*-commutativeN/A
lift-pow.f64N/A
unpow2N/A
associate-*l*N/A
associate-*r*N/A
lower-fma.f64N/A
lower-*.f64N/A
lower-neg.f64N/A
lower-*.f6466.7
lift--.f64N/A
Applied rewrites66.7%
lift-*.f64N/A
*-commutativeN/A
lift-*.f6466.7
lower-fma.f64N/A
lift-*.f64N/A
*-commutativeN/A
associate-*r*N/A
lift-*.f64N/A
lower-fma.f6466.9
lift-*.f64N/A
*-commutativeN/A
lower-*.f6466.9
lift-fma.f64N/A
*-commutativeN/A
lower-fma.f6466.9
Applied rewrites72.4%
if -3.8000000000000002e75 < U < 2.1500000000000001e-305Initial program 53.3%
lift--.f64N/A
sub-negN/A
+-commutativeN/A
lift-*.f64N/A
*-commutativeN/A
distribute-lft-neg-inN/A
lift-*.f64N/A
*-commutativeN/A
lift-pow.f64N/A
unpow2N/A
associate-*l*N/A
associate-*r*N/A
lower-fma.f64N/A
lower-*.f64N/A
lower-neg.f64N/A
lower-*.f6456.2
lift--.f64N/A
Applied rewrites56.2%
lift-*.f64N/A
*-commutativeN/A
lift-*.f6456.2
lower-fma.f64N/A
lift-*.f64N/A
*-commutativeN/A
associate-*r*N/A
lift-*.f64N/A
lower-fma.f6455.3
lift-*.f64N/A
*-commutativeN/A
lower-*.f6455.3
lift-fma.f64N/A
*-commutativeN/A
lower-fma.f6455.3
Applied rewrites58.3%
lift-*.f64N/A
*-commutativeN/A
lower-*.f6458.3
Applied rewrites58.3%
Applied rewrites66.1%
if 2.1500000000000001e-305 < U Initial program 58.2%
lift--.f64N/A
sub-negN/A
+-commutativeN/A
lift-*.f64N/A
*-commutativeN/A
distribute-lft-neg-inN/A
lift-*.f64N/A
*-commutativeN/A
lift-pow.f64N/A
unpow2N/A
associate-*l*N/A
associate-*r*N/A
lower-fma.f64N/A
lower-*.f64N/A
lower-neg.f64N/A
lower-*.f6458.5
lift--.f64N/A
Applied rewrites58.5%
lift-*.f64N/A
*-commutativeN/A
lift-*.f6458.5
lower-fma.f64N/A
lift-*.f64N/A
*-commutativeN/A
associate-*r*N/A
lift-*.f64N/A
lower-fma.f6458.5
lift-*.f64N/A
*-commutativeN/A
lower-*.f6458.5
lift-fma.f64N/A
*-commutativeN/A
lower-fma.f6458.5
Applied rewrites59.4%
lift-*.f64N/A
*-commutativeN/A
lower-*.f6459.4
Applied rewrites60.4%
lift-sqrt.f64N/A
pow1/2N/A
lift-*.f64N/A
lift-*.f64N/A
associate-*r*N/A
unpow-prod-downN/A
lower-*.f64N/A
Applied rewrites71.2%
(FPCore (n U t l Om U*)
:precision binary64
(let* ((t_1 (* (* 2.0 n) U)))
(if (<=
(*
t_1
(-
(- t (* 2.0 (/ (* l l) Om)))
(* (* n (pow (/ l Om) 2.0)) (- U U*))))
5e+307)
(sqrt (* (fma (/ l Om) (* -2.0 l) t) t_1))
(sqrt (fma (/ (* (* U l) (* n l)) Om) -4.0 (* (* (* n t) U) 2.0))))))
double code(double n, double U, double t, double l, double Om, double U_42_) {
double t_1 = (2.0 * n) * U;
double tmp;
if ((t_1 * ((t - (2.0 * ((l * l) / Om))) - ((n * pow((l / Om), 2.0)) * (U - U_42_)))) <= 5e+307) {
tmp = sqrt((fma((l / Om), (-2.0 * l), t) * t_1));
} else {
tmp = sqrt(fma((((U * l) * (n * l)) / Om), -4.0, (((n * t) * U) * 2.0)));
}
return tmp;
}
function code(n, U, t, l, Om, U_42_) t_1 = Float64(Float64(2.0 * n) * U) tmp = 0.0 if (Float64(t_1 * Float64(Float64(t - Float64(2.0 * Float64(Float64(l * l) / Om))) - Float64(Float64(n * (Float64(l / Om) ^ 2.0)) * Float64(U - U_42_)))) <= 5e+307) tmp = sqrt(Float64(fma(Float64(l / Om), Float64(-2.0 * l), t) * t_1)); else tmp = sqrt(fma(Float64(Float64(Float64(U * l) * Float64(n * l)) / Om), -4.0, Float64(Float64(Float64(n * t) * U) * 2.0))); end return tmp end
code[n_, U_, t_, l_, Om_, U$42$_] := Block[{t$95$1 = N[(N[(2.0 * n), $MachinePrecision] * U), $MachinePrecision]}, If[LessEqual[N[(t$95$1 * 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], 5e+307], N[Sqrt[N[(N[(N[(l / Om), $MachinePrecision] * N[(-2.0 * l), $MachinePrecision] + t), $MachinePrecision] * t$95$1), $MachinePrecision]], $MachinePrecision], N[Sqrt[N[(N[(N[(N[(U * l), $MachinePrecision] * N[(n * l), $MachinePrecision]), $MachinePrecision] / Om), $MachinePrecision] * -4.0 + N[(N[(N[(n * t), $MachinePrecision] * U), $MachinePrecision] * 2.0), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(2 \cdot n\right) \cdot U\\
\mathbf{if}\;t\_1 \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) \leq 5 \cdot 10^{+307}:\\
\;\;\;\;\sqrt{\mathsf{fma}\left(\frac{\ell}{Om}, -2 \cdot \ell, t\right) \cdot t\_1}\\
\mathbf{else}:\\
\;\;\;\;\sqrt{\mathsf{fma}\left(\frac{\left(U \cdot \ell\right) \cdot \left(n \cdot \ell\right)}{Om}, -4, \left(\left(n \cdot t\right) \cdot U\right) \cdot 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*)))) < 5e307Initial program 80.2%
lift--.f64N/A
sub-negN/A
+-commutativeN/A
lift-*.f64N/A
*-commutativeN/A
distribute-lft-neg-inN/A
lift-*.f64N/A
*-commutativeN/A
lift-pow.f64N/A
unpow2N/A
associate-*l*N/A
associate-*r*N/A
lower-fma.f64N/A
lower-*.f64N/A
lower-neg.f64N/A
lower-*.f6481.0
lift--.f64N/A
Applied rewrites81.0%
lift-*.f64N/A
*-commutativeN/A
lift-*.f6481.0
lower-fma.f64N/A
lift-*.f64N/A
*-commutativeN/A
associate-*r*N/A
lift-*.f64N/A
lower-fma.f6481.0
lift-*.f64N/A
*-commutativeN/A
lower-*.f6481.0
lift-fma.f64N/A
*-commutativeN/A
lower-fma.f6481.0
Applied rewrites83.0%
lift-*.f64N/A
*-commutativeN/A
lower-*.f6483.0
Applied rewrites78.8%
Taylor expanded in n around 0
lower-*.f6475.5
Applied rewrites75.5%
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.7%
Taylor expanded in Om around inf
*-commutativeN/A
lower-fma.f64N/A
lower-/.f64N/A
*-commutativeN/A
lower-*.f64N/A
lower-*.f64N/A
unpow2N/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f64N/A
lower-*.f6415.9
Applied rewrites15.9%
Applied rewrites28.9%
(FPCore (n U t l Om U*)
:precision binary64
(let* ((t_1 (* (* 2.0 n) U)))
(if (<=
(*
t_1
(-
(- t (* 2.0 (/ (* l l) Om)))
(* (* n (pow (/ l Om) 2.0)) (- U U*))))
5e+307)
(sqrt (* (fma (/ l Om) (* -2.0 l) t) t_1))
(sqrt (fma (* l (* (* n l) (/ U Om))) -4.0 (* (* (* n t) U) 2.0))))))
double code(double n, double U, double t, double l, double Om, double U_42_) {
double t_1 = (2.0 * n) * U;
double tmp;
if ((t_1 * ((t - (2.0 * ((l * l) / Om))) - ((n * pow((l / Om), 2.0)) * (U - U_42_)))) <= 5e+307) {
tmp = sqrt((fma((l / Om), (-2.0 * l), t) * t_1));
} else {
tmp = sqrt(fma((l * ((n * l) * (U / Om))), -4.0, (((n * t) * U) * 2.0)));
}
return tmp;
}
function code(n, U, t, l, Om, U_42_) t_1 = Float64(Float64(2.0 * n) * U) tmp = 0.0 if (Float64(t_1 * Float64(Float64(t - Float64(2.0 * Float64(Float64(l * l) / Om))) - Float64(Float64(n * (Float64(l / Om) ^ 2.0)) * Float64(U - U_42_)))) <= 5e+307) tmp = sqrt(Float64(fma(Float64(l / Om), Float64(-2.0 * l), t) * t_1)); else tmp = sqrt(fma(Float64(l * Float64(Float64(n * l) * Float64(U / Om))), -4.0, Float64(Float64(Float64(n * t) * U) * 2.0))); end return tmp end
code[n_, U_, t_, l_, Om_, U$42$_] := Block[{t$95$1 = N[(N[(2.0 * n), $MachinePrecision] * U), $MachinePrecision]}, If[LessEqual[N[(t$95$1 * 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], 5e+307], N[Sqrt[N[(N[(N[(l / Om), $MachinePrecision] * N[(-2.0 * l), $MachinePrecision] + t), $MachinePrecision] * t$95$1), $MachinePrecision]], $MachinePrecision], N[Sqrt[N[(N[(l * N[(N[(n * l), $MachinePrecision] * N[(U / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * -4.0 + N[(N[(N[(n * t), $MachinePrecision] * U), $MachinePrecision] * 2.0), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(2 \cdot n\right) \cdot U\\
\mathbf{if}\;t\_1 \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) \leq 5 \cdot 10^{+307}:\\
\;\;\;\;\sqrt{\mathsf{fma}\left(\frac{\ell}{Om}, -2 \cdot \ell, t\right) \cdot t\_1}\\
\mathbf{else}:\\
\;\;\;\;\sqrt{\mathsf{fma}\left(\ell \cdot \left(\left(n \cdot \ell\right) \cdot \frac{U}{Om}\right), -4, \left(\left(n \cdot t\right) \cdot U\right) \cdot 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*)))) < 5e307Initial program 80.2%
lift--.f64N/A
sub-negN/A
+-commutativeN/A
lift-*.f64N/A
*-commutativeN/A
distribute-lft-neg-inN/A
lift-*.f64N/A
*-commutativeN/A
lift-pow.f64N/A
unpow2N/A
associate-*l*N/A
associate-*r*N/A
lower-fma.f64N/A
lower-*.f64N/A
lower-neg.f64N/A
lower-*.f6481.0
lift--.f64N/A
Applied rewrites81.0%
lift-*.f64N/A
*-commutativeN/A
lift-*.f6481.0
lower-fma.f64N/A
lift-*.f64N/A
*-commutativeN/A
associate-*r*N/A
lift-*.f64N/A
lower-fma.f6481.0
lift-*.f64N/A
*-commutativeN/A
lower-*.f6481.0
lift-fma.f64N/A
*-commutativeN/A
lower-fma.f6481.0
Applied rewrites83.0%
lift-*.f64N/A
*-commutativeN/A
lower-*.f6483.0
Applied rewrites78.8%
Taylor expanded in n around 0
lower-*.f6475.5
Applied rewrites75.5%
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.7%
Taylor expanded in Om around inf
*-commutativeN/A
lower-fma.f64N/A
lower-/.f64N/A
*-commutativeN/A
lower-*.f64N/A
lower-*.f64N/A
unpow2N/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f64N/A
lower-*.f6415.9
Applied rewrites15.9%
Applied rewrites27.9%
(FPCore (n U t l Om U*)
:precision binary64
(let* ((t_1 (* (* 2.0 n) U)))
(if (<=
(*
t_1
(-
(- t (* 2.0 (/ (* l l) Om)))
(* (* n (pow (/ l Om) 2.0)) (- U U*))))
5e+307)
(sqrt (* (fma (/ l Om) (* -2.0 l) t) t_1))
(sqrt (* (/ (* (* U* U) (* (* n l) (* n l))) (* Om Om)) 2.0)))))
double code(double n, double U, double t, double l, double Om, double U_42_) {
double t_1 = (2.0 * n) * U;
double tmp;
if ((t_1 * ((t - (2.0 * ((l * l) / Om))) - ((n * pow((l / Om), 2.0)) * (U - U_42_)))) <= 5e+307) {
tmp = sqrt((fma((l / Om), (-2.0 * l), t) * t_1));
} else {
tmp = sqrt(((((U_42_ * U) * ((n * l) * (n * l))) / (Om * Om)) * 2.0));
}
return tmp;
}
function code(n, U, t, l, Om, U_42_) t_1 = Float64(Float64(2.0 * n) * U) tmp = 0.0 if (Float64(t_1 * Float64(Float64(t - Float64(2.0 * Float64(Float64(l * l) / Om))) - Float64(Float64(n * (Float64(l / Om) ^ 2.0)) * Float64(U - U_42_)))) <= 5e+307) tmp = sqrt(Float64(fma(Float64(l / Om), Float64(-2.0 * l), t) * t_1)); else tmp = sqrt(Float64(Float64(Float64(Float64(U_42_ * U) * Float64(Float64(n * l) * Float64(n * l))) / Float64(Om * Om)) * 2.0)); end return tmp end
code[n_, U_, t_, l_, Om_, U$42$_] := Block[{t$95$1 = N[(N[(2.0 * n), $MachinePrecision] * U), $MachinePrecision]}, If[LessEqual[N[(t$95$1 * 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], 5e+307], N[Sqrt[N[(N[(N[(l / Om), $MachinePrecision] * N[(-2.0 * l), $MachinePrecision] + t), $MachinePrecision] * t$95$1), $MachinePrecision]], $MachinePrecision], N[Sqrt[N[(N[(N[(N[(U$42$ * U), $MachinePrecision] * N[(N[(n * l), $MachinePrecision] * N[(n * l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(Om * Om), $MachinePrecision]), $MachinePrecision] * 2.0), $MachinePrecision]], $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(2 \cdot n\right) \cdot U\\
\mathbf{if}\;t\_1 \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) \leq 5 \cdot 10^{+307}:\\
\;\;\;\;\sqrt{\mathsf{fma}\left(\frac{\ell}{Om}, -2 \cdot \ell, t\right) \cdot t\_1}\\
\mathbf{else}:\\
\;\;\;\;\sqrt{\frac{\left(U* \cdot U\right) \cdot \left(\left(n \cdot \ell\right) \cdot \left(n \cdot \ell\right)\right)}{Om \cdot Om} \cdot 2}\\
\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*)))) < 5e307Initial program 80.2%
lift--.f64N/A
sub-negN/A
+-commutativeN/A
lift-*.f64N/A
*-commutativeN/A
distribute-lft-neg-inN/A
lift-*.f64N/A
*-commutativeN/A
lift-pow.f64N/A
unpow2N/A
associate-*l*N/A
associate-*r*N/A
lower-fma.f64N/A
lower-*.f64N/A
lower-neg.f64N/A
lower-*.f6481.0
lift--.f64N/A
Applied rewrites81.0%
lift-*.f64N/A
*-commutativeN/A
lift-*.f6481.0
lower-fma.f64N/A
lift-*.f64N/A
*-commutativeN/A
associate-*r*N/A
lift-*.f64N/A
lower-fma.f6481.0
lift-*.f64N/A
*-commutativeN/A
lower-*.f6481.0
lift-fma.f64N/A
*-commutativeN/A
lower-fma.f6481.0
Applied rewrites83.0%
lift-*.f64N/A
*-commutativeN/A
lower-*.f6483.0
Applied rewrites78.8%
Taylor expanded in n around 0
lower-*.f6475.5
Applied rewrites75.5%
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.7%
lift--.f64N/A
sub-negN/A
+-commutativeN/A
lift-*.f64N/A
*-commutativeN/A
distribute-lft-neg-inN/A
lift-*.f64N/A
*-commutativeN/A
lift-pow.f64N/A
unpow2N/A
associate-*l*N/A
associate-*r*N/A
lower-fma.f64N/A
lower-*.f64N/A
lower-neg.f64N/A
lower-*.f6423.9
lift--.f64N/A
Applied rewrites23.9%
Taylor expanded in U* around inf
*-commutativeN/A
lower-*.f64N/A
lower-/.f64N/A
associate-*r*N/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f64N/A
unpow2N/A
unpow2N/A
unswap-sqrN/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f64N/A
unpow2N/A
lower-*.f6423.6
Applied rewrites23.6%
Final simplification55.2%
(FPCore (n U t l Om U*)
:precision binary64
(let* ((t_1 (* (* 2.0 n) U)))
(if (<=
(*
t_1
(-
(- t (* 2.0 (/ (* l l) Om)))
(* (* n (pow (/ l Om) 2.0)) (- U U*))))
5e+307)
(sqrt (* (fma (/ l Om) (* -2.0 l) t) t_1))
(/ (* (sqrt (* U U*)) (* l (* n (sqrt 2.0)))) Om))))
double code(double n, double U, double t, double l, double Om, double U_42_) {
double t_1 = (2.0 * n) * U;
double tmp;
if ((t_1 * ((t - (2.0 * ((l * l) / Om))) - ((n * pow((l / Om), 2.0)) * (U - U_42_)))) <= 5e+307) {
tmp = sqrt((fma((l / Om), (-2.0 * l), t) * t_1));
} else {
tmp = (sqrt((U * U_42_)) * (l * (n * sqrt(2.0)))) / Om;
}
return tmp;
}
function code(n, U, t, l, Om, U_42_) t_1 = Float64(Float64(2.0 * n) * U) tmp = 0.0 if (Float64(t_1 * Float64(Float64(t - Float64(2.0 * Float64(Float64(l * l) / Om))) - Float64(Float64(n * (Float64(l / Om) ^ 2.0)) * Float64(U - U_42_)))) <= 5e+307) tmp = sqrt(Float64(fma(Float64(l / Om), Float64(-2.0 * l), t) * t_1)); else tmp = Float64(Float64(sqrt(Float64(U * U_42_)) * Float64(l * Float64(n * sqrt(2.0)))) / Om); end return tmp end
code[n_, U_, t_, l_, Om_, U$42$_] := Block[{t$95$1 = N[(N[(2.0 * n), $MachinePrecision] * U), $MachinePrecision]}, If[LessEqual[N[(t$95$1 * 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], 5e+307], N[Sqrt[N[(N[(N[(l / Om), $MachinePrecision] * N[(-2.0 * l), $MachinePrecision] + t), $MachinePrecision] * t$95$1), $MachinePrecision]], $MachinePrecision], N[(N[(N[Sqrt[N[(U * U$42$), $MachinePrecision]], $MachinePrecision] * N[(l * N[(n * N[Sqrt[2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / Om), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(2 \cdot n\right) \cdot U\\
\mathbf{if}\;t\_1 \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) \leq 5 \cdot 10^{+307}:\\
\;\;\;\;\sqrt{\mathsf{fma}\left(\frac{\ell}{Om}, -2 \cdot \ell, t\right) \cdot t\_1}\\
\mathbf{else}:\\
\;\;\;\;\frac{\sqrt{U \cdot U*} \cdot \left(\ell \cdot \left(n \cdot \sqrt{2}\right)\right)}{Om}\\
\end{array}
\end{array}
if (*.f64 (*.f64 (*.f64 #s(literal 2 binary64) n) U) (-.f64 (-.f64 t (*.f64 #s(literal 2 binary64) (/.f64 (*.f64 l l) Om))) (*.f64 (*.f64 n (pow.f64 (/.f64 l Om) #s(literal 2 binary64))) (-.f64 U U*)))) < 5e307Initial program 80.2%
lift--.f64N/A
sub-negN/A
+-commutativeN/A
lift-*.f64N/A
*-commutativeN/A
distribute-lft-neg-inN/A
lift-*.f64N/A
*-commutativeN/A
lift-pow.f64N/A
unpow2N/A
associate-*l*N/A
associate-*r*N/A
lower-fma.f64N/A
lower-*.f64N/A
lower-neg.f64N/A
lower-*.f6481.0
lift--.f64N/A
Applied rewrites81.0%
lift-*.f64N/A
*-commutativeN/A
lift-*.f6481.0
lower-fma.f64N/A
lift-*.f64N/A
*-commutativeN/A
associate-*r*N/A
lift-*.f64N/A
lower-fma.f6481.0
lift-*.f64N/A
*-commutativeN/A
lower-*.f6481.0
lift-fma.f64N/A
*-commutativeN/A
lower-fma.f6481.0
Applied rewrites83.0%
lift-*.f64N/A
*-commutativeN/A
lower-*.f6483.0
Applied rewrites78.8%
Taylor expanded in n around 0
lower-*.f6475.5
Applied rewrites75.5%
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.7%
lift--.f64N/A
sub-negN/A
+-commutativeN/A
lift-*.f64N/A
*-commutativeN/A
distribute-lft-neg-inN/A
lift-*.f64N/A
*-commutativeN/A
lift-pow.f64N/A
unpow2N/A
associate-*l*N/A
associate-*r*N/A
lower-fma.f64N/A
lower-*.f64N/A
lower-neg.f64N/A
lower-*.f6423.9
lift--.f64N/A
Applied rewrites23.9%
Taylor expanded in Om around 0
lower-/.f64N/A
Applied rewrites23.5%
Taylor expanded in U* around inf
Applied rewrites23.6%
Final simplification55.2%
(FPCore (n U t l Om U*)
:precision binary64
(let* ((t_1 (/ (* l l) Om)) (t_2 (* (* 2.0 n) U)))
(if (<=
(* t_2 (- (- t (* 2.0 t_1)) (* (* n (pow (/ l Om) 2.0)) (- U U*))))
0.0)
(sqrt (* (* (* 2.0 U) t) n))
(sqrt (* t_2 (fma -2.0 t_1 t))))))
double code(double n, double U, double t, double l, double Om, double U_42_) {
double t_1 = (l * l) / Om;
double t_2 = (2.0 * n) * U;
double tmp;
if ((t_2 * ((t - (2.0 * t_1)) - ((n * pow((l / Om), 2.0)) * (U - U_42_)))) <= 0.0) {
tmp = sqrt((((2.0 * U) * t) * n));
} else {
tmp = sqrt((t_2 * fma(-2.0, t_1, t)));
}
return tmp;
}
function code(n, U, t, l, Om, U_42_) t_1 = Float64(Float64(l * l) / Om) t_2 = Float64(Float64(2.0 * n) * U) tmp = 0.0 if (Float64(t_2 * Float64(Float64(t - Float64(2.0 * t_1)) - Float64(Float64(n * (Float64(l / Om) ^ 2.0)) * Float64(U - U_42_)))) <= 0.0) tmp = sqrt(Float64(Float64(Float64(2.0 * U) * t) * n)); else tmp = sqrt(Float64(t_2 * fma(-2.0, t_1, t))); end return tmp end
code[n_, U_, t_, l_, Om_, U$42$_] := Block[{t$95$1 = N[(N[(l * l), $MachinePrecision] / Om), $MachinePrecision]}, Block[{t$95$2 = N[(N[(2.0 * n), $MachinePrecision] * U), $MachinePrecision]}, If[LessEqual[N[(t$95$2 * N[(N[(t - N[(2.0 * t$95$1), $MachinePrecision]), $MachinePrecision] - N[(N[(n * N[Power[N[(l / Om), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision] * N[(U - U$42$), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 0.0], N[Sqrt[N[(N[(N[(2.0 * U), $MachinePrecision] * t), $MachinePrecision] * n), $MachinePrecision]], $MachinePrecision], N[Sqrt[N[(t$95$2 * N[(-2.0 * t$95$1 + t), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{\ell \cdot \ell}{Om}\\
t_2 := \left(2 \cdot n\right) \cdot U\\
\mathbf{if}\;t\_2 \cdot \left(\left(t - 2 \cdot t\_1\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right) \leq 0:\\
\;\;\;\;\sqrt{\left(\left(2 \cdot U\right) \cdot t\right) \cdot n}\\
\mathbf{else}:\\
\;\;\;\;\sqrt{t\_2 \cdot \mathsf{fma}\left(-2, t\_1, t\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*)))) < 0.0Initial program 12.3%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f64N/A
lower-*.f6427.9
Applied rewrites27.9%
Applied rewrites30.5%
if 0.0 < (*.f64 (*.f64 (*.f64 #s(literal 2 binary64) n) U) (-.f64 (-.f64 t (*.f64 #s(literal 2 binary64) (/.f64 (*.f64 l l) Om))) (*.f64 (*.f64 n (pow.f64 (/.f64 l Om) #s(literal 2 binary64))) (-.f64 U U*)))) Initial program 63.8%
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-*.f6455.0
Applied rewrites55.0%
(FPCore (n U t l Om U*)
:precision binary64
(let* ((t_1 (fma (/ l Om) (fma (* (/ l Om) n) (- U* U) (* -2.0 l)) t)))
(if (<= U -1.38e+127)
(*
(sqrt (* (* U n) (fma l (/ (fma -2.0 l (/ (* U* (* l n)) Om)) Om) t)))
(sqrt 2.0))
(if (<= U 2.15e-305)
(sqrt (* (* t_1 U) (* 2.0 n)))
(* (sqrt (* (* 2.0 n) t_1)) (sqrt U))))))
double code(double n, double U, double t, double l, double Om, double U_42_) {
double t_1 = fma((l / Om), fma(((l / Om) * n), (U_42_ - U), (-2.0 * l)), t);
double tmp;
if (U <= -1.38e+127) {
tmp = sqrt(((U * n) * fma(l, (fma(-2.0, l, ((U_42_ * (l * n)) / Om)) / Om), t))) * sqrt(2.0);
} else if (U <= 2.15e-305) {
tmp = sqrt(((t_1 * U) * (2.0 * n)));
} else {
tmp = sqrt(((2.0 * n) * t_1)) * sqrt(U);
}
return tmp;
}
function code(n, U, t, l, Om, U_42_) t_1 = fma(Float64(l / Om), fma(Float64(Float64(l / Om) * n), Float64(U_42_ - U), Float64(-2.0 * l)), t) tmp = 0.0 if (U <= -1.38e+127) tmp = Float64(sqrt(Float64(Float64(U * n) * fma(l, Float64(fma(-2.0, l, Float64(Float64(U_42_ * Float64(l * n)) / Om)) / Om), t))) * sqrt(2.0)); elseif (U <= 2.15e-305) tmp = sqrt(Float64(Float64(t_1 * U) * Float64(2.0 * n))); else tmp = Float64(sqrt(Float64(Float64(2.0 * n) * t_1)) * sqrt(U)); end return tmp end
code[n_, U_, t_, l_, Om_, U$42$_] := Block[{t$95$1 = N[(N[(l / Om), $MachinePrecision] * N[(N[(N[(l / Om), $MachinePrecision] * n), $MachinePrecision] * N[(U$42$ - U), $MachinePrecision] + N[(-2.0 * l), $MachinePrecision]), $MachinePrecision] + t), $MachinePrecision]}, If[LessEqual[U, -1.38e+127], N[(N[Sqrt[N[(N[(U * n), $MachinePrecision] * N[(l * N[(N[(-2.0 * l + N[(N[(U$42$ * N[(l * n), $MachinePrecision]), $MachinePrecision] / Om), $MachinePrecision]), $MachinePrecision] / Om), $MachinePrecision] + t), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * N[Sqrt[2.0], $MachinePrecision]), $MachinePrecision], If[LessEqual[U, 2.15e-305], N[Sqrt[N[(N[(t$95$1 * U), $MachinePrecision] * N[(2.0 * n), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], N[(N[Sqrt[N[(N[(2.0 * n), $MachinePrecision] * t$95$1), $MachinePrecision]], $MachinePrecision] * N[Sqrt[U], $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(\frac{\ell}{Om}, \mathsf{fma}\left(\frac{\ell}{Om} \cdot n, U* - U, -2 \cdot \ell\right), t\right)\\
\mathbf{if}\;U \leq -1.38 \cdot 10^{+127}:\\
\;\;\;\;\sqrt{\left(U \cdot n\right) \cdot \mathsf{fma}\left(\ell, \frac{\mathsf{fma}\left(-2, \ell, \frac{U* \cdot \left(\ell \cdot n\right)}{Om}\right)}{Om}, t\right)} \cdot \sqrt{2}\\
\mathbf{elif}\;U \leq 2.15 \cdot 10^{-305}:\\
\;\;\;\;\sqrt{\left(t\_1 \cdot U\right) \cdot \left(2 \cdot n\right)}\\
\mathbf{else}:\\
\;\;\;\;\sqrt{\left(2 \cdot n\right) \cdot t\_1} \cdot \sqrt{U}\\
\end{array}
\end{array}
if U < -1.3799999999999999e127Initial program 68.5%
lift--.f64N/A
sub-negN/A
+-commutativeN/A
lift-*.f64N/A
*-commutativeN/A
distribute-lft-neg-inN/A
lift-*.f64N/A
*-commutativeN/A
lift-pow.f64N/A
unpow2N/A
associate-*l*N/A
associate-*r*N/A
lower-fma.f64N/A
lower-*.f64N/A
lower-neg.f64N/A
lower-*.f6468.6
lift--.f64N/A
Applied rewrites68.6%
lift-*.f64N/A
*-commutativeN/A
lift-*.f6468.6
lower-fma.f64N/A
lift-*.f64N/A
*-commutativeN/A
associate-*r*N/A
lift-*.f64N/A
lower-fma.f6468.7
lift-*.f64N/A
*-commutativeN/A
lower-*.f6468.7
lift-fma.f64N/A
*-commutativeN/A
lower-fma.f6468.7
Applied rewrites74.9%
lift-*.f64N/A
*-commutativeN/A
lower-*.f6474.9
Applied rewrites65.1%
Taylor expanded in U around 0
lower-*.f64N/A
Applied rewrites72.9%
if -1.3799999999999999e127 < U < 2.1500000000000001e-305Initial program 53.2%
lift--.f64N/A
sub-negN/A
+-commutativeN/A
lift-*.f64N/A
*-commutativeN/A
distribute-lft-neg-inN/A
lift-*.f64N/A
*-commutativeN/A
lift-pow.f64N/A
unpow2N/A
associate-*l*N/A
associate-*r*N/A
lower-fma.f64N/A
lower-*.f64N/A
lower-neg.f64N/A
lower-*.f6456.1
lift--.f64N/A
Applied rewrites56.1%
lift-*.f64N/A
*-commutativeN/A
lift-*.f6456.1
lower-fma.f64N/A
lift-*.f64N/A
*-commutativeN/A
associate-*r*N/A
lift-*.f64N/A
lower-fma.f6455.2
lift-*.f64N/A
*-commutativeN/A
lower-*.f6455.2
lift-fma.f64N/A
*-commutativeN/A
lower-fma.f6455.2
Applied rewrites58.1%
lift-*.f64N/A
*-commutativeN/A
lower-*.f6458.1
Applied rewrites58.1%
Applied rewrites65.6%
if 2.1500000000000001e-305 < U Initial program 58.2%
lift--.f64N/A
sub-negN/A
+-commutativeN/A
lift-*.f64N/A
*-commutativeN/A
distribute-lft-neg-inN/A
lift-*.f64N/A
*-commutativeN/A
lift-pow.f64N/A
unpow2N/A
associate-*l*N/A
associate-*r*N/A
lower-fma.f64N/A
lower-*.f64N/A
lower-neg.f64N/A
lower-*.f6458.5
lift--.f64N/A
Applied rewrites58.5%
lift-*.f64N/A
*-commutativeN/A
lift-*.f6458.5
lower-fma.f64N/A
lift-*.f64N/A
*-commutativeN/A
associate-*r*N/A
lift-*.f64N/A
lower-fma.f6458.5
lift-*.f64N/A
*-commutativeN/A
lower-*.f6458.5
lift-fma.f64N/A
*-commutativeN/A
lower-fma.f6458.5
Applied rewrites59.4%
lift-*.f64N/A
*-commutativeN/A
lower-*.f6459.4
Applied rewrites60.4%
lift-sqrt.f64N/A
pow1/2N/A
lift-*.f64N/A
lift-*.f64N/A
associate-*r*N/A
unpow-prod-downN/A
lower-*.f64N/A
Applied rewrites71.2%
(FPCore (n U t l Om U*)
:precision binary64
(if (or (<= U -1.38e+133) (not (<= U 6e+41)))
(*
(sqrt (* (* U n) (fma l (/ (fma -2.0 l (/ (* U* (* l n)) Om)) Om) t)))
(sqrt 2.0))
(sqrt
(*
(* (fma (/ l Om) (fma (* (/ l Om) n) (- U* U) (* -2.0 l)) t) U)
(* 2.0 n)))))
double code(double n, double U, double t, double l, double Om, double U_42_) {
double tmp;
if ((U <= -1.38e+133) || !(U <= 6e+41)) {
tmp = sqrt(((U * n) * fma(l, (fma(-2.0, l, ((U_42_ * (l * n)) / Om)) / Om), t))) * sqrt(2.0);
} else {
tmp = sqrt(((fma((l / Om), fma(((l / Om) * n), (U_42_ - U), (-2.0 * l)), t) * U) * (2.0 * n)));
}
return tmp;
}
function code(n, U, t, l, Om, U_42_) tmp = 0.0 if ((U <= -1.38e+133) || !(U <= 6e+41)) tmp = Float64(sqrt(Float64(Float64(U * n) * fma(l, Float64(fma(-2.0, l, Float64(Float64(U_42_ * Float64(l * n)) / Om)) / Om), t))) * sqrt(2.0)); else tmp = sqrt(Float64(Float64(fma(Float64(l / Om), fma(Float64(Float64(l / Om) * n), Float64(U_42_ - U), Float64(-2.0 * l)), t) * U) * Float64(2.0 * n))); end return tmp end
code[n_, U_, t_, l_, Om_, U$42$_] := If[Or[LessEqual[U, -1.38e+133], N[Not[LessEqual[U, 6e+41]], $MachinePrecision]], N[(N[Sqrt[N[(N[(U * n), $MachinePrecision] * N[(l * N[(N[(-2.0 * l + N[(N[(U$42$ * N[(l * n), $MachinePrecision]), $MachinePrecision] / Om), $MachinePrecision]), $MachinePrecision] / Om), $MachinePrecision] + t), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * N[Sqrt[2.0], $MachinePrecision]), $MachinePrecision], N[Sqrt[N[(N[(N[(N[(l / Om), $MachinePrecision] * N[(N[(N[(l / Om), $MachinePrecision] * n), $MachinePrecision] * N[(U$42$ - U), $MachinePrecision] + N[(-2.0 * l), $MachinePrecision]), $MachinePrecision] + t), $MachinePrecision] * U), $MachinePrecision] * N[(2.0 * n), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;U \leq -1.38 \cdot 10^{+133} \lor \neg \left(U \leq 6 \cdot 10^{+41}\right):\\
\;\;\;\;\sqrt{\left(U \cdot n\right) \cdot \mathsf{fma}\left(\ell, \frac{\mathsf{fma}\left(-2, \ell, \frac{U* \cdot \left(\ell \cdot n\right)}{Om}\right)}{Om}, t\right)} \cdot \sqrt{2}\\
\mathbf{else}:\\
\;\;\;\;\sqrt{\left(\mathsf{fma}\left(\frac{\ell}{Om}, \mathsf{fma}\left(\frac{\ell}{Om} \cdot n, U* - U, -2 \cdot \ell\right), t\right) \cdot U\right) \cdot \left(2 \cdot n\right)}\\
\end{array}
\end{array}
if U < -1.38000000000000009e133 or 5.9999999999999997e41 < U Initial program 69.1%
lift--.f64N/A
sub-negN/A
+-commutativeN/A
lift-*.f64N/A
*-commutativeN/A
distribute-lft-neg-inN/A
lift-*.f64N/A
*-commutativeN/A
lift-pow.f64N/A
unpow2N/A
associate-*l*N/A
associate-*r*N/A
lower-fma.f64N/A
lower-*.f64N/A
lower-neg.f64N/A
lower-*.f6469.4
lift--.f64N/A
Applied rewrites69.4%
lift-*.f64N/A
*-commutativeN/A
lift-*.f6469.4
lower-fma.f64N/A
lift-*.f64N/A
*-commutativeN/A
associate-*r*N/A
lift-*.f64N/A
lower-fma.f6469.5
lift-*.f64N/A
*-commutativeN/A
lower-*.f6469.5
lift-fma.f64N/A
*-commutativeN/A
lower-fma.f6469.5
Applied rewrites72.2%
lift-*.f64N/A
*-commutativeN/A
lower-*.f6472.2
Applied rewrites67.6%
Taylor expanded in U around 0
lower-*.f64N/A
Applied rewrites72.3%
if -1.38000000000000009e133 < U < 5.9999999999999997e41Initial program 52.8%
lift--.f64N/A
sub-negN/A
+-commutativeN/A
lift-*.f64N/A
*-commutativeN/A
distribute-lft-neg-inN/A
lift-*.f64N/A
*-commutativeN/A
lift-pow.f64N/A
unpow2N/A
associate-*l*N/A
associate-*r*N/A
lower-fma.f64N/A
lower-*.f64N/A
lower-neg.f64N/A
lower-*.f6454.5
lift--.f64N/A
Applied rewrites54.5%
lift-*.f64N/A
*-commutativeN/A
lift-*.f6454.5
lower-fma.f64N/A
lift-*.f64N/A
*-commutativeN/A
associate-*r*N/A
lift-*.f64N/A
lower-fma.f6454.0
lift-*.f64N/A
*-commutativeN/A
lower-*.f6454.0
lift-fma.f64N/A
*-commutativeN/A
lower-fma.f6454.0
Applied rewrites56.2%
lift-*.f64N/A
*-commutativeN/A
lower-*.f6456.2
Applied rewrites57.1%
Applied rewrites64.4%
Final simplification66.6%
(FPCore (n U t l Om U*)
:precision binary64
(let* ((t_1 (* (* 2.0 n) U)))
(if (<= U -3.6e+133)
(sqrt (* (fma (/ l Om) (* -2.0 l) t) t_1))
(if (<= U 5.8e+35)
(sqrt
(*
(* (fma (/ l Om) (fma (* (/ l Om) n) (- U* U) (* -2.0 l)) t) U)
(* 2.0 n)))
(sqrt (* t_1 (- t (/ (* (* l l) (fma (- U U*) (/ n Om) 2.0)) Om))))))))
double code(double n, double U, double t, double l, double Om, double U_42_) {
double t_1 = (2.0 * n) * U;
double tmp;
if (U <= -3.6e+133) {
tmp = sqrt((fma((l / Om), (-2.0 * l), t) * t_1));
} else if (U <= 5.8e+35) {
tmp = sqrt(((fma((l / Om), fma(((l / Om) * n), (U_42_ - U), (-2.0 * l)), t) * U) * (2.0 * n)));
} else {
tmp = sqrt((t_1 * (t - (((l * l) * fma((U - U_42_), (n / Om), 2.0)) / Om))));
}
return tmp;
}
function code(n, U, t, l, Om, U_42_) t_1 = Float64(Float64(2.0 * n) * U) tmp = 0.0 if (U <= -3.6e+133) tmp = sqrt(Float64(fma(Float64(l / Om), Float64(-2.0 * l), t) * t_1)); elseif (U <= 5.8e+35) tmp = sqrt(Float64(Float64(fma(Float64(l / Om), fma(Float64(Float64(l / Om) * n), Float64(U_42_ - U), Float64(-2.0 * l)), t) * U) * Float64(2.0 * n))); else tmp = sqrt(Float64(t_1 * Float64(t - Float64(Float64(Float64(l * l) * fma(Float64(U - U_42_), Float64(n / Om), 2.0)) / Om)))); end return tmp end
code[n_, U_, t_, l_, Om_, U$42$_] := Block[{t$95$1 = N[(N[(2.0 * n), $MachinePrecision] * U), $MachinePrecision]}, If[LessEqual[U, -3.6e+133], N[Sqrt[N[(N[(N[(l / Om), $MachinePrecision] * N[(-2.0 * l), $MachinePrecision] + t), $MachinePrecision] * t$95$1), $MachinePrecision]], $MachinePrecision], If[LessEqual[U, 5.8e+35], N[Sqrt[N[(N[(N[(N[(l / Om), $MachinePrecision] * N[(N[(N[(l / Om), $MachinePrecision] * n), $MachinePrecision] * N[(U$42$ - U), $MachinePrecision] + N[(-2.0 * l), $MachinePrecision]), $MachinePrecision] + t), $MachinePrecision] * U), $MachinePrecision] * N[(2.0 * n), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], N[Sqrt[N[(t$95$1 * N[(t - N[(N[(N[(l * l), $MachinePrecision] * N[(N[(U - U$42$), $MachinePrecision] * N[(n / Om), $MachinePrecision] + 2.0), $MachinePrecision]), $MachinePrecision] / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(2 \cdot n\right) \cdot U\\
\mathbf{if}\;U \leq -3.6 \cdot 10^{+133}:\\
\;\;\;\;\sqrt{\mathsf{fma}\left(\frac{\ell}{Om}, -2 \cdot \ell, t\right) \cdot t\_1}\\
\mathbf{elif}\;U \leq 5.8 \cdot 10^{+35}:\\
\;\;\;\;\sqrt{\left(\mathsf{fma}\left(\frac{\ell}{Om}, \mathsf{fma}\left(\frac{\ell}{Om} \cdot n, U* - U, -2 \cdot \ell\right), t\right) \cdot U\right) \cdot \left(2 \cdot n\right)}\\
\mathbf{else}:\\
\;\;\;\;\sqrt{t\_1 \cdot \left(t - \frac{\left(\ell \cdot \ell\right) \cdot \mathsf{fma}\left(U - U*, \frac{n}{Om}, 2\right)}{Om}\right)}\\
\end{array}
\end{array}
if U < -3.59999999999999978e133Initial program 69.6%
lift--.f64N/A
sub-negN/A
+-commutativeN/A
lift-*.f64N/A
*-commutativeN/A
distribute-lft-neg-inN/A
lift-*.f64N/A
*-commutativeN/A
lift-pow.f64N/A
unpow2N/A
associate-*l*N/A
associate-*r*N/A
lower-fma.f64N/A
lower-*.f64N/A
lower-neg.f64N/A
lower-*.f6469.8
lift--.f64N/A
Applied rewrites69.8%
lift-*.f64N/A
*-commutativeN/A
lift-*.f6469.8
lower-fma.f64N/A
lift-*.f64N/A
*-commutativeN/A
associate-*r*N/A
lift-*.f64N/A
lower-fma.f6469.8
lift-*.f64N/A
*-commutativeN/A
lower-*.f6469.8
lift-fma.f64N/A
*-commutativeN/A
lower-fma.f6469.8
Applied rewrites76.5%
lift-*.f64N/A
*-commutativeN/A
lower-*.f6476.5
Applied rewrites66.0%
Taylor expanded in n around 0
lower-*.f6474.0
Applied rewrites74.0%
if -3.59999999999999978e133 < U < 5.79999999999999989e35Initial program 52.5%
lift--.f64N/A
sub-negN/A
+-commutativeN/A
lift-*.f64N/A
*-commutativeN/A
distribute-lft-neg-inN/A
lift-*.f64N/A
*-commutativeN/A
lift-pow.f64N/A
unpow2N/A
associate-*l*N/A
associate-*r*N/A
lower-fma.f64N/A
lower-*.f64N/A
lower-neg.f64N/A
lower-*.f6454.2
lift--.f64N/A
Applied rewrites54.2%
lift-*.f64N/A
*-commutativeN/A
lift-*.f6454.2
lower-fma.f64N/A
lift-*.f64N/A
*-commutativeN/A
associate-*r*N/A
lift-*.f64N/A
lower-fma.f6453.7
lift-*.f64N/A
*-commutativeN/A
lower-*.f6453.7
lift-fma.f64N/A
*-commutativeN/A
lower-fma.f6453.7
Applied rewrites56.0%
lift-*.f64N/A
*-commutativeN/A
lower-*.f6456.0
Applied rewrites56.8%
Applied rewrites64.2%
if 5.79999999999999989e35 < U Initial program 69.4%
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 rewrites71.6%
(FPCore (n U t l Om U*)
:precision binary64
(let* ((t_1 (* (* 2.0 n) U)))
(if (<= U -1.8e+131)
(sqrt (* (fma (/ l Om) (* -2.0 l) t) t_1))
(if (<= U 2.4e-53)
(sqrt
(*
(* (fma (/ l Om) (fma (* n (- U* U)) (/ l Om) (* -2.0 l)) t) U)
(* 2.0 n)))
(sqrt (* t_1 (- t (/ (* (* l l) (fma (- U U*) (/ n Om) 2.0)) Om))))))))
double code(double n, double U, double t, double l, double Om, double U_42_) {
double t_1 = (2.0 * n) * U;
double tmp;
if (U <= -1.8e+131) {
tmp = sqrt((fma((l / Om), (-2.0 * l), t) * t_1));
} else if (U <= 2.4e-53) {
tmp = sqrt(((fma((l / Om), fma((n * (U_42_ - U)), (l / Om), (-2.0 * l)), t) * U) * (2.0 * n)));
} else {
tmp = sqrt((t_1 * (t - (((l * l) * fma((U - U_42_), (n / Om), 2.0)) / Om))));
}
return tmp;
}
function code(n, U, t, l, Om, U_42_) t_1 = Float64(Float64(2.0 * n) * U) tmp = 0.0 if (U <= -1.8e+131) tmp = sqrt(Float64(fma(Float64(l / Om), Float64(-2.0 * l), t) * t_1)); elseif (U <= 2.4e-53) tmp = sqrt(Float64(Float64(fma(Float64(l / Om), fma(Float64(n * Float64(U_42_ - U)), Float64(l / Om), Float64(-2.0 * l)), t) * U) * Float64(2.0 * n))); else tmp = sqrt(Float64(t_1 * Float64(t - Float64(Float64(Float64(l * l) * fma(Float64(U - U_42_), Float64(n / Om), 2.0)) / Om)))); end return tmp end
code[n_, U_, t_, l_, Om_, U$42$_] := Block[{t$95$1 = N[(N[(2.0 * n), $MachinePrecision] * U), $MachinePrecision]}, If[LessEqual[U, -1.8e+131], N[Sqrt[N[(N[(N[(l / Om), $MachinePrecision] * N[(-2.0 * l), $MachinePrecision] + t), $MachinePrecision] * t$95$1), $MachinePrecision]], $MachinePrecision], If[LessEqual[U, 2.4e-53], N[Sqrt[N[(N[(N[(N[(l / Om), $MachinePrecision] * N[(N[(n * N[(U$42$ - U), $MachinePrecision]), $MachinePrecision] * N[(l / Om), $MachinePrecision] + N[(-2.0 * l), $MachinePrecision]), $MachinePrecision] + t), $MachinePrecision] * U), $MachinePrecision] * N[(2.0 * n), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], N[Sqrt[N[(t$95$1 * N[(t - N[(N[(N[(l * l), $MachinePrecision] * N[(N[(U - U$42$), $MachinePrecision] * N[(n / Om), $MachinePrecision] + 2.0), $MachinePrecision]), $MachinePrecision] / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(2 \cdot n\right) \cdot U\\
\mathbf{if}\;U \leq -1.8 \cdot 10^{+131}:\\
\;\;\;\;\sqrt{\mathsf{fma}\left(\frac{\ell}{Om}, -2 \cdot \ell, t\right) \cdot t\_1}\\
\mathbf{elif}\;U \leq 2.4 \cdot 10^{-53}:\\
\;\;\;\;\sqrt{\left(\mathsf{fma}\left(\frac{\ell}{Om}, \mathsf{fma}\left(n \cdot \left(U* - U\right), \frac{\ell}{Om}, -2 \cdot \ell\right), t\right) \cdot U\right) \cdot \left(2 \cdot n\right)}\\
\mathbf{else}:\\
\;\;\;\;\sqrt{t\_1 \cdot \left(t - \frac{\left(\ell \cdot \ell\right) \cdot \mathsf{fma}\left(U - U*, \frac{n}{Om}, 2\right)}{Om}\right)}\\
\end{array}
\end{array}
if U < -1.80000000000000016e131Initial program 69.6%
lift--.f64N/A
sub-negN/A
+-commutativeN/A
lift-*.f64N/A
*-commutativeN/A
distribute-lft-neg-inN/A
lift-*.f64N/A
*-commutativeN/A
lift-pow.f64N/A
unpow2N/A
associate-*l*N/A
associate-*r*N/A
lower-fma.f64N/A
lower-*.f64N/A
lower-neg.f64N/A
lower-*.f6469.8
lift--.f64N/A
Applied rewrites69.8%
lift-*.f64N/A
*-commutativeN/A
lift-*.f6469.8
lower-fma.f64N/A
lift-*.f64N/A
*-commutativeN/A
associate-*r*N/A
lift-*.f64N/A
lower-fma.f6469.8
lift-*.f64N/A
*-commutativeN/A
lower-*.f6469.8
lift-fma.f64N/A
*-commutativeN/A
lower-fma.f6469.8
Applied rewrites76.5%
lift-*.f64N/A
*-commutativeN/A
lower-*.f6476.5
Applied rewrites66.0%
Taylor expanded in n around 0
lower-*.f6474.0
Applied rewrites74.0%
if -1.80000000000000016e131 < U < 2.40000000000000007e-53Initial program 50.6%
lift--.f64N/A
sub-negN/A
+-commutativeN/A
lift-*.f64N/A
*-commutativeN/A
distribute-lft-neg-inN/A
lift-*.f64N/A
*-commutativeN/A
lift-pow.f64N/A
unpow2N/A
associate-*l*N/A
associate-*r*N/A
lower-fma.f64N/A
lower-*.f64N/A
lower-neg.f64N/A
lower-*.f6452.5
lift--.f64N/A
Applied rewrites52.5%
lift-*.f64N/A
*-commutativeN/A
lift-*.f6452.5
lower-fma.f64N/A
lift-*.f64N/A
*-commutativeN/A
associate-*r*N/A
lift-*.f64N/A
lower-fma.f6451.9
lift-*.f64N/A
*-commutativeN/A
lower-*.f6451.9
lift-fma.f64N/A
*-commutativeN/A
lower-fma.f6451.9
Applied rewrites54.4%
lift-*.f64N/A
lift-*.f64N/A
associate-*l*N/A
*-commutativeN/A
lower-*.f64N/A
Applied rewrites62.2%
if 2.40000000000000007e-53 < U Initial program 69.9%
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 rewrites71.7%
(FPCore (n U t l Om U*)
:precision binary64
(if (<= l 1.12e-13)
(sqrt (* (fma (/ l Om) (/ (* U* (* l n)) Om) t) (* (* 2.0 n) U)))
(if (<= l 3.4e+151)
(sqrt
(*
(* (fma (* (- l) l) (/ (fma (/ n Om) (- U U*) 2.0) Om) t) (* 2.0 n))
U))
(sqrt
(*
2.0
(/ (* U (* l (* n (fma -2.0 l (/ (* l (* n (- U* U))) Om))))) Om))))))
double code(double n, double U, double t, double l, double Om, double U_42_) {
double tmp;
if (l <= 1.12e-13) {
tmp = sqrt((fma((l / Om), ((U_42_ * (l * n)) / Om), t) * ((2.0 * n) * U)));
} else if (l <= 3.4e+151) {
tmp = sqrt(((fma((-l * l), (fma((n / Om), (U - U_42_), 2.0) / Om), t) * (2.0 * n)) * U));
} else {
tmp = sqrt((2.0 * ((U * (l * (n * fma(-2.0, l, ((l * (n * (U_42_ - U))) / Om))))) / Om)));
}
return tmp;
}
function code(n, U, t, l, Om, U_42_) tmp = 0.0 if (l <= 1.12e-13) tmp = sqrt(Float64(fma(Float64(l / Om), Float64(Float64(U_42_ * Float64(l * n)) / Om), t) * Float64(Float64(2.0 * n) * U))); elseif (l <= 3.4e+151) tmp = sqrt(Float64(Float64(fma(Float64(Float64(-l) * l), Float64(fma(Float64(n / Om), Float64(U - U_42_), 2.0) / Om), t) * Float64(2.0 * n)) * U)); else tmp = sqrt(Float64(2.0 * Float64(Float64(U * Float64(l * Float64(n * fma(-2.0, l, Float64(Float64(l * Float64(n * Float64(U_42_ - U))) / Om))))) / Om))); end return tmp end
code[n_, U_, t_, l_, Om_, U$42$_] := If[LessEqual[l, 1.12e-13], N[Sqrt[N[(N[(N[(l / Om), $MachinePrecision] * N[(N[(U$42$ * N[(l * n), $MachinePrecision]), $MachinePrecision] / Om), $MachinePrecision] + t), $MachinePrecision] * N[(N[(2.0 * n), $MachinePrecision] * U), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], If[LessEqual[l, 3.4e+151], N[Sqrt[N[(N[(N[(N[((-l) * l), $MachinePrecision] * N[(N[(N[(n / Om), $MachinePrecision] * N[(U - U$42$), $MachinePrecision] + 2.0), $MachinePrecision] / Om), $MachinePrecision] + t), $MachinePrecision] * N[(2.0 * n), $MachinePrecision]), $MachinePrecision] * U), $MachinePrecision]], $MachinePrecision], N[Sqrt[N[(2.0 * N[(N[(U * N[(l * N[(n * N[(-2.0 * l + N[(N[(l * N[(n * N[(U$42$ - U), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / Om), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;\ell \leq 1.12 \cdot 10^{-13}:\\
\;\;\;\;\sqrt{\mathsf{fma}\left(\frac{\ell}{Om}, \frac{U* \cdot \left(\ell \cdot n\right)}{Om}, t\right) \cdot \left(\left(2 \cdot n\right) \cdot U\right)}\\
\mathbf{elif}\;\ell \leq 3.4 \cdot 10^{+151}:\\
\;\;\;\;\sqrt{\left(\mathsf{fma}\left(\left(-\ell\right) \cdot \ell, \frac{\mathsf{fma}\left(\frac{n}{Om}, U - U*, 2\right)}{Om}, t\right) \cdot \left(2 \cdot n\right)\right) \cdot U}\\
\mathbf{else}:\\
\;\;\;\;\sqrt{2 \cdot \frac{U \cdot \left(\ell \cdot \left(n \cdot \mathsf{fma}\left(-2, \ell, \frac{\ell \cdot \left(n \cdot \left(U* - U\right)\right)}{Om}\right)\right)\right)}{Om}}\\
\end{array}
\end{array}
if l < 1.12e-13Initial program 61.7%
lift--.f64N/A
sub-negN/A
+-commutativeN/A
lift-*.f64N/A
*-commutativeN/A
distribute-lft-neg-inN/A
lift-*.f64N/A
*-commutativeN/A
lift-pow.f64N/A
unpow2N/A
associate-*l*N/A
associate-*r*N/A
lower-fma.f64N/A
lower-*.f64N/A
lower-neg.f64N/A
lower-*.f6463.3
lift--.f64N/A
Applied rewrites63.3%
lift-*.f64N/A
*-commutativeN/A
lift-*.f6463.3
lower-fma.f64N/A
lift-*.f64N/A
*-commutativeN/A
associate-*r*N/A
lift-*.f64N/A
lower-fma.f6462.4
lift-*.f64N/A
*-commutativeN/A
lower-*.f6462.4
lift-fma.f64N/A
*-commutativeN/A
lower-fma.f6462.4
Applied rewrites64.5%
lift-*.f64N/A
*-commutativeN/A
lower-*.f6464.5
Applied rewrites62.0%
Taylor expanded in U* around inf
lower-/.f64N/A
lower-*.f64N/A
lower-*.f6460.3
Applied rewrites60.3%
if 1.12e-13 < l < 3.4e151Initial program 65.4%
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 rewrites65.8%
lift-*.f64N/A
*-commutativeN/A
lift-*.f64N/A
associate-*r*N/A
lower-*.f64N/A
Applied rewrites67.0%
if 3.4e151 < l Initial program 16.1%
lift--.f64N/A
sub-negN/A
+-commutativeN/A
lift-*.f64N/A
*-commutativeN/A
distribute-lft-neg-inN/A
lift-*.f64N/A
*-commutativeN/A
lift-pow.f64N/A
unpow2N/A
associate-*l*N/A
associate-*r*N/A
lower-fma.f64N/A
lower-*.f64N/A
lower-neg.f64N/A
lower-*.f6416.8
lift--.f64N/A
Applied rewrites16.8%
lift-*.f64N/A
*-commutativeN/A
lift-*.f6416.8
lower-fma.f64N/A
lift-*.f64N/A
*-commutativeN/A
associate-*r*N/A
lift-*.f64N/A
lower-fma.f6417.1
lift-*.f64N/A
*-commutativeN/A
lower-*.f6417.1
lift-fma.f64N/A
*-commutativeN/A
lower-fma.f6417.1
Applied rewrites24.4%
lift-*.f64N/A
*-commutativeN/A
lower-*.f6424.4
Applied rewrites35.7%
Taylor expanded in t around 0
lower-*.f64N/A
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--.f6446.7
Applied rewrites46.7%
(FPCore (n U t l Om U*)
:precision binary64
(let* ((t_1 (* (* 2.0 n) U)))
(if (<= l 1e-133)
(sqrt (* (fma (/ l Om) (/ (* U* (* l n)) Om) t) t_1))
(if (<= l 7.2e+142)
(sqrt (* t_1 (- t (/ (* (* l l) (fma (- U U*) (/ n Om) 2.0)) Om))))
(sqrt (fma (/ (* (* U l) (* n l)) Om) -4.0 (* (* (* n t) U) 2.0)))))))
double code(double n, double U, double t, double l, double Om, double U_42_) {
double t_1 = (2.0 * n) * U;
double tmp;
if (l <= 1e-133) {
tmp = sqrt((fma((l / Om), ((U_42_ * (l * n)) / Om), t) * t_1));
} else if (l <= 7.2e+142) {
tmp = sqrt((t_1 * (t - (((l * l) * fma((U - U_42_), (n / Om), 2.0)) / Om))));
} else {
tmp = sqrt(fma((((U * l) * (n * l)) / Om), -4.0, (((n * t) * U) * 2.0)));
}
return tmp;
}
function code(n, U, t, l, Om, U_42_) t_1 = Float64(Float64(2.0 * n) * U) tmp = 0.0 if (l <= 1e-133) tmp = sqrt(Float64(fma(Float64(l / Om), Float64(Float64(U_42_ * Float64(l * n)) / Om), t) * t_1)); elseif (l <= 7.2e+142) tmp = sqrt(Float64(t_1 * Float64(t - Float64(Float64(Float64(l * l) * fma(Float64(U - U_42_), Float64(n / Om), 2.0)) / Om)))); else tmp = sqrt(fma(Float64(Float64(Float64(U * l) * Float64(n * l)) / Om), -4.0, Float64(Float64(Float64(n * t) * U) * 2.0))); end return tmp end
code[n_, U_, t_, l_, Om_, U$42$_] := Block[{t$95$1 = N[(N[(2.0 * n), $MachinePrecision] * U), $MachinePrecision]}, If[LessEqual[l, 1e-133], N[Sqrt[N[(N[(N[(l / Om), $MachinePrecision] * N[(N[(U$42$ * N[(l * n), $MachinePrecision]), $MachinePrecision] / Om), $MachinePrecision] + t), $MachinePrecision] * t$95$1), $MachinePrecision]], $MachinePrecision], If[LessEqual[l, 7.2e+142], N[Sqrt[N[(t$95$1 * N[(t - N[(N[(N[(l * l), $MachinePrecision] * N[(N[(U - U$42$), $MachinePrecision] * N[(n / Om), $MachinePrecision] + 2.0), $MachinePrecision]), $MachinePrecision] / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], N[Sqrt[N[(N[(N[(N[(U * l), $MachinePrecision] * N[(n * l), $MachinePrecision]), $MachinePrecision] / Om), $MachinePrecision] * -4.0 + N[(N[(N[(n * t), $MachinePrecision] * U), $MachinePrecision] * 2.0), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(2 \cdot n\right) \cdot U\\
\mathbf{if}\;\ell \leq 10^{-133}:\\
\;\;\;\;\sqrt{\mathsf{fma}\left(\frac{\ell}{Om}, \frac{U* \cdot \left(\ell \cdot n\right)}{Om}, t\right) \cdot t\_1}\\
\mathbf{elif}\;\ell \leq 7.2 \cdot 10^{+142}:\\
\;\;\;\;\sqrt{t\_1 \cdot \left(t - \frac{\left(\ell \cdot \ell\right) \cdot \mathsf{fma}\left(U - U*, \frac{n}{Om}, 2\right)}{Om}\right)}\\
\mathbf{else}:\\
\;\;\;\;\sqrt{\mathsf{fma}\left(\frac{\left(U \cdot \ell\right) \cdot \left(n \cdot \ell\right)}{Om}, -4, \left(\left(n \cdot t\right) \cdot U\right) \cdot 2\right)}\\
\end{array}
\end{array}
if l < 1.0000000000000001e-133Initial program 60.4%
lift--.f64N/A
sub-negN/A
+-commutativeN/A
lift-*.f64N/A
*-commutativeN/A
distribute-lft-neg-inN/A
lift-*.f64N/A
*-commutativeN/A
lift-pow.f64N/A
unpow2N/A
associate-*l*N/A
associate-*r*N/A
lower-fma.f64N/A
lower-*.f64N/A
lower-neg.f64N/A
lower-*.f6461.7
lift--.f64N/A
Applied rewrites61.7%
lift-*.f64N/A
*-commutativeN/A
lift-*.f6461.7
lower-fma.f64N/A
lift-*.f64N/A
*-commutativeN/A
associate-*r*N/A
lift-*.f64N/A
lower-fma.f6460.6
lift-*.f64N/A
*-commutativeN/A
lower-*.f6460.6
lift-fma.f64N/A
*-commutativeN/A
lower-fma.f6460.6
Applied rewrites63.1%
lift-*.f64N/A
*-commutativeN/A
lower-*.f6463.1
Applied rewrites60.1%
Taylor expanded in U* around inf
lower-/.f64N/A
lower-*.f64N/A
lower-*.f6458.9
Applied rewrites58.9%
if 1.0000000000000001e-133 < l < 7.2000000000000003e142Initial program 67.5%
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 rewrites70.7%
if 7.2000000000000003e142 < l Initial program 19.8%
Taylor expanded in Om around inf
*-commutativeN/A
lower-fma.f64N/A
lower-/.f64N/A
*-commutativeN/A
lower-*.f64N/A
lower-*.f64N/A
unpow2N/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f64N/A
lower-*.f6422.7
Applied rewrites22.7%
Applied rewrites41.8%
(FPCore (n U t l Om U*)
:precision binary64
(if (<= l 1.12e-13)
(sqrt (* (fma (/ l Om) (/ (* U* (* l n)) Om) t) (* (* 2.0 n) U)))
(if (<= l 1.8e+154)
(sqrt
(*
(* (fma (* (- l) l) (/ (fma (/ n Om) (- U U*) 2.0) Om) t) (* 2.0 n))
U))
(sqrt (fma (/ (* (* U l) (* n l)) Om) -4.0 (* (* (* n t) U) 2.0))))))
double code(double n, double U, double t, double l, double Om, double U_42_) {
double tmp;
if (l <= 1.12e-13) {
tmp = sqrt((fma((l / Om), ((U_42_ * (l * n)) / Om), t) * ((2.0 * n) * U)));
} else if (l <= 1.8e+154) {
tmp = sqrt(((fma((-l * l), (fma((n / Om), (U - U_42_), 2.0) / Om), t) * (2.0 * n)) * U));
} else {
tmp = sqrt(fma((((U * l) * (n * l)) / Om), -4.0, (((n * t) * U) * 2.0)));
}
return tmp;
}
function code(n, U, t, l, Om, U_42_) tmp = 0.0 if (l <= 1.12e-13) tmp = sqrt(Float64(fma(Float64(l / Om), Float64(Float64(U_42_ * Float64(l * n)) / Om), t) * Float64(Float64(2.0 * n) * U))); elseif (l <= 1.8e+154) tmp = sqrt(Float64(Float64(fma(Float64(Float64(-l) * l), Float64(fma(Float64(n / Om), Float64(U - U_42_), 2.0) / Om), t) * Float64(2.0 * n)) * U)); else tmp = sqrt(fma(Float64(Float64(Float64(U * l) * Float64(n * l)) / Om), -4.0, Float64(Float64(Float64(n * t) * U) * 2.0))); end return tmp end
code[n_, U_, t_, l_, Om_, U$42$_] := If[LessEqual[l, 1.12e-13], N[Sqrt[N[(N[(N[(l / Om), $MachinePrecision] * N[(N[(U$42$ * N[(l * n), $MachinePrecision]), $MachinePrecision] / Om), $MachinePrecision] + t), $MachinePrecision] * N[(N[(2.0 * n), $MachinePrecision] * U), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], If[LessEqual[l, 1.8e+154], N[Sqrt[N[(N[(N[(N[((-l) * l), $MachinePrecision] * N[(N[(N[(n / Om), $MachinePrecision] * N[(U - U$42$), $MachinePrecision] + 2.0), $MachinePrecision] / Om), $MachinePrecision] + t), $MachinePrecision] * N[(2.0 * n), $MachinePrecision]), $MachinePrecision] * U), $MachinePrecision]], $MachinePrecision], N[Sqrt[N[(N[(N[(N[(U * l), $MachinePrecision] * N[(n * l), $MachinePrecision]), $MachinePrecision] / Om), $MachinePrecision] * -4.0 + N[(N[(N[(n * t), $MachinePrecision] * U), $MachinePrecision] * 2.0), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;\ell \leq 1.12 \cdot 10^{-13}:\\
\;\;\;\;\sqrt{\mathsf{fma}\left(\frac{\ell}{Om}, \frac{U* \cdot \left(\ell \cdot n\right)}{Om}, t\right) \cdot \left(\left(2 \cdot n\right) \cdot U\right)}\\
\mathbf{elif}\;\ell \leq 1.8 \cdot 10^{+154}:\\
\;\;\;\;\sqrt{\left(\mathsf{fma}\left(\left(-\ell\right) \cdot \ell, \frac{\mathsf{fma}\left(\frac{n}{Om}, U - U*, 2\right)}{Om}, t\right) \cdot \left(2 \cdot n\right)\right) \cdot U}\\
\mathbf{else}:\\
\;\;\;\;\sqrt{\mathsf{fma}\left(\frac{\left(U \cdot \ell\right) \cdot \left(n \cdot \ell\right)}{Om}, -4, \left(\left(n \cdot t\right) \cdot U\right) \cdot 2\right)}\\
\end{array}
\end{array}
if l < 1.12e-13Initial program 61.7%
lift--.f64N/A
sub-negN/A
+-commutativeN/A
lift-*.f64N/A
*-commutativeN/A
distribute-lft-neg-inN/A
lift-*.f64N/A
*-commutativeN/A
lift-pow.f64N/A
unpow2N/A
associate-*l*N/A
associate-*r*N/A
lower-fma.f64N/A
lower-*.f64N/A
lower-neg.f64N/A
lower-*.f6463.3
lift--.f64N/A
Applied rewrites63.3%
lift-*.f64N/A
*-commutativeN/A
lift-*.f6463.3
lower-fma.f64N/A
lift-*.f64N/A
*-commutativeN/A
associate-*r*N/A
lift-*.f64N/A
lower-fma.f6462.4
lift-*.f64N/A
*-commutativeN/A
lower-*.f6462.4
lift-fma.f64N/A
*-commutativeN/A
lower-fma.f6462.4
Applied rewrites64.5%
lift-*.f64N/A
*-commutativeN/A
lower-*.f6464.5
Applied rewrites62.0%
Taylor expanded in U* around inf
lower-/.f64N/A
lower-*.f64N/A
lower-*.f6460.3
Applied rewrites60.3%
if 1.12e-13 < l < 1.8e154Initial program 65.4%
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 rewrites65.8%
lift-*.f64N/A
*-commutativeN/A
lift-*.f64N/A
associate-*r*N/A
lower-*.f64N/A
Applied rewrites67.0%
if 1.8e154 < l Initial program 16.1%
Taylor expanded in Om around inf
*-commutativeN/A
lower-fma.f64N/A
lower-/.f64N/A
*-commutativeN/A
lower-*.f64N/A
lower-*.f64N/A
unpow2N/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f64N/A
lower-*.f6417.6
Applied rewrites17.6%
Applied rewrites38.9%
(FPCore (n U t l Om U*) :precision binary64 (if (or (<= n -2.5e-70) (not (<= n 4.9e-33))) (sqrt (* (fma (/ l Om) (/ (* U* (* l n)) Om) t) (* (* 2.0 n) U))) (sqrt (fma (* l (* (* n l) (/ U Om))) -4.0 (* (* (* n t) U) 2.0)))))
double code(double n, double U, double t, double l, double Om, double U_42_) {
double tmp;
if ((n <= -2.5e-70) || !(n <= 4.9e-33)) {
tmp = sqrt((fma((l / Om), ((U_42_ * (l * n)) / Om), t) * ((2.0 * n) * U)));
} else {
tmp = sqrt(fma((l * ((n * l) * (U / Om))), -4.0, (((n * t) * U) * 2.0)));
}
return tmp;
}
function code(n, U, t, l, Om, U_42_) tmp = 0.0 if ((n <= -2.5e-70) || !(n <= 4.9e-33)) tmp = sqrt(Float64(fma(Float64(l / Om), Float64(Float64(U_42_ * Float64(l * n)) / Om), t) * Float64(Float64(2.0 * n) * U))); else tmp = sqrt(fma(Float64(l * Float64(Float64(n * l) * Float64(U / Om))), -4.0, Float64(Float64(Float64(n * t) * U) * 2.0))); end return tmp end
code[n_, U_, t_, l_, Om_, U$42$_] := If[Or[LessEqual[n, -2.5e-70], N[Not[LessEqual[n, 4.9e-33]], $MachinePrecision]], N[Sqrt[N[(N[(N[(l / Om), $MachinePrecision] * N[(N[(U$42$ * N[(l * n), $MachinePrecision]), $MachinePrecision] / Om), $MachinePrecision] + t), $MachinePrecision] * N[(N[(2.0 * n), $MachinePrecision] * U), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], N[Sqrt[N[(N[(l * N[(N[(n * l), $MachinePrecision] * N[(U / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * -4.0 + N[(N[(N[(n * t), $MachinePrecision] * U), $MachinePrecision] * 2.0), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;n \leq -2.5 \cdot 10^{-70} \lor \neg \left(n \leq 4.9 \cdot 10^{-33}\right):\\
\;\;\;\;\sqrt{\mathsf{fma}\left(\frac{\ell}{Om}, \frac{U* \cdot \left(\ell \cdot n\right)}{Om}, t\right) \cdot \left(\left(2 \cdot n\right) \cdot U\right)}\\
\mathbf{else}:\\
\;\;\;\;\sqrt{\mathsf{fma}\left(\ell \cdot \left(\left(n \cdot \ell\right) \cdot \frac{U}{Om}\right), -4, \left(\left(n \cdot t\right) \cdot U\right) \cdot 2\right)}\\
\end{array}
\end{array}
if n < -2.4999999999999999e-70 or 4.8999999999999998e-33 < n Initial program 60.7%
lift--.f64N/A
sub-negN/A
+-commutativeN/A
lift-*.f64N/A
*-commutativeN/A
distribute-lft-neg-inN/A
lift-*.f64N/A
*-commutativeN/A
lift-pow.f64N/A
unpow2N/A
associate-*l*N/A
associate-*r*N/A
lower-fma.f64N/A
lower-*.f64N/A
lower-neg.f64N/A
lower-*.f6462.5
lift--.f64N/A
Applied rewrites62.5%
lift-*.f64N/A
*-commutativeN/A
lift-*.f6462.5
lower-fma.f64N/A
lift-*.f64N/A
*-commutativeN/A
associate-*r*N/A
lift-*.f64N/A
lower-fma.f6461.0
lift-*.f64N/A
*-commutativeN/A
lower-*.f6461.0
lift-fma.f64N/A
*-commutativeN/A
lower-fma.f6461.0
Applied rewrites63.3%
lift-*.f64N/A
*-commutativeN/A
lower-*.f6463.3
Applied rewrites61.8%
Taylor expanded in U* around inf
lower-/.f64N/A
lower-*.f64N/A
lower-*.f6463.5
Applied rewrites63.5%
if -2.4999999999999999e-70 < n < 4.8999999999999998e-33Initial program 53.8%
Taylor expanded in Om around inf
*-commutativeN/A
lower-fma.f64N/A
lower-/.f64N/A
*-commutativeN/A
lower-*.f64N/A
lower-*.f64N/A
unpow2N/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f64N/A
lower-*.f6452.1
Applied rewrites52.1%
Applied rewrites60.8%
Final simplification62.2%
(FPCore (n U t l Om U*) :precision binary64 (if (<= l 2.05e-44) (sqrt (* (* (* 2.0 n) U) t)) (sqrt (* (* (* (fma -2.0 (/ (* l l) Om) t) n) U) 2.0))))
double code(double n, double U, double t, double l, double Om, double U_42_) {
double tmp;
if (l <= 2.05e-44) {
tmp = sqrt((((2.0 * n) * U) * t));
} else {
tmp = sqrt((((fma(-2.0, ((l * l) / Om), t) * n) * U) * 2.0));
}
return tmp;
}
function code(n, U, t, l, Om, U_42_) tmp = 0.0 if (l <= 2.05e-44) tmp = sqrt(Float64(Float64(Float64(2.0 * n) * U) * t)); else tmp = sqrt(Float64(Float64(Float64(fma(-2.0, Float64(Float64(l * l) / Om), t) * n) * U) * 2.0)); end return tmp end
code[n_, U_, t_, l_, Om_, U$42$_] := If[LessEqual[l, 2.05e-44], N[Sqrt[N[(N[(N[(2.0 * n), $MachinePrecision] * U), $MachinePrecision] * t), $MachinePrecision]], $MachinePrecision], N[Sqrt[N[(N[(N[(N[(-2.0 * N[(N[(l * l), $MachinePrecision] / Om), $MachinePrecision] + t), $MachinePrecision] * n), $MachinePrecision] * U), $MachinePrecision] * 2.0), $MachinePrecision]], $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;\ell \leq 2.05 \cdot 10^{-44}:\\
\;\;\;\;\sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot t}\\
\mathbf{else}:\\
\;\;\;\;\sqrt{\left(\left(\mathsf{fma}\left(-2, \frac{\ell \cdot \ell}{Om}, t\right) \cdot n\right) \cdot U\right) \cdot 2}\\
\end{array}
\end{array}
if l < 2.04999999999999996e-44Initial program 61.5%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f64N/A
lower-*.f6445.8
Applied rewrites45.8%
Applied rewrites50.8%
if 2.04999999999999996e-44 < l Initial program 46.4%
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-*.f6442.9
Applied rewrites42.9%
(FPCore (n U t l Om U*) :precision binary64 (sqrt (* (fma (/ l Om) (* -2.0 l) t) (* (* 2.0 n) U))))
double code(double n, double U, double t, double l, double Om, double U_42_) {
return sqrt((fma((l / Om), (-2.0 * l), t) * ((2.0 * n) * U)));
}
function code(n, U, t, l, Om, U_42_) return sqrt(Float64(fma(Float64(l / Om), Float64(-2.0 * l), t) * Float64(Float64(2.0 * n) * U))) end
code[n_, U_, t_, l_, Om_, U$42$_] := N[Sqrt[N[(N[(N[(l / Om), $MachinePrecision] * N[(-2.0 * l), $MachinePrecision] + t), $MachinePrecision] * N[(N[(2.0 * n), $MachinePrecision] * U), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]
\begin{array}{l}
\\
\sqrt{\mathsf{fma}\left(\frac{\ell}{Om}, -2 \cdot \ell, t\right) \cdot \left(\left(2 \cdot n\right) \cdot U\right)}
\end{array}
Initial program 57.4%
lift--.f64N/A
sub-negN/A
+-commutativeN/A
lift-*.f64N/A
*-commutativeN/A
distribute-lft-neg-inN/A
lift-*.f64N/A
*-commutativeN/A
lift-pow.f64N/A
unpow2N/A
associate-*l*N/A
associate-*r*N/A
lower-fma.f64N/A
lower-*.f64N/A
lower-neg.f64N/A
lower-*.f6458.7
lift--.f64N/A
Applied rewrites58.7%
lift-*.f64N/A
*-commutativeN/A
lift-*.f6458.7
lower-fma.f64N/A
lift-*.f64N/A
*-commutativeN/A
associate-*r*N/A
lift-*.f64N/A
lower-fma.f6458.4
lift-*.f64N/A
*-commutativeN/A
lower-*.f6458.4
lift-fma.f64N/A
*-commutativeN/A
lower-fma.f6458.4
Applied rewrites60.7%
lift-*.f64N/A
*-commutativeN/A
lower-*.f6460.7
Applied rewrites60.0%
Taylor expanded in n around 0
lower-*.f6452.2
Applied rewrites52.2%
(FPCore (n U t l Om U*) :precision binary64 (sqrt (* (* (* 2.0 n) U) t)))
double code(double n, double U, double t, double l, double Om, double U_42_) {
return sqrt((((2.0 * n) * U) * t));
}
real(8) function code(n, u, t, l, om, u_42)
real(8), intent (in) :: n
real(8), intent (in) :: u
real(8), intent (in) :: t
real(8), intent (in) :: l
real(8), intent (in) :: om
real(8), intent (in) :: u_42
code = sqrt((((2.0d0 * n) * u) * t))
end function
public static double code(double n, double U, double t, double l, double Om, double U_42_) {
return Math.sqrt((((2.0 * n) * U) * t));
}
def code(n, U, t, l, Om, U_42_): return math.sqrt((((2.0 * n) * U) * t))
function code(n, U, t, l, Om, U_42_) return sqrt(Float64(Float64(Float64(2.0 * n) * U) * t)) end
function tmp = code(n, U, t, l, Om, U_42_) tmp = sqrt((((2.0 * n) * U) * t)); end
code[n_, U_, t_, l_, Om_, U$42$_] := N[Sqrt[N[(N[(N[(2.0 * n), $MachinePrecision] * U), $MachinePrecision] * t), $MachinePrecision]], $MachinePrecision]
\begin{array}{l}
\\
\sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot t}
\end{array}
Initial program 57.4%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f64N/A
lower-*.f6440.2
Applied rewrites40.2%
Applied rewrites44.4%
(FPCore (n U t l Om U*) :precision binary64 (sqrt (* (* (* 2.0 U) t) n)))
double code(double n, double U, double t, double l, double Om, double U_42_) {
return sqrt((((2.0 * U) * t) * n));
}
real(8) function code(n, u, t, l, om, u_42)
real(8), intent (in) :: n
real(8), intent (in) :: u
real(8), intent (in) :: t
real(8), intent (in) :: l
real(8), intent (in) :: om
real(8), intent (in) :: u_42
code = sqrt((((2.0d0 * u) * t) * n))
end function
public static double code(double n, double U, double t, double l, double Om, double U_42_) {
return Math.sqrt((((2.0 * U) * t) * n));
}
def code(n, U, t, l, Om, U_42_): return math.sqrt((((2.0 * U) * t) * n))
function code(n, U, t, l, Om, U_42_) return sqrt(Float64(Float64(Float64(2.0 * U) * t) * n)) end
function tmp = code(n, U, t, l, Om, U_42_) tmp = sqrt((((2.0 * U) * t) * n)); end
code[n_, U_, t_, l_, Om_, U$42$_] := N[Sqrt[N[(N[(N[(2.0 * U), $MachinePrecision] * t), $MachinePrecision] * n), $MachinePrecision]], $MachinePrecision]
\begin{array}{l}
\\
\sqrt{\left(\left(2 \cdot U\right) \cdot t\right) \cdot n}
\end{array}
Initial program 57.4%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f64N/A
lower-*.f6440.2
Applied rewrites40.2%
Applied rewrites42.1%
herbie shell --seed 2024303
(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*))))))