Toniolo and Linder, Equation (13)

Percentage Accurate: 50.2% → 64.4%
Time: 15.1s
Alternatives: 17
Speedup: 2.3×

Specification

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

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

Sampling outcomes in binary64 precision:

Local Percentage Accuracy vs ?

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

Accuracy vs Speed?

Herbie found 17 alternatives:

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

Initial Program: 50.2% accurate, 1.0× speedup?

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

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

Alternative 1: 64.4% accurate, 0.3× speedup?

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

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

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if (sqrt.f64 (*.f64 (*.f64 (*.f64 #s(literal 2 binary64) n) U) (-.f64 (-.f64 t (*.f64 #s(literal 2 binary64) (/.f64 (*.f64 l l) Om))) (*.f64 (*.f64 n (pow.f64 (/.f64 l Om) #s(literal 2 binary64))) (-.f64 U U*))))) < 0.0

    1. Initial program 5.4%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    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*))))) < +inf.0

    1. Initial program 70.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

    1. Initial program 0.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\mathsf{fma}\left(-2 \cdot \frac{\ell}{Om}, \ell, t\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(\mathsf{fma}\left(-2 \cdot \frac{\ell}{Om}, \ell, t\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) + \mathsf{fma}\left(-2 \cdot \frac{\ell}{Om}, \ell, t\right)\right)}} \]
      5. distribute-lft-neg-outN/A

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

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

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

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

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

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

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

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

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

        \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\color{blue}{\left(\left(\mathsf{neg}\left(n \cdot \left(U - U*\right)\right)\right) \cdot \frac{\ell}{Om}\right) \cdot \frac{\ell}{Om}} + \mathsf{fma}\left(-2 \cdot \frac{\ell}{Om}, \ell, t\right)\right)} \]
      15. 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(n \cdot \left(U - U*\right)\right)\right) \cdot \frac{\ell}{Om}, \frac{\ell}{Om}, \mathsf{fma}\left(-2 \cdot \frac{\ell}{Om}, \ell, t\right)\right)}} \]
    6. Applied rewrites12.4%

      \[\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 -2, \ell, t\right)\right)}} \]
    7. Step-by-step derivation
      1. lift-*.f64N/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Alternative 2: 52.9% accurate, 0.3× 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 := \sqrt{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{\left(2 \cdot n\right) \cdot t} \cdot \sqrt{U}\\ \mathbf{elif}\;t\_3 \leq 4 \cdot 10^{+150}:\\ \;\;\;\;\sqrt{t\_2 \cdot \mathsf{fma}\left(-2, t\_1, t\right)}\\ \mathbf{elif}\;t\_3 \leq \infty:\\ \;\;\;\;\sqrt{\left(\mathsf{fma}\left(\frac{\ell}{Om}, -2 \cdot \ell, t\right) \cdot \left(2 \cdot n\right)\right) \cdot U}\\ \mathbf{else}:\\ \;\;\;\;\sqrt{\left(\left(\left(\frac{n}{Om} \cdot U*\right) \cdot \left(\frac{\ell}{Om} \cdot \ell\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 (/ (* l l) Om))
        (t_2 (* (* 2.0 n) U))
        (t_3
         (sqrt
          (*
           t_2
           (- (- t (* 2.0 t_1)) (* (* n (pow (/ l Om) 2.0)) (- U U*)))))))
   (if (<= t_3 0.0)
     (* (sqrt (* (* 2.0 n) t)) (sqrt U))
     (if (<= t_3 4e+150)
       (sqrt (* t_2 (fma -2.0 t_1 t)))
       (if (<= t_3 INFINITY)
         (sqrt (* (* (fma (/ l Om) (* -2.0 l) t) (* 2.0 n)) U))
         (sqrt (* (* (* (* (/ n Om) U*) (* (/ l Om) l)) U) (* 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 = sqrt((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(((2.0 * n) * t)) * sqrt(U);
	} else if (t_3 <= 4e+150) {
		tmp = sqrt((t_2 * fma(-2.0, t_1, t)));
	} else if (t_3 <= ((double) INFINITY)) {
		tmp = sqrt(((fma((l / Om), (-2.0 * l), t) * (2.0 * n)) * U));
	} else {
		tmp = sqrt((((((n / Om) * U_42_) * ((l / Om) * l)) * U) * (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 = sqrt(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 = Float64(sqrt(Float64(Float64(2.0 * n) * t)) * sqrt(U));
	elseif (t_3 <= 4e+150)
		tmp = sqrt(Float64(t_2 * fma(-2.0, t_1, t)));
	elseif (t_3 <= Inf)
		tmp = sqrt(Float64(Float64(fma(Float64(l / Om), Float64(-2.0 * l), t) * Float64(2.0 * n)) * U));
	else
		tmp = sqrt(Float64(Float64(Float64(Float64(Float64(n / Om) * U_42_) * Float64(Float64(l / Om) * l)) * U) * 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[Sqrt[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]], $MachinePrecision]}, If[LessEqual[t$95$3, 0.0], N[(N[Sqrt[N[(N[(2.0 * n), $MachinePrecision] * t), $MachinePrecision]], $MachinePrecision] * N[Sqrt[U], $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$3, 4e+150], N[Sqrt[N[(t$95$2 * N[(-2.0 * t$95$1 + t), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], If[LessEqual[t$95$3, Infinity], N[Sqrt[N[(N[(N[(N[(l / Om), $MachinePrecision] * N[(-2.0 * l), $MachinePrecision] + t), $MachinePrecision] * N[(2.0 * n), $MachinePrecision]), $MachinePrecision] * U), $MachinePrecision]], $MachinePrecision], N[Sqrt[N[(N[(N[(N[(N[(n / Om), $MachinePrecision] * U$42$), $MachinePrecision] * N[(N[(l / Om), $MachinePrecision] * l), $MachinePrecision]), $MachinePrecision] * U), $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 := \sqrt{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{\left(2 \cdot n\right) \cdot t} \cdot \sqrt{U}\\

\mathbf{elif}\;t\_3 \leq 4 \cdot 10^{+150}:\\
\;\;\;\;\sqrt{t\_2 \cdot \mathsf{fma}\left(-2, t\_1, t\right)}\\

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 4 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 5.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. Applied rewrites40.7%

      \[\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 \left(n \cdot 2\right)} \cdot \sqrt{U}} \]
    4. Taylor expanded in n around 0

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

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

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

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

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

    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*))))) < 3.99999999999999992e150

    1. Initial program 99.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. 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-*.f6485.5

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

      \[\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 3.99999999999999992e150 < (sqrt.f64 (*.f64 (*.f64 (*.f64 #s(literal 2 binary64) n) U) (-.f64 (-.f64 t (*.f64 #s(literal 2 binary64) (/.f64 (*.f64 l l) Om))) (*.f64 (*.f64 n (pow.f64 (/.f64 l Om) #s(literal 2 binary64))) (-.f64 U U*))))) < +inf.0

    1. Initial program 32.3%

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

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\mathsf{fma}\left(-2 \cdot \frac{\ell}{Om}, \ell, t\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(\mathsf{fma}\left(-2 \cdot \frac{\ell}{Om}, \ell, t\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) + \mathsf{fma}\left(-2 \cdot \frac{\ell}{Om}, \ell, t\right)\right)}} \]
      5. distribute-lft-neg-outN/A

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

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

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

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

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

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

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

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

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

        \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\color{blue}{\left(\left(\mathsf{neg}\left(n \cdot \left(U - U*\right)\right)\right) \cdot \frac{\ell}{Om}\right) \cdot \frac{\ell}{Om}} + \mathsf{fma}\left(-2 \cdot \frac{\ell}{Om}, \ell, t\right)\right)} \]
      15. 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(n \cdot \left(U - U*\right)\right)\right) \cdot \frac{\ell}{Om}, \frac{\ell}{Om}, \mathsf{fma}\left(-2 \cdot \frac{\ell}{Om}, \ell, t\right)\right)}} \]
    6. Applied rewrites50.0%

      \[\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 -2, \ell, t\right)\right)}} \]
    7. Step-by-step derivation
      1. lift-*.f64N/A

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

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

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

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

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

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

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

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

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

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

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

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

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

    1. Initial program 0.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Alternative 3: 53.0% accurate, 0.3× 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 := \sqrt{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{\left(2 \cdot n\right) \cdot t} \cdot \sqrt{U}\\ \mathbf{elif}\;t\_3 \leq 4 \cdot 10^{+150}:\\ \;\;\;\;\sqrt{t\_2 \cdot \mathsf{fma}\left(-2, t\_1, t\right)}\\ \mathbf{elif}\;t\_3 \leq \infty:\\ \;\;\;\;\sqrt{\left(\mathsf{fma}\left(\frac{\ell}{Om}, -2 \cdot \ell, t\right) \cdot \left(2 \cdot n\right)\right) \cdot U}\\ \mathbf{else}:\\ \;\;\;\;\sqrt{\left(\frac{U* \cdot U}{Om} \cdot \frac{\left(\ell \cdot \ell\right) \cdot n}{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 l) Om))
        (t_2 (* (* 2.0 n) U))
        (t_3
         (sqrt
          (*
           t_2
           (- (- t (* 2.0 t_1)) (* (* n (pow (/ l Om) 2.0)) (- U U*)))))))
   (if (<= t_3 0.0)
     (* (sqrt (* (* 2.0 n) t)) (sqrt U))
     (if (<= t_3 4e+150)
       (sqrt (* t_2 (fma -2.0 t_1 t)))
       (if (<= t_3 INFINITY)
         (sqrt (* (* (fma (/ l Om) (* -2.0 l) t) (* 2.0 n)) U))
         (sqrt (* (* (/ (* U* U) Om) (/ (* (* l l) n) 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 = sqrt((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(((2.0 * n) * t)) * sqrt(U);
	} else if (t_3 <= 4e+150) {
		tmp = sqrt((t_2 * fma(-2.0, t_1, t)));
	} else if (t_3 <= ((double) INFINITY)) {
		tmp = sqrt(((fma((l / Om), (-2.0 * l), t) * (2.0 * n)) * U));
	} else {
		tmp = sqrt(((((U_42_ * U) / Om) * (((l * l) * n) / 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 = sqrt(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 = Float64(sqrt(Float64(Float64(2.0 * n) * t)) * sqrt(U));
	elseif (t_3 <= 4e+150)
		tmp = sqrt(Float64(t_2 * fma(-2.0, t_1, t)));
	elseif (t_3 <= Inf)
		tmp = sqrt(Float64(Float64(fma(Float64(l / Om), Float64(-2.0 * l), t) * Float64(2.0 * n)) * U));
	else
		tmp = sqrt(Float64(Float64(Float64(Float64(U_42_ * U) / Om) * Float64(Float64(Float64(l * l) * n) / 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[Sqrt[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]], $MachinePrecision]}, If[LessEqual[t$95$3, 0.0], N[(N[Sqrt[N[(N[(2.0 * n), $MachinePrecision] * t), $MachinePrecision]], $MachinePrecision] * N[Sqrt[U], $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$3, 4e+150], N[Sqrt[N[(t$95$2 * N[(-2.0 * t$95$1 + t), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], If[LessEqual[t$95$3, Infinity], N[Sqrt[N[(N[(N[(N[(l / Om), $MachinePrecision] * N[(-2.0 * l), $MachinePrecision] + t), $MachinePrecision] * N[(2.0 * n), $MachinePrecision]), $MachinePrecision] * U), $MachinePrecision]], $MachinePrecision], N[Sqrt[N[(N[(N[(N[(U$42$ * U), $MachinePrecision] / Om), $MachinePrecision] * N[(N[(N[(l * l), $MachinePrecision] * n), $MachinePrecision] / Om), $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 := \sqrt{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{\left(2 \cdot n\right) \cdot t} \cdot \sqrt{U}\\

\mathbf{elif}\;t\_3 \leq 4 \cdot 10^{+150}:\\
\;\;\;\;\sqrt{t\_2 \cdot \mathsf{fma}\left(-2, t\_1, t\right)}\\

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 4 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 5.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. Applied rewrites40.7%

      \[\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 \left(n \cdot 2\right)} \cdot \sqrt{U}} \]
    4. Taylor expanded in n around 0

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

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

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

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

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

    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*))))) < 3.99999999999999992e150

    1. Initial program 99.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. 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-*.f6485.5

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

      \[\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 3.99999999999999992e150 < (sqrt.f64 (*.f64 (*.f64 (*.f64 #s(literal 2 binary64) n) U) (-.f64 (-.f64 t (*.f64 #s(literal 2 binary64) (/.f64 (*.f64 l l) Om))) (*.f64 (*.f64 n (pow.f64 (/.f64 l Om) #s(literal 2 binary64))) (-.f64 U U*))))) < +inf.0

    1. Initial program 32.3%

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

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\mathsf{fma}\left(-2 \cdot \frac{\ell}{Om}, \ell, t\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(\mathsf{fma}\left(-2 \cdot \frac{\ell}{Om}, \ell, t\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) + \mathsf{fma}\left(-2 \cdot \frac{\ell}{Om}, \ell, t\right)\right)}} \]
      5. distribute-lft-neg-outN/A

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

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

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

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

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

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

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

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

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

        \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\color{blue}{\left(\left(\mathsf{neg}\left(n \cdot \left(U - U*\right)\right)\right) \cdot \frac{\ell}{Om}\right) \cdot \frac{\ell}{Om}} + \mathsf{fma}\left(-2 \cdot \frac{\ell}{Om}, \ell, t\right)\right)} \]
      15. 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(n \cdot \left(U - U*\right)\right)\right) \cdot \frac{\ell}{Om}, \frac{\ell}{Om}, \mathsf{fma}\left(-2 \cdot \frac{\ell}{Om}, \ell, t\right)\right)}} \]
    6. Applied rewrites50.0%

      \[\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 -2, \ell, t\right)\right)}} \]
    7. Step-by-step derivation
      1. lift-*.f64N/A

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

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

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

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

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

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

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

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

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

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

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

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

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

    1. Initial program 0.0%

      \[\sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(t - 2 \cdot \frac{\ell \cdot \ell}{Om}\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
    2. Add Preprocessing
    3. Applied rewrites12.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 U} \cdot \sqrt{n \cdot 2}} \]
    4. Taylor expanded in U* around inf

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

\mathbf{elif}\;t\_3 \leq 4 \cdot 10^{+150}:\\
\;\;\;\;\sqrt{t\_2 \cdot \mathsf{fma}\left(-2, t\_1, t\right)}\\

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 4 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 5.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. Applied rewrites40.7%

      \[\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 \left(n \cdot 2\right)} \cdot \sqrt{U}} \]
    4. Taylor expanded in n around 0

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

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

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

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

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

    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*))))) < 3.99999999999999992e150

    1. Initial program 99.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. 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-*.f6485.5

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

      \[\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 3.99999999999999992e150 < (sqrt.f64 (*.f64 (*.f64 (*.f64 #s(literal 2 binary64) n) U) (-.f64 (-.f64 t (*.f64 #s(literal 2 binary64) (/.f64 (*.f64 l l) Om))) (*.f64 (*.f64 n (pow.f64 (/.f64 l Om) #s(literal 2 binary64))) (-.f64 U U*))))) < +inf.0

    1. Initial program 32.3%

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

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\mathsf{fma}\left(-2 \cdot \frac{\ell}{Om}, \ell, t\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(\mathsf{fma}\left(-2 \cdot \frac{\ell}{Om}, \ell, t\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) + \mathsf{fma}\left(-2 \cdot \frac{\ell}{Om}, \ell, t\right)\right)}} \]
      5. distribute-lft-neg-outN/A

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

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

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

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

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

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

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

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

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

        \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\color{blue}{\left(\left(\mathsf{neg}\left(n \cdot \left(U - U*\right)\right)\right) \cdot \frac{\ell}{Om}\right) \cdot \frac{\ell}{Om}} + \mathsf{fma}\left(-2 \cdot \frac{\ell}{Om}, \ell, t\right)\right)} \]
      15. 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(n \cdot \left(U - U*\right)\right)\right) \cdot \frac{\ell}{Om}, \frac{\ell}{Om}, \mathsf{fma}\left(-2 \cdot \frac{\ell}{Om}, \ell, t\right)\right)}} \]
    6. Applied rewrites50.0%

      \[\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 -2, \ell, t\right)\right)}} \]
    7. Step-by-step derivation
      1. lift-*.f64N/A

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

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

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

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

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

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

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

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

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

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

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

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

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

    1. Initial program 0.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    Alternative 5: 65.8% accurate, 0.3× speedup?

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

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

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

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

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

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

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

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

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

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

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

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

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

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

          \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\mathsf{fma}\left(-2 \cdot \frac{\ell}{Om}, \ell, t\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(\mathsf{fma}\left(-2 \cdot \frac{\ell}{Om}, \ell, t\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) + \mathsf{fma}\left(-2 \cdot \frac{\ell}{Om}, \ell, t\right)\right)}} \]
        5. distribute-lft-neg-outN/A

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

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

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

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

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

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

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

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

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

          \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\color{blue}{\left(\left(\mathsf{neg}\left(n \cdot \left(U - U*\right)\right)\right) \cdot \frac{\ell}{Om}\right) \cdot \frac{\ell}{Om}} + \mathsf{fma}\left(-2 \cdot \frac{\ell}{Om}, \ell, t\right)\right)} \]
        15. 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(n \cdot \left(U - U*\right)\right)\right) \cdot \frac{\ell}{Om}, \frac{\ell}{Om}, \mathsf{fma}\left(-2 \cdot \frac{\ell}{Om}, \ell, t\right)\right)}} \]
      6. Applied rewrites10.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 -2, \ell, t\right)\right)}} \]
      7. Step-by-step derivation
        1. lift-sqrt.f64N/A

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

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

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

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

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

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

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

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

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

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

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

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

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

      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 70.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

      1. Initial program 0.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

          \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\mathsf{fma}\left(-2 \cdot \frac{\ell}{Om}, \ell, t\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(\mathsf{fma}\left(-2 \cdot \frac{\ell}{Om}, \ell, t\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) + \mathsf{fma}\left(-2 \cdot \frac{\ell}{Om}, \ell, t\right)\right)}} \]
        5. distribute-lft-neg-outN/A

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

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

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

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

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

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

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

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

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

          \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\color{blue}{\left(\left(\mathsf{neg}\left(n \cdot \left(U - U*\right)\right)\right) \cdot \frac{\ell}{Om}\right) \cdot \frac{\ell}{Om}} + \mathsf{fma}\left(-2 \cdot \frac{\ell}{Om}, \ell, t\right)\right)} \]
        15. 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(n \cdot \left(U - U*\right)\right)\right) \cdot \frac{\ell}{Om}, \frac{\ell}{Om}, \mathsf{fma}\left(-2 \cdot \frac{\ell}{Om}, \ell, t\right)\right)}} \]
      6. Applied rewrites5.5%

        \[\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 -2, \ell, t\right)\right)}} \]
      7. Step-by-step derivation
        1. lift-*.f64N/A

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \sqrt{\color{blue}{2 \cdot \frac{\left(U \cdot \ell\right) \cdot \left(n \cdot \mathsf{fma}\left(-2, \ell, -\frac{\ell \cdot \left(n \cdot \left(U - U*\right)\right)}{Om}\right)\right)}{Om}}} \]
    3. Recombined 3 regimes into one program.
    4. Final simplification72.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{\mathsf{fma}\left(\frac{\ell}{Om}, \mathsf{fma}\left(\frac{\ell}{Om} \cdot \left(U - U*\right), -n, -2 \cdot \ell\right), t\right) \cdot n} \cdot \sqrt{2 \cdot U}\\ \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 \left(\mathsf{fma}\left(-2 \cdot \frac{\ell}{Om}, \ell, t\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)}\\ \mathbf{else}:\\ \;\;\;\;\sqrt{2 \cdot \frac{\left(U \cdot \ell\right) \cdot \left(n \cdot \mathsf{fma}\left(-2, \ell, \frac{\ell \cdot \left(n \cdot \left(U - U*\right)\right)}{-Om}\right)\right)}{Om}}\\ \end{array} \]
    5. Add Preprocessing

    Alternative 6: 64.3% accurate, 0.4× speedup?

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

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

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

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

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

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

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

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

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

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

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

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

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

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

          \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\mathsf{fma}\left(-2 \cdot \frac{\ell}{Om}, \ell, t\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(\mathsf{fma}\left(-2 \cdot \frac{\ell}{Om}, \ell, t\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) + \mathsf{fma}\left(-2 \cdot \frac{\ell}{Om}, \ell, t\right)\right)}} \]
        5. distribute-lft-neg-outN/A

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

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

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

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

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

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

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

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

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

          \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\color{blue}{\left(\left(\mathsf{neg}\left(n \cdot \left(U - U*\right)\right)\right) \cdot \frac{\ell}{Om}\right) \cdot \frac{\ell}{Om}} + \mathsf{fma}\left(-2 \cdot \frac{\ell}{Om}, \ell, t\right)\right)} \]
        15. 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(n \cdot \left(U - U*\right)\right)\right) \cdot \frac{\ell}{Om}, \frac{\ell}{Om}, \mathsf{fma}\left(-2 \cdot \frac{\ell}{Om}, \ell, t\right)\right)}} \]
      6. Applied rewrites10.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 -2, \ell, t\right)\right)}} \]
      7. Step-by-step derivation
        1. lift-sqrt.f64N/A

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

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

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

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

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

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

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

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

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

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

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

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

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

      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*)))) < 5e302

      1. Initial program 99.7%

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

          \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\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(U - U*\right) \cdot \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right)}\right)} \]
        3. 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) - \left(U - U*\right) \cdot \color{blue}{\left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right)}\right)} \]
        4. *-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) - \left(U - U*\right) \cdot \color{blue}{\left({\left(\frac{\ell}{Om}\right)}^{2} \cdot n\right)}\right)} \]
        5. 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(U - U*\right) \cdot \left(\color{blue}{{\left(\frac{\ell}{Om}\right)}^{2}} \cdot n\right)\right)} \]
        6. 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(U - U*\right) \cdot \left(\color{blue}{\left(\frac{\ell}{Om} \cdot \frac{\ell}{Om}\right)} \cdot n\right)\right)} \]
        7. 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) - \left(U - U*\right) \cdot \color{blue}{\left(\frac{\ell}{Om} \cdot \left(\frac{\ell}{Om} \cdot n\right)\right)}\right)} \]
        8. associate-*r*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(\left(U - U*\right) \cdot \frac{\ell}{Om}\right) \cdot \left(\frac{\ell}{Om} \cdot n\right)}\right)} \]
        9. 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(\left(U - U*\right) \cdot \frac{\ell}{Om}\right) \cdot \left(\frac{\ell}{Om} \cdot n\right)}\right)} \]
        10. 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(\left(U - U*\right) \cdot \frac{\ell}{Om}\right)} \cdot \left(\frac{\ell}{Om} \cdot n\right)\right)} \]
        11. lower-*.f6497.1

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

        \[\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(U - U*\right) \cdot \frac{\ell}{Om}\right) \cdot \left(\frac{\ell}{Om} \cdot n\right)}\right)} \]

      if 5e302 < (*.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 24.9%

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

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

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

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

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

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

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

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

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

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

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

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

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

          \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\mathsf{fma}\left(-2 \cdot \frac{\ell}{Om}, \ell, t\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(\mathsf{fma}\left(-2 \cdot \frac{\ell}{Om}, \ell, t\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) + \mathsf{fma}\left(-2 \cdot \frac{\ell}{Om}, \ell, t\right)\right)}} \]
        5. distribute-lft-neg-outN/A

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

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

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

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

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

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

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

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

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

          \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\color{blue}{\left(\left(\mathsf{neg}\left(n \cdot \left(U - U*\right)\right)\right) \cdot \frac{\ell}{Om}\right) \cdot \frac{\ell}{Om}} + \mathsf{fma}\left(-2 \cdot \frac{\ell}{Om}, \ell, t\right)\right)} \]
        15. 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(n \cdot \left(U - U*\right)\right)\right) \cdot \frac{\ell}{Om}, \frac{\ell}{Om}, \mathsf{fma}\left(-2 \cdot \frac{\ell}{Om}, \ell, t\right)\right)}} \]
      6. Applied rewrites40.2%

        \[\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 -2, \ell, t\right)\right)}} \]
      7. Step-by-step derivation
        1. lift-*.f64N/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    Alternative 7: 62.8% accurate, 0.4× speedup?

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

            \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\mathsf{fma}\left(-2 \cdot \frac{\ell}{Om}, \ell, t\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(\mathsf{fma}\left(-2 \cdot \frac{\ell}{Om}, \ell, t\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) + \mathsf{fma}\left(-2 \cdot \frac{\ell}{Om}, \ell, t\right)\right)}} \]
          5. distribute-lft-neg-outN/A

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

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

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

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

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

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

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

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

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

            \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\color{blue}{\left(\left(\mathsf{neg}\left(n \cdot \left(U - U*\right)\right)\right) \cdot \frac{\ell}{Om}\right) \cdot \frac{\ell}{Om}} + \mathsf{fma}\left(-2 \cdot \frac{\ell}{Om}, \ell, t\right)\right)} \]
          15. 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(n \cdot \left(U - U*\right)\right)\right) \cdot \frac{\ell}{Om}, \frac{\ell}{Om}, \mathsf{fma}\left(-2 \cdot \frac{\ell}{Om}, \ell, t\right)\right)}} \]
        6. Applied rewrites5.5%

          \[\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 -2, \ell, t\right)\right)}} \]
        7. Step-by-step derivation
          1. lift-*.f64N/A

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

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

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

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

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

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

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

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

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

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

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

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

          \[\leadsto \sqrt{\color{blue}{2 \cdot \frac{\left(U \cdot \ell\right) \cdot \left(n \cdot \mathsf{fma}\left(-2, \ell, -\frac{\ell \cdot \left(n \cdot \left(U - U*\right)\right)}{Om}\right)\right)}{Om}}} \]
      7. Recombined 3 regimes into one program.
      8. Final simplification68.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{\mathsf{fma}\left(\frac{n}{Om} \cdot \left(U - U*\right) - -2, \frac{\left(-\ell\right) \cdot \ell}{Om}, t\right) \cdot n} \cdot \sqrt{2 \cdot U}\\ \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(\ell, \frac{\left(\frac{n}{Om} \cdot \left(U - U*\right) - -2\right) \cdot \left(-\ell\right)}{Om}, t\right)}\\ \mathbf{else}:\\ \;\;\;\;\sqrt{2 \cdot \frac{\left(U \cdot \ell\right) \cdot \left(n \cdot \mathsf{fma}\left(-2, \ell, \frac{\ell \cdot \left(n \cdot \left(U - U*\right)\right)}{-Om}\right)\right)}{Om}}\\ \end{array} \]
      9. Add Preprocessing

      Alternative 8: 63.4% 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{\ell}{Om}, \frac{U* \cdot \left(\ell \cdot n\right)}{Om}, t\right) \cdot \left(2 \cdot n\right)\right) \cdot U}\\ \mathbf{elif}\;t\_2 \leq \infty:\\ \;\;\;\;\sqrt{t\_1 \cdot \mathsf{fma}\left(\ell, \frac{\left(\frac{n}{Om} \cdot \left(U - U*\right) - -2\right) \cdot \left(-\ell\right)}{Om}, t\right)}\\ \mathbf{else}:\\ \;\;\;\;\sqrt{2 \cdot \frac{\left(U \cdot \ell\right) \cdot \left(n \cdot \mathsf{fma}\left(-2, \ell, \frac{\ell \cdot \left(n \cdot \left(U - U*\right)\right)}{-Om}\right)\right)}{Om}}\\ \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 (/ l Om) (/ (* U* (* l n)) Om) t) (* 2.0 n)) U))
           (if (<= t_2 INFINITY)
             (sqrt (* t_1 (fma l (/ (* (- (* (/ n Om) (- U U*)) -2.0) (- l)) Om) t)))
             (sqrt
              (*
               2.0
               (/
                (* (* U l) (* n (fma -2.0 l (/ (* l (* n (- U U*))) (- Om)))))
                Om)))))))
      double code(double n, double U, double t, double l, double Om, double U_42_) {
      	double 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((l / Om), ((U_42_ * (l * n)) / Om), t) * (2.0 * n)) * U));
      	} else if (t_2 <= ((double) INFINITY)) {
      		tmp = sqrt((t_1 * fma(l, (((((n / Om) * (U - U_42_)) - -2.0) * -l) / Om), t)));
      	} else {
      		tmp = sqrt((2.0 * (((U * l) * (n * fma(-2.0, l, ((l * (n * (U - U_42_))) / -Om)))) / 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(l / Om), Float64(Float64(U_42_ * Float64(l * n)) / Om), t) * Float64(2.0 * n)) * U));
      	elseif (t_2 <= Inf)
      		tmp = sqrt(Float64(t_1 * fma(l, Float64(Float64(Float64(Float64(Float64(n / Om) * Float64(U - U_42_)) - -2.0) * Float64(-l)) / Om), t)));
      	else
      		tmp = sqrt(Float64(2.0 * Float64(Float64(Float64(U * l) * Float64(n * fma(-2.0, l, Float64(Float64(l * Float64(n * Float64(U - U_42_))) / Float64(-Om))))) / 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[(l / Om), $MachinePrecision] * N[(N[(U$42$ * N[(l * n), $MachinePrecision]), $MachinePrecision] / Om), $MachinePrecision] + t), $MachinePrecision] * N[(2.0 * n), $MachinePrecision]), $MachinePrecision] * U), $MachinePrecision]], $MachinePrecision], If[LessEqual[t$95$2, Infinity], N[Sqrt[N[(t$95$1 * N[(l * N[(N[(N[(N[(N[(n / Om), $MachinePrecision] * N[(U - U$42$), $MachinePrecision]), $MachinePrecision] - -2.0), $MachinePrecision] * (-l)), $MachinePrecision] / Om), $MachinePrecision] + t), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], N[Sqrt[N[(2.0 * N[(N[(N[(U * l), $MachinePrecision] * N[(n * N[(-2.0 * l + N[(N[(l * N[(n * N[(U - U$42$), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / (-Om)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / Om), $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{\ell}{Om}, \frac{U* \cdot \left(\ell \cdot n\right)}{Om}, t\right) \cdot \left(2 \cdot n\right)\right) \cdot U}\\
      
      \mathbf{elif}\;t\_2 \leq \infty:\\
      \;\;\;\;\sqrt{t\_1 \cdot \mathsf{fma}\left(\ell, \frac{\left(\frac{n}{Om} \cdot \left(U - U*\right) - -2\right) \cdot \left(-\ell\right)}{Om}, t\right)}\\
      
      \mathbf{else}:\\
      \;\;\;\;\sqrt{2 \cdot \frac{\left(U \cdot \ell\right) \cdot \left(n \cdot \mathsf{fma}\left(-2, \ell, \frac{\ell \cdot \left(n \cdot \left(U - U*\right)\right)}{-Om}\right)\right)}{Om}}\\
      
      
      \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 4.8%

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

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

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

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

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

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

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

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

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

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

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

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

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

            \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\mathsf{fma}\left(-2 \cdot \frac{\ell}{Om}, \ell, t\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(\mathsf{fma}\left(-2 \cdot \frac{\ell}{Om}, \ell, t\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) + \mathsf{fma}\left(-2 \cdot \frac{\ell}{Om}, \ell, t\right)\right)}} \]
          5. distribute-lft-neg-outN/A

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

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

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

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

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

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

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

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

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

            \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\color{blue}{\left(\left(\mathsf{neg}\left(n \cdot \left(U - U*\right)\right)\right) \cdot \frac{\ell}{Om}\right) \cdot \frac{\ell}{Om}} + \mathsf{fma}\left(-2 \cdot \frac{\ell}{Om}, \ell, t\right)\right)} \]
          15. 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(n \cdot \left(U - U*\right)\right)\right) \cdot \frac{\ell}{Om}, \frac{\ell}{Om}, \mathsf{fma}\left(-2 \cdot \frac{\ell}{Om}, \ell, t\right)\right)}} \]
        6. Applied rewrites10.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 -2, \ell, t\right)\right)}} \]
        7. Step-by-step derivation
          1. lift-*.f64N/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

              \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\mathsf{fma}\left(-2 \cdot \frac{\ell}{Om}, \ell, t\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(\mathsf{fma}\left(-2 \cdot \frac{\ell}{Om}, \ell, t\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) + \mathsf{fma}\left(-2 \cdot \frac{\ell}{Om}, \ell, t\right)\right)}} \]
            5. distribute-lft-neg-outN/A

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

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

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

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

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

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

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

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

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

              \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\color{blue}{\left(\left(\mathsf{neg}\left(n \cdot \left(U - U*\right)\right)\right) \cdot \frac{\ell}{Om}\right) \cdot \frac{\ell}{Om}} + \mathsf{fma}\left(-2 \cdot \frac{\ell}{Om}, \ell, t\right)\right)} \]
            15. 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(n \cdot \left(U - U*\right)\right)\right) \cdot \frac{\ell}{Om}, \frac{\ell}{Om}, \mathsf{fma}\left(-2 \cdot \frac{\ell}{Om}, \ell, t\right)\right)}} \]
          6. Applied rewrites5.5%

            \[\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 -2, \ell, t\right)\right)}} \]
          7. Step-by-step derivation
            1. lift-*.f64N/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

          1. Initial program 5.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. Applied rewrites40.7%

            \[\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 \left(n \cdot 2\right)} \cdot \sqrt{U}} \]
          4. Taylor expanded in n around 0

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

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

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

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

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

          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*))))) < +inf.0

          1. Initial program 70.5%

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

            \[\leadsto \sqrt{\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-*.f6459.1

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

            \[\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 +inf.0 < (sqrt.f64 (*.f64 (*.f64 (*.f64 #s(literal 2 binary64) n) U) (-.f64 (-.f64 t (*.f64 #s(literal 2 binary64) (/.f64 (*.f64 l l) Om))) (*.f64 (*.f64 n (pow.f64 (/.f64 l Om) #s(literal 2 binary64))) (-.f64 U U*)))))

          1. Initial program 0.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

          Alternative 10: 43.6% accurate, 0.4× speedup?

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

            1. Initial program 5.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. Applied rewrites40.7%

              \[\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 \left(n \cdot 2\right)} \cdot \sqrt{U}} \]
            4. Taylor expanded in n around 0

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

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

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

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

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

            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*))))) < 4.00000000000000007e151

            1. Initial program 99.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. 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-*.f6465.3

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

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

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

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

                if 4.00000000000000007e151 < (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 23.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. Taylor expanded in U* around inf

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                Alternative 11: 59.1% accurate, 0.7× speedup?

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

                  1. Initial program 5.4%

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

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

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

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

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

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

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

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

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

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

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

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

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

                      \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\mathsf{fma}\left(-2 \cdot \frac{\ell}{Om}, \ell, t\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(\mathsf{fma}\left(-2 \cdot \frac{\ell}{Om}, \ell, t\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) + \mathsf{fma}\left(-2 \cdot \frac{\ell}{Om}, \ell, t\right)\right)}} \]
                    5. distribute-lft-neg-outN/A

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

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

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

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

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

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

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

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

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

                      \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\color{blue}{\left(\left(\mathsf{neg}\left(n \cdot \left(U - U*\right)\right)\right) \cdot \frac{\ell}{Om}\right) \cdot \frac{\ell}{Om}} + \mathsf{fma}\left(-2 \cdot \frac{\ell}{Om}, \ell, t\right)\right)} \]
                    15. 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(n \cdot \left(U - U*\right)\right)\right) \cdot \frac{\ell}{Om}, \frac{\ell}{Om}, \mathsf{fma}\left(-2 \cdot \frac{\ell}{Om}, \ell, t\right)\right)}} \]
                  6. Applied rewrites5.4%

                    \[\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 -2, \ell, t\right)\right)}} \]
                  7. Step-by-step derivation
                    1. lift-*.f64N/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                  Alternative 12: 46.3% accurate, 0.8× speedup?

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

                    1. Initial program 60.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{\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-*.f6451.7

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

                      \[\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 +inf.0 < (sqrt.f64 (*.f64 (*.f64 (*.f64 #s(literal 2 binary64) n) U) (-.f64 (-.f64 t (*.f64 #s(literal 2 binary64) (/.f64 (*.f64 l l) Om))) (*.f64 (*.f64 n (pow.f64 (/.f64 l Om) #s(literal 2 binary64))) (-.f64 U U*)))))

                    1. Initial program 0.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                    Alternative 13: 37.8% accurate, 0.8× 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 0:\\ \;\;\;\;\sqrt{\left(2 \cdot n\right) \cdot t} \cdot \sqrt{U}\\ \mathbf{else}:\\ \;\;\;\;\sqrt{t \cdot \left(\left(U + U\right) \cdot n\right)}\\ \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*)))))
                          0.0)
                       (* (sqrt (* (* 2.0 n) t)) (sqrt U))
                       (sqrt (* t (* (+ U U) n)))))
                    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_))))) <= 0.0) {
                    		tmp = sqrt(((2.0 * n) * t)) * sqrt(U);
                    	} else {
                    		tmp = sqrt((t * ((U + 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 (sqrt((((2.0d0 * n) * u) * ((t - (2.0d0 * ((l * l) / om))) - ((n * ((l / om) ** 2.0d0)) * (u - u_42))))) <= 0.0d0) then
                            tmp = sqrt(((2.0d0 * n) * t)) * sqrt(u)
                        else
                            tmp = sqrt((t * ((u + 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 (Math.sqrt((((2.0 * n) * U) * ((t - (2.0 * ((l * l) / Om))) - ((n * Math.pow((l / Om), 2.0)) * (U - U_42_))))) <= 0.0) {
                    		tmp = Math.sqrt(((2.0 * n) * t)) * Math.sqrt(U);
                    	} else {
                    		tmp = Math.sqrt((t * ((U + U) * n)));
                    	}
                    	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_))))) <= 0.0:
                    		tmp = math.sqrt(((2.0 * n) * t)) * math.sqrt(U)
                    	else:
                    		tmp = math.sqrt((t * ((U + U) * n)))
                    	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_))))) <= 0.0)
                    		tmp = Float64(sqrt(Float64(Float64(2.0 * n) * t)) * sqrt(U));
                    	else
                    		tmp = sqrt(Float64(t * Float64(Float64(U + U) * n)));
                    	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_))))) <= 0.0)
                    		tmp = sqrt(((2.0 * n) * t)) * sqrt(U);
                    	else
                    		tmp = sqrt((t * ((U + U) * n)));
                    	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], 0.0], N[(N[Sqrt[N[(N[(2.0 * n), $MachinePrecision] * t), $MachinePrecision]], $MachinePrecision] * N[Sqrt[U], $MachinePrecision]), $MachinePrecision], N[Sqrt[N[(t * N[(N[(U + U), $MachinePrecision] * n), $MachinePrecision]), $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 0:\\
                    \;\;\;\;\sqrt{\left(2 \cdot n\right) \cdot t} \cdot \sqrt{U}\\
                    
                    \mathbf{else}:\\
                    \;\;\;\;\sqrt{t \cdot \left(\left(U + U\right) \cdot n\right)}\\
                    
                    
                    \end{array}
                    \end{array}
                    
                    Derivation
                    1. Split input into 2 regimes
                    2. if (sqrt.f64 (*.f64 (*.f64 (*.f64 #s(literal 2 binary64) n) U) (-.f64 (-.f64 t (*.f64 #s(literal 2 binary64) (/.f64 (*.f64 l l) Om))) (*.f64 (*.f64 n (pow.f64 (/.f64 l Om) #s(literal 2 binary64))) (-.f64 U U*))))) < 0.0

                      1. Initial program 5.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. Applied rewrites40.7%

                        \[\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 \left(n \cdot 2\right)} \cdot \sqrt{U}} \]
                      4. Taylor expanded in n around 0

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

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

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

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

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

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

                      1. Initial program 61.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 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-*.f6438.2

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

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

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

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

                        Alternative 14: 38.5% accurate, 0.9× speedup?

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

                          1. Initial program 4.8%

                            \[\sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(t - 2 \cdot \frac{\ell \cdot \ell}{Om}\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
                          2. Add Preprocessing
                          3. Taylor expanded in 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-*.f6428.9

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

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

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

                            1. Initial program 63.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-*.f6439.1

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

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

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

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

                              Alternative 15: 60.4% accurate, 2.0× speedup?

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

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

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

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

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

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

                                  if 1.45e-279 < U

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

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

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

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

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

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

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

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

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

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

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

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

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

                                      \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\mathsf{fma}\left(-2 \cdot \frac{\ell}{Om}, \ell, t\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(\mathsf{fma}\left(-2 \cdot \frac{\ell}{Om}, \ell, t\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) + \mathsf{fma}\left(-2 \cdot \frac{\ell}{Om}, \ell, t\right)\right)}} \]
                                    5. distribute-lft-neg-outN/A

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

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

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

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

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

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

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

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

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

                                      \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\color{blue}{\left(\left(\mathsf{neg}\left(n \cdot \left(U - U*\right)\right)\right) \cdot \frac{\ell}{Om}\right) \cdot \frac{\ell}{Om}} + \mathsf{fma}\left(-2 \cdot \frac{\ell}{Om}, \ell, t\right)\right)} \]
                                    15. 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(n \cdot \left(U - U*\right)\right)\right) \cdot \frac{\ell}{Om}, \frac{\ell}{Om}, \mathsf{fma}\left(-2 \cdot \frac{\ell}{Om}, \ell, t\right)\right)}} \]
                                  6. Applied rewrites64.9%

                                    \[\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 -2, \ell, t\right)\right)}} \]
                                  7. Step-by-step derivation
                                    1. lift-sqrt.f64N/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                Alternative 16: 54.4% accurate, 2.3× speedup?

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

                                  1. Initial program 55.7%

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

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

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

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

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

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

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

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

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

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

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

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

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

                                      \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\mathsf{fma}\left(-2 \cdot \frac{\ell}{Om}, \ell, t\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(\mathsf{fma}\left(-2 \cdot \frac{\ell}{Om}, \ell, t\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) + \mathsf{fma}\left(-2 \cdot \frac{\ell}{Om}, \ell, t\right)\right)}} \]
                                    5. distribute-lft-neg-outN/A

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

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

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

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

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

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

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

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

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

                                      \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\color{blue}{\left(\left(\mathsf{neg}\left(n \cdot \left(U - U*\right)\right)\right) \cdot \frac{\ell}{Om}\right) \cdot \frac{\ell}{Om}} + \mathsf{fma}\left(-2 \cdot \frac{\ell}{Om}, \ell, t\right)\right)} \]
                                    15. 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(n \cdot \left(U - U*\right)\right)\right) \cdot \frac{\ell}{Om}, \frac{\ell}{Om}, \mathsf{fma}\left(-2 \cdot \frac{\ell}{Om}, \ell, t\right)\right)}} \]
                                  6. Applied rewrites63.0%

                                    \[\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 -2, \ell, t\right)\right)}} \]
                                  7. Step-by-step derivation
                                    1. lift-*.f64N/A

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

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

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

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

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

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

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

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

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

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

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

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

                                  if -1.15e14 < Om < 3.6e5

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

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

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

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

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

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

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

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

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

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

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

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

                                      \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\mathsf{fma}\left(-2 \cdot \frac{\ell}{Om}, \ell, t\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(\mathsf{fma}\left(-2 \cdot \frac{\ell}{Om}, \ell, t\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) + \mathsf{fma}\left(-2 \cdot \frac{\ell}{Om}, \ell, t\right)\right)}} \]
                                    5. distribute-lft-neg-outN/A

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

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

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

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

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

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

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

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

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

                                      \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\color{blue}{\left(\left(\mathsf{neg}\left(n \cdot \left(U - U*\right)\right)\right) \cdot \frac{\ell}{Om}\right) \cdot \frac{\ell}{Om}} + \mathsf{fma}\left(-2 \cdot \frac{\ell}{Om}, \ell, t\right)\right)} \]
                                    15. 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(n \cdot \left(U - U*\right)\right)\right) \cdot \frac{\ell}{Om}, \frac{\ell}{Om}, \mathsf{fma}\left(-2 \cdot \frac{\ell}{Om}, \ell, t\right)\right)}} \]
                                  6. Applied rewrites49.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 -2, \ell, t\right)\right)}} \]
                                  7. Step-by-step derivation
                                    1. lift-*.f64N/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                Alternative 17: 35.6% accurate, 7.4× speedup?

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

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

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

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

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

                                    Reproduce

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