Toniolo and Linder, Equation (13)

Percentage Accurate: 48.9% → 62.2%
Time: 17.0s
Alternatives: 25
Speedup: 2.0×

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 25 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: 48.9% accurate, 1.0× speedup?

\[\begin{array}{l} \\ \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(t - 2 \cdot \frac{\ell \cdot \ell}{Om}\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \end{array} \]
(FPCore (n U t l Om U*)
 :precision binary64
 (sqrt
  (*
   (* (* 2.0 n) U)
   (- (- t (* 2.0 (/ (* l l) Om))) (* (* n (pow (/ l Om) 2.0)) (- U U*))))))
double code(double n, double U, double t, double l, double Om, double U_42_) {
	return sqrt((((2.0 * n) * U) * ((t - (2.0 * ((l * l) / Om))) - ((n * pow((l / Om), 2.0)) * (U - U_42_)))));
}
real(8) function code(n, u, t, l, om, u_42)
    real(8), intent (in) :: n
    real(8), intent (in) :: u
    real(8), intent (in) :: t
    real(8), intent (in) :: l
    real(8), intent (in) :: om
    real(8), intent (in) :: u_42
    code = sqrt((((2.0d0 * n) * u) * ((t - (2.0d0 * ((l * l) / om))) - ((n * ((l / om) ** 2.0d0)) * (u - u_42)))))
end function
public static double code(double n, double U, double t, double l, double Om, double U_42_) {
	return Math.sqrt((((2.0 * n) * U) * ((t - (2.0 * ((l * l) / Om))) - ((n * Math.pow((l / Om), 2.0)) * (U - U_42_)))));
}
def code(n, U, t, l, Om, U_42_):
	return math.sqrt((((2.0 * n) * U) * ((t - (2.0 * ((l * l) / Om))) - ((n * math.pow((l / Om), 2.0)) * (U - U_42_)))))
function code(n, U, t, l, Om, U_42_)
	return sqrt(Float64(Float64(Float64(2.0 * n) * U) * Float64(Float64(t - Float64(2.0 * Float64(Float64(l * l) / Om))) - Float64(Float64(n * (Float64(l / Om) ^ 2.0)) * Float64(U - U_42_)))))
end
function tmp = code(n, U, t, l, Om, U_42_)
	tmp = sqrt((((2.0 * n) * U) * ((t - (2.0 * ((l * l) / Om))) - ((n * ((l / Om) ^ 2.0)) * (U - U_42_)))));
end
code[n_, U_, t_, l_, Om_, U$42$_] := N[Sqrt[N[(N[(N[(2.0 * n), $MachinePrecision] * U), $MachinePrecision] * N[(N[(t - N[(2.0 * N[(N[(l * l), $MachinePrecision] / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(n * N[Power[N[(l / Om), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision] * N[(U - U$42$), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]
\begin{array}{l}

\\
\sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(t - 2 \cdot \frac{\ell \cdot \ell}{Om}\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)}
\end{array}

Alternative 1: 62.2% accurate, 0.3× speedup?

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

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

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

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


\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 14.0%

      \[\sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(t - 2 \cdot \frac{\ell \cdot \ell}{Om}\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
    2. Add Preprocessing
    3. Step-by-step derivation
      1. lift--.f64N/A

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

        \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(t - \color{blue}{2 \cdot \frac{\ell \cdot \ell}{Om}}\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
      4. fp-cancel-sub-sign-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 \cdot \ell}{Om}\right)} - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
      5. +-commutativeN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    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 67.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 \color{blue}{\left(\left(t - 2 \cdot \frac{\ell \cdot \ell}{Om}\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)}} \]
      2. 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)} \]
      3. lift-*.f64N/A

        \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(t - \color{blue}{2 \cdot \frac{\ell \cdot \ell}{Om}}\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
      4. fp-cancel-sub-sign-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 \cdot \ell}{Om}\right)} - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
      5. +-commutativeN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    Alternative 2: 55.3% accurate, 0.2× speedup?

    \[\begin{array}{l} \\ \begin{array}{l} t_1 := \frac{\ell \cdot \ell}{Om}\\ t_2 := \left(2 \cdot n\right) \cdot U\\ t_3 := t\_2 \cdot \left(\left(t - 2 \cdot t\_1\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)\\ \mathbf{if}\;t\_3 \leq 2 \cdot 10^{+48}:\\ \;\;\;\;\sqrt{\left(\mathsf{fma}\left(\frac{\mathsf{fma}\left(\ell \cdot \ell, \frac{\left(U - U*\right) \cdot n}{Om}, \left(\ell \cdot \ell\right) \cdot 2\right)}{Om}, -1, t\right) \cdot U\right) \cdot \left(2 \cdot n\right)}\\ \mathbf{elif}\;t\_3 \leq 2 \cdot 10^{+182}:\\ \;\;\;\;\sqrt{t\_2 \cdot \mathsf{fma}\left(-2, t\_1, t\right)}\\ \mathbf{elif}\;t\_3 \leq 2 \cdot 10^{+272}:\\ \;\;\;\;\sqrt{t\_2 \cdot \mathsf{fma}\left(\left(-\left(U - U*\right)\right) \cdot \frac{\ell}{Om}, \frac{\ell}{Om} \cdot n, \mathsf{fma}\left(n, 2, t\right)\right)}\\ \mathbf{elif}\;t\_3 \leq \infty:\\ \;\;\;\;\sqrt{\left(\left(\mathsf{fma}\left(\frac{\ell}{Om} \cdot \ell, -2, t\right) - \left(\ell \cdot \frac{n \cdot \ell}{Om \cdot Om}\right) \cdot \left(U - U*\right)\right) \cdot U\right) \cdot \left(2 \cdot n\right)}\\ \mathbf{else}:\\ \;\;\;\;\sqrt{\left(-2 \cdot U\right) \cdot \left(\left(\left(\ell \cdot \ell\right) \cdot n\right) \cdot \mathsf{fma}\left(\frac{n}{Om}, \frac{U - U*}{Om}, \frac{2}{Om}\right)\right)}\\ \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_3
             (* t_2 (- (- t (* 2.0 t_1)) (* (* n (pow (/ l Om) 2.0)) (- U U*))))))
       (if (<= t_3 2e+48)
         (sqrt
          (*
           (*
            (fma (/ (fma (* l l) (/ (* (- U U*) n) Om) (* (* l l) 2.0)) Om) -1.0 t)
            U)
           (* 2.0 n)))
         (if (<= t_3 2e+182)
           (sqrt (* t_2 (fma -2.0 t_1 t)))
           (if (<= t_3 2e+272)
             (sqrt
              (* t_2 (fma (* (- (- U U*)) (/ l Om)) (* (/ l Om) n) (fma n 2.0 t))))
             (if (<= t_3 INFINITY)
               (sqrt
                (*
                 (*
                  (-
                   (fma (* (/ l Om) l) -2.0 t)
                   (* (* l (/ (* n l) (* Om Om))) (- U U*)))
                  U)
                 (* 2.0 n)))
               (sqrt
                (*
                 (* -2.0 U)
                 (*
                  (* (* l l) n)
                  (fma (/ n Om) (/ (- U U*) Om) (/ 2.0 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 = (2.0 * n) * U;
    	double t_3 = t_2 * ((t - (2.0 * t_1)) - ((n * pow((l / Om), 2.0)) * (U - U_42_)));
    	double tmp;
    	if (t_3 <= 2e+48) {
    		tmp = sqrt(((fma((fma((l * l), (((U - U_42_) * n) / Om), ((l * l) * 2.0)) / Om), -1.0, t) * U) * (2.0 * n)));
    	} else if (t_3 <= 2e+182) {
    		tmp = sqrt((t_2 * fma(-2.0, t_1, t)));
    	} else if (t_3 <= 2e+272) {
    		tmp = sqrt((t_2 * fma((-(U - U_42_) * (l / Om)), ((l / Om) * n), fma(n, 2.0, t))));
    	} else if (t_3 <= ((double) INFINITY)) {
    		tmp = sqrt((((fma(((l / Om) * l), -2.0, t) - ((l * ((n * l) / (Om * Om))) * (U - U_42_))) * U) * (2.0 * n)));
    	} else {
    		tmp = sqrt(((-2.0 * U) * (((l * l) * n) * fma((n / Om), ((U - U_42_) / Om), (2.0 / Om)))));
    	}
    	return tmp;
    }
    
    function code(n, U, t, l, Om, U_42_)
    	t_1 = Float64(Float64(l * l) / Om)
    	t_2 = Float64(Float64(2.0 * n) * U)
    	t_3 = Float64(t_2 * 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_3 <= 2e+48)
    		tmp = sqrt(Float64(Float64(fma(Float64(fma(Float64(l * l), Float64(Float64(Float64(U - U_42_) * n) / Om), Float64(Float64(l * l) * 2.0)) / Om), -1.0, t) * U) * Float64(2.0 * n)));
    	elseif (t_3 <= 2e+182)
    		tmp = sqrt(Float64(t_2 * fma(-2.0, t_1, t)));
    	elseif (t_3 <= 2e+272)
    		tmp = sqrt(Float64(t_2 * fma(Float64(Float64(-Float64(U - U_42_)) * Float64(l / Om)), Float64(Float64(l / Om) * n), fma(n, 2.0, t))));
    	elseif (t_3 <= Inf)
    		tmp = sqrt(Float64(Float64(Float64(fma(Float64(Float64(l / Om) * l), -2.0, t) - Float64(Float64(l * Float64(Float64(n * l) / Float64(Om * Om))) * Float64(U - U_42_))) * U) * Float64(2.0 * n)));
    	else
    		tmp = sqrt(Float64(Float64(-2.0 * U) * Float64(Float64(Float64(l * l) * n) * fma(Float64(n / Om), Float64(Float64(U - U_42_) / Om), Float64(2.0 / 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[(N[(2.0 * n), $MachinePrecision] * U), $MachinePrecision]}, Block[{t$95$3 = N[(t$95$2 * N[(N[(t - N[(2.0 * t$95$1), $MachinePrecision]), $MachinePrecision] - N[(N[(n * N[Power[N[(l / Om), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision] * N[(U - U$42$), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$3, 2e+48], N[Sqrt[N[(N[(N[(N[(N[(N[(l * l), $MachinePrecision] * N[(N[(N[(U - U$42$), $MachinePrecision] * n), $MachinePrecision] / Om), $MachinePrecision] + N[(N[(l * l), $MachinePrecision] * 2.0), $MachinePrecision]), $MachinePrecision] / Om), $MachinePrecision] * -1.0 + t), $MachinePrecision] * U), $MachinePrecision] * N[(2.0 * n), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], If[LessEqual[t$95$3, 2e+182], N[Sqrt[N[(t$95$2 * N[(-2.0 * t$95$1 + t), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], If[LessEqual[t$95$3, 2e+272], N[Sqrt[N[(t$95$2 * N[(N[((-N[(U - U$42$), $MachinePrecision]) * N[(l / Om), $MachinePrecision]), $MachinePrecision] * N[(N[(l / Om), $MachinePrecision] * n), $MachinePrecision] + N[(n * 2.0 + t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], If[LessEqual[t$95$3, Infinity], N[Sqrt[N[(N[(N[(N[(N[(N[(l / Om), $MachinePrecision] * l), $MachinePrecision] * -2.0 + t), $MachinePrecision] - N[(N[(l * N[(N[(n * l), $MachinePrecision] / N[(Om * Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(U - U$42$), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * U), $MachinePrecision] * N[(2.0 * n), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], N[Sqrt[N[(N[(-2.0 * U), $MachinePrecision] * N[(N[(N[(l * l), $MachinePrecision] * n), $MachinePrecision] * N[(N[(n / Om), $MachinePrecision] * N[(N[(U - U$42$), $MachinePrecision] / Om), $MachinePrecision] + N[(2.0 / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]]]]]]]]
    
    \begin{array}{l}
    
    \\
    \begin{array}{l}
    t_1 := \frac{\ell \cdot \ell}{Om}\\
    t_2 := \left(2 \cdot n\right) \cdot U\\
    t_3 := t\_2 \cdot \left(\left(t - 2 \cdot t\_1\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)\\
    \mathbf{if}\;t\_3 \leq 2 \cdot 10^{+48}:\\
    \;\;\;\;\sqrt{\left(\mathsf{fma}\left(\frac{\mathsf{fma}\left(\ell \cdot \ell, \frac{\left(U - U*\right) \cdot n}{Om}, \left(\ell \cdot \ell\right) \cdot 2\right)}{Om}, -1, t\right) \cdot U\right) \cdot \left(2 \cdot n\right)}\\
    
    \mathbf{elif}\;t\_3 \leq 2 \cdot 10^{+182}:\\
    \;\;\;\;\sqrt{t\_2 \cdot \mathsf{fma}\left(-2, t\_1, t\right)}\\
    
    \mathbf{elif}\;t\_3 \leq 2 \cdot 10^{+272}:\\
    \;\;\;\;\sqrt{t\_2 \cdot \mathsf{fma}\left(\left(-\left(U - U*\right)\right) \cdot \frac{\ell}{Om}, \frac{\ell}{Om} \cdot n, \mathsf{fma}\left(n, 2, t\right)\right)}\\
    
    \mathbf{elif}\;t\_3 \leq \infty:\\
    \;\;\;\;\sqrt{\left(\left(\mathsf{fma}\left(\frac{\ell}{Om} \cdot \ell, -2, t\right) - \left(\ell \cdot \frac{n \cdot \ell}{Om \cdot Om}\right) \cdot \left(U - U*\right)\right) \cdot U\right) \cdot \left(2 \cdot n\right)}\\
    
    \mathbf{else}:\\
    \;\;\;\;\sqrt{\left(-2 \cdot U\right) \cdot \left(\left(\left(\ell \cdot \ell\right) \cdot n\right) \cdot \mathsf{fma}\left(\frac{n}{Om}, \frac{U - U*}{Om}, \frac{2}{Om}\right)\right)}\\
    
    
    \end{array}
    \end{array}
    
    Derivation
    1. Split input into 5 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*)))) < 2.00000000000000009e48

      1. Initial program 64.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 \color{blue}{\left(\left(t - 2 \cdot \frac{\ell \cdot \ell}{Om}\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)}} \]
        2. 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)} \]
        3. lift-*.f64N/A

          \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(t - \color{blue}{2 \cdot \frac{\ell \cdot \ell}{Om}}\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
        4. fp-cancel-sub-sign-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 \cdot \ell}{Om}\right)} - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
        5. +-commutativeN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      if 2.00000000000000009e48 < (*.f64 (*.f64 (*.f64 #s(literal 2 binary64) n) U) (-.f64 (-.f64 t (*.f64 #s(literal 2 binary64) (/.f64 (*.f64 l l) Om))) (*.f64 (*.f64 n (pow.f64 (/.f64 l Om) #s(literal 2 binary64))) (-.f64 U U*)))) < 2.0000000000000001e182

      1. Initial program 99.6%

        \[\sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(t - 2 \cdot \frac{\ell \cdot \ell}{Om}\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
      2. Add Preprocessing
      3. Taylor expanded in n around 0

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

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

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

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

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

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

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

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

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

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

      1. Initial program 99.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 \color{blue}{\left(\left(t - 2 \cdot \frac{\ell \cdot \ell}{Om}\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)}} \]
        2. lift-*.f64N/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      if 2.0000000000000001e272 < (*.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 29.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 \color{blue}{\left(\left(t - 2 \cdot \frac{\ell \cdot \ell}{Om}\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)}} \]
        2. 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)} \]
        3. lift-*.f64N/A

          \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(t - \color{blue}{2 \cdot \frac{\ell \cdot \ell}{Om}}\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
        4. fp-cancel-sub-sign-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 \cdot \ell}{Om}\right)} - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
        5. +-commutativeN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \sqrt{\left(\left(\mathsf{fma}\left(\frac{\ell}{Om} \cdot \ell, -2, t\right) - \color{blue}{\left(\ell \cdot \frac{n \cdot \ell}{Om \cdot Om}\right)} \cdot \left(U - U*\right)\right) \cdot U\right) \cdot \left(2 \cdot n\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 l around inf

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    Alternative 3: 62.9% accurate, 0.3× speedup?

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

          \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(t - \color{blue}{2 \cdot \frac{\ell \cdot \ell}{Om}}\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
        4. fp-cancel-sub-sign-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 \cdot \ell}{Om}\right)} - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
        5. +-commutativeN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      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*)))) < 2.0000000000000001e272

      1. Initial program 98.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. Step-by-step derivation
        1. lift-*.f64N/A

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

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

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

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

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

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

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

        \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(t - 2 \cdot \frac{\ell \cdot \ell}{Om}\right) - \color{blue}{\left(\frac{\ell}{Om} \cdot \left(\frac{\ell}{Om} \cdot n\right)\right)} \cdot \left(U - U*\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 l around inf

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    Alternative 4: 62.3% accurate, 0.3× speedup?

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

        \[\sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(t - 2 \cdot \frac{\ell \cdot \ell}{Om}\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
      2. Add Preprocessing
      3. Step-by-step derivation
        1. lift--.f64N/A

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

          \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(t - \color{blue}{2 \cdot \frac{\ell \cdot \ell}{Om}}\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
        4. fp-cancel-sub-sign-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 \cdot \ell}{Om}\right)} - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
        5. +-commutativeN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      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 67.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 \color{blue}{\left(\left(t - 2 \cdot \frac{\ell \cdot \ell}{Om}\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)}} \]
        2. 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)} \]
        3. lift-*.f64N/A

          \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(t - \color{blue}{2 \cdot \frac{\ell \cdot \ell}{Om}}\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
        4. fp-cancel-sub-sign-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 \cdot \ell}{Om}\right)} - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
        5. +-commutativeN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \sqrt{\color{blue}{\mathsf{fma}\left(\frac{\ell}{Om} \cdot -2, \ell \cdot \left(\left(2 \cdot n\right) \cdot U\right), \left(\left(2 \cdot n\right) \cdot U\right) \cdot \mathsf{fma}\left(\left(-n\right) \cdot {\left(\frac{\ell}{Om}\right)}^{2}, U - U*, t\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 l around inf

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    Alternative 5: 60.3% accurate, 0.4× speedup?

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

        \[\sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(t - 2 \cdot \frac{\ell \cdot \ell}{Om}\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
      2. Add Preprocessing
      3. Step-by-step derivation
        1. lift--.f64N/A

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

          \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(t - \color{blue}{2 \cdot \frac{\ell \cdot \ell}{Om}}\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
        4. fp-cancel-sub-sign-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 \cdot \ell}{Om}\right)} - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
        5. +-commutativeN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      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 67.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 \color{blue}{\left(\left(t - 2 \cdot \frac{\ell \cdot \ell}{Om}\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)}} \]
        2. 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)} \]
        3. lift-*.f64N/A

          \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(t - \color{blue}{2 \cdot \frac{\ell \cdot \ell}{Om}}\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
        4. fp-cancel-sub-sign-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 \cdot \ell}{Om}\right)} - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
        5. +-commutativeN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \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)}} \]

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    Alternative 6: 59.8% accurate, 0.4× speedup?

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

        \[\sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(t - 2 \cdot \frac{\ell \cdot \ell}{Om}\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
      2. Add Preprocessing
      3. Step-by-step derivation
        1. lift--.f64N/A

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

          \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(t - \color{blue}{2 \cdot \frac{\ell \cdot \ell}{Om}}\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
        4. fp-cancel-sub-sign-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 \cdot \ell}{Om}\right)} - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
        5. +-commutativeN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      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 67.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 \color{blue}{\left(\left(t - 2 \cdot \frac{\ell \cdot \ell}{Om}\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)}} \]
        2. 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)} \]
        3. lift-*.f64N/A

          \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(t - \color{blue}{2 \cdot \frac{\ell \cdot \ell}{Om}}\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
        4. fp-cancel-sub-sign-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 \cdot \ell}{Om}\right)} - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
        5. +-commutativeN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \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)}} \]

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    Alternative 7: 52.4% accurate, 0.4× speedup?

    \[\begin{array}{l} \\ \begin{array}{l} t_1 := \frac{\ell \cdot \ell}{Om}\\ t_2 := \left(\left(n \cdot t\right) \cdot U\right) \cdot 2\\ t_3 := \left(2 \cdot n\right) \cdot U\\ t_4 := \sqrt{t\_3 \cdot \left(\left(t - 2 \cdot t\_1\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)}\\ \mathbf{if}\;t\_4 \leq 0:\\ \;\;\;\;\sqrt{\mathsf{fma}\left(\frac{\left(\left(\ell \cdot \ell\right) \cdot n\right) \cdot U}{Om}, -4, t\_2\right)}\\ \mathbf{elif}\;t\_4 \leq 5 \cdot 10^{+143}:\\ \;\;\;\;\sqrt{t\_3 \cdot \mathsf{fma}\left(-2, t\_1, t\right)}\\ \mathbf{else}:\\ \;\;\;\;\sqrt{\mathsf{fma}\left(\ell \cdot \left(\left(n \cdot \ell\right) \cdot \frac{U}{Om}\right), -4, t\_2\right)}\\ \end{array} \end{array} \]
    (FPCore (n U t l Om U*)
     :precision binary64
     (let* ((t_1 (/ (* l l) Om))
            (t_2 (* (* (* n t) U) 2.0))
            (t_3 (* (* 2.0 n) U))
            (t_4
             (sqrt
              (*
               t_3
               (- (- t (* 2.0 t_1)) (* (* n (pow (/ l Om) 2.0)) (- U U*)))))))
       (if (<= t_4 0.0)
         (sqrt (fma (/ (* (* (* l l) n) U) Om) -4.0 t_2))
         (if (<= t_4 5e+143)
           (sqrt (* t_3 (fma -2.0 t_1 t)))
           (sqrt (fma (* l (* (* n l) (/ U Om))) -4.0 t_2))))))
    double code(double n, double U, double t, double l, double Om, double U_42_) {
    	double t_1 = (l * l) / Om;
    	double t_2 = ((n * t) * U) * 2.0;
    	double t_3 = (2.0 * n) * U;
    	double t_4 = sqrt((t_3 * ((t - (2.0 * t_1)) - ((n * pow((l / Om), 2.0)) * (U - U_42_)))));
    	double tmp;
    	if (t_4 <= 0.0) {
    		tmp = sqrt(fma(((((l * l) * n) * U) / Om), -4.0, t_2));
    	} else if (t_4 <= 5e+143) {
    		tmp = sqrt((t_3 * fma(-2.0, t_1, t)));
    	} else {
    		tmp = sqrt(fma((l * ((n * l) * (U / Om))), -4.0, t_2));
    	}
    	return tmp;
    }
    
    function code(n, U, t, l, Om, U_42_)
    	t_1 = Float64(Float64(l * l) / Om)
    	t_2 = Float64(Float64(Float64(n * t) * U) * 2.0)
    	t_3 = Float64(Float64(2.0 * n) * U)
    	t_4 = sqrt(Float64(t_3 * Float64(Float64(t - Float64(2.0 * t_1)) - Float64(Float64(n * (Float64(l / Om) ^ 2.0)) * Float64(U - U_42_)))))
    	tmp = 0.0
    	if (t_4 <= 0.0)
    		tmp = sqrt(fma(Float64(Float64(Float64(Float64(l * l) * n) * U) / Om), -4.0, t_2));
    	elseif (t_4 <= 5e+143)
    		tmp = sqrt(Float64(t_3 * fma(-2.0, t_1, t)));
    	else
    		tmp = sqrt(fma(Float64(l * Float64(Float64(n * l) * Float64(U / Om))), -4.0, t_2));
    	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[(n * t), $MachinePrecision] * U), $MachinePrecision] * 2.0), $MachinePrecision]}, Block[{t$95$3 = N[(N[(2.0 * n), $MachinePrecision] * U), $MachinePrecision]}, Block[{t$95$4 = N[Sqrt[N[(t$95$3 * N[(N[(t - N[(2.0 * t$95$1), $MachinePrecision]), $MachinePrecision] - N[(N[(n * N[Power[N[(l / Om), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision] * N[(U - U$42$), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]}, If[LessEqual[t$95$4, 0.0], N[Sqrt[N[(N[(N[(N[(N[(l * l), $MachinePrecision] * n), $MachinePrecision] * U), $MachinePrecision] / Om), $MachinePrecision] * -4.0 + t$95$2), $MachinePrecision]], $MachinePrecision], If[LessEqual[t$95$4, 5e+143], N[Sqrt[N[(t$95$3 * N[(-2.0 * t$95$1 + t), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], N[Sqrt[N[(N[(l * N[(N[(n * l), $MachinePrecision] * N[(U / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * -4.0 + t$95$2), $MachinePrecision]], $MachinePrecision]]]]]]]
    
    \begin{array}{l}
    
    \\
    \begin{array}{l}
    t_1 := \frac{\ell \cdot \ell}{Om}\\
    t_2 := \left(\left(n \cdot t\right) \cdot U\right) \cdot 2\\
    t_3 := \left(2 \cdot n\right) \cdot U\\
    t_4 := \sqrt{t\_3 \cdot \left(\left(t - 2 \cdot t\_1\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)}\\
    \mathbf{if}\;t\_4 \leq 0:\\
    \;\;\;\;\sqrt{\mathsf{fma}\left(\frac{\left(\left(\ell \cdot \ell\right) \cdot n\right) \cdot U}{Om}, -4, t\_2\right)}\\
    
    \mathbf{elif}\;t\_4 \leq 5 \cdot 10^{+143}:\\
    \;\;\;\;\sqrt{t\_3 \cdot \mathsf{fma}\left(-2, t\_1, t\right)}\\
    
    \mathbf{else}:\\
    \;\;\;\;\sqrt{\mathsf{fma}\left(\ell \cdot \left(\left(n \cdot \ell\right) \cdot \frac{U}{Om}\right), -4, t\_2\right)}\\
    
    
    \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*))))) < 0.0

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

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

        \[\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)}} \]

      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*))))) < 5.00000000000000012e143

      1. Initial program 98.6%

        \[\sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(t - 2 \cdot \frac{\ell \cdot \ell}{Om}\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
      2. Add Preprocessing
      3. Taylor expanded in n around 0

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

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

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

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

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

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

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

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

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

      if 5.00000000000000012e143 < (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 20.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-*.f6419.1

          \[\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 rewrites19.1%

        \[\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 rewrites28.3%

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

      Alternative 8: 52.5% accurate, 0.4× speedup?

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

        1. Initial program 16.0%

          \[\sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(t - 2 \cdot \frac{\ell \cdot \ell}{Om}\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
        2. Add Preprocessing
        3. Taylor expanded in n around 0

          \[\leadsto \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. metadata-evalN/A

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

            \[\leadsto \sqrt{\left(\left(\color{blue}{\left(t + -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-*.f6437.6

            \[\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 rewrites37.6%

          \[\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 < (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.00000000000000012e143

        1. Initial program 98.6%

          \[\sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(t - 2 \cdot \frac{\ell \cdot \ell}{Om}\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
        2. Add Preprocessing
        3. Taylor expanded in n around 0

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

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

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

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

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

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

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

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

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

        if 5.00000000000000012e143 < (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 20.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-*.f6419.1

            \[\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 rewrites19.1%

          \[\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 rewrites28.3%

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

        Alternative 9: 50.1% accurate, 0.4× speedup?

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

          1. Initial program 16.0%

            \[\sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(t - 2 \cdot \frac{\ell \cdot \ell}{Om}\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
          2. Add Preprocessing
          3. Taylor expanded in n around 0

            \[\leadsto \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. metadata-evalN/A

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

              \[\leadsto \sqrt{\left(\left(\color{blue}{\left(t + -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-*.f6437.6

              \[\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 rewrites37.6%

            \[\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 < (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.00000000000000012e143

          1. Initial program 98.6%

            \[\sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(t - 2 \cdot \frac{\ell \cdot \ell}{Om}\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
          2. Add Preprocessing
          3. Taylor expanded in n around 0

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

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

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

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

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

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

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

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

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

          if 5.00000000000000012e143 < (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 20.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-*.f6419.1

              \[\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 rewrites19.1%

            \[\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 rewrites22.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)} \]
          7. Recombined 3 regimes into one program.
          8. Add Preprocessing

          Alternative 10: 54.4% accurate, 0.4× speedup?

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

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

              \[\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 rewrites40.5%

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

              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*)))) < 9.9999999999999992e292

              1. Initial program 98.6%

                \[\sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(t - 2 \cdot \frac{\ell \cdot \ell}{Om}\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
              2. Add Preprocessing
              3. Taylor expanded in n around 0

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

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

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

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

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

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

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

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

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

              if 9.9999999999999992e292 < (*.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 20.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 \color{blue}{\left(\left(t - 2 \cdot \frac{\ell \cdot \ell}{Om}\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)}} \]
                2. 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)} \]
                3. lift-*.f64N/A

                  \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(t - \color{blue}{2 \cdot \frac{\ell \cdot \ell}{Om}}\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
                4. fp-cancel-sub-sign-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 \cdot \ell}{Om}\right)} - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
                5. +-commutativeN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                  \[\leadsto \sqrt{\left(\left(-\left(U \cdot \ell\right) \cdot \ell\right) \cdot \mathsf{fma}\left(n, \frac{U - U*}{Om \cdot Om}, \frac{2}{Om}\right)\right) \cdot \left(2 \cdot n\right)} \]
              11. Recombined 3 regimes into one program.
              12. Final simplification53.0%

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

              Alternative 11: 52.2% accurate, 0.4× speedup?

              \[\begin{array}{l} \\ \begin{array}{l} t_1 := \frac{\ell \cdot \ell}{Om}\\ t_2 := \left(2 \cdot n\right) \cdot U\\ t_3 := t\_2 \cdot \left(\left(t - 2 \cdot t\_1\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)\\ \mathbf{if}\;t\_3 \leq 0:\\ \;\;\;\;\sqrt{\mathsf{fma}\left(\frac{\left(\left(n \cdot \ell\right) \cdot \ell\right) \cdot U}{Om}, -4, \left(\left(n \cdot t\right) \cdot U\right) \cdot 2\right)}\\ \mathbf{elif}\;t\_3 \leq 10^{+293}:\\ \;\;\;\;\sqrt{t\_2 \cdot \mathsf{fma}\left(-2, t\_1, t\right)}\\ \mathbf{else}:\\ \;\;\;\;\sqrt{\frac{\left(U \cdot \left(\frac{\ell}{Om} \cdot \ell\right)\right) \cdot \left(\left(\left(U - U*\right) \cdot n\right) \cdot n\right)}{Om} \cdot -2}\\ \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_3
                       (* t_2 (- (- t (* 2.0 t_1)) (* (* n (pow (/ l Om) 2.0)) (- U U*))))))
                 (if (<= t_3 0.0)
                   (sqrt (fma (/ (* (* (* n l) l) U) Om) -4.0 (* (* (* n t) U) 2.0)))
                   (if (<= t_3 1e+293)
                     (sqrt (* t_2 (fma -2.0 t_1 t)))
                     (sqrt (* (/ (* (* U (* (/ l Om) l)) (* (* (- U U*) n) n)) 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 = (2.0 * n) * U;
              	double t_3 = t_2 * ((t - (2.0 * t_1)) - ((n * pow((l / Om), 2.0)) * (U - U_42_)));
              	double tmp;
              	if (t_3 <= 0.0) {
              		tmp = sqrt(fma(((((n * l) * l) * U) / Om), -4.0, (((n * t) * U) * 2.0)));
              	} else if (t_3 <= 1e+293) {
              		tmp = sqrt((t_2 * fma(-2.0, t_1, t)));
              	} else {
              		tmp = sqrt(((((U * ((l / Om) * l)) * (((U - U_42_) * n) * n)) / Om) * -2.0));
              	}
              	return tmp;
              }
              
              function code(n, U, t, l, Om, U_42_)
              	t_1 = Float64(Float64(l * l) / Om)
              	t_2 = Float64(Float64(2.0 * n) * U)
              	t_3 = Float64(t_2 * 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_3 <= 0.0)
              		tmp = sqrt(fma(Float64(Float64(Float64(Float64(n * l) * l) * U) / Om), -4.0, Float64(Float64(Float64(n * t) * U) * 2.0)));
              	elseif (t_3 <= 1e+293)
              		tmp = sqrt(Float64(t_2 * fma(-2.0, t_1, t)));
              	else
              		tmp = sqrt(Float64(Float64(Float64(Float64(U * Float64(Float64(l / Om) * l)) * Float64(Float64(Float64(U - U_42_) * n) * n)) / 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[(N[(2.0 * n), $MachinePrecision] * U), $MachinePrecision]}, Block[{t$95$3 = N[(t$95$2 * N[(N[(t - N[(2.0 * t$95$1), $MachinePrecision]), $MachinePrecision] - N[(N[(n * N[Power[N[(l / Om), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision] * N[(U - U$42$), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$3, 0.0], N[Sqrt[N[(N[(N[(N[(N[(n * l), $MachinePrecision] * l), $MachinePrecision] * U), $MachinePrecision] / Om), $MachinePrecision] * -4.0 + N[(N[(N[(n * t), $MachinePrecision] * U), $MachinePrecision] * 2.0), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], If[LessEqual[t$95$3, 1e+293], N[Sqrt[N[(t$95$2 * N[(-2.0 * t$95$1 + t), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], N[Sqrt[N[(N[(N[(N[(U * N[(N[(l / Om), $MachinePrecision] * l), $MachinePrecision]), $MachinePrecision] * N[(N[(N[(U - U$42$), $MachinePrecision] * n), $MachinePrecision] * n), $MachinePrecision]), $MachinePrecision] / Om), $MachinePrecision] * -2.0), $MachinePrecision]], $MachinePrecision]]]]]]
              
              \begin{array}{l}
              
              \\
              \begin{array}{l}
              t_1 := \frac{\ell \cdot \ell}{Om}\\
              t_2 := \left(2 \cdot n\right) \cdot U\\
              t_3 := t\_2 \cdot \left(\left(t - 2 \cdot t\_1\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)\\
              \mathbf{if}\;t\_3 \leq 0:\\
              \;\;\;\;\sqrt{\mathsf{fma}\left(\frac{\left(\left(n \cdot \ell\right) \cdot \ell\right) \cdot U}{Om}, -4, \left(\left(n \cdot t\right) \cdot U\right) \cdot 2\right)}\\
              
              \mathbf{elif}\;t\_3 \leq 10^{+293}:\\
              \;\;\;\;\sqrt{t\_2 \cdot \mathsf{fma}\left(-2, t\_1, t\right)}\\
              
              \mathbf{else}:\\
              \;\;\;\;\sqrt{\frac{\left(U \cdot \left(\frac{\ell}{Om} \cdot \ell\right)\right) \cdot \left(\left(\left(U - U*\right) \cdot n\right) \cdot n\right)}{Om} \cdot -2}\\
              
              
              \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 14.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-*.f6438.0

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

                  \[\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 rewrites40.5%

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

                  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*)))) < 9.9999999999999992e292

                  1. Initial program 98.6%

                    \[\sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(t - 2 \cdot \frac{\ell \cdot \ell}{Om}\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
                  2. Add Preprocessing
                  3. Taylor expanded in n around 0

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

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

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

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

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

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

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

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

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

                  if 9.9999999999999992e292 < (*.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 20.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. Taylor expanded in n around inf

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                  Alternative 12: 51.3% accurate, 0.4× speedup?

                  \[\begin{array}{l} \\ \begin{array}{l} t_1 := \frac{\ell \cdot \ell}{Om}\\ t_2 := \mathsf{fma}\left(-2, t\_1, t\right)\\ t_3 := \left(2 \cdot n\right) \cdot U\\ t_4 := t\_3 \cdot \left(\left(t - 2 \cdot t\_1\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)\\ \mathbf{if}\;t\_4 \leq 0:\\ \;\;\;\;\sqrt{\left(\left(t\_2 \cdot n\right) \cdot U\right) \cdot 2}\\ \mathbf{elif}\;t\_4 \leq 10^{+293}:\\ \;\;\;\;\sqrt{t\_3 \cdot t\_2}\\ \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 (fma -2.0 t_1 t))
                          (t_3 (* (* 2.0 n) U))
                          (t_4
                           (* t_3 (- (- t (* 2.0 t_1)) (* (* n (pow (/ l Om) 2.0)) (- U U*))))))
                     (if (<= t_4 0.0)
                       (sqrt (* (* (* t_2 n) U) 2.0))
                       (if (<= t_4 1e+293)
                         (sqrt (* t_3 t_2))
                         (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 = fma(-2.0, t_1, t);
                  	double t_3 = (2.0 * n) * U;
                  	double t_4 = t_3 * ((t - (2.0 * t_1)) - ((n * pow((l / Om), 2.0)) * (U - U_42_)));
                  	double tmp;
                  	if (t_4 <= 0.0) {
                  		tmp = sqrt((((t_2 * n) * U) * 2.0));
                  	} else if (t_4 <= 1e+293) {
                  		tmp = sqrt((t_3 * t_2));
                  	} 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 = fma(-2.0, t_1, t)
                  	t_3 = Float64(Float64(2.0 * n) * U)
                  	t_4 = Float64(t_3 * Float64(Float64(t - Float64(2.0 * t_1)) - Float64(Float64(n * (Float64(l / Om) ^ 2.0)) * Float64(U - U_42_))))
                  	tmp = 0.0
                  	if (t_4 <= 0.0)
                  		tmp = sqrt(Float64(Float64(Float64(t_2 * n) * U) * 2.0));
                  	elseif (t_4 <= 1e+293)
                  		tmp = sqrt(Float64(t_3 * t_2));
                  	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[(-2.0 * t$95$1 + t), $MachinePrecision]}, Block[{t$95$3 = N[(N[(2.0 * n), $MachinePrecision] * U), $MachinePrecision]}, Block[{t$95$4 = N[(t$95$3 * N[(N[(t - N[(2.0 * t$95$1), $MachinePrecision]), $MachinePrecision] - N[(N[(n * N[Power[N[(l / Om), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision] * N[(U - U$42$), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$4, 0.0], N[Sqrt[N[(N[(N[(t$95$2 * n), $MachinePrecision] * U), $MachinePrecision] * 2.0), $MachinePrecision]], $MachinePrecision], If[LessEqual[t$95$4, 1e+293], N[Sqrt[N[(t$95$3 * t$95$2), $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 := \mathsf{fma}\left(-2, t\_1, t\right)\\
                  t_3 := \left(2 \cdot n\right) \cdot U\\
                  t_4 := t\_3 \cdot \left(\left(t - 2 \cdot t\_1\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)\\
                  \mathbf{if}\;t\_4 \leq 0:\\
                  \;\;\;\;\sqrt{\left(\left(t\_2 \cdot n\right) \cdot U\right) \cdot 2}\\
                  
                  \mathbf{elif}\;t\_4 \leq 10^{+293}:\\
                  \;\;\;\;\sqrt{t\_3 \cdot t\_2}\\
                  
                  \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 (*.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 14.0%

                      \[\sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(t - 2 \cdot \frac{\ell \cdot \ell}{Om}\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
                    2. Add Preprocessing
                    3. Taylor expanded in n around 0

                      \[\leadsto \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. metadata-evalN/A

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

                        \[\leadsto \sqrt{\left(\left(\color{blue}{\left(t + -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-*.f6437.9

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

                      \[\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*)))) < 9.9999999999999992e292

                    1. Initial program 98.6%

                      \[\sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(t - 2 \cdot \frac{\ell \cdot \ell}{Om}\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
                    2. Add Preprocessing
                    3. Taylor expanded in n around 0

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

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

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

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

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

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

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

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

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

                    if 9.9999999999999992e292 < (*.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 20.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. Taylor expanded in n around inf

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                        \[\leadsto \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 \color{blue}{2}} \]
                    8. Recombined 3 regimes into one program.
                    9. Add Preprocessing

                    Alternative 13: 47.2% accurate, 0.4× speedup?

                    \[\begin{array}{l} \\ \begin{array}{l} t_1 := \frac{\ell \cdot \ell}{Om}\\ t_2 := \mathsf{fma}\left(-2, t\_1, t\right)\\ t_3 := \left(2 \cdot n\right) \cdot U\\ t_4 := t\_3 \cdot \left(\left(t - 2 \cdot t\_1\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)\\ \mathbf{if}\;t\_4 \leq 0:\\ \;\;\;\;\sqrt{\left(\left(t\_2 \cdot n\right) \cdot U\right) \cdot 2}\\ \mathbf{elif}\;t\_4 \leq 4 \cdot 10^{+287}:\\ \;\;\;\;\sqrt{t\_3 \cdot t\_2}\\ \mathbf{else}:\\ \;\;\;\;\sqrt{\mathsf{fma}\left(\frac{\left(\ell \cdot \ell\right) \cdot n}{Om}, -4, \left(n \cdot t\right) \cdot 2\right) \cdot U}\\ \end{array} \end{array} \]
                    (FPCore (n U t l Om U*)
                     :precision binary64
                     (let* ((t_1 (/ (* l l) Om))
                            (t_2 (fma -2.0 t_1 t))
                            (t_3 (* (* 2.0 n) U))
                            (t_4
                             (* t_3 (- (- t (* 2.0 t_1)) (* (* n (pow (/ l Om) 2.0)) (- U U*))))))
                       (if (<= t_4 0.0)
                         (sqrt (* (* (* t_2 n) U) 2.0))
                         (if (<= t_4 4e+287)
                           (sqrt (* t_3 t_2))
                           (sqrt (* (fma (/ (* (* l l) n) Om) -4.0 (* (* n t) 2.0)) 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 = fma(-2.0, t_1, t);
                    	double t_3 = (2.0 * n) * U;
                    	double t_4 = t_3 * ((t - (2.0 * t_1)) - ((n * pow((l / Om), 2.0)) * (U - U_42_)));
                    	double tmp;
                    	if (t_4 <= 0.0) {
                    		tmp = sqrt((((t_2 * n) * U) * 2.0));
                    	} else if (t_4 <= 4e+287) {
                    		tmp = sqrt((t_3 * t_2));
                    	} else {
                    		tmp = sqrt((fma((((l * l) * n) / Om), -4.0, ((n * t) * 2.0)) * U));
                    	}
                    	return tmp;
                    }
                    
                    function code(n, U, t, l, Om, U_42_)
                    	t_1 = Float64(Float64(l * l) / Om)
                    	t_2 = fma(-2.0, t_1, t)
                    	t_3 = Float64(Float64(2.0 * n) * U)
                    	t_4 = Float64(t_3 * Float64(Float64(t - Float64(2.0 * t_1)) - Float64(Float64(n * (Float64(l / Om) ^ 2.0)) * Float64(U - U_42_))))
                    	tmp = 0.0
                    	if (t_4 <= 0.0)
                    		tmp = sqrt(Float64(Float64(Float64(t_2 * n) * U) * 2.0));
                    	elseif (t_4 <= 4e+287)
                    		tmp = sqrt(Float64(t_3 * t_2));
                    	else
                    		tmp = sqrt(Float64(fma(Float64(Float64(Float64(l * l) * n) / Om), -4.0, Float64(Float64(n * t) * 2.0)) * 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[(-2.0 * t$95$1 + t), $MachinePrecision]}, Block[{t$95$3 = N[(N[(2.0 * n), $MachinePrecision] * U), $MachinePrecision]}, Block[{t$95$4 = N[(t$95$3 * N[(N[(t - N[(2.0 * t$95$1), $MachinePrecision]), $MachinePrecision] - N[(N[(n * N[Power[N[(l / Om), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision] * N[(U - U$42$), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$4, 0.0], N[Sqrt[N[(N[(N[(t$95$2 * n), $MachinePrecision] * U), $MachinePrecision] * 2.0), $MachinePrecision]], $MachinePrecision], If[LessEqual[t$95$4, 4e+287], N[Sqrt[N[(t$95$3 * t$95$2), $MachinePrecision]], $MachinePrecision], N[Sqrt[N[(N[(N[(N[(N[(l * l), $MachinePrecision] * n), $MachinePrecision] / Om), $MachinePrecision] * -4.0 + N[(N[(n * t), $MachinePrecision] * 2.0), $MachinePrecision]), $MachinePrecision] * U), $MachinePrecision]], $MachinePrecision]]]]]]]
                    
                    \begin{array}{l}
                    
                    \\
                    \begin{array}{l}
                    t_1 := \frac{\ell \cdot \ell}{Om}\\
                    t_2 := \mathsf{fma}\left(-2, t\_1, t\right)\\
                    t_3 := \left(2 \cdot n\right) \cdot U\\
                    t_4 := t\_3 \cdot \left(\left(t - 2 \cdot t\_1\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)\\
                    \mathbf{if}\;t\_4 \leq 0:\\
                    \;\;\;\;\sqrt{\left(\left(t\_2 \cdot n\right) \cdot U\right) \cdot 2}\\
                    
                    \mathbf{elif}\;t\_4 \leq 4 \cdot 10^{+287}:\\
                    \;\;\;\;\sqrt{t\_3 \cdot t\_2}\\
                    
                    \mathbf{else}:\\
                    \;\;\;\;\sqrt{\mathsf{fma}\left(\frac{\left(\ell \cdot \ell\right) \cdot n}{Om}, -4, \left(n \cdot t\right) \cdot 2\right) \cdot U}\\
                    
                    
                    \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 14.0%

                        \[\sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(t - 2 \cdot \frac{\ell \cdot \ell}{Om}\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
                      2. Add Preprocessing
                      3. Taylor expanded in n around 0

                        \[\leadsto \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. metadata-evalN/A

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

                          \[\leadsto \sqrt{\left(\left(\color{blue}{\left(t + -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-*.f6437.9

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

                        \[\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*)))) < 4.0000000000000003e287

                      1. Initial program 98.6%

                        \[\sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(t - 2 \cdot \frac{\ell \cdot \ell}{Om}\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
                      2. Add Preprocessing
                      3. Taylor expanded in n around 0

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

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

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

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

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

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

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

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

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

                      if 4.0000000000000003e287 < (*.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 20.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-*.f6418.1

                          \[\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 rewrites18.1%

                        \[\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. Taylor expanded in U around 0

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

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

                      Alternative 14: 38.1% accurate, 0.9× speedup?

                      \[\begin{array}{l} \\ \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 10^{-157}:\\ \;\;\;\;\sqrt{\left(\left(U + U\right) \cdot t\right) \cdot n}\\ \mathbf{else}:\\ \;\;\;\;\sqrt{\left(\left(U \cdot n\right) \cdot t\right) \cdot 2}\\ \end{array} \end{array} \]
                      (FPCore (n U t l Om U*)
                       :precision binary64
                       (if (<=
                            (sqrt
                             (*
                              (* (* 2.0 n) U)
                              (-
                               (- t (* 2.0 (/ (* l l) Om)))
                               (* (* n (pow (/ l Om) 2.0)) (- U U*)))))
                            1e-157)
                         (sqrt (* (* (+ U U) t) n))
                         (sqrt (* (* (* U n) t) 2.0))))
                      double code(double n, double U, double t, double l, double Om, double U_42_) {
                      	double tmp;
                      	if (sqrt((((2.0 * n) * U) * ((t - (2.0 * ((l * l) / Om))) - ((n * pow((l / Om), 2.0)) * (U - U_42_))))) <= 1e-157) {
                      		tmp = sqrt((((U + U) * t) * n));
                      	} else {
                      		tmp = sqrt((((U * n) * t) * 2.0));
                      	}
                      	return tmp;
                      }
                      
                      real(8) function code(n, u, t, l, om, u_42)
                          real(8), intent (in) :: n
                          real(8), intent (in) :: u
                          real(8), intent (in) :: t
                          real(8), intent (in) :: l
                          real(8), intent (in) :: om
                          real(8), intent (in) :: u_42
                          real(8) :: tmp
                          if (sqrt((((2.0d0 * n) * u) * ((t - (2.0d0 * ((l * l) / om))) - ((n * ((l / om) ** 2.0d0)) * (u - u_42))))) <= 1d-157) then
                              tmp = sqrt((((u + u) * t) * n))
                          else
                              tmp = sqrt((((u * n) * t) * 2.0d0))
                          end if
                          code = tmp
                      end function
                      
                      public static double code(double n, double U, double t, double l, double Om, double U_42_) {
                      	double tmp;
                      	if (Math.sqrt((((2.0 * n) * U) * ((t - (2.0 * ((l * l) / Om))) - ((n * Math.pow((l / Om), 2.0)) * (U - U_42_))))) <= 1e-157) {
                      		tmp = Math.sqrt((((U + U) * t) * n));
                      	} else {
                      		tmp = Math.sqrt((((U * n) * t) * 2.0));
                      	}
                      	return tmp;
                      }
                      
                      def code(n, U, t, l, Om, U_42_):
                      	tmp = 0
                      	if math.sqrt((((2.0 * n) * U) * ((t - (2.0 * ((l * l) / Om))) - ((n * math.pow((l / Om), 2.0)) * (U - U_42_))))) <= 1e-157:
                      		tmp = math.sqrt((((U + U) * t) * n))
                      	else:
                      		tmp = math.sqrt((((U * n) * t) * 2.0))
                      	return tmp
                      
                      function code(n, U, t, l, Om, U_42_)
                      	tmp = 0.0
                      	if (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_))))) <= 1e-157)
                      		tmp = sqrt(Float64(Float64(Float64(U + U) * t) * n));
                      	else
                      		tmp = sqrt(Float64(Float64(Float64(U * n) * t) * 2.0));
                      	end
                      	return tmp
                      end
                      
                      function tmp_2 = code(n, U, t, l, Om, U_42_)
                      	tmp = 0.0;
                      	if (sqrt((((2.0 * n) * U) * ((t - (2.0 * ((l * l) / Om))) - ((n * ((l / Om) ^ 2.0)) * (U - U_42_))))) <= 1e-157)
                      		tmp = sqrt((((U + U) * t) * n));
                      	else
                      		tmp = sqrt((((U * n) * t) * 2.0));
                      	end
                      	tmp_2 = tmp;
                      end
                      
                      code[n_, U_, t_, l_, Om_, U$42$_] := If[LessEqual[N[Sqrt[N[(N[(N[(2.0 * n), $MachinePrecision] * U), $MachinePrecision] * N[(N[(t - N[(2.0 * N[(N[(l * 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], 1e-157], N[Sqrt[N[(N[(N[(U + U), $MachinePrecision] * t), $MachinePrecision] * n), $MachinePrecision]], $MachinePrecision], N[Sqrt[N[(N[(N[(U * n), $MachinePrecision] * t), $MachinePrecision] * 2.0), $MachinePrecision]], $MachinePrecision]]
                      
                      \begin{array}{l}
                      
                      \\
                      \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 10^{-157}:\\
                      \;\;\;\;\sqrt{\left(\left(U + U\right) \cdot t\right) \cdot n}\\
                      
                      \mathbf{else}:\\
                      \;\;\;\;\sqrt{\left(\left(U \cdot n\right) \cdot t\right) \cdot 2}\\
                      
                      
                      \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*))))) < 9.99999999999999943e-158

                        1. Initial program 18.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. 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-*.f6432.5

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

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

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

                              \[\leadsto \sqrt{\left(\left(U + U\right) \cdot t\right) \cdot n} \]

                            if 9.99999999999999943e-158 < (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.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-*.f6434.6

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

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

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

                            Alternative 15: 56.1% accurate, 0.9× speedup?

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

                              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 \color{blue}{\left(\left(t - 2 \cdot \frac{\ell \cdot \ell}{Om}\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)}} \]
                                2. 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)} \]
                                3. lift-*.f64N/A

                                  \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(t - \color{blue}{2 \cdot \frac{\ell \cdot \ell}{Om}}\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
                                4. fp-cancel-sub-sign-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 \cdot \ell}{Om}\right)} - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
                                5. +-commutativeN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                              if -5.00000000000000024e-5 < n < 2.05e-219

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                if 2.05e-219 < n

                                1. Initial program 52.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 \color{blue}{\left(\left(t - 2 \cdot \frac{\ell \cdot \ell}{Om}\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)}} \]
                                  2. 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)} \]
                                  3. lift-*.f64N/A

                                    \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(t - \color{blue}{2 \cdot \frac{\ell \cdot \ell}{Om}}\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
                                  4. fp-cancel-sub-sign-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 \cdot \ell}{Om}\right)} - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
                                  5. +-commutativeN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                              Alternative 16: 56.1% accurate, 0.9× speedup?

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

                                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 \color{blue}{\left(\left(t - 2 \cdot \frac{\ell \cdot \ell}{Om}\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)}} \]
                                  2. 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)} \]
                                  3. lift-*.f64N/A

                                    \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(t - \color{blue}{2 \cdot \frac{\ell \cdot \ell}{Om}}\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
                                  4. fp-cancel-sub-sign-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 \cdot \ell}{Om}\right)} - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
                                  5. +-commutativeN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                if -5.00000000000000024e-5 < n < 2.05e-219

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                  if 2.05e-219 < n

                                  1. Initial program 52.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 \color{blue}{\left(\left(t - 2 \cdot \frac{\ell \cdot \ell}{Om}\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)}} \]
                                    2. 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)} \]
                                    3. lift-*.f64N/A

                                      \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(t - \color{blue}{2 \cdot \frac{\ell \cdot \ell}{Om}}\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
                                    4. fp-cancel-sub-sign-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 \cdot \ell}{Om}\right)} - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
                                    5. +-commutativeN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                Alternative 17: 48.2% accurate, 1.7× speedup?

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

                                  1. Initial program 60.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 \color{blue}{\left(\left(t - 2 \cdot \frac{\ell \cdot \ell}{Om}\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)}} \]
                                    2. 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)} \]
                                    3. lift-*.f64N/A

                                      \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(t - \color{blue}{2 \cdot \frac{\ell \cdot \ell}{Om}}\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
                                    4. fp-cancel-sub-sign-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 \cdot \ell}{Om}\right)} - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
                                    5. +-commutativeN/A

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

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

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

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

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

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

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

                                      \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\color{blue}{\left(\left(\mathsf{neg}\left(2\right)\right) \cdot \frac{\ell}{Om}\right) \cdot \ell} + \left(t - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)\right)} \]
                                    13. lower-fma.f64N/A

                                      \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \color{blue}{\mathsf{fma}\left(\left(\mathsf{neg}\left(2\right)\right) \cdot \frac{\ell}{Om}, \ell, t - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)}} \]
                                    14. lower-*.f64N/A

                                      \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \mathsf{fma}\left(\color{blue}{\left(\mathsf{neg}\left(2\right)\right) \cdot \frac{\ell}{Om}}, \ell, t - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
                                    15. metadata-evalN/A

                                      \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \mathsf{fma}\left(\color{blue}{-2} \cdot \frac{\ell}{Om}, \ell, t - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
                                    16. lower--.f6465.7

                                      \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \mathsf{fma}\left(-2 \cdot \frac{\ell}{Om}, \ell, \color{blue}{t - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)}\right)} \]
                                    17. lift-*.f64N/A

                                      \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \mathsf{fma}\left(-2 \cdot \frac{\ell}{Om}, \ell, t - \color{blue}{\left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)}\right)} \]
                                  4. Applied rewrites58.9%

                                    \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \color{blue}{\mathsf{fma}\left(-2 \cdot \frac{\ell}{Om}, \ell, t - \left(n \cdot \left(U - U*\right)\right) \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right)}} \]
                                  5. Step-by-step derivation
                                    1. lift-*.f64N/A

                                      \[\leadsto \sqrt{\color{blue}{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \mathsf{fma}\left(-2 \cdot \frac{\ell}{Om}, \ell, t - \left(n \cdot \left(U - U*\right)\right) \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right)}} \]
                                    2. lift-*.f64N/A

                                      \[\leadsto \sqrt{\color{blue}{\left(\left(2 \cdot n\right) \cdot U\right)} \cdot \mathsf{fma}\left(-2 \cdot \frac{\ell}{Om}, \ell, t - \left(n \cdot \left(U - U*\right)\right) \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right)} \]
                                    3. associate-*l*N/A

                                      \[\leadsto \sqrt{\color{blue}{\left(2 \cdot n\right) \cdot \left(U \cdot \mathsf{fma}\left(-2 \cdot \frac{\ell}{Om}, \ell, t - \left(n \cdot \left(U - U*\right)\right) \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right)\right)}} \]
                                    4. lift-*.f64N/A

                                      \[\leadsto \sqrt{\color{blue}{\left(2 \cdot n\right)} \cdot \left(U \cdot \mathsf{fma}\left(-2 \cdot \frac{\ell}{Om}, \ell, t - \left(n \cdot \left(U - U*\right)\right) \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right)\right)} \]
                                    5. *-commutativeN/A

                                      \[\leadsto \sqrt{\color{blue}{\left(n \cdot 2\right)} \cdot \left(U \cdot \mathsf{fma}\left(-2 \cdot \frac{\ell}{Om}, \ell, t - \left(n \cdot \left(U - U*\right)\right) \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right)\right)} \]
                                    6. *-commutativeN/A

                                      \[\leadsto \sqrt{\color{blue}{\left(U \cdot \mathsf{fma}\left(-2 \cdot \frac{\ell}{Om}, \ell, t - \left(n \cdot \left(U - U*\right)\right) \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right)\right) \cdot \left(n \cdot 2\right)}} \]
                                    7. lower-*.f64N/A

                                      \[\leadsto \sqrt{\color{blue}{\left(U \cdot \mathsf{fma}\left(-2 \cdot \frac{\ell}{Om}, \ell, t - \left(n \cdot \left(U - U*\right)\right) \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right)\right) \cdot \left(n \cdot 2\right)}} \]
                                  6. Applied rewrites65.6%

                                    \[\leadsto \sqrt{\color{blue}{\left(\left(\mathsf{fma}\left(\frac{\ell}{Om} \cdot \ell, -2, t\right) - \left({\left(\frac{\ell}{Om}\right)}^{2} \cdot n\right) \cdot \left(U - U*\right)\right) \cdot U\right) \cdot \left(2 \cdot n\right)}} \]
                                  7. Step-by-step derivation
                                    1. lift-*.f64N/A

                                      \[\leadsto \sqrt{\left(\left(\mathsf{fma}\left(\frac{\ell}{Om} \cdot \ell, -2, t\right) - \color{blue}{\left({\left(\frac{\ell}{Om}\right)}^{2} \cdot n\right)} \cdot \left(U - U*\right)\right) \cdot U\right) \cdot \left(2 \cdot n\right)} \]
                                    2. *-commutativeN/A

                                      \[\leadsto \sqrt{\left(\left(\mathsf{fma}\left(\frac{\ell}{Om} \cdot \ell, -2, t\right) - \color{blue}{\left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right)} \cdot \left(U - U*\right)\right) \cdot U\right) \cdot \left(2 \cdot n\right)} \]
                                    3. lift-pow.f64N/A

                                      \[\leadsto \sqrt{\left(\left(\mathsf{fma}\left(\frac{\ell}{Om} \cdot \ell, -2, t\right) - \left(n \cdot \color{blue}{{\left(\frac{\ell}{Om}\right)}^{2}}\right) \cdot \left(U - U*\right)\right) \cdot U\right) \cdot \left(2 \cdot n\right)} \]
                                    4. unpow2N/A

                                      \[\leadsto \sqrt{\left(\left(\mathsf{fma}\left(\frac{\ell}{Om} \cdot \ell, -2, t\right) - \left(n \cdot \color{blue}{\left(\frac{\ell}{Om} \cdot \frac{\ell}{Om}\right)}\right) \cdot \left(U - U*\right)\right) \cdot U\right) \cdot \left(2 \cdot n\right)} \]
                                    5. lift-/.f64N/A

                                      \[\leadsto \sqrt{\left(\left(\mathsf{fma}\left(\frac{\ell}{Om} \cdot \ell, -2, t\right) - \left(n \cdot \left(\color{blue}{\frac{\ell}{Om}} \cdot \frac{\ell}{Om}\right)\right) \cdot \left(U - U*\right)\right) \cdot U\right) \cdot \left(2 \cdot n\right)} \]
                                    6. lift-/.f64N/A

                                      \[\leadsto \sqrt{\left(\left(\mathsf{fma}\left(\frac{\ell}{Om} \cdot \ell, -2, t\right) - \left(n \cdot \left(\frac{\ell}{Om} \cdot \color{blue}{\frac{\ell}{Om}}\right)\right) \cdot \left(U - U*\right)\right) \cdot U\right) \cdot \left(2 \cdot n\right)} \]
                                    7. frac-timesN/A

                                      \[\leadsto \sqrt{\left(\left(\mathsf{fma}\left(\frac{\ell}{Om} \cdot \ell, -2, t\right) - \left(n \cdot \color{blue}{\frac{\ell \cdot \ell}{Om \cdot Om}}\right) \cdot \left(U - U*\right)\right) \cdot U\right) \cdot \left(2 \cdot n\right)} \]
                                    8. lift-*.f64N/A

                                      \[\leadsto \sqrt{\left(\left(\mathsf{fma}\left(\frac{\ell}{Om} \cdot \ell, -2, t\right) - \left(n \cdot \frac{\color{blue}{\ell \cdot \ell}}{Om \cdot Om}\right) \cdot \left(U - U*\right)\right) \cdot U\right) \cdot \left(2 \cdot n\right)} \]
                                    9. lift-*.f64N/A

                                      \[\leadsto \sqrt{\left(\left(\mathsf{fma}\left(\frac{\ell}{Om} \cdot \ell, -2, t\right) - \left(n \cdot \frac{\ell \cdot \ell}{\color{blue}{Om \cdot Om}}\right) \cdot \left(U - U*\right)\right) \cdot U\right) \cdot \left(2 \cdot n\right)} \]
                                    10. associate-/l*N/A

                                      \[\leadsto \sqrt{\left(\left(\mathsf{fma}\left(\frac{\ell}{Om} \cdot \ell, -2, t\right) - \color{blue}{\frac{n \cdot \left(\ell \cdot \ell\right)}{Om \cdot Om}} \cdot \left(U - U*\right)\right) \cdot U\right) \cdot \left(2 \cdot n\right)} \]
                                    11. *-commutativeN/A

                                      \[\leadsto \sqrt{\left(\left(\mathsf{fma}\left(\frac{\ell}{Om} \cdot \ell, -2, t\right) - \frac{\color{blue}{\left(\ell \cdot \ell\right) \cdot n}}{Om \cdot Om} \cdot \left(U - U*\right)\right) \cdot U\right) \cdot \left(2 \cdot n\right)} \]
                                    12. lift-*.f64N/A

                                      \[\leadsto \sqrt{\left(\left(\mathsf{fma}\left(\frac{\ell}{Om} \cdot \ell, -2, t\right) - \frac{\color{blue}{\left(\ell \cdot \ell\right)} \cdot n}{Om \cdot Om} \cdot \left(U - U*\right)\right) \cdot U\right) \cdot \left(2 \cdot n\right)} \]
                                    13. associate-*l*N/A

                                      \[\leadsto \sqrt{\left(\left(\mathsf{fma}\left(\frac{\ell}{Om} \cdot \ell, -2, t\right) - \frac{\color{blue}{\ell \cdot \left(\ell \cdot n\right)}}{Om \cdot Om} \cdot \left(U - U*\right)\right) \cdot U\right) \cdot \left(2 \cdot n\right)} \]
                                    14. associate-/l*N/A

                                      \[\leadsto \sqrt{\left(\left(\mathsf{fma}\left(\frac{\ell}{Om} \cdot \ell, -2, t\right) - \color{blue}{\left(\ell \cdot \frac{\ell \cdot n}{Om \cdot Om}\right)} \cdot \left(U - U*\right)\right) \cdot U\right) \cdot \left(2 \cdot n\right)} \]
                                    15. lower-*.f64N/A

                                      \[\leadsto \sqrt{\left(\left(\mathsf{fma}\left(\frac{\ell}{Om} \cdot \ell, -2, t\right) - \color{blue}{\left(\ell \cdot \frac{\ell \cdot n}{Om \cdot Om}\right)} \cdot \left(U - U*\right)\right) \cdot U\right) \cdot \left(2 \cdot n\right)} \]
                                    16. lower-/.f64N/A

                                      \[\leadsto \sqrt{\left(\left(\mathsf{fma}\left(\frac{\ell}{Om} \cdot \ell, -2, t\right) - \left(\ell \cdot \color{blue}{\frac{\ell \cdot n}{Om \cdot Om}}\right) \cdot \left(U - U*\right)\right) \cdot U\right) \cdot \left(2 \cdot n\right)} \]
                                    17. *-commutativeN/A

                                      \[\leadsto \sqrt{\left(\left(\mathsf{fma}\left(\frac{\ell}{Om} \cdot \ell, -2, t\right) - \left(\ell \cdot \frac{\color{blue}{n \cdot \ell}}{Om \cdot Om}\right) \cdot \left(U - U*\right)\right) \cdot U\right) \cdot \left(2 \cdot n\right)} \]
                                    18. lower-*.f6459.3

                                      \[\leadsto \sqrt{\left(\left(\mathsf{fma}\left(\frac{\ell}{Om} \cdot \ell, -2, t\right) - \left(\ell \cdot \frac{\color{blue}{n \cdot \ell}}{Om \cdot Om}\right) \cdot \left(U - U*\right)\right) \cdot U\right) \cdot \left(2 \cdot n\right)} \]
                                  8. Applied rewrites59.3%

                                    \[\leadsto \sqrt{\left(\left(\mathsf{fma}\left(\frac{\ell}{Om} \cdot \ell, -2, t\right) - \color{blue}{\left(\ell \cdot \frac{n \cdot \ell}{Om \cdot Om}\right)} \cdot \left(U - U*\right)\right) \cdot U\right) \cdot \left(2 \cdot n\right)} \]

                                  if -4.10000000000000013e-60 < U* < 2.09999999999999989e-13

                                  1. Initial program 51.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-*.f6450.7

                                      \[\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 rewrites50.7%

                                    \[\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 rewrites58.7%

                                      \[\leadsto \sqrt{\mathsf{fma}\left(n \cdot \left(U \cdot \left(\frac{\ell}{Om} \cdot \ell\right)\right), -4, \left(\left(n \cdot t\right) \cdot U\right) \cdot 2\right)} \]

                                    if 2.09999999999999989e-13 < U*

                                    1. Initial program 42.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 \color{blue}{\left(\left(t - 2 \cdot \frac{\ell \cdot \ell}{Om}\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)}} \]
                                      2. 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)} \]
                                      3. lift-*.f64N/A

                                        \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(t - \color{blue}{2 \cdot \frac{\ell \cdot \ell}{Om}}\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
                                      4. fp-cancel-sub-sign-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 \cdot \ell}{Om}\right)} - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
                                      5. +-commutativeN/A

                                        \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\color{blue}{\left(\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. associate--l+N/A

                                        \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \color{blue}{\left(\left(\mathsf{neg}\left(2\right)\right) \cdot \frac{\ell \cdot \ell}{Om} + \left(t - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)\right)}} \]
                                      7. lift-/.f64N/A

                                        \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(\mathsf{neg}\left(2\right)\right) \cdot \color{blue}{\frac{\ell \cdot \ell}{Om}} + \left(t - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)\right)} \]
                                      8. lift-*.f64N/A

                                        \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(\mathsf{neg}\left(2\right)\right) \cdot \frac{\color{blue}{\ell \cdot \ell}}{Om} + \left(t - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)\right)} \]
                                      9. associate-/l*N/A

                                        \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(\mathsf{neg}\left(2\right)\right) \cdot \color{blue}{\left(\ell \cdot \frac{\ell}{Om}\right)} + \left(t - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)\right)} \]
                                      10. lift-/.f64N/A

                                        \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(\mathsf{neg}\left(2\right)\right) \cdot \left(\ell \cdot \color{blue}{\frac{\ell}{Om}}\right) + \left(t - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)\right)} \]
                                      11. *-commutativeN/A

                                        \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(\mathsf{neg}\left(2\right)\right) \cdot \color{blue}{\left(\frac{\ell}{Om} \cdot \ell\right)} + \left(t - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)\right)} \]
                                      12. associate-*r*N/A

                                        \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\color{blue}{\left(\left(\mathsf{neg}\left(2\right)\right) \cdot \frac{\ell}{Om}\right) \cdot \ell} + \left(t - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)\right)} \]
                                      13. lower-fma.f64N/A

                                        \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \color{blue}{\mathsf{fma}\left(\left(\mathsf{neg}\left(2\right)\right) \cdot \frac{\ell}{Om}, \ell, t - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)}} \]
                                      14. lower-*.f64N/A

                                        \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \mathsf{fma}\left(\color{blue}{\left(\mathsf{neg}\left(2\right)\right) \cdot \frac{\ell}{Om}}, \ell, t - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
                                      15. metadata-evalN/A

                                        \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \mathsf{fma}\left(\color{blue}{-2} \cdot \frac{\ell}{Om}, \ell, t - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
                                      16. lower--.f6446.7

                                        \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \mathsf{fma}\left(-2 \cdot \frac{\ell}{Om}, \ell, \color{blue}{t - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)}\right)} \]
                                      17. lift-*.f64N/A

                                        \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \mathsf{fma}\left(-2 \cdot \frac{\ell}{Om}, \ell, t - \color{blue}{\left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)}\right)} \]
                                    4. Applied rewrites45.3%

                                      \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \color{blue}{\mathsf{fma}\left(-2 \cdot \frac{\ell}{Om}, \ell, t - \left(n \cdot \left(U - U*\right)\right) \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right)}} \]
                                    5. Step-by-step derivation
                                      1. lift-*.f64N/A

                                        \[\leadsto \sqrt{\color{blue}{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \mathsf{fma}\left(-2 \cdot \frac{\ell}{Om}, \ell, t - \left(n \cdot \left(U - U*\right)\right) \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right)}} \]
                                      2. lift-*.f64N/A

                                        \[\leadsto \sqrt{\color{blue}{\left(\left(2 \cdot n\right) \cdot U\right)} \cdot \mathsf{fma}\left(-2 \cdot \frac{\ell}{Om}, \ell, t - \left(n \cdot \left(U - U*\right)\right) \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right)} \]
                                      3. associate-*l*N/A

                                        \[\leadsto \sqrt{\color{blue}{\left(2 \cdot n\right) \cdot \left(U \cdot \mathsf{fma}\left(-2 \cdot \frac{\ell}{Om}, \ell, t - \left(n \cdot \left(U - U*\right)\right) \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right)\right)}} \]
                                      4. lift-*.f64N/A

                                        \[\leadsto \sqrt{\color{blue}{\left(2 \cdot n\right)} \cdot \left(U \cdot \mathsf{fma}\left(-2 \cdot \frac{\ell}{Om}, \ell, t - \left(n \cdot \left(U - U*\right)\right) \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right)\right)} \]
                                      5. *-commutativeN/A

                                        \[\leadsto \sqrt{\color{blue}{\left(n \cdot 2\right)} \cdot \left(U \cdot \mathsf{fma}\left(-2 \cdot \frac{\ell}{Om}, \ell, t - \left(n \cdot \left(U - U*\right)\right) \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right)\right)} \]
                                      6. *-commutativeN/A

                                        \[\leadsto \sqrt{\color{blue}{\left(U \cdot \mathsf{fma}\left(-2 \cdot \frac{\ell}{Om}, \ell, t - \left(n \cdot \left(U - U*\right)\right) \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right)\right) \cdot \left(n \cdot 2\right)}} \]
                                      7. lower-*.f64N/A

                                        \[\leadsto \sqrt{\color{blue}{\left(U \cdot \mathsf{fma}\left(-2 \cdot \frac{\ell}{Om}, \ell, t - \left(n \cdot \left(U - U*\right)\right) \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right)\right) \cdot \left(n \cdot 2\right)}} \]
                                    6. Applied rewrites50.2%

                                      \[\leadsto \sqrt{\color{blue}{\left(\left(\mathsf{fma}\left(\frac{\ell}{Om} \cdot \ell, -2, t\right) - \left({\left(\frac{\ell}{Om}\right)}^{2} \cdot n\right) \cdot \left(U - U*\right)\right) \cdot U\right) \cdot \left(2 \cdot n\right)}} \]
                                    7. Taylor expanded in Om around -inf

                                      \[\leadsto \sqrt{\color{blue}{\left(-1 \cdot \frac{2 \cdot \left(U \cdot {\ell}^{2}\right) + \frac{U \cdot \left({\ell}^{2} \cdot \left(n \cdot \left(U - U*\right)\right)\right)}{Om}}{Om} + U \cdot t\right)} \cdot \left(2 \cdot n\right)} \]
                                    8. Step-by-step derivation
                                      1. +-commutativeN/A

                                        \[\leadsto \sqrt{\color{blue}{\left(U \cdot t + -1 \cdot \frac{2 \cdot \left(U \cdot {\ell}^{2}\right) + \frac{U \cdot \left({\ell}^{2} \cdot \left(n \cdot \left(U - U*\right)\right)\right)}{Om}}{Om}\right)} \cdot \left(2 \cdot n\right)} \]
                                      2. lower-fma.f64N/A

                                        \[\leadsto \sqrt{\color{blue}{\mathsf{fma}\left(U, t, -1 \cdot \frac{2 \cdot \left(U \cdot {\ell}^{2}\right) + \frac{U \cdot \left({\ell}^{2} \cdot \left(n \cdot \left(U - U*\right)\right)\right)}{Om}}{Om}\right)} \cdot \left(2 \cdot n\right)} \]
                                      3. mul-1-negN/A

                                        \[\leadsto \sqrt{\mathsf{fma}\left(U, t, \color{blue}{\mathsf{neg}\left(\frac{2 \cdot \left(U \cdot {\ell}^{2}\right) + \frac{U \cdot \left({\ell}^{2} \cdot \left(n \cdot \left(U - U*\right)\right)\right)}{Om}}{Om}\right)}\right) \cdot \left(2 \cdot n\right)} \]
                                      4. lower-neg.f64N/A

                                        \[\leadsto \sqrt{\mathsf{fma}\left(U, t, \color{blue}{-\frac{2 \cdot \left(U \cdot {\ell}^{2}\right) + \frac{U \cdot \left({\ell}^{2} \cdot \left(n \cdot \left(U - U*\right)\right)\right)}{Om}}{Om}}\right) \cdot \left(2 \cdot n\right)} \]
                                      5. lower-/.f64N/A

                                        \[\leadsto \sqrt{\mathsf{fma}\left(U, t, -\color{blue}{\frac{2 \cdot \left(U \cdot {\ell}^{2}\right) + \frac{U \cdot \left({\ell}^{2} \cdot \left(n \cdot \left(U - U*\right)\right)\right)}{Om}}{Om}}\right) \cdot \left(2 \cdot n\right)} \]
                                    9. Applied rewrites52.4%

                                      \[\leadsto \sqrt{\color{blue}{\mathsf{fma}\left(U, t, -\frac{\mathsf{fma}\left(U, \left(\ell \cdot \ell\right) \cdot \frac{\left(U - U*\right) \cdot n}{Om}, \left(\left(\ell \cdot \ell\right) \cdot U\right) \cdot 2\right)}{Om}\right)} \cdot \left(2 \cdot n\right)} \]
                                  7. Recombined 3 regimes into one program.
                                  8. Final simplification57.0%

                                    \[\leadsto \begin{array}{l} \mathbf{if}\;U* \leq -4.1 \cdot 10^{-60}:\\ \;\;\;\;\sqrt{\left(\left(\mathsf{fma}\left(\frac{\ell}{Om} \cdot \ell, -2, t\right) - \left(\ell \cdot \frac{n \cdot \ell}{Om \cdot Om}\right) \cdot \left(U - U*\right)\right) \cdot U\right) \cdot \left(2 \cdot n\right)}\\ \mathbf{elif}\;U* \leq 2.1 \cdot 10^{-13}:\\ \;\;\;\;\sqrt{\mathsf{fma}\left(n \cdot \left(U \cdot \left(\frac{\ell}{Om} \cdot \ell\right)\right), -4, \left(\left(n \cdot t\right) \cdot U\right) \cdot 2\right)}\\ \mathbf{else}:\\ \;\;\;\;\sqrt{\mathsf{fma}\left(U, t, \frac{\mathsf{fma}\left(U, \left(\ell \cdot \ell\right) \cdot \frac{\left(U - U*\right) \cdot n}{Om}, \left(\left(\ell \cdot \ell\right) \cdot U\right) \cdot 2\right)}{-Om}\right) \cdot \left(2 \cdot n\right)}\\ \end{array} \]
                                  9. Add Preprocessing

                                  Alternative 18: 55.7% accurate, 1.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.2 \cdot 10^{+126}:\\ \;\;\;\;\sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \mathsf{fma}\left(\left(n \cdot \left(U - U*\right)\right) \cdot \frac{-\ell}{Om}, \frac{\ell}{Om}, t\_1\right)}\\ \mathbf{else}:\\ \;\;\;\;\sqrt{\left(\left(t\_1 - \left(\frac{\ell}{Om} \cdot \left(\frac{\ell}{Om} \cdot n\right)\right) \cdot \left(U - U*\right)\right) \cdot U\right) \cdot \left(2 \cdot n\right)}\\ \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 -2.2e+126)
                                       (sqrt
                                        (* (* (* 2.0 n) U) (fma (* (* n (- U U*)) (/ (- l) Om)) (/ l Om) t_1)))
                                       (sqrt
                                        (* (* (- t_1 (* (* (/ l Om) (* (/ l Om) n)) (- U U*))) U) (* 2.0 n))))))
                                  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 <= -2.2e+126) {
                                  		tmp = sqrt((((2.0 * n) * U) * fma(((n * (U - U_42_)) * (-l / Om)), (l / Om), t_1)));
                                  	} else {
                                  		tmp = sqrt((((t_1 - (((l / Om) * ((l / Om) * n)) * (U - U_42_))) * U) * (2.0 * n)));
                                  	}
                                  	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 <= -2.2e+126)
                                  		tmp = sqrt(Float64(Float64(Float64(2.0 * n) * U) * fma(Float64(Float64(n * Float64(U - U_42_)) * Float64(Float64(-l) / Om)), Float64(l / Om), t_1)));
                                  	else
                                  		tmp = sqrt(Float64(Float64(Float64(t_1 - Float64(Float64(Float64(l / Om) * Float64(Float64(l / Om) * n)) * Float64(U - U_42_))) * U) * Float64(2.0 * n)));
                                  	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, -2.2e+126], N[Sqrt[N[(N[(N[(2.0 * n), $MachinePrecision] * U), $MachinePrecision] * N[(N[(N[(n * N[(U - U$42$), $MachinePrecision]), $MachinePrecision] * N[((-l) / Om), $MachinePrecision]), $MachinePrecision] * N[(l / Om), $MachinePrecision] + t$95$1), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], N[Sqrt[N[(N[(N[(t$95$1 - N[(N[(N[(l / Om), $MachinePrecision] * N[(N[(l / Om), $MachinePrecision] * n), $MachinePrecision]), $MachinePrecision] * N[(U - U$42$), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * U), $MachinePrecision] * N[(2.0 * n), $MachinePrecision]), $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.2 \cdot 10^{+126}:\\
                                  \;\;\;\;\sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \mathsf{fma}\left(\left(n \cdot \left(U - U*\right)\right) \cdot \frac{-\ell}{Om}, \frac{\ell}{Om}, t\_1\right)}\\
                                  
                                  \mathbf{else}:\\
                                  \;\;\;\;\sqrt{\left(\left(t\_1 - \left(\frac{\ell}{Om} \cdot \left(\frac{\ell}{Om} \cdot n\right)\right) \cdot \left(U - U*\right)\right) \cdot U\right) \cdot \left(2 \cdot n\right)}\\
                                  
                                  
                                  \end{array}
                                  \end{array}
                                  
                                  Derivation
                                  1. Split input into 2 regimes
                                  2. if U < -2.19999999999999999e126

                                    1. Initial program 59.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 \color{blue}{\left(\left(t - 2 \cdot \frac{\ell \cdot \ell}{Om}\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)}} \]
                                      2. 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)} \]
                                      3. lift-*.f64N/A

                                        \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(t - \color{blue}{2 \cdot \frac{\ell \cdot \ell}{Om}}\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
                                      4. fp-cancel-sub-sign-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 \cdot \ell}{Om}\right)} - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
                                      5. +-commutativeN/A

                                        \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\color{blue}{\left(\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. associate--l+N/A

                                        \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \color{blue}{\left(\left(\mathsf{neg}\left(2\right)\right) \cdot \frac{\ell \cdot \ell}{Om} + \left(t - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)\right)}} \]
                                      7. lift-/.f64N/A

                                        \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(\mathsf{neg}\left(2\right)\right) \cdot \color{blue}{\frac{\ell \cdot \ell}{Om}} + \left(t - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)\right)} \]
                                      8. lift-*.f64N/A

                                        \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(\mathsf{neg}\left(2\right)\right) \cdot \frac{\color{blue}{\ell \cdot \ell}}{Om} + \left(t - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)\right)} \]
                                      9. associate-/l*N/A

                                        \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(\mathsf{neg}\left(2\right)\right) \cdot \color{blue}{\left(\ell \cdot \frac{\ell}{Om}\right)} + \left(t - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)\right)} \]
                                      10. lift-/.f64N/A

                                        \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(\mathsf{neg}\left(2\right)\right) \cdot \left(\ell \cdot \color{blue}{\frac{\ell}{Om}}\right) + \left(t - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)\right)} \]
                                      11. *-commutativeN/A

                                        \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(\mathsf{neg}\left(2\right)\right) \cdot \color{blue}{\left(\frac{\ell}{Om} \cdot \ell\right)} + \left(t - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)\right)} \]
                                      12. associate-*r*N/A

                                        \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\color{blue}{\left(\left(\mathsf{neg}\left(2\right)\right) \cdot \frac{\ell}{Om}\right) \cdot \ell} + \left(t - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)\right)} \]
                                      13. lower-fma.f64N/A

                                        \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \color{blue}{\mathsf{fma}\left(\left(\mathsf{neg}\left(2\right)\right) \cdot \frac{\ell}{Om}, \ell, t - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)}} \]
                                      14. lower-*.f64N/A

                                        \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \mathsf{fma}\left(\color{blue}{\left(\mathsf{neg}\left(2\right)\right) \cdot \frac{\ell}{Om}}, \ell, t - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
                                      15. metadata-evalN/A

                                        \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \mathsf{fma}\left(\color{blue}{-2} \cdot \frac{\ell}{Om}, \ell, t - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
                                      16. lower--.f6469.5

                                        \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \mathsf{fma}\left(-2 \cdot \frac{\ell}{Om}, \ell, \color{blue}{t - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)}\right)} \]
                                      17. lift-*.f64N/A

                                        \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \mathsf{fma}\left(-2 \cdot \frac{\ell}{Om}, \ell, t - \color{blue}{\left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)}\right)} \]
                                    4. Applied rewrites69.5%

                                      \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \color{blue}{\mathsf{fma}\left(-2 \cdot \frac{\ell}{Om}, \ell, t - \left(n \cdot \left(U - U*\right)\right) \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right)}} \]
                                    5. Applied rewrites75.1%

                                      \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \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)}} \]

                                    if -2.19999999999999999e126 < U

                                    1. Initial program 50.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 \color{blue}{\left(\left(t - 2 \cdot \frac{\ell \cdot \ell}{Om}\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)}} \]
                                      2. 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)} \]
                                      3. lift-*.f64N/A

                                        \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(t - \color{blue}{2 \cdot \frac{\ell \cdot \ell}{Om}}\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
                                      4. fp-cancel-sub-sign-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 \cdot \ell}{Om}\right)} - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
                                      5. +-commutativeN/A

                                        \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\color{blue}{\left(\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. associate--l+N/A

                                        \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \color{blue}{\left(\left(\mathsf{neg}\left(2\right)\right) \cdot \frac{\ell \cdot \ell}{Om} + \left(t - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)\right)}} \]
                                      7. lift-/.f64N/A

                                        \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(\mathsf{neg}\left(2\right)\right) \cdot \color{blue}{\frac{\ell \cdot \ell}{Om}} + \left(t - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)\right)} \]
                                      8. lift-*.f64N/A

                                        \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(\mathsf{neg}\left(2\right)\right) \cdot \frac{\color{blue}{\ell \cdot \ell}}{Om} + \left(t - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)\right)} \]
                                      9. associate-/l*N/A

                                        \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(\mathsf{neg}\left(2\right)\right) \cdot \color{blue}{\left(\ell \cdot \frac{\ell}{Om}\right)} + \left(t - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)\right)} \]
                                      10. lift-/.f64N/A

                                        \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(\mathsf{neg}\left(2\right)\right) \cdot \left(\ell \cdot \color{blue}{\frac{\ell}{Om}}\right) + \left(t - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)\right)} \]
                                      11. *-commutativeN/A

                                        \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(\mathsf{neg}\left(2\right)\right) \cdot \color{blue}{\left(\frac{\ell}{Om} \cdot \ell\right)} + \left(t - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)\right)} \]
                                      12. associate-*r*N/A

                                        \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\color{blue}{\left(\left(\mathsf{neg}\left(2\right)\right) \cdot \frac{\ell}{Om}\right) \cdot \ell} + \left(t - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)\right)} \]
                                      13. lower-fma.f64N/A

                                        \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \color{blue}{\mathsf{fma}\left(\left(\mathsf{neg}\left(2\right)\right) \cdot \frac{\ell}{Om}, \ell, t - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)}} \]
                                      14. lower-*.f64N/A

                                        \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \mathsf{fma}\left(\color{blue}{\left(\mathsf{neg}\left(2\right)\right) \cdot \frac{\ell}{Om}}, \ell, t - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
                                      15. metadata-evalN/A

                                        \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \mathsf{fma}\left(\color{blue}{-2} \cdot \frac{\ell}{Om}, \ell, t - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
                                      16. lower--.f6455.3

                                        \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \mathsf{fma}\left(-2 \cdot \frac{\ell}{Om}, \ell, \color{blue}{t - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)}\right)} \]
                                      17. lift-*.f64N/A

                                        \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \mathsf{fma}\left(-2 \cdot \frac{\ell}{Om}, \ell, t - \color{blue}{\left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)}\right)} \]
                                    4. Applied rewrites52.3%

                                      \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \color{blue}{\mathsf{fma}\left(-2 \cdot \frac{\ell}{Om}, \ell, t - \left(n \cdot \left(U - U*\right)\right) \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right)}} \]
                                    5. Step-by-step derivation
                                      1. lift-*.f64N/A

                                        \[\leadsto \sqrt{\color{blue}{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \mathsf{fma}\left(-2 \cdot \frac{\ell}{Om}, \ell, t - \left(n \cdot \left(U - U*\right)\right) \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right)}} \]
                                      2. lift-*.f64N/A

                                        \[\leadsto \sqrt{\color{blue}{\left(\left(2 \cdot n\right) \cdot U\right)} \cdot \mathsf{fma}\left(-2 \cdot \frac{\ell}{Om}, \ell, t - \left(n \cdot \left(U - U*\right)\right) \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right)} \]
                                      3. associate-*l*N/A

                                        \[\leadsto \sqrt{\color{blue}{\left(2 \cdot n\right) \cdot \left(U \cdot \mathsf{fma}\left(-2 \cdot \frac{\ell}{Om}, \ell, t - \left(n \cdot \left(U - U*\right)\right) \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right)\right)}} \]
                                      4. lift-*.f64N/A

                                        \[\leadsto \sqrt{\color{blue}{\left(2 \cdot n\right)} \cdot \left(U \cdot \mathsf{fma}\left(-2 \cdot \frac{\ell}{Om}, \ell, t - \left(n \cdot \left(U - U*\right)\right) \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right)\right)} \]
                                      5. *-commutativeN/A

                                        \[\leadsto \sqrt{\color{blue}{\left(n \cdot 2\right)} \cdot \left(U \cdot \mathsf{fma}\left(-2 \cdot \frac{\ell}{Om}, \ell, t - \left(n \cdot \left(U - U*\right)\right) \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right)\right)} \]
                                      6. *-commutativeN/A

                                        \[\leadsto \sqrt{\color{blue}{\left(U \cdot \mathsf{fma}\left(-2 \cdot \frac{\ell}{Om}, \ell, t - \left(n \cdot \left(U - U*\right)\right) \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right)\right) \cdot \left(n \cdot 2\right)}} \]
                                      7. lower-*.f64N/A

                                        \[\leadsto \sqrt{\color{blue}{\left(U \cdot \mathsf{fma}\left(-2 \cdot \frac{\ell}{Om}, \ell, t - \left(n \cdot \left(U - U*\right)\right) \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right)\right) \cdot \left(n \cdot 2\right)}} \]
                                    6. Applied rewrites58.0%

                                      \[\leadsto \sqrt{\color{blue}{\left(\left(\mathsf{fma}\left(\frac{\ell}{Om} \cdot \ell, -2, t\right) - \left({\left(\frac{\ell}{Om}\right)}^{2} \cdot n\right) \cdot \left(U - U*\right)\right) \cdot U\right) \cdot \left(2 \cdot n\right)}} \]
                                    7. Step-by-step derivation
                                      1. lift-*.f64N/A

                                        \[\leadsto \sqrt{\left(\left(\mathsf{fma}\left(\frac{\ell}{Om} \cdot \ell, -2, t\right) - \color{blue}{\left({\left(\frac{\ell}{Om}\right)}^{2} \cdot n\right)} \cdot \left(U - U*\right)\right) \cdot U\right) \cdot \left(2 \cdot n\right)} \]
                                      2. lift-pow.f64N/A

                                        \[\leadsto \sqrt{\left(\left(\mathsf{fma}\left(\frac{\ell}{Om} \cdot \ell, -2, t\right) - \left(\color{blue}{{\left(\frac{\ell}{Om}\right)}^{2}} \cdot n\right) \cdot \left(U - U*\right)\right) \cdot U\right) \cdot \left(2 \cdot n\right)} \]
                                      3. unpow2N/A

                                        \[\leadsto \sqrt{\left(\left(\mathsf{fma}\left(\frac{\ell}{Om} \cdot \ell, -2, t\right) - \left(\color{blue}{\left(\frac{\ell}{Om} \cdot \frac{\ell}{Om}\right)} \cdot n\right) \cdot \left(U - U*\right)\right) \cdot U\right) \cdot \left(2 \cdot n\right)} \]
                                      4. associate-*l*N/A

                                        \[\leadsto \sqrt{\left(\left(\mathsf{fma}\left(\frac{\ell}{Om} \cdot \ell, -2, t\right) - \color{blue}{\left(\frac{\ell}{Om} \cdot \left(\frac{\ell}{Om} \cdot n\right)\right)} \cdot \left(U - U*\right)\right) \cdot U\right) \cdot \left(2 \cdot n\right)} \]
                                      5. lower-*.f64N/A

                                        \[\leadsto \sqrt{\left(\left(\mathsf{fma}\left(\frac{\ell}{Om} \cdot \ell, -2, t\right) - \color{blue}{\left(\frac{\ell}{Om} \cdot \left(\frac{\ell}{Om} \cdot n\right)\right)} \cdot \left(U - U*\right)\right) \cdot U\right) \cdot \left(2 \cdot n\right)} \]
                                      6. lower-*.f6459.8

                                        \[\leadsto \sqrt{\left(\left(\mathsf{fma}\left(\frac{\ell}{Om} \cdot \ell, -2, t\right) - \left(\frac{\ell}{Om} \cdot \color{blue}{\left(\frac{\ell}{Om} \cdot n\right)}\right) \cdot \left(U - U*\right)\right) \cdot U\right) \cdot \left(2 \cdot n\right)} \]
                                    8. Applied rewrites59.8%

                                      \[\leadsto \sqrt{\left(\left(\mathsf{fma}\left(\frac{\ell}{Om} \cdot \ell, -2, t\right) - \color{blue}{\left(\frac{\ell}{Om} \cdot \left(\frac{\ell}{Om} \cdot n\right)\right)} \cdot \left(U - U*\right)\right) \cdot U\right) \cdot \left(2 \cdot n\right)} \]
                                  3. Recombined 2 regimes into one program.
                                  4. Final simplification60.9%

                                    \[\leadsto \begin{array}{l} \mathbf{if}\;U \leq -2.2 \cdot 10^{+126}:\\ \;\;\;\;\sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \mathsf{fma}\left(\left(n \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)}\\ \mathbf{else}:\\ \;\;\;\;\sqrt{\left(\left(\mathsf{fma}\left(\frac{\ell}{Om} \cdot \ell, -2, t\right) - \left(\frac{\ell}{Om} \cdot \left(\frac{\ell}{Om} \cdot n\right)\right) \cdot \left(U - U*\right)\right) \cdot U\right) \cdot \left(2 \cdot n\right)}\\ \end{array} \]
                                  5. Add Preprocessing

                                  Alternative 19: 42.9% accurate, 1.9× speedup?

                                  \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;\ell \leq 1.35 \cdot 10^{-144}:\\ \;\;\;\;\sqrt{\left(\left(U \cdot n\right) \cdot t\right) \cdot 2}\\ \mathbf{elif}\;\ell \leq 7.6 \cdot 10^{+65}:\\ \;\;\;\;\sqrt{\left(\mathsf{fma}\left(\frac{\mathsf{fma}\left(\ell \cdot \ell, \frac{\left(U - U*\right) \cdot n}{Om}, \left(\ell \cdot \ell\right) \cdot 2\right)}{Om}, -1, t\right) \cdot U\right) \cdot \left(2 \cdot n\right)}\\ \mathbf{else}:\\ \;\;\;\;\sqrt{\mathsf{fma}\left(\ell \cdot \left(\left(n \cdot \ell\right) \cdot \frac{U}{Om}\right), -4, \left(\left(n \cdot t\right) \cdot U\right) \cdot 2\right)}\\ \end{array} \end{array} \]
                                  (FPCore (n U t l Om U*)
                                   :precision binary64
                                   (if (<= l 1.35e-144)
                                     (sqrt (* (* (* U n) t) 2.0))
                                     (if (<= l 7.6e+65)
                                       (sqrt
                                        (*
                                         (*
                                          (fma (/ (fma (* l l) (/ (* (- U U*) n) Om) (* (* l l) 2.0)) Om) -1.0 t)
                                          U)
                                         (* 2.0 n)))
                                       (sqrt (fma (* l (* (* n l) (/ U Om))) -4.0 (* (* (* n t) U) 2.0))))))
                                  double code(double n, double U, double t, double l, double Om, double U_42_) {
                                  	double tmp;
                                  	if (l <= 1.35e-144) {
                                  		tmp = sqrt((((U * n) * t) * 2.0));
                                  	} else if (l <= 7.6e+65) {
                                  		tmp = sqrt(((fma((fma((l * l), (((U - U_42_) * n) / Om), ((l * l) * 2.0)) / Om), -1.0, t) * U) * (2.0 * n)));
                                  	} else {
                                  		tmp = sqrt(fma((l * ((n * l) * (U / Om))), -4.0, (((n * t) * U) * 2.0)));
                                  	}
                                  	return tmp;
                                  }
                                  
                                  function code(n, U, t, l, Om, U_42_)
                                  	tmp = 0.0
                                  	if (l <= 1.35e-144)
                                  		tmp = sqrt(Float64(Float64(Float64(U * n) * t) * 2.0));
                                  	elseif (l <= 7.6e+65)
                                  		tmp = sqrt(Float64(Float64(fma(Float64(fma(Float64(l * l), Float64(Float64(Float64(U - U_42_) * n) / Om), Float64(Float64(l * l) * 2.0)) / Om), -1.0, t) * U) * Float64(2.0 * n)));
                                  	else
                                  		tmp = sqrt(fma(Float64(l * Float64(Float64(n * l) * Float64(U / Om))), -4.0, Float64(Float64(Float64(n * t) * U) * 2.0)));
                                  	end
                                  	return tmp
                                  end
                                  
                                  code[n_, U_, t_, l_, Om_, U$42$_] := If[LessEqual[l, 1.35e-144], N[Sqrt[N[(N[(N[(U * n), $MachinePrecision] * t), $MachinePrecision] * 2.0), $MachinePrecision]], $MachinePrecision], If[LessEqual[l, 7.6e+65], N[Sqrt[N[(N[(N[(N[(N[(N[(l * l), $MachinePrecision] * N[(N[(N[(U - U$42$), $MachinePrecision] * n), $MachinePrecision] / Om), $MachinePrecision] + N[(N[(l * l), $MachinePrecision] * 2.0), $MachinePrecision]), $MachinePrecision] / Om), $MachinePrecision] * -1.0 + t), $MachinePrecision] * U), $MachinePrecision] * N[(2.0 * n), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], N[Sqrt[N[(N[(l * N[(N[(n * l), $MachinePrecision] * N[(U / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * -4.0 + N[(N[(N[(n * t), $MachinePrecision] * U), $MachinePrecision] * 2.0), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]]]
                                  
                                  \begin{array}{l}
                                  
                                  \\
                                  \begin{array}{l}
                                  \mathbf{if}\;\ell \leq 1.35 \cdot 10^{-144}:\\
                                  \;\;\;\;\sqrt{\left(\left(U \cdot n\right) \cdot t\right) \cdot 2}\\
                                  
                                  \mathbf{elif}\;\ell \leq 7.6 \cdot 10^{+65}:\\
                                  \;\;\;\;\sqrt{\left(\mathsf{fma}\left(\frac{\mathsf{fma}\left(\ell \cdot \ell, \frac{\left(U - U*\right) \cdot n}{Om}, \left(\ell \cdot \ell\right) \cdot 2\right)}{Om}, -1, t\right) \cdot U\right) \cdot \left(2 \cdot n\right)}\\
                                  
                                  \mathbf{else}:\\
                                  \;\;\;\;\sqrt{\mathsf{fma}\left(\ell \cdot \left(\left(n \cdot \ell\right) \cdot \frac{U}{Om}\right), -4, \left(\left(n \cdot t\right) \cdot U\right) \cdot 2\right)}\\
                                  
                                  
                                  \end{array}
                                  \end{array}
                                  
                                  Derivation
                                  1. Split input into 3 regimes
                                  2. if l < 1.34999999999999988e-144

                                    1. Initial program 50.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-*.f6435.9

                                        \[\leadsto \sqrt{\left(\color{blue}{\left(n \cdot t\right)} \cdot U\right) \cdot 2} \]
                                    5. Applied rewrites35.9%

                                      \[\leadsto \sqrt{\color{blue}{\left(\left(n \cdot t\right) \cdot U\right) \cdot 2}} \]
                                    6. Step-by-step derivation
                                      1. Applied rewrites35.5%

                                        \[\leadsto \sqrt{\left(\left(U \cdot n\right) \cdot t\right) \cdot 2} \]

                                      if 1.34999999999999988e-144 < l < 7.60000000000000022e65

                                      1. Initial program 67.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 \color{blue}{\left(\left(t - 2 \cdot \frac{\ell \cdot \ell}{Om}\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)}} \]
                                        2. 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)} \]
                                        3. lift-*.f64N/A

                                          \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(t - \color{blue}{2 \cdot \frac{\ell \cdot \ell}{Om}}\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
                                        4. fp-cancel-sub-sign-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 \cdot \ell}{Om}\right)} - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
                                        5. +-commutativeN/A

                                          \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\color{blue}{\left(\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. associate--l+N/A

                                          \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \color{blue}{\left(\left(\mathsf{neg}\left(2\right)\right) \cdot \frac{\ell \cdot \ell}{Om} + \left(t - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)\right)}} \]
                                        7. lift-/.f64N/A

                                          \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(\mathsf{neg}\left(2\right)\right) \cdot \color{blue}{\frac{\ell \cdot \ell}{Om}} + \left(t - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)\right)} \]
                                        8. lift-*.f64N/A

                                          \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(\mathsf{neg}\left(2\right)\right) \cdot \frac{\color{blue}{\ell \cdot \ell}}{Om} + \left(t - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)\right)} \]
                                        9. associate-/l*N/A

                                          \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(\mathsf{neg}\left(2\right)\right) \cdot \color{blue}{\left(\ell \cdot \frac{\ell}{Om}\right)} + \left(t - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)\right)} \]
                                        10. lift-/.f64N/A

                                          \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(\mathsf{neg}\left(2\right)\right) \cdot \left(\ell \cdot \color{blue}{\frac{\ell}{Om}}\right) + \left(t - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)\right)} \]
                                        11. *-commutativeN/A

                                          \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(\mathsf{neg}\left(2\right)\right) \cdot \color{blue}{\left(\frac{\ell}{Om} \cdot \ell\right)} + \left(t - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)\right)} \]
                                        12. associate-*r*N/A

                                          \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\color{blue}{\left(\left(\mathsf{neg}\left(2\right)\right) \cdot \frac{\ell}{Om}\right) \cdot \ell} + \left(t - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)\right)} \]
                                        13. lower-fma.f64N/A

                                          \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \color{blue}{\mathsf{fma}\left(\left(\mathsf{neg}\left(2\right)\right) \cdot \frac{\ell}{Om}, \ell, t - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)}} \]
                                        14. lower-*.f64N/A

                                          \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \mathsf{fma}\left(\color{blue}{\left(\mathsf{neg}\left(2\right)\right) \cdot \frac{\ell}{Om}}, \ell, t - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
                                        15. metadata-evalN/A

                                          \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \mathsf{fma}\left(\color{blue}{-2} \cdot \frac{\ell}{Om}, \ell, t - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
                                        16. lower--.f6467.8

                                          \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \mathsf{fma}\left(-2 \cdot \frac{\ell}{Om}, \ell, \color{blue}{t - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)}\right)} \]
                                        17. lift-*.f64N/A

                                          \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \mathsf{fma}\left(-2 \cdot \frac{\ell}{Om}, \ell, t - \color{blue}{\left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)}\right)} \]
                                      4. Applied rewrites67.8%

                                        \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \color{blue}{\mathsf{fma}\left(-2 \cdot \frac{\ell}{Om}, \ell, t - \left(n \cdot \left(U - U*\right)\right) \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right)}} \]
                                      5. Step-by-step derivation
                                        1. lift-*.f64N/A

                                          \[\leadsto \sqrt{\color{blue}{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \mathsf{fma}\left(-2 \cdot \frac{\ell}{Om}, \ell, t - \left(n \cdot \left(U - U*\right)\right) \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right)}} \]
                                        2. lift-*.f64N/A

                                          \[\leadsto \sqrt{\color{blue}{\left(\left(2 \cdot n\right) \cdot U\right)} \cdot \mathsf{fma}\left(-2 \cdot \frac{\ell}{Om}, \ell, t - \left(n \cdot \left(U - U*\right)\right) \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right)} \]
                                        3. associate-*l*N/A

                                          \[\leadsto \sqrt{\color{blue}{\left(2 \cdot n\right) \cdot \left(U \cdot \mathsf{fma}\left(-2 \cdot \frac{\ell}{Om}, \ell, t - \left(n \cdot \left(U - U*\right)\right) \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right)\right)}} \]
                                        4. lift-*.f64N/A

                                          \[\leadsto \sqrt{\color{blue}{\left(2 \cdot n\right)} \cdot \left(U \cdot \mathsf{fma}\left(-2 \cdot \frac{\ell}{Om}, \ell, t - \left(n \cdot \left(U - U*\right)\right) \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right)\right)} \]
                                        5. *-commutativeN/A

                                          \[\leadsto \sqrt{\color{blue}{\left(n \cdot 2\right)} \cdot \left(U \cdot \mathsf{fma}\left(-2 \cdot \frac{\ell}{Om}, \ell, t - \left(n \cdot \left(U - U*\right)\right) \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right)\right)} \]
                                        6. *-commutativeN/A

                                          \[\leadsto \sqrt{\color{blue}{\left(U \cdot \mathsf{fma}\left(-2 \cdot \frac{\ell}{Om}, \ell, t - \left(n \cdot \left(U - U*\right)\right) \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right)\right) \cdot \left(n \cdot 2\right)}} \]
                                        7. lower-*.f64N/A

                                          \[\leadsto \sqrt{\color{blue}{\left(U \cdot \mathsf{fma}\left(-2 \cdot \frac{\ell}{Om}, \ell, t - \left(n \cdot \left(U - U*\right)\right) \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right)\right) \cdot \left(n \cdot 2\right)}} \]
                                      6. Applied rewrites59.1%

                                        \[\leadsto \sqrt{\color{blue}{\left(\left(\mathsf{fma}\left(\frac{\ell}{Om} \cdot \ell, -2, t\right) - \left({\left(\frac{\ell}{Om}\right)}^{2} \cdot n\right) \cdot \left(U - U*\right)\right) \cdot U\right) \cdot \left(2 \cdot n\right)}} \]
                                      7. Taylor expanded in Om around -inf

                                        \[\leadsto \sqrt{\left(\color{blue}{\left(t + -1 \cdot \frac{2 \cdot {\ell}^{2} + \frac{{\ell}^{2} \cdot \left(n \cdot \left(U - U*\right)\right)}{Om}}{Om}\right)} \cdot U\right) \cdot \left(2 \cdot n\right)} \]
                                      8. Step-by-step derivation
                                        1. +-commutativeN/A

                                          \[\leadsto \sqrt{\left(\color{blue}{\left(-1 \cdot \frac{2 \cdot {\ell}^{2} + \frac{{\ell}^{2} \cdot \left(n \cdot \left(U - U*\right)\right)}{Om}}{Om} + t\right)} \cdot U\right) \cdot \left(2 \cdot n\right)} \]
                                        2. *-commutativeN/A

                                          \[\leadsto \sqrt{\left(\left(\color{blue}{\frac{2 \cdot {\ell}^{2} + \frac{{\ell}^{2} \cdot \left(n \cdot \left(U - U*\right)\right)}{Om}}{Om} \cdot -1} + t\right) \cdot U\right) \cdot \left(2 \cdot n\right)} \]
                                        3. lower-fma.f64N/A

                                          \[\leadsto \sqrt{\left(\color{blue}{\mathsf{fma}\left(\frac{2 \cdot {\ell}^{2} + \frac{{\ell}^{2} \cdot \left(n \cdot \left(U - U*\right)\right)}{Om}}{Om}, -1, t\right)} \cdot U\right) \cdot \left(2 \cdot n\right)} \]
                                      9. Applied rewrites65.3%

                                        \[\leadsto \sqrt{\left(\color{blue}{\mathsf{fma}\left(\frac{\mathsf{fma}\left(\ell \cdot \ell, \frac{\left(U - U*\right) \cdot n}{Om}, \left(\ell \cdot \ell\right) \cdot 2\right)}{Om}, -1, t\right)} \cdot U\right) \cdot \left(2 \cdot n\right)} \]

                                      if 7.60000000000000022e65 < l

                                      1. Initial program 44.4%

                                        \[\sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(t - 2 \cdot \frac{\ell \cdot \ell}{Om}\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
                                      2. Add Preprocessing
                                      3. Taylor expanded in 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-*.f6437.0

                                          \[\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 rewrites37.0%

                                        \[\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 rewrites48.9%

                                          \[\leadsto \sqrt{\mathsf{fma}\left(\ell \cdot \left(\left(n \cdot \ell\right) \cdot \frac{U}{Om}\right), -4, \left(\left(n \cdot t\right) \cdot U\right) \cdot 2\right)} \]
                                      7. Recombined 3 regimes into one program.
                                      8. Add Preprocessing

                                      Alternative 20: 51.1% accurate, 2.0× speedup?

                                      \[\begin{array}{l} \\ \begin{array}{l} t_1 := \frac{\ell}{Om} \cdot \ell\\ t_2 := \left(\left(n \cdot t\right) \cdot U\right) \cdot 2\\ \mathbf{if}\;Om \leq -2.4 \cdot 10^{-32}:\\ \;\;\;\;\sqrt{\mathsf{fma}\left(n \cdot \left(U \cdot t\_1\right), -4, t\_2\right)}\\ \mathbf{elif}\;Om \leq 4.6 \cdot 10^{-53}:\\ \;\;\;\;\sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \mathsf{fma}\left(\left(-\left(U - U*\right)\right) \cdot \frac{\ell}{Om}, \frac{\ell}{Om} \cdot n, \mathsf{fma}\left(n, 2, t\right)\right)}\\ \mathbf{else}:\\ \;\;\;\;\sqrt{\mathsf{fma}\left(U \cdot \left(t\_1 \cdot n\right), -4, t\_2\right)}\\ \end{array} \end{array} \]
                                      (FPCore (n U t l Om U*)
                                       :precision binary64
                                       (let* ((t_1 (* (/ l Om) l)) (t_2 (* (* (* n t) U) 2.0)))
                                         (if (<= Om -2.4e-32)
                                           (sqrt (fma (* n (* U t_1)) -4.0 t_2))
                                           (if (<= Om 4.6e-53)
                                             (sqrt
                                              (*
                                               (* (* 2.0 n) U)
                                               (fma (* (- (- U U*)) (/ l Om)) (* (/ l Om) n) (fma n 2.0 t))))
                                             (sqrt (fma (* U (* t_1 n)) -4.0 t_2))))))
                                      double code(double n, double U, double t, double l, double Om, double U_42_) {
                                      	double t_1 = (l / Om) * l;
                                      	double t_2 = ((n * t) * U) * 2.0;
                                      	double tmp;
                                      	if (Om <= -2.4e-32) {
                                      		tmp = sqrt(fma((n * (U * t_1)), -4.0, t_2));
                                      	} else if (Om <= 4.6e-53) {
                                      		tmp = sqrt((((2.0 * n) * U) * fma((-(U - U_42_) * (l / Om)), ((l / Om) * n), fma(n, 2.0, t))));
                                      	} else {
                                      		tmp = sqrt(fma((U * (t_1 * n)), -4.0, t_2));
                                      	}
                                      	return tmp;
                                      }
                                      
                                      function code(n, U, t, l, Om, U_42_)
                                      	t_1 = Float64(Float64(l / Om) * l)
                                      	t_2 = Float64(Float64(Float64(n * t) * U) * 2.0)
                                      	tmp = 0.0
                                      	if (Om <= -2.4e-32)
                                      		tmp = sqrt(fma(Float64(n * Float64(U * t_1)), -4.0, t_2));
                                      	elseif (Om <= 4.6e-53)
                                      		tmp = sqrt(Float64(Float64(Float64(2.0 * n) * U) * fma(Float64(Float64(-Float64(U - U_42_)) * Float64(l / Om)), Float64(Float64(l / Om) * n), fma(n, 2.0, t))));
                                      	else
                                      		tmp = sqrt(fma(Float64(U * Float64(t_1 * n)), -4.0, t_2));
                                      	end
                                      	return tmp
                                      end
                                      
                                      code[n_, U_, t_, l_, Om_, U$42$_] := Block[{t$95$1 = N[(N[(l / Om), $MachinePrecision] * l), $MachinePrecision]}, Block[{t$95$2 = N[(N[(N[(n * t), $MachinePrecision] * U), $MachinePrecision] * 2.0), $MachinePrecision]}, If[LessEqual[Om, -2.4e-32], N[Sqrt[N[(N[(n * N[(U * t$95$1), $MachinePrecision]), $MachinePrecision] * -4.0 + t$95$2), $MachinePrecision]], $MachinePrecision], If[LessEqual[Om, 4.6e-53], N[Sqrt[N[(N[(N[(2.0 * n), $MachinePrecision] * U), $MachinePrecision] * N[(N[((-N[(U - U$42$), $MachinePrecision]) * N[(l / Om), $MachinePrecision]), $MachinePrecision] * N[(N[(l / Om), $MachinePrecision] * n), $MachinePrecision] + N[(n * 2.0 + t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], N[Sqrt[N[(N[(U * N[(t$95$1 * n), $MachinePrecision]), $MachinePrecision] * -4.0 + t$95$2), $MachinePrecision]], $MachinePrecision]]]]]
                                      
                                      \begin{array}{l}
                                      
                                      \\
                                      \begin{array}{l}
                                      t_1 := \frac{\ell}{Om} \cdot \ell\\
                                      t_2 := \left(\left(n \cdot t\right) \cdot U\right) \cdot 2\\
                                      \mathbf{if}\;Om \leq -2.4 \cdot 10^{-32}:\\
                                      \;\;\;\;\sqrt{\mathsf{fma}\left(n \cdot \left(U \cdot t\_1\right), -4, t\_2\right)}\\
                                      
                                      \mathbf{elif}\;Om \leq 4.6 \cdot 10^{-53}:\\
                                      \;\;\;\;\sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \mathsf{fma}\left(\left(-\left(U - U*\right)\right) \cdot \frac{\ell}{Om}, \frac{\ell}{Om} \cdot n, \mathsf{fma}\left(n, 2, t\right)\right)}\\
                                      
                                      \mathbf{else}:\\
                                      \;\;\;\;\sqrt{\mathsf{fma}\left(U \cdot \left(t\_1 \cdot n\right), -4, t\_2\right)}\\
                                      
                                      
                                      \end{array}
                                      \end{array}
                                      
                                      Derivation
                                      1. Split input into 3 regimes
                                      2. if Om < -2.4000000000000001e-32

                                        1. Initial program 59.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 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-*.f6450.7

                                            \[\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 rewrites50.7%

                                          \[\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 rewrites62.0%

                                            \[\leadsto \sqrt{\mathsf{fma}\left(n \cdot \left(U \cdot \left(\frac{\ell}{Om} \cdot \ell\right)\right), -4, \left(\left(n \cdot t\right) \cdot U\right) \cdot 2\right)} \]

                                          if -2.4000000000000001e-32 < Om < 4.6000000000000003e-53

                                          1. Initial program 44.0%

                                            \[\sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(t - 2 \cdot \frac{\ell \cdot \ell}{Om}\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
                                          2. Add Preprocessing
                                          3. Step-by-step derivation
                                            1. lift--.f64N/A

                                              \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \color{blue}{\left(\left(t - 2 \cdot \frac{\ell \cdot \ell}{Om}\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)}} \]
                                            2. lift-*.f64N/A

                                              \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(t - 2 \cdot \frac{\ell \cdot \ell}{Om}\right) - \color{blue}{\left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)}\right)} \]
                                            3. fp-cancel-sub-sign-invN/A

                                              \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \color{blue}{\left(\left(t - 2 \cdot \frac{\ell \cdot \ell}{Om}\right) + \left(\mathsf{neg}\left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right)\right) \cdot \left(U - U*\right)\right)}} \]
                                            4. +-commutativeN/A

                                              \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \color{blue}{\left(\left(\mathsf{neg}\left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right)\right) \cdot \left(U - U*\right) + \left(t - 2 \cdot \frac{\ell \cdot \ell}{Om}\right)\right)}} \]
                                            5. *-commutativeN/A

                                              \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\color{blue}{\left(U - U*\right) \cdot \left(\mathsf{neg}\left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right)\right)} + \left(t - 2 \cdot \frac{\ell \cdot \ell}{Om}\right)\right)} \]
                                            6. distribute-rgt-neg-inN/A

                                              \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\color{blue}{\left(\mathsf{neg}\left(\left(U - U*\right) \cdot \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right)\right)\right)} + \left(t - 2 \cdot \frac{\ell \cdot \ell}{Om}\right)\right)} \]
                                            7. distribute-lft-neg-inN/A

                                              \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\color{blue}{\left(\mathsf{neg}\left(\left(U - U*\right)\right)\right) \cdot \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right)} + \left(t - 2 \cdot \frac{\ell \cdot \ell}{Om}\right)\right)} \]
                                            8. lift-*.f64N/A

                                              \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(\mathsf{neg}\left(\left(U - U*\right)\right)\right) \cdot \color{blue}{\left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right)} + \left(t - 2 \cdot \frac{\ell \cdot \ell}{Om}\right)\right)} \]
                                            9. *-commutativeN/A

                                              \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(\mathsf{neg}\left(\left(U - U*\right)\right)\right) \cdot \color{blue}{\left({\left(\frac{\ell}{Om}\right)}^{2} \cdot n\right)} + \left(t - 2 \cdot \frac{\ell \cdot \ell}{Om}\right)\right)} \]
                                            10. lift-pow.f64N/A

                                              \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(\mathsf{neg}\left(\left(U - U*\right)\right)\right) \cdot \left(\color{blue}{{\left(\frac{\ell}{Om}\right)}^{2}} \cdot n\right) + \left(t - 2 \cdot \frac{\ell \cdot \ell}{Om}\right)\right)} \]
                                            11. unpow2N/A

                                              \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(\mathsf{neg}\left(\left(U - U*\right)\right)\right) \cdot \left(\color{blue}{\left(\frac{\ell}{Om} \cdot \frac{\ell}{Om}\right)} \cdot n\right) + \left(t - 2 \cdot \frac{\ell \cdot \ell}{Om}\right)\right)} \]
                                            12. associate-*l*N/A

                                              \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(\mathsf{neg}\left(\left(U - U*\right)\right)\right) \cdot \color{blue}{\left(\frac{\ell}{Om} \cdot \left(\frac{\ell}{Om} \cdot n\right)\right)} + \left(t - 2 \cdot \frac{\ell \cdot \ell}{Om}\right)\right)} \]
                                            13. associate-*r*N/A

                                              \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\color{blue}{\left(\left(\mathsf{neg}\left(\left(U - U*\right)\right)\right) \cdot \frac{\ell}{Om}\right) \cdot \left(\frac{\ell}{Om} \cdot n\right)} + \left(t - 2 \cdot \frac{\ell \cdot \ell}{Om}\right)\right)} \]
                                            14. lower-fma.f64N/A

                                              \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \color{blue}{\mathsf{fma}\left(\left(\mathsf{neg}\left(\left(U - U*\right)\right)\right) \cdot \frac{\ell}{Om}, \frac{\ell}{Om} \cdot n, t - 2 \cdot \frac{\ell \cdot \ell}{Om}\right)}} \]
                                          4. Applied rewrites42.3%

                                            \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \color{blue}{\mathsf{fma}\left(\left(-\left(U - U*\right)\right) \cdot \frac{\ell}{Om}, \frac{\ell}{Om} \cdot n, \mathsf{fma}\left(n, 2, t\right)\right)}} \]

                                          if 4.6000000000000003e-53 < Om

                                          1. Initial program 53.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 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-*.f6455.6

                                              \[\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 rewrites55.6%

                                            \[\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 rewrites62.0%

                                              \[\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)} \]
                                          7. Recombined 3 regimes into one program.
                                          8. Add Preprocessing

                                          Alternative 21: 44.8% accurate, 3.3× speedup?

                                          \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;t \leq 2.95 \cdot 10^{+159}:\\ \;\;\;\;\sqrt{\left(\mathsf{fma}\left(\frac{\ell \cdot \ell}{Om}, -2, t\right) \cdot U\right) \cdot \left(2 \cdot n\right)}\\ \mathbf{else}:\\ \;\;\;\;\sqrt{2 \cdot t} \cdot \sqrt{U \cdot n}\\ \end{array} \end{array} \]
                                          (FPCore (n U t l Om U*)
                                           :precision binary64
                                           (if (<= t 2.95e+159)
                                             (sqrt (* (* (fma (/ (* l l) Om) -2.0 t) U) (* 2.0 n)))
                                             (* (sqrt (* 2.0 t)) (sqrt (* U n)))))
                                          double code(double n, double U, double t, double l, double Om, double U_42_) {
                                          	double tmp;
                                          	if (t <= 2.95e+159) {
                                          		tmp = sqrt(((fma(((l * l) / Om), -2.0, t) * U) * (2.0 * n)));
                                          	} else {
                                          		tmp = sqrt((2.0 * t)) * sqrt((U * n));
                                          	}
                                          	return tmp;
                                          }
                                          
                                          function code(n, U, t, l, Om, U_42_)
                                          	tmp = 0.0
                                          	if (t <= 2.95e+159)
                                          		tmp = sqrt(Float64(Float64(fma(Float64(Float64(l * l) / Om), -2.0, t) * U) * Float64(2.0 * n)));
                                          	else
                                          		tmp = Float64(sqrt(Float64(2.0 * t)) * sqrt(Float64(U * n)));
                                          	end
                                          	return tmp
                                          end
                                          
                                          code[n_, U_, t_, l_, Om_, U$42$_] := If[LessEqual[t, 2.95e+159], N[Sqrt[N[(N[(N[(N[(N[(l * l), $MachinePrecision] / Om), $MachinePrecision] * -2.0 + t), $MachinePrecision] * U), $MachinePrecision] * N[(2.0 * n), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], N[(N[Sqrt[N[(2.0 * t), $MachinePrecision]], $MachinePrecision] * N[Sqrt[N[(U * n), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]]
                                          
                                          \begin{array}{l}
                                          
                                          \\
                                          \begin{array}{l}
                                          \mathbf{if}\;t \leq 2.95 \cdot 10^{+159}:\\
                                          \;\;\;\;\sqrt{\left(\mathsf{fma}\left(\frac{\ell \cdot \ell}{Om}, -2, t\right) \cdot U\right) \cdot \left(2 \cdot n\right)}\\
                                          
                                          \mathbf{else}:\\
                                          \;\;\;\;\sqrt{2 \cdot t} \cdot \sqrt{U \cdot n}\\
                                          
                                          
                                          \end{array}
                                          \end{array}
                                          
                                          Derivation
                                          1. Split input into 2 regimes
                                          2. if t < 2.94999999999999996e159

                                            1. Initial program 51.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 \color{blue}{\left(\left(t - 2 \cdot \frac{\ell \cdot \ell}{Om}\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)}} \]
                                              2. 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)} \]
                                              3. lift-*.f64N/A

                                                \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(t - \color{blue}{2 \cdot \frac{\ell \cdot \ell}{Om}}\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
                                              4. fp-cancel-sub-sign-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 \cdot \ell}{Om}\right)} - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
                                              5. +-commutativeN/A

                                                \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\color{blue}{\left(\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. associate--l+N/A

                                                \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \color{blue}{\left(\left(\mathsf{neg}\left(2\right)\right) \cdot \frac{\ell \cdot \ell}{Om} + \left(t - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)\right)}} \]
                                              7. lift-/.f64N/A

                                                \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(\mathsf{neg}\left(2\right)\right) \cdot \color{blue}{\frac{\ell \cdot \ell}{Om}} + \left(t - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)\right)} \]
                                              8. lift-*.f64N/A

                                                \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(\mathsf{neg}\left(2\right)\right) \cdot \frac{\color{blue}{\ell \cdot \ell}}{Om} + \left(t - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)\right)} \]
                                              9. associate-/l*N/A

                                                \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(\mathsf{neg}\left(2\right)\right) \cdot \color{blue}{\left(\ell \cdot \frac{\ell}{Om}\right)} + \left(t - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)\right)} \]
                                              10. lift-/.f64N/A

                                                \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(\mathsf{neg}\left(2\right)\right) \cdot \left(\ell \cdot \color{blue}{\frac{\ell}{Om}}\right) + \left(t - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)\right)} \]
                                              11. *-commutativeN/A

                                                \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(\mathsf{neg}\left(2\right)\right) \cdot \color{blue}{\left(\frac{\ell}{Om} \cdot \ell\right)} + \left(t - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)\right)} \]
                                              12. associate-*r*N/A

                                                \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\color{blue}{\left(\left(\mathsf{neg}\left(2\right)\right) \cdot \frac{\ell}{Om}\right) \cdot \ell} + \left(t - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)\right)} \]
                                              13. lower-fma.f64N/A

                                                \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \color{blue}{\mathsf{fma}\left(\left(\mathsf{neg}\left(2\right)\right) \cdot \frac{\ell}{Om}, \ell, t - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)}} \]
                                              14. lower-*.f64N/A

                                                \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \mathsf{fma}\left(\color{blue}{\left(\mathsf{neg}\left(2\right)\right) \cdot \frac{\ell}{Om}}, \ell, t - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
                                              15. metadata-evalN/A

                                                \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \mathsf{fma}\left(\color{blue}{-2} \cdot \frac{\ell}{Om}, \ell, t - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
                                              16. lower--.f6456.0

                                                \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \mathsf{fma}\left(-2 \cdot \frac{\ell}{Om}, \ell, \color{blue}{t - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)}\right)} \]
                                              17. lift-*.f64N/A

                                                \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \mathsf{fma}\left(-2 \cdot \frac{\ell}{Om}, \ell, t - \color{blue}{\left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)}\right)} \]
                                            4. Applied rewrites54.1%

                                              \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \color{blue}{\mathsf{fma}\left(-2 \cdot \frac{\ell}{Om}, \ell, t - \left(n \cdot \left(U - U*\right)\right) \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right)}} \]
                                            5. Step-by-step derivation
                                              1. lift-*.f64N/A

                                                \[\leadsto \sqrt{\color{blue}{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \mathsf{fma}\left(-2 \cdot \frac{\ell}{Om}, \ell, t - \left(n \cdot \left(U - U*\right)\right) \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right)}} \]
                                              2. lift-*.f64N/A

                                                \[\leadsto \sqrt{\color{blue}{\left(\left(2 \cdot n\right) \cdot U\right)} \cdot \mathsf{fma}\left(-2 \cdot \frac{\ell}{Om}, \ell, t - \left(n \cdot \left(U - U*\right)\right) \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right)} \]
                                              3. associate-*l*N/A

                                                \[\leadsto \sqrt{\color{blue}{\left(2 \cdot n\right) \cdot \left(U \cdot \mathsf{fma}\left(-2 \cdot \frac{\ell}{Om}, \ell, t - \left(n \cdot \left(U - U*\right)\right) \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right)\right)}} \]
                                              4. lift-*.f64N/A

                                                \[\leadsto \sqrt{\color{blue}{\left(2 \cdot n\right)} \cdot \left(U \cdot \mathsf{fma}\left(-2 \cdot \frac{\ell}{Om}, \ell, t - \left(n \cdot \left(U - U*\right)\right) \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right)\right)} \]
                                              5. *-commutativeN/A

                                                \[\leadsto \sqrt{\color{blue}{\left(n \cdot 2\right)} \cdot \left(U \cdot \mathsf{fma}\left(-2 \cdot \frac{\ell}{Om}, \ell, t - \left(n \cdot \left(U - U*\right)\right) \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right)\right)} \]
                                              6. *-commutativeN/A

                                                \[\leadsto \sqrt{\color{blue}{\left(U \cdot \mathsf{fma}\left(-2 \cdot \frac{\ell}{Om}, \ell, t - \left(n \cdot \left(U - U*\right)\right) \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right)\right) \cdot \left(n \cdot 2\right)}} \]
                                              7. lower-*.f64N/A

                                                \[\leadsto \sqrt{\color{blue}{\left(U \cdot \mathsf{fma}\left(-2 \cdot \frac{\ell}{Om}, \ell, t - \left(n \cdot \left(U - U*\right)\right) \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right)\right) \cdot \left(n \cdot 2\right)}} \]
                                            6. Applied rewrites57.2%

                                              \[\leadsto \sqrt{\color{blue}{\left(\left(\mathsf{fma}\left(\frac{\ell}{Om} \cdot \ell, -2, t\right) - \left({\left(\frac{\ell}{Om}\right)}^{2} \cdot n\right) \cdot \left(U - U*\right)\right) \cdot U\right) \cdot \left(2 \cdot n\right)}} \]
                                            7. Taylor expanded in n around 0

                                              \[\leadsto \sqrt{\left(\color{blue}{\left(t + -2 \cdot \frac{{\ell}^{2}}{Om}\right)} \cdot U\right) \cdot \left(2 \cdot n\right)} \]
                                            8. Step-by-step derivation
                                              1. +-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)} \]
                                              2. *-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)} \]
                                              3. 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)} \]
                                              4. 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)} \]
                                              5. 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)} \]
                                              6. lower-*.f6444.3

                                                \[\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 rewrites44.3%

                                              \[\leadsto \sqrt{\left(\color{blue}{\mathsf{fma}\left(\frac{\ell \cdot \ell}{Om}, -2, t\right)} \cdot U\right) \cdot \left(2 \cdot n\right)} \]

                                            if 2.94999999999999996e159 < t

                                            1. Initial program 48.7%

                                              \[\sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(t - 2 \cdot \frac{\ell \cdot \ell}{Om}\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
                                            2. Add Preprocessing
                                            3. Step-by-step derivation
                                              1. lift-sqrt.f64N/A

                                                \[\leadsto \color{blue}{\sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(t - 2 \cdot \frac{\ell \cdot \ell}{Om}\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)}} \]
                                              2. lift-*.f64N/A

                                                \[\leadsto \sqrt{\color{blue}{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(t - 2 \cdot \frac{\ell \cdot \ell}{Om}\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)}} \]
                                              3. *-commutativeN/A

                                                \[\leadsto \sqrt{\color{blue}{\left(\left(t - 2 \cdot \frac{\ell \cdot \ell}{Om}\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right) \cdot \left(\left(2 \cdot n\right) \cdot U\right)}} \]
                                              4. lift-*.f64N/A

                                                \[\leadsto \sqrt{\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) \cdot \color{blue}{\left(\left(2 \cdot n\right) \cdot U\right)}} \]
                                              5. lift-*.f64N/A

                                                \[\leadsto \sqrt{\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) \cdot \left(\color{blue}{\left(2 \cdot n\right)} \cdot U\right)} \]
                                              6. associate-*l*N/A

                                                \[\leadsto \sqrt{\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) \cdot \color{blue}{\left(2 \cdot \left(n \cdot U\right)\right)}} \]
                                              7. associate-*r*N/A

                                                \[\leadsto \sqrt{\color{blue}{\left(\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) \cdot 2\right) \cdot \left(n \cdot U\right)}} \]
                                              8. sqrt-prodN/A

                                                \[\leadsto \color{blue}{\sqrt{\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) \cdot 2} \cdot \sqrt{n \cdot U}} \]
                                              9. pow1/2N/A

                                                \[\leadsto \sqrt{\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) \cdot 2} \cdot \color{blue}{{\left(n \cdot U\right)}^{\frac{1}{2}}} \]
                                              10. lower-*.f64N/A

                                                \[\leadsto \color{blue}{\sqrt{\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) \cdot 2} \cdot {\left(n \cdot U\right)}^{\frac{1}{2}}} \]
                                            4. Applied rewrites50.9%

                                              \[\leadsto \color{blue}{\sqrt{\left(\mathsf{fma}\left(n, 2, t\right) - \left(n \cdot \left(U - U*\right)\right) \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot 2} \cdot \sqrt{U \cdot n}} \]
                                            5. Taylor expanded in n around 0

                                              \[\leadsto \sqrt{\color{blue}{2 \cdot t}} \cdot \sqrt{U \cdot n} \]
                                            6. Step-by-step derivation
                                              1. lower-*.f6460.4

                                                \[\leadsto \sqrt{\color{blue}{2 \cdot t}} \cdot \sqrt{U \cdot n} \]
                                            7. Applied rewrites60.4%

                                              \[\leadsto \sqrt{\color{blue}{2 \cdot t}} \cdot \sqrt{U \cdot n} \]
                                          3. Recombined 2 regimes into one program.
                                          4. Add Preprocessing

                                          Alternative 22: 45.0% accurate, 3.3× speedup?

                                          \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;t \leq 7 \cdot 10^{+160}:\\ \;\;\;\;\sqrt{\left(\left(\mathsf{fma}\left(-2, \frac{\ell \cdot \ell}{Om}, t\right) \cdot n\right) \cdot U\right) \cdot 2}\\ \mathbf{else}:\\ \;\;\;\;\sqrt{2 \cdot t} \cdot \sqrt{U \cdot n}\\ \end{array} \end{array} \]
                                          (FPCore (n U t l Om U*)
                                           :precision binary64
                                           (if (<= t 7e+160)
                                             (sqrt (* (* (* (fma -2.0 (/ (* l l) Om) t) n) U) 2.0))
                                             (* (sqrt (* 2.0 t)) (sqrt (* U n)))))
                                          double code(double n, double U, double t, double l, double Om, double U_42_) {
                                          	double tmp;
                                          	if (t <= 7e+160) {
                                          		tmp = sqrt((((fma(-2.0, ((l * l) / Om), t) * n) * U) * 2.0));
                                          	} else {
                                          		tmp = sqrt((2.0 * t)) * sqrt((U * n));
                                          	}
                                          	return tmp;
                                          }
                                          
                                          function code(n, U, t, l, Om, U_42_)
                                          	tmp = 0.0
                                          	if (t <= 7e+160)
                                          		tmp = sqrt(Float64(Float64(Float64(fma(-2.0, Float64(Float64(l * l) / Om), t) * n) * U) * 2.0));
                                          	else
                                          		tmp = Float64(sqrt(Float64(2.0 * t)) * sqrt(Float64(U * n)));
                                          	end
                                          	return tmp
                                          end
                                          
                                          code[n_, U_, t_, l_, Om_, U$42$_] := If[LessEqual[t, 7e+160], N[Sqrt[N[(N[(N[(N[(-2.0 * N[(N[(l * l), $MachinePrecision] / Om), $MachinePrecision] + t), $MachinePrecision] * n), $MachinePrecision] * U), $MachinePrecision] * 2.0), $MachinePrecision]], $MachinePrecision], N[(N[Sqrt[N[(2.0 * t), $MachinePrecision]], $MachinePrecision] * N[Sqrt[N[(U * n), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]]
                                          
                                          \begin{array}{l}
                                          
                                          \\
                                          \begin{array}{l}
                                          \mathbf{if}\;t \leq 7 \cdot 10^{+160}:\\
                                          \;\;\;\;\sqrt{\left(\left(\mathsf{fma}\left(-2, \frac{\ell \cdot \ell}{Om}, t\right) \cdot n\right) \cdot U\right) \cdot 2}\\
                                          
                                          \mathbf{else}:\\
                                          \;\;\;\;\sqrt{2 \cdot t} \cdot \sqrt{U \cdot n}\\
                                          
                                          
                                          \end{array}
                                          \end{array}
                                          
                                          Derivation
                                          1. Split input into 2 regimes
                                          2. if t < 7.00000000000000051e160

                                            1. Initial program 51.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 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. metadata-evalN/A

                                                \[\leadsto \sqrt{\left(\left(\left(t - \color{blue}{\left(\mathsf{neg}\left(-2\right)\right)} \cdot \frac{{\ell}^{2}}{Om}\right) \cdot n\right) \cdot U\right) \cdot 2} \]
                                              8. fp-cancel-sign-sub-invN/A

                                                \[\leadsto \sqrt{\left(\left(\color{blue}{\left(t + -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-*.f6442.8

                                                \[\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 rewrites42.8%

                                              \[\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 7.00000000000000051e160 < t

                                            1. Initial program 48.7%

                                              \[\sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(t - 2 \cdot \frac{\ell \cdot \ell}{Om}\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
                                            2. Add Preprocessing
                                            3. Step-by-step derivation
                                              1. lift-sqrt.f64N/A

                                                \[\leadsto \color{blue}{\sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(t - 2 \cdot \frac{\ell \cdot \ell}{Om}\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)}} \]
                                              2. lift-*.f64N/A

                                                \[\leadsto \sqrt{\color{blue}{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(t - 2 \cdot \frac{\ell \cdot \ell}{Om}\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)}} \]
                                              3. *-commutativeN/A

                                                \[\leadsto \sqrt{\color{blue}{\left(\left(t - 2 \cdot \frac{\ell \cdot \ell}{Om}\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right) \cdot \left(\left(2 \cdot n\right) \cdot U\right)}} \]
                                              4. lift-*.f64N/A

                                                \[\leadsto \sqrt{\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) \cdot \color{blue}{\left(\left(2 \cdot n\right) \cdot U\right)}} \]
                                              5. lift-*.f64N/A

                                                \[\leadsto \sqrt{\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) \cdot \left(\color{blue}{\left(2 \cdot n\right)} \cdot U\right)} \]
                                              6. associate-*l*N/A

                                                \[\leadsto \sqrt{\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) \cdot \color{blue}{\left(2 \cdot \left(n \cdot U\right)\right)}} \]
                                              7. associate-*r*N/A

                                                \[\leadsto \sqrt{\color{blue}{\left(\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) \cdot 2\right) \cdot \left(n \cdot U\right)}} \]
                                              8. sqrt-prodN/A

                                                \[\leadsto \color{blue}{\sqrt{\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) \cdot 2} \cdot \sqrt{n \cdot U}} \]
                                              9. pow1/2N/A

                                                \[\leadsto \sqrt{\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) \cdot 2} \cdot \color{blue}{{\left(n \cdot U\right)}^{\frac{1}{2}}} \]
                                              10. lower-*.f64N/A

                                                \[\leadsto \color{blue}{\sqrt{\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) \cdot 2} \cdot {\left(n \cdot U\right)}^{\frac{1}{2}}} \]
                                            4. Applied rewrites50.9%

                                              \[\leadsto \color{blue}{\sqrt{\left(\mathsf{fma}\left(n, 2, t\right) - \left(n \cdot \left(U - U*\right)\right) \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot 2} \cdot \sqrt{U \cdot n}} \]
                                            5. Taylor expanded in n around 0

                                              \[\leadsto \sqrt{\color{blue}{2 \cdot t}} \cdot \sqrt{U \cdot n} \]
                                            6. Step-by-step derivation
                                              1. lower-*.f6460.4

                                                \[\leadsto \sqrt{\color{blue}{2 \cdot t}} \cdot \sqrt{U \cdot n} \]
                                            7. Applied rewrites60.4%

                                              \[\leadsto \sqrt{\color{blue}{2 \cdot t}} \cdot \sqrt{U \cdot n} \]
                                          3. Recombined 2 regimes into one program.
                                          4. Add Preprocessing

                                          Alternative 23: 36.4% accurate, 3.7× speedup?

                                          \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;\ell \leq 1.4 \cdot 10^{+20}:\\ \;\;\;\;\sqrt{\left(\left(U \cdot n\right) \cdot t\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 1.4e+20)
                                             (sqrt (* (* (* U n) t) 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 <= 1.4e+20) {
                                          		tmp = sqrt((((U * n) * t) * 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 <= 1.4d+20) then
                                                  tmp = sqrt((((u * n) * t) * 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 <= 1.4e+20) {
                                          		tmp = Math.sqrt((((U * n) * t) * 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 <= 1.4e+20:
                                          		tmp = math.sqrt((((U * n) * t) * 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 <= 1.4e+20)
                                          		tmp = sqrt(Float64(Float64(Float64(U * n) * t) * 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 <= 1.4e+20)
                                          		tmp = sqrt((((U * n) * t) * 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, 1.4e+20], N[Sqrt[N[(N[(N[(U * n), $MachinePrecision] * t), $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 1.4 \cdot 10^{+20}:\\
                                          \;\;\;\;\sqrt{\left(\left(U \cdot n\right) \cdot t\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 < 1.4e20

                                            1. Initial program 53.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.8

                                                \[\leadsto \sqrt{\left(\color{blue}{\left(n \cdot t\right)} \cdot U\right) \cdot 2} \]
                                            5. Applied rewrites37.8%

                                              \[\leadsto \sqrt{\color{blue}{\left(\left(n \cdot t\right) \cdot U\right) \cdot 2}} \]
                                            6. Step-by-step derivation
                                              1. Applied rewrites37.9%

                                                \[\leadsto \sqrt{\left(\left(U \cdot n\right) \cdot t\right) \cdot 2} \]

                                              if 1.4e20 < l

                                              1. Initial program 43.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-*.f6434.5

                                                  \[\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 rewrites34.5%

                                                \[\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. Taylor expanded in t around 0

                                                \[\leadsto \sqrt{-4 \cdot \color{blue}{\frac{U \cdot \left({\ell}^{2} \cdot n\right)}{Om}}} \]
                                              7. Step-by-step derivation
                                                1. Applied rewrites29.6%

                                                  \[\leadsto \sqrt{\frac{\left(\left(\ell \cdot \ell\right) \cdot U\right) \cdot n}{Om} \cdot \color{blue}{-4}} \]
                                              8. Recombined 2 regimes into one program.
                                              9. Add Preprocessing

                                              Alternative 24: 38.0% accurate, 4.2× speedup?

                                              \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;t \leq 7.8 \cdot 10^{-264}:\\ \;\;\;\;\sqrt{\left(\left(U + U\right) \cdot t\right) \cdot n}\\ \mathbf{else}:\\ \;\;\;\;\sqrt{2 \cdot t} \cdot \sqrt{U \cdot n}\\ \end{array} \end{array} \]
                                              (FPCore (n U t l Om U*)
                                               :precision binary64
                                               (if (<= t 7.8e-264)
                                                 (sqrt (* (* (+ U U) t) n))
                                                 (* (sqrt (* 2.0 t)) (sqrt (* U n)))))
                                              double code(double n, double U, double t, double l, double Om, double U_42_) {
                                              	double tmp;
                                              	if (t <= 7.8e-264) {
                                              		tmp = sqrt((((U + U) * t) * n));
                                              	} else {
                                              		tmp = sqrt((2.0 * t)) * sqrt((U * n));
                                              	}
                                              	return tmp;
                                              }
                                              
                                              real(8) function code(n, u, t, l, om, u_42)
                                                  real(8), intent (in) :: n
                                                  real(8), intent (in) :: u
                                                  real(8), intent (in) :: t
                                                  real(8), intent (in) :: l
                                                  real(8), intent (in) :: om
                                                  real(8), intent (in) :: u_42
                                                  real(8) :: tmp
                                                  if (t <= 7.8d-264) then
                                                      tmp = sqrt((((u + u) * t) * n))
                                                  else
                                                      tmp = sqrt((2.0d0 * t)) * sqrt((u * n))
                                                  end if
                                                  code = tmp
                                              end function
                                              
                                              public static double code(double n, double U, double t, double l, double Om, double U_42_) {
                                              	double tmp;
                                              	if (t <= 7.8e-264) {
                                              		tmp = Math.sqrt((((U + U) * t) * n));
                                              	} else {
                                              		tmp = Math.sqrt((2.0 * t)) * Math.sqrt((U * n));
                                              	}
                                              	return tmp;
                                              }
                                              
                                              def code(n, U, t, l, Om, U_42_):
                                              	tmp = 0
                                              	if t <= 7.8e-264:
                                              		tmp = math.sqrt((((U + U) * t) * n))
                                              	else:
                                              		tmp = math.sqrt((2.0 * t)) * math.sqrt((U * n))
                                              	return tmp
                                              
                                              function code(n, U, t, l, Om, U_42_)
                                              	tmp = 0.0
                                              	if (t <= 7.8e-264)
                                              		tmp = sqrt(Float64(Float64(Float64(U + U) * t) * n));
                                              	else
                                              		tmp = Float64(sqrt(Float64(2.0 * t)) * sqrt(Float64(U * n)));
                                              	end
                                              	return tmp
                                              end
                                              
                                              function tmp_2 = code(n, U, t, l, Om, U_42_)
                                              	tmp = 0.0;
                                              	if (t <= 7.8e-264)
                                              		tmp = sqrt((((U + U) * t) * n));
                                              	else
                                              		tmp = sqrt((2.0 * t)) * sqrt((U * n));
                                              	end
                                              	tmp_2 = tmp;
                                              end
                                              
                                              code[n_, U_, t_, l_, Om_, U$42$_] := If[LessEqual[t, 7.8e-264], N[Sqrt[N[(N[(N[(U + U), $MachinePrecision] * t), $MachinePrecision] * n), $MachinePrecision]], $MachinePrecision], N[(N[Sqrt[N[(2.0 * t), $MachinePrecision]], $MachinePrecision] * N[Sqrt[N[(U * n), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]]
                                              
                                              \begin{array}{l}
                                              
                                              \\
                                              \begin{array}{l}
                                              \mathbf{if}\;t \leq 7.8 \cdot 10^{-264}:\\
                                              \;\;\;\;\sqrt{\left(\left(U + U\right) \cdot t\right) \cdot n}\\
                                              
                                              \mathbf{else}:\\
                                              \;\;\;\;\sqrt{2 \cdot t} \cdot \sqrt{U \cdot n}\\
                                              
                                              
                                              \end{array}
                                              \end{array}
                                              
                                              Derivation
                                              1. Split input into 2 regimes
                                              2. if t < 7.7999999999999997e-264

                                                1. Initial program 52.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-*.f6432.5

                                                    \[\leadsto \sqrt{\left(\color{blue}{\left(n \cdot t\right)} \cdot U\right) \cdot 2} \]
                                                5. Applied rewrites32.5%

                                                  \[\leadsto \sqrt{\color{blue}{\left(\left(n \cdot t\right) \cdot U\right) \cdot 2}} \]
                                                6. Step-by-step derivation
                                                  1. Applied rewrites35.5%

                                                    \[\leadsto \sqrt{\left(\left(2 \cdot U\right) \cdot t\right) \cdot \color{blue}{n}} \]
                                                  2. Step-by-step derivation
                                                    1. Applied rewrites35.5%

                                                      \[\leadsto \sqrt{\left(\left(U + U\right) \cdot t\right) \cdot n} \]

                                                    if 7.7999999999999997e-264 < t

                                                    1. Initial program 50.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-sqrt.f64N/A

                                                        \[\leadsto \color{blue}{\sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(t - 2 \cdot \frac{\ell \cdot \ell}{Om}\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)}} \]
                                                      2. lift-*.f64N/A

                                                        \[\leadsto \sqrt{\color{blue}{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(t - 2 \cdot \frac{\ell \cdot \ell}{Om}\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)}} \]
                                                      3. *-commutativeN/A

                                                        \[\leadsto \sqrt{\color{blue}{\left(\left(t - 2 \cdot \frac{\ell \cdot \ell}{Om}\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right) \cdot \left(\left(2 \cdot n\right) \cdot U\right)}} \]
                                                      4. lift-*.f64N/A

                                                        \[\leadsto \sqrt{\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) \cdot \color{blue}{\left(\left(2 \cdot n\right) \cdot U\right)}} \]
                                                      5. lift-*.f64N/A

                                                        \[\leadsto \sqrt{\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) \cdot \left(\color{blue}{\left(2 \cdot n\right)} \cdot U\right)} \]
                                                      6. associate-*l*N/A

                                                        \[\leadsto \sqrt{\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) \cdot \color{blue}{\left(2 \cdot \left(n \cdot U\right)\right)}} \]
                                                      7. associate-*r*N/A

                                                        \[\leadsto \sqrt{\color{blue}{\left(\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) \cdot 2\right) \cdot \left(n \cdot U\right)}} \]
                                                      8. sqrt-prodN/A

                                                        \[\leadsto \color{blue}{\sqrt{\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) \cdot 2} \cdot \sqrt{n \cdot U}} \]
                                                      9. pow1/2N/A

                                                        \[\leadsto \sqrt{\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) \cdot 2} \cdot \color{blue}{{\left(n \cdot U\right)}^{\frac{1}{2}}} \]
                                                      10. lower-*.f64N/A

                                                        \[\leadsto \color{blue}{\sqrt{\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) \cdot 2} \cdot {\left(n \cdot U\right)}^{\frac{1}{2}}} \]
                                                    4. Applied rewrites38.5%

                                                      \[\leadsto \color{blue}{\sqrt{\left(\mathsf{fma}\left(n, 2, t\right) - \left(n \cdot \left(U - U*\right)\right) \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot 2} \cdot \sqrt{U \cdot n}} \]
                                                    5. Taylor expanded in n around 0

                                                      \[\leadsto \sqrt{\color{blue}{2 \cdot t}} \cdot \sqrt{U \cdot n} \]
                                                    6. Step-by-step derivation
                                                      1. lower-*.f6444.1

                                                        \[\leadsto \sqrt{\color{blue}{2 \cdot t}} \cdot \sqrt{U \cdot n} \]
                                                    7. Applied rewrites44.1%

                                                      \[\leadsto \sqrt{\color{blue}{2 \cdot t}} \cdot \sqrt{U \cdot n} \]
                                                  3. Recombined 2 regimes into one program.
                                                  4. Add Preprocessing

                                                  Alternative 25: 34.8% accurate, 7.4× speedup?

                                                  \[\begin{array}{l} \\ \sqrt{\left(\left(U + U\right) \cdot t\right) \cdot n} \end{array} \]
                                                  (FPCore (n U t l Om U*) :precision binary64 (sqrt (* (* (+ U U) t) n)))
                                                  double code(double n, double U, double t, double l, double Om, double U_42_) {
                                                  	return sqrt((((U + U) * t) * n));
                                                  }
                                                  
                                                  real(8) function code(n, u, t, l, om, u_42)
                                                      real(8), intent (in) :: n
                                                      real(8), intent (in) :: u
                                                      real(8), intent (in) :: t
                                                      real(8), intent (in) :: l
                                                      real(8), intent (in) :: om
                                                      real(8), intent (in) :: u_42
                                                      code = sqrt((((u + u) * t) * n))
                                                  end function
                                                  
                                                  public static double code(double n, double U, double t, double l, double Om, double U_42_) {
                                                  	return Math.sqrt((((U + U) * t) * n));
                                                  }
                                                  
                                                  def code(n, U, t, l, Om, U_42_):
                                                  	return math.sqrt((((U + U) * t) * n))
                                                  
                                                  function code(n, U, t, l, Om, U_42_)
                                                  	return sqrt(Float64(Float64(Float64(U + U) * t) * n))
                                                  end
                                                  
                                                  function tmp = code(n, U, t, l, Om, U_42_)
                                                  	tmp = sqrt((((U + U) * t) * n));
                                                  end
                                                  
                                                  code[n_, U_, t_, l_, Om_, U$42$_] := N[Sqrt[N[(N[(N[(U + U), $MachinePrecision] * t), $MachinePrecision] * n), $MachinePrecision]], $MachinePrecision]
                                                  
                                                  \begin{array}{l}
                                                  
                                                  \\
                                                  \sqrt{\left(\left(U + U\right) \cdot t\right) \cdot n}
                                                  \end{array}
                                                  
                                                  Derivation
                                                  1. Initial program 51.4%

                                                    \[\sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(t - 2 \cdot \frac{\ell \cdot \ell}{Om}\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
                                                  2. Add Preprocessing
                                                  3. Taylor expanded in t around inf

                                                    \[\leadsto \sqrt{\color{blue}{2 \cdot \left(U \cdot \left(n \cdot t\right)\right)}} \]
                                                  4. Step-by-step derivation
                                                    1. *-commutativeN/A

                                                      \[\leadsto \sqrt{\color{blue}{\left(U \cdot \left(n \cdot t\right)\right) \cdot 2}} \]
                                                    2. lower-*.f64N/A

                                                      \[\leadsto \sqrt{\color{blue}{\left(U \cdot \left(n \cdot t\right)\right) \cdot 2}} \]
                                                    3. *-commutativeN/A

                                                      \[\leadsto \sqrt{\color{blue}{\left(\left(n \cdot t\right) \cdot U\right)} \cdot 2} \]
                                                    4. lower-*.f64N/A

                                                      \[\leadsto \sqrt{\color{blue}{\left(\left(n \cdot t\right) \cdot U\right)} \cdot 2} \]
                                                    5. lower-*.f6434.3

                                                      \[\leadsto \sqrt{\left(\color{blue}{\left(n \cdot t\right)} \cdot U\right) \cdot 2} \]
                                                  5. Applied rewrites34.3%

                                                    \[\leadsto \sqrt{\color{blue}{\left(\left(n \cdot t\right) \cdot U\right) \cdot 2}} \]
                                                  6. Step-by-step derivation
                                                    1. Applied rewrites34.5%

                                                      \[\leadsto \sqrt{\left(\left(2 \cdot U\right) \cdot t\right) \cdot \color{blue}{n}} \]
                                                    2. Step-by-step derivation
                                                      1. Applied rewrites34.5%

                                                        \[\leadsto \sqrt{\left(\left(U + U\right) \cdot t\right) \cdot n} \]
                                                      2. Add Preprocessing

                                                      Reproduce

                                                      ?
                                                      herbie shell --seed 2024320 
                                                      (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*))))))