Toniolo and Linder, Equation (13)

Percentage Accurate: 49.9% → 63.2%
Time: 17.8s
Alternatives: 17
Speedup: 2.8×

Specification

?
\[\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
 (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:

Local Percentage Accuracy vs ?

The average percentage accuracy by input value. Horizontal axis shows value of an input variable; the variable is choosen in the title. Vertical axis is accuracy; higher is better. Red represent the original program, while blue represents Herbie's suggestion. These can be toggled with buttons below the plot. The line is an average while dots represent individual samples.

Accuracy vs Speed?

Herbie found 17 alternatives:

AlternativeAccuracySpeedup
The accuracy (vertical axis) and speed (horizontal axis) of each alternatives. Up and to the right is better. The red square shows the initial program, and each blue circle shows an alternative.The line shows the best available speed-accuracy tradeoffs.

Initial Program: 49.9% accurate, 1.0× speedup?

\[\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
 (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}

Alternative 1: 63.2% accurate, 1.5× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(2 \cdot n\right) \cdot U\\ \mathbf{if}\;n \leq -1.1 \cdot 10^{-96}:\\ \;\;\;\;\sqrt{t\_1 \cdot \mathsf{fma}\left(\frac{\ell}{Om}, \mathsf{fma}\left(\frac{n}{\frac{Om}{\ell}}, U* - U, -2 \cdot \ell\right), t\right)}\\ \mathbf{elif}\;n \leq 2.3 \cdot 10^{-26}:\\ \;\;\;\;\sqrt{\mathsf{fma}\left(\frac{\ell}{Om}, \left(\left(\left(U* - U\right) \cdot n\right) \cdot \frac{\ell}{Om}\right) \cdot t\_1, \left(\left(\mathsf{fma}\left(-2 \cdot \ell, \frac{\ell}{Om}, t\right) \cdot n\right) \cdot U\right) \cdot 2\right)}\\ \mathbf{else}:\\ \;\;\;\;\sqrt{2 \cdot n} \cdot \sqrt{\mathsf{fma}\left(\frac{\ell}{Om}, \mathsf{fma}\left(\frac{\ell}{Om} \cdot n, U* - U, -2 \cdot \ell\right), t\right) \cdot U}\\ \end{array} \end{array} \]
(FPCore (n U t l Om U*)
 :precision binary64
 (let* ((t_1 (* (* 2.0 n) U)))
   (if (<= n -1.1e-96)
     (sqrt (* t_1 (fma (/ l Om) (fma (/ n (/ Om l)) (- U* U) (* -2.0 l)) t)))
     (if (<= n 2.3e-26)
       (sqrt
        (fma
         (/ l Om)
         (* (* (* (- U* U) n) (/ l Om)) t_1)
         (* (* (* (fma (* -2.0 l) (/ l Om) t) n) U) 2.0)))
       (*
        (sqrt (* 2.0 n))
        (sqrt
         (* (fma (/ l Om) (fma (* (/ l Om) n) (- U* U) (* -2.0 l)) t) U)))))))
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 (n <= -1.1e-96) {
		tmp = sqrt((t_1 * fma((l / Om), fma((n / (Om / l)), (U_42_ - U), (-2.0 * l)), t)));
	} else if (n <= 2.3e-26) {
		tmp = sqrt(fma((l / Om), ((((U_42_ - U) * n) * (l / Om)) * t_1), (((fma((-2.0 * l), (l / Om), t) * n) * U) * 2.0)));
	} else {
		tmp = sqrt((2.0 * n)) * sqrt((fma((l / Om), fma(((l / Om) * n), (U_42_ - U), (-2.0 * l)), t) * U));
	}
	return tmp;
}
function code(n, U, t, l, Om, U_42_)
	t_1 = Float64(Float64(2.0 * n) * U)
	tmp = 0.0
	if (n <= -1.1e-96)
		tmp = sqrt(Float64(t_1 * fma(Float64(l / Om), fma(Float64(n / Float64(Om / l)), Float64(U_42_ - U), Float64(-2.0 * l)), t)));
	elseif (n <= 2.3e-26)
		tmp = sqrt(fma(Float64(l / Om), Float64(Float64(Float64(Float64(U_42_ - U) * n) * Float64(l / Om)) * t_1), Float64(Float64(Float64(fma(Float64(-2.0 * l), Float64(l / Om), t) * n) * U) * 2.0)));
	else
		tmp = Float64(sqrt(Float64(2.0 * n)) * sqrt(Float64(fma(Float64(l / Om), fma(Float64(Float64(l / Om) * n), Float64(U_42_ - U), Float64(-2.0 * l)), t) * U)));
	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, -1.1e-96], N[Sqrt[N[(t$95$1 * N[(N[(l / Om), $MachinePrecision] * N[(N[(n / N[(Om / l), $MachinePrecision]), $MachinePrecision] * N[(U$42$ - U), $MachinePrecision] + N[(-2.0 * l), $MachinePrecision]), $MachinePrecision] + t), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], If[LessEqual[n, 2.3e-26], N[Sqrt[N[(N[(l / Om), $MachinePrecision] * N[(N[(N[(N[(U$42$ - U), $MachinePrecision] * n), $MachinePrecision] * N[(l / Om), $MachinePrecision]), $MachinePrecision] * t$95$1), $MachinePrecision] + N[(N[(N[(N[(N[(-2.0 * l), $MachinePrecision] * N[(l / Om), $MachinePrecision] + t), $MachinePrecision] * n), $MachinePrecision] * U), $MachinePrecision] * 2.0), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], N[(N[Sqrt[N[(2.0 * n), $MachinePrecision]], $MachinePrecision] * N[Sqrt[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]], $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := \left(2 \cdot n\right) \cdot U\\
\mathbf{if}\;n \leq -1.1 \cdot 10^{-96}:\\
\;\;\;\;\sqrt{t\_1 \cdot \mathsf{fma}\left(\frac{\ell}{Om}, \mathsf{fma}\left(\frac{n}{\frac{Om}{\ell}}, U* - U, -2 \cdot \ell\right), t\right)}\\

\mathbf{elif}\;n \leq 2.3 \cdot 10^{-26}:\\
\;\;\;\;\sqrt{\mathsf{fma}\left(\frac{\ell}{Om}, \left(\left(\left(U* - U\right) \cdot n\right) \cdot \frac{\ell}{Om}\right) \cdot t\_1, \left(\left(\mathsf{fma}\left(-2 \cdot \ell, \frac{\ell}{Om}, t\right) \cdot n\right) \cdot U\right) \cdot 2\right)}\\

\mathbf{else}:\\
\;\;\;\;\sqrt{2 \cdot n} \cdot \sqrt{\mathsf{fma}\left(\frac{\ell}{Om}, \mathsf{fma}\left(\frac{\ell}{Om} \cdot n, U* - U, -2 \cdot \ell\right), t\right) \cdot U}\\


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if n < -1.0999999999999999e-96

    1. Initial program 59.3%

      \[\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)} \]
    2. Add Preprocessing
    3. Step-by-step derivation
      1. lift--.f64N/A

        \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\color{blue}{\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)} \]
      2. sub-negN/A

        \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\color{blue}{\left(t + \left(\mathsf{neg}\left(2 \cdot \frac{\ell \cdot \ell}{Om}\right)\right)\right)} - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
      3. +-commutativeN/A

        \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\color{blue}{\left(\left(\mathsf{neg}\left(2 \cdot \frac{\ell \cdot \ell}{Om}\right)\right) + t\right)} - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
      4. lift-*.f64N/A

        \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(\left(\mathsf{neg}\left(\color{blue}{2 \cdot \frac{\ell \cdot \ell}{Om}}\right)\right) + t\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
      5. distribute-lft-neg-inN/A

        \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(\color{blue}{\left(\mathsf{neg}\left(2\right)\right) \cdot \frac{\ell \cdot \ell}{Om}} + t\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
      6. lift-/.f64N/A

        \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(\left(\mathsf{neg}\left(2\right)\right) \cdot \color{blue}{\frac{\ell \cdot \ell}{Om}} + t\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
      7. lift-*.f64N/A

        \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(\left(\mathsf{neg}\left(2\right)\right) \cdot \frac{\color{blue}{\ell \cdot \ell}}{Om} + t\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
      8. associate-/l*N/A

        \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(\left(\mathsf{neg}\left(2\right)\right) \cdot \color{blue}{\left(\ell \cdot \frac{\ell}{Om}\right)} + t\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
      9. lift-/.f64N/A

        \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(\left(\mathsf{neg}\left(2\right)\right) \cdot \left(\ell \cdot \color{blue}{\frac{\ell}{Om}}\right) + t\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
      10. *-commutativeN/A

        \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(\left(\mathsf{neg}\left(2\right)\right) \cdot \color{blue}{\left(\frac{\ell}{Om} \cdot \ell\right)} + t\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
      11. associate-*r*N/A

        \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(\color{blue}{\left(\left(\mathsf{neg}\left(2\right)\right) \cdot \frac{\ell}{Om}\right) \cdot \ell} + t\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
      12. lower-fma.f64N/A

        \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\color{blue}{\mathsf{fma}\left(\left(\mathsf{neg}\left(2\right)\right) \cdot \frac{\ell}{Om}, \ell, t\right)} - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
      13. lower-*.f64N/A

        \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\mathsf{fma}\left(\color{blue}{\left(\mathsf{neg}\left(2\right)\right) \cdot \frac{\ell}{Om}}, \ell, t\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
      14. metadata-eval60.6

        \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\mathsf{fma}\left(\color{blue}{-2} \cdot \frac{\ell}{Om}, \ell, t\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
    4. Applied rewrites60.6%

      \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\color{blue}{\mathsf{fma}\left(-2 \cdot \frac{\ell}{Om}, \ell, t\right)} - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
    5. Step-by-step derivation
      1. lift--.f64N/A

        \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \color{blue}{\left(\mathsf{fma}\left(-2 \cdot \frac{\ell}{Om}, \ell, t\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)}} \]
      2. lift-fma.f64N/A

        \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\color{blue}{\left(\left(-2 \cdot \frac{\ell}{Om}\right) \cdot \ell + t\right)} - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
      3. associate--l+N/A

        \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \color{blue}{\left(\left(-2 \cdot \frac{\ell}{Om}\right) \cdot \ell + \left(t - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)\right)}} \]
      4. *-commutativeN/A

        \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\color{blue}{\ell \cdot \left(-2 \cdot \frac{\ell}{Om}\right)} + \left(t - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)\right)} \]
      5. lift-*.f64N/A

        \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\ell \cdot \color{blue}{\left(-2 \cdot \frac{\ell}{Om}\right)} + \left(t - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)\right)} \]
      6. *-commutativeN/A

        \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\ell \cdot \color{blue}{\left(\frac{\ell}{Om} \cdot -2\right)} + \left(t - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)\right)} \]
      7. associate-*r*N/A

        \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\color{blue}{\left(\ell \cdot \frac{\ell}{Om}\right) \cdot -2} + \left(t - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)\right)} \]
      8. lift-/.f64N/A

        \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(\ell \cdot \color{blue}{\frac{\ell}{Om}}\right) \cdot -2 + \left(t - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)\right)} \]
      9. associate-/l*N/A

        \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\color{blue}{\frac{\ell \cdot \ell}{Om}} \cdot -2 + \left(t - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)\right)} \]
      10. lift-*.f64N/A

        \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\frac{\color{blue}{\ell \cdot \ell}}{Om} \cdot -2 + \left(t - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)\right)} \]
      11. lift-/.f64N/A

        \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\color{blue}{\frac{\ell \cdot \ell}{Om}} \cdot -2 + \left(t - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)\right)} \]
      12. *-commutativeN/A

        \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\color{blue}{-2 \cdot \frac{\ell \cdot \ell}{Om}} + \left(t - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)\right)} \]
      13. associate--l+N/A

        \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \color{blue}{\left(\left(-2 \cdot \frac{\ell \cdot \ell}{Om} + t\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)}} \]
      14. lift-fma.f64N/A

        \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\color{blue}{\mathsf{fma}\left(-2, \frac{\ell \cdot \ell}{Om}, t\right)} - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
      15. lift-*.f64N/A

        \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\mathsf{fma}\left(-2, \frac{\ell \cdot \ell}{Om}, t\right) - \color{blue}{\left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)}\right)} \]
    6. Applied rewrites61.0%

      \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \color{blue}{\mathsf{fma}\left(\frac{\ell}{Om} \cdot \left(-\left(U - U*\right)\right), n \cdot \frac{\ell}{Om}, \mathsf{fma}\left(\frac{\ell}{Om} \cdot \ell, -2, t\right)\right)}} \]
    7. Step-by-step derivation
      1. lift-*.f64N/A

        \[\leadsto \sqrt{\color{blue}{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \mathsf{fma}\left(\frac{\ell}{Om} \cdot \left(-\left(U - U*\right)\right), n \cdot \frac{\ell}{Om}, \mathsf{fma}\left(\frac{\ell}{Om} \cdot \ell, -2, t\right)\right)}} \]
      2. *-commutativeN/A

        \[\leadsto \sqrt{\color{blue}{\mathsf{fma}\left(\frac{\ell}{Om} \cdot \left(-\left(U - U*\right)\right), n \cdot \frac{\ell}{Om}, \mathsf{fma}\left(\frac{\ell}{Om} \cdot \ell, -2, t\right)\right) \cdot \left(\left(2 \cdot n\right) \cdot U\right)}} \]
      3. lower-*.f6461.0

        \[\leadsto \sqrt{\color{blue}{\mathsf{fma}\left(\frac{\ell}{Om} \cdot \left(-\left(U - U*\right)\right), n \cdot \frac{\ell}{Om}, \mathsf{fma}\left(\frac{\ell}{Om} \cdot \ell, -2, t\right)\right) \cdot \left(\left(2 \cdot n\right) \cdot U\right)}} \]
    8. Applied rewrites63.8%

      \[\leadsto \sqrt{\color{blue}{\mathsf{fma}\left(\frac{\ell}{Om}, \mathsf{fma}\left(n \cdot \frac{\ell}{Om}, -\left(U - U*\right), -2 \cdot \ell\right), t\right) \cdot \left(\left(2 \cdot n\right) \cdot U\right)}} \]
    9. Step-by-step derivation
      1. lift-*.f64N/A

        \[\leadsto \sqrt{\mathsf{fma}\left(\frac{\ell}{Om}, \mathsf{fma}\left(\color{blue}{n \cdot \frac{\ell}{Om}}, -\left(U - U*\right), -2 \cdot \ell\right), t\right) \cdot \left(\left(2 \cdot n\right) \cdot U\right)} \]
      2. lift-/.f64N/A

        \[\leadsto \sqrt{\mathsf{fma}\left(\frac{\ell}{Om}, \mathsf{fma}\left(n \cdot \color{blue}{\frac{\ell}{Om}}, -\left(U - U*\right), -2 \cdot \ell\right), t\right) \cdot \left(\left(2 \cdot n\right) \cdot U\right)} \]
      3. clear-numN/A

        \[\leadsto \sqrt{\mathsf{fma}\left(\frac{\ell}{Om}, \mathsf{fma}\left(n \cdot \color{blue}{\frac{1}{\frac{Om}{\ell}}}, -\left(U - U*\right), -2 \cdot \ell\right), t\right) \cdot \left(\left(2 \cdot n\right) \cdot U\right)} \]
      4. un-div-invN/A

        \[\leadsto \sqrt{\mathsf{fma}\left(\frac{\ell}{Om}, \mathsf{fma}\left(\color{blue}{\frac{n}{\frac{Om}{\ell}}}, -\left(U - U*\right), -2 \cdot \ell\right), t\right) \cdot \left(\left(2 \cdot n\right) \cdot U\right)} \]
      5. lower-/.f64N/A

        \[\leadsto \sqrt{\mathsf{fma}\left(\frac{\ell}{Om}, \mathsf{fma}\left(\color{blue}{\frac{n}{\frac{Om}{\ell}}}, -\left(U - U*\right), -2 \cdot \ell\right), t\right) \cdot \left(\left(2 \cdot n\right) \cdot U\right)} \]
      6. lower-/.f6463.8

        \[\leadsto \sqrt{\mathsf{fma}\left(\frac{\ell}{Om}, \mathsf{fma}\left(\frac{n}{\color{blue}{\frac{Om}{\ell}}}, -\left(U - U*\right), -2 \cdot \ell\right), t\right) \cdot \left(\left(2 \cdot n\right) \cdot U\right)} \]
    10. Applied rewrites63.8%

      \[\leadsto \sqrt{\mathsf{fma}\left(\frac{\ell}{Om}, \mathsf{fma}\left(\color{blue}{\frac{n}{\frac{Om}{\ell}}}, -\left(U - U*\right), -2 \cdot \ell\right), t\right) \cdot \left(\left(2 \cdot n\right) \cdot U\right)} \]

    if -1.0999999999999999e-96 < n < 2.30000000000000009e-26

    1. Initial program 49.5%

      \[\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)} \]
    2. Add Preprocessing
    3. Step-by-step derivation
      1. lift--.f64N/A

        \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\color{blue}{\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)} \]
      2. sub-negN/A

        \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\color{blue}{\left(t + \left(\mathsf{neg}\left(2 \cdot \frac{\ell \cdot \ell}{Om}\right)\right)\right)} - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
      3. +-commutativeN/A

        \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\color{blue}{\left(\left(\mathsf{neg}\left(2 \cdot \frac{\ell \cdot \ell}{Om}\right)\right) + t\right)} - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
      4. lift-*.f64N/A

        \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(\left(\mathsf{neg}\left(\color{blue}{2 \cdot \frac{\ell \cdot \ell}{Om}}\right)\right) + t\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
      5. distribute-lft-neg-inN/A

        \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(\color{blue}{\left(\mathsf{neg}\left(2\right)\right) \cdot \frac{\ell \cdot \ell}{Om}} + t\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
      6. lift-/.f64N/A

        \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(\left(\mathsf{neg}\left(2\right)\right) \cdot \color{blue}{\frac{\ell \cdot \ell}{Om}} + t\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
      7. lift-*.f64N/A

        \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(\left(\mathsf{neg}\left(2\right)\right) \cdot \frac{\color{blue}{\ell \cdot \ell}}{Om} + t\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
      8. associate-/l*N/A

        \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(\left(\mathsf{neg}\left(2\right)\right) \cdot \color{blue}{\left(\ell \cdot \frac{\ell}{Om}\right)} + t\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
      9. lift-/.f64N/A

        \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(\left(\mathsf{neg}\left(2\right)\right) \cdot \left(\ell \cdot \color{blue}{\frac{\ell}{Om}}\right) + t\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
      10. *-commutativeN/A

        \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(\left(\mathsf{neg}\left(2\right)\right) \cdot \color{blue}{\left(\frac{\ell}{Om} \cdot \ell\right)} + t\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
      11. associate-*r*N/A

        \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(\color{blue}{\left(\left(\mathsf{neg}\left(2\right)\right) \cdot \frac{\ell}{Om}\right) \cdot \ell} + t\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
      12. lower-fma.f64N/A

        \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\color{blue}{\mathsf{fma}\left(\left(\mathsf{neg}\left(2\right)\right) \cdot \frac{\ell}{Om}, \ell, t\right)} - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
      13. lower-*.f64N/A

        \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\mathsf{fma}\left(\color{blue}{\left(\mathsf{neg}\left(2\right)\right) \cdot \frac{\ell}{Om}}, \ell, t\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
      14. metadata-eval57.5

        \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\mathsf{fma}\left(\color{blue}{-2} \cdot \frac{\ell}{Om}, \ell, t\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
    4. Applied rewrites57.5%

      \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\color{blue}{\mathsf{fma}\left(-2 \cdot \frac{\ell}{Om}, \ell, t\right)} - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
    5. Step-by-step derivation
      1. lift--.f64N/A

        \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \color{blue}{\left(\mathsf{fma}\left(-2 \cdot \frac{\ell}{Om}, \ell, t\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)}} \]
      2. lift-fma.f64N/A

        \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\color{blue}{\left(\left(-2 \cdot \frac{\ell}{Om}\right) \cdot \ell + t\right)} - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
      3. associate--l+N/A

        \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \color{blue}{\left(\left(-2 \cdot \frac{\ell}{Om}\right) \cdot \ell + \left(t - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)\right)}} \]
      4. *-commutativeN/A

        \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\color{blue}{\ell \cdot \left(-2 \cdot \frac{\ell}{Om}\right)} + \left(t - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)\right)} \]
      5. lift-*.f64N/A

        \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\ell \cdot \color{blue}{\left(-2 \cdot \frac{\ell}{Om}\right)} + \left(t - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)\right)} \]
      6. *-commutativeN/A

        \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\ell \cdot \color{blue}{\left(\frac{\ell}{Om} \cdot -2\right)} + \left(t - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)\right)} \]
      7. associate-*r*N/A

        \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\color{blue}{\left(\ell \cdot \frac{\ell}{Om}\right) \cdot -2} + \left(t - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)\right)} \]
      8. lift-/.f64N/A

        \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(\ell \cdot \color{blue}{\frac{\ell}{Om}}\right) \cdot -2 + \left(t - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)\right)} \]
      9. associate-/l*N/A

        \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\color{blue}{\frac{\ell \cdot \ell}{Om}} \cdot -2 + \left(t - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)\right)} \]
      10. lift-*.f64N/A

        \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\frac{\color{blue}{\ell \cdot \ell}}{Om} \cdot -2 + \left(t - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)\right)} \]
      11. lift-/.f64N/A

        \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\color{blue}{\frac{\ell \cdot \ell}{Om}} \cdot -2 + \left(t - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)\right)} \]
      12. *-commutativeN/A

        \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\color{blue}{-2 \cdot \frac{\ell \cdot \ell}{Om}} + \left(t - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)\right)} \]
      13. associate--l+N/A

        \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \color{blue}{\left(\left(-2 \cdot \frac{\ell \cdot \ell}{Om} + t\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)}} \]
      14. lift-fma.f64N/A

        \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\color{blue}{\mathsf{fma}\left(-2, \frac{\ell \cdot \ell}{Om}, t\right)} - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
      15. lift-*.f64N/A

        \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\mathsf{fma}\left(-2, \frac{\ell \cdot \ell}{Om}, t\right) - \color{blue}{\left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)}\right)} \]
    6. Applied rewrites59.3%

      \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \color{blue}{\mathsf{fma}\left(\frac{\ell}{Om} \cdot \left(-\left(U - U*\right)\right), n \cdot \frac{\ell}{Om}, \mathsf{fma}\left(\frac{\ell}{Om} \cdot \ell, -2, t\right)\right)}} \]
    7. Step-by-step derivation
      1. lift-*.f64N/A

        \[\leadsto \sqrt{\color{blue}{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \mathsf{fma}\left(\frac{\ell}{Om} \cdot \left(-\left(U - U*\right)\right), n \cdot \frac{\ell}{Om}, \mathsf{fma}\left(\frac{\ell}{Om} \cdot \ell, -2, t\right)\right)}} \]
      2. *-commutativeN/A

        \[\leadsto \sqrt{\color{blue}{\mathsf{fma}\left(\frac{\ell}{Om} \cdot \left(-\left(U - U*\right)\right), n \cdot \frac{\ell}{Om}, \mathsf{fma}\left(\frac{\ell}{Om} \cdot \ell, -2, t\right)\right) \cdot \left(\left(2 \cdot n\right) \cdot U\right)}} \]
      3. lower-*.f6459.3

        \[\leadsto \sqrt{\color{blue}{\mathsf{fma}\left(\frac{\ell}{Om} \cdot \left(-\left(U - U*\right)\right), n \cdot \frac{\ell}{Om}, \mathsf{fma}\left(\frac{\ell}{Om} \cdot \ell, -2, t\right)\right) \cdot \left(\left(2 \cdot n\right) \cdot U\right)}} \]
    8. Applied rewrites61.4%

      \[\leadsto \sqrt{\color{blue}{\mathsf{fma}\left(\frac{\ell}{Om}, \mathsf{fma}\left(n \cdot \frac{\ell}{Om}, -\left(U - U*\right), -2 \cdot \ell\right), t\right) \cdot \left(\left(2 \cdot n\right) \cdot U\right)}} \]
    9. Applied rewrites70.3%

      \[\leadsto \sqrt{\color{blue}{\mathsf{fma}\left(\frac{\ell}{Om}, \left(\left(\left(U* - U\right) \cdot n\right) \cdot \frac{\ell}{Om}\right) \cdot \left(\left(2 \cdot n\right) \cdot U\right), 2 \cdot \left(\left(\mathsf{fma}\left(-2 \cdot \ell, \frac{\ell}{Om}, t\right) \cdot n\right) \cdot U\right)\right)}} \]

    if 2.30000000000000009e-26 < n

    1. Initial program 53.0%

      \[\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)} \]
    2. Add Preprocessing
    3. Step-by-step derivation
      1. lift--.f64N/A

        \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\color{blue}{\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)} \]
      2. sub-negN/A

        \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\color{blue}{\left(t + \left(\mathsf{neg}\left(2 \cdot \frac{\ell \cdot \ell}{Om}\right)\right)\right)} - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
      3. +-commutativeN/A

        \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\color{blue}{\left(\left(\mathsf{neg}\left(2 \cdot \frac{\ell \cdot \ell}{Om}\right)\right) + t\right)} - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
      4. lift-*.f64N/A

        \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(\left(\mathsf{neg}\left(\color{blue}{2 \cdot \frac{\ell \cdot \ell}{Om}}\right)\right) + t\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
      5. distribute-lft-neg-inN/A

        \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(\color{blue}{\left(\mathsf{neg}\left(2\right)\right) \cdot \frac{\ell \cdot \ell}{Om}} + t\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
      6. lift-/.f64N/A

        \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(\left(\mathsf{neg}\left(2\right)\right) \cdot \color{blue}{\frac{\ell \cdot \ell}{Om}} + t\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
      7. lift-*.f64N/A

        \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(\left(\mathsf{neg}\left(2\right)\right) \cdot \frac{\color{blue}{\ell \cdot \ell}}{Om} + t\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
      8. associate-/l*N/A

        \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(\left(\mathsf{neg}\left(2\right)\right) \cdot \color{blue}{\left(\ell \cdot \frac{\ell}{Om}\right)} + t\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
      9. lift-/.f64N/A

        \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(\left(\mathsf{neg}\left(2\right)\right) \cdot \left(\ell \cdot \color{blue}{\frac{\ell}{Om}}\right) + t\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
      10. *-commutativeN/A

        \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(\left(\mathsf{neg}\left(2\right)\right) \cdot \color{blue}{\left(\frac{\ell}{Om} \cdot \ell\right)} + t\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
      11. associate-*r*N/A

        \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(\color{blue}{\left(\left(\mathsf{neg}\left(2\right)\right) \cdot \frac{\ell}{Om}\right) \cdot \ell} + t\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
      12. lower-fma.f64N/A

        \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\color{blue}{\mathsf{fma}\left(\left(\mathsf{neg}\left(2\right)\right) \cdot \frac{\ell}{Om}, \ell, t\right)} - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
      13. lower-*.f64N/A

        \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\mathsf{fma}\left(\color{blue}{\left(\mathsf{neg}\left(2\right)\right) \cdot \frac{\ell}{Om}}, \ell, t\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
      14. metadata-eval55.4

        \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\mathsf{fma}\left(\color{blue}{-2} \cdot \frac{\ell}{Om}, \ell, t\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
    4. Applied rewrites55.4%

      \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\color{blue}{\mathsf{fma}\left(-2 \cdot \frac{\ell}{Om}, \ell, t\right)} - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
    5. Step-by-step derivation
      1. lift--.f64N/A

        \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \color{blue}{\left(\mathsf{fma}\left(-2 \cdot \frac{\ell}{Om}, \ell, t\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)}} \]
      2. lift-fma.f64N/A

        \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\color{blue}{\left(\left(-2 \cdot \frac{\ell}{Om}\right) \cdot \ell + t\right)} - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
      3. associate--l+N/A

        \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \color{blue}{\left(\left(-2 \cdot \frac{\ell}{Om}\right) \cdot \ell + \left(t - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)\right)}} \]
      4. *-commutativeN/A

        \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\color{blue}{\ell \cdot \left(-2 \cdot \frac{\ell}{Om}\right)} + \left(t - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)\right)} \]
      5. lift-*.f64N/A

        \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\ell \cdot \color{blue}{\left(-2 \cdot \frac{\ell}{Om}\right)} + \left(t - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)\right)} \]
      6. *-commutativeN/A

        \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\ell \cdot \color{blue}{\left(\frac{\ell}{Om} \cdot -2\right)} + \left(t - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)\right)} \]
      7. associate-*r*N/A

        \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\color{blue}{\left(\ell \cdot \frac{\ell}{Om}\right) \cdot -2} + \left(t - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)\right)} \]
      8. lift-/.f64N/A

        \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(\ell \cdot \color{blue}{\frac{\ell}{Om}}\right) \cdot -2 + \left(t - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)\right)} \]
      9. associate-/l*N/A

        \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\color{blue}{\frac{\ell \cdot \ell}{Om}} \cdot -2 + \left(t - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)\right)} \]
      10. lift-*.f64N/A

        \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\frac{\color{blue}{\ell \cdot \ell}}{Om} \cdot -2 + \left(t - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)\right)} \]
      11. lift-/.f64N/A

        \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\color{blue}{\frac{\ell \cdot \ell}{Om}} \cdot -2 + \left(t - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)\right)} \]
      12. *-commutativeN/A

        \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\color{blue}{-2 \cdot \frac{\ell \cdot \ell}{Om}} + \left(t - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)\right)} \]
      13. associate--l+N/A

        \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \color{blue}{\left(\left(-2 \cdot \frac{\ell \cdot \ell}{Om} + t\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)}} \]
      14. lift-fma.f64N/A

        \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\color{blue}{\mathsf{fma}\left(-2, \frac{\ell \cdot \ell}{Om}, t\right)} - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
      15. lift-*.f64N/A

        \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\mathsf{fma}\left(-2, \frac{\ell \cdot \ell}{Om}, t\right) - \color{blue}{\left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)}\right)} \]
    6. Applied rewrites57.7%

      \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \color{blue}{\mathsf{fma}\left(\frac{\ell}{Om} \cdot \left(-\left(U - U*\right)\right), n \cdot \frac{\ell}{Om}, \mathsf{fma}\left(\frac{\ell}{Om} \cdot \ell, -2, t\right)\right)}} \]
    7. Step-by-step derivation
      1. lift-sqrt.f64N/A

        \[\leadsto \color{blue}{\sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \mathsf{fma}\left(\frac{\ell}{Om} \cdot \left(-\left(U - U*\right)\right), n \cdot \frac{\ell}{Om}, \mathsf{fma}\left(\frac{\ell}{Om} \cdot \ell, -2, t\right)\right)}} \]
      2. pow1/2N/A

        \[\leadsto \color{blue}{{\left(\left(\left(2 \cdot n\right) \cdot U\right) \cdot \mathsf{fma}\left(\frac{\ell}{Om} \cdot \left(-\left(U - U*\right)\right), n \cdot \frac{\ell}{Om}, \mathsf{fma}\left(\frac{\ell}{Om} \cdot \ell, -2, t\right)\right)\right)}^{\frac{1}{2}}} \]
      3. lift-*.f64N/A

        \[\leadsto {\color{blue}{\left(\left(\left(2 \cdot n\right) \cdot U\right) \cdot \mathsf{fma}\left(\frac{\ell}{Om} \cdot \left(-\left(U - U*\right)\right), n \cdot \frac{\ell}{Om}, \mathsf{fma}\left(\frac{\ell}{Om} \cdot \ell, -2, t\right)\right)\right)}}^{\frac{1}{2}} \]
      4. lift-*.f64N/A

        \[\leadsto {\left(\color{blue}{\left(\left(2 \cdot n\right) \cdot U\right)} \cdot \mathsf{fma}\left(\frac{\ell}{Om} \cdot \left(-\left(U - U*\right)\right), n \cdot \frac{\ell}{Om}, \mathsf{fma}\left(\frac{\ell}{Om} \cdot \ell, -2, t\right)\right)\right)}^{\frac{1}{2}} \]
      5. associate-*l*N/A

        \[\leadsto {\color{blue}{\left(\left(2 \cdot n\right) \cdot \left(U \cdot \mathsf{fma}\left(\frac{\ell}{Om} \cdot \left(-\left(U - U*\right)\right), n \cdot \frac{\ell}{Om}, \mathsf{fma}\left(\frac{\ell}{Om} \cdot \ell, -2, t\right)\right)\right)\right)}}^{\frac{1}{2}} \]
      6. *-commutativeN/A

        \[\leadsto {\color{blue}{\left(\left(U \cdot \mathsf{fma}\left(\frac{\ell}{Om} \cdot \left(-\left(U - U*\right)\right), n \cdot \frac{\ell}{Om}, \mathsf{fma}\left(\frac{\ell}{Om} \cdot \ell, -2, t\right)\right)\right) \cdot \left(2 \cdot n\right)\right)}}^{\frac{1}{2}} \]
      7. unpow-prod-downN/A

        \[\leadsto \color{blue}{{\left(U \cdot \mathsf{fma}\left(\frac{\ell}{Om} \cdot \left(-\left(U - U*\right)\right), n \cdot \frac{\ell}{Om}, \mathsf{fma}\left(\frac{\ell}{Om} \cdot \ell, -2, t\right)\right)\right)}^{\frac{1}{2}} \cdot {\left(2 \cdot n\right)}^{\frac{1}{2}}} \]
      8. lower-*.f64N/A

        \[\leadsto \color{blue}{{\left(U \cdot \mathsf{fma}\left(\frac{\ell}{Om} \cdot \left(-\left(U - U*\right)\right), n \cdot \frac{\ell}{Om}, \mathsf{fma}\left(\frac{\ell}{Om} \cdot \ell, -2, t\right)\right)\right)}^{\frac{1}{2}} \cdot {\left(2 \cdot n\right)}^{\frac{1}{2}}} \]
    8. Applied rewrites81.2%

      \[\leadsto \color{blue}{\sqrt{\mathsf{fma}\left(\frac{\ell}{Om}, \mathsf{fma}\left(n \cdot \frac{\ell}{Om}, -\left(U - U*\right), -2 \cdot \ell\right), t\right) \cdot U} \cdot \sqrt{2 \cdot n}} \]
  3. Recombined 3 regimes into one program.
  4. Final simplification71.8%

    \[\leadsto \begin{array}{l} \mathbf{if}\;n \leq -1.1 \cdot 10^{-96}:\\ \;\;\;\;\sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \mathsf{fma}\left(\frac{\ell}{Om}, \mathsf{fma}\left(\frac{n}{\frac{Om}{\ell}}, U* - U, -2 \cdot \ell\right), t\right)}\\ \mathbf{elif}\;n \leq 2.3 \cdot 10^{-26}:\\ \;\;\;\;\sqrt{\mathsf{fma}\left(\frac{\ell}{Om}, \left(\left(\left(U* - U\right) \cdot n\right) \cdot \frac{\ell}{Om}\right) \cdot \left(\left(2 \cdot n\right) \cdot U\right), \left(\left(\mathsf{fma}\left(-2 \cdot \ell, \frac{\ell}{Om}, t\right) \cdot n\right) \cdot U\right) \cdot 2\right)}\\ \mathbf{else}:\\ \;\;\;\;\sqrt{2 \cdot n} \cdot \sqrt{\mathsf{fma}\left(\frac{\ell}{Om}, \mathsf{fma}\left(\frac{\ell}{Om} \cdot n, U* - U, -2 \cdot \ell\right), t\right) \cdot U}\\ \end{array} \]
  5. Add Preprocessing

Alternative 2: 62.3% accurate, 0.7× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(2 \cdot n\right) \cdot U\\ \mathbf{if}\;\sqrt{\left(\left(t - \frac{\ell \cdot \ell}{Om} \cdot 2\right) - \left({\left(\frac{\ell}{Om}\right)}^{2} \cdot n\right) \cdot \left(U - U*\right)\right) \cdot t\_1} \leq 5 \cdot 10^{-161}:\\ \;\;\;\;\sqrt{U} \cdot \sqrt{\mathsf{fma}\left(\frac{\ell}{Om} \cdot \ell, -2, t\right) \cdot \left(2 \cdot n\right)}\\ \mathbf{else}:\\ \;\;\;\;\sqrt{t\_1 \cdot \mathsf{fma}\left(\frac{\ell}{Om}, \mathsf{fma}\left(\frac{n}{\frac{Om}{\ell}}, U* - U, -2 \cdot \ell\right), t\right)}\\ \end{array} \end{array} \]
(FPCore (n U t l Om U*)
 :precision binary64
 (let* ((t_1 (* (* 2.0 n) U)))
   (if (<=
        (sqrt
         (*
          (-
           (- t (* (/ (* l l) Om) 2.0))
           (* (* (pow (/ l Om) 2.0) n) (- U U*)))
          t_1))
        5e-161)
     (* (sqrt U) (sqrt (* (fma (* (/ l Om) l) -2.0 t) (* 2.0 n))))
     (sqrt
      (* t_1 (fma (/ l Om) (fma (/ n (/ Om l)) (- U* U) (* -2.0 l)) t))))))
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 (sqrt((((t - (((l * l) / Om) * 2.0)) - ((pow((l / Om), 2.0) * n) * (U - U_42_))) * t_1)) <= 5e-161) {
		tmp = sqrt(U) * sqrt((fma(((l / Om) * l), -2.0, t) * (2.0 * n)));
	} else {
		tmp = sqrt((t_1 * fma((l / Om), fma((n / (Om / l)), (U_42_ - U), (-2.0 * l)), t)));
	}
	return tmp;
}
function code(n, U, t, l, Om, U_42_)
	t_1 = Float64(Float64(2.0 * n) * U)
	tmp = 0.0
	if (sqrt(Float64(Float64(Float64(t - Float64(Float64(Float64(l * l) / Om) * 2.0)) - Float64(Float64((Float64(l / Om) ^ 2.0) * n) * Float64(U - U_42_))) * t_1)) <= 5e-161)
		tmp = Float64(sqrt(U) * sqrt(Float64(fma(Float64(Float64(l / Om) * l), -2.0, t) * Float64(2.0 * n))));
	else
		tmp = sqrt(Float64(t_1 * fma(Float64(l / Om), fma(Float64(n / Float64(Om / l)), Float64(U_42_ - U), Float64(-2.0 * l)), t)));
	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[Sqrt[N[(N[(N[(t - N[(N[(N[(l * l), $MachinePrecision] / Om), $MachinePrecision] * 2.0), $MachinePrecision]), $MachinePrecision] - N[(N[(N[Power[N[(l / Om), $MachinePrecision], 2.0], $MachinePrecision] * n), $MachinePrecision] * N[(U - U$42$), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * t$95$1), $MachinePrecision]], $MachinePrecision], 5e-161], N[(N[Sqrt[U], $MachinePrecision] * N[Sqrt[N[(N[(N[(N[(l / Om), $MachinePrecision] * l), $MachinePrecision] * -2.0 + t), $MachinePrecision] * N[(2.0 * n), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], N[Sqrt[N[(t$95$1 * N[(N[(l / Om), $MachinePrecision] * N[(N[(n / N[(Om / l), $MachinePrecision]), $MachinePrecision] * N[(U$42$ - U), $MachinePrecision] + N[(-2.0 * l), $MachinePrecision]), $MachinePrecision] + t), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := \left(2 \cdot n\right) \cdot U\\
\mathbf{if}\;\sqrt{\left(\left(t - \frac{\ell \cdot \ell}{Om} \cdot 2\right) - \left({\left(\frac{\ell}{Om}\right)}^{2} \cdot n\right) \cdot \left(U - U*\right)\right) \cdot t\_1} \leq 5 \cdot 10^{-161}:\\
\;\;\;\;\sqrt{U} \cdot \sqrt{\mathsf{fma}\left(\frac{\ell}{Om} \cdot \ell, -2, t\right) \cdot \left(2 \cdot n\right)}\\

\mathbf{else}:\\
\;\;\;\;\sqrt{t\_1 \cdot \mathsf{fma}\left(\frac{\ell}{Om}, \mathsf{fma}\left(\frac{n}{\frac{Om}{\ell}}, U* - U, -2 \cdot \ell\right), t\right)}\\


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. 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*))))) < 4.9999999999999999e-161

    1. Initial program 23.4%

      \[\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)} \]
    2. Add Preprocessing
    3. Taylor expanded in n around 0

      \[\leadsto \color{blue}{\sqrt{U \cdot \left(n \cdot \left(t - 2 \cdot \frac{{\ell}^{2}}{Om}\right)\right)} \cdot \sqrt{2}} \]
    4. Step-by-step derivation
      1. lower-*.f64N/A

        \[\leadsto \color{blue}{\sqrt{U \cdot \left(n \cdot \left(t - 2 \cdot \frac{{\ell}^{2}}{Om}\right)\right)} \cdot \sqrt{2}} \]
      2. lower-sqrt.f64N/A

        \[\leadsto \color{blue}{\sqrt{U \cdot \left(n \cdot \left(t - 2 \cdot \frac{{\ell}^{2}}{Om}\right)\right)}} \cdot \sqrt{2} \]
      3. *-commutativeN/A

        \[\leadsto \sqrt{\color{blue}{\left(n \cdot \left(t - 2 \cdot \frac{{\ell}^{2}}{Om}\right)\right) \cdot U}} \cdot \sqrt{2} \]
      4. lower-*.f64N/A

        \[\leadsto \sqrt{\color{blue}{\left(n \cdot \left(t - 2 \cdot \frac{{\ell}^{2}}{Om}\right)\right) \cdot U}} \cdot \sqrt{2} \]
      5. *-commutativeN/A

        \[\leadsto \sqrt{\color{blue}{\left(\left(t - 2 \cdot \frac{{\ell}^{2}}{Om}\right) \cdot n\right)} \cdot U} \cdot \sqrt{2} \]
      6. lower-*.f64N/A

        \[\leadsto \sqrt{\color{blue}{\left(\left(t - 2 \cdot \frac{{\ell}^{2}}{Om}\right) \cdot n\right)} \cdot U} \cdot \sqrt{2} \]
      7. cancel-sign-sub-invN/A

        \[\leadsto \sqrt{\left(\color{blue}{\left(t + \left(\mathsf{neg}\left(2\right)\right) \cdot \frac{{\ell}^{2}}{Om}\right)} \cdot n\right) \cdot U} \cdot \sqrt{2} \]
      8. metadata-evalN/A

        \[\leadsto \sqrt{\left(\left(t + \color{blue}{-2} \cdot \frac{{\ell}^{2}}{Om}\right) \cdot n\right) \cdot U} \cdot \sqrt{2} \]
      9. +-commutativeN/A

        \[\leadsto \sqrt{\left(\color{blue}{\left(-2 \cdot \frac{{\ell}^{2}}{Om} + t\right)} \cdot n\right) \cdot U} \cdot \sqrt{2} \]
      10. lower-fma.f64N/A

        \[\leadsto \sqrt{\left(\color{blue}{\mathsf{fma}\left(-2, \frac{{\ell}^{2}}{Om}, t\right)} \cdot n\right) \cdot U} \cdot \sqrt{2} \]
      11. lower-/.f64N/A

        \[\leadsto \sqrt{\left(\mathsf{fma}\left(-2, \color{blue}{\frac{{\ell}^{2}}{Om}}, t\right) \cdot n\right) \cdot U} \cdot \sqrt{2} \]
      12. unpow2N/A

        \[\leadsto \sqrt{\left(\mathsf{fma}\left(-2, \frac{\color{blue}{\ell \cdot \ell}}{Om}, t\right) \cdot n\right) \cdot U} \cdot \sqrt{2} \]
      13. lower-*.f64N/A

        \[\leadsto \sqrt{\left(\mathsf{fma}\left(-2, \frac{\color{blue}{\ell \cdot \ell}}{Om}, t\right) \cdot n\right) \cdot U} \cdot \sqrt{2} \]
      14. lower-sqrt.f6442.5

        \[\leadsto \sqrt{\left(\mathsf{fma}\left(-2, \frac{\ell \cdot \ell}{Om}, t\right) \cdot n\right) \cdot U} \cdot \color{blue}{\sqrt{2}} \]
    5. Applied rewrites42.5%

      \[\leadsto \color{blue}{\sqrt{\left(\mathsf{fma}\left(-2, \frac{\ell \cdot \ell}{Om}, t\right) \cdot n\right) \cdot U} \cdot \sqrt{2}} \]
    6. Step-by-step derivation
      1. Applied rewrites52.4%

        \[\leadsto \sqrt{\mathsf{fma}\left(\frac{\ell}{Om} \cdot \ell, -2, t\right) \cdot \left(2 \cdot n\right)} \cdot \color{blue}{\sqrt{U}} \]

      if 4.9999999999999999e-161 < (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. Initial program 57.5%

        \[\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)} \]
      2. Add Preprocessing
      3. Step-by-step derivation
        1. lift--.f64N/A

          \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\color{blue}{\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)} \]
        2. sub-negN/A

          \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\color{blue}{\left(t + \left(\mathsf{neg}\left(2 \cdot \frac{\ell \cdot \ell}{Om}\right)\right)\right)} - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
        3. +-commutativeN/A

          \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\color{blue}{\left(\left(\mathsf{neg}\left(2 \cdot \frac{\ell \cdot \ell}{Om}\right)\right) + t\right)} - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
        4. lift-*.f64N/A

          \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(\left(\mathsf{neg}\left(\color{blue}{2 \cdot \frac{\ell \cdot \ell}{Om}}\right)\right) + t\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
        5. distribute-lft-neg-inN/A

          \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(\color{blue}{\left(\mathsf{neg}\left(2\right)\right) \cdot \frac{\ell \cdot \ell}{Om}} + t\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
        6. lift-/.f64N/A

          \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(\left(\mathsf{neg}\left(2\right)\right) \cdot \color{blue}{\frac{\ell \cdot \ell}{Om}} + t\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
        7. lift-*.f64N/A

          \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(\left(\mathsf{neg}\left(2\right)\right) \cdot \frac{\color{blue}{\ell \cdot \ell}}{Om} + t\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
        8. associate-/l*N/A

          \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(\left(\mathsf{neg}\left(2\right)\right) \cdot \color{blue}{\left(\ell \cdot \frac{\ell}{Om}\right)} + t\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
        9. lift-/.f64N/A

          \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(\left(\mathsf{neg}\left(2\right)\right) \cdot \left(\ell \cdot \color{blue}{\frac{\ell}{Om}}\right) + t\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
        10. *-commutativeN/A

          \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(\left(\mathsf{neg}\left(2\right)\right) \cdot \color{blue}{\left(\frac{\ell}{Om} \cdot \ell\right)} + t\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
        11. associate-*r*N/A

          \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(\color{blue}{\left(\left(\mathsf{neg}\left(2\right)\right) \cdot \frac{\ell}{Om}\right) \cdot \ell} + t\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
        12. lower-fma.f64N/A

          \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\color{blue}{\mathsf{fma}\left(\left(\mathsf{neg}\left(2\right)\right) \cdot \frac{\ell}{Om}, \ell, t\right)} - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
        13. lower-*.f64N/A

          \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\mathsf{fma}\left(\color{blue}{\left(\mathsf{neg}\left(2\right)\right) \cdot \frac{\ell}{Om}}, \ell, t\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
        14. metadata-eval62.3

          \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\mathsf{fma}\left(\color{blue}{-2} \cdot \frac{\ell}{Om}, \ell, t\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
      4. Applied rewrites62.3%

        \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\color{blue}{\mathsf{fma}\left(-2 \cdot \frac{\ell}{Om}, \ell, t\right)} - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
      5. Step-by-step derivation
        1. lift--.f64N/A

          \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \color{blue}{\left(\mathsf{fma}\left(-2 \cdot \frac{\ell}{Om}, \ell, t\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)}} \]
        2. lift-fma.f64N/A

          \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\color{blue}{\left(\left(-2 \cdot \frac{\ell}{Om}\right) \cdot \ell + t\right)} - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
        3. associate--l+N/A

          \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \color{blue}{\left(\left(-2 \cdot \frac{\ell}{Om}\right) \cdot \ell + \left(t - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)\right)}} \]
        4. *-commutativeN/A

          \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\color{blue}{\ell \cdot \left(-2 \cdot \frac{\ell}{Om}\right)} + \left(t - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)\right)} \]
        5. lift-*.f64N/A

          \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\ell \cdot \color{blue}{\left(-2 \cdot \frac{\ell}{Om}\right)} + \left(t - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)\right)} \]
        6. *-commutativeN/A

          \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\ell \cdot \color{blue}{\left(\frac{\ell}{Om} \cdot -2\right)} + \left(t - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)\right)} \]
        7. associate-*r*N/A

          \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\color{blue}{\left(\ell \cdot \frac{\ell}{Om}\right) \cdot -2} + \left(t - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)\right)} \]
        8. lift-/.f64N/A

          \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(\ell \cdot \color{blue}{\frac{\ell}{Om}}\right) \cdot -2 + \left(t - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)\right)} \]
        9. associate-/l*N/A

          \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\color{blue}{\frac{\ell \cdot \ell}{Om}} \cdot -2 + \left(t - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)\right)} \]
        10. lift-*.f64N/A

          \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\frac{\color{blue}{\ell \cdot \ell}}{Om} \cdot -2 + \left(t - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)\right)} \]
        11. lift-/.f64N/A

          \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\color{blue}{\frac{\ell \cdot \ell}{Om}} \cdot -2 + \left(t - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)\right)} \]
        12. *-commutativeN/A

          \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\color{blue}{-2 \cdot \frac{\ell \cdot \ell}{Om}} + \left(t - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)\right)} \]
        13. associate--l+N/A

          \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \color{blue}{\left(\left(-2 \cdot \frac{\ell \cdot \ell}{Om} + t\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)}} \]
        14. lift-fma.f64N/A

          \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\color{blue}{\mathsf{fma}\left(-2, \frac{\ell \cdot \ell}{Om}, t\right)} - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
        15. lift-*.f64N/A

          \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\mathsf{fma}\left(-2, \frac{\ell \cdot \ell}{Om}, t\right) - \color{blue}{\left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)}\right)} \]
      6. Applied rewrites64.1%

        \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \color{blue}{\mathsf{fma}\left(\frac{\ell}{Om} \cdot \left(-\left(U - U*\right)\right), n \cdot \frac{\ell}{Om}, \mathsf{fma}\left(\frac{\ell}{Om} \cdot \ell, -2, t\right)\right)}} \]
      7. Step-by-step derivation
        1. lift-*.f64N/A

          \[\leadsto \sqrt{\color{blue}{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \mathsf{fma}\left(\frac{\ell}{Om} \cdot \left(-\left(U - U*\right)\right), n \cdot \frac{\ell}{Om}, \mathsf{fma}\left(\frac{\ell}{Om} \cdot \ell, -2, t\right)\right)}} \]
        2. *-commutativeN/A

          \[\leadsto \sqrt{\color{blue}{\mathsf{fma}\left(\frac{\ell}{Om} \cdot \left(-\left(U - U*\right)\right), n \cdot \frac{\ell}{Om}, \mathsf{fma}\left(\frac{\ell}{Om} \cdot \ell, -2, t\right)\right) \cdot \left(\left(2 \cdot n\right) \cdot U\right)}} \]
        3. lower-*.f6464.1

          \[\leadsto \sqrt{\color{blue}{\mathsf{fma}\left(\frac{\ell}{Om} \cdot \left(-\left(U - U*\right)\right), n \cdot \frac{\ell}{Om}, \mathsf{fma}\left(\frac{\ell}{Om} \cdot \ell, -2, t\right)\right) \cdot \left(\left(2 \cdot n\right) \cdot U\right)}} \]
      8. Applied rewrites70.3%

        \[\leadsto \sqrt{\color{blue}{\mathsf{fma}\left(\frac{\ell}{Om}, \mathsf{fma}\left(n \cdot \frac{\ell}{Om}, -\left(U - U*\right), -2 \cdot \ell\right), t\right) \cdot \left(\left(2 \cdot n\right) \cdot U\right)}} \]
      9. Step-by-step derivation
        1. lift-*.f64N/A

          \[\leadsto \sqrt{\mathsf{fma}\left(\frac{\ell}{Om}, \mathsf{fma}\left(\color{blue}{n \cdot \frac{\ell}{Om}}, -\left(U - U*\right), -2 \cdot \ell\right), t\right) \cdot \left(\left(2 \cdot n\right) \cdot U\right)} \]
        2. lift-/.f64N/A

          \[\leadsto \sqrt{\mathsf{fma}\left(\frac{\ell}{Om}, \mathsf{fma}\left(n \cdot \color{blue}{\frac{\ell}{Om}}, -\left(U - U*\right), -2 \cdot \ell\right), t\right) \cdot \left(\left(2 \cdot n\right) \cdot U\right)} \]
        3. clear-numN/A

          \[\leadsto \sqrt{\mathsf{fma}\left(\frac{\ell}{Om}, \mathsf{fma}\left(n \cdot \color{blue}{\frac{1}{\frac{Om}{\ell}}}, -\left(U - U*\right), -2 \cdot \ell\right), t\right) \cdot \left(\left(2 \cdot n\right) \cdot U\right)} \]
        4. un-div-invN/A

          \[\leadsto \sqrt{\mathsf{fma}\left(\frac{\ell}{Om}, \mathsf{fma}\left(\color{blue}{\frac{n}{\frac{Om}{\ell}}}, -\left(U - U*\right), -2 \cdot \ell\right), t\right) \cdot \left(\left(2 \cdot n\right) \cdot U\right)} \]
        5. lower-/.f64N/A

          \[\leadsto \sqrt{\mathsf{fma}\left(\frac{\ell}{Om}, \mathsf{fma}\left(\color{blue}{\frac{n}{\frac{Om}{\ell}}}, -\left(U - U*\right), -2 \cdot \ell\right), t\right) \cdot \left(\left(2 \cdot n\right) \cdot U\right)} \]
        6. lower-/.f6470.3

          \[\leadsto \sqrt{\mathsf{fma}\left(\frac{\ell}{Om}, \mathsf{fma}\left(\frac{n}{\color{blue}{\frac{Om}{\ell}}}, -\left(U - U*\right), -2 \cdot \ell\right), t\right) \cdot \left(\left(2 \cdot n\right) \cdot U\right)} \]
      10. Applied rewrites70.3%

        \[\leadsto \sqrt{\mathsf{fma}\left(\frac{\ell}{Om}, \mathsf{fma}\left(\color{blue}{\frac{n}{\frac{Om}{\ell}}}, -\left(U - U*\right), -2 \cdot \ell\right), t\right) \cdot \left(\left(2 \cdot n\right) \cdot U\right)} \]
    7. Recombined 2 regimes into one program.
    8. Final simplification68.2%

      \[\leadsto \begin{array}{l} \mathbf{if}\;\sqrt{\left(\left(t - \frac{\ell \cdot \ell}{Om} \cdot 2\right) - \left({\left(\frac{\ell}{Om}\right)}^{2} \cdot n\right) \cdot \left(U - U*\right)\right) \cdot \left(\left(2 \cdot n\right) \cdot U\right)} \leq 5 \cdot 10^{-161}:\\ \;\;\;\;\sqrt{U} \cdot \sqrt{\mathsf{fma}\left(\frac{\ell}{Om} \cdot \ell, -2, t\right) \cdot \left(2 \cdot n\right)}\\ \mathbf{else}:\\ \;\;\;\;\sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \mathsf{fma}\left(\frac{\ell}{Om}, \mathsf{fma}\left(\frac{n}{\frac{Om}{\ell}}, U* - U, -2 \cdot \ell\right), t\right)}\\ \end{array} \]
    9. Add Preprocessing

    Alternative 3: 62.3% accurate, 0.7× speedup?

    \[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(2 \cdot n\right) \cdot U\\ \mathbf{if}\;\sqrt{\left(\left(t - \frac{\ell \cdot \ell}{Om} \cdot 2\right) - \left({\left(\frac{\ell}{Om}\right)}^{2} \cdot n\right) \cdot \left(U - U*\right)\right) \cdot t\_1} \leq 5 \cdot 10^{-161}:\\ \;\;\;\;\sqrt{U} \cdot \sqrt{\mathsf{fma}\left(\frac{\ell}{Om} \cdot \ell, -2, t\right) \cdot \left(2 \cdot n\right)}\\ \mathbf{else}:\\ \;\;\;\;\sqrt{\mathsf{fma}\left(\frac{\ell}{Om}, \mathsf{fma}\left(\frac{\ell}{Om} \cdot n, U* - U, -2 \cdot \ell\right), t\right) \cdot t\_1}\\ \end{array} \end{array} \]
    (FPCore (n U t l Om U*)
     :precision binary64
     (let* ((t_1 (* (* 2.0 n) U)))
       (if (<=
            (sqrt
             (*
              (-
               (- t (* (/ (* l l) Om) 2.0))
               (* (* (pow (/ l Om) 2.0) n) (- U U*)))
              t_1))
            5e-161)
         (* (sqrt U) (sqrt (* (fma (* (/ l Om) l) -2.0 t) (* 2.0 n))))
         (sqrt
          (* (fma (/ l Om) (fma (* (/ l Om) n) (- U* U) (* -2.0 l)) t) t_1)))))
    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 (sqrt((((t - (((l * l) / Om) * 2.0)) - ((pow((l / Om), 2.0) * n) * (U - U_42_))) * t_1)) <= 5e-161) {
    		tmp = sqrt(U) * sqrt((fma(((l / Om) * l), -2.0, t) * (2.0 * n)));
    	} else {
    		tmp = sqrt((fma((l / Om), fma(((l / Om) * n), (U_42_ - U), (-2.0 * l)), t) * t_1));
    	}
    	return tmp;
    }
    
    function code(n, U, t, l, Om, U_42_)
    	t_1 = Float64(Float64(2.0 * n) * U)
    	tmp = 0.0
    	if (sqrt(Float64(Float64(Float64(t - Float64(Float64(Float64(l * l) / Om) * 2.0)) - Float64(Float64((Float64(l / Om) ^ 2.0) * n) * Float64(U - U_42_))) * t_1)) <= 5e-161)
    		tmp = Float64(sqrt(U) * sqrt(Float64(fma(Float64(Float64(l / Om) * l), -2.0, t) * Float64(2.0 * n))));
    	else
    		tmp = sqrt(Float64(fma(Float64(l / Om), fma(Float64(Float64(l / Om) * n), Float64(U_42_ - U), Float64(-2.0 * l)), t) * t_1));
    	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[Sqrt[N[(N[(N[(t - N[(N[(N[(l * l), $MachinePrecision] / Om), $MachinePrecision] * 2.0), $MachinePrecision]), $MachinePrecision] - N[(N[(N[Power[N[(l / Om), $MachinePrecision], 2.0], $MachinePrecision] * n), $MachinePrecision] * N[(U - U$42$), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * t$95$1), $MachinePrecision]], $MachinePrecision], 5e-161], N[(N[Sqrt[U], $MachinePrecision] * N[Sqrt[N[(N[(N[(N[(l / Om), $MachinePrecision] * l), $MachinePrecision] * -2.0 + t), $MachinePrecision] * N[(2.0 * n), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], N[Sqrt[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] * t$95$1), $MachinePrecision]], $MachinePrecision]]]
    
    \begin{array}{l}
    
    \\
    \begin{array}{l}
    t_1 := \left(2 \cdot n\right) \cdot U\\
    \mathbf{if}\;\sqrt{\left(\left(t - \frac{\ell \cdot \ell}{Om} \cdot 2\right) - \left({\left(\frac{\ell}{Om}\right)}^{2} \cdot n\right) \cdot \left(U - U*\right)\right) \cdot t\_1} \leq 5 \cdot 10^{-161}:\\
    \;\;\;\;\sqrt{U} \cdot \sqrt{\mathsf{fma}\left(\frac{\ell}{Om} \cdot \ell, -2, t\right) \cdot \left(2 \cdot n\right)}\\
    
    \mathbf{else}:\\
    \;\;\;\;\sqrt{\mathsf{fma}\left(\frac{\ell}{Om}, \mathsf{fma}\left(\frac{\ell}{Om} \cdot n, U* - U, -2 \cdot \ell\right), t\right) \cdot t\_1}\\
    
    
    \end{array}
    \end{array}
    
    Derivation
    1. Split input into 2 regimes
    2. 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*))))) < 4.9999999999999999e-161

      1. Initial program 23.4%

        \[\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)} \]
      2. Add Preprocessing
      3. Taylor expanded in n around 0

        \[\leadsto \color{blue}{\sqrt{U \cdot \left(n \cdot \left(t - 2 \cdot \frac{{\ell}^{2}}{Om}\right)\right)} \cdot \sqrt{2}} \]
      4. Step-by-step derivation
        1. lower-*.f64N/A

          \[\leadsto \color{blue}{\sqrt{U \cdot \left(n \cdot \left(t - 2 \cdot \frac{{\ell}^{2}}{Om}\right)\right)} \cdot \sqrt{2}} \]
        2. lower-sqrt.f64N/A

          \[\leadsto \color{blue}{\sqrt{U \cdot \left(n \cdot \left(t - 2 \cdot \frac{{\ell}^{2}}{Om}\right)\right)}} \cdot \sqrt{2} \]
        3. *-commutativeN/A

          \[\leadsto \sqrt{\color{blue}{\left(n \cdot \left(t - 2 \cdot \frac{{\ell}^{2}}{Om}\right)\right) \cdot U}} \cdot \sqrt{2} \]
        4. lower-*.f64N/A

          \[\leadsto \sqrt{\color{blue}{\left(n \cdot \left(t - 2 \cdot \frac{{\ell}^{2}}{Om}\right)\right) \cdot U}} \cdot \sqrt{2} \]
        5. *-commutativeN/A

          \[\leadsto \sqrt{\color{blue}{\left(\left(t - 2 \cdot \frac{{\ell}^{2}}{Om}\right) \cdot n\right)} \cdot U} \cdot \sqrt{2} \]
        6. lower-*.f64N/A

          \[\leadsto \sqrt{\color{blue}{\left(\left(t - 2 \cdot \frac{{\ell}^{2}}{Om}\right) \cdot n\right)} \cdot U} \cdot \sqrt{2} \]
        7. cancel-sign-sub-invN/A

          \[\leadsto \sqrt{\left(\color{blue}{\left(t + \left(\mathsf{neg}\left(2\right)\right) \cdot \frac{{\ell}^{2}}{Om}\right)} \cdot n\right) \cdot U} \cdot \sqrt{2} \]
        8. metadata-evalN/A

          \[\leadsto \sqrt{\left(\left(t + \color{blue}{-2} \cdot \frac{{\ell}^{2}}{Om}\right) \cdot n\right) \cdot U} \cdot \sqrt{2} \]
        9. +-commutativeN/A

          \[\leadsto \sqrt{\left(\color{blue}{\left(-2 \cdot \frac{{\ell}^{2}}{Om} + t\right)} \cdot n\right) \cdot U} \cdot \sqrt{2} \]
        10. lower-fma.f64N/A

          \[\leadsto \sqrt{\left(\color{blue}{\mathsf{fma}\left(-2, \frac{{\ell}^{2}}{Om}, t\right)} \cdot n\right) \cdot U} \cdot \sqrt{2} \]
        11. lower-/.f64N/A

          \[\leadsto \sqrt{\left(\mathsf{fma}\left(-2, \color{blue}{\frac{{\ell}^{2}}{Om}}, t\right) \cdot n\right) \cdot U} \cdot \sqrt{2} \]
        12. unpow2N/A

          \[\leadsto \sqrt{\left(\mathsf{fma}\left(-2, \frac{\color{blue}{\ell \cdot \ell}}{Om}, t\right) \cdot n\right) \cdot U} \cdot \sqrt{2} \]
        13. lower-*.f64N/A

          \[\leadsto \sqrt{\left(\mathsf{fma}\left(-2, \frac{\color{blue}{\ell \cdot \ell}}{Om}, t\right) \cdot n\right) \cdot U} \cdot \sqrt{2} \]
        14. lower-sqrt.f6442.5

          \[\leadsto \sqrt{\left(\mathsf{fma}\left(-2, \frac{\ell \cdot \ell}{Om}, t\right) \cdot n\right) \cdot U} \cdot \color{blue}{\sqrt{2}} \]
      5. Applied rewrites42.5%

        \[\leadsto \color{blue}{\sqrt{\left(\mathsf{fma}\left(-2, \frac{\ell \cdot \ell}{Om}, t\right) \cdot n\right) \cdot U} \cdot \sqrt{2}} \]
      6. Step-by-step derivation
        1. Applied rewrites52.4%

          \[\leadsto \sqrt{\mathsf{fma}\left(\frac{\ell}{Om} \cdot \ell, -2, t\right) \cdot \left(2 \cdot n\right)} \cdot \color{blue}{\sqrt{U}} \]

        if 4.9999999999999999e-161 < (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. Initial program 57.5%

          \[\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)} \]
        2. Add Preprocessing
        3. Step-by-step derivation
          1. lift--.f64N/A

            \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\color{blue}{\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)} \]
          2. sub-negN/A

            \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\color{blue}{\left(t + \left(\mathsf{neg}\left(2 \cdot \frac{\ell \cdot \ell}{Om}\right)\right)\right)} - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
          3. +-commutativeN/A

            \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\color{blue}{\left(\left(\mathsf{neg}\left(2 \cdot \frac{\ell \cdot \ell}{Om}\right)\right) + t\right)} - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
          4. lift-*.f64N/A

            \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(\left(\mathsf{neg}\left(\color{blue}{2 \cdot \frac{\ell \cdot \ell}{Om}}\right)\right) + t\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
          5. distribute-lft-neg-inN/A

            \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(\color{blue}{\left(\mathsf{neg}\left(2\right)\right) \cdot \frac{\ell \cdot \ell}{Om}} + t\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
          6. lift-/.f64N/A

            \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(\left(\mathsf{neg}\left(2\right)\right) \cdot \color{blue}{\frac{\ell \cdot \ell}{Om}} + t\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
          7. lift-*.f64N/A

            \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(\left(\mathsf{neg}\left(2\right)\right) \cdot \frac{\color{blue}{\ell \cdot \ell}}{Om} + t\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
          8. associate-/l*N/A

            \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(\left(\mathsf{neg}\left(2\right)\right) \cdot \color{blue}{\left(\ell \cdot \frac{\ell}{Om}\right)} + t\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
          9. lift-/.f64N/A

            \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(\left(\mathsf{neg}\left(2\right)\right) \cdot \left(\ell \cdot \color{blue}{\frac{\ell}{Om}}\right) + t\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
          10. *-commutativeN/A

            \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(\left(\mathsf{neg}\left(2\right)\right) \cdot \color{blue}{\left(\frac{\ell}{Om} \cdot \ell\right)} + t\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
          11. associate-*r*N/A

            \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(\color{blue}{\left(\left(\mathsf{neg}\left(2\right)\right) \cdot \frac{\ell}{Om}\right) \cdot \ell} + t\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
          12. lower-fma.f64N/A

            \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\color{blue}{\mathsf{fma}\left(\left(\mathsf{neg}\left(2\right)\right) \cdot \frac{\ell}{Om}, \ell, t\right)} - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
          13. lower-*.f64N/A

            \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\mathsf{fma}\left(\color{blue}{\left(\mathsf{neg}\left(2\right)\right) \cdot \frac{\ell}{Om}}, \ell, t\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
          14. metadata-eval62.3

            \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\mathsf{fma}\left(\color{blue}{-2} \cdot \frac{\ell}{Om}, \ell, t\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
        4. Applied rewrites62.3%

          \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\color{blue}{\mathsf{fma}\left(-2 \cdot \frac{\ell}{Om}, \ell, t\right)} - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
        5. Step-by-step derivation
          1. lift--.f64N/A

            \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \color{blue}{\left(\mathsf{fma}\left(-2 \cdot \frac{\ell}{Om}, \ell, t\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)}} \]
          2. lift-fma.f64N/A

            \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\color{blue}{\left(\left(-2 \cdot \frac{\ell}{Om}\right) \cdot \ell + t\right)} - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
          3. associate--l+N/A

            \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \color{blue}{\left(\left(-2 \cdot \frac{\ell}{Om}\right) \cdot \ell + \left(t - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)\right)}} \]
          4. *-commutativeN/A

            \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\color{blue}{\ell \cdot \left(-2 \cdot \frac{\ell}{Om}\right)} + \left(t - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)\right)} \]
          5. lift-*.f64N/A

            \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\ell \cdot \color{blue}{\left(-2 \cdot \frac{\ell}{Om}\right)} + \left(t - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)\right)} \]
          6. *-commutativeN/A

            \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\ell \cdot \color{blue}{\left(\frac{\ell}{Om} \cdot -2\right)} + \left(t - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)\right)} \]
          7. associate-*r*N/A

            \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\color{blue}{\left(\ell \cdot \frac{\ell}{Om}\right) \cdot -2} + \left(t - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)\right)} \]
          8. lift-/.f64N/A

            \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(\ell \cdot \color{blue}{\frac{\ell}{Om}}\right) \cdot -2 + \left(t - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)\right)} \]
          9. associate-/l*N/A

            \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\color{blue}{\frac{\ell \cdot \ell}{Om}} \cdot -2 + \left(t - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)\right)} \]
          10. lift-*.f64N/A

            \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\frac{\color{blue}{\ell \cdot \ell}}{Om} \cdot -2 + \left(t - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)\right)} \]
          11. lift-/.f64N/A

            \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\color{blue}{\frac{\ell \cdot \ell}{Om}} \cdot -2 + \left(t - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)\right)} \]
          12. *-commutativeN/A

            \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\color{blue}{-2 \cdot \frac{\ell \cdot \ell}{Om}} + \left(t - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)\right)} \]
          13. associate--l+N/A

            \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \color{blue}{\left(\left(-2 \cdot \frac{\ell \cdot \ell}{Om} + t\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)}} \]
          14. lift-fma.f64N/A

            \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\color{blue}{\mathsf{fma}\left(-2, \frac{\ell \cdot \ell}{Om}, t\right)} - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
          15. lift-*.f64N/A

            \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\mathsf{fma}\left(-2, \frac{\ell \cdot \ell}{Om}, t\right) - \color{blue}{\left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)}\right)} \]
        6. Applied rewrites64.1%

          \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \color{blue}{\mathsf{fma}\left(\frac{\ell}{Om} \cdot \left(-\left(U - U*\right)\right), n \cdot \frac{\ell}{Om}, \mathsf{fma}\left(\frac{\ell}{Om} \cdot \ell, -2, t\right)\right)}} \]
        7. Step-by-step derivation
          1. lift-*.f64N/A

            \[\leadsto \sqrt{\color{blue}{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \mathsf{fma}\left(\frac{\ell}{Om} \cdot \left(-\left(U - U*\right)\right), n \cdot \frac{\ell}{Om}, \mathsf{fma}\left(\frac{\ell}{Om} \cdot \ell, -2, t\right)\right)}} \]
          2. *-commutativeN/A

            \[\leadsto \sqrt{\color{blue}{\mathsf{fma}\left(\frac{\ell}{Om} \cdot \left(-\left(U - U*\right)\right), n \cdot \frac{\ell}{Om}, \mathsf{fma}\left(\frac{\ell}{Om} \cdot \ell, -2, t\right)\right) \cdot \left(\left(2 \cdot n\right) \cdot U\right)}} \]
          3. lower-*.f6464.1

            \[\leadsto \sqrt{\color{blue}{\mathsf{fma}\left(\frac{\ell}{Om} \cdot \left(-\left(U - U*\right)\right), n \cdot \frac{\ell}{Om}, \mathsf{fma}\left(\frac{\ell}{Om} \cdot \ell, -2, t\right)\right) \cdot \left(\left(2 \cdot n\right) \cdot U\right)}} \]
        8. Applied rewrites70.3%

          \[\leadsto \sqrt{\color{blue}{\mathsf{fma}\left(\frac{\ell}{Om}, \mathsf{fma}\left(n \cdot \frac{\ell}{Om}, -\left(U - U*\right), -2 \cdot \ell\right), t\right) \cdot \left(\left(2 \cdot n\right) \cdot U\right)}} \]
      7. Recombined 2 regimes into one program.
      8. Final simplification68.2%

        \[\leadsto \begin{array}{l} \mathbf{if}\;\sqrt{\left(\left(t - \frac{\ell \cdot \ell}{Om} \cdot 2\right) - \left({\left(\frac{\ell}{Om}\right)}^{2} \cdot n\right) \cdot \left(U - U*\right)\right) \cdot \left(\left(2 \cdot n\right) \cdot U\right)} \leq 5 \cdot 10^{-161}:\\ \;\;\;\;\sqrt{U} \cdot \sqrt{\mathsf{fma}\left(\frac{\ell}{Om} \cdot \ell, -2, t\right) \cdot \left(2 \cdot n\right)}\\ \mathbf{else}:\\ \;\;\;\;\sqrt{\mathsf{fma}\left(\frac{\ell}{Om}, \mathsf{fma}\left(\frac{\ell}{Om} \cdot n, U* - U, -2 \cdot \ell\right), t\right) \cdot \left(\left(2 \cdot n\right) \cdot U\right)}\\ \end{array} \]
      9. Add Preprocessing

      Alternative 4: 50.4% accurate, 0.8× speedup?

      \[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(2 \cdot n\right) \cdot U\\ \mathbf{if}\;\left(\left(t - \frac{\ell \cdot \ell}{Om} \cdot 2\right) - \left({\left(\frac{\ell}{Om}\right)}^{2} \cdot n\right) \cdot \left(U - U*\right)\right) \cdot t\_1 \leq \infty:\\ \;\;\;\;\sqrt{\left(\left(\mathsf{fma}\left(\frac{\ell}{Om} \cdot \ell, -2, t\right) \cdot n\right) \cdot U\right) \cdot 2}\\ \mathbf{else}:\\ \;\;\;\;\sqrt{\frac{\left(\left(\ell \cdot \ell\right) \cdot n\right) \cdot U*}{Om \cdot Om} \cdot t\_1}\\ \end{array} \end{array} \]
      (FPCore (n U t l Om U*)
       :precision binary64
       (let* ((t_1 (* (* 2.0 n) U)))
         (if (<=
              (*
               (- (- t (* (/ (* l l) Om) 2.0)) (* (* (pow (/ l Om) 2.0) n) (- U U*)))
               t_1)
              INFINITY)
           (sqrt (* (* (* (fma (* (/ l Om) l) -2.0 t) n) U) 2.0))
           (sqrt (* (/ (* (* (* l l) n) U*) (* Om Om)) t_1)))))
      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 - (((l * l) / Om) * 2.0)) - ((pow((l / Om), 2.0) * n) * (U - U_42_))) * t_1) <= ((double) INFINITY)) {
      		tmp = sqrt((((fma(((l / Om) * l), -2.0, t) * n) * U) * 2.0));
      	} else {
      		tmp = sqrt((((((l * l) * n) * U_42_) / (Om * Om)) * t_1));
      	}
      	return tmp;
      }
      
      function code(n, U, t, l, Om, U_42_)
      	t_1 = Float64(Float64(2.0 * n) * U)
      	tmp = 0.0
      	if (Float64(Float64(Float64(t - Float64(Float64(Float64(l * l) / Om) * 2.0)) - Float64(Float64((Float64(l / Om) ^ 2.0) * n) * Float64(U - U_42_))) * t_1) <= Inf)
      		tmp = sqrt(Float64(Float64(Float64(fma(Float64(Float64(l / Om) * l), -2.0, t) * n) * U) * 2.0));
      	else
      		tmp = sqrt(Float64(Float64(Float64(Float64(Float64(l * l) * n) * U_42_) / Float64(Om * Om)) * t_1));
      	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[(N[(N[(t - N[(N[(N[(l * l), $MachinePrecision] / Om), $MachinePrecision] * 2.0), $MachinePrecision]), $MachinePrecision] - N[(N[(N[Power[N[(l / Om), $MachinePrecision], 2.0], $MachinePrecision] * n), $MachinePrecision] * N[(U - U$42$), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * t$95$1), $MachinePrecision], Infinity], N[Sqrt[N[(N[(N[(N[(N[(N[(l / Om), $MachinePrecision] * l), $MachinePrecision] * -2.0 + t), $MachinePrecision] * n), $MachinePrecision] * U), $MachinePrecision] * 2.0), $MachinePrecision]], $MachinePrecision], N[Sqrt[N[(N[(N[(N[(N[(l * l), $MachinePrecision] * n), $MachinePrecision] * U$42$), $MachinePrecision] / N[(Om * Om), $MachinePrecision]), $MachinePrecision] * t$95$1), $MachinePrecision]], $MachinePrecision]]]
      
      \begin{array}{l}
      
      \\
      \begin{array}{l}
      t_1 := \left(2 \cdot n\right) \cdot U\\
      \mathbf{if}\;\left(\left(t - \frac{\ell \cdot \ell}{Om} \cdot 2\right) - \left({\left(\frac{\ell}{Om}\right)}^{2} \cdot n\right) \cdot \left(U - U*\right)\right) \cdot t\_1 \leq \infty:\\
      \;\;\;\;\sqrt{\left(\left(\mathsf{fma}\left(\frac{\ell}{Om} \cdot \ell, -2, t\right) \cdot n\right) \cdot U\right) \cdot 2}\\
      
      \mathbf{else}:\\
      \;\;\;\;\sqrt{\frac{\left(\left(\ell \cdot \ell\right) \cdot n\right) \cdot U*}{Om \cdot Om} \cdot t\_1}\\
      
      
      \end{array}
      \end{array}
      
      Derivation
      1. Split input into 2 regimes
      2. 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*)))) < +inf.0

        1. Initial program 60.1%

          \[\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)} \]
        2. Add Preprocessing
        3. Taylor expanded in n around 0

          \[\leadsto \color{blue}{\sqrt{U \cdot \left(n \cdot \left(t - 2 \cdot \frac{{\ell}^{2}}{Om}\right)\right)} \cdot \sqrt{2}} \]
        4. Step-by-step derivation
          1. lower-*.f64N/A

            \[\leadsto \color{blue}{\sqrt{U \cdot \left(n \cdot \left(t - 2 \cdot \frac{{\ell}^{2}}{Om}\right)\right)} \cdot \sqrt{2}} \]
          2. lower-sqrt.f64N/A

            \[\leadsto \color{blue}{\sqrt{U \cdot \left(n \cdot \left(t - 2 \cdot \frac{{\ell}^{2}}{Om}\right)\right)}} \cdot \sqrt{2} \]
          3. *-commutativeN/A

            \[\leadsto \sqrt{\color{blue}{\left(n \cdot \left(t - 2 \cdot \frac{{\ell}^{2}}{Om}\right)\right) \cdot U}} \cdot \sqrt{2} \]
          4. lower-*.f64N/A

            \[\leadsto \sqrt{\color{blue}{\left(n \cdot \left(t - 2 \cdot \frac{{\ell}^{2}}{Om}\right)\right) \cdot U}} \cdot \sqrt{2} \]
          5. *-commutativeN/A

            \[\leadsto \sqrt{\color{blue}{\left(\left(t - 2 \cdot \frac{{\ell}^{2}}{Om}\right) \cdot n\right)} \cdot U} \cdot \sqrt{2} \]
          6. lower-*.f64N/A

            \[\leadsto \sqrt{\color{blue}{\left(\left(t - 2 \cdot \frac{{\ell}^{2}}{Om}\right) \cdot n\right)} \cdot U} \cdot \sqrt{2} \]
          7. cancel-sign-sub-invN/A

            \[\leadsto \sqrt{\left(\color{blue}{\left(t + \left(\mathsf{neg}\left(2\right)\right) \cdot \frac{{\ell}^{2}}{Om}\right)} \cdot n\right) \cdot U} \cdot \sqrt{2} \]
          8. metadata-evalN/A

            \[\leadsto \sqrt{\left(\left(t + \color{blue}{-2} \cdot \frac{{\ell}^{2}}{Om}\right) \cdot n\right) \cdot U} \cdot \sqrt{2} \]
          9. +-commutativeN/A

            \[\leadsto \sqrt{\left(\color{blue}{\left(-2 \cdot \frac{{\ell}^{2}}{Om} + t\right)} \cdot n\right) \cdot U} \cdot \sqrt{2} \]
          10. lower-fma.f64N/A

            \[\leadsto \sqrt{\left(\color{blue}{\mathsf{fma}\left(-2, \frac{{\ell}^{2}}{Om}, t\right)} \cdot n\right) \cdot U} \cdot \sqrt{2} \]
          11. lower-/.f64N/A

            \[\leadsto \sqrt{\left(\mathsf{fma}\left(-2, \color{blue}{\frac{{\ell}^{2}}{Om}}, t\right) \cdot n\right) \cdot U} \cdot \sqrt{2} \]
          12. unpow2N/A

            \[\leadsto \sqrt{\left(\mathsf{fma}\left(-2, \frac{\color{blue}{\ell \cdot \ell}}{Om}, t\right) \cdot n\right) \cdot U} \cdot \sqrt{2} \]
          13. lower-*.f64N/A

            \[\leadsto \sqrt{\left(\mathsf{fma}\left(-2, \frac{\color{blue}{\ell \cdot \ell}}{Om}, t\right) \cdot n\right) \cdot U} \cdot \sqrt{2} \]
          14. lower-sqrt.f6455.2

            \[\leadsto \sqrt{\left(\mathsf{fma}\left(-2, \frac{\ell \cdot \ell}{Om}, t\right) \cdot n\right) \cdot U} \cdot \color{blue}{\sqrt{2}} \]
        5. Applied rewrites55.2%

          \[\leadsto \color{blue}{\sqrt{\left(\mathsf{fma}\left(-2, \frac{\ell \cdot \ell}{Om}, t\right) \cdot n\right) \cdot U} \cdot \sqrt{2}} \]
        6. Step-by-step derivation
          1. Applied rewrites59.4%

            \[\leadsto \color{blue}{\sqrt{\left(\left(\mathsf{fma}\left(\frac{\ell}{Om} \cdot \ell, -2, t\right) \cdot n\right) \cdot U\right) \cdot 2}} \]

          if +inf.0 < (*.f64 (*.f64 (*.f64 #s(literal 2 binary64) n) U) (-.f64 (-.f64 t (*.f64 #s(literal 2 binary64) (/.f64 (*.f64 l l) Om))) (*.f64 (*.f64 n (pow.f64 (/.f64 l Om) #s(literal 2 binary64))) (-.f64 U U*))))

          1. Initial program 0.0%

            \[\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)} \]
          2. Add Preprocessing
          3. Step-by-step derivation
            1. lift--.f64N/A

              \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\color{blue}{\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)} \]
            2. sub-negN/A

              \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\color{blue}{\left(t + \left(\mathsf{neg}\left(2 \cdot \frac{\ell \cdot \ell}{Om}\right)\right)\right)} - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
            3. +-commutativeN/A

              \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\color{blue}{\left(\left(\mathsf{neg}\left(2 \cdot \frac{\ell \cdot \ell}{Om}\right)\right) + t\right)} - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
            4. lift-*.f64N/A

              \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(\left(\mathsf{neg}\left(\color{blue}{2 \cdot \frac{\ell \cdot \ell}{Om}}\right)\right) + t\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
            5. distribute-lft-neg-inN/A

              \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(\color{blue}{\left(\mathsf{neg}\left(2\right)\right) \cdot \frac{\ell \cdot \ell}{Om}} + t\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
            6. lift-/.f64N/A

              \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(\left(\mathsf{neg}\left(2\right)\right) \cdot \color{blue}{\frac{\ell \cdot \ell}{Om}} + t\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
            7. lift-*.f64N/A

              \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(\left(\mathsf{neg}\left(2\right)\right) \cdot \frac{\color{blue}{\ell \cdot \ell}}{Om} + t\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
            8. associate-/l*N/A

              \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(\left(\mathsf{neg}\left(2\right)\right) \cdot \color{blue}{\left(\ell \cdot \frac{\ell}{Om}\right)} + t\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
            9. lift-/.f64N/A

              \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(\left(\mathsf{neg}\left(2\right)\right) \cdot \left(\ell \cdot \color{blue}{\frac{\ell}{Om}}\right) + t\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
            10. *-commutativeN/A

              \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(\left(\mathsf{neg}\left(2\right)\right) \cdot \color{blue}{\left(\frac{\ell}{Om} \cdot \ell\right)} + t\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
            11. associate-*r*N/A

              \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(\color{blue}{\left(\left(\mathsf{neg}\left(2\right)\right) \cdot \frac{\ell}{Om}\right) \cdot \ell} + t\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
            12. lower-fma.f64N/A

              \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\color{blue}{\mathsf{fma}\left(\left(\mathsf{neg}\left(2\right)\right) \cdot \frac{\ell}{Om}, \ell, t\right)} - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
            13. lower-*.f64N/A

              \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\mathsf{fma}\left(\color{blue}{\left(\mathsf{neg}\left(2\right)\right) \cdot \frac{\ell}{Om}}, \ell, t\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
            14. metadata-eval0.4

              \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\mathsf{fma}\left(\color{blue}{-2} \cdot \frac{\ell}{Om}, \ell, t\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
          4. Applied rewrites0.4%

            \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\color{blue}{\mathsf{fma}\left(-2 \cdot \frac{\ell}{Om}, \ell, t\right)} - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
          5. Taylor expanded in U* around inf

            \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \color{blue}{\frac{U* \cdot \left({\ell}^{2} \cdot n\right)}{{Om}^{2}}}} \]
          6. Step-by-step derivation
            1. lower-/.f64N/A

              \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \color{blue}{\frac{U* \cdot \left({\ell}^{2} \cdot n\right)}{{Om}^{2}}}} \]
            2. lower-*.f64N/A

              \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \frac{\color{blue}{U* \cdot \left({\ell}^{2} \cdot n\right)}}{{Om}^{2}}} \]
            3. lower-*.f64N/A

              \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \frac{U* \cdot \color{blue}{\left({\ell}^{2} \cdot n\right)}}{{Om}^{2}}} \]
            4. unpow2N/A

              \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \frac{U* \cdot \left(\color{blue}{\left(\ell \cdot \ell\right)} \cdot n\right)}{{Om}^{2}}} \]
            5. lower-*.f64N/A

              \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \frac{U* \cdot \left(\color{blue}{\left(\ell \cdot \ell\right)} \cdot n\right)}{{Om}^{2}}} \]
            6. unpow2N/A

              \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \frac{U* \cdot \left(\left(\ell \cdot \ell\right) \cdot n\right)}{\color{blue}{Om \cdot Om}}} \]
            7. lower-*.f6440.3

              \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \frac{U* \cdot \left(\left(\ell \cdot \ell\right) \cdot n\right)}{\color{blue}{Om \cdot Om}}} \]
          7. Applied rewrites40.3%

            \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \color{blue}{\frac{U* \cdot \left(\left(\ell \cdot \ell\right) \cdot n\right)}{Om \cdot Om}}} \]
        7. Recombined 2 regimes into one program.
        8. Final simplification57.3%

          \[\leadsto \begin{array}{l} \mathbf{if}\;\left(\left(t - \frac{\ell \cdot \ell}{Om} \cdot 2\right) - \left({\left(\frac{\ell}{Om}\right)}^{2} \cdot n\right) \cdot \left(U - U*\right)\right) \cdot \left(\left(2 \cdot n\right) \cdot U\right) \leq \infty:\\ \;\;\;\;\sqrt{\left(\left(\mathsf{fma}\left(\frac{\ell}{Om} \cdot \ell, -2, t\right) \cdot n\right) \cdot U\right) \cdot 2}\\ \mathbf{else}:\\ \;\;\;\;\sqrt{\frac{\left(\left(\ell \cdot \ell\right) \cdot n\right) \cdot U*}{Om \cdot Om} \cdot \left(\left(2 \cdot n\right) \cdot U\right)}\\ \end{array} \]
        9. Add Preprocessing

        Alternative 5: 50.1% accurate, 0.8× speedup?

        \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;\left(\left(t - \frac{\ell \cdot \ell}{Om} \cdot 2\right) - \left({\left(\frac{\ell}{Om}\right)}^{2} \cdot n\right) \cdot \left(U - U*\right)\right) \cdot \left(\left(2 \cdot n\right) \cdot U\right) \leq \infty:\\ \;\;\;\;\sqrt{\left(\left(\mathsf{fma}\left(\frac{\ell}{Om} \cdot \ell, -2, t\right) \cdot n\right) \cdot U\right) \cdot 2}\\ \mathbf{else}:\\ \;\;\;\;\sqrt{\left(\frac{U}{Om \cdot Om} \cdot \left(\left(n \cdot n\right) \cdot \left(\left(\ell \cdot \ell\right) \cdot U*\right)\right)\right) \cdot 2}\\ \end{array} \end{array} \]
        (FPCore (n U t l Om U*)
         :precision binary64
         (if (<=
              (*
               (- (- t (* (/ (* l l) Om) 2.0)) (* (* (pow (/ l Om) 2.0) n) (- U U*)))
               (* (* 2.0 n) U))
              INFINITY)
           (sqrt (* (* (* (fma (* (/ l Om) l) -2.0 t) n) U) 2.0))
           (sqrt (* (* (/ U (* Om Om)) (* (* n n) (* (* l l) U*))) 2.0))))
        double code(double n, double U, double t, double l, double Om, double U_42_) {
        	double tmp;
        	if ((((t - (((l * l) / Om) * 2.0)) - ((pow((l / Om), 2.0) * n) * (U - U_42_))) * ((2.0 * n) * U)) <= ((double) INFINITY)) {
        		tmp = sqrt((((fma(((l / Om) * l), -2.0, t) * n) * U) * 2.0));
        	} else {
        		tmp = sqrt((((U / (Om * Om)) * ((n * n) * ((l * l) * U_42_))) * 2.0));
        	}
        	return tmp;
        }
        
        function code(n, U, t, l, Om, U_42_)
        	tmp = 0.0
        	if (Float64(Float64(Float64(t - Float64(Float64(Float64(l * l) / Om) * 2.0)) - Float64(Float64((Float64(l / Om) ^ 2.0) * n) * Float64(U - U_42_))) * Float64(Float64(2.0 * n) * U)) <= Inf)
        		tmp = sqrt(Float64(Float64(Float64(fma(Float64(Float64(l / Om) * l), -2.0, t) * n) * U) * 2.0));
        	else
        		tmp = sqrt(Float64(Float64(Float64(U / Float64(Om * Om)) * Float64(Float64(n * n) * Float64(Float64(l * l) * U_42_))) * 2.0));
        	end
        	return tmp
        end
        
        code[n_, U_, t_, l_, Om_, U$42$_] := If[LessEqual[N[(N[(N[(t - N[(N[(N[(l * l), $MachinePrecision] / Om), $MachinePrecision] * 2.0), $MachinePrecision]), $MachinePrecision] - N[(N[(N[Power[N[(l / Om), $MachinePrecision], 2.0], $MachinePrecision] * n), $MachinePrecision] * N[(U - U$42$), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(N[(2.0 * n), $MachinePrecision] * U), $MachinePrecision]), $MachinePrecision], Infinity], N[Sqrt[N[(N[(N[(N[(N[(N[(l / Om), $MachinePrecision] * l), $MachinePrecision] * -2.0 + t), $MachinePrecision] * n), $MachinePrecision] * U), $MachinePrecision] * 2.0), $MachinePrecision]], $MachinePrecision], N[Sqrt[N[(N[(N[(U / N[(Om * Om), $MachinePrecision]), $MachinePrecision] * N[(N[(n * n), $MachinePrecision] * N[(N[(l * l), $MachinePrecision] * U$42$), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * 2.0), $MachinePrecision]], $MachinePrecision]]
        
        \begin{array}{l}
        
        \\
        \begin{array}{l}
        \mathbf{if}\;\left(\left(t - \frac{\ell \cdot \ell}{Om} \cdot 2\right) - \left({\left(\frac{\ell}{Om}\right)}^{2} \cdot n\right) \cdot \left(U - U*\right)\right) \cdot \left(\left(2 \cdot n\right) \cdot U\right) \leq \infty:\\
        \;\;\;\;\sqrt{\left(\left(\mathsf{fma}\left(\frac{\ell}{Om} \cdot \ell, -2, t\right) \cdot n\right) \cdot U\right) \cdot 2}\\
        
        \mathbf{else}:\\
        \;\;\;\;\sqrt{\left(\frac{U}{Om \cdot Om} \cdot \left(\left(n \cdot n\right) \cdot \left(\left(\ell \cdot \ell\right) \cdot U*\right)\right)\right) \cdot 2}\\
        
        
        \end{array}
        \end{array}
        
        Derivation
        1. Split input into 2 regimes
        2. 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*)))) < +inf.0

          1. Initial program 60.1%

            \[\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)} \]
          2. Add Preprocessing
          3. Taylor expanded in n around 0

            \[\leadsto \color{blue}{\sqrt{U \cdot \left(n \cdot \left(t - 2 \cdot \frac{{\ell}^{2}}{Om}\right)\right)} \cdot \sqrt{2}} \]
          4. Step-by-step derivation
            1. lower-*.f64N/A

              \[\leadsto \color{blue}{\sqrt{U \cdot \left(n \cdot \left(t - 2 \cdot \frac{{\ell}^{2}}{Om}\right)\right)} \cdot \sqrt{2}} \]
            2. lower-sqrt.f64N/A

              \[\leadsto \color{blue}{\sqrt{U \cdot \left(n \cdot \left(t - 2 \cdot \frac{{\ell}^{2}}{Om}\right)\right)}} \cdot \sqrt{2} \]
            3. *-commutativeN/A

              \[\leadsto \sqrt{\color{blue}{\left(n \cdot \left(t - 2 \cdot \frac{{\ell}^{2}}{Om}\right)\right) \cdot U}} \cdot \sqrt{2} \]
            4. lower-*.f64N/A

              \[\leadsto \sqrt{\color{blue}{\left(n \cdot \left(t - 2 \cdot \frac{{\ell}^{2}}{Om}\right)\right) \cdot U}} \cdot \sqrt{2} \]
            5. *-commutativeN/A

              \[\leadsto \sqrt{\color{blue}{\left(\left(t - 2 \cdot \frac{{\ell}^{2}}{Om}\right) \cdot n\right)} \cdot U} \cdot \sqrt{2} \]
            6. lower-*.f64N/A

              \[\leadsto \sqrt{\color{blue}{\left(\left(t - 2 \cdot \frac{{\ell}^{2}}{Om}\right) \cdot n\right)} \cdot U} \cdot \sqrt{2} \]
            7. cancel-sign-sub-invN/A

              \[\leadsto \sqrt{\left(\color{blue}{\left(t + \left(\mathsf{neg}\left(2\right)\right) \cdot \frac{{\ell}^{2}}{Om}\right)} \cdot n\right) \cdot U} \cdot \sqrt{2} \]
            8. metadata-evalN/A

              \[\leadsto \sqrt{\left(\left(t + \color{blue}{-2} \cdot \frac{{\ell}^{2}}{Om}\right) \cdot n\right) \cdot U} \cdot \sqrt{2} \]
            9. +-commutativeN/A

              \[\leadsto \sqrt{\left(\color{blue}{\left(-2 \cdot \frac{{\ell}^{2}}{Om} + t\right)} \cdot n\right) \cdot U} \cdot \sqrt{2} \]
            10. lower-fma.f64N/A

              \[\leadsto \sqrt{\left(\color{blue}{\mathsf{fma}\left(-2, \frac{{\ell}^{2}}{Om}, t\right)} \cdot n\right) \cdot U} \cdot \sqrt{2} \]
            11. lower-/.f64N/A

              \[\leadsto \sqrt{\left(\mathsf{fma}\left(-2, \color{blue}{\frac{{\ell}^{2}}{Om}}, t\right) \cdot n\right) \cdot U} \cdot \sqrt{2} \]
            12. unpow2N/A

              \[\leadsto \sqrt{\left(\mathsf{fma}\left(-2, \frac{\color{blue}{\ell \cdot \ell}}{Om}, t\right) \cdot n\right) \cdot U} \cdot \sqrt{2} \]
            13. lower-*.f64N/A

              \[\leadsto \sqrt{\left(\mathsf{fma}\left(-2, \frac{\color{blue}{\ell \cdot \ell}}{Om}, t\right) \cdot n\right) \cdot U} \cdot \sqrt{2} \]
            14. lower-sqrt.f6455.2

              \[\leadsto \sqrt{\left(\mathsf{fma}\left(-2, \frac{\ell \cdot \ell}{Om}, t\right) \cdot n\right) \cdot U} \cdot \color{blue}{\sqrt{2}} \]
          5. Applied rewrites55.2%

            \[\leadsto \color{blue}{\sqrt{\left(\mathsf{fma}\left(-2, \frac{\ell \cdot \ell}{Om}, t\right) \cdot n\right) \cdot U} \cdot \sqrt{2}} \]
          6. Step-by-step derivation
            1. Applied rewrites59.4%

              \[\leadsto \color{blue}{\sqrt{\left(\left(\mathsf{fma}\left(\frac{\ell}{Om} \cdot \ell, -2, t\right) \cdot n\right) \cdot U\right) \cdot 2}} \]

            if +inf.0 < (*.f64 (*.f64 (*.f64 #s(literal 2 binary64) n) U) (-.f64 (-.f64 t (*.f64 #s(literal 2 binary64) (/.f64 (*.f64 l l) Om))) (*.f64 (*.f64 n (pow.f64 (/.f64 l Om) #s(literal 2 binary64))) (-.f64 U U*))))

            1. Initial program 0.0%

              \[\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)} \]
            2. Add Preprocessing
            3. Taylor expanded in U* around inf

              \[\leadsto \sqrt{\color{blue}{2 \cdot \frac{U \cdot \left(U* \cdot \left({\ell}^{2} \cdot {n}^{2}\right)\right)}{{Om}^{2}}}} \]
            4. Step-by-step derivation
              1. *-commutativeN/A

                \[\leadsto \sqrt{\color{blue}{\frac{U \cdot \left(U* \cdot \left({\ell}^{2} \cdot {n}^{2}\right)\right)}{{Om}^{2}} \cdot 2}} \]
              2. lower-*.f64N/A

                \[\leadsto \sqrt{\color{blue}{\frac{U \cdot \left(U* \cdot \left({\ell}^{2} \cdot {n}^{2}\right)\right)}{{Om}^{2}} \cdot 2}} \]
              3. *-commutativeN/A

                \[\leadsto \sqrt{\frac{\color{blue}{\left(U* \cdot \left({\ell}^{2} \cdot {n}^{2}\right)\right) \cdot U}}{{Om}^{2}} \cdot 2} \]
              4. associate-/l*N/A

                \[\leadsto \sqrt{\color{blue}{\left(\left(U* \cdot \left({\ell}^{2} \cdot {n}^{2}\right)\right) \cdot \frac{U}{{Om}^{2}}\right)} \cdot 2} \]
              5. lower-*.f64N/A

                \[\leadsto \sqrt{\color{blue}{\left(\left(U* \cdot \left({\ell}^{2} \cdot {n}^{2}\right)\right) \cdot \frac{U}{{Om}^{2}}\right)} \cdot 2} \]
              6. associate-*r*N/A

                \[\leadsto \sqrt{\left(\color{blue}{\left(\left(U* \cdot {\ell}^{2}\right) \cdot {n}^{2}\right)} \cdot \frac{U}{{Om}^{2}}\right) \cdot 2} \]
              7. lower-*.f64N/A

                \[\leadsto \sqrt{\left(\color{blue}{\left(\left(U* \cdot {\ell}^{2}\right) \cdot {n}^{2}\right)} \cdot \frac{U}{{Om}^{2}}\right) \cdot 2} \]
              8. lower-*.f64N/A

                \[\leadsto \sqrt{\left(\left(\color{blue}{\left(U* \cdot {\ell}^{2}\right)} \cdot {n}^{2}\right) \cdot \frac{U}{{Om}^{2}}\right) \cdot 2} \]
              9. unpow2N/A

                \[\leadsto \sqrt{\left(\left(\left(U* \cdot \color{blue}{\left(\ell \cdot \ell\right)}\right) \cdot {n}^{2}\right) \cdot \frac{U}{{Om}^{2}}\right) \cdot 2} \]
              10. lower-*.f64N/A

                \[\leadsto \sqrt{\left(\left(\left(U* \cdot \color{blue}{\left(\ell \cdot \ell\right)}\right) \cdot {n}^{2}\right) \cdot \frac{U}{{Om}^{2}}\right) \cdot 2} \]
              11. unpow2N/A

                \[\leadsto \sqrt{\left(\left(\left(U* \cdot \left(\ell \cdot \ell\right)\right) \cdot \color{blue}{\left(n \cdot n\right)}\right) \cdot \frac{U}{{Om}^{2}}\right) \cdot 2} \]
              12. lower-*.f64N/A

                \[\leadsto \sqrt{\left(\left(\left(U* \cdot \left(\ell \cdot \ell\right)\right) \cdot \color{blue}{\left(n \cdot n\right)}\right) \cdot \frac{U}{{Om}^{2}}\right) \cdot 2} \]
              13. lower-/.f64N/A

                \[\leadsto \sqrt{\left(\left(\left(U* \cdot \left(\ell \cdot \ell\right)\right) \cdot \left(n \cdot n\right)\right) \cdot \color{blue}{\frac{U}{{Om}^{2}}}\right) \cdot 2} \]
              14. unpow2N/A

                \[\leadsto \sqrt{\left(\left(\left(U* \cdot \left(\ell \cdot \ell\right)\right) \cdot \left(n \cdot n\right)\right) \cdot \frac{U}{\color{blue}{Om \cdot Om}}\right) \cdot 2} \]
              15. lower-*.f6439.9

                \[\leadsto \sqrt{\left(\left(\left(U* \cdot \left(\ell \cdot \ell\right)\right) \cdot \left(n \cdot n\right)\right) \cdot \frac{U}{\color{blue}{Om \cdot Om}}\right) \cdot 2} \]
            5. Applied rewrites39.9%

              \[\leadsto \sqrt{\color{blue}{\left(\left(\left(U* \cdot \left(\ell \cdot \ell\right)\right) \cdot \left(n \cdot n\right)\right) \cdot \frac{U}{Om \cdot Om}\right) \cdot 2}} \]
          7. Recombined 2 regimes into one program.
          8. Final simplification57.2%

            \[\leadsto \begin{array}{l} \mathbf{if}\;\left(\left(t - \frac{\ell \cdot \ell}{Om} \cdot 2\right) - \left({\left(\frac{\ell}{Om}\right)}^{2} \cdot n\right) \cdot \left(U - U*\right)\right) \cdot \left(\left(2 \cdot n\right) \cdot U\right) \leq \infty:\\ \;\;\;\;\sqrt{\left(\left(\mathsf{fma}\left(\frac{\ell}{Om} \cdot \ell, -2, t\right) \cdot n\right) \cdot U\right) \cdot 2}\\ \mathbf{else}:\\ \;\;\;\;\sqrt{\left(\frac{U}{Om \cdot Om} \cdot \left(\left(n \cdot n\right) \cdot \left(\left(\ell \cdot \ell\right) \cdot U*\right)\right)\right) \cdot 2}\\ \end{array} \]
          9. Add Preprocessing

          Alternative 6: 49.7% accurate, 0.8× speedup?

          \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;\left(\left(t - \frac{\ell \cdot \ell}{Om} \cdot 2\right) - \left({\left(\frac{\ell}{Om}\right)}^{2} \cdot n\right) \cdot \left(U - U*\right)\right) \cdot \left(\left(2 \cdot n\right) \cdot U\right) \leq \infty:\\ \;\;\;\;\sqrt{\left(\left(\mathsf{fma}\left(\frac{\ell}{Om} \cdot \ell, -2, t\right) \cdot n\right) \cdot U\right) \cdot 2}\\ \mathbf{else}:\\ \;\;\;\;\sqrt{U* \cdot U} \cdot \left(\left(\sqrt{2} \cdot n\right) \cdot \frac{\ell}{Om}\right)\\ \end{array} \end{array} \]
          (FPCore (n U t l Om U*)
           :precision binary64
           (if (<=
                (*
                 (- (- t (* (/ (* l l) Om) 2.0)) (* (* (pow (/ l Om) 2.0) n) (- U U*)))
                 (* (* 2.0 n) U))
                INFINITY)
             (sqrt (* (* (* (fma (* (/ l Om) l) -2.0 t) n) U) 2.0))
             (* (sqrt (* U* U)) (* (* (sqrt 2.0) n) (/ l Om)))))
          double code(double n, double U, double t, double l, double Om, double U_42_) {
          	double tmp;
          	if ((((t - (((l * l) / Om) * 2.0)) - ((pow((l / Om), 2.0) * n) * (U - U_42_))) * ((2.0 * n) * U)) <= ((double) INFINITY)) {
          		tmp = sqrt((((fma(((l / Om) * l), -2.0, t) * n) * U) * 2.0));
          	} else {
          		tmp = sqrt((U_42_ * U)) * ((sqrt(2.0) * n) * (l / Om));
          	}
          	return tmp;
          }
          
          function code(n, U, t, l, Om, U_42_)
          	tmp = 0.0
          	if (Float64(Float64(Float64(t - Float64(Float64(Float64(l * l) / Om) * 2.0)) - Float64(Float64((Float64(l / Om) ^ 2.0) * n) * Float64(U - U_42_))) * Float64(Float64(2.0 * n) * U)) <= Inf)
          		tmp = sqrt(Float64(Float64(Float64(fma(Float64(Float64(l / Om) * l), -2.0, t) * n) * U) * 2.0));
          	else
          		tmp = Float64(sqrt(Float64(U_42_ * U)) * Float64(Float64(sqrt(2.0) * n) * Float64(l / Om)));
          	end
          	return tmp
          end
          
          code[n_, U_, t_, l_, Om_, U$42$_] := If[LessEqual[N[(N[(N[(t - N[(N[(N[(l * l), $MachinePrecision] / Om), $MachinePrecision] * 2.0), $MachinePrecision]), $MachinePrecision] - N[(N[(N[Power[N[(l / Om), $MachinePrecision], 2.0], $MachinePrecision] * n), $MachinePrecision] * N[(U - U$42$), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(N[(2.0 * n), $MachinePrecision] * U), $MachinePrecision]), $MachinePrecision], Infinity], N[Sqrt[N[(N[(N[(N[(N[(N[(l / Om), $MachinePrecision] * l), $MachinePrecision] * -2.0 + t), $MachinePrecision] * n), $MachinePrecision] * U), $MachinePrecision] * 2.0), $MachinePrecision]], $MachinePrecision], N[(N[Sqrt[N[(U$42$ * U), $MachinePrecision]], $MachinePrecision] * N[(N[(N[Sqrt[2.0], $MachinePrecision] * n), $MachinePrecision] * N[(l / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
          
          \begin{array}{l}
          
          \\
          \begin{array}{l}
          \mathbf{if}\;\left(\left(t - \frac{\ell \cdot \ell}{Om} \cdot 2\right) - \left({\left(\frac{\ell}{Om}\right)}^{2} \cdot n\right) \cdot \left(U - U*\right)\right) \cdot \left(\left(2 \cdot n\right) \cdot U\right) \leq \infty:\\
          \;\;\;\;\sqrt{\left(\left(\mathsf{fma}\left(\frac{\ell}{Om} \cdot \ell, -2, t\right) \cdot n\right) \cdot U\right) \cdot 2}\\
          
          \mathbf{else}:\\
          \;\;\;\;\sqrt{U* \cdot U} \cdot \left(\left(\sqrt{2} \cdot n\right) \cdot \frac{\ell}{Om}\right)\\
          
          
          \end{array}
          \end{array}
          
          Derivation
          1. Split input into 2 regimes
          2. 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*)))) < +inf.0

            1. Initial program 60.1%

              \[\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)} \]
            2. Add Preprocessing
            3. Taylor expanded in n around 0

              \[\leadsto \color{blue}{\sqrt{U \cdot \left(n \cdot \left(t - 2 \cdot \frac{{\ell}^{2}}{Om}\right)\right)} \cdot \sqrt{2}} \]
            4. Step-by-step derivation
              1. lower-*.f64N/A

                \[\leadsto \color{blue}{\sqrt{U \cdot \left(n \cdot \left(t - 2 \cdot \frac{{\ell}^{2}}{Om}\right)\right)} \cdot \sqrt{2}} \]
              2. lower-sqrt.f64N/A

                \[\leadsto \color{blue}{\sqrt{U \cdot \left(n \cdot \left(t - 2 \cdot \frac{{\ell}^{2}}{Om}\right)\right)}} \cdot \sqrt{2} \]
              3. *-commutativeN/A

                \[\leadsto \sqrt{\color{blue}{\left(n \cdot \left(t - 2 \cdot \frac{{\ell}^{2}}{Om}\right)\right) \cdot U}} \cdot \sqrt{2} \]
              4. lower-*.f64N/A

                \[\leadsto \sqrt{\color{blue}{\left(n \cdot \left(t - 2 \cdot \frac{{\ell}^{2}}{Om}\right)\right) \cdot U}} \cdot \sqrt{2} \]
              5. *-commutativeN/A

                \[\leadsto \sqrt{\color{blue}{\left(\left(t - 2 \cdot \frac{{\ell}^{2}}{Om}\right) \cdot n\right)} \cdot U} \cdot \sqrt{2} \]
              6. lower-*.f64N/A

                \[\leadsto \sqrt{\color{blue}{\left(\left(t - 2 \cdot \frac{{\ell}^{2}}{Om}\right) \cdot n\right)} \cdot U} \cdot \sqrt{2} \]
              7. cancel-sign-sub-invN/A

                \[\leadsto \sqrt{\left(\color{blue}{\left(t + \left(\mathsf{neg}\left(2\right)\right) \cdot \frac{{\ell}^{2}}{Om}\right)} \cdot n\right) \cdot U} \cdot \sqrt{2} \]
              8. metadata-evalN/A

                \[\leadsto \sqrt{\left(\left(t + \color{blue}{-2} \cdot \frac{{\ell}^{2}}{Om}\right) \cdot n\right) \cdot U} \cdot \sqrt{2} \]
              9. +-commutativeN/A

                \[\leadsto \sqrt{\left(\color{blue}{\left(-2 \cdot \frac{{\ell}^{2}}{Om} + t\right)} \cdot n\right) \cdot U} \cdot \sqrt{2} \]
              10. lower-fma.f64N/A

                \[\leadsto \sqrt{\left(\color{blue}{\mathsf{fma}\left(-2, \frac{{\ell}^{2}}{Om}, t\right)} \cdot n\right) \cdot U} \cdot \sqrt{2} \]
              11. lower-/.f64N/A

                \[\leadsto \sqrt{\left(\mathsf{fma}\left(-2, \color{blue}{\frac{{\ell}^{2}}{Om}}, t\right) \cdot n\right) \cdot U} \cdot \sqrt{2} \]
              12. unpow2N/A

                \[\leadsto \sqrt{\left(\mathsf{fma}\left(-2, \frac{\color{blue}{\ell \cdot \ell}}{Om}, t\right) \cdot n\right) \cdot U} \cdot \sqrt{2} \]
              13. lower-*.f64N/A

                \[\leadsto \sqrt{\left(\mathsf{fma}\left(-2, \frac{\color{blue}{\ell \cdot \ell}}{Om}, t\right) \cdot n\right) \cdot U} \cdot \sqrt{2} \]
              14. lower-sqrt.f6455.2

                \[\leadsto \sqrt{\left(\mathsf{fma}\left(-2, \frac{\ell \cdot \ell}{Om}, t\right) \cdot n\right) \cdot U} \cdot \color{blue}{\sqrt{2}} \]
            5. Applied rewrites55.2%

              \[\leadsto \color{blue}{\sqrt{\left(\mathsf{fma}\left(-2, \frac{\ell \cdot \ell}{Om}, t\right) \cdot n\right) \cdot U} \cdot \sqrt{2}} \]
            6. Step-by-step derivation
              1. Applied rewrites59.4%

                \[\leadsto \color{blue}{\sqrt{\left(\left(\mathsf{fma}\left(\frac{\ell}{Om} \cdot \ell, -2, t\right) \cdot n\right) \cdot U\right) \cdot 2}} \]

              if +inf.0 < (*.f64 (*.f64 (*.f64 #s(literal 2 binary64) n) U) (-.f64 (-.f64 t (*.f64 #s(literal 2 binary64) (/.f64 (*.f64 l l) Om))) (*.f64 (*.f64 n (pow.f64 (/.f64 l Om) #s(literal 2 binary64))) (-.f64 U U*))))

              1. Initial program 0.0%

                \[\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)} \]
              2. Add Preprocessing
              3. Taylor expanded in U* around -inf

                \[\leadsto \color{blue}{-1 \cdot \left(\frac{\ell \cdot \left(n \cdot \left({\left(\sqrt{-1}\right)}^{2} \cdot \sqrt{2}\right)\right)}{Om} \cdot \sqrt{U \cdot U*}\right)} \]
              4. Step-by-step derivation
                1. associate-*r*N/A

                  \[\leadsto \color{blue}{\left(-1 \cdot \frac{\ell \cdot \left(n \cdot \left({\left(\sqrt{-1}\right)}^{2} \cdot \sqrt{2}\right)\right)}{Om}\right) \cdot \sqrt{U \cdot U*}} \]
                2. lower-*.f64N/A

                  \[\leadsto \color{blue}{\left(-1 \cdot \frac{\ell \cdot \left(n \cdot \left({\left(\sqrt{-1}\right)}^{2} \cdot \sqrt{2}\right)\right)}{Om}\right) \cdot \sqrt{U \cdot U*}} \]
              5. Applied rewrites36.3%

                \[\leadsto \color{blue}{\left(-\left(\left(-n\right) \cdot \sqrt{2}\right) \cdot \frac{\ell}{Om}\right) \cdot \sqrt{U* \cdot U}} \]
            7. Recombined 2 regimes into one program.
            8. Final simplification56.8%

              \[\leadsto \begin{array}{l} \mathbf{if}\;\left(\left(t - \frac{\ell \cdot \ell}{Om} \cdot 2\right) - \left({\left(\frac{\ell}{Om}\right)}^{2} \cdot n\right) \cdot \left(U - U*\right)\right) \cdot \left(\left(2 \cdot n\right) \cdot U\right) \leq \infty:\\ \;\;\;\;\sqrt{\left(\left(\mathsf{fma}\left(\frac{\ell}{Om} \cdot \ell, -2, t\right) \cdot n\right) \cdot U\right) \cdot 2}\\ \mathbf{else}:\\ \;\;\;\;\sqrt{U* \cdot U} \cdot \left(\left(\sqrt{2} \cdot n\right) \cdot \frac{\ell}{Om}\right)\\ \end{array} \]
            9. Add Preprocessing

            Alternative 7: 49.6% accurate, 0.8× speedup?

            \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;\left(\left(t - \frac{\ell \cdot \ell}{Om} \cdot 2\right) - \left({\left(\frac{\ell}{Om}\right)}^{2} \cdot n\right) \cdot \left(U - U*\right)\right) \cdot \left(\left(2 \cdot n\right) \cdot U\right) \leq \infty:\\ \;\;\;\;\sqrt{\left(\left(\mathsf{fma}\left(\frac{\ell}{Om} \cdot \ell, -2, t\right) \cdot n\right) \cdot U\right) \cdot 2}\\ \mathbf{else}:\\ \;\;\;\;\left(\frac{\sqrt{2} \cdot \ell}{Om} \cdot \sqrt{U* \cdot U}\right) \cdot n\\ \end{array} \end{array} \]
            (FPCore (n U t l Om U*)
             :precision binary64
             (if (<=
                  (*
                   (- (- t (* (/ (* l l) Om) 2.0)) (* (* (pow (/ l Om) 2.0) n) (- U U*)))
                   (* (* 2.0 n) U))
                  INFINITY)
               (sqrt (* (* (* (fma (* (/ l Om) l) -2.0 t) n) U) 2.0))
               (* (* (/ (* (sqrt 2.0) l) Om) (sqrt (* U* U))) n)))
            double code(double n, double U, double t, double l, double Om, double U_42_) {
            	double tmp;
            	if ((((t - (((l * l) / Om) * 2.0)) - ((pow((l / Om), 2.0) * n) * (U - U_42_))) * ((2.0 * n) * U)) <= ((double) INFINITY)) {
            		tmp = sqrt((((fma(((l / Om) * l), -2.0, t) * n) * U) * 2.0));
            	} else {
            		tmp = (((sqrt(2.0) * l) / Om) * sqrt((U_42_ * U))) * n;
            	}
            	return tmp;
            }
            
            function code(n, U, t, l, Om, U_42_)
            	tmp = 0.0
            	if (Float64(Float64(Float64(t - Float64(Float64(Float64(l * l) / Om) * 2.0)) - Float64(Float64((Float64(l / Om) ^ 2.0) * n) * Float64(U - U_42_))) * Float64(Float64(2.0 * n) * U)) <= Inf)
            		tmp = sqrt(Float64(Float64(Float64(fma(Float64(Float64(l / Om) * l), -2.0, t) * n) * U) * 2.0));
            	else
            		tmp = Float64(Float64(Float64(Float64(sqrt(2.0) * l) / Om) * sqrt(Float64(U_42_ * U))) * n);
            	end
            	return tmp
            end
            
            code[n_, U_, t_, l_, Om_, U$42$_] := If[LessEqual[N[(N[(N[(t - N[(N[(N[(l * l), $MachinePrecision] / Om), $MachinePrecision] * 2.0), $MachinePrecision]), $MachinePrecision] - N[(N[(N[Power[N[(l / Om), $MachinePrecision], 2.0], $MachinePrecision] * n), $MachinePrecision] * N[(U - U$42$), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(N[(2.0 * n), $MachinePrecision] * U), $MachinePrecision]), $MachinePrecision], Infinity], N[Sqrt[N[(N[(N[(N[(N[(N[(l / Om), $MachinePrecision] * l), $MachinePrecision] * -2.0 + t), $MachinePrecision] * n), $MachinePrecision] * U), $MachinePrecision] * 2.0), $MachinePrecision]], $MachinePrecision], N[(N[(N[(N[(N[Sqrt[2.0], $MachinePrecision] * l), $MachinePrecision] / Om), $MachinePrecision] * N[Sqrt[N[(U$42$ * U), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] * n), $MachinePrecision]]
            
            \begin{array}{l}
            
            \\
            \begin{array}{l}
            \mathbf{if}\;\left(\left(t - \frac{\ell \cdot \ell}{Om} \cdot 2\right) - \left({\left(\frac{\ell}{Om}\right)}^{2} \cdot n\right) \cdot \left(U - U*\right)\right) \cdot \left(\left(2 \cdot n\right) \cdot U\right) \leq \infty:\\
            \;\;\;\;\sqrt{\left(\left(\mathsf{fma}\left(\frac{\ell}{Om} \cdot \ell, -2, t\right) \cdot n\right) \cdot U\right) \cdot 2}\\
            
            \mathbf{else}:\\
            \;\;\;\;\left(\frac{\sqrt{2} \cdot \ell}{Om} \cdot \sqrt{U* \cdot U}\right) \cdot n\\
            
            
            \end{array}
            \end{array}
            
            Derivation
            1. Split input into 2 regimes
            2. 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*)))) < +inf.0

              1. Initial program 60.1%

                \[\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)} \]
              2. Add Preprocessing
              3. Taylor expanded in n around 0

                \[\leadsto \color{blue}{\sqrt{U \cdot \left(n \cdot \left(t - 2 \cdot \frac{{\ell}^{2}}{Om}\right)\right)} \cdot \sqrt{2}} \]
              4. Step-by-step derivation
                1. lower-*.f64N/A

                  \[\leadsto \color{blue}{\sqrt{U \cdot \left(n \cdot \left(t - 2 \cdot \frac{{\ell}^{2}}{Om}\right)\right)} \cdot \sqrt{2}} \]
                2. lower-sqrt.f64N/A

                  \[\leadsto \color{blue}{\sqrt{U \cdot \left(n \cdot \left(t - 2 \cdot \frac{{\ell}^{2}}{Om}\right)\right)}} \cdot \sqrt{2} \]
                3. *-commutativeN/A

                  \[\leadsto \sqrt{\color{blue}{\left(n \cdot \left(t - 2 \cdot \frac{{\ell}^{2}}{Om}\right)\right) \cdot U}} \cdot \sqrt{2} \]
                4. lower-*.f64N/A

                  \[\leadsto \sqrt{\color{blue}{\left(n \cdot \left(t - 2 \cdot \frac{{\ell}^{2}}{Om}\right)\right) \cdot U}} \cdot \sqrt{2} \]
                5. *-commutativeN/A

                  \[\leadsto \sqrt{\color{blue}{\left(\left(t - 2 \cdot \frac{{\ell}^{2}}{Om}\right) \cdot n\right)} \cdot U} \cdot \sqrt{2} \]
                6. lower-*.f64N/A

                  \[\leadsto \sqrt{\color{blue}{\left(\left(t - 2 \cdot \frac{{\ell}^{2}}{Om}\right) \cdot n\right)} \cdot U} \cdot \sqrt{2} \]
                7. cancel-sign-sub-invN/A

                  \[\leadsto \sqrt{\left(\color{blue}{\left(t + \left(\mathsf{neg}\left(2\right)\right) \cdot \frac{{\ell}^{2}}{Om}\right)} \cdot n\right) \cdot U} \cdot \sqrt{2} \]
                8. metadata-evalN/A

                  \[\leadsto \sqrt{\left(\left(t + \color{blue}{-2} \cdot \frac{{\ell}^{2}}{Om}\right) \cdot n\right) \cdot U} \cdot \sqrt{2} \]
                9. +-commutativeN/A

                  \[\leadsto \sqrt{\left(\color{blue}{\left(-2 \cdot \frac{{\ell}^{2}}{Om} + t\right)} \cdot n\right) \cdot U} \cdot \sqrt{2} \]
                10. lower-fma.f64N/A

                  \[\leadsto \sqrt{\left(\color{blue}{\mathsf{fma}\left(-2, \frac{{\ell}^{2}}{Om}, t\right)} \cdot n\right) \cdot U} \cdot \sqrt{2} \]
                11. lower-/.f64N/A

                  \[\leadsto \sqrt{\left(\mathsf{fma}\left(-2, \color{blue}{\frac{{\ell}^{2}}{Om}}, t\right) \cdot n\right) \cdot U} \cdot \sqrt{2} \]
                12. unpow2N/A

                  \[\leadsto \sqrt{\left(\mathsf{fma}\left(-2, \frac{\color{blue}{\ell \cdot \ell}}{Om}, t\right) \cdot n\right) \cdot U} \cdot \sqrt{2} \]
                13. lower-*.f64N/A

                  \[\leadsto \sqrt{\left(\mathsf{fma}\left(-2, \frac{\color{blue}{\ell \cdot \ell}}{Om}, t\right) \cdot n\right) \cdot U} \cdot \sqrt{2} \]
                14. lower-sqrt.f6455.2

                  \[\leadsto \sqrt{\left(\mathsf{fma}\left(-2, \frac{\ell \cdot \ell}{Om}, t\right) \cdot n\right) \cdot U} \cdot \color{blue}{\sqrt{2}} \]
              5. Applied rewrites55.2%

                \[\leadsto \color{blue}{\sqrt{\left(\mathsf{fma}\left(-2, \frac{\ell \cdot \ell}{Om}, t\right) \cdot n\right) \cdot U} \cdot \sqrt{2}} \]
              6. Step-by-step derivation
                1. Applied rewrites59.4%

                  \[\leadsto \color{blue}{\sqrt{\left(\left(\mathsf{fma}\left(\frac{\ell}{Om} \cdot \ell, -2, t\right) \cdot n\right) \cdot U\right) \cdot 2}} \]

                if +inf.0 < (*.f64 (*.f64 (*.f64 #s(literal 2 binary64) n) U) (-.f64 (-.f64 t (*.f64 #s(literal 2 binary64) (/.f64 (*.f64 l l) Om))) (*.f64 (*.f64 n (pow.f64 (/.f64 l Om) #s(literal 2 binary64))) (-.f64 U U*))))

                1. Initial program 0.0%

                  \[\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)} \]
                2. Add Preprocessing
                3. Step-by-step derivation
                  1. lift--.f64N/A

                    \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \color{blue}{\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)}} \]
                  2. sub-negN/A

                    \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \color{blue}{\left(\left(t - 2 \cdot \frac{\ell \cdot \ell}{Om}\right) + \left(\mathsf{neg}\left(\left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)\right)\right)}} \]
                  3. +-commutativeN/A

                    \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \color{blue}{\left(\left(\mathsf{neg}\left(\left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)\right) + \left(t - 2 \cdot \frac{\ell \cdot \ell}{Om}\right)\right)}} \]
                  4. lift-*.f64N/A

                    \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(\mathsf{neg}\left(\color{blue}{\left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)}\right)\right) + \left(t - 2 \cdot \frac{\ell \cdot \ell}{Om}\right)\right)} \]
                  5. *-commutativeN/A

                    \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(\mathsf{neg}\left(\color{blue}{\left(U - U*\right) \cdot \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right)}\right)\right) + \left(t - 2 \cdot \frac{\ell \cdot \ell}{Om}\right)\right)} \]
                  6. distribute-lft-neg-inN/A

                    \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\color{blue}{\left(\mathsf{neg}\left(\left(U - U*\right)\right)\right) \cdot \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right)} + \left(t - 2 \cdot \frac{\ell \cdot \ell}{Om}\right)\right)} \]
                  7. lift-*.f64N/A

                    \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(\mathsf{neg}\left(\left(U - U*\right)\right)\right) \cdot \color{blue}{\left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right)} + \left(t - 2 \cdot \frac{\ell \cdot \ell}{Om}\right)\right)} \]
                  8. lift-pow.f64N/A

                    \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(\mathsf{neg}\left(\left(U - U*\right)\right)\right) \cdot \left(n \cdot \color{blue}{{\left(\frac{\ell}{Om}\right)}^{2}}\right) + \left(t - 2 \cdot \frac{\ell \cdot \ell}{Om}\right)\right)} \]
                  9. unpow2N/A

                    \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(\mathsf{neg}\left(\left(U - U*\right)\right)\right) \cdot \left(n \cdot \color{blue}{\left(\frac{\ell}{Om} \cdot \frac{\ell}{Om}\right)}\right) + \left(t - 2 \cdot \frac{\ell \cdot \ell}{Om}\right)\right)} \]
                  10. associate-*r*N/A

                    \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(\mathsf{neg}\left(\left(U - U*\right)\right)\right) \cdot \color{blue}{\left(\left(n \cdot \frac{\ell}{Om}\right) \cdot \frac{\ell}{Om}\right)} + \left(t - 2 \cdot \frac{\ell \cdot \ell}{Om}\right)\right)} \]
                  11. associate-*r*N/A

                    \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\color{blue}{\left(\left(\mathsf{neg}\left(\left(U - U*\right)\right)\right) \cdot \left(n \cdot \frac{\ell}{Om}\right)\right) \cdot \frac{\ell}{Om}} + \left(t - 2 \cdot \frac{\ell \cdot \ell}{Om}\right)\right)} \]
                  12. lower-fma.f64N/A

                    \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \color{blue}{\mathsf{fma}\left(\left(\mathsf{neg}\left(\left(U - U*\right)\right)\right) \cdot \left(n \cdot \frac{\ell}{Om}\right), \frac{\ell}{Om}, t - 2 \cdot \frac{\ell \cdot \ell}{Om}\right)}} \]
                  13. lower-*.f64N/A

                    \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \mathsf{fma}\left(\color{blue}{\left(\mathsf{neg}\left(\left(U - U*\right)\right)\right) \cdot \left(n \cdot \frac{\ell}{Om}\right)}, \frac{\ell}{Om}, t - 2 \cdot \frac{\ell \cdot \ell}{Om}\right)} \]
                  14. lower-neg.f64N/A

                    \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \mathsf{fma}\left(\color{blue}{\left(-\left(U - U*\right)\right)} \cdot \left(n \cdot \frac{\ell}{Om}\right), \frac{\ell}{Om}, t - 2 \cdot \frac{\ell \cdot \ell}{Om}\right)} \]
                  15. lower-*.f640.9

                    \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \mathsf{fma}\left(\left(-\left(U - U*\right)\right) \cdot \color{blue}{\left(n \cdot \frac{\ell}{Om}\right)}, \frac{\ell}{Om}, t - 2 \cdot \frac{\ell \cdot \ell}{Om}\right)} \]
                  16. lift--.f64N/A

                    \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \mathsf{fma}\left(\left(-\left(U - U*\right)\right) \cdot \left(n \cdot \frac{\ell}{Om}\right), \frac{\ell}{Om}, \color{blue}{t - 2 \cdot \frac{\ell \cdot \ell}{Om}}\right)} \]
                  17. sub-negN/A

                    \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \mathsf{fma}\left(\left(-\left(U - U*\right)\right) \cdot \left(n \cdot \frac{\ell}{Om}\right), \frac{\ell}{Om}, \color{blue}{t + \left(\mathsf{neg}\left(2 \cdot \frac{\ell \cdot \ell}{Om}\right)\right)}\right)} \]
                4. Applied rewrites0.9%

                  \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \color{blue}{\mathsf{fma}\left(\left(-\left(U - U*\right)\right) \cdot \left(n \cdot \frac{\ell}{Om}\right), \frac{\ell}{Om}, \mathsf{fma}\left(-2, \frac{\ell \cdot \ell}{Om}, t\right)\right)}} \]
                5. Taylor expanded in n around inf

                  \[\leadsto \color{blue}{n \cdot \left(\frac{1}{2} \cdot \left(\frac{Om \cdot \left(\sqrt{2} \cdot \left(t + -2 \cdot \frac{{\ell}^{2}}{Om}\right)\right)}{\ell \cdot n} \cdot \sqrt{\frac{U}{U* - U}}\right) + \frac{\ell \cdot \sqrt{2}}{Om} \cdot \sqrt{U \cdot \left(U* - U\right)}\right)} \]
                6. Step-by-step derivation
                  1. lower-*.f64N/A

                    \[\leadsto \color{blue}{n \cdot \left(\frac{1}{2} \cdot \left(\frac{Om \cdot \left(\sqrt{2} \cdot \left(t + -2 \cdot \frac{{\ell}^{2}}{Om}\right)\right)}{\ell \cdot n} \cdot \sqrt{\frac{U}{U* - U}}\right) + \frac{\ell \cdot \sqrt{2}}{Om} \cdot \sqrt{U \cdot \left(U* - U\right)}\right)} \]
                  2. lower-fma.f64N/A

                    \[\leadsto n \cdot \color{blue}{\mathsf{fma}\left(\frac{1}{2}, \frac{Om \cdot \left(\sqrt{2} \cdot \left(t + -2 \cdot \frac{{\ell}^{2}}{Om}\right)\right)}{\ell \cdot n} \cdot \sqrt{\frac{U}{U* - U}}, \frac{\ell \cdot \sqrt{2}}{Om} \cdot \sqrt{U \cdot \left(U* - U\right)}\right)} \]
                7. Applied rewrites3.9%

                  \[\leadsto \color{blue}{n \cdot \mathsf{fma}\left(0.5, \frac{\left(Om \cdot \sqrt{2}\right) \cdot \mathsf{fma}\left(-2, \frac{\ell \cdot \ell}{Om}, t\right)}{\ell \cdot n} \cdot \sqrt{\frac{U}{U* - U}}, \frac{\ell \cdot \sqrt{2}}{Om} \cdot \sqrt{U \cdot \left(U* - U\right)}\right)} \]
                8. Taylor expanded in U* around inf

                  \[\leadsto n \cdot \left(\frac{\ell \cdot \sqrt{2}}{Om} \cdot \color{blue}{\sqrt{U \cdot U*}}\right) \]
                9. Step-by-step derivation
                  1. Applied rewrites36.3%

                    \[\leadsto n \cdot \left(\frac{\ell \cdot \sqrt{2}}{Om} \cdot \color{blue}{\sqrt{U \cdot U*}}\right) \]
                10. Recombined 2 regimes into one program.
                11. Final simplification56.8%

                  \[\leadsto \begin{array}{l} \mathbf{if}\;\left(\left(t - \frac{\ell \cdot \ell}{Om} \cdot 2\right) - \left({\left(\frac{\ell}{Om}\right)}^{2} \cdot n\right) \cdot \left(U - U*\right)\right) \cdot \left(\left(2 \cdot n\right) \cdot U\right) \leq \infty:\\ \;\;\;\;\sqrt{\left(\left(\mathsf{fma}\left(\frac{\ell}{Om} \cdot \ell, -2, t\right) \cdot n\right) \cdot U\right) \cdot 2}\\ \mathbf{else}:\\ \;\;\;\;\left(\frac{\sqrt{2} \cdot \ell}{Om} \cdot \sqrt{U* \cdot U}\right) \cdot n\\ \end{array} \]
                12. Add Preprocessing

                Alternative 8: 38.8% accurate, 0.9× speedup?

                \[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(2 \cdot n\right) \cdot U\\ \mathbf{if}\;\sqrt{\left(\left(t - \frac{\ell \cdot \ell}{Om} \cdot 2\right) - \left({\left(\frac{\ell}{Om}\right)}^{2} \cdot n\right) \cdot \left(U - U*\right)\right) \cdot t\_1} \leq 2 \cdot 10^{-161}:\\ \;\;\;\;\sqrt{\left(t \cdot U\right) \cdot \left(2 \cdot n\right)}\\ \mathbf{else}:\\ \;\;\;\;\sqrt{t\_1 \cdot t}\\ \end{array} \end{array} \]
                (FPCore (n U t l Om U*)
                 :precision binary64
                 (let* ((t_1 (* (* 2.0 n) U)))
                   (if (<=
                        (sqrt
                         (*
                          (-
                           (- t (* (/ (* l l) Om) 2.0))
                           (* (* (pow (/ l Om) 2.0) n) (- U U*)))
                          t_1))
                        2e-161)
                     (sqrt (* (* t U) (* 2.0 n)))
                     (sqrt (* t_1 t)))))
                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 (sqrt((((t - (((l * l) / Om) * 2.0)) - ((pow((l / Om), 2.0) * n) * (U - U_42_))) * t_1)) <= 2e-161) {
                		tmp = sqrt(((t * U) * (2.0 * n)));
                	} else {
                		tmp = sqrt((t_1 * t));
                	}
                	return tmp;
                }
                
                real(8) function code(n, u, t, l, om, u_42)
                    real(8), intent (in) :: n
                    real(8), intent (in) :: u
                    real(8), intent (in) :: t
                    real(8), intent (in) :: l
                    real(8), intent (in) :: om
                    real(8), intent (in) :: u_42
                    real(8) :: t_1
                    real(8) :: tmp
                    t_1 = (2.0d0 * n) * u
                    if (sqrt((((t - (((l * l) / om) * 2.0d0)) - ((((l / om) ** 2.0d0) * n) * (u - u_42))) * t_1)) <= 2d-161) then
                        tmp = sqrt(((t * u) * (2.0d0 * n)))
                    else
                        tmp = sqrt((t_1 * t))
                    end if
                    code = tmp
                end function
                
                public static double code(double n, double U, double t, double l, double Om, double U_42_) {
                	double t_1 = (2.0 * n) * U;
                	double tmp;
                	if (Math.sqrt((((t - (((l * l) / Om) * 2.0)) - ((Math.pow((l / Om), 2.0) * n) * (U - U_42_))) * t_1)) <= 2e-161) {
                		tmp = Math.sqrt(((t * U) * (2.0 * n)));
                	} else {
                		tmp = Math.sqrt((t_1 * t));
                	}
                	return tmp;
                }
                
                def code(n, U, t, l, Om, U_42_):
                	t_1 = (2.0 * n) * U
                	tmp = 0
                	if math.sqrt((((t - (((l * l) / Om) * 2.0)) - ((math.pow((l / Om), 2.0) * n) * (U - U_42_))) * t_1)) <= 2e-161:
                		tmp = math.sqrt(((t * U) * (2.0 * n)))
                	else:
                		tmp = math.sqrt((t_1 * t))
                	return tmp
                
                function code(n, U, t, l, Om, U_42_)
                	t_1 = Float64(Float64(2.0 * n) * U)
                	tmp = 0.0
                	if (sqrt(Float64(Float64(Float64(t - Float64(Float64(Float64(l * l) / Om) * 2.0)) - Float64(Float64((Float64(l / Om) ^ 2.0) * n) * Float64(U - U_42_))) * t_1)) <= 2e-161)
                		tmp = sqrt(Float64(Float64(t * U) * Float64(2.0 * n)));
                	else
                		tmp = sqrt(Float64(t_1 * t));
                	end
                	return tmp
                end
                
                function tmp_2 = code(n, U, t, l, Om, U_42_)
                	t_1 = (2.0 * n) * U;
                	tmp = 0.0;
                	if (sqrt((((t - (((l * l) / Om) * 2.0)) - ((((l / Om) ^ 2.0) * n) * (U - U_42_))) * t_1)) <= 2e-161)
                		tmp = sqrt(((t * U) * (2.0 * n)));
                	else
                		tmp = sqrt((t_1 * t));
                	end
                	tmp_2 = 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[Sqrt[N[(N[(N[(t - N[(N[(N[(l * l), $MachinePrecision] / Om), $MachinePrecision] * 2.0), $MachinePrecision]), $MachinePrecision] - N[(N[(N[Power[N[(l / Om), $MachinePrecision], 2.0], $MachinePrecision] * n), $MachinePrecision] * N[(U - U$42$), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * t$95$1), $MachinePrecision]], $MachinePrecision], 2e-161], N[Sqrt[N[(N[(t * U), $MachinePrecision] * N[(2.0 * n), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], N[Sqrt[N[(t$95$1 * t), $MachinePrecision]], $MachinePrecision]]]
                
                \begin{array}{l}
                
                \\
                \begin{array}{l}
                t_1 := \left(2 \cdot n\right) \cdot U\\
                \mathbf{if}\;\sqrt{\left(\left(t - \frac{\ell \cdot \ell}{Om} \cdot 2\right) - \left({\left(\frac{\ell}{Om}\right)}^{2} \cdot n\right) \cdot \left(U - U*\right)\right) \cdot t\_1} \leq 2 \cdot 10^{-161}:\\
                \;\;\;\;\sqrt{\left(t \cdot U\right) \cdot \left(2 \cdot n\right)}\\
                
                \mathbf{else}:\\
                \;\;\;\;\sqrt{t\_1 \cdot t}\\
                
                
                \end{array}
                \end{array}
                
                Derivation
                1. Split input into 2 regimes
                2. 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*))))) < 2.00000000000000006e-161

                  1. Initial program 23.0%

                    \[\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)} \]
                  2. Add Preprocessing
                  3. Taylor expanded in t around inf

                    \[\leadsto \sqrt{\color{blue}{2 \cdot \left(U \cdot \left(n \cdot t\right)\right)}} \]
                  4. Step-by-step derivation
                    1. *-commutativeN/A

                      \[\leadsto \sqrt{\color{blue}{\left(U \cdot \left(n \cdot t\right)\right) \cdot 2}} \]
                    2. lower-*.f64N/A

                      \[\leadsto \sqrt{\color{blue}{\left(U \cdot \left(n \cdot t\right)\right) \cdot 2}} \]
                    3. *-commutativeN/A

                      \[\leadsto \sqrt{\color{blue}{\left(\left(n \cdot t\right) \cdot U\right)} \cdot 2} \]
                    4. lower-*.f64N/A

                      \[\leadsto \sqrt{\color{blue}{\left(\left(n \cdot t\right) \cdot U\right)} \cdot 2} \]
                    5. lower-*.f6442.8

                      \[\leadsto \sqrt{\left(\color{blue}{\left(n \cdot t\right)} \cdot U\right) \cdot 2} \]
                  5. Applied rewrites42.8%

                    \[\leadsto \sqrt{\color{blue}{\left(\left(n \cdot t\right) \cdot U\right) \cdot 2}} \]
                  6. Step-by-step derivation
                    1. Applied rewrites42.8%

                      \[\leadsto \sqrt{\left(2 \cdot n\right) \cdot \color{blue}{\left(U \cdot t\right)}} \]

                    if 2.00000000000000006e-161 < (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. Initial program 57.4%

                      \[\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)} \]
                    2. Add Preprocessing
                    3. Taylor expanded in t around inf

                      \[\leadsto \sqrt{\color{blue}{2 \cdot \left(U \cdot \left(n \cdot t\right)\right)}} \]
                    4. Step-by-step derivation
                      1. *-commutativeN/A

                        \[\leadsto \sqrt{\color{blue}{\left(U \cdot \left(n \cdot t\right)\right) \cdot 2}} \]
                      2. lower-*.f64N/A

                        \[\leadsto \sqrt{\color{blue}{\left(U \cdot \left(n \cdot t\right)\right) \cdot 2}} \]
                      3. *-commutativeN/A

                        \[\leadsto \sqrt{\color{blue}{\left(\left(n \cdot t\right) \cdot U\right)} \cdot 2} \]
                      4. lower-*.f64N/A

                        \[\leadsto \sqrt{\color{blue}{\left(\left(n \cdot t\right) \cdot U\right)} \cdot 2} \]
                      5. lower-*.f6440.7

                        \[\leadsto \sqrt{\left(\color{blue}{\left(n \cdot t\right)} \cdot U\right) \cdot 2} \]
                    5. Applied rewrites40.7%

                      \[\leadsto \sqrt{\color{blue}{\left(\left(n \cdot t\right) \cdot U\right) \cdot 2}} \]
                    6. Step-by-step derivation
                      1. Applied rewrites40.7%

                        \[\leadsto \sqrt{t \cdot \color{blue}{\left(\left(2 \cdot n\right) \cdot U\right)}} \]
                    7. Recombined 2 regimes into one program.
                    8. Final simplification41.0%

                      \[\leadsto \begin{array}{l} \mathbf{if}\;\sqrt{\left(\left(t - \frac{\ell \cdot \ell}{Om} \cdot 2\right) - \left({\left(\frac{\ell}{Om}\right)}^{2} \cdot n\right) \cdot \left(U - U*\right)\right) \cdot \left(\left(2 \cdot n\right) \cdot U\right)} \leq 2 \cdot 10^{-161}:\\ \;\;\;\;\sqrt{\left(t \cdot U\right) \cdot \left(2 \cdot n\right)}\\ \mathbf{else}:\\ \;\;\;\;\sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot t}\\ \end{array} \]
                    9. Add Preprocessing

                    Alternative 9: 61.6% accurate, 1.9× speedup?

                    \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;n \leq -2.5 \cdot 10^{-97}:\\ \;\;\;\;\sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \mathsf{fma}\left(\frac{\ell}{Om}, \mathsf{fma}\left(\frac{n}{\frac{Om}{\ell}}, U* - U, -2 \cdot \ell\right), t\right)}\\ \mathbf{elif}\;n \leq 6 \cdot 10^{-31}:\\ \;\;\;\;\sqrt{\left(\left(\mathsf{fma}\left(\frac{\ell}{Om} \cdot \ell, -2, t\right) \cdot n\right) \cdot U\right) \cdot 2}\\ \mathbf{else}:\\ \;\;\;\;\sqrt{2 \cdot n} \cdot \sqrt{\mathsf{fma}\left(\frac{\ell}{Om}, \mathsf{fma}\left(\frac{\ell}{Om} \cdot n, U* - U, -2 \cdot \ell\right), t\right) \cdot U}\\ \end{array} \end{array} \]
                    (FPCore (n U t l Om U*)
                     :precision binary64
                     (if (<= n -2.5e-97)
                       (sqrt
                        (*
                         (* (* 2.0 n) U)
                         (fma (/ l Om) (fma (/ n (/ Om l)) (- U* U) (* -2.0 l)) t)))
                       (if (<= n 6e-31)
                         (sqrt (* (* (* (fma (* (/ l Om) l) -2.0 t) n) U) 2.0))
                         (*
                          (sqrt (* 2.0 n))
                          (sqrt
                           (* (fma (/ l Om) (fma (* (/ l Om) n) (- U* U) (* -2.0 l)) t) U))))))
                    double code(double n, double U, double t, double l, double Om, double U_42_) {
                    	double tmp;
                    	if (n <= -2.5e-97) {
                    		tmp = sqrt((((2.0 * n) * U) * fma((l / Om), fma((n / (Om / l)), (U_42_ - U), (-2.0 * l)), t)));
                    	} else if (n <= 6e-31) {
                    		tmp = sqrt((((fma(((l / Om) * l), -2.0, t) * n) * U) * 2.0));
                    	} else {
                    		tmp = sqrt((2.0 * n)) * sqrt((fma((l / Om), fma(((l / Om) * n), (U_42_ - U), (-2.0 * l)), t) * U));
                    	}
                    	return tmp;
                    }
                    
                    function code(n, U, t, l, Om, U_42_)
                    	tmp = 0.0
                    	if (n <= -2.5e-97)
                    		tmp = sqrt(Float64(Float64(Float64(2.0 * n) * U) * fma(Float64(l / Om), fma(Float64(n / Float64(Om / l)), Float64(U_42_ - U), Float64(-2.0 * l)), t)));
                    	elseif (n <= 6e-31)
                    		tmp = sqrt(Float64(Float64(Float64(fma(Float64(Float64(l / Om) * l), -2.0, t) * n) * U) * 2.0));
                    	else
                    		tmp = Float64(sqrt(Float64(2.0 * n)) * sqrt(Float64(fma(Float64(l / Om), fma(Float64(Float64(l / Om) * n), Float64(U_42_ - U), Float64(-2.0 * l)), t) * U)));
                    	end
                    	return tmp
                    end
                    
                    code[n_, U_, t_, l_, Om_, U$42$_] := If[LessEqual[n, -2.5e-97], N[Sqrt[N[(N[(N[(2.0 * n), $MachinePrecision] * U), $MachinePrecision] * N[(N[(l / Om), $MachinePrecision] * N[(N[(n / N[(Om / l), $MachinePrecision]), $MachinePrecision] * N[(U$42$ - U), $MachinePrecision] + N[(-2.0 * l), $MachinePrecision]), $MachinePrecision] + t), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], If[LessEqual[n, 6e-31], N[Sqrt[N[(N[(N[(N[(N[(N[(l / Om), $MachinePrecision] * l), $MachinePrecision] * -2.0 + t), $MachinePrecision] * n), $MachinePrecision] * U), $MachinePrecision] * 2.0), $MachinePrecision]], $MachinePrecision], N[(N[Sqrt[N[(2.0 * n), $MachinePrecision]], $MachinePrecision] * N[Sqrt[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]], $MachinePrecision]), $MachinePrecision]]]
                    
                    \begin{array}{l}
                    
                    \\
                    \begin{array}{l}
                    \mathbf{if}\;n \leq -2.5 \cdot 10^{-97}:\\
                    \;\;\;\;\sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \mathsf{fma}\left(\frac{\ell}{Om}, \mathsf{fma}\left(\frac{n}{\frac{Om}{\ell}}, U* - U, -2 \cdot \ell\right), t\right)}\\
                    
                    \mathbf{elif}\;n \leq 6 \cdot 10^{-31}:\\
                    \;\;\;\;\sqrt{\left(\left(\mathsf{fma}\left(\frac{\ell}{Om} \cdot \ell, -2, t\right) \cdot n\right) \cdot U\right) \cdot 2}\\
                    
                    \mathbf{else}:\\
                    \;\;\;\;\sqrt{2 \cdot n} \cdot \sqrt{\mathsf{fma}\left(\frac{\ell}{Om}, \mathsf{fma}\left(\frac{\ell}{Om} \cdot n, U* - U, -2 \cdot \ell\right), t\right) \cdot U}\\
                    
                    
                    \end{array}
                    \end{array}
                    
                    Derivation
                    1. Split input into 3 regimes
                    2. if n < -2.4999999999999998e-97

                      1. Initial program 59.3%

                        \[\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)} \]
                      2. Add Preprocessing
                      3. Step-by-step derivation
                        1. lift--.f64N/A

                          \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\color{blue}{\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)} \]
                        2. sub-negN/A

                          \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\color{blue}{\left(t + \left(\mathsf{neg}\left(2 \cdot \frac{\ell \cdot \ell}{Om}\right)\right)\right)} - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
                        3. +-commutativeN/A

                          \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\color{blue}{\left(\left(\mathsf{neg}\left(2 \cdot \frac{\ell \cdot \ell}{Om}\right)\right) + t\right)} - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
                        4. lift-*.f64N/A

                          \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(\left(\mathsf{neg}\left(\color{blue}{2 \cdot \frac{\ell \cdot \ell}{Om}}\right)\right) + t\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
                        5. distribute-lft-neg-inN/A

                          \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(\color{blue}{\left(\mathsf{neg}\left(2\right)\right) \cdot \frac{\ell \cdot \ell}{Om}} + t\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
                        6. lift-/.f64N/A

                          \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(\left(\mathsf{neg}\left(2\right)\right) \cdot \color{blue}{\frac{\ell \cdot \ell}{Om}} + t\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
                        7. lift-*.f64N/A

                          \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(\left(\mathsf{neg}\left(2\right)\right) \cdot \frac{\color{blue}{\ell \cdot \ell}}{Om} + t\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
                        8. associate-/l*N/A

                          \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(\left(\mathsf{neg}\left(2\right)\right) \cdot \color{blue}{\left(\ell \cdot \frac{\ell}{Om}\right)} + t\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
                        9. lift-/.f64N/A

                          \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(\left(\mathsf{neg}\left(2\right)\right) \cdot \left(\ell \cdot \color{blue}{\frac{\ell}{Om}}\right) + t\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
                        10. *-commutativeN/A

                          \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(\left(\mathsf{neg}\left(2\right)\right) \cdot \color{blue}{\left(\frac{\ell}{Om} \cdot \ell\right)} + t\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
                        11. associate-*r*N/A

                          \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(\color{blue}{\left(\left(\mathsf{neg}\left(2\right)\right) \cdot \frac{\ell}{Om}\right) \cdot \ell} + t\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
                        12. lower-fma.f64N/A

                          \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\color{blue}{\mathsf{fma}\left(\left(\mathsf{neg}\left(2\right)\right) \cdot \frac{\ell}{Om}, \ell, t\right)} - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
                        13. lower-*.f64N/A

                          \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\mathsf{fma}\left(\color{blue}{\left(\mathsf{neg}\left(2\right)\right) \cdot \frac{\ell}{Om}}, \ell, t\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
                        14. metadata-eval60.6

                          \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\mathsf{fma}\left(\color{blue}{-2} \cdot \frac{\ell}{Om}, \ell, t\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
                      4. Applied rewrites60.6%

                        \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\color{blue}{\mathsf{fma}\left(-2 \cdot \frac{\ell}{Om}, \ell, t\right)} - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
                      5. Step-by-step derivation
                        1. lift--.f64N/A

                          \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \color{blue}{\left(\mathsf{fma}\left(-2 \cdot \frac{\ell}{Om}, \ell, t\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)}} \]
                        2. lift-fma.f64N/A

                          \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\color{blue}{\left(\left(-2 \cdot \frac{\ell}{Om}\right) \cdot \ell + t\right)} - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
                        3. associate--l+N/A

                          \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \color{blue}{\left(\left(-2 \cdot \frac{\ell}{Om}\right) \cdot \ell + \left(t - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)\right)}} \]
                        4. *-commutativeN/A

                          \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\color{blue}{\ell \cdot \left(-2 \cdot \frac{\ell}{Om}\right)} + \left(t - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)\right)} \]
                        5. lift-*.f64N/A

                          \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\ell \cdot \color{blue}{\left(-2 \cdot \frac{\ell}{Om}\right)} + \left(t - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)\right)} \]
                        6. *-commutativeN/A

                          \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\ell \cdot \color{blue}{\left(\frac{\ell}{Om} \cdot -2\right)} + \left(t - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)\right)} \]
                        7. associate-*r*N/A

                          \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\color{blue}{\left(\ell \cdot \frac{\ell}{Om}\right) \cdot -2} + \left(t - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)\right)} \]
                        8. lift-/.f64N/A

                          \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(\ell \cdot \color{blue}{\frac{\ell}{Om}}\right) \cdot -2 + \left(t - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)\right)} \]
                        9. associate-/l*N/A

                          \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\color{blue}{\frac{\ell \cdot \ell}{Om}} \cdot -2 + \left(t - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)\right)} \]
                        10. lift-*.f64N/A

                          \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\frac{\color{blue}{\ell \cdot \ell}}{Om} \cdot -2 + \left(t - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)\right)} \]
                        11. lift-/.f64N/A

                          \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\color{blue}{\frac{\ell \cdot \ell}{Om}} \cdot -2 + \left(t - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)\right)} \]
                        12. *-commutativeN/A

                          \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\color{blue}{-2 \cdot \frac{\ell \cdot \ell}{Om}} + \left(t - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)\right)} \]
                        13. associate--l+N/A

                          \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \color{blue}{\left(\left(-2 \cdot \frac{\ell \cdot \ell}{Om} + t\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)}} \]
                        14. lift-fma.f64N/A

                          \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\color{blue}{\mathsf{fma}\left(-2, \frac{\ell \cdot \ell}{Om}, t\right)} - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
                        15. lift-*.f64N/A

                          \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\mathsf{fma}\left(-2, \frac{\ell \cdot \ell}{Om}, t\right) - \color{blue}{\left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)}\right)} \]
                      6. Applied rewrites61.0%

                        \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \color{blue}{\mathsf{fma}\left(\frac{\ell}{Om} \cdot \left(-\left(U - U*\right)\right), n \cdot \frac{\ell}{Om}, \mathsf{fma}\left(\frac{\ell}{Om} \cdot \ell, -2, t\right)\right)}} \]
                      7. Step-by-step derivation
                        1. lift-*.f64N/A

                          \[\leadsto \sqrt{\color{blue}{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \mathsf{fma}\left(\frac{\ell}{Om} \cdot \left(-\left(U - U*\right)\right), n \cdot \frac{\ell}{Om}, \mathsf{fma}\left(\frac{\ell}{Om} \cdot \ell, -2, t\right)\right)}} \]
                        2. *-commutativeN/A

                          \[\leadsto \sqrt{\color{blue}{\mathsf{fma}\left(\frac{\ell}{Om} \cdot \left(-\left(U - U*\right)\right), n \cdot \frac{\ell}{Om}, \mathsf{fma}\left(\frac{\ell}{Om} \cdot \ell, -2, t\right)\right) \cdot \left(\left(2 \cdot n\right) \cdot U\right)}} \]
                        3. lower-*.f6461.0

                          \[\leadsto \sqrt{\color{blue}{\mathsf{fma}\left(\frac{\ell}{Om} \cdot \left(-\left(U - U*\right)\right), n \cdot \frac{\ell}{Om}, \mathsf{fma}\left(\frac{\ell}{Om} \cdot \ell, -2, t\right)\right) \cdot \left(\left(2 \cdot n\right) \cdot U\right)}} \]
                      8. Applied rewrites63.8%

                        \[\leadsto \sqrt{\color{blue}{\mathsf{fma}\left(\frac{\ell}{Om}, \mathsf{fma}\left(n \cdot \frac{\ell}{Om}, -\left(U - U*\right), -2 \cdot \ell\right), t\right) \cdot \left(\left(2 \cdot n\right) \cdot U\right)}} \]
                      9. Step-by-step derivation
                        1. lift-*.f64N/A

                          \[\leadsto \sqrt{\mathsf{fma}\left(\frac{\ell}{Om}, \mathsf{fma}\left(\color{blue}{n \cdot \frac{\ell}{Om}}, -\left(U - U*\right), -2 \cdot \ell\right), t\right) \cdot \left(\left(2 \cdot n\right) \cdot U\right)} \]
                        2. lift-/.f64N/A

                          \[\leadsto \sqrt{\mathsf{fma}\left(\frac{\ell}{Om}, \mathsf{fma}\left(n \cdot \color{blue}{\frac{\ell}{Om}}, -\left(U - U*\right), -2 \cdot \ell\right), t\right) \cdot \left(\left(2 \cdot n\right) \cdot U\right)} \]
                        3. clear-numN/A

                          \[\leadsto \sqrt{\mathsf{fma}\left(\frac{\ell}{Om}, \mathsf{fma}\left(n \cdot \color{blue}{\frac{1}{\frac{Om}{\ell}}}, -\left(U - U*\right), -2 \cdot \ell\right), t\right) \cdot \left(\left(2 \cdot n\right) \cdot U\right)} \]
                        4. un-div-invN/A

                          \[\leadsto \sqrt{\mathsf{fma}\left(\frac{\ell}{Om}, \mathsf{fma}\left(\color{blue}{\frac{n}{\frac{Om}{\ell}}}, -\left(U - U*\right), -2 \cdot \ell\right), t\right) \cdot \left(\left(2 \cdot n\right) \cdot U\right)} \]
                        5. lower-/.f64N/A

                          \[\leadsto \sqrt{\mathsf{fma}\left(\frac{\ell}{Om}, \mathsf{fma}\left(\color{blue}{\frac{n}{\frac{Om}{\ell}}}, -\left(U - U*\right), -2 \cdot \ell\right), t\right) \cdot \left(\left(2 \cdot n\right) \cdot U\right)} \]
                        6. lower-/.f6463.8

                          \[\leadsto \sqrt{\mathsf{fma}\left(\frac{\ell}{Om}, \mathsf{fma}\left(\frac{n}{\color{blue}{\frac{Om}{\ell}}}, -\left(U - U*\right), -2 \cdot \ell\right), t\right) \cdot \left(\left(2 \cdot n\right) \cdot U\right)} \]
                      10. Applied rewrites63.8%

                        \[\leadsto \sqrt{\mathsf{fma}\left(\frac{\ell}{Om}, \mathsf{fma}\left(\color{blue}{\frac{n}{\frac{Om}{\ell}}}, -\left(U - U*\right), -2 \cdot \ell\right), t\right) \cdot \left(\left(2 \cdot n\right) \cdot U\right)} \]

                      if -2.4999999999999998e-97 < n < 5.99999999999999962e-31

                      1. Initial program 49.5%

                        \[\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)} \]
                      2. Add Preprocessing
                      3. Taylor expanded in n around 0

                        \[\leadsto \color{blue}{\sqrt{U \cdot \left(n \cdot \left(t - 2 \cdot \frac{{\ell}^{2}}{Om}\right)\right)} \cdot \sqrt{2}} \]
                      4. Step-by-step derivation
                        1. lower-*.f64N/A

                          \[\leadsto \color{blue}{\sqrt{U \cdot \left(n \cdot \left(t - 2 \cdot \frac{{\ell}^{2}}{Om}\right)\right)} \cdot \sqrt{2}} \]
                        2. lower-sqrt.f64N/A

                          \[\leadsto \color{blue}{\sqrt{U \cdot \left(n \cdot \left(t - 2 \cdot \frac{{\ell}^{2}}{Om}\right)\right)}} \cdot \sqrt{2} \]
                        3. *-commutativeN/A

                          \[\leadsto \sqrt{\color{blue}{\left(n \cdot \left(t - 2 \cdot \frac{{\ell}^{2}}{Om}\right)\right) \cdot U}} \cdot \sqrt{2} \]
                        4. lower-*.f64N/A

                          \[\leadsto \sqrt{\color{blue}{\left(n \cdot \left(t - 2 \cdot \frac{{\ell}^{2}}{Om}\right)\right) \cdot U}} \cdot \sqrt{2} \]
                        5. *-commutativeN/A

                          \[\leadsto \sqrt{\color{blue}{\left(\left(t - 2 \cdot \frac{{\ell}^{2}}{Om}\right) \cdot n\right)} \cdot U} \cdot \sqrt{2} \]
                        6. lower-*.f64N/A

                          \[\leadsto \sqrt{\color{blue}{\left(\left(t - 2 \cdot \frac{{\ell}^{2}}{Om}\right) \cdot n\right)} \cdot U} \cdot \sqrt{2} \]
                        7. cancel-sign-sub-invN/A

                          \[\leadsto \sqrt{\left(\color{blue}{\left(t + \left(\mathsf{neg}\left(2\right)\right) \cdot \frac{{\ell}^{2}}{Om}\right)} \cdot n\right) \cdot U} \cdot \sqrt{2} \]
                        8. metadata-evalN/A

                          \[\leadsto \sqrt{\left(\left(t + \color{blue}{-2} \cdot \frac{{\ell}^{2}}{Om}\right) \cdot n\right) \cdot U} \cdot \sqrt{2} \]
                        9. +-commutativeN/A

                          \[\leadsto \sqrt{\left(\color{blue}{\left(-2 \cdot \frac{{\ell}^{2}}{Om} + t\right)} \cdot n\right) \cdot U} \cdot \sqrt{2} \]
                        10. lower-fma.f64N/A

                          \[\leadsto \sqrt{\left(\color{blue}{\mathsf{fma}\left(-2, \frac{{\ell}^{2}}{Om}, t\right)} \cdot n\right) \cdot U} \cdot \sqrt{2} \]
                        11. lower-/.f64N/A

                          \[\leadsto \sqrt{\left(\mathsf{fma}\left(-2, \color{blue}{\frac{{\ell}^{2}}{Om}}, t\right) \cdot n\right) \cdot U} \cdot \sqrt{2} \]
                        12. unpow2N/A

                          \[\leadsto \sqrt{\left(\mathsf{fma}\left(-2, \frac{\color{blue}{\ell \cdot \ell}}{Om}, t\right) \cdot n\right) \cdot U} \cdot \sqrt{2} \]
                        13. lower-*.f64N/A

                          \[\leadsto \sqrt{\left(\mathsf{fma}\left(-2, \frac{\color{blue}{\ell \cdot \ell}}{Om}, t\right) \cdot n\right) \cdot U} \cdot \sqrt{2} \]
                        14. lower-sqrt.f6456.4

                          \[\leadsto \sqrt{\left(\mathsf{fma}\left(-2, \frac{\ell \cdot \ell}{Om}, t\right) \cdot n\right) \cdot U} \cdot \color{blue}{\sqrt{2}} \]
                      5. Applied rewrites56.4%

                        \[\leadsto \color{blue}{\sqrt{\left(\mathsf{fma}\left(-2, \frac{\ell \cdot \ell}{Om}, t\right) \cdot n\right) \cdot U} \cdot \sqrt{2}} \]
                      6. Step-by-step derivation
                        1. Applied rewrites67.7%

                          \[\leadsto \color{blue}{\sqrt{\left(\left(\mathsf{fma}\left(\frac{\ell}{Om} \cdot \ell, -2, t\right) \cdot n\right) \cdot U\right) \cdot 2}} \]

                        if 5.99999999999999962e-31 < n

                        1. Initial program 53.0%

                          \[\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)} \]
                        2. Add Preprocessing
                        3. Step-by-step derivation
                          1. lift--.f64N/A

                            \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\color{blue}{\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)} \]
                          2. sub-negN/A

                            \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\color{blue}{\left(t + \left(\mathsf{neg}\left(2 \cdot \frac{\ell \cdot \ell}{Om}\right)\right)\right)} - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
                          3. +-commutativeN/A

                            \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\color{blue}{\left(\left(\mathsf{neg}\left(2 \cdot \frac{\ell \cdot \ell}{Om}\right)\right) + t\right)} - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
                          4. lift-*.f64N/A

                            \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(\left(\mathsf{neg}\left(\color{blue}{2 \cdot \frac{\ell \cdot \ell}{Om}}\right)\right) + t\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
                          5. distribute-lft-neg-inN/A

                            \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(\color{blue}{\left(\mathsf{neg}\left(2\right)\right) \cdot \frac{\ell \cdot \ell}{Om}} + t\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
                          6. lift-/.f64N/A

                            \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(\left(\mathsf{neg}\left(2\right)\right) \cdot \color{blue}{\frac{\ell \cdot \ell}{Om}} + t\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
                          7. lift-*.f64N/A

                            \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(\left(\mathsf{neg}\left(2\right)\right) \cdot \frac{\color{blue}{\ell \cdot \ell}}{Om} + t\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
                          8. associate-/l*N/A

                            \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(\left(\mathsf{neg}\left(2\right)\right) \cdot \color{blue}{\left(\ell \cdot \frac{\ell}{Om}\right)} + t\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
                          9. lift-/.f64N/A

                            \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(\left(\mathsf{neg}\left(2\right)\right) \cdot \left(\ell \cdot \color{blue}{\frac{\ell}{Om}}\right) + t\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
                          10. *-commutativeN/A

                            \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(\left(\mathsf{neg}\left(2\right)\right) \cdot \color{blue}{\left(\frac{\ell}{Om} \cdot \ell\right)} + t\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
                          11. associate-*r*N/A

                            \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(\color{blue}{\left(\left(\mathsf{neg}\left(2\right)\right) \cdot \frac{\ell}{Om}\right) \cdot \ell} + t\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
                          12. lower-fma.f64N/A

                            \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\color{blue}{\mathsf{fma}\left(\left(\mathsf{neg}\left(2\right)\right) \cdot \frac{\ell}{Om}, \ell, t\right)} - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
                          13. lower-*.f64N/A

                            \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\mathsf{fma}\left(\color{blue}{\left(\mathsf{neg}\left(2\right)\right) \cdot \frac{\ell}{Om}}, \ell, t\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
                          14. metadata-eval55.4

                            \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\mathsf{fma}\left(\color{blue}{-2} \cdot \frac{\ell}{Om}, \ell, t\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
                        4. Applied rewrites55.4%

                          \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\color{blue}{\mathsf{fma}\left(-2 \cdot \frac{\ell}{Om}, \ell, t\right)} - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
                        5. Step-by-step derivation
                          1. lift--.f64N/A

                            \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \color{blue}{\left(\mathsf{fma}\left(-2 \cdot \frac{\ell}{Om}, \ell, t\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)}} \]
                          2. lift-fma.f64N/A

                            \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\color{blue}{\left(\left(-2 \cdot \frac{\ell}{Om}\right) \cdot \ell + t\right)} - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
                          3. associate--l+N/A

                            \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \color{blue}{\left(\left(-2 \cdot \frac{\ell}{Om}\right) \cdot \ell + \left(t - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)\right)}} \]
                          4. *-commutativeN/A

                            \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\color{blue}{\ell \cdot \left(-2 \cdot \frac{\ell}{Om}\right)} + \left(t - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)\right)} \]
                          5. lift-*.f64N/A

                            \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\ell \cdot \color{blue}{\left(-2 \cdot \frac{\ell}{Om}\right)} + \left(t - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)\right)} \]
                          6. *-commutativeN/A

                            \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\ell \cdot \color{blue}{\left(\frac{\ell}{Om} \cdot -2\right)} + \left(t - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)\right)} \]
                          7. associate-*r*N/A

                            \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\color{blue}{\left(\ell \cdot \frac{\ell}{Om}\right) \cdot -2} + \left(t - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)\right)} \]
                          8. lift-/.f64N/A

                            \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(\ell \cdot \color{blue}{\frac{\ell}{Om}}\right) \cdot -2 + \left(t - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)\right)} \]
                          9. associate-/l*N/A

                            \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\color{blue}{\frac{\ell \cdot \ell}{Om}} \cdot -2 + \left(t - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)\right)} \]
                          10. lift-*.f64N/A

                            \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\frac{\color{blue}{\ell \cdot \ell}}{Om} \cdot -2 + \left(t - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)\right)} \]
                          11. lift-/.f64N/A

                            \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\color{blue}{\frac{\ell \cdot \ell}{Om}} \cdot -2 + \left(t - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)\right)} \]
                          12. *-commutativeN/A

                            \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\color{blue}{-2 \cdot \frac{\ell \cdot \ell}{Om}} + \left(t - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)\right)} \]
                          13. associate--l+N/A

                            \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \color{blue}{\left(\left(-2 \cdot \frac{\ell \cdot \ell}{Om} + t\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)}} \]
                          14. lift-fma.f64N/A

                            \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\color{blue}{\mathsf{fma}\left(-2, \frac{\ell \cdot \ell}{Om}, t\right)} - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
                          15. lift-*.f64N/A

                            \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\mathsf{fma}\left(-2, \frac{\ell \cdot \ell}{Om}, t\right) - \color{blue}{\left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)}\right)} \]
                        6. Applied rewrites57.7%

                          \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \color{blue}{\mathsf{fma}\left(\frac{\ell}{Om} \cdot \left(-\left(U - U*\right)\right), n \cdot \frac{\ell}{Om}, \mathsf{fma}\left(\frac{\ell}{Om} \cdot \ell, -2, t\right)\right)}} \]
                        7. Step-by-step derivation
                          1. lift-sqrt.f64N/A

                            \[\leadsto \color{blue}{\sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \mathsf{fma}\left(\frac{\ell}{Om} \cdot \left(-\left(U - U*\right)\right), n \cdot \frac{\ell}{Om}, \mathsf{fma}\left(\frac{\ell}{Om} \cdot \ell, -2, t\right)\right)}} \]
                          2. pow1/2N/A

                            \[\leadsto \color{blue}{{\left(\left(\left(2 \cdot n\right) \cdot U\right) \cdot \mathsf{fma}\left(\frac{\ell}{Om} \cdot \left(-\left(U - U*\right)\right), n \cdot \frac{\ell}{Om}, \mathsf{fma}\left(\frac{\ell}{Om} \cdot \ell, -2, t\right)\right)\right)}^{\frac{1}{2}}} \]
                          3. lift-*.f64N/A

                            \[\leadsto {\color{blue}{\left(\left(\left(2 \cdot n\right) \cdot U\right) \cdot \mathsf{fma}\left(\frac{\ell}{Om} \cdot \left(-\left(U - U*\right)\right), n \cdot \frac{\ell}{Om}, \mathsf{fma}\left(\frac{\ell}{Om} \cdot \ell, -2, t\right)\right)\right)}}^{\frac{1}{2}} \]
                          4. lift-*.f64N/A

                            \[\leadsto {\left(\color{blue}{\left(\left(2 \cdot n\right) \cdot U\right)} \cdot \mathsf{fma}\left(\frac{\ell}{Om} \cdot \left(-\left(U - U*\right)\right), n \cdot \frac{\ell}{Om}, \mathsf{fma}\left(\frac{\ell}{Om} \cdot \ell, -2, t\right)\right)\right)}^{\frac{1}{2}} \]
                          5. associate-*l*N/A

                            \[\leadsto {\color{blue}{\left(\left(2 \cdot n\right) \cdot \left(U \cdot \mathsf{fma}\left(\frac{\ell}{Om} \cdot \left(-\left(U - U*\right)\right), n \cdot \frac{\ell}{Om}, \mathsf{fma}\left(\frac{\ell}{Om} \cdot \ell, -2, t\right)\right)\right)\right)}}^{\frac{1}{2}} \]
                          6. *-commutativeN/A

                            \[\leadsto {\color{blue}{\left(\left(U \cdot \mathsf{fma}\left(\frac{\ell}{Om} \cdot \left(-\left(U - U*\right)\right), n \cdot \frac{\ell}{Om}, \mathsf{fma}\left(\frac{\ell}{Om} \cdot \ell, -2, t\right)\right)\right) \cdot \left(2 \cdot n\right)\right)}}^{\frac{1}{2}} \]
                          7. unpow-prod-downN/A

                            \[\leadsto \color{blue}{{\left(U \cdot \mathsf{fma}\left(\frac{\ell}{Om} \cdot \left(-\left(U - U*\right)\right), n \cdot \frac{\ell}{Om}, \mathsf{fma}\left(\frac{\ell}{Om} \cdot \ell, -2, t\right)\right)\right)}^{\frac{1}{2}} \cdot {\left(2 \cdot n\right)}^{\frac{1}{2}}} \]
                          8. lower-*.f64N/A

                            \[\leadsto \color{blue}{{\left(U \cdot \mathsf{fma}\left(\frac{\ell}{Om} \cdot \left(-\left(U - U*\right)\right), n \cdot \frac{\ell}{Om}, \mathsf{fma}\left(\frac{\ell}{Om} \cdot \ell, -2, t\right)\right)\right)}^{\frac{1}{2}} \cdot {\left(2 \cdot n\right)}^{\frac{1}{2}}} \]
                        8. Applied rewrites81.2%

                          \[\leadsto \color{blue}{\sqrt{\mathsf{fma}\left(\frac{\ell}{Om}, \mathsf{fma}\left(n \cdot \frac{\ell}{Om}, -\left(U - U*\right), -2 \cdot \ell\right), t\right) \cdot U} \cdot \sqrt{2 \cdot n}} \]
                      7. Recombined 3 regimes into one program.
                      8. Final simplification70.9%

                        \[\leadsto \begin{array}{l} \mathbf{if}\;n \leq -2.5 \cdot 10^{-97}:\\ \;\;\;\;\sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \mathsf{fma}\left(\frac{\ell}{Om}, \mathsf{fma}\left(\frac{n}{\frac{Om}{\ell}}, U* - U, -2 \cdot \ell\right), t\right)}\\ \mathbf{elif}\;n \leq 6 \cdot 10^{-31}:\\ \;\;\;\;\sqrt{\left(\left(\mathsf{fma}\left(\frac{\ell}{Om} \cdot \ell, -2, t\right) \cdot n\right) \cdot U\right) \cdot 2}\\ \mathbf{else}:\\ \;\;\;\;\sqrt{2 \cdot n} \cdot \sqrt{\mathsf{fma}\left(\frac{\ell}{Om}, \mathsf{fma}\left(\frac{\ell}{Om} \cdot n, U* - U, -2 \cdot \ell\right), t\right) \cdot U}\\ \end{array} \]
                      9. Add Preprocessing

                      Alternative 10: 55.5% accurate, 2.3× speedup?

                      \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;\ell \leq 5.7 \cdot 10^{+150}:\\ \;\;\;\;\sqrt{\left(\left(\left(\frac{\mathsf{fma}\left(-2, \ell, \frac{\left(\ell \cdot n\right) \cdot U*}{Om}\right) \cdot \ell}{Om} + t\right) \cdot n\right) \cdot U\right) \cdot 2}\\ \mathbf{else}:\\ \;\;\;\;\sqrt{\left(\frac{\mathsf{fma}\left(\frac{n}{Om}, U - U*, 2\right) \cdot \ell}{-Om} \cdot \ell\right) \cdot \left(\left(2 \cdot n\right) \cdot U\right)}\\ \end{array} \end{array} \]
                      (FPCore (n U t l Om U*)
                       :precision binary64
                       (if (<= l 5.7e+150)
                         (sqrt
                          (* (* (* (+ (/ (* (fma -2.0 l (/ (* (* l n) U*) Om)) l) Om) t) n) U) 2.0))
                         (sqrt
                          (* (* (/ (* (fma (/ n Om) (- U U*) 2.0) l) (- Om)) l) (* (* 2.0 n) U)))))
                      double code(double n, double U, double t, double l, double Om, double U_42_) {
                      	double tmp;
                      	if (l <= 5.7e+150) {
                      		tmp = sqrt(((((((fma(-2.0, l, (((l * n) * U_42_) / Om)) * l) / Om) + t) * n) * U) * 2.0));
                      	} else {
                      		tmp = sqrt(((((fma((n / Om), (U - U_42_), 2.0) * l) / -Om) * l) * ((2.0 * n) * U)));
                      	}
                      	return tmp;
                      }
                      
                      function code(n, U, t, l, Om, U_42_)
                      	tmp = 0.0
                      	if (l <= 5.7e+150)
                      		tmp = sqrt(Float64(Float64(Float64(Float64(Float64(Float64(fma(-2.0, l, Float64(Float64(Float64(l * n) * U_42_) / Om)) * l) / Om) + t) * n) * U) * 2.0));
                      	else
                      		tmp = sqrt(Float64(Float64(Float64(Float64(fma(Float64(n / Om), Float64(U - U_42_), 2.0) * l) / Float64(-Om)) * l) * Float64(Float64(2.0 * n) * U)));
                      	end
                      	return tmp
                      end
                      
                      code[n_, U_, t_, l_, Om_, U$42$_] := If[LessEqual[l, 5.7e+150], N[Sqrt[N[(N[(N[(N[(N[(N[(N[(-2.0 * l + N[(N[(N[(l * n), $MachinePrecision] * U$42$), $MachinePrecision] / Om), $MachinePrecision]), $MachinePrecision] * l), $MachinePrecision] / Om), $MachinePrecision] + t), $MachinePrecision] * n), $MachinePrecision] * U), $MachinePrecision] * 2.0), $MachinePrecision]], $MachinePrecision], N[Sqrt[N[(N[(N[(N[(N[(N[(n / Om), $MachinePrecision] * N[(U - U$42$), $MachinePrecision] + 2.0), $MachinePrecision] * l), $MachinePrecision] / (-Om)), $MachinePrecision] * l), $MachinePrecision] * N[(N[(2.0 * n), $MachinePrecision] * U), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]]
                      
                      \begin{array}{l}
                      
                      \\
                      \begin{array}{l}
                      \mathbf{if}\;\ell \leq 5.7 \cdot 10^{+150}:\\
                      \;\;\;\;\sqrt{\left(\left(\left(\frac{\mathsf{fma}\left(-2, \ell, \frac{\left(\ell \cdot n\right) \cdot U*}{Om}\right) \cdot \ell}{Om} + t\right) \cdot n\right) \cdot U\right) \cdot 2}\\
                      
                      \mathbf{else}:\\
                      \;\;\;\;\sqrt{\left(\frac{\mathsf{fma}\left(\frac{n}{Om}, U - U*, 2\right) \cdot \ell}{-Om} \cdot \ell\right) \cdot \left(\left(2 \cdot n\right) \cdot U\right)}\\
                      
                      
                      \end{array}
                      \end{array}
                      
                      Derivation
                      1. Split input into 2 regimes
                      2. if l < 5.7000000000000002e150

                        1. Initial program 59.0%

                          \[\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)} \]
                        2. Add Preprocessing
                        3. Step-by-step derivation
                          1. lift--.f64N/A

                            \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\color{blue}{\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)} \]
                          2. sub-negN/A

                            \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\color{blue}{\left(t + \left(\mathsf{neg}\left(2 \cdot \frac{\ell \cdot \ell}{Om}\right)\right)\right)} - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
                          3. +-commutativeN/A

                            \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\color{blue}{\left(\left(\mathsf{neg}\left(2 \cdot \frac{\ell \cdot \ell}{Om}\right)\right) + t\right)} - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
                          4. lift-*.f64N/A

                            \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(\left(\mathsf{neg}\left(\color{blue}{2 \cdot \frac{\ell \cdot \ell}{Om}}\right)\right) + t\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
                          5. distribute-lft-neg-inN/A

                            \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(\color{blue}{\left(\mathsf{neg}\left(2\right)\right) \cdot \frac{\ell \cdot \ell}{Om}} + t\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
                          6. lift-/.f64N/A

                            \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(\left(\mathsf{neg}\left(2\right)\right) \cdot \color{blue}{\frac{\ell \cdot \ell}{Om}} + t\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
                          7. lift-*.f64N/A

                            \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(\left(\mathsf{neg}\left(2\right)\right) \cdot \frac{\color{blue}{\ell \cdot \ell}}{Om} + t\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
                          8. associate-/l*N/A

                            \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(\left(\mathsf{neg}\left(2\right)\right) \cdot \color{blue}{\left(\ell \cdot \frac{\ell}{Om}\right)} + t\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
                          9. lift-/.f64N/A

                            \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(\left(\mathsf{neg}\left(2\right)\right) \cdot \left(\ell \cdot \color{blue}{\frac{\ell}{Om}}\right) + t\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
                          10. *-commutativeN/A

                            \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(\left(\mathsf{neg}\left(2\right)\right) \cdot \color{blue}{\left(\frac{\ell}{Om} \cdot \ell\right)} + t\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
                          11. associate-*r*N/A

                            \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(\color{blue}{\left(\left(\mathsf{neg}\left(2\right)\right) \cdot \frac{\ell}{Om}\right) \cdot \ell} + t\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
                          12. lower-fma.f64N/A

                            \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\color{blue}{\mathsf{fma}\left(\left(\mathsf{neg}\left(2\right)\right) \cdot \frac{\ell}{Om}, \ell, t\right)} - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
                          13. lower-*.f64N/A

                            \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\mathsf{fma}\left(\color{blue}{\left(\mathsf{neg}\left(2\right)\right) \cdot \frac{\ell}{Om}}, \ell, t\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
                          14. metadata-eval60.7

                            \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\mathsf{fma}\left(\color{blue}{-2} \cdot \frac{\ell}{Om}, \ell, t\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
                        4. Applied rewrites60.7%

                          \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\color{blue}{\mathsf{fma}\left(-2 \cdot \frac{\ell}{Om}, \ell, t\right)} - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
                        5. Step-by-step derivation
                          1. lift--.f64N/A

                            \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \color{blue}{\left(\mathsf{fma}\left(-2 \cdot \frac{\ell}{Om}, \ell, t\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)}} \]
                          2. lift-fma.f64N/A

                            \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\color{blue}{\left(\left(-2 \cdot \frac{\ell}{Om}\right) \cdot \ell + t\right)} - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
                          3. associate--l+N/A

                            \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \color{blue}{\left(\left(-2 \cdot \frac{\ell}{Om}\right) \cdot \ell + \left(t - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)\right)}} \]
                          4. *-commutativeN/A

                            \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\color{blue}{\ell \cdot \left(-2 \cdot \frac{\ell}{Om}\right)} + \left(t - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)\right)} \]
                          5. lift-*.f64N/A

                            \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\ell \cdot \color{blue}{\left(-2 \cdot \frac{\ell}{Om}\right)} + \left(t - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)\right)} \]
                          6. *-commutativeN/A

                            \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\ell \cdot \color{blue}{\left(\frac{\ell}{Om} \cdot -2\right)} + \left(t - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)\right)} \]
                          7. associate-*r*N/A

                            \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\color{blue}{\left(\ell \cdot \frac{\ell}{Om}\right) \cdot -2} + \left(t - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)\right)} \]
                          8. lift-/.f64N/A

                            \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(\ell \cdot \color{blue}{\frac{\ell}{Om}}\right) \cdot -2 + \left(t - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)\right)} \]
                          9. associate-/l*N/A

                            \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\color{blue}{\frac{\ell \cdot \ell}{Om}} \cdot -2 + \left(t - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)\right)} \]
                          10. lift-*.f64N/A

                            \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\frac{\color{blue}{\ell \cdot \ell}}{Om} \cdot -2 + \left(t - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)\right)} \]
                          11. lift-/.f64N/A

                            \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\color{blue}{\frac{\ell \cdot \ell}{Om}} \cdot -2 + \left(t - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)\right)} \]
                          12. *-commutativeN/A

                            \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\color{blue}{-2 \cdot \frac{\ell \cdot \ell}{Om}} + \left(t - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)\right)} \]
                          13. associate--l+N/A

                            \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \color{blue}{\left(\left(-2 \cdot \frac{\ell \cdot \ell}{Om} + t\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)}} \]
                          14. lift-fma.f64N/A

                            \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\color{blue}{\mathsf{fma}\left(-2, \frac{\ell \cdot \ell}{Om}, t\right)} - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
                          15. lift-*.f64N/A

                            \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\mathsf{fma}\left(-2, \frac{\ell \cdot \ell}{Om}, t\right) - \color{blue}{\left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)}\right)} \]
                        6. Applied rewrites62.4%

                          \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \color{blue}{\mathsf{fma}\left(\frac{\ell}{Om} \cdot \left(-\left(U - U*\right)\right), n \cdot \frac{\ell}{Om}, \mathsf{fma}\left(\frac{\ell}{Om} \cdot \ell, -2, t\right)\right)}} \]
                        7. Step-by-step derivation
                          1. lift-*.f64N/A

                            \[\leadsto \sqrt{\color{blue}{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \mathsf{fma}\left(\frac{\ell}{Om} \cdot \left(-\left(U - U*\right)\right), n \cdot \frac{\ell}{Om}, \mathsf{fma}\left(\frac{\ell}{Om} \cdot \ell, -2, t\right)\right)}} \]
                          2. *-commutativeN/A

                            \[\leadsto \sqrt{\color{blue}{\mathsf{fma}\left(\frac{\ell}{Om} \cdot \left(-\left(U - U*\right)\right), n \cdot \frac{\ell}{Om}, \mathsf{fma}\left(\frac{\ell}{Om} \cdot \ell, -2, t\right)\right) \cdot \left(\left(2 \cdot n\right) \cdot U\right)}} \]
                          3. lower-*.f6462.4

                            \[\leadsto \sqrt{\color{blue}{\mathsf{fma}\left(\frac{\ell}{Om} \cdot \left(-\left(U - U*\right)\right), n \cdot \frac{\ell}{Om}, \mathsf{fma}\left(\frac{\ell}{Om} \cdot \ell, -2, t\right)\right) \cdot \left(\left(2 \cdot n\right) \cdot U\right)}} \]
                        8. Applied rewrites65.2%

                          \[\leadsto \sqrt{\color{blue}{\mathsf{fma}\left(\frac{\ell}{Om}, \mathsf{fma}\left(n \cdot \frac{\ell}{Om}, -\left(U - U*\right), -2 \cdot \ell\right), t\right) \cdot \left(\left(2 \cdot n\right) \cdot U\right)}} \]
                        9. Taylor expanded in U around 0

                          \[\leadsto \sqrt{\color{blue}{2 \cdot \left(U \cdot \left(n \cdot \left(t + \frac{\ell \cdot \left(-2 \cdot \ell + \frac{U* \cdot \left(\ell \cdot n\right)}{Om}\right)}{Om}\right)\right)\right)}} \]
                        10. Step-by-step derivation
                          1. lower-*.f64N/A

                            \[\leadsto \sqrt{\color{blue}{2 \cdot \left(U \cdot \left(n \cdot \left(t + \frac{\ell \cdot \left(-2 \cdot \ell + \frac{U* \cdot \left(\ell \cdot n\right)}{Om}\right)}{Om}\right)\right)\right)}} \]
                          2. lower-*.f64N/A

                            \[\leadsto \sqrt{2 \cdot \color{blue}{\left(U \cdot \left(n \cdot \left(t + \frac{\ell \cdot \left(-2 \cdot \ell + \frac{U* \cdot \left(\ell \cdot n\right)}{Om}\right)}{Om}\right)\right)\right)}} \]
                          3. lower-*.f64N/A

                            \[\leadsto \sqrt{2 \cdot \left(U \cdot \color{blue}{\left(n \cdot \left(t + \frac{\ell \cdot \left(-2 \cdot \ell + \frac{U* \cdot \left(\ell \cdot n\right)}{Om}\right)}{Om}\right)\right)}\right)} \]
                          4. lower-+.f64N/A

                            \[\leadsto \sqrt{2 \cdot \left(U \cdot \left(n \cdot \color{blue}{\left(t + \frac{\ell \cdot \left(-2 \cdot \ell + \frac{U* \cdot \left(\ell \cdot n\right)}{Om}\right)}{Om}\right)}\right)\right)} \]
                          5. lower-/.f64N/A

                            \[\leadsto \sqrt{2 \cdot \left(U \cdot \left(n \cdot \left(t + \color{blue}{\frac{\ell \cdot \left(-2 \cdot \ell + \frac{U* \cdot \left(\ell \cdot n\right)}{Om}\right)}{Om}}\right)\right)\right)} \]
                          6. lower-*.f64N/A

                            \[\leadsto \sqrt{2 \cdot \left(U \cdot \left(n \cdot \left(t + \frac{\color{blue}{\ell \cdot \left(-2 \cdot \ell + \frac{U* \cdot \left(\ell \cdot n\right)}{Om}\right)}}{Om}\right)\right)\right)} \]
                          7. lower-fma.f64N/A

                            \[\leadsto \sqrt{2 \cdot \left(U \cdot \left(n \cdot \left(t + \frac{\ell \cdot \color{blue}{\mathsf{fma}\left(-2, \ell, \frac{U* \cdot \left(\ell \cdot n\right)}{Om}\right)}}{Om}\right)\right)\right)} \]
                          8. lower-/.f64N/A

                            \[\leadsto \sqrt{2 \cdot \left(U \cdot \left(n \cdot \left(t + \frac{\ell \cdot \mathsf{fma}\left(-2, \ell, \color{blue}{\frac{U* \cdot \left(\ell \cdot n\right)}{Om}}\right)}{Om}\right)\right)\right)} \]
                          9. lower-*.f64N/A

                            \[\leadsto \sqrt{2 \cdot \left(U \cdot \left(n \cdot \left(t + \frac{\ell \cdot \mathsf{fma}\left(-2, \ell, \frac{\color{blue}{U* \cdot \left(\ell \cdot n\right)}}{Om}\right)}{Om}\right)\right)\right)} \]
                          10. lower-*.f6462.6

                            \[\leadsto \sqrt{2 \cdot \left(U \cdot \left(n \cdot \left(t + \frac{\ell \cdot \mathsf{fma}\left(-2, \ell, \frac{U* \cdot \color{blue}{\left(\ell \cdot n\right)}}{Om}\right)}{Om}\right)\right)\right)} \]
                        11. Applied rewrites62.6%

                          \[\leadsto \sqrt{\color{blue}{2 \cdot \left(U \cdot \left(n \cdot \left(t + \frac{\ell \cdot \mathsf{fma}\left(-2, \ell, \frac{U* \cdot \left(\ell \cdot n\right)}{Om}\right)}{Om}\right)\right)\right)}} \]

                        if 5.7000000000000002e150 < l

                        1. Initial program 16.6%

                          \[\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)} \]
                        2. Add Preprocessing
                        3. Taylor expanded in t around 0

                          \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \color{blue}{\left(-1 \cdot \left(2 \cdot \frac{{\ell}^{2}}{Om} + \frac{{\ell}^{2} \cdot \left(n \cdot \left(U - U*\right)\right)}{{Om}^{2}}\right)\right)}} \]
                        4. Step-by-step derivation
                          1. +-commutativeN/A

                            \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(-1 \cdot \color{blue}{\left(\frac{{\ell}^{2} \cdot \left(n \cdot \left(U - U*\right)\right)}{{Om}^{2}} + 2 \cdot \frac{{\ell}^{2}}{Om}\right)}\right)} \]
                          2. unpow2N/A

                            \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(-1 \cdot \left(\frac{{\ell}^{2} \cdot \left(n \cdot \left(U - U*\right)\right)}{\color{blue}{Om \cdot Om}} + 2 \cdot \frac{{\ell}^{2}}{Om}\right)\right)} \]
                          3. associate-/r*N/A

                            \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(-1 \cdot \left(\color{blue}{\frac{\frac{{\ell}^{2} \cdot \left(n \cdot \left(U - U*\right)\right)}{Om}}{Om}} + 2 \cdot \frac{{\ell}^{2}}{Om}\right)\right)} \]
                          4. metadata-evalN/A

                            \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(-1 \cdot \left(\frac{\frac{{\ell}^{2} \cdot \left(n \cdot \left(U - U*\right)\right)}{Om}}{Om} + \color{blue}{\left(\mathsf{neg}\left(-2\right)\right)} \cdot \frac{{\ell}^{2}}{Om}\right)\right)} \]
                          5. cancel-sign-sub-invN/A

                            \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(-1 \cdot \color{blue}{\left(\frac{\frac{{\ell}^{2} \cdot \left(n \cdot \left(U - U*\right)\right)}{Om}}{Om} - -2 \cdot \frac{{\ell}^{2}}{Om}\right)}\right)} \]
                          6. associate-*r/N/A

                            \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(-1 \cdot \left(\frac{\frac{{\ell}^{2} \cdot \left(n \cdot \left(U - U*\right)\right)}{Om}}{Om} - \color{blue}{\frac{-2 \cdot {\ell}^{2}}{Om}}\right)\right)} \]
                          7. div-subN/A

                            \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(-1 \cdot \color{blue}{\frac{\frac{{\ell}^{2} \cdot \left(n \cdot \left(U - U*\right)\right)}{Om} - -2 \cdot {\ell}^{2}}{Om}}\right)} \]
                          8. mul-1-negN/A

                            \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \color{blue}{\left(\mathsf{neg}\left(\frac{\frac{{\ell}^{2} \cdot \left(n \cdot \left(U - U*\right)\right)}{Om} - -2 \cdot {\ell}^{2}}{Om}\right)\right)}} \]
                          9. distribute-neg-frac2N/A

                            \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \color{blue}{\frac{\frac{{\ell}^{2} \cdot \left(n \cdot \left(U - U*\right)\right)}{Om} - -2 \cdot {\ell}^{2}}{\mathsf{neg}\left(Om\right)}}} \]
                          10. lower-/.f64N/A

                            \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \color{blue}{\frac{\frac{{\ell}^{2} \cdot \left(n \cdot \left(U - U*\right)\right)}{Om} - -2 \cdot {\ell}^{2}}{\mathsf{neg}\left(Om\right)}}} \]
                        5. Applied rewrites41.1%

                          \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \color{blue}{\frac{\left(\ell \cdot \ell\right) \cdot \mathsf{fma}\left(U - U*, \frac{n}{Om}, 2\right)}{-Om}}} \]
                        6. Step-by-step derivation
                          1. Applied rewrites62.1%

                            \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\ell \cdot \color{blue}{\frac{\mathsf{fma}\left(\frac{n}{Om}, U - U*, 2\right) \cdot \ell}{-Om}}\right)} \]
                        7. Recombined 2 regimes into one program.
                        8. Final simplification62.5%

                          \[\leadsto \begin{array}{l} \mathbf{if}\;\ell \leq 5.7 \cdot 10^{+150}:\\ \;\;\;\;\sqrt{\left(\left(\left(\frac{\mathsf{fma}\left(-2, \ell, \frac{\left(\ell \cdot n\right) \cdot U*}{Om}\right) \cdot \ell}{Om} + t\right) \cdot n\right) \cdot U\right) \cdot 2}\\ \mathbf{else}:\\ \;\;\;\;\sqrt{\left(\frac{\mathsf{fma}\left(\frac{n}{Om}, U - U*, 2\right) \cdot \ell}{-Om} \cdot \ell\right) \cdot \left(\left(2 \cdot n\right) \cdot U\right)}\\ \end{array} \]
                        9. Add Preprocessing

                        Alternative 11: 55.0% accurate, 2.3× speedup?

                        \[\begin{array}{l} \\ \begin{array}{l} t_1 := \sqrt{\mathsf{fma}\left(\frac{\ell}{Om}, \frac{\left(\ell \cdot n\right) \cdot U*}{Om}, t\right) \cdot \left(\left(2 \cdot n\right) \cdot U\right)}\\ \mathbf{if}\;n \leq -1.16 \cdot 10^{-92}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;n \leq 0.0245:\\ \;\;\;\;\sqrt{\left(\left(\mathsf{fma}\left(\frac{\ell}{Om} \cdot \ell, -2, t\right) \cdot n\right) \cdot U\right) \cdot 2}\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                        (FPCore (n U t l Om U*)
                         :precision binary64
                         (let* ((t_1
                                 (sqrt (* (fma (/ l Om) (/ (* (* l n) U*) Om) t) (* (* 2.0 n) U)))))
                           (if (<= n -1.16e-92)
                             t_1
                             (if (<= n 0.0245)
                               (sqrt (* (* (* (fma (* (/ l Om) l) -2.0 t) n) U) 2.0))
                               t_1))))
                        double code(double n, double U, double t, double l, double Om, double U_42_) {
                        	double t_1 = sqrt((fma((l / Om), (((l * n) * U_42_) / Om), t) * ((2.0 * n) * U)));
                        	double tmp;
                        	if (n <= -1.16e-92) {
                        		tmp = t_1;
                        	} else if (n <= 0.0245) {
                        		tmp = sqrt((((fma(((l / Om) * l), -2.0, t) * n) * U) * 2.0));
                        	} else {
                        		tmp = t_1;
                        	}
                        	return tmp;
                        }
                        
                        function code(n, U, t, l, Om, U_42_)
                        	t_1 = sqrt(Float64(fma(Float64(l / Om), Float64(Float64(Float64(l * n) * U_42_) / Om), t) * Float64(Float64(2.0 * n) * U)))
                        	tmp = 0.0
                        	if (n <= -1.16e-92)
                        		tmp = t_1;
                        	elseif (n <= 0.0245)
                        		tmp = sqrt(Float64(Float64(Float64(fma(Float64(Float64(l / Om) * l), -2.0, t) * n) * U) * 2.0));
                        	else
                        		tmp = t_1;
                        	end
                        	return tmp
                        end
                        
                        code[n_, U_, t_, l_, Om_, U$42$_] := Block[{t$95$1 = N[Sqrt[N[(N[(N[(l / Om), $MachinePrecision] * N[(N[(N[(l * n), $MachinePrecision] * U$42$), $MachinePrecision] / Om), $MachinePrecision] + t), $MachinePrecision] * N[(N[(2.0 * n), $MachinePrecision] * U), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]}, If[LessEqual[n, -1.16e-92], t$95$1, If[LessEqual[n, 0.0245], N[Sqrt[N[(N[(N[(N[(N[(N[(l / Om), $MachinePrecision] * l), $MachinePrecision] * -2.0 + t), $MachinePrecision] * n), $MachinePrecision] * U), $MachinePrecision] * 2.0), $MachinePrecision]], $MachinePrecision], t$95$1]]]
                        
                        \begin{array}{l}
                        
                        \\
                        \begin{array}{l}
                        t_1 := \sqrt{\mathsf{fma}\left(\frac{\ell}{Om}, \frac{\left(\ell \cdot n\right) \cdot U*}{Om}, t\right) \cdot \left(\left(2 \cdot n\right) \cdot U\right)}\\
                        \mathbf{if}\;n \leq -1.16 \cdot 10^{-92}:\\
                        \;\;\;\;t\_1\\
                        
                        \mathbf{elif}\;n \leq 0.0245:\\
                        \;\;\;\;\sqrt{\left(\left(\mathsf{fma}\left(\frac{\ell}{Om} \cdot \ell, -2, t\right) \cdot n\right) \cdot U\right) \cdot 2}\\
                        
                        \mathbf{else}:\\
                        \;\;\;\;t\_1\\
                        
                        
                        \end{array}
                        \end{array}
                        
                        Derivation
                        1. Split input into 2 regimes
                        2. if n < -1.1599999999999999e-92 or 0.024500000000000001 < n

                          1. Initial program 55.3%

                            \[\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)} \]
                          2. Add Preprocessing
                          3. Step-by-step derivation
                            1. lift--.f64N/A

                              \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\color{blue}{\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)} \]
                            2. sub-negN/A

                              \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\color{blue}{\left(t + \left(\mathsf{neg}\left(2 \cdot \frac{\ell \cdot \ell}{Om}\right)\right)\right)} - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
                            3. +-commutativeN/A

                              \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\color{blue}{\left(\left(\mathsf{neg}\left(2 \cdot \frac{\ell \cdot \ell}{Om}\right)\right) + t\right)} - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
                            4. lift-*.f64N/A

                              \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(\left(\mathsf{neg}\left(\color{blue}{2 \cdot \frac{\ell \cdot \ell}{Om}}\right)\right) + t\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
                            5. distribute-lft-neg-inN/A

                              \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(\color{blue}{\left(\mathsf{neg}\left(2\right)\right) \cdot \frac{\ell \cdot \ell}{Om}} + t\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
                            6. lift-/.f64N/A

                              \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(\left(\mathsf{neg}\left(2\right)\right) \cdot \color{blue}{\frac{\ell \cdot \ell}{Om}} + t\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
                            7. lift-*.f64N/A

                              \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(\left(\mathsf{neg}\left(2\right)\right) \cdot \frac{\color{blue}{\ell \cdot \ell}}{Om} + t\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
                            8. associate-/l*N/A

                              \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(\left(\mathsf{neg}\left(2\right)\right) \cdot \color{blue}{\left(\ell \cdot \frac{\ell}{Om}\right)} + t\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
                            9. lift-/.f64N/A

                              \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(\left(\mathsf{neg}\left(2\right)\right) \cdot \left(\ell \cdot \color{blue}{\frac{\ell}{Om}}\right) + t\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
                            10. *-commutativeN/A

                              \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(\left(\mathsf{neg}\left(2\right)\right) \cdot \color{blue}{\left(\frac{\ell}{Om} \cdot \ell\right)} + t\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
                            11. associate-*r*N/A

                              \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(\color{blue}{\left(\left(\mathsf{neg}\left(2\right)\right) \cdot \frac{\ell}{Om}\right) \cdot \ell} + t\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
                            12. lower-fma.f64N/A

                              \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\color{blue}{\mathsf{fma}\left(\left(\mathsf{neg}\left(2\right)\right) \cdot \frac{\ell}{Om}, \ell, t\right)} - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
                            13. lower-*.f64N/A

                              \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\mathsf{fma}\left(\color{blue}{\left(\mathsf{neg}\left(2\right)\right) \cdot \frac{\ell}{Om}}, \ell, t\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
                            14. metadata-eval57.2

                              \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\mathsf{fma}\left(\color{blue}{-2} \cdot \frac{\ell}{Om}, \ell, t\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
                          4. Applied rewrites57.2%

                            \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\color{blue}{\mathsf{fma}\left(-2 \cdot \frac{\ell}{Om}, \ell, t\right)} - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
                          5. Step-by-step derivation
                            1. lift--.f64N/A

                              \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \color{blue}{\left(\mathsf{fma}\left(-2 \cdot \frac{\ell}{Om}, \ell, t\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)}} \]
                            2. lift-fma.f64N/A

                              \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\color{blue}{\left(\left(-2 \cdot \frac{\ell}{Om}\right) \cdot \ell + t\right)} - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
                            3. associate--l+N/A

                              \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \color{blue}{\left(\left(-2 \cdot \frac{\ell}{Om}\right) \cdot \ell + \left(t - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)\right)}} \]
                            4. *-commutativeN/A

                              \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\color{blue}{\ell \cdot \left(-2 \cdot \frac{\ell}{Om}\right)} + \left(t - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)\right)} \]
                            5. lift-*.f64N/A

                              \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\ell \cdot \color{blue}{\left(-2 \cdot \frac{\ell}{Om}\right)} + \left(t - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)\right)} \]
                            6. *-commutativeN/A

                              \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\ell \cdot \color{blue}{\left(\frac{\ell}{Om} \cdot -2\right)} + \left(t - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)\right)} \]
                            7. associate-*r*N/A

                              \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\color{blue}{\left(\ell \cdot \frac{\ell}{Om}\right) \cdot -2} + \left(t - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)\right)} \]
                            8. lift-/.f64N/A

                              \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(\ell \cdot \color{blue}{\frac{\ell}{Om}}\right) \cdot -2 + \left(t - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)\right)} \]
                            9. associate-/l*N/A

                              \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\color{blue}{\frac{\ell \cdot \ell}{Om}} \cdot -2 + \left(t - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)\right)} \]
                            10. lift-*.f64N/A

                              \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\frac{\color{blue}{\ell \cdot \ell}}{Om} \cdot -2 + \left(t - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)\right)} \]
                            11. lift-/.f64N/A

                              \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\color{blue}{\frac{\ell \cdot \ell}{Om}} \cdot -2 + \left(t - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)\right)} \]
                            12. *-commutativeN/A

                              \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\color{blue}{-2 \cdot \frac{\ell \cdot \ell}{Om}} + \left(t - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)\right)} \]
                            13. associate--l+N/A

                              \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \color{blue}{\left(\left(-2 \cdot \frac{\ell \cdot \ell}{Om} + t\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)}} \]
                            14. lift-fma.f64N/A

                              \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\color{blue}{\mathsf{fma}\left(-2, \frac{\ell \cdot \ell}{Om}, t\right)} - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
                            15. lift-*.f64N/A

                              \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\mathsf{fma}\left(-2, \frac{\ell \cdot \ell}{Om}, t\right) - \color{blue}{\left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)}\right)} \]
                          6. Applied rewrites58.7%

                            \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \color{blue}{\mathsf{fma}\left(\frac{\ell}{Om} \cdot \left(-\left(U - U*\right)\right), n \cdot \frac{\ell}{Om}, \mathsf{fma}\left(\frac{\ell}{Om} \cdot \ell, -2, t\right)\right)}} \]
                          7. Step-by-step derivation
                            1. lift-*.f64N/A

                              \[\leadsto \sqrt{\color{blue}{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \mathsf{fma}\left(\frac{\ell}{Om} \cdot \left(-\left(U - U*\right)\right), n \cdot \frac{\ell}{Om}, \mathsf{fma}\left(\frac{\ell}{Om} \cdot \ell, -2, t\right)\right)}} \]
                            2. *-commutativeN/A

                              \[\leadsto \sqrt{\color{blue}{\mathsf{fma}\left(\frac{\ell}{Om} \cdot \left(-\left(U - U*\right)\right), n \cdot \frac{\ell}{Om}, \mathsf{fma}\left(\frac{\ell}{Om} \cdot \ell, -2, t\right)\right) \cdot \left(\left(2 \cdot n\right) \cdot U\right)}} \]
                            3. lower-*.f6458.7

                              \[\leadsto \sqrt{\color{blue}{\mathsf{fma}\left(\frac{\ell}{Om} \cdot \left(-\left(U - U*\right)\right), n \cdot \frac{\ell}{Om}, \mathsf{fma}\left(\frac{\ell}{Om} \cdot \ell, -2, t\right)\right) \cdot \left(\left(2 \cdot n\right) \cdot U\right)}} \]
                          8. Applied rewrites66.7%

                            \[\leadsto \sqrt{\color{blue}{\mathsf{fma}\left(\frac{\ell}{Om}, \mathsf{fma}\left(n \cdot \frac{\ell}{Om}, -\left(U - U*\right), -2 \cdot \ell\right), t\right) \cdot \left(\left(2 \cdot n\right) \cdot U\right)}} \]
                          9. Taylor expanded in U* around inf

                            \[\leadsto \sqrt{\mathsf{fma}\left(\frac{\ell}{Om}, \color{blue}{\frac{U* \cdot \left(\ell \cdot n\right)}{Om}}, t\right) \cdot \left(\left(2 \cdot n\right) \cdot U\right)} \]
                          10. Step-by-step derivation
                            1. lower-/.f64N/A

                              \[\leadsto \sqrt{\mathsf{fma}\left(\frac{\ell}{Om}, \color{blue}{\frac{U* \cdot \left(\ell \cdot n\right)}{Om}}, t\right) \cdot \left(\left(2 \cdot n\right) \cdot U\right)} \]
                            2. lower-*.f64N/A

                              \[\leadsto \sqrt{\mathsf{fma}\left(\frac{\ell}{Om}, \frac{\color{blue}{U* \cdot \left(\ell \cdot n\right)}}{Om}, t\right) \cdot \left(\left(2 \cdot n\right) \cdot U\right)} \]
                            3. lower-*.f6460.6

                              \[\leadsto \sqrt{\mathsf{fma}\left(\frac{\ell}{Om}, \frac{U* \cdot \color{blue}{\left(\ell \cdot n\right)}}{Om}, t\right) \cdot \left(\left(2 \cdot n\right) \cdot U\right)} \]
                          11. Applied rewrites60.6%

                            \[\leadsto \sqrt{\mathsf{fma}\left(\frac{\ell}{Om}, \color{blue}{\frac{U* \cdot \left(\ell \cdot n\right)}{Om}}, t\right) \cdot \left(\left(2 \cdot n\right) \cdot U\right)} \]

                          if -1.1599999999999999e-92 < n < 0.024500000000000001

                          1. Initial program 51.0%

                            \[\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)} \]
                          2. Add Preprocessing
                          3. Taylor expanded in n around 0

                            \[\leadsto \color{blue}{\sqrt{U \cdot \left(n \cdot \left(t - 2 \cdot \frac{{\ell}^{2}}{Om}\right)\right)} \cdot \sqrt{2}} \]
                          4. Step-by-step derivation
                            1. lower-*.f64N/A

                              \[\leadsto \color{blue}{\sqrt{U \cdot \left(n \cdot \left(t - 2 \cdot \frac{{\ell}^{2}}{Om}\right)\right)} \cdot \sqrt{2}} \]
                            2. lower-sqrt.f64N/A

                              \[\leadsto \color{blue}{\sqrt{U \cdot \left(n \cdot \left(t - 2 \cdot \frac{{\ell}^{2}}{Om}\right)\right)}} \cdot \sqrt{2} \]
                            3. *-commutativeN/A

                              \[\leadsto \sqrt{\color{blue}{\left(n \cdot \left(t - 2 \cdot \frac{{\ell}^{2}}{Om}\right)\right) \cdot U}} \cdot \sqrt{2} \]
                            4. lower-*.f64N/A

                              \[\leadsto \sqrt{\color{blue}{\left(n \cdot \left(t - 2 \cdot \frac{{\ell}^{2}}{Om}\right)\right) \cdot U}} \cdot \sqrt{2} \]
                            5. *-commutativeN/A

                              \[\leadsto \sqrt{\color{blue}{\left(\left(t - 2 \cdot \frac{{\ell}^{2}}{Om}\right) \cdot n\right)} \cdot U} \cdot \sqrt{2} \]
                            6. lower-*.f64N/A

                              \[\leadsto \sqrt{\color{blue}{\left(\left(t - 2 \cdot \frac{{\ell}^{2}}{Om}\right) \cdot n\right)} \cdot U} \cdot \sqrt{2} \]
                            7. cancel-sign-sub-invN/A

                              \[\leadsto \sqrt{\left(\color{blue}{\left(t + \left(\mathsf{neg}\left(2\right)\right) \cdot \frac{{\ell}^{2}}{Om}\right)} \cdot n\right) \cdot U} \cdot \sqrt{2} \]
                            8. metadata-evalN/A

                              \[\leadsto \sqrt{\left(\left(t + \color{blue}{-2} \cdot \frac{{\ell}^{2}}{Om}\right) \cdot n\right) \cdot U} \cdot \sqrt{2} \]
                            9. +-commutativeN/A

                              \[\leadsto \sqrt{\left(\color{blue}{\left(-2 \cdot \frac{{\ell}^{2}}{Om} + t\right)} \cdot n\right) \cdot U} \cdot \sqrt{2} \]
                            10. lower-fma.f64N/A

                              \[\leadsto \sqrt{\left(\color{blue}{\mathsf{fma}\left(-2, \frac{{\ell}^{2}}{Om}, t\right)} \cdot n\right) \cdot U} \cdot \sqrt{2} \]
                            11. lower-/.f64N/A

                              \[\leadsto \sqrt{\left(\mathsf{fma}\left(-2, \color{blue}{\frac{{\ell}^{2}}{Om}}, t\right) \cdot n\right) \cdot U} \cdot \sqrt{2} \]
                            12. unpow2N/A

                              \[\leadsto \sqrt{\left(\mathsf{fma}\left(-2, \frac{\color{blue}{\ell \cdot \ell}}{Om}, t\right) \cdot n\right) \cdot U} \cdot \sqrt{2} \]
                            13. lower-*.f64N/A

                              \[\leadsto \sqrt{\left(\mathsf{fma}\left(-2, \frac{\color{blue}{\ell \cdot \ell}}{Om}, t\right) \cdot n\right) \cdot U} \cdot \sqrt{2} \]
                            14. lower-sqrt.f6457.5

                              \[\leadsto \sqrt{\left(\mathsf{fma}\left(-2, \frac{\ell \cdot \ell}{Om}, t\right) \cdot n\right) \cdot U} \cdot \color{blue}{\sqrt{2}} \]
                          5. Applied rewrites57.5%

                            \[\leadsto \color{blue}{\sqrt{\left(\mathsf{fma}\left(-2, \frac{\ell \cdot \ell}{Om}, t\right) \cdot n\right) \cdot U} \cdot \sqrt{2}} \]
                          6. Step-by-step derivation
                            1. Applied rewrites68.0%

                              \[\leadsto \color{blue}{\sqrt{\left(\left(\mathsf{fma}\left(\frac{\ell}{Om} \cdot \ell, -2, t\right) \cdot n\right) \cdot U\right) \cdot 2}} \]
                          7. Recombined 2 regimes into one program.
                          8. Final simplification63.6%

                            \[\leadsto \begin{array}{l} \mathbf{if}\;n \leq -1.16 \cdot 10^{-92}:\\ \;\;\;\;\sqrt{\mathsf{fma}\left(\frac{\ell}{Om}, \frac{\left(\ell \cdot n\right) \cdot U*}{Om}, t\right) \cdot \left(\left(2 \cdot n\right) \cdot U\right)}\\ \mathbf{elif}\;n \leq 0.0245:\\ \;\;\;\;\sqrt{\left(\left(\mathsf{fma}\left(\frac{\ell}{Om} \cdot \ell, -2, t\right) \cdot n\right) \cdot U\right) \cdot 2}\\ \mathbf{else}:\\ \;\;\;\;\sqrt{\mathsf{fma}\left(\frac{\ell}{Om}, \frac{\left(\ell \cdot n\right) \cdot U*}{Om}, t\right) \cdot \left(\left(2 \cdot n\right) \cdot U\right)}\\ \end{array} \]
                          9. Add Preprocessing

                          Alternative 12: 52.1% accurate, 2.8× speedup?

                          \[\begin{array}{l} \\ \begin{array}{l} t_1 := \mathsf{fma}\left(\frac{\ell}{Om} \cdot \ell, -2, t\right) \cdot n\\ \mathbf{if}\;U \leq -4.1 \cdot 10^{-297}:\\ \;\;\;\;\sqrt{\left(t\_1 \cdot U\right) \cdot 2}\\ \mathbf{else}:\\ \;\;\;\;\sqrt{2 \cdot U} \cdot \sqrt{t\_1}\\ \end{array} \end{array} \]
                          (FPCore (n U t l Om U*)
                           :precision binary64
                           (let* ((t_1 (* (fma (* (/ l Om) l) -2.0 t) n)))
                             (if (<= U -4.1e-297)
                               (sqrt (* (* t_1 U) 2.0))
                               (* (sqrt (* 2.0 U)) (sqrt t_1)))))
                          double code(double n, double U, double t, double l, double Om, double U_42_) {
                          	double t_1 = fma(((l / Om) * l), -2.0, t) * n;
                          	double tmp;
                          	if (U <= -4.1e-297) {
                          		tmp = sqrt(((t_1 * U) * 2.0));
                          	} else {
                          		tmp = sqrt((2.0 * U)) * sqrt(t_1);
                          	}
                          	return tmp;
                          }
                          
                          function code(n, U, t, l, Om, U_42_)
                          	t_1 = Float64(fma(Float64(Float64(l / Om) * l), -2.0, t) * n)
                          	tmp = 0.0
                          	if (U <= -4.1e-297)
                          		tmp = sqrt(Float64(Float64(t_1 * U) * 2.0));
                          	else
                          		tmp = Float64(sqrt(Float64(2.0 * U)) * sqrt(t_1));
                          	end
                          	return tmp
                          end
                          
                          code[n_, U_, t_, l_, Om_, U$42$_] := Block[{t$95$1 = N[(N[(N[(N[(l / Om), $MachinePrecision] * l), $MachinePrecision] * -2.0 + t), $MachinePrecision] * n), $MachinePrecision]}, If[LessEqual[U, -4.1e-297], N[Sqrt[N[(N[(t$95$1 * U), $MachinePrecision] * 2.0), $MachinePrecision]], $MachinePrecision], N[(N[Sqrt[N[(2.0 * U), $MachinePrecision]], $MachinePrecision] * N[Sqrt[t$95$1], $MachinePrecision]), $MachinePrecision]]]
                          
                          \begin{array}{l}
                          
                          \\
                          \begin{array}{l}
                          t_1 := \mathsf{fma}\left(\frac{\ell}{Om} \cdot \ell, -2, t\right) \cdot n\\
                          \mathbf{if}\;U \leq -4.1 \cdot 10^{-297}:\\
                          \;\;\;\;\sqrt{\left(t\_1 \cdot U\right) \cdot 2}\\
                          
                          \mathbf{else}:\\
                          \;\;\;\;\sqrt{2 \cdot U} \cdot \sqrt{t\_1}\\
                          
                          
                          \end{array}
                          \end{array}
                          
                          Derivation
                          1. Split input into 2 regimes
                          2. if U < -4.1000000000000002e-297

                            1. Initial program 56.6%

                              \[\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)} \]
                            2. Add Preprocessing
                            3. Taylor expanded in n around 0

                              \[\leadsto \color{blue}{\sqrt{U \cdot \left(n \cdot \left(t - 2 \cdot \frac{{\ell}^{2}}{Om}\right)\right)} \cdot \sqrt{2}} \]
                            4. Step-by-step derivation
                              1. lower-*.f64N/A

                                \[\leadsto \color{blue}{\sqrt{U \cdot \left(n \cdot \left(t - 2 \cdot \frac{{\ell}^{2}}{Om}\right)\right)} \cdot \sqrt{2}} \]
                              2. lower-sqrt.f64N/A

                                \[\leadsto \color{blue}{\sqrt{U \cdot \left(n \cdot \left(t - 2 \cdot \frac{{\ell}^{2}}{Om}\right)\right)}} \cdot \sqrt{2} \]
                              3. *-commutativeN/A

                                \[\leadsto \sqrt{\color{blue}{\left(n \cdot \left(t - 2 \cdot \frac{{\ell}^{2}}{Om}\right)\right) \cdot U}} \cdot \sqrt{2} \]
                              4. lower-*.f64N/A

                                \[\leadsto \sqrt{\color{blue}{\left(n \cdot \left(t - 2 \cdot \frac{{\ell}^{2}}{Om}\right)\right) \cdot U}} \cdot \sqrt{2} \]
                              5. *-commutativeN/A

                                \[\leadsto \sqrt{\color{blue}{\left(\left(t - 2 \cdot \frac{{\ell}^{2}}{Om}\right) \cdot n\right)} \cdot U} \cdot \sqrt{2} \]
                              6. lower-*.f64N/A

                                \[\leadsto \sqrt{\color{blue}{\left(\left(t - 2 \cdot \frac{{\ell}^{2}}{Om}\right) \cdot n\right)} \cdot U} \cdot \sqrt{2} \]
                              7. cancel-sign-sub-invN/A

                                \[\leadsto \sqrt{\left(\color{blue}{\left(t + \left(\mathsf{neg}\left(2\right)\right) \cdot \frac{{\ell}^{2}}{Om}\right)} \cdot n\right) \cdot U} \cdot \sqrt{2} \]
                              8. metadata-evalN/A

                                \[\leadsto \sqrt{\left(\left(t + \color{blue}{-2} \cdot \frac{{\ell}^{2}}{Om}\right) \cdot n\right) \cdot U} \cdot \sqrt{2} \]
                              9. +-commutativeN/A

                                \[\leadsto \sqrt{\left(\color{blue}{\left(-2 \cdot \frac{{\ell}^{2}}{Om} + t\right)} \cdot n\right) \cdot U} \cdot \sqrt{2} \]
                              10. lower-fma.f64N/A

                                \[\leadsto \sqrt{\left(\color{blue}{\mathsf{fma}\left(-2, \frac{{\ell}^{2}}{Om}, t\right)} \cdot n\right) \cdot U} \cdot \sqrt{2} \]
                              11. lower-/.f64N/A

                                \[\leadsto \sqrt{\left(\mathsf{fma}\left(-2, \color{blue}{\frac{{\ell}^{2}}{Om}}, t\right) \cdot n\right) \cdot U} \cdot \sqrt{2} \]
                              12. unpow2N/A

                                \[\leadsto \sqrt{\left(\mathsf{fma}\left(-2, \frac{\color{blue}{\ell \cdot \ell}}{Om}, t\right) \cdot n\right) \cdot U} \cdot \sqrt{2} \]
                              13. lower-*.f64N/A

                                \[\leadsto \sqrt{\left(\mathsf{fma}\left(-2, \frac{\color{blue}{\ell \cdot \ell}}{Om}, t\right) \cdot n\right) \cdot U} \cdot \sqrt{2} \]
                              14. lower-sqrt.f6452.5

                                \[\leadsto \sqrt{\left(\mathsf{fma}\left(-2, \frac{\ell \cdot \ell}{Om}, t\right) \cdot n\right) \cdot U} \cdot \color{blue}{\sqrt{2}} \]
                            5. Applied rewrites52.5%

                              \[\leadsto \color{blue}{\sqrt{\left(\mathsf{fma}\left(-2, \frac{\ell \cdot \ell}{Om}, t\right) \cdot n\right) \cdot U} \cdot \sqrt{2}} \]
                            6. Step-by-step derivation
                              1. Applied rewrites56.6%

                                \[\leadsto \color{blue}{\sqrt{\left(\left(\mathsf{fma}\left(\frac{\ell}{Om} \cdot \ell, -2, t\right) \cdot n\right) \cdot U\right) \cdot 2}} \]

                              if -4.1000000000000002e-297 < U

                              1. Initial program 50.5%

                                \[\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)} \]
                              2. Add Preprocessing
                              3. Taylor expanded in n around 0

                                \[\leadsto \color{blue}{\sqrt{U \cdot \left(n \cdot \left(t - 2 \cdot \frac{{\ell}^{2}}{Om}\right)\right)} \cdot \sqrt{2}} \]
                              4. Step-by-step derivation
                                1. lower-*.f64N/A

                                  \[\leadsto \color{blue}{\sqrt{U \cdot \left(n \cdot \left(t - 2 \cdot \frac{{\ell}^{2}}{Om}\right)\right)} \cdot \sqrt{2}} \]
                                2. lower-sqrt.f64N/A

                                  \[\leadsto \color{blue}{\sqrt{U \cdot \left(n \cdot \left(t - 2 \cdot \frac{{\ell}^{2}}{Om}\right)\right)}} \cdot \sqrt{2} \]
                                3. *-commutativeN/A

                                  \[\leadsto \sqrt{\color{blue}{\left(n \cdot \left(t - 2 \cdot \frac{{\ell}^{2}}{Om}\right)\right) \cdot U}} \cdot \sqrt{2} \]
                                4. lower-*.f64N/A

                                  \[\leadsto \sqrt{\color{blue}{\left(n \cdot \left(t - 2 \cdot \frac{{\ell}^{2}}{Om}\right)\right) \cdot U}} \cdot \sqrt{2} \]
                                5. *-commutativeN/A

                                  \[\leadsto \sqrt{\color{blue}{\left(\left(t - 2 \cdot \frac{{\ell}^{2}}{Om}\right) \cdot n\right)} \cdot U} \cdot \sqrt{2} \]
                                6. lower-*.f64N/A

                                  \[\leadsto \sqrt{\color{blue}{\left(\left(t - 2 \cdot \frac{{\ell}^{2}}{Om}\right) \cdot n\right)} \cdot U} \cdot \sqrt{2} \]
                                7. cancel-sign-sub-invN/A

                                  \[\leadsto \sqrt{\left(\color{blue}{\left(t + \left(\mathsf{neg}\left(2\right)\right) \cdot \frac{{\ell}^{2}}{Om}\right)} \cdot n\right) \cdot U} \cdot \sqrt{2} \]
                                8. metadata-evalN/A

                                  \[\leadsto \sqrt{\left(\left(t + \color{blue}{-2} \cdot \frac{{\ell}^{2}}{Om}\right) \cdot n\right) \cdot U} \cdot \sqrt{2} \]
                                9. +-commutativeN/A

                                  \[\leadsto \sqrt{\left(\color{blue}{\left(-2 \cdot \frac{{\ell}^{2}}{Om} + t\right)} \cdot n\right) \cdot U} \cdot \sqrt{2} \]
                                10. lower-fma.f64N/A

                                  \[\leadsto \sqrt{\left(\color{blue}{\mathsf{fma}\left(-2, \frac{{\ell}^{2}}{Om}, t\right)} \cdot n\right) \cdot U} \cdot \sqrt{2} \]
                                11. lower-/.f64N/A

                                  \[\leadsto \sqrt{\left(\mathsf{fma}\left(-2, \color{blue}{\frac{{\ell}^{2}}{Om}}, t\right) \cdot n\right) \cdot U} \cdot \sqrt{2} \]
                                12. unpow2N/A

                                  \[\leadsto \sqrt{\left(\mathsf{fma}\left(-2, \frac{\color{blue}{\ell \cdot \ell}}{Om}, t\right) \cdot n\right) \cdot U} \cdot \sqrt{2} \]
                                13. lower-*.f64N/A

                                  \[\leadsto \sqrt{\left(\mathsf{fma}\left(-2, \frac{\color{blue}{\ell \cdot \ell}}{Om}, t\right) \cdot n\right) \cdot U} \cdot \sqrt{2} \]
                                14. lower-sqrt.f6447.1

                                  \[\leadsto \sqrt{\left(\mathsf{fma}\left(-2, \frac{\ell \cdot \ell}{Om}, t\right) \cdot n\right) \cdot U} \cdot \color{blue}{\sqrt{2}} \]
                              5. Applied rewrites47.1%

                                \[\leadsto \color{blue}{\sqrt{\left(\mathsf{fma}\left(-2, \frac{\ell \cdot \ell}{Om}, t\right) \cdot n\right) \cdot U} \cdot \sqrt{2}} \]
                              6. Step-by-step derivation
                                1. Applied rewrites64.0%

                                  \[\leadsto \sqrt{\mathsf{fma}\left(\frac{\ell}{Om} \cdot \ell, -2, t\right) \cdot n} \cdot \color{blue}{\sqrt{U \cdot 2}} \]
                              7. Recombined 2 regimes into one program.
                              8. Final simplification60.3%

                                \[\leadsto \begin{array}{l} \mathbf{if}\;U \leq -4.1 \cdot 10^{-297}:\\ \;\;\;\;\sqrt{\left(\left(\mathsf{fma}\left(\frac{\ell}{Om} \cdot \ell, -2, t\right) \cdot n\right) \cdot U\right) \cdot 2}\\ \mathbf{else}:\\ \;\;\;\;\sqrt{2 \cdot U} \cdot \sqrt{\mathsf{fma}\left(\frac{\ell}{Om} \cdot \ell, -2, t\right) \cdot n}\\ \end{array} \]
                              9. Add Preprocessing

                              Alternative 13: 40.5% accurate, 3.4× speedup?

                              \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;\ell \leq 5.6 \cdot 10^{+100}:\\ \;\;\;\;\sqrt{\left(\left(t \cdot n\right) \cdot U\right) \cdot 2}\\ \mathbf{else}:\\ \;\;\;\;\sqrt{\left(\left(\left(\frac{\ell}{Om} \cdot n\right) \cdot \ell\right) \cdot \left(-2 \cdot U\right)\right) \cdot 2}\\ \end{array} \end{array} \]
                              (FPCore (n U t l Om U*)
                               :precision binary64
                               (if (<= l 5.6e+100)
                                 (sqrt (* (* (* t n) U) 2.0))
                                 (sqrt (* (* (* (* (/ l Om) n) l) (* -2.0 U)) 2.0))))
                              double code(double n, double U, double t, double l, double Om, double U_42_) {
                              	double tmp;
                              	if (l <= 5.6e+100) {
                              		tmp = sqrt((((t * n) * U) * 2.0));
                              	} else {
                              		tmp = sqrt((((((l / Om) * n) * l) * (-2.0 * U)) * 2.0));
                              	}
                              	return tmp;
                              }
                              
                              real(8) function code(n, u, t, l, om, u_42)
                                  real(8), intent (in) :: n
                                  real(8), intent (in) :: u
                                  real(8), intent (in) :: t
                                  real(8), intent (in) :: l
                                  real(8), intent (in) :: om
                                  real(8), intent (in) :: u_42
                                  real(8) :: tmp
                                  if (l <= 5.6d+100) then
                                      tmp = sqrt((((t * n) * u) * 2.0d0))
                                  else
                                      tmp = sqrt((((((l / om) * n) * l) * ((-2.0d0) * u)) * 2.0d0))
                                  end if
                                  code = tmp
                              end function
                              
                              public static double code(double n, double U, double t, double l, double Om, double U_42_) {
                              	double tmp;
                              	if (l <= 5.6e+100) {
                              		tmp = Math.sqrt((((t * n) * U) * 2.0));
                              	} else {
                              		tmp = Math.sqrt((((((l / Om) * n) * l) * (-2.0 * U)) * 2.0));
                              	}
                              	return tmp;
                              }
                              
                              def code(n, U, t, l, Om, U_42_):
                              	tmp = 0
                              	if l <= 5.6e+100:
                              		tmp = math.sqrt((((t * n) * U) * 2.0))
                              	else:
                              		tmp = math.sqrt((((((l / Om) * n) * l) * (-2.0 * U)) * 2.0))
                              	return tmp
                              
                              function code(n, U, t, l, Om, U_42_)
                              	tmp = 0.0
                              	if (l <= 5.6e+100)
                              		tmp = sqrt(Float64(Float64(Float64(t * n) * U) * 2.0));
                              	else
                              		tmp = sqrt(Float64(Float64(Float64(Float64(Float64(l / Om) * n) * l) * Float64(-2.0 * U)) * 2.0));
                              	end
                              	return tmp
                              end
                              
                              function tmp_2 = code(n, U, t, l, Om, U_42_)
                              	tmp = 0.0;
                              	if (l <= 5.6e+100)
                              		tmp = sqrt((((t * n) * U) * 2.0));
                              	else
                              		tmp = sqrt((((((l / Om) * n) * l) * (-2.0 * U)) * 2.0));
                              	end
                              	tmp_2 = tmp;
                              end
                              
                              code[n_, U_, t_, l_, Om_, U$42$_] := If[LessEqual[l, 5.6e+100], N[Sqrt[N[(N[(N[(t * n), $MachinePrecision] * U), $MachinePrecision] * 2.0), $MachinePrecision]], $MachinePrecision], N[Sqrt[N[(N[(N[(N[(N[(l / Om), $MachinePrecision] * n), $MachinePrecision] * l), $MachinePrecision] * N[(-2.0 * U), $MachinePrecision]), $MachinePrecision] * 2.0), $MachinePrecision]], $MachinePrecision]]
                              
                              \begin{array}{l}
                              
                              \\
                              \begin{array}{l}
                              \mathbf{if}\;\ell \leq 5.6 \cdot 10^{+100}:\\
                              \;\;\;\;\sqrt{\left(\left(t \cdot n\right) \cdot U\right) \cdot 2}\\
                              
                              \mathbf{else}:\\
                              \;\;\;\;\sqrt{\left(\left(\left(\frac{\ell}{Om} \cdot n\right) \cdot \ell\right) \cdot \left(-2 \cdot U\right)\right) \cdot 2}\\
                              
                              
                              \end{array}
                              \end{array}
                              
                              Derivation
                              1. Split input into 2 regimes
                              2. if l < 5.5999999999999996e100

                                1. Initial program 59.0%

                                  \[\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)} \]
                                2. Add Preprocessing
                                3. Taylor expanded in t around inf

                                  \[\leadsto \sqrt{\color{blue}{2 \cdot \left(U \cdot \left(n \cdot t\right)\right)}} \]
                                4. Step-by-step derivation
                                  1. *-commutativeN/A

                                    \[\leadsto \sqrt{\color{blue}{\left(U \cdot \left(n \cdot t\right)\right) \cdot 2}} \]
                                  2. lower-*.f64N/A

                                    \[\leadsto \sqrt{\color{blue}{\left(U \cdot \left(n \cdot t\right)\right) \cdot 2}} \]
                                  3. *-commutativeN/A

                                    \[\leadsto \sqrt{\color{blue}{\left(\left(n \cdot t\right) \cdot U\right)} \cdot 2} \]
                                  4. lower-*.f64N/A

                                    \[\leadsto \sqrt{\color{blue}{\left(\left(n \cdot t\right) \cdot U\right)} \cdot 2} \]
                                  5. lower-*.f6445.3

                                    \[\leadsto \sqrt{\left(\color{blue}{\left(n \cdot t\right)} \cdot U\right) \cdot 2} \]
                                5. Applied rewrites45.3%

                                  \[\leadsto \sqrt{\color{blue}{\left(\left(n \cdot t\right) \cdot U\right) \cdot 2}} \]

                                if 5.5999999999999996e100 < l

                                1. Initial program 25.4%

                                  \[\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)} \]
                                2. Add Preprocessing
                                3. Taylor expanded in n around 0

                                  \[\leadsto \color{blue}{\sqrt{U \cdot \left(n \cdot \left(t - 2 \cdot \frac{{\ell}^{2}}{Om}\right)\right)} \cdot \sqrt{2}} \]
                                4. Step-by-step derivation
                                  1. lower-*.f64N/A

                                    \[\leadsto \color{blue}{\sqrt{U \cdot \left(n \cdot \left(t - 2 \cdot \frac{{\ell}^{2}}{Om}\right)\right)} \cdot \sqrt{2}} \]
                                  2. lower-sqrt.f64N/A

                                    \[\leadsto \color{blue}{\sqrt{U \cdot \left(n \cdot \left(t - 2 \cdot \frac{{\ell}^{2}}{Om}\right)\right)}} \cdot \sqrt{2} \]
                                  3. *-commutativeN/A

                                    \[\leadsto \sqrt{\color{blue}{\left(n \cdot \left(t - 2 \cdot \frac{{\ell}^{2}}{Om}\right)\right) \cdot U}} \cdot \sqrt{2} \]
                                  4. lower-*.f64N/A

                                    \[\leadsto \sqrt{\color{blue}{\left(n \cdot \left(t - 2 \cdot \frac{{\ell}^{2}}{Om}\right)\right) \cdot U}} \cdot \sqrt{2} \]
                                  5. *-commutativeN/A

                                    \[\leadsto \sqrt{\color{blue}{\left(\left(t - 2 \cdot \frac{{\ell}^{2}}{Om}\right) \cdot n\right)} \cdot U} \cdot \sqrt{2} \]
                                  6. lower-*.f64N/A

                                    \[\leadsto \sqrt{\color{blue}{\left(\left(t - 2 \cdot \frac{{\ell}^{2}}{Om}\right) \cdot n\right)} \cdot U} \cdot \sqrt{2} \]
                                  7. cancel-sign-sub-invN/A

                                    \[\leadsto \sqrt{\left(\color{blue}{\left(t + \left(\mathsf{neg}\left(2\right)\right) \cdot \frac{{\ell}^{2}}{Om}\right)} \cdot n\right) \cdot U} \cdot \sqrt{2} \]
                                  8. metadata-evalN/A

                                    \[\leadsto \sqrt{\left(\left(t + \color{blue}{-2} \cdot \frac{{\ell}^{2}}{Om}\right) \cdot n\right) \cdot U} \cdot \sqrt{2} \]
                                  9. +-commutativeN/A

                                    \[\leadsto \sqrt{\left(\color{blue}{\left(-2 \cdot \frac{{\ell}^{2}}{Om} + t\right)} \cdot n\right) \cdot U} \cdot \sqrt{2} \]
                                  10. lower-fma.f64N/A

                                    \[\leadsto \sqrt{\left(\color{blue}{\mathsf{fma}\left(-2, \frac{{\ell}^{2}}{Om}, t\right)} \cdot n\right) \cdot U} \cdot \sqrt{2} \]
                                  11. lower-/.f64N/A

                                    \[\leadsto \sqrt{\left(\mathsf{fma}\left(-2, \color{blue}{\frac{{\ell}^{2}}{Om}}, t\right) \cdot n\right) \cdot U} \cdot \sqrt{2} \]
                                  12. unpow2N/A

                                    \[\leadsto \sqrt{\left(\mathsf{fma}\left(-2, \frac{\color{blue}{\ell \cdot \ell}}{Om}, t\right) \cdot n\right) \cdot U} \cdot \sqrt{2} \]
                                  13. lower-*.f64N/A

                                    \[\leadsto \sqrt{\left(\mathsf{fma}\left(-2, \frac{\color{blue}{\ell \cdot \ell}}{Om}, t\right) \cdot n\right) \cdot U} \cdot \sqrt{2} \]
                                  14. lower-sqrt.f6430.5

                                    \[\leadsto \sqrt{\left(\mathsf{fma}\left(-2, \frac{\ell \cdot \ell}{Om}, t\right) \cdot n\right) \cdot U} \cdot \color{blue}{\sqrt{2}} \]
                                5. Applied rewrites30.5%

                                  \[\leadsto \color{blue}{\sqrt{\left(\mathsf{fma}\left(-2, \frac{\ell \cdot \ell}{Om}, t\right) \cdot n\right) \cdot U} \cdot \sqrt{2}} \]
                                6. Taylor expanded in t around 0

                                  \[\leadsto \sqrt{-2 \cdot \frac{U \cdot \left({\ell}^{2} \cdot n\right)}{Om}} \cdot \sqrt{2} \]
                                7. Step-by-step derivation
                                  1. Applied rewrites23.2%

                                    \[\leadsto \sqrt{-2 \cdot \frac{U \cdot \left(\left(\ell \cdot \ell\right) \cdot n\right)}{Om}} \cdot \sqrt{2} \]
                                  2. Step-by-step derivation
                                    1. Applied rewrites37.1%

                                      \[\leadsto \sqrt{-2 \cdot \frac{U \cdot \left(\left(n \cdot \ell\right) \cdot \ell\right)}{Om}} \cdot \sqrt{2} \]
                                    2. Step-by-step derivation
                                      1. Applied rewrites46.5%

                                        \[\leadsto \sqrt{\left(\left(-2 \cdot U\right) \cdot \left(\ell \cdot \left(\frac{\ell}{Om} \cdot n\right)\right)\right) \cdot 2} \]
                                    3. Recombined 2 regimes into one program.
                                    4. Final simplification45.5%

                                      \[\leadsto \begin{array}{l} \mathbf{if}\;\ell \leq 5.6 \cdot 10^{+100}:\\ \;\;\;\;\sqrt{\left(\left(t \cdot n\right) \cdot U\right) \cdot 2}\\ \mathbf{else}:\\ \;\;\;\;\sqrt{\left(\left(\left(\frac{\ell}{Om} \cdot n\right) \cdot \ell\right) \cdot \left(-2 \cdot U\right)\right) \cdot 2}\\ \end{array} \]
                                    5. Add Preprocessing

                                    Alternative 14: 48.1% accurate, 3.7× speedup?

                                    \[\begin{array}{l} \\ \sqrt{\left(\left(\mathsf{fma}\left(\frac{\ell}{Om} \cdot \ell, -2, t\right) \cdot n\right) \cdot U\right) \cdot 2} \end{array} \]
                                    (FPCore (n U t l Om U*)
                                     :precision binary64
                                     (sqrt (* (* (* (fma (* (/ l Om) l) -2.0 t) n) U) 2.0)))
                                    double code(double n, double U, double t, double l, double Om, double U_42_) {
                                    	return sqrt((((fma(((l / Om) * l), -2.0, t) * n) * U) * 2.0));
                                    }
                                    
                                    function code(n, U, t, l, Om, U_42_)
                                    	return sqrt(Float64(Float64(Float64(fma(Float64(Float64(l / Om) * l), -2.0, t) * n) * U) * 2.0))
                                    end
                                    
                                    code[n_, U_, t_, l_, Om_, U$42$_] := N[Sqrt[N[(N[(N[(N[(N[(N[(l / Om), $MachinePrecision] * l), $MachinePrecision] * -2.0 + t), $MachinePrecision] * n), $MachinePrecision] * U), $MachinePrecision] * 2.0), $MachinePrecision]], $MachinePrecision]
                                    
                                    \begin{array}{l}
                                    
                                    \\
                                    \sqrt{\left(\left(\mathsf{fma}\left(\frac{\ell}{Om} \cdot \ell, -2, t\right) \cdot n\right) \cdot U\right) \cdot 2}
                                    \end{array}
                                    
                                    Derivation
                                    1. Initial program 53.5%

                                      \[\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)} \]
                                    2. Add Preprocessing
                                    3. Taylor expanded in n around 0

                                      \[\leadsto \color{blue}{\sqrt{U \cdot \left(n \cdot \left(t - 2 \cdot \frac{{\ell}^{2}}{Om}\right)\right)} \cdot \sqrt{2}} \]
                                    4. Step-by-step derivation
                                      1. lower-*.f64N/A

                                        \[\leadsto \color{blue}{\sqrt{U \cdot \left(n \cdot \left(t - 2 \cdot \frac{{\ell}^{2}}{Om}\right)\right)} \cdot \sqrt{2}} \]
                                      2. lower-sqrt.f64N/A

                                        \[\leadsto \color{blue}{\sqrt{U \cdot \left(n \cdot \left(t - 2 \cdot \frac{{\ell}^{2}}{Om}\right)\right)}} \cdot \sqrt{2} \]
                                      3. *-commutativeN/A

                                        \[\leadsto \sqrt{\color{blue}{\left(n \cdot \left(t - 2 \cdot \frac{{\ell}^{2}}{Om}\right)\right) \cdot U}} \cdot \sqrt{2} \]
                                      4. lower-*.f64N/A

                                        \[\leadsto \sqrt{\color{blue}{\left(n \cdot \left(t - 2 \cdot \frac{{\ell}^{2}}{Om}\right)\right) \cdot U}} \cdot \sqrt{2} \]
                                      5. *-commutativeN/A

                                        \[\leadsto \sqrt{\color{blue}{\left(\left(t - 2 \cdot \frac{{\ell}^{2}}{Om}\right) \cdot n\right)} \cdot U} \cdot \sqrt{2} \]
                                      6. lower-*.f64N/A

                                        \[\leadsto \sqrt{\color{blue}{\left(\left(t - 2 \cdot \frac{{\ell}^{2}}{Om}\right) \cdot n\right)} \cdot U} \cdot \sqrt{2} \]
                                      7. cancel-sign-sub-invN/A

                                        \[\leadsto \sqrt{\left(\color{blue}{\left(t + \left(\mathsf{neg}\left(2\right)\right) \cdot \frac{{\ell}^{2}}{Om}\right)} \cdot n\right) \cdot U} \cdot \sqrt{2} \]
                                      8. metadata-evalN/A

                                        \[\leadsto \sqrt{\left(\left(t + \color{blue}{-2} \cdot \frac{{\ell}^{2}}{Om}\right) \cdot n\right) \cdot U} \cdot \sqrt{2} \]
                                      9. +-commutativeN/A

                                        \[\leadsto \sqrt{\left(\color{blue}{\left(-2 \cdot \frac{{\ell}^{2}}{Om} + t\right)} \cdot n\right) \cdot U} \cdot \sqrt{2} \]
                                      10. lower-fma.f64N/A

                                        \[\leadsto \sqrt{\left(\color{blue}{\mathsf{fma}\left(-2, \frac{{\ell}^{2}}{Om}, t\right)} \cdot n\right) \cdot U} \cdot \sqrt{2} \]
                                      11. lower-/.f64N/A

                                        \[\leadsto \sqrt{\left(\mathsf{fma}\left(-2, \color{blue}{\frac{{\ell}^{2}}{Om}}, t\right) \cdot n\right) \cdot U} \cdot \sqrt{2} \]
                                      12. unpow2N/A

                                        \[\leadsto \sqrt{\left(\mathsf{fma}\left(-2, \frac{\color{blue}{\ell \cdot \ell}}{Om}, t\right) \cdot n\right) \cdot U} \cdot \sqrt{2} \]
                                      13. lower-*.f64N/A

                                        \[\leadsto \sqrt{\left(\mathsf{fma}\left(-2, \frac{\color{blue}{\ell \cdot \ell}}{Om}, t\right) \cdot n\right) \cdot U} \cdot \sqrt{2} \]
                                      14. lower-sqrt.f6449.8

                                        \[\leadsto \sqrt{\left(\mathsf{fma}\left(-2, \frac{\ell \cdot \ell}{Om}, t\right) \cdot n\right) \cdot U} \cdot \color{blue}{\sqrt{2}} \]
                                    5. Applied rewrites49.8%

                                      \[\leadsto \color{blue}{\sqrt{\left(\mathsf{fma}\left(-2, \frac{\ell \cdot \ell}{Om}, t\right) \cdot n\right) \cdot U} \cdot \sqrt{2}} \]
                                    6. Step-by-step derivation
                                      1. Applied rewrites54.6%

                                        \[\leadsto \color{blue}{\sqrt{\left(\left(\mathsf{fma}\left(\frac{\ell}{Om} \cdot \ell, -2, t\right) \cdot n\right) \cdot U\right) \cdot 2}} \]
                                      2. Add Preprocessing

                                      Alternative 15: 37.7% accurate, 4.2× speedup?

                                      \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;n \leq 10^{-74}:\\ \;\;\;\;\sqrt{\left(\left(t \cdot n\right) \cdot U\right) \cdot 2}\\ \mathbf{else}:\\ \;\;\;\;\sqrt{\left(t \cdot U\right) \cdot 2} \cdot \sqrt{n}\\ \end{array} \end{array} \]
                                      (FPCore (n U t l Om U*)
                                       :precision binary64
                                       (if (<= n 1e-74)
                                         (sqrt (* (* (* t n) U) 2.0))
                                         (* (sqrt (* (* t U) 2.0)) (sqrt n))))
                                      double code(double n, double U, double t, double l, double Om, double U_42_) {
                                      	double tmp;
                                      	if (n <= 1e-74) {
                                      		tmp = sqrt((((t * n) * U) * 2.0));
                                      	} else {
                                      		tmp = sqrt(((t * U) * 2.0)) * sqrt(n);
                                      	}
                                      	return tmp;
                                      }
                                      
                                      real(8) function code(n, u, t, l, om, u_42)
                                          real(8), intent (in) :: n
                                          real(8), intent (in) :: u
                                          real(8), intent (in) :: t
                                          real(8), intent (in) :: l
                                          real(8), intent (in) :: om
                                          real(8), intent (in) :: u_42
                                          real(8) :: tmp
                                          if (n <= 1d-74) then
                                              tmp = sqrt((((t * n) * u) * 2.0d0))
                                          else
                                              tmp = sqrt(((t * u) * 2.0d0)) * sqrt(n)
                                          end if
                                          code = tmp
                                      end function
                                      
                                      public static double code(double n, double U, double t, double l, double Om, double U_42_) {
                                      	double tmp;
                                      	if (n <= 1e-74) {
                                      		tmp = Math.sqrt((((t * n) * U) * 2.0));
                                      	} else {
                                      		tmp = Math.sqrt(((t * U) * 2.0)) * Math.sqrt(n);
                                      	}
                                      	return tmp;
                                      }
                                      
                                      def code(n, U, t, l, Om, U_42_):
                                      	tmp = 0
                                      	if n <= 1e-74:
                                      		tmp = math.sqrt((((t * n) * U) * 2.0))
                                      	else:
                                      		tmp = math.sqrt(((t * U) * 2.0)) * math.sqrt(n)
                                      	return tmp
                                      
                                      function code(n, U, t, l, Om, U_42_)
                                      	tmp = 0.0
                                      	if (n <= 1e-74)
                                      		tmp = sqrt(Float64(Float64(Float64(t * n) * U) * 2.0));
                                      	else
                                      		tmp = Float64(sqrt(Float64(Float64(t * U) * 2.0)) * sqrt(n));
                                      	end
                                      	return tmp
                                      end
                                      
                                      function tmp_2 = code(n, U, t, l, Om, U_42_)
                                      	tmp = 0.0;
                                      	if (n <= 1e-74)
                                      		tmp = sqrt((((t * n) * U) * 2.0));
                                      	else
                                      		tmp = sqrt(((t * U) * 2.0)) * sqrt(n);
                                      	end
                                      	tmp_2 = tmp;
                                      end
                                      
                                      code[n_, U_, t_, l_, Om_, U$42$_] := If[LessEqual[n, 1e-74], N[Sqrt[N[(N[(N[(t * n), $MachinePrecision] * U), $MachinePrecision] * 2.0), $MachinePrecision]], $MachinePrecision], N[(N[Sqrt[N[(N[(t * U), $MachinePrecision] * 2.0), $MachinePrecision]], $MachinePrecision] * N[Sqrt[n], $MachinePrecision]), $MachinePrecision]]
                                      
                                      \begin{array}{l}
                                      
                                      \\
                                      \begin{array}{l}
                                      \mathbf{if}\;n \leq 10^{-74}:\\
                                      \;\;\;\;\sqrt{\left(\left(t \cdot n\right) \cdot U\right) \cdot 2}\\
                                      
                                      \mathbf{else}:\\
                                      \;\;\;\;\sqrt{\left(t \cdot U\right) \cdot 2} \cdot \sqrt{n}\\
                                      
                                      
                                      \end{array}
                                      \end{array}
                                      
                                      Derivation
                                      1. Split input into 2 regimes
                                      2. if n < 9.99999999999999958e-75

                                        1. Initial program 55.0%

                                          \[\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)} \]
                                        2. Add Preprocessing
                                        3. Taylor expanded in t around inf

                                          \[\leadsto \sqrt{\color{blue}{2 \cdot \left(U \cdot \left(n \cdot t\right)\right)}} \]
                                        4. Step-by-step derivation
                                          1. *-commutativeN/A

                                            \[\leadsto \sqrt{\color{blue}{\left(U \cdot \left(n \cdot t\right)\right) \cdot 2}} \]
                                          2. lower-*.f64N/A

                                            \[\leadsto \sqrt{\color{blue}{\left(U \cdot \left(n \cdot t\right)\right) \cdot 2}} \]
                                          3. *-commutativeN/A

                                            \[\leadsto \sqrt{\color{blue}{\left(\left(n \cdot t\right) \cdot U\right)} \cdot 2} \]
                                          4. lower-*.f64N/A

                                            \[\leadsto \sqrt{\color{blue}{\left(\left(n \cdot t\right) \cdot U\right)} \cdot 2} \]
                                          5. lower-*.f6445.2

                                            \[\leadsto \sqrt{\left(\color{blue}{\left(n \cdot t\right)} \cdot U\right) \cdot 2} \]
                                        5. Applied rewrites45.2%

                                          \[\leadsto \sqrt{\color{blue}{\left(\left(n \cdot t\right) \cdot U\right) \cdot 2}} \]

                                        if 9.99999999999999958e-75 < n

                                        1. Initial program 50.7%

                                          \[\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)} \]
                                        2. Add Preprocessing
                                        3. Step-by-step derivation
                                          1. lift-sqrt.f64N/A

                                            \[\leadsto \color{blue}{\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)}} \]
                                          2. lift-*.f64N/A

                                            \[\leadsto \sqrt{\color{blue}{\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)}} \]
                                          3. lift-*.f64N/A

                                            \[\leadsto \sqrt{\color{blue}{\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)} \]
                                          4. associate-*l*N/A

                                            \[\leadsto \sqrt{\color{blue}{\left(2 \cdot n\right) \cdot \left(U \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)\right)}} \]
                                          5. lift-*.f64N/A

                                            \[\leadsto \sqrt{\color{blue}{\left(2 \cdot n\right)} \cdot \left(U \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)\right)} \]
                                          6. *-commutativeN/A

                                            \[\leadsto \sqrt{\color{blue}{\left(n \cdot 2\right)} \cdot \left(U \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)\right)} \]
                                          7. associate-*l*N/A

                                            \[\leadsto \sqrt{\color{blue}{n \cdot \left(2 \cdot \left(U \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)\right)\right)}} \]
                                          8. sqrt-prodN/A

                                            \[\leadsto \color{blue}{\sqrt{n} \cdot \sqrt{2 \cdot \left(U \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)\right)}} \]
                                          9. lower-*.f64N/A

                                            \[\leadsto \color{blue}{\sqrt{n} \cdot \sqrt{2 \cdot \left(U \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)\right)}} \]
                                          10. lower-sqrt.f64N/A

                                            \[\leadsto \color{blue}{\sqrt{n}} \cdot \sqrt{2 \cdot \left(U \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)\right)} \]
                                          11. lower-sqrt.f64N/A

                                            \[\leadsto \sqrt{n} \cdot \color{blue}{\sqrt{2 \cdot \left(U \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)\right)}} \]
                                        4. Applied rewrites54.3%

                                          \[\leadsto \color{blue}{\sqrt{n} \cdot \sqrt{\left(2 \cdot U\right) \cdot \left(\mathsf{fma}\left(-2, \frac{\ell \cdot \ell}{Om}, t\right) - \left(n \cdot \left(U - U*\right)\right) \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right)}} \]
                                        5. Taylor expanded in t around inf

                                          \[\leadsto \sqrt{n} \cdot \sqrt{\color{blue}{2 \cdot \left(U \cdot t\right)}} \]
                                        6. Step-by-step derivation
                                          1. lower-*.f64N/A

                                            \[\leadsto \sqrt{n} \cdot \sqrt{\color{blue}{2 \cdot \left(U \cdot t\right)}} \]
                                          2. lower-*.f6441.3

                                            \[\leadsto \sqrt{n} \cdot \sqrt{2 \cdot \color{blue}{\left(U \cdot t\right)}} \]
                                        7. Applied rewrites41.3%

                                          \[\leadsto \sqrt{n} \cdot \sqrt{\color{blue}{2 \cdot \left(U \cdot t\right)}} \]
                                      3. Recombined 2 regimes into one program.
                                      4. Final simplification43.8%

                                        \[\leadsto \begin{array}{l} \mathbf{if}\;n \leq 10^{-74}:\\ \;\;\;\;\sqrt{\left(\left(t \cdot n\right) \cdot U\right) \cdot 2}\\ \mathbf{else}:\\ \;\;\;\;\sqrt{\left(t \cdot U\right) \cdot 2} \cdot \sqrt{n}\\ \end{array} \]
                                      5. Add Preprocessing

                                      Alternative 16: 36.2% accurate, 6.8× speedup?

                                      \[\begin{array}{l} \\ \sqrt{\left(\left(t \cdot n\right) \cdot U\right) \cdot 2} \end{array} \]
                                      (FPCore (n U t l Om U*) :precision binary64 (sqrt (* (* (* t n) U) 2.0)))
                                      double code(double n, double U, double t, double l, double Om, double U_42_) {
                                      	return sqrt((((t * n) * U) * 2.0));
                                      }
                                      
                                      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((((t * n) * u) * 2.0d0))
                                      end function
                                      
                                      public static double code(double n, double U, double t, double l, double Om, double U_42_) {
                                      	return Math.sqrt((((t * n) * U) * 2.0));
                                      }
                                      
                                      def code(n, U, t, l, Om, U_42_):
                                      	return math.sqrt((((t * n) * U) * 2.0))
                                      
                                      function code(n, U, t, l, Om, U_42_)
                                      	return sqrt(Float64(Float64(Float64(t * n) * U) * 2.0))
                                      end
                                      
                                      function tmp = code(n, U, t, l, Om, U_42_)
                                      	tmp = sqrt((((t * n) * U) * 2.0));
                                      end
                                      
                                      code[n_, U_, t_, l_, Om_, U$42$_] := N[Sqrt[N[(N[(N[(t * n), $MachinePrecision] * U), $MachinePrecision] * 2.0), $MachinePrecision]], $MachinePrecision]
                                      
                                      \begin{array}{l}
                                      
                                      \\
                                      \sqrt{\left(\left(t \cdot n\right) \cdot U\right) \cdot 2}
                                      \end{array}
                                      
                                      Derivation
                                      1. Initial program 53.5%

                                        \[\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)} \]
                                      2. Add Preprocessing
                                      3. Taylor expanded in t around inf

                                        \[\leadsto \sqrt{\color{blue}{2 \cdot \left(U \cdot \left(n \cdot t\right)\right)}} \]
                                      4. Step-by-step derivation
                                        1. *-commutativeN/A

                                          \[\leadsto \sqrt{\color{blue}{\left(U \cdot \left(n \cdot t\right)\right) \cdot 2}} \]
                                        2. lower-*.f64N/A

                                          \[\leadsto \sqrt{\color{blue}{\left(U \cdot \left(n \cdot t\right)\right) \cdot 2}} \]
                                        3. *-commutativeN/A

                                          \[\leadsto \sqrt{\color{blue}{\left(\left(n \cdot t\right) \cdot U\right)} \cdot 2} \]
                                        4. lower-*.f64N/A

                                          \[\leadsto \sqrt{\color{blue}{\left(\left(n \cdot t\right) \cdot U\right)} \cdot 2} \]
                                        5. lower-*.f6440.9

                                          \[\leadsto \sqrt{\left(\color{blue}{\left(n \cdot t\right)} \cdot U\right) \cdot 2} \]
                                      5. Applied rewrites40.9%

                                        \[\leadsto \sqrt{\color{blue}{\left(\left(n \cdot t\right) \cdot U\right) \cdot 2}} \]
                                      6. Final simplification40.9%

                                        \[\leadsto \sqrt{\left(\left(t \cdot n\right) \cdot U\right) \cdot 2} \]
                                      7. Add Preprocessing

                                      Alternative 17: 36.0% accurate, 6.8× speedup?

                                      \[\begin{array}{l} \\ \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot t} \end{array} \]
                                      (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}
                                      
                                      Derivation
                                      1. Initial program 53.5%

                                        \[\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)} \]
                                      2. Add Preprocessing
                                      3. Taylor expanded in t around inf

                                        \[\leadsto \sqrt{\color{blue}{2 \cdot \left(U \cdot \left(n \cdot t\right)\right)}} \]
                                      4. Step-by-step derivation
                                        1. *-commutativeN/A

                                          \[\leadsto \sqrt{\color{blue}{\left(U \cdot \left(n \cdot t\right)\right) \cdot 2}} \]
                                        2. lower-*.f64N/A

                                          \[\leadsto \sqrt{\color{blue}{\left(U \cdot \left(n \cdot t\right)\right) \cdot 2}} \]
                                        3. *-commutativeN/A

                                          \[\leadsto \sqrt{\color{blue}{\left(\left(n \cdot t\right) \cdot U\right)} \cdot 2} \]
                                        4. lower-*.f64N/A

                                          \[\leadsto \sqrt{\color{blue}{\left(\left(n \cdot t\right) \cdot U\right)} \cdot 2} \]
                                        5. lower-*.f6440.9

                                          \[\leadsto \sqrt{\left(\color{blue}{\left(n \cdot t\right)} \cdot U\right) \cdot 2} \]
                                      5. Applied rewrites40.9%

                                        \[\leadsto \sqrt{\color{blue}{\left(\left(n \cdot t\right) \cdot U\right) \cdot 2}} \]
                                      6. Step-by-step derivation
                                        1. Applied rewrites38.7%

                                          \[\leadsto \sqrt{t \cdot \color{blue}{\left(\left(2 \cdot n\right) \cdot U\right)}} \]
                                        2. Final simplification38.7%

                                          \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot t} \]
                                        3. Add Preprocessing

                                        Reproduce

                                        ?
                                        herbie shell --seed 2024272 
                                        (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*))))))