Toniolo and Linder, Equation (13)

Percentage Accurate: 50.5% → 64.8%
Time: 15.2s
Alternatives: 15
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 15 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: 50.5% 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: 64.8% accurate, 1.8× speedup?

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

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

\mathbf{elif}\;n \leq 2.1 \cdot 10^{-263}:\\
\;\;\;\;\sqrt{\mathsf{fma}\left(\left(U \cdot \ell\right) \cdot \frac{n \cdot \ell}{Om}, -4, \left(\left(n \cdot t\right) \cdot U\right) \cdot 2\right)}\\

\mathbf{else}:\\
\;\;\;\;\sqrt{t\_1 \cdot U} \cdot \sqrt{n \cdot 2}\\


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

    1. Initial program 51.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--.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-eval53.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 rewrites53.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{\color{blue}{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \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-*.f64N/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if -1.00000000000000006e-288 < n < 2.10000000000000003e-263

    1. Initial program 22.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 Om around inf

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      if 2.10000000000000003e-263 < n

      1. Initial program 55.2%

        \[\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-eval59.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 rewrites59.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{\color{blue}{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \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-*.f64N/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    Alternative 2: 54.3% accurate, 0.4× speedup?

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

      1. Initial program 30.9%

        \[\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-eval30.9

          \[\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 rewrites30.9%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      if 5.0000000000000003e-111 < (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*))))) < +inf.0

      1. Initial program 68.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--.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-eval71.9

          \[\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 rewrites71.9%

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

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

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

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

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

        \[\leadsto \sqrt{\color{blue}{\left(\left(\mathsf{fma}\left(\frac{\ell}{Om} \cdot \ell, -2, t\right) - \left(\left(U - U*\right) \cdot n\right) \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot U\right) \cdot \left(2 \cdot n\right)}} \]
      7. 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}} \]
      8. 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. +-commutativeN/A

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

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

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

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

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

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

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

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

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

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

        1. 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-eval5.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 rewrites5.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. 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}}}} \]
        6. 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. 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} \]
          4. associate-*r*N/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

          \[\leadsto \sqrt{\color{blue}{\frac{\left(U* \cdot U\right) \cdot \left(\left(n \cdot \ell\right) \cdot \left(n \cdot \ell\right)\right)}{Om \cdot Om} \cdot 2}} \]
      11. Recombined 3 regimes into one program.
      12. Add Preprocessing

      Alternative 3: 52.9% accurate, 0.4× speedup?

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

        1. Initial program 30.9%

          \[\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-eval30.9

            \[\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 rewrites30.9%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        if 5.0000000000000003e-111 < (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*))))) < +inf.0

        1. Initial program 68.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--.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-eval71.9

            \[\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 rewrites71.9%

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

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

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

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

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

          \[\leadsto \sqrt{\color{blue}{\left(\left(\mathsf{fma}\left(\frac{\ell}{Om} \cdot \ell, -2, t\right) - \left(\left(U - U*\right) \cdot n\right) \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot U\right) \cdot \left(2 \cdot n\right)}} \]
        7. 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}} \]
        8. 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. +-commutativeN/A

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

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

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

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

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

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

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

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

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

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

          1. 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 rewrites27.9%

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

          \[\leadsto \begin{array}{l} \mathbf{if}\;\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)} \leq 5 \cdot 10^{-111}:\\ \;\;\;\;\sqrt{\left(\mathsf{fma}\left(\frac{\ell \cdot \ell}{Om}, -2, t\right) \cdot U\right) \cdot \left(2 \cdot n\right)}\\ \mathbf{elif}\;\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)} \leq \infty:\\ \;\;\;\;\sqrt{\mathsf{fma}\left(\frac{\ell}{Om} \cdot \ell, -2, t\right) \cdot \left(U \cdot \left(n \cdot 2\right)\right)}\\ \mathbf{else}:\\ \;\;\;\;\left(\left(n \cdot \sqrt{2}\right) \cdot \frac{\ell}{Om}\right) \cdot \sqrt{U* \cdot U}\\ \end{array} \]
        13. Add Preprocessing

        Alternative 4: 53.1% accurate, 0.4× speedup?

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

          1. Initial program 30.9%

            \[\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-eval30.9

              \[\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 rewrites30.9%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

          if 5.0000000000000003e-111 < (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*))))) < +inf.0

          1. Initial program 68.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--.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-eval71.9

              \[\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 rewrites71.9%

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

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

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

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

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

            \[\leadsto \sqrt{\color{blue}{\left(\left(\mathsf{fma}\left(\frac{\ell}{Om} \cdot \ell, -2, t\right) - \left(\left(U - U*\right) \cdot n\right) \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot U\right) \cdot \left(2 \cdot n\right)}} \]
          7. 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}} \]
          8. 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. +-commutativeN/A

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

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

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

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

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

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

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

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

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

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

            1. 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}{\frac{\ell \cdot \left(n \cdot \sqrt{2}\right)}{Om} \cdot \sqrt{U \cdot U*}} \]
            4. Step-by-step derivation
              1. *-commutativeN/A

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

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

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

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

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

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

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

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

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

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

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

              \[\leadsto \color{blue}{\sqrt{U* \cdot U} \cdot \frac{\left(\sqrt{2} \cdot n\right) \cdot \ell}{Om}} \]
          11. Recombined 3 regimes into one program.
          12. Add Preprocessing

          Alternative 5: 51.2% accurate, 0.5× speedup?

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

            1. Initial program 13.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 \sqrt{\color{blue}{2 \cdot \left(U \cdot \left(n \cdot \left(t - 2 \cdot \frac{{\ell}^{2}}{Om}\right)\right)\right)}} \]
            4. Step-by-step derivation
              1. *-commutativeN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

            1. Initial program 69.8%

              \[\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-eval72.8

                \[\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 rewrites72.8%

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

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

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

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

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

              \[\leadsto \sqrt{\color{blue}{\left(\left(\mathsf{fma}\left(\frac{\ell}{Om} \cdot \ell, -2, t\right) - \left(\left(U - U*\right) \cdot n\right) \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot U\right) \cdot \left(2 \cdot n\right)}} \]
            7. 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}} \]
            8. 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. +-commutativeN/A

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

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

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

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

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

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

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

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

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

              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 Om around inf

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                    \[\leadsto \sqrt{\frac{\left(\left(\ell \cdot \ell\right) \cdot U\right) \cdot n}{Om} \cdot \color{blue}{-4}} \]
                4. Recombined 3 regimes into one program.
                5. Add Preprocessing

                Alternative 6: 50.7% accurate, 0.5× speedup?

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

                  1. Initial program 13.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-*.f6433.1

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

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

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

                  1. Initial program 69.8%

                    \[\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-eval72.8

                      \[\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 rewrites72.8%

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

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

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

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

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

                    \[\leadsto \sqrt{\color{blue}{\left(\left(\mathsf{fma}\left(\frac{\ell}{Om} \cdot \ell, -2, t\right) - \left(\left(U - U*\right) \cdot n\right) \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot U\right) \cdot \left(2 \cdot n\right)}} \]
                  7. 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}} \]
                  8. 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. +-commutativeN/A

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

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

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

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

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

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

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

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

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

                    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 Om around inf

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                          \[\leadsto \sqrt{\frac{\left(\left(\ell \cdot \ell\right) \cdot U\right) \cdot n}{Om} \cdot \color{blue}{-4}} \]
                      4. Recombined 3 regimes into one program.
                      5. Add Preprocessing

                      Alternative 7: 39.6% accurate, 0.9× speedup?

                      \[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(2 \cdot n\right) \cdot U\\ \mathbf{if}\;\sqrt{t\_1 \cdot \left(\left(t - 2 \cdot \frac{\ell \cdot \ell}{Om}\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \leq 0:\\ \;\;\;\;\sqrt{n \cdot \left(t \cdot \left(U \cdot 2\right)\right)}\\ \mathbf{else}:\\ \;\;\;\;\sqrt{t \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_1
                                (-
                                 (- t (* 2.0 (/ (* l l) Om)))
                                 (* (* n (pow (/ l Om) 2.0)) (- U U*)))))
                              0.0)
                           (sqrt (* n (* t (* U 2.0))))
                           (sqrt (* 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_1 * ((t - (2.0 * ((l * l) / Om))) - ((n * pow((l / Om), 2.0)) * (U - U_42_))))) <= 0.0) {
                      		tmp = sqrt((n * (t * (U * 2.0))));
                      	} else {
                      		tmp = sqrt((t * t_1));
                      	}
                      	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_1 * ((t - (2.0d0 * ((l * l) / om))) - ((n * ((l / om) ** 2.0d0)) * (u - u_42))))) <= 0.0d0) then
                              tmp = sqrt((n * (t * (u * 2.0d0))))
                          else
                              tmp = sqrt((t * t_1))
                          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_1 * ((t - (2.0 * ((l * l) / Om))) - ((n * Math.pow((l / Om), 2.0)) * (U - U_42_))))) <= 0.0) {
                      		tmp = Math.sqrt((n * (t * (U * 2.0))));
                      	} else {
                      		tmp = Math.sqrt((t * t_1));
                      	}
                      	return tmp;
                      }
                      
                      def code(n, U, t, l, Om, U_42_):
                      	t_1 = (2.0 * n) * U
                      	tmp = 0
                      	if math.sqrt((t_1 * ((t - (2.0 * ((l * l) / Om))) - ((n * math.pow((l / Om), 2.0)) * (U - U_42_))))) <= 0.0:
                      		tmp = math.sqrt((n * (t * (U * 2.0))))
                      	else:
                      		tmp = math.sqrt((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(t_1 * Float64(Float64(t - Float64(2.0 * Float64(Float64(l * l) / Om))) - Float64(Float64(n * (Float64(l / Om) ^ 2.0)) * Float64(U - U_42_))))) <= 0.0)
                      		tmp = sqrt(Float64(n * Float64(t * Float64(U * 2.0))));
                      	else
                      		tmp = sqrt(Float64(t * t_1));
                      	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_1 * ((t - (2.0 * ((l * l) / Om))) - ((n * ((l / Om) ^ 2.0)) * (U - U_42_))))) <= 0.0)
                      		tmp = sqrt((n * (t * (U * 2.0))));
                      	else
                      		tmp = sqrt((t * t_1));
                      	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[(t$95$1 * N[(N[(t - N[(2.0 * N[(N[(l * l), $MachinePrecision] / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(n * N[Power[N[(l / Om), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision] * N[(U - U$42$), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], 0.0], N[Sqrt[N[(n * N[(t * N[(U * 2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], N[Sqrt[N[(t * t$95$1), $MachinePrecision]], $MachinePrecision]]]
                      
                      \begin{array}{l}
                      
                      \\
                      \begin{array}{l}
                      t_1 := \left(2 \cdot n\right) \cdot U\\
                      \mathbf{if}\;\sqrt{t\_1 \cdot \left(\left(t - 2 \cdot \frac{\ell \cdot \ell}{Om}\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \leq 0:\\
                      \;\;\;\;\sqrt{n \cdot \left(t \cdot \left(U \cdot 2\right)\right)}\\
                      
                      \mathbf{else}:\\
                      \;\;\;\;\sqrt{t \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*))))) < 0.0

                        1. Initial program 15.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. 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-*.f6434.8

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

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

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

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

                          1. Initial program 57.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 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-*.f6437.2

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

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

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

                          Alternative 8: 62.1% accurate, 2.0× speedup?

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

                            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-eval56.9

                                \[\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 rewrites56.9%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                            if 1.9000000000000001e135 < l

                            1. Initial program 5.8%

                              \[\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-eval22.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 rewrites22.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{\color{blue}{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \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-*.f64N/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                          Alternative 9: 62.0% accurate, 2.2× speedup?

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

                            1. Initial program 47.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. 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-eval50.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 rewrites50.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{\color{blue}{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \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-*.f64N/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                            if 4.1e-153 < U

                            1. Initial program 58.8%

                              \[\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 0

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

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

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

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

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

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

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

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

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

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

                                \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\mathsf{fma}\left(-2, \frac{\color{blue}{\ell \cdot \ell}}{Om}, t\right) - -1 \cdot \frac{U* \cdot \left({\ell}^{2} \cdot n\right)}{{Om}^{2}}\right)} \]
                              11. mul-1-negN/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(\mathsf{neg}\left(\frac{U* \cdot \left({\ell}^{2} \cdot n\right)}{{Om}^{2}}\right)\right)}\right)} \]
                              12. associate-/l*N/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) - \left(\mathsf{neg}\left(\color{blue}{U* \cdot \frac{{\ell}^{2} \cdot n}{{Om}^{2}}}\right)\right)\right)} \]
                              13. distribute-lft-neg-inN/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(\mathsf{neg}\left(U*\right)\right) \cdot \frac{{\ell}^{2} \cdot n}{{Om}^{2}}}\right)} \]
                              14. neg-mul-1N/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(-1 \cdot U*\right)} \cdot \frac{{\ell}^{2} \cdot n}{{Om}^{2}}\right)} \]
                              15. lower-*.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(-1 \cdot U*\right) \cdot \frac{{\ell}^{2} \cdot n}{{Om}^{2}}}\right)} \]
                              16. neg-mul-1N/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(\mathsf{neg}\left(U*\right)\right)} \cdot \frac{{\ell}^{2} \cdot n}{{Om}^{2}}\right)} \]
                              17. lower-neg.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(-U*\right)} \cdot \frac{{\ell}^{2} \cdot n}{{Om}^{2}}\right)} \]
                              18. *-commutativeN/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) - \left(-U*\right) \cdot \frac{\color{blue}{n \cdot {\ell}^{2}}}{{Om}^{2}}\right)} \]
                              19. unpow2N/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) - \left(-U*\right) \cdot \frac{n \cdot {\ell}^{2}}{\color{blue}{Om \cdot Om}}\right)} \]
                            5. Applied rewrites57.7%

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

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

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

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

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

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

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

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

                            Alternative 10: 61.0% accurate, 2.2× speedup?

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

                              1. Initial program 51.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-eval54.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 rewrites54.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{\color{blue}{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \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-*.f64N/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                              if 8.99999999999999928e237 < t

                              1. Initial program 47.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-eval47.0

                                  \[\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 rewrites47.0%

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

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

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

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

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

                                \[\leadsto \sqrt{\color{blue}{\left(\left(\mathsf{fma}\left(\frac{\ell}{Om} \cdot \ell, -2, t\right) - \left(\left(U - U*\right) \cdot n\right) \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot U\right) \cdot \left(2 \cdot n\right)}} \]
                              7. 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}} \]
                              8. 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. +-commutativeN/A

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

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

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

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

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

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

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

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

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

                              Alternative 11: 58.3% accurate, 2.3× speedup?

                              \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;n \leq -5.6 \cdot 10^{+38} \lor \neg \left(n \leq 3.8 \cdot 10^{-246}\right):\\ \;\;\;\;\sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \mathsf{fma}\left(\mathsf{fma}\left(U*, \frac{n}{Om}, -2\right), \frac{\ell}{Om} \cdot \ell, t\right)}\\ \mathbf{else}:\\ \;\;\;\;\sqrt{\mathsf{fma}\left(\left(U \cdot \ell\right) \cdot \frac{n \cdot \ell}{Om}, -4, \left(\left(n \cdot t\right) \cdot U\right) \cdot 2\right)}\\ \end{array} \end{array} \]
                              (FPCore (n U t l Om U*)
                               :precision binary64
                               (if (or (<= n -5.6e+38) (not (<= n 3.8e-246)))
                                 (sqrt (* (* (* 2.0 n) U) (fma (fma U* (/ n Om) -2.0) (* (/ l Om) l) t)))
                                 (sqrt (fma (* (* U l) (/ (* n l) Om)) -4.0 (* (* (* n t) U) 2.0)))))
                              double code(double n, double U, double t, double l, double Om, double U_42_) {
                              	double tmp;
                              	if ((n <= -5.6e+38) || !(n <= 3.8e-246)) {
                              		tmp = sqrt((((2.0 * n) * U) * fma(fma(U_42_, (n / Om), -2.0), ((l / Om) * l), t)));
                              	} else {
                              		tmp = sqrt(fma(((U * l) * ((n * l) / Om)), -4.0, (((n * t) * U) * 2.0)));
                              	}
                              	return tmp;
                              }
                              
                              function code(n, U, t, l, Om, U_42_)
                              	tmp = 0.0
                              	if ((n <= -5.6e+38) || !(n <= 3.8e-246))
                              		tmp = sqrt(Float64(Float64(Float64(2.0 * n) * U) * fma(fma(U_42_, Float64(n / Om), -2.0), Float64(Float64(l / Om) * l), t)));
                              	else
                              		tmp = sqrt(fma(Float64(Float64(U * l) * Float64(Float64(n * l) / Om)), -4.0, Float64(Float64(Float64(n * t) * U) * 2.0)));
                              	end
                              	return tmp
                              end
                              
                              code[n_, U_, t_, l_, Om_, U$42$_] := If[Or[LessEqual[n, -5.6e+38], N[Not[LessEqual[n, 3.8e-246]], $MachinePrecision]], N[Sqrt[N[(N[(N[(2.0 * n), $MachinePrecision] * U), $MachinePrecision] * N[(N[(U$42$ * N[(n / Om), $MachinePrecision] + -2.0), $MachinePrecision] * N[(N[(l / Om), $MachinePrecision] * l), $MachinePrecision] + t), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], N[Sqrt[N[(N[(N[(U * l), $MachinePrecision] * N[(N[(n * l), $MachinePrecision] / Om), $MachinePrecision]), $MachinePrecision] * -4.0 + N[(N[(N[(n * t), $MachinePrecision] * U), $MachinePrecision] * 2.0), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]]
                              
                              \begin{array}{l}
                              
                              \\
                              \begin{array}{l}
                              \mathbf{if}\;n \leq -5.6 \cdot 10^{+38} \lor \neg \left(n \leq 3.8 \cdot 10^{-246}\right):\\
                              \;\;\;\;\sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \mathsf{fma}\left(\mathsf{fma}\left(U*, \frac{n}{Om}, -2\right), \frac{\ell}{Om} \cdot \ell, t\right)}\\
                              
                              \mathbf{else}:\\
                              \;\;\;\;\sqrt{\mathsf{fma}\left(\left(U \cdot \ell\right) \cdot \frac{n \cdot \ell}{Om}, -4, \left(\left(n \cdot t\right) \cdot U\right) \cdot 2\right)}\\
                              
                              
                              \end{array}
                              \end{array}
                              
                              Derivation
                              1. Split input into 2 regimes
                              2. if n < -5.6e38 or 3.79999999999999976e-246 < n

                                1. Initial program 54.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. Taylor expanded in U around 0

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

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

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

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

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

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

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

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

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

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

                                    \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\mathsf{fma}\left(-2, \frac{\color{blue}{\ell \cdot \ell}}{Om}, t\right) - -1 \cdot \frac{U* \cdot \left({\ell}^{2} \cdot n\right)}{{Om}^{2}}\right)} \]
                                  11. mul-1-negN/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(\mathsf{neg}\left(\frac{U* \cdot \left({\ell}^{2} \cdot n\right)}{{Om}^{2}}\right)\right)}\right)} \]
                                  12. associate-/l*N/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) - \left(\mathsf{neg}\left(\color{blue}{U* \cdot \frac{{\ell}^{2} \cdot n}{{Om}^{2}}}\right)\right)\right)} \]
                                  13. distribute-lft-neg-inN/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(\mathsf{neg}\left(U*\right)\right) \cdot \frac{{\ell}^{2} \cdot n}{{Om}^{2}}}\right)} \]
                                  14. neg-mul-1N/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(-1 \cdot U*\right)} \cdot \frac{{\ell}^{2} \cdot n}{{Om}^{2}}\right)} \]
                                  15. lower-*.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(-1 \cdot U*\right) \cdot \frac{{\ell}^{2} \cdot n}{{Om}^{2}}}\right)} \]
                                  16. neg-mul-1N/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(\mathsf{neg}\left(U*\right)\right)} \cdot \frac{{\ell}^{2} \cdot n}{{Om}^{2}}\right)} \]
                                  17. lower-neg.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(-U*\right)} \cdot \frac{{\ell}^{2} \cdot n}{{Om}^{2}}\right)} \]
                                  18. *-commutativeN/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) - \left(-U*\right) \cdot \frac{\color{blue}{n \cdot {\ell}^{2}}}{{Om}^{2}}\right)} \]
                                  19. unpow2N/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) - \left(-U*\right) \cdot \frac{n \cdot {\ell}^{2}}{\color{blue}{Om \cdot Om}}\right)} \]
                                5. Applied rewrites50.2%

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

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

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

                                    if -5.6e38 < n < 3.79999999999999976e-246

                                    1. Initial program 46.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 Om around inf

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                    Alternative 12: 58.1% accurate, 2.3× speedup?

                                    \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;n \leq -5.6 \cdot 10^{+38} \lor \neg \left(n \leq 6 \cdot 10^{-245}\right):\\ \;\;\;\;\sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \mathsf{fma}\left(\mathsf{fma}\left(U*, \frac{n}{Om}, -2\right), \frac{\ell}{Om} \cdot \ell, t\right)}\\ \mathbf{else}:\\ \;\;\;\;\sqrt{\mathsf{fma}\left(\frac{\left(U \cdot \ell\right) \cdot \left(n \cdot \ell\right)}{Om}, -4, \left(\left(n \cdot t\right) \cdot U\right) \cdot 2\right)}\\ \end{array} \end{array} \]
                                    (FPCore (n U t l Om U*)
                                     :precision binary64
                                     (if (or (<= n -5.6e+38) (not (<= n 6e-245)))
                                       (sqrt (* (* (* 2.0 n) U) (fma (fma U* (/ n Om) -2.0) (* (/ l Om) l) t)))
                                       (sqrt (fma (/ (* (* U l) (* n l)) Om) -4.0 (* (* (* n t) U) 2.0)))))
                                    double code(double n, double U, double t, double l, double Om, double U_42_) {
                                    	double tmp;
                                    	if ((n <= -5.6e+38) || !(n <= 6e-245)) {
                                    		tmp = sqrt((((2.0 * n) * U) * fma(fma(U_42_, (n / Om), -2.0), ((l / Om) * l), t)));
                                    	} else {
                                    		tmp = sqrt(fma((((U * l) * (n * l)) / Om), -4.0, (((n * t) * U) * 2.0)));
                                    	}
                                    	return tmp;
                                    }
                                    
                                    function code(n, U, t, l, Om, U_42_)
                                    	tmp = 0.0
                                    	if ((n <= -5.6e+38) || !(n <= 6e-245))
                                    		tmp = sqrt(Float64(Float64(Float64(2.0 * n) * U) * fma(fma(U_42_, Float64(n / Om), -2.0), Float64(Float64(l / Om) * l), t)));
                                    	else
                                    		tmp = sqrt(fma(Float64(Float64(Float64(U * l) * Float64(n * l)) / Om), -4.0, Float64(Float64(Float64(n * t) * U) * 2.0)));
                                    	end
                                    	return tmp
                                    end
                                    
                                    code[n_, U_, t_, l_, Om_, U$42$_] := If[Or[LessEqual[n, -5.6e+38], N[Not[LessEqual[n, 6e-245]], $MachinePrecision]], N[Sqrt[N[(N[(N[(2.0 * n), $MachinePrecision] * U), $MachinePrecision] * N[(N[(U$42$ * N[(n / Om), $MachinePrecision] + -2.0), $MachinePrecision] * N[(N[(l / Om), $MachinePrecision] * l), $MachinePrecision] + t), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], N[Sqrt[N[(N[(N[(N[(U * l), $MachinePrecision] * N[(n * l), $MachinePrecision]), $MachinePrecision] / Om), $MachinePrecision] * -4.0 + N[(N[(N[(n * t), $MachinePrecision] * U), $MachinePrecision] * 2.0), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]]
                                    
                                    \begin{array}{l}
                                    
                                    \\
                                    \begin{array}{l}
                                    \mathbf{if}\;n \leq -5.6 \cdot 10^{+38} \lor \neg \left(n \leq 6 \cdot 10^{-245}\right):\\
                                    \;\;\;\;\sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \mathsf{fma}\left(\mathsf{fma}\left(U*, \frac{n}{Om}, -2\right), \frac{\ell}{Om} \cdot \ell, t\right)}\\
                                    
                                    \mathbf{else}:\\
                                    \;\;\;\;\sqrt{\mathsf{fma}\left(\frac{\left(U \cdot \ell\right) \cdot \left(n \cdot \ell\right)}{Om}, -4, \left(\left(n \cdot t\right) \cdot U\right) \cdot 2\right)}\\
                                    
                                    
                                    \end{array}
                                    \end{array}
                                    
                                    Derivation
                                    1. Split input into 2 regimes
                                    2. if n < -5.6e38 or 6.0000000000000004e-245 < n

                                      1. Initial program 54.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. Taylor expanded in U around 0

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

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

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

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

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

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

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

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

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

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

                                          \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\mathsf{fma}\left(-2, \frac{\color{blue}{\ell \cdot \ell}}{Om}, t\right) - -1 \cdot \frac{U* \cdot \left({\ell}^{2} \cdot n\right)}{{Om}^{2}}\right)} \]
                                        11. mul-1-negN/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(\mathsf{neg}\left(\frac{U* \cdot \left({\ell}^{2} \cdot n\right)}{{Om}^{2}}\right)\right)}\right)} \]
                                        12. associate-/l*N/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) - \left(\mathsf{neg}\left(\color{blue}{U* \cdot \frac{{\ell}^{2} \cdot n}{{Om}^{2}}}\right)\right)\right)} \]
                                        13. distribute-lft-neg-inN/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(\mathsf{neg}\left(U*\right)\right) \cdot \frac{{\ell}^{2} \cdot n}{{Om}^{2}}}\right)} \]
                                        14. neg-mul-1N/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(-1 \cdot U*\right)} \cdot \frac{{\ell}^{2} \cdot n}{{Om}^{2}}\right)} \]
                                        15. lower-*.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(-1 \cdot U*\right) \cdot \frac{{\ell}^{2} \cdot n}{{Om}^{2}}}\right)} \]
                                        16. neg-mul-1N/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(\mathsf{neg}\left(U*\right)\right)} \cdot \frac{{\ell}^{2} \cdot n}{{Om}^{2}}\right)} \]
                                        17. lower-neg.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(-U*\right)} \cdot \frac{{\ell}^{2} \cdot n}{{Om}^{2}}\right)} \]
                                        18. *-commutativeN/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) - \left(-U*\right) \cdot \frac{\color{blue}{n \cdot {\ell}^{2}}}{{Om}^{2}}\right)} \]
                                        19. unpow2N/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) - \left(-U*\right) \cdot \frac{n \cdot {\ell}^{2}}{\color{blue}{Om \cdot Om}}\right)} \]
                                      5. Applied rewrites50.2%

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

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

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

                                          if -5.6e38 < n < 6.0000000000000004e-245

                                          1. Initial program 46.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 Om around inf

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                            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-eval53.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 rewrites53.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{\color{blue}{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \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-*.f64N/A

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

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

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

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

                                              \[\leadsto \sqrt{\color{blue}{\left(\left(\mathsf{fma}\left(\frac{\ell}{Om} \cdot \ell, -2, t\right) - \left(\left(U - U*\right) \cdot n\right) \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot U\right) \cdot \left(2 \cdot n\right)}} \]
                                            7. 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}} \]
                                            8. 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. +-commutativeN/A

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

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

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

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

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

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

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

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

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

                                              if -1.999999999999994e-310 < U

                                              1. Initial program 52.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--.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-eval54.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 rewrites54.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{\color{blue}{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \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-*.f64N/A

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

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

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

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

                                                \[\leadsto \sqrt{\color{blue}{\left(\left(\mathsf{fma}\left(\frac{\ell}{Om} \cdot \ell, -2, t\right) - \left(\left(U - U*\right) \cdot n\right) \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot U\right) \cdot \left(2 \cdot n\right)}} \]
                                              7. 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}} \]
                                              8. 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. +-commutativeN/A

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

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

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

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

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

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

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

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

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

                                              Alternative 14: 38.4% accurate, 3.7× speedup?

                                              \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;\ell \leq 3.8 \cdot 10^{+95}:\\ \;\;\;\;\sqrt{\left(\left(n \cdot t\right) \cdot U\right) \cdot 2}\\ \mathbf{else}:\\ \;\;\;\;\sqrt{\frac{\left(\left(\ell \cdot \ell\right) \cdot U\right) \cdot n}{Om} \cdot -4}\\ \end{array} \end{array} \]
                                              (FPCore (n U t l Om U*)
                                               :precision binary64
                                               (if (<= l 3.8e+95)
                                                 (sqrt (* (* (* n t) U) 2.0))
                                                 (sqrt (* (/ (* (* (* l l) U) n) Om) -4.0))))
                                              double code(double n, double U, double t, double l, double Om, double U_42_) {
                                              	double tmp;
                                              	if (l <= 3.8e+95) {
                                              		tmp = sqrt((((n * t) * U) * 2.0));
                                              	} else {
                                              		tmp = sqrt((((((l * l) * U) * n) / Om) * -4.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 <= 3.8d+95) then
                                                      tmp = sqrt((((n * t) * u) * 2.0d0))
                                                  else
                                                      tmp = sqrt((((((l * l) * u) * n) / om) * (-4.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 <= 3.8e+95) {
                                              		tmp = Math.sqrt((((n * t) * U) * 2.0));
                                              	} else {
                                              		tmp = Math.sqrt((((((l * l) * U) * n) / Om) * -4.0));
                                              	}
                                              	return tmp;
                                              }
                                              
                                              def code(n, U, t, l, Om, U_42_):
                                              	tmp = 0
                                              	if l <= 3.8e+95:
                                              		tmp = math.sqrt((((n * t) * U) * 2.0))
                                              	else:
                                              		tmp = math.sqrt((((((l * l) * U) * n) / Om) * -4.0))
                                              	return tmp
                                              
                                              function code(n, U, t, l, Om, U_42_)
                                              	tmp = 0.0
                                              	if (l <= 3.8e+95)
                                              		tmp = sqrt(Float64(Float64(Float64(n * t) * U) * 2.0));
                                              	else
                                              		tmp = sqrt(Float64(Float64(Float64(Float64(Float64(l * l) * U) * n) / Om) * -4.0));
                                              	end
                                              	return tmp
                                              end
                                              
                                              function tmp_2 = code(n, U, t, l, Om, U_42_)
                                              	tmp = 0.0;
                                              	if (l <= 3.8e+95)
                                              		tmp = sqrt((((n * t) * U) * 2.0));
                                              	else
                                              		tmp = sqrt((((((l * l) * U) * n) / Om) * -4.0));
                                              	end
                                              	tmp_2 = tmp;
                                              end
                                              
                                              code[n_, U_, t_, l_, Om_, U$42$_] := If[LessEqual[l, 3.8e+95], N[Sqrt[N[(N[(N[(n * t), $MachinePrecision] * U), $MachinePrecision] * 2.0), $MachinePrecision]], $MachinePrecision], N[Sqrt[N[(N[(N[(N[(N[(l * l), $MachinePrecision] * U), $MachinePrecision] * n), $MachinePrecision] / Om), $MachinePrecision] * -4.0), $MachinePrecision]], $MachinePrecision]]
                                              
                                              \begin{array}{l}
                                              
                                              \\
                                              \begin{array}{l}
                                              \mathbf{if}\;\ell \leq 3.8 \cdot 10^{+95}:\\
                                              \;\;\;\;\sqrt{\left(\left(n \cdot t\right) \cdot U\right) \cdot 2}\\
                                              
                                              \mathbf{else}:\\
                                              \;\;\;\;\sqrt{\frac{\left(\left(\ell \cdot \ell\right) \cdot U\right) \cdot n}{Om} \cdot -4}\\
                                              
                                              
                                              \end{array}
                                              \end{array}
                                              
                                              Derivation
                                              1. Split input into 2 regimes
                                              2. if l < 3.7999999999999999e95

                                                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. 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.8

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

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

                                                if 3.7999999999999999e95 < l

                                                1. Initial program 12.9%

                                                  \[\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 Om around inf

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                      \[\leadsto \sqrt{\frac{\left(\left(\ell \cdot \ell\right) \cdot U\right) \cdot n}{Om} \cdot \color{blue}{-4}} \]
                                                  4. Recombined 2 regimes into one program.
                                                  5. Add Preprocessing

                                                  Alternative 15: 36.5% accurate, 6.8× speedup?

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

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

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

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

                                                    Reproduce

                                                    ?
                                                    herbie shell --seed 2024298 
                                                    (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*))))))