Toniolo and Linder, Equation (13)

Percentage Accurate: 50.4% → 64.0%
Time: 16.7s
Alternatives: 19
Speedup: 0.4×

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 19 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.4% 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.0% accurate, 0.3× speedup?

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

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

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

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


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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \sqrt{\left(\left(t - 2 \cdot \frac{\ell \cdot \ell}{Om}\right) - \left(\frac{\ell}{Om} \cdot \left(\frac{\ell}{Om} \cdot n\right)\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(\left(t - 2 \cdot \frac{\ell \cdot \ell}{Om}\right) - \left(\frac{\ell}{Om} \cdot \left(\frac{\ell}{Om} \cdot n\right)\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(\left(t - 2 \cdot \frac{\ell \cdot \ell}{Om}\right) - \left(\frac{\ell}{Om} \cdot \left(\frac{\ell}{Om} \cdot n\right)\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(\left(t - 2 \cdot \frac{\ell \cdot \ell}{Om}\right) - \left(\frac{\ell}{Om} \cdot \left(\frac{\ell}{Om} \cdot n\right)\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(\left(t - 2 \cdot \frac{\ell \cdot \ell}{Om}\right) - \left(\frac{\ell}{Om} \cdot \left(\frac{\ell}{Om} \cdot n\right)\right) \cdot \left(U - U*\right)\right) \cdot \left(n \cdot 2\right)} \cdot \sqrt{U}} \]
      10. pow1/2N/A

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

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

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

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

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

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

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

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

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

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

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

      \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(t - 2 \cdot \frac{\ell \cdot \ell}{Om}\right) - \color{blue}{\left(\frac{\ell}{Om} \cdot \left(\frac{\ell}{Om} \cdot n\right)\right)} \cdot \left(U - U*\right)\right)} \]
    5. 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(\frac{\ell}{Om} \cdot \left(\frac{\ell}{Om} \cdot n\right)\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(\frac{\ell}{Om} \cdot \left(\frac{\ell}{Om} \cdot n\right)\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(\frac{\ell}{Om} \cdot \left(\frac{\ell}{Om} \cdot n\right)\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(\frac{\ell}{Om} \cdot \left(\frac{\ell}{Om} \cdot n\right)\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(\frac{\ell}{Om} \cdot \left(\frac{\ell}{Om} \cdot n\right)\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(\frac{\ell}{Om} \cdot \left(\frac{\ell}{Om} \cdot n\right)\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(\frac{\ell}{Om} \cdot \left(\frac{\ell}{Om} \cdot n\right)\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(\frac{\ell}{Om} \cdot \left(\frac{\ell}{Om} \cdot n\right)\right) \cdot \left(U - U*\right)\right)} \]
      9. 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 \ell\right) \cdot \frac{\ell}{Om}} + t\right) - \left(\frac{\ell}{Om} \cdot \left(\frac{\ell}{Om} \cdot n\right)\right) \cdot \left(U - U*\right)\right)} \]
      10. 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 \ell, \frac{\ell}{Om}, t\right)} - \left(\frac{\ell}{Om} \cdot \left(\frac{\ell}{Om} \cdot n\right)\right) \cdot \left(U - U*\right)\right)} \]
      11. 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 \ell}, \frac{\ell}{Om}, t\right) - \left(\frac{\ell}{Om} \cdot \left(\frac{\ell}{Om} \cdot n\right)\right) \cdot \left(U - U*\right)\right)} \]
      12. metadata-eval71.0

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      Alternative 2: 64.6% accurate, 0.4× speedup?

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

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

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

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

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

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

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

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

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

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

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

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

            \[\leadsto \sqrt{\left(\left(t - 2 \cdot \frac{\ell \cdot \ell}{Om}\right) - \left(\frac{\ell}{Om} \cdot \left(\frac{\ell}{Om} \cdot n\right)\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(\left(t - 2 \cdot \frac{\ell \cdot \ell}{Om}\right) - \left(\frac{\ell}{Om} \cdot \left(\frac{\ell}{Om} \cdot n\right)\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(\left(t - 2 \cdot \frac{\ell \cdot \ell}{Om}\right) - \left(\frac{\ell}{Om} \cdot \left(\frac{\ell}{Om} \cdot n\right)\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(\left(t - 2 \cdot \frac{\ell \cdot \ell}{Om}\right) - \left(\frac{\ell}{Om} \cdot \left(\frac{\ell}{Om} \cdot n\right)\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(\left(t - 2 \cdot \frac{\ell \cdot \ell}{Om}\right) - \left(\frac{\ell}{Om} \cdot \left(\frac{\ell}{Om} \cdot n\right)\right) \cdot \left(U - U*\right)\right) \cdot \left(n \cdot 2\right)} \cdot \sqrt{U}} \]
          10. pow1/2N/A

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

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

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

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

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

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

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

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

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

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

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

          \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(t - 2 \cdot \frac{\ell \cdot \ell}{Om}\right) - \color{blue}{\left(\frac{\ell}{Om} \cdot \left(\frac{\ell}{Om} \cdot n\right)\right)} \cdot \left(U - U*\right)\right)} \]
        5. 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(\frac{\ell}{Om} \cdot \left(\frac{\ell}{Om} \cdot n\right)\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(\frac{\ell}{Om} \cdot \left(\frac{\ell}{Om} \cdot n\right)\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(\frac{\ell}{Om} \cdot \left(\frac{\ell}{Om} \cdot n\right)\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(\frac{\ell}{Om} \cdot \left(\frac{\ell}{Om} \cdot n\right)\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(\frac{\ell}{Om} \cdot \left(\frac{\ell}{Om} \cdot n\right)\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(\frac{\ell}{Om} \cdot \left(\frac{\ell}{Om} \cdot n\right)\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(\frac{\ell}{Om} \cdot \left(\frac{\ell}{Om} \cdot n\right)\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(\frac{\ell}{Om} \cdot \left(\frac{\ell}{Om} \cdot n\right)\right) \cdot \left(U - U*\right)\right)} \]
          9. 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 \ell\right) \cdot \frac{\ell}{Om}} + t\right) - \left(\frac{\ell}{Om} \cdot \left(\frac{\ell}{Om} \cdot n\right)\right) \cdot \left(U - U*\right)\right)} \]
          10. 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 \ell, \frac{\ell}{Om}, t\right)} - \left(\frac{\ell}{Om} \cdot \left(\frac{\ell}{Om} \cdot n\right)\right) \cdot \left(U - U*\right)\right)} \]
          11. 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 \ell}, \frac{\ell}{Om}, t\right) - \left(\frac{\ell}{Om} \cdot \left(\frac{\ell}{Om} \cdot n\right)\right) \cdot \left(U - U*\right)\right)} \]
          12. metadata-eval71.0

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

          Alternative 3: 64.2% accurate, 0.4× speedup?

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

            1. Initial program 17.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 rewrites36.8%

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

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

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

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

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

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

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

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

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

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

            1. Initial program 67.8%

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

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

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

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

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

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

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

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

              \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(t - 2 \cdot \frac{\ell \cdot \ell}{Om}\right) - \color{blue}{\left(\frac{\ell}{Om} \cdot \left(\frac{\ell}{Om} \cdot n\right)\right)} \cdot \left(U - U*\right)\right)} \]
            5. 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(\frac{\ell}{Om} \cdot \left(\frac{\ell}{Om} \cdot n\right)\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(\frac{\ell}{Om} \cdot \left(\frac{\ell}{Om} \cdot n\right)\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(\frac{\ell}{Om} \cdot \left(\frac{\ell}{Om} \cdot n\right)\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(\frac{\ell}{Om} \cdot \left(\frac{\ell}{Om} \cdot n\right)\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(\frac{\ell}{Om} \cdot \left(\frac{\ell}{Om} \cdot n\right)\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(\frac{\ell}{Om} \cdot \left(\frac{\ell}{Om} \cdot n\right)\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(\frac{\ell}{Om} \cdot \left(\frac{\ell}{Om} \cdot n\right)\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(\frac{\ell}{Om} \cdot \left(\frac{\ell}{Om} \cdot n\right)\right) \cdot \left(U - U*\right)\right)} \]
              9. 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 \ell\right) \cdot \frac{\ell}{Om}} + t\right) - \left(\frac{\ell}{Om} \cdot \left(\frac{\ell}{Om} \cdot n\right)\right) \cdot \left(U - U*\right)\right)} \]
              10. 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 \ell, \frac{\ell}{Om}, t\right)} - \left(\frac{\ell}{Om} \cdot \left(\frac{\ell}{Om} \cdot n\right)\right) \cdot \left(U - U*\right)\right)} \]
              11. 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 \ell}, \frac{\ell}{Om}, t\right) - \left(\frac{\ell}{Om} \cdot \left(\frac{\ell}{Om} \cdot n\right)\right) \cdot \left(U - U*\right)\right)} \]
              12. metadata-eval71.0

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

              Alternative 4: 61.5% accurate, 0.4× speedup?

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

                1. Initial program 17.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 rewrites36.8%

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

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

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

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

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

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

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

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

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

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

                1. Initial program 67.8%

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

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

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

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

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

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

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

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

                  \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(t - 2 \cdot \frac{\ell \cdot \ell}{Om}\right) - \color{blue}{\left(\frac{\ell}{Om} \cdot \left(\frac{\ell}{Om} \cdot n\right)\right)} \cdot \left(U - U*\right)\right)} \]
                5. 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(\frac{\ell}{Om} \cdot \left(\frac{\ell}{Om} \cdot n\right)\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(\frac{\ell}{Om} \cdot \left(\frac{\ell}{Om} \cdot n\right)\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(\frac{\ell}{Om} \cdot \left(\frac{\ell}{Om} \cdot n\right)\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(\frac{\ell}{Om} \cdot \left(\frac{\ell}{Om} \cdot n\right)\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(\frac{\ell}{Om} \cdot \left(\frac{\ell}{Om} \cdot n\right)\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(\frac{\ell}{Om} \cdot \left(\frac{\ell}{Om} \cdot n\right)\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(\frac{\ell}{Om} \cdot \left(\frac{\ell}{Om} \cdot n\right)\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(\frac{\ell}{Om} \cdot \left(\frac{\ell}{Om} \cdot n\right)\right) \cdot \left(U - U*\right)\right)} \]
                  9. 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 \ell\right) \cdot \frac{\ell}{Om}} + t\right) - \left(\frac{\ell}{Om} \cdot \left(\frac{\ell}{Om} \cdot n\right)\right) \cdot \left(U - U*\right)\right)} \]
                  10. 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 \ell, \frac{\ell}{Om}, t\right)} - \left(\frac{\ell}{Om} \cdot \left(\frac{\ell}{Om} \cdot n\right)\right) \cdot \left(U - U*\right)\right)} \]
                  11. 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 \ell}, \frac{\ell}{Om}, t\right) - \left(\frac{\ell}{Om} \cdot \left(\frac{\ell}{Om} \cdot n\right)\right) \cdot \left(U - U*\right)\right)} \]
                  12. metadata-eval71.0

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                      if 2e-79 < (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 64.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(\left(t - 2 \cdot \frac{\ell \cdot \ell}{Om}\right) - \color{blue}{\left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right)} \cdot \left(U - U*\right)\right)} \]
                        2. *-commutativeN/A

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

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

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

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

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

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

                        \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(t - 2 \cdot \frac{\ell \cdot \ell}{Om}\right) - \color{blue}{\left(\frac{\ell}{Om} \cdot \left(\frac{\ell}{Om} \cdot n\right)\right)} \cdot \left(U - U*\right)\right)} \]
                      5. 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(\frac{\ell}{Om} \cdot \left(\frac{\ell}{Om} \cdot n\right)\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(\frac{\ell}{Om} \cdot \left(\frac{\ell}{Om} \cdot n\right)\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(\frac{\ell}{Om} \cdot \left(\frac{\ell}{Om} \cdot n\right)\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(\frac{\ell}{Om} \cdot \left(\frac{\ell}{Om} \cdot n\right)\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(\frac{\ell}{Om} \cdot \left(\frac{\ell}{Om} \cdot n\right)\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(\frac{\ell}{Om} \cdot \left(\frac{\ell}{Om} \cdot n\right)\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(\frac{\ell}{Om} \cdot \left(\frac{\ell}{Om} \cdot n\right)\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(\frac{\ell}{Om} \cdot \left(\frac{\ell}{Om} \cdot n\right)\right) \cdot \left(U - U*\right)\right)} \]
                        9. 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 \ell\right) \cdot \frac{\ell}{Om}} + t\right) - \left(\frac{\ell}{Om} \cdot \left(\frac{\ell}{Om} \cdot n\right)\right) \cdot \left(U - U*\right)\right)} \]
                        10. 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 \ell, \frac{\ell}{Om}, t\right)} - \left(\frac{\ell}{Om} \cdot \left(\frac{\ell}{Om} \cdot n\right)\right) \cdot \left(U - U*\right)\right)} \]
                        11. 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 \ell}, \frac{\ell}{Om}, t\right) - \left(\frac{\ell}{Om} \cdot \left(\frac{\ell}{Om} \cdot n\right)\right) \cdot \left(U - U*\right)\right)} \]
                        12. metadata-eval67.9

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                        Alternative 6: 52.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 5 \cdot 10^{-146}:\\ \;\;\;\;\sqrt{n \cdot \mathsf{fma}\left(-4, \frac{U \cdot \left(\ell \cdot \ell\right)}{Om}, 2 \cdot \left(U \cdot t\right)\right)}\\ \mathbf{elif}\;t\_3 \leq 2 \cdot 10^{+152}:\\ \;\;\;\;\sqrt{t\_2 \cdot \mathsf{fma}\left(-2, t\_1, t\right)}\\ \mathbf{else}:\\ \;\;\;\;\sqrt{\mathsf{fma}\left(2 \cdot U, n \cdot t, \frac{\left(\ell \cdot \left(\left(U \cdot \ell\right) \cdot n\right)\right) \cdot 4}{-Om}\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 5e-146)
                             (sqrt (* n (fma -4.0 (/ (* U (* l l)) Om) (* 2.0 (* U t)))))
                             (if (<= t_3 2e+152)
                               (sqrt (* t_2 (fma -2.0 t_1 t)))
                               (sqrt
                                (fma (* 2.0 U) (* n t) (/ (* (* l (* (* U l) n)) 4.0) (- Om))))))))
                        double code(double n, double U, double t, double l, double Om, double U_42_) {
                        	double t_1 = (l * l) / Om;
                        	double t_2 = (2.0 * n) * U;
                        	double t_3 = sqrt((t_2 * ((t - (2.0 * t_1)) - ((n * pow((l / Om), 2.0)) * (U - U_42_)))));
                        	double tmp;
                        	if (t_3 <= 5e-146) {
                        		tmp = sqrt((n * fma(-4.0, ((U * (l * l)) / Om), (2.0 * (U * t)))));
                        	} else if (t_3 <= 2e+152) {
                        		tmp = sqrt((t_2 * fma(-2.0, t_1, t)));
                        	} else {
                        		tmp = sqrt(fma((2.0 * U), (n * t), (((l * ((U * l) * n)) * 4.0) / -Om)));
                        	}
                        	return tmp;
                        }
                        
                        function code(n, U, t, l, Om, U_42_)
                        	t_1 = Float64(Float64(l * l) / Om)
                        	t_2 = Float64(Float64(2.0 * n) * U)
                        	t_3 = 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 <= 5e-146)
                        		tmp = sqrt(Float64(n * fma(-4.0, Float64(Float64(U * Float64(l * l)) / Om), Float64(2.0 * Float64(U * t)))));
                        	elseif (t_3 <= 2e+152)
                        		tmp = sqrt(Float64(t_2 * fma(-2.0, t_1, t)));
                        	else
                        		tmp = sqrt(fma(Float64(2.0 * U), Float64(n * t), Float64(Float64(Float64(l * Float64(Float64(U * l) * n)) * 4.0) / Float64(-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, 5e-146], N[Sqrt[N[(n * N[(-4.0 * N[(N[(U * N[(l * l), $MachinePrecision]), $MachinePrecision] / Om), $MachinePrecision] + N[(2.0 * N[(U * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], If[LessEqual[t$95$3, 2e+152], N[Sqrt[N[(t$95$2 * N[(-2.0 * t$95$1 + t), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], N[Sqrt[N[(N[(2.0 * U), $MachinePrecision] * N[(n * t), $MachinePrecision] + N[(N[(N[(l * N[(N[(U * l), $MachinePrecision] * n), $MachinePrecision]), $MachinePrecision] * 4.0), $MachinePrecision] / (-Om)), $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 5 \cdot 10^{-146}:\\
                        \;\;\;\;\sqrt{n \cdot \mathsf{fma}\left(-4, \frac{U \cdot \left(\ell \cdot \ell\right)}{Om}, 2 \cdot \left(U \cdot t\right)\right)}\\
                        
                        \mathbf{elif}\;t\_3 \leq 2 \cdot 10^{+152}:\\
                        \;\;\;\;\sqrt{t\_2 \cdot \mathsf{fma}\left(-2, t\_1, t\right)}\\
                        
                        \mathbf{else}:\\
                        \;\;\;\;\sqrt{\mathsf{fma}\left(2 \cdot U, n \cdot t, \frac{\left(\ell \cdot \left(\left(U \cdot \ell\right) \cdot n\right)\right) \cdot 4}{-Om}\right)}\\
                        
                        
                        \end{array}
                        \end{array}
                        
                        Derivation
                        1. Split input into 3 regimes
                        2. if (sqrt.f64 (*.f64 (*.f64 (*.f64 #s(literal 2 binary64) n) U) (-.f64 (-.f64 t (*.f64 #s(literal 2 binary64) (/.f64 (*.f64 l l) Om))) (*.f64 (*.f64 n (pow.f64 (/.f64 l Om) #s(literal 2 binary64))) (-.f64 U U*))))) < 4.99999999999999957e-146

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                              if 4.99999999999999957e-146 < (sqrt.f64 (*.f64 (*.f64 (*.f64 #s(literal 2 binary64) n) U) (-.f64 (-.f64 t (*.f64 #s(literal 2 binary64) (/.f64 (*.f64 l l) Om))) (*.f64 (*.f64 n (pow.f64 (/.f64 l Om) #s(literal 2 binary64))) (-.f64 U U*))))) < 2.0000000000000001e152

                              1. Initial program 98.1%

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

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

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

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

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

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

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

                                  \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \mathsf{fma}\left(-2, \frac{\color{blue}{\ell \cdot \ell}}{Om}, t\right)} \]
                                7. lower-*.f6484.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 rewrites84.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 2.0000000000000001e152 < (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 19.1%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                Alternative 7: 50.1% accurate, 0.4× speedup?

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

                                  1. Initial program 29.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                      1. Initial program 67.0%

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

                                        \[\leadsto \sqrt{\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-*.f6455.9

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                      Alternative 8: 50.1% accurate, 0.4× speedup?

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

                                        1. Initial program 29.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                            1. Initial program 67.0%

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

                                              \[\leadsto \sqrt{\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-*.f6455.9

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                            Alternative 9: 50.0% accurate, 0.4× speedup?

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

                                              1. Initial program 29.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                  1. Initial program 67.0%

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

                                                    \[\leadsto \sqrt{\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-*.f6455.9

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

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

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

                                                  1. Initial program 0.0%

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

                                                    \[\leadsto \color{blue}{\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.f6419.7

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

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

                                                Alternative 10: 50.2% accurate, 0.4× speedup?

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

                                                  1. Initial program 16.2%

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

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

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

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

                                                  1. Initial program 67.8%

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

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

                                                    \[\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 < (*.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.f6419.7

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

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

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

                                                Alternative 11: 48.7% accurate, 0.5× speedup?

                                                \[\begin{array}{l} \\ \begin{array}{l} t_1 := \frac{\ell \cdot \ell}{Om}\\ t_2 := \mathsf{fma}\left(-2, t\_1, t\right)\\ t_3 := \left(2 \cdot n\right) \cdot U\\ t_4 := t\_3 \cdot \left(\left(t - 2 \cdot t\_1\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)\\ \mathbf{if}\;t\_4 \leq 0 \lor \neg \left(t\_4 \leq 2 \cdot 10^{+304}\right):\\ \;\;\;\;\sqrt{\left(\left(t\_2 \cdot n\right) \cdot U\right) \cdot 2}\\ \mathbf{else}:\\ \;\;\;\;\sqrt{t\_3 \cdot t\_2}\\ \end{array} \end{array} \]
                                                (FPCore (n U t l Om U*)
                                                 :precision binary64
                                                 (let* ((t_1 (/ (* l l) Om))
                                                        (t_2 (fma -2.0 t_1 t))
                                                        (t_3 (* (* 2.0 n) U))
                                                        (t_4
                                                         (* t_3 (- (- t (* 2.0 t_1)) (* (* n (pow (/ l Om) 2.0)) (- U U*))))))
                                                   (if (or (<= t_4 0.0) (not (<= t_4 2e+304)))
                                                     (sqrt (* (* (* t_2 n) U) 2.0))
                                                     (sqrt (* t_3 t_2)))))
                                                double code(double n, double U, double t, double l, double Om, double U_42_) {
                                                	double t_1 = (l * l) / Om;
                                                	double t_2 = fma(-2.0, t_1, t);
                                                	double t_3 = (2.0 * n) * U;
                                                	double t_4 = t_3 * ((t - (2.0 * t_1)) - ((n * pow((l / Om), 2.0)) * (U - U_42_)));
                                                	double tmp;
                                                	if ((t_4 <= 0.0) || !(t_4 <= 2e+304)) {
                                                		tmp = sqrt((((t_2 * n) * U) * 2.0));
                                                	} else {
                                                		tmp = sqrt((t_3 * t_2));
                                                	}
                                                	return tmp;
                                                }
                                                
                                                function code(n, U, t, l, Om, U_42_)
                                                	t_1 = Float64(Float64(l * l) / Om)
                                                	t_2 = fma(-2.0, t_1, t)
                                                	t_3 = Float64(Float64(2.0 * n) * U)
                                                	t_4 = Float64(t_3 * Float64(Float64(t - Float64(2.0 * t_1)) - Float64(Float64(n * (Float64(l / Om) ^ 2.0)) * Float64(U - U_42_))))
                                                	tmp = 0.0
                                                	if ((t_4 <= 0.0) || !(t_4 <= 2e+304))
                                                		tmp = sqrt(Float64(Float64(Float64(t_2 * n) * U) * 2.0));
                                                	else
                                                		tmp = sqrt(Float64(t_3 * t_2));
                                                	end
                                                	return tmp
                                                end
                                                
                                                code[n_, U_, t_, l_, Om_, U$42$_] := Block[{t$95$1 = N[(N[(l * l), $MachinePrecision] / Om), $MachinePrecision]}, Block[{t$95$2 = N[(-2.0 * t$95$1 + t), $MachinePrecision]}, Block[{t$95$3 = N[(N[(2.0 * n), $MachinePrecision] * U), $MachinePrecision]}, Block[{t$95$4 = N[(t$95$3 * N[(N[(t - N[(2.0 * t$95$1), $MachinePrecision]), $MachinePrecision] - N[(N[(n * N[Power[N[(l / Om), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision] * N[(U - U$42$), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[Or[LessEqual[t$95$4, 0.0], N[Not[LessEqual[t$95$4, 2e+304]], $MachinePrecision]], N[Sqrt[N[(N[(N[(t$95$2 * n), $MachinePrecision] * U), $MachinePrecision] * 2.0), $MachinePrecision]], $MachinePrecision], N[Sqrt[N[(t$95$3 * t$95$2), $MachinePrecision]], $MachinePrecision]]]]]]
                                                
                                                \begin{array}{l}
                                                
                                                \\
                                                \begin{array}{l}
                                                t_1 := \frac{\ell \cdot \ell}{Om}\\
                                                t_2 := \mathsf{fma}\left(-2, t\_1, t\right)\\
                                                t_3 := \left(2 \cdot n\right) \cdot U\\
                                                t_4 := t\_3 \cdot \left(\left(t - 2 \cdot t\_1\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)\\
                                                \mathbf{if}\;t\_4 \leq 0 \lor \neg \left(t\_4 \leq 2 \cdot 10^{+304}\right):\\
                                                \;\;\;\;\sqrt{\left(\left(t\_2 \cdot n\right) \cdot U\right) \cdot 2}\\
                                                
                                                \mathbf{else}:\\
                                                \;\;\;\;\sqrt{t\_3 \cdot t\_2}\\
                                                
                                                
                                                \end{array}
                                                \end{array}
                                                
                                                Derivation
                                                1. Split input into 2 regimes
                                                2. if (*.f64 (*.f64 (*.f64 #s(literal 2 binary64) n) U) (-.f64 (-.f64 t (*.f64 #s(literal 2 binary64) (/.f64 (*.f64 l l) Om))) (*.f64 (*.f64 n (pow.f64 (/.f64 l Om) #s(literal 2 binary64))) (-.f64 U U*)))) < 0.0 or 1.9999999999999999e304 < (*.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 18.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{\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-*.f6422.6

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

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

                                                  if 0.0 < (*.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.9999999999999999e304

                                                  1. Initial program 97.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-*.f6484.0

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

                                                    \[\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)}} \]
                                                3. Recombined 2 regimes into one program.
                                                4. Final simplification47.5%

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

                                                Alternative 12: 39.8% accurate, 0.5× speedup?

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

                                                  1. Initial program 29.5%

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

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

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

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

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

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

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

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

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

                                                    if 3.99999999999999985e-291 < (*.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.9999999999999999e304

                                                    1. Initial program 98.1%

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

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

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

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

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

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

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

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

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

                                                      if 1.9999999999999999e304 < (*.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 19.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 rewrites20.7%

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

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

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

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

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

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

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

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

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

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

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

                                                    Alternative 13: 38.2% 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 4 \cdot 10^{-291}:\\ \;\;\;\;\sqrt{\left(\left(U \cdot 2\right) \cdot t\right) \cdot n}\\ \mathbf{else}:\\ \;\;\;\;\sqrt{\left(\left(U \cdot n\right) \cdot 2\right) \cdot t}\\ \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*))))
                                                          4e-291)
                                                       (sqrt (* (* (* U 2.0) t) n))
                                                       (sqrt (* (* (* U n) 2.0) t))))
                                                    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_)))) <= 4e-291) {
                                                    		tmp = sqrt((((U * 2.0) * t) * n));
                                                    	} else {
                                                    		tmp = sqrt((((U * n) * 2.0) * t));
                                                    	}
                                                    	return tmp;
                                                    }
                                                    
                                                    real(8) function code(n, u, t, l, om, u_42)
                                                        real(8), intent (in) :: n
                                                        real(8), intent (in) :: u
                                                        real(8), intent (in) :: t
                                                        real(8), intent (in) :: l
                                                        real(8), intent (in) :: om
                                                        real(8), intent (in) :: u_42
                                                        real(8) :: tmp
                                                        if ((((2.0d0 * n) * u) * ((t - (2.0d0 * ((l * l) / om))) - ((n * ((l / om) ** 2.0d0)) * (u - u_42)))) <= 4d-291) then
                                                            tmp = sqrt((((u * 2.0d0) * t) * n))
                                                        else
                                                            tmp = sqrt((((u * n) * 2.0d0) * t))
                                                        end if
                                                        code = tmp
                                                    end function
                                                    
                                                    public static double code(double n, double U, double t, double l, double Om, double U_42_) {
                                                    	double tmp;
                                                    	if ((((2.0 * n) * U) * ((t - (2.0 * ((l * l) / Om))) - ((n * Math.pow((l / Om), 2.0)) * (U - U_42_)))) <= 4e-291) {
                                                    		tmp = Math.sqrt((((U * 2.0) * t) * n));
                                                    	} else {
                                                    		tmp = Math.sqrt((((U * n) * 2.0) * t));
                                                    	}
                                                    	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_)))) <= 4e-291:
                                                    		tmp = math.sqrt((((U * 2.0) * t) * n))
                                                    	else:
                                                    		tmp = math.sqrt((((U * n) * 2.0) * t))
                                                    	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_)))) <= 4e-291)
                                                    		tmp = sqrt(Float64(Float64(Float64(U * 2.0) * t) * n));
                                                    	else
                                                    		tmp = sqrt(Float64(Float64(Float64(U * n) * 2.0) * t));
                                                    	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_)))) <= 4e-291)
                                                    		tmp = sqrt((((U * 2.0) * t) * n));
                                                    	else
                                                    		tmp = sqrt((((U * n) * 2.0) * t));
                                                    	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], 4e-291], N[Sqrt[N[(N[(N[(U * 2.0), $MachinePrecision] * t), $MachinePrecision] * n), $MachinePrecision]], $MachinePrecision], N[Sqrt[N[(N[(N[(U * n), $MachinePrecision] * 2.0), $MachinePrecision] * t), $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 4 \cdot 10^{-291}:\\
                                                    \;\;\;\;\sqrt{\left(\left(U \cdot 2\right) \cdot t\right) \cdot n}\\
                                                    
                                                    \mathbf{else}:\\
                                                    \;\;\;\;\sqrt{\left(\left(U \cdot n\right) \cdot 2\right) \cdot t}\\
                                                    
                                                    
                                                    \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*)))) < 3.99999999999999985e-291

                                                      1. Initial program 29.5%

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

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

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

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

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

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

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

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

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

                                                        if 3.99999999999999985e-291 < (*.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 54.4%

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

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

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

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

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

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

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

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

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

                                                        Alternative 14: 44.3% accurate, 1.6× speedup?

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

                                                          1. Initial program 53.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-*.f6436.9

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

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

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

                                                            if 1.4e-179 < l < 1e20

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

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

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

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

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

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

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

                                                              \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(t - 2 \cdot \frac{\ell \cdot \ell}{Om}\right) - \color{blue}{\left(\frac{\ell}{Om} \cdot \left(\frac{\ell}{Om} \cdot n\right)\right)} \cdot \left(U - U*\right)\right)} \]
                                                            5. 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(\frac{\ell}{Om} \cdot \left(\frac{\ell}{Om} \cdot n\right)\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(\frac{\ell}{Om} \cdot \left(\frac{\ell}{Om} \cdot n\right)\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(\frac{\ell}{Om} \cdot \left(\frac{\ell}{Om} \cdot n\right)\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(\frac{\ell}{Om} \cdot \left(\frac{\ell}{Om} \cdot n\right)\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(\frac{\ell}{Om} \cdot \left(\frac{\ell}{Om} \cdot n\right)\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(\frac{\ell}{Om} \cdot \left(\frac{\ell}{Om} \cdot n\right)\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(\frac{\ell}{Om} \cdot \left(\frac{\ell}{Om} \cdot n\right)\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(\frac{\ell}{Om} \cdot \left(\frac{\ell}{Om} \cdot n\right)\right) \cdot \left(U - U*\right)\right)} \]
                                                              9. 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 \ell\right) \cdot \frac{\ell}{Om}} + t\right) - \left(\frac{\ell}{Om} \cdot \left(\frac{\ell}{Om} \cdot n\right)\right) \cdot \left(U - U*\right)\right)} \]
                                                              10. 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 \ell, \frac{\ell}{Om}, t\right)} - \left(\frac{\ell}{Om} \cdot \left(\frac{\ell}{Om} \cdot n\right)\right) \cdot \left(U - U*\right)\right)} \]
                                                              11. 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 \ell}, \frac{\ell}{Om}, t\right) - \left(\frac{\ell}{Om} \cdot \left(\frac{\ell}{Om} \cdot n\right)\right) \cdot \left(U - U*\right)\right)} \]
                                                              12. metadata-eval75.3

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                            if 1e20 < l < 1.29999999999999994e154

                                                            1. Initial program 43.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 l around 0

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

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

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

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

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

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

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

                                                            if 1.29999999999999994e154 < l

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                              Alternative 15: 44.0% accurate, 2.1× speedup?

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

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

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

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

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

                                                                  if 1.5500000000000001e-184 < l < 5.20000000000000043e142

                                                                  1. Initial program 63.6%

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

                                                                    \[\leadsto \sqrt{\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. fp-cancel-sign-sub-invN/A

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

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

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

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

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

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

                                                                  if 5.20000000000000043e142 < l

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                                    Alternative 16: 43.8% accurate, 3.3× speedup?

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

                                                                      1. Initial program 50.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-*.f6445.1

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

                                                                        \[\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 1.42e87 < Om

                                                                      1. Initial program 51.3%

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

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

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

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

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

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

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

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

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

                                                                      Alternative 17: 37.5% accurate, 3.4× speedup?

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

                                                                        1. Initial program 56.4%

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

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

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

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

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

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

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

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

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

                                                                          if 1.6e114 < l

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                                          Alternative 18: 38.8% accurate, 4.2× speedup?

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

                                                                            1. Initial program 47.5%

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

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

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

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

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

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

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

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

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

                                                                              if 4.7999999999999998e-250 < t

                                                                              1. Initial program 54.3%

                                                                                \[\sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(t - 2 \cdot \frac{\ell \cdot \ell}{Om}\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
                                                                              2. Add Preprocessing
                                                                              3. Applied rewrites34.7%

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

                                                                                \[\leadsto \color{blue}{\sqrt{t}} \cdot \sqrt{U \cdot \left(n \cdot 2\right)} \]
                                                                              5. Step-by-step derivation
                                                                                1. lower-sqrt.f6445.0

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

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

                                                                            Alternative 19: 35.2% accurate, 6.8× speedup?

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

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

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

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

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

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

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

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

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

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

                                                                              Reproduce

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