Toniolo and Linder, Equation (13)

Percentage Accurate: 49.7% → 59.8%
Time: 14.8s
Alternatives: 20
Speedup: 2.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 20 alternatives:

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

Initial Program: 49.7% 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: 59.8% accurate, 1.9× speedup?

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

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

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

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


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

    1. Initial program 51.4%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      if -2.9999999999999999e-75 < n < 1.12e-300

      1. Initial program 43.9%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        if 1.12e-300 < n

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

          Alternative 2: 54.4% accurate, 0.4× speedup?

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

            1. Initial program 98.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{\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. 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(2\right)\right) \cdot \frac{{\ell}^{2}}{Om}\right)}} \]
              2. metadata-evalN/A

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

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

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

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

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

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

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

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

            1. Initial program 20.7%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

              1. Initial program 12.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                Alternative 4: 53.1% accurate, 0.4× speedup?

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

                  1. Initial program 12.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                    \[\leadsto \sqrt{n} \cdot \sqrt{\color{blue}{2 \cdot \left(U \cdot t\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 68.7%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                    Alternative 5: 53.2% accurate, 0.4× speedup?

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                        \[\leadsto \sqrt{n} \cdot \sqrt{\color{blue}{2 \cdot \left(U \cdot t\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 68.7%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                          Alternative 6: 52.2% accurate, 0.4× speedup?

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

                            1. Initial program 12.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                              \[\leadsto \sqrt{n} \cdot \sqrt{\color{blue}{2 \cdot \left(U \cdot t\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 68.7%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                1. Initial program 0.0%

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

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

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

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

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

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

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

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

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

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

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

                                    \[\leadsto \sqrt{U* \cdot U} \cdot \frac{\color{blue}{\left(\sqrt{2} \cdot n\right)} \cdot \ell}{Om} \]
                                  11. lower-sqrt.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 simplification49.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{n} \cdot \sqrt{2 \cdot \left(U \cdot t\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(t - \ell \cdot \frac{2 \cdot \ell}{Om}\right)}\\ \mathbf{else}:\\ \;\;\;\;\sqrt{U* \cdot U} \cdot \frac{\left(\sqrt{2} \cdot n\right) \cdot \ell}{Om}\\ \end{array} \]
                              6. Add Preprocessing

                              Alternative 7: 59.7% accurate, 1.9× speedup?

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

                                1. Initial program 51.4%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                  if -2.9999999999999999e-75 < n < 1.12e-300

                                  1. Initial program 43.9%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                    if 1.12e-300 < n

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                    Alternative 8: 54.8% accurate, 2.2× speedup?

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                            if 1.50000000000000014e-39 < l < 7.1999999999999999e149

                                            1. Initial program 45.4%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                            if 7.1999999999999999e149 < l

                                            1. Initial program 15.9%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                            Alternative 9: 54.7% accurate, 2.2× speedup?

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                    if 1.50000000000000014e-39 < l < 7.1999999999999999e149

                                                    1. Initial program 45.4%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                    if 7.1999999999999999e149 < l

                                                    1. Initial program 15.9%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                      Alternative 10: 54.7% accurate, 2.2× speedup?

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

                                                        1. Initial program 57.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 n around 0

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                              if 1.70000000000000003e-99 < l < 7.1999999999999999e149

                                                              1. Initial program 47.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                                if 7.1999999999999999e149 < l

                                                                1. Initial program 15.9%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                                  Alternative 11: 58.2% accurate, 2.2× speedup?

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                                          if -1.59999999999999993e-73 < n < 6.50000000000000032e-20

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                                          Alternative 12: 57.3% accurate, 2.2× speedup?

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                                                if -1.59999999999999993e-73 < n < 6.59999999999999976e-16

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                                                Alternative 13: 53.0% accurate, 2.4× speedup?

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

                                                                                  1. Initial program 57.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 n around 0

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                                                        if 1.70000000000000003e-99 < l

                                                                                        1. Initial program 33.6%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                                                        Alternative 14: 45.5% accurate, 3.3× speedup?

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

                                                                                          1. Initial program 57.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{\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. 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(2\right)\right) \cdot \frac{{\ell}^{2}}{Om}\right)}} \]
                                                                                            2. metadata-evalN/A

                                                                                              \[\leadsto \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(t + \color{blue}{-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-*.f6449.6

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

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

                                                                                          if 5.7999999999999998e-58 < l

                                                                                          1. Initial program 30.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 n around 0

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                                                          Alternative 15: 41.2% accurate, 3.3× speedup?

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

                                                                                            1. Initial program 57.2%

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

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

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

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

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

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

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

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

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

                                                                                              if 4.69999999999999994e-58 < l

                                                                                              1. Initial program 30.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 n around 0

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                                                              Alternative 16: 36.9% accurate, 3.4× speedup?

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

                                                                                                1. Initial program 55.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-*.f6436.6

                                                                                                    \[\leadsto \sqrt{\left(\color{blue}{\left(n \cdot t\right)} \cdot U\right) \cdot 2} \]
                                                                                                5. Applied rewrites36.6%

                                                                                                  \[\leadsto \sqrt{\color{blue}{\left(\left(n \cdot t\right) \cdot U\right) \cdot 2}} \]
                                                                                                6. Step-by-step derivation
                                                                                                  1. Applied rewrites42.2%

                                                                                                    \[\leadsto \sqrt{\left(\left(n \cdot U\right) \cdot t\right) \cdot 2} \]

                                                                                                  if 1.02e39 < l

                                                                                                  1. Initial program 28.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 inf

                                                                                                    \[\leadsto \sqrt{\color{blue}{-2 \cdot \left(U \cdot \left({\ell}^{2} \cdot \left(n \cdot \left(2 \cdot \frac{1}{Om} + \frac{n \cdot \left(U - U*\right)}{{Om}^{2}}\right)\right)\right)\right)}} \]
                                                                                                  4. Step-by-step derivation
                                                                                                    1. associate-*r*N/A

                                                                                                      \[\leadsto \sqrt{\color{blue}{\left(-2 \cdot U\right) \cdot \left({\ell}^{2} \cdot \left(n \cdot \left(2 \cdot \frac{1}{Om} + \frac{n \cdot \left(U - U*\right)}{{Om}^{2}}\right)\right)\right)}} \]
                                                                                                    2. lower-*.f64N/A

                                                                                                      \[\leadsto \sqrt{\color{blue}{\left(-2 \cdot U\right) \cdot \left({\ell}^{2} \cdot \left(n \cdot \left(2 \cdot \frac{1}{Om} + \frac{n \cdot \left(U - U*\right)}{{Om}^{2}}\right)\right)\right)}} \]
                                                                                                    3. lower-*.f64N/A

                                                                                                      \[\leadsto \sqrt{\color{blue}{\left(-2 \cdot U\right)} \cdot \left({\ell}^{2} \cdot \left(n \cdot \left(2 \cdot \frac{1}{Om} + \frac{n \cdot \left(U - U*\right)}{{Om}^{2}}\right)\right)\right)} \]
                                                                                                    4. associate-*r*N/A

                                                                                                      \[\leadsto \sqrt{\left(-2 \cdot U\right) \cdot \color{blue}{\left(\left({\ell}^{2} \cdot n\right) \cdot \left(2 \cdot \frac{1}{Om} + \frac{n \cdot \left(U - U*\right)}{{Om}^{2}}\right)\right)}} \]
                                                                                                    5. lower-*.f64N/A

                                                                                                      \[\leadsto \sqrt{\left(-2 \cdot U\right) \cdot \color{blue}{\left(\left({\ell}^{2} \cdot n\right) \cdot \left(2 \cdot \frac{1}{Om} + \frac{n \cdot \left(U - U*\right)}{{Om}^{2}}\right)\right)}} \]
                                                                                                    6. lower-*.f64N/A

                                                                                                      \[\leadsto \sqrt{\left(-2 \cdot U\right) \cdot \left(\color{blue}{\left({\ell}^{2} \cdot n\right)} \cdot \left(2 \cdot \frac{1}{Om} + \frac{n \cdot \left(U - U*\right)}{{Om}^{2}}\right)\right)} \]
                                                                                                    7. unpow2N/A

                                                                                                      \[\leadsto \sqrt{\left(-2 \cdot U\right) \cdot \left(\left(\color{blue}{\left(\ell \cdot \ell\right)} \cdot n\right) \cdot \left(2 \cdot \frac{1}{Om} + \frac{n \cdot \left(U - U*\right)}{{Om}^{2}}\right)\right)} \]
                                                                                                    8. lower-*.f64N/A

                                                                                                      \[\leadsto \sqrt{\left(-2 \cdot U\right) \cdot \left(\left(\color{blue}{\left(\ell \cdot \ell\right)} \cdot n\right) \cdot \left(2 \cdot \frac{1}{Om} + \frac{n \cdot \left(U - U*\right)}{{Om}^{2}}\right)\right)} \]
                                                                                                    9. +-commutativeN/A

                                                                                                      \[\leadsto \sqrt{\left(-2 \cdot U\right) \cdot \left(\left(\left(\ell \cdot \ell\right) \cdot n\right) \cdot \color{blue}{\left(\frac{n \cdot \left(U - U*\right)}{{Om}^{2}} + 2 \cdot \frac{1}{Om}\right)}\right)} \]
                                                                                                    10. *-commutativeN/A

                                                                                                      \[\leadsto \sqrt{\left(-2 \cdot U\right) \cdot \left(\left(\left(\ell \cdot \ell\right) \cdot n\right) \cdot \left(\frac{\color{blue}{\left(U - U*\right) \cdot n}}{{Om}^{2}} + 2 \cdot \frac{1}{Om}\right)\right)} \]
                                                                                                    11. unpow2N/A

                                                                                                      \[\leadsto \sqrt{\left(-2 \cdot U\right) \cdot \left(\left(\left(\ell \cdot \ell\right) \cdot n\right) \cdot \left(\frac{\left(U - U*\right) \cdot n}{\color{blue}{Om \cdot Om}} + 2 \cdot \frac{1}{Om}\right)\right)} \]
                                                                                                    12. times-fracN/A

                                                                                                      \[\leadsto \sqrt{\left(-2 \cdot U\right) \cdot \left(\left(\left(\ell \cdot \ell\right) \cdot n\right) \cdot \left(\color{blue}{\frac{U - U*}{Om} \cdot \frac{n}{Om}} + 2 \cdot \frac{1}{Om}\right)\right)} \]
                                                                                                    13. lower-fma.f64N/A

                                                                                                      \[\leadsto \sqrt{\left(-2 \cdot U\right) \cdot \left(\left(\left(\ell \cdot \ell\right) \cdot n\right) \cdot \color{blue}{\mathsf{fma}\left(\frac{U - U*}{Om}, \frac{n}{Om}, 2 \cdot \frac{1}{Om}\right)}\right)} \]
                                                                                                    14. lower-/.f64N/A

                                                                                                      \[\leadsto \sqrt{\left(-2 \cdot U\right) \cdot \left(\left(\left(\ell \cdot \ell\right) \cdot n\right) \cdot \mathsf{fma}\left(\color{blue}{\frac{U - U*}{Om}}, \frac{n}{Om}, 2 \cdot \frac{1}{Om}\right)\right)} \]
                                                                                                    15. lower--.f64N/A

                                                                                                      \[\leadsto \sqrt{\left(-2 \cdot U\right) \cdot \left(\left(\left(\ell \cdot \ell\right) \cdot n\right) \cdot \mathsf{fma}\left(\frac{\color{blue}{U - U*}}{Om}, \frac{n}{Om}, 2 \cdot \frac{1}{Om}\right)\right)} \]
                                                                                                    16. lower-/.f64N/A

                                                                                                      \[\leadsto \sqrt{\left(-2 \cdot U\right) \cdot \left(\left(\left(\ell \cdot \ell\right) \cdot n\right) \cdot \mathsf{fma}\left(\frac{U - U*}{Om}, \color{blue}{\frac{n}{Om}}, 2 \cdot \frac{1}{Om}\right)\right)} \]
                                                                                                    17. associate-*r/N/A

                                                                                                      \[\leadsto \sqrt{\left(-2 \cdot U\right) \cdot \left(\left(\left(\ell \cdot \ell\right) \cdot n\right) \cdot \mathsf{fma}\left(\frac{U - U*}{Om}, \frac{n}{Om}, \color{blue}{\frac{2 \cdot 1}{Om}}\right)\right)} \]
                                                                                                    18. metadata-evalN/A

                                                                                                      \[\leadsto \sqrt{\left(-2 \cdot U\right) \cdot \left(\left(\left(\ell \cdot \ell\right) \cdot n\right) \cdot \mathsf{fma}\left(\frac{U - U*}{Om}, \frac{n}{Om}, \frac{\color{blue}{2}}{Om}\right)\right)} \]
                                                                                                    19. lower-/.f6445.0

                                                                                                      \[\leadsto \sqrt{\left(-2 \cdot U\right) \cdot \left(\left(\left(\ell \cdot \ell\right) \cdot n\right) \cdot \mathsf{fma}\left(\frac{U - U*}{Om}, \frac{n}{Om}, \color{blue}{\frac{2}{Om}}\right)\right)} \]
                                                                                                  5. Applied rewrites45.0%

                                                                                                    \[\leadsto \sqrt{\color{blue}{\left(-2 \cdot U\right) \cdot \left(\left(\left(\ell \cdot \ell\right) \cdot n\right) \cdot \mathsf{fma}\left(\frac{U - U*}{Om}, \frac{n}{Om}, \frac{2}{Om}\right)\right)}} \]
                                                                                                  6. Taylor expanded in n around 0

                                                                                                    \[\leadsto \sqrt{\left(-2 \cdot U\right) \cdot \left(2 \cdot \color{blue}{\frac{{\ell}^{2} \cdot n}{Om}}\right)} \]
                                                                                                  7. Step-by-step derivation
                                                                                                    1. Applied rewrites21.9%

                                                                                                      \[\leadsto \sqrt{\left(-2 \cdot U\right) \cdot \left(\frac{\left(\ell \cdot \ell\right) \cdot n}{Om} \cdot \color{blue}{2}\right)} \]
                                                                                                  8. Recombined 2 regimes into one program.
                                                                                                  9. Add Preprocessing

                                                                                                  Alternative 17: 36.8% accurate, 3.7× speedup?

                                                                                                  \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;\ell \leq 1.02 \cdot 10^{+39}:\\ \;\;\;\;\sqrt{\left(\left(n \cdot U\right) \cdot t\right) \cdot 2}\\ \mathbf{else}:\\ \;\;\;\;\sqrt{\frac{\left(\left(\ell \cdot \ell\right) \cdot n\right) \cdot U}{Om} \cdot -4}\\ \end{array} \end{array} \]
                                                                                                  (FPCore (n U t l Om U*)
                                                                                                   :precision binary64
                                                                                                   (if (<= l 1.02e+39)
                                                                                                     (sqrt (* (* (* n U) t) 2.0))
                                                                                                     (sqrt (* (/ (* (* (* l l) n) U) Om) -4.0))))
                                                                                                  double code(double n, double U, double t, double l, double Om, double U_42_) {
                                                                                                  	double tmp;
                                                                                                  	if (l <= 1.02e+39) {
                                                                                                  		tmp = sqrt((((n * U) * t) * 2.0));
                                                                                                  	} else {
                                                                                                  		tmp = sqrt((((((l * l) * n) * U) / Om) * -4.0));
                                                                                                  	}
                                                                                                  	return tmp;
                                                                                                  }
                                                                                                  
                                                                                                  real(8) function code(n, u, t, l, om, u_42)
                                                                                                      real(8), intent (in) :: n
                                                                                                      real(8), intent (in) :: u
                                                                                                      real(8), intent (in) :: t
                                                                                                      real(8), intent (in) :: l
                                                                                                      real(8), intent (in) :: om
                                                                                                      real(8), intent (in) :: u_42
                                                                                                      real(8) :: tmp
                                                                                                      if (l <= 1.02d+39) then
                                                                                                          tmp = sqrt((((n * u) * t) * 2.0d0))
                                                                                                      else
                                                                                                          tmp = sqrt((((((l * l) * n) * u) / om) * (-4.0d0)))
                                                                                                      end if
                                                                                                      code = tmp
                                                                                                  end function
                                                                                                  
                                                                                                  public static double code(double n, double U, double t, double l, double Om, double U_42_) {
                                                                                                  	double tmp;
                                                                                                  	if (l <= 1.02e+39) {
                                                                                                  		tmp = Math.sqrt((((n * U) * t) * 2.0));
                                                                                                  	} else {
                                                                                                  		tmp = Math.sqrt((((((l * l) * n) * U) / Om) * -4.0));
                                                                                                  	}
                                                                                                  	return tmp;
                                                                                                  }
                                                                                                  
                                                                                                  def code(n, U, t, l, Om, U_42_):
                                                                                                  	tmp = 0
                                                                                                  	if l <= 1.02e+39:
                                                                                                  		tmp = math.sqrt((((n * U) * t) * 2.0))
                                                                                                  	else:
                                                                                                  		tmp = math.sqrt((((((l * l) * n) * U) / Om) * -4.0))
                                                                                                  	return tmp
                                                                                                  
                                                                                                  function code(n, U, t, l, Om, U_42_)
                                                                                                  	tmp = 0.0
                                                                                                  	if (l <= 1.02e+39)
                                                                                                  		tmp = sqrt(Float64(Float64(Float64(n * U) * t) * 2.0));
                                                                                                  	else
                                                                                                  		tmp = sqrt(Float64(Float64(Float64(Float64(Float64(l * l) * n) * U) / Om) * -4.0));
                                                                                                  	end
                                                                                                  	return tmp
                                                                                                  end
                                                                                                  
                                                                                                  function tmp_2 = code(n, U, t, l, Om, U_42_)
                                                                                                  	tmp = 0.0;
                                                                                                  	if (l <= 1.02e+39)
                                                                                                  		tmp = sqrt((((n * U) * t) * 2.0));
                                                                                                  	else
                                                                                                  		tmp = sqrt((((((l * l) * n) * U) / Om) * -4.0));
                                                                                                  	end
                                                                                                  	tmp_2 = tmp;
                                                                                                  end
                                                                                                  
                                                                                                  code[n_, U_, t_, l_, Om_, U$42$_] := If[LessEqual[l, 1.02e+39], N[Sqrt[N[(N[(N[(n * U), $MachinePrecision] * t), $MachinePrecision] * 2.0), $MachinePrecision]], $MachinePrecision], N[Sqrt[N[(N[(N[(N[(N[(l * l), $MachinePrecision] * n), $MachinePrecision] * U), $MachinePrecision] / Om), $MachinePrecision] * -4.0), $MachinePrecision]], $MachinePrecision]]
                                                                                                  
                                                                                                  \begin{array}{l}
                                                                                                  
                                                                                                  \\
                                                                                                  \begin{array}{l}
                                                                                                  \mathbf{if}\;\ell \leq 1.02 \cdot 10^{+39}:\\
                                                                                                  \;\;\;\;\sqrt{\left(\left(n \cdot U\right) \cdot t\right) \cdot 2}\\
                                                                                                  
                                                                                                  \mathbf{else}:\\
                                                                                                  \;\;\;\;\sqrt{\frac{\left(\left(\ell \cdot \ell\right) \cdot n\right) \cdot U}{Om} \cdot -4}\\
                                                                                                  
                                                                                                  
                                                                                                  \end{array}
                                                                                                  \end{array}
                                                                                                  
                                                                                                  Derivation
                                                                                                  1. Split input into 2 regimes
                                                                                                  2. if l < 1.02e39

                                                                                                    1. Initial program 55.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-*.f6436.6

                                                                                                        \[\leadsto \sqrt{\left(\color{blue}{\left(n \cdot t\right)} \cdot U\right) \cdot 2} \]
                                                                                                    5. Applied rewrites36.6%

                                                                                                      \[\leadsto \sqrt{\color{blue}{\left(\left(n \cdot t\right) \cdot U\right) \cdot 2}} \]
                                                                                                    6. Step-by-step derivation
                                                                                                      1. Applied rewrites42.2%

                                                                                                        \[\leadsto \sqrt{\left(\left(n \cdot U\right) \cdot t\right) \cdot 2} \]

                                                                                                      if 1.02e39 < l

                                                                                                      1. Initial program 28.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 0

                                                                                                        \[\leadsto \sqrt{\color{blue}{-2 \cdot \left(U \cdot \left(n \cdot \left(2 \cdot \frac{{\ell}^{2}}{Om} + \frac{{\ell}^{2} \cdot \left(n \cdot \left(U - U*\right)\right)}{{Om}^{2}}\right)\right)\right)}} \]
                                                                                                      4. Step-by-step derivation
                                                                                                        1. associate-*r*N/A

                                                                                                          \[\leadsto \sqrt{\color{blue}{\left(-2 \cdot U\right) \cdot \left(n \cdot \left(2 \cdot \frac{{\ell}^{2}}{Om} + \frac{{\ell}^{2} \cdot \left(n \cdot \left(U - U*\right)\right)}{{Om}^{2}}\right)\right)}} \]
                                                                                                        2. lower-*.f64N/A

                                                                                                          \[\leadsto \sqrt{\color{blue}{\left(-2 \cdot U\right) \cdot \left(n \cdot \left(2 \cdot \frac{{\ell}^{2}}{Om} + \frac{{\ell}^{2} \cdot \left(n \cdot \left(U - U*\right)\right)}{{Om}^{2}}\right)\right)}} \]
                                                                                                        3. lower-*.f64N/A

                                                                                                          \[\leadsto \sqrt{\color{blue}{\left(-2 \cdot U\right)} \cdot \left(n \cdot \left(2 \cdot \frac{{\ell}^{2}}{Om} + \frac{{\ell}^{2} \cdot \left(n \cdot \left(U - U*\right)\right)}{{Om}^{2}}\right)\right)} \]
                                                                                                        4. *-commutativeN/A

                                                                                                          \[\leadsto \sqrt{\left(-2 \cdot U\right) \cdot \color{blue}{\left(\left(2 \cdot \frac{{\ell}^{2}}{Om} + \frac{{\ell}^{2} \cdot \left(n \cdot \left(U - U*\right)\right)}{{Om}^{2}}\right) \cdot n\right)}} \]
                                                                                                        5. lower-*.f64N/A

                                                                                                          \[\leadsto \sqrt{\left(-2 \cdot U\right) \cdot \color{blue}{\left(\left(2 \cdot \frac{{\ell}^{2}}{Om} + \frac{{\ell}^{2} \cdot \left(n \cdot \left(U - U*\right)\right)}{{Om}^{2}}\right) \cdot n\right)}} \]
                                                                                                      5. Applied rewrites41.4%

                                                                                                        \[\leadsto \sqrt{\color{blue}{\left(-2 \cdot U\right) \cdot \left(\frac{\left(\ell \cdot \ell\right) \cdot \mathsf{fma}\left(U - U*, \frac{n}{Om}, 2\right)}{Om} \cdot n\right)}} \]
                                                                                                      6. Taylor expanded in n around 0

                                                                                                        \[\leadsto \sqrt{-4 \cdot \color{blue}{\frac{U \cdot \left({\ell}^{2} \cdot n\right)}{Om}}} \]
                                                                                                      7. Step-by-step derivation
                                                                                                        1. Applied rewrites18.2%

                                                                                                          \[\leadsto \sqrt{\frac{\left(\left(\ell \cdot \ell\right) \cdot n\right) \cdot U}{Om} \cdot \color{blue}{-4}} \]
                                                                                                      8. Recombined 2 regimes into one program.
                                                                                                      9. Add Preprocessing

                                                                                                      Alternative 18: 35.1% accurate, 5.6× speedup?

                                                                                                      \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;\ell \leq 1.2 \cdot 10^{-55}:\\ \;\;\;\;\sqrt{\left(\left(n \cdot U\right) \cdot t\right) \cdot 2}\\ \mathbf{else}:\\ \;\;\;\;\sqrt{\left(\left(n \cdot t\right) \cdot U\right) \cdot 2}\\ \end{array} \end{array} \]
                                                                                                      (FPCore (n U t l Om U*)
                                                                                                       :precision binary64
                                                                                                       (if (<= l 1.2e-55) (sqrt (* (* (* n U) t) 2.0)) (sqrt (* (* (* n t) U) 2.0))))
                                                                                                      double code(double n, double U, double t, double l, double Om, double U_42_) {
                                                                                                      	double tmp;
                                                                                                      	if (l <= 1.2e-55) {
                                                                                                      		tmp = sqrt((((n * U) * t) * 2.0));
                                                                                                      	} else {
                                                                                                      		tmp = sqrt((((n * t) * U) * 2.0));
                                                                                                      	}
                                                                                                      	return tmp;
                                                                                                      }
                                                                                                      
                                                                                                      real(8) function code(n, u, t, l, om, u_42)
                                                                                                          real(8), intent (in) :: n
                                                                                                          real(8), intent (in) :: u
                                                                                                          real(8), intent (in) :: t
                                                                                                          real(8), intent (in) :: l
                                                                                                          real(8), intent (in) :: om
                                                                                                          real(8), intent (in) :: u_42
                                                                                                          real(8) :: tmp
                                                                                                          if (l <= 1.2d-55) then
                                                                                                              tmp = sqrt((((n * u) * t) * 2.0d0))
                                                                                                          else
                                                                                                              tmp = sqrt((((n * t) * u) * 2.0d0))
                                                                                                          end if
                                                                                                          code = tmp
                                                                                                      end function
                                                                                                      
                                                                                                      public static double code(double n, double U, double t, double l, double Om, double U_42_) {
                                                                                                      	double tmp;
                                                                                                      	if (l <= 1.2e-55) {
                                                                                                      		tmp = Math.sqrt((((n * U) * t) * 2.0));
                                                                                                      	} else {
                                                                                                      		tmp = Math.sqrt((((n * t) * U) * 2.0));
                                                                                                      	}
                                                                                                      	return tmp;
                                                                                                      }
                                                                                                      
                                                                                                      def code(n, U, t, l, Om, U_42_):
                                                                                                      	tmp = 0
                                                                                                      	if l <= 1.2e-55:
                                                                                                      		tmp = math.sqrt((((n * U) * t) * 2.0))
                                                                                                      	else:
                                                                                                      		tmp = math.sqrt((((n * t) * U) * 2.0))
                                                                                                      	return tmp
                                                                                                      
                                                                                                      function code(n, U, t, l, Om, U_42_)
                                                                                                      	tmp = 0.0
                                                                                                      	if (l <= 1.2e-55)
                                                                                                      		tmp = sqrt(Float64(Float64(Float64(n * U) * t) * 2.0));
                                                                                                      	else
                                                                                                      		tmp = sqrt(Float64(Float64(Float64(n * t) * U) * 2.0));
                                                                                                      	end
                                                                                                      	return tmp
                                                                                                      end
                                                                                                      
                                                                                                      function tmp_2 = code(n, U, t, l, Om, U_42_)
                                                                                                      	tmp = 0.0;
                                                                                                      	if (l <= 1.2e-55)
                                                                                                      		tmp = sqrt((((n * U) * t) * 2.0));
                                                                                                      	else
                                                                                                      		tmp = sqrt((((n * t) * U) * 2.0));
                                                                                                      	end
                                                                                                      	tmp_2 = tmp;
                                                                                                      end
                                                                                                      
                                                                                                      code[n_, U_, t_, l_, Om_, U$42$_] := If[LessEqual[l, 1.2e-55], N[Sqrt[N[(N[(N[(n * U), $MachinePrecision] * t), $MachinePrecision] * 2.0), $MachinePrecision]], $MachinePrecision], N[Sqrt[N[(N[(N[(n * t), $MachinePrecision] * U), $MachinePrecision] * 2.0), $MachinePrecision]], $MachinePrecision]]
                                                                                                      
                                                                                                      \begin{array}{l}
                                                                                                      
                                                                                                      \\
                                                                                                      \begin{array}{l}
                                                                                                      \mathbf{if}\;\ell \leq 1.2 \cdot 10^{-55}:\\
                                                                                                      \;\;\;\;\sqrt{\left(\left(n \cdot U\right) \cdot t\right) \cdot 2}\\
                                                                                                      
                                                                                                      \mathbf{else}:\\
                                                                                                      \;\;\;\;\sqrt{\left(\left(n \cdot t\right) \cdot U\right) \cdot 2}\\
                                                                                                      
                                                                                                      
                                                                                                      \end{array}
                                                                                                      \end{array}
                                                                                                      
                                                                                                      Derivation
                                                                                                      1. Split input into 2 regimes
                                                                                                      2. if l < 1.19999999999999996e-55

                                                                                                        1. Initial program 57.2%

                                                                                                          \[\sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(t - 2 \cdot \frac{\ell \cdot \ell}{Om}\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
                                                                                                        2. Add Preprocessing
                                                                                                        3. Taylor expanded in t around inf

                                                                                                          \[\leadsto \sqrt{\color{blue}{2 \cdot \left(U \cdot \left(n \cdot t\right)\right)}} \]
                                                                                                        4. Step-by-step derivation
                                                                                                          1. *-commutativeN/A

                                                                                                            \[\leadsto \sqrt{\color{blue}{\left(U \cdot \left(n \cdot t\right)\right) \cdot 2}} \]
                                                                                                          2. lower-*.f64N/A

                                                                                                            \[\leadsto \sqrt{\color{blue}{\left(U \cdot \left(n \cdot t\right)\right) \cdot 2}} \]
                                                                                                          3. *-commutativeN/A

                                                                                                            \[\leadsto \sqrt{\color{blue}{\left(\left(n \cdot t\right) \cdot U\right)} \cdot 2} \]
                                                                                                          4. lower-*.f64N/A

                                                                                                            \[\leadsto \sqrt{\color{blue}{\left(\left(n \cdot t\right) \cdot U\right)} \cdot 2} \]
                                                                                                          5. lower-*.f6436.3

                                                                                                            \[\leadsto \sqrt{\left(\color{blue}{\left(n \cdot t\right)} \cdot U\right) \cdot 2} \]
                                                                                                        5. Applied rewrites36.3%

                                                                                                          \[\leadsto \sqrt{\color{blue}{\left(\left(n \cdot t\right) \cdot U\right) \cdot 2}} \]
                                                                                                        6. Step-by-step derivation
                                                                                                          1. Applied rewrites43.1%

                                                                                                            \[\leadsto \sqrt{\left(\left(n \cdot U\right) \cdot t\right) \cdot 2} \]

                                                                                                          if 1.19999999999999996e-55 < l

                                                                                                          1. Initial program 30.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-*.f6421.8

                                                                                                              \[\leadsto \sqrt{\left(\color{blue}{\left(n \cdot t\right)} \cdot U\right) \cdot 2} \]
                                                                                                          5. Applied rewrites21.8%

                                                                                                            \[\leadsto \sqrt{\color{blue}{\left(\left(n \cdot t\right) \cdot U\right) \cdot 2}} \]
                                                                                                        7. Recombined 2 regimes into one program.
                                                                                                        8. Add Preprocessing

                                                                                                        Alternative 19: 35.0% accurate, 6.8× speedup?

                                                                                                        \[\begin{array}{l} \\ \sqrt{\left(\left(n \cdot U\right) \cdot t\right) \cdot 2} \end{array} \]
                                                                                                        (FPCore (n U t l Om U*) :precision binary64 (sqrt (* (* (* n U) t) 2.0)))
                                                                                                        double code(double n, double U, double t, double l, double Om, double U_42_) {
                                                                                                        	return sqrt((((n * U) * t) * 2.0));
                                                                                                        }
                                                                                                        
                                                                                                        real(8) function code(n, u, t, l, om, u_42)
                                                                                                            real(8), intent (in) :: n
                                                                                                            real(8), intent (in) :: u
                                                                                                            real(8), intent (in) :: t
                                                                                                            real(8), intent (in) :: l
                                                                                                            real(8), intent (in) :: om
                                                                                                            real(8), intent (in) :: u_42
                                                                                                            code = sqrt((((n * u) * t) * 2.0d0))
                                                                                                        end function
                                                                                                        
                                                                                                        public static double code(double n, double U, double t, double l, double Om, double U_42_) {
                                                                                                        	return Math.sqrt((((n * U) * t) * 2.0));
                                                                                                        }
                                                                                                        
                                                                                                        def code(n, U, t, l, Om, U_42_):
                                                                                                        	return math.sqrt((((n * U) * t) * 2.0))
                                                                                                        
                                                                                                        function code(n, U, t, l, Om, U_42_)
                                                                                                        	return sqrt(Float64(Float64(Float64(n * U) * t) * 2.0))
                                                                                                        end
                                                                                                        
                                                                                                        function tmp = code(n, U, t, l, Om, U_42_)
                                                                                                        	tmp = sqrt((((n * U) * t) * 2.0));
                                                                                                        end
                                                                                                        
                                                                                                        code[n_, U_, t_, l_, Om_, U$42$_] := N[Sqrt[N[(N[(N[(n * U), $MachinePrecision] * t), $MachinePrecision] * 2.0), $MachinePrecision]], $MachinePrecision]
                                                                                                        
                                                                                                        \begin{array}{l}
                                                                                                        
                                                                                                        \\
                                                                                                        \sqrt{\left(\left(n \cdot U\right) \cdot t\right) \cdot 2}
                                                                                                        \end{array}
                                                                                                        
                                                                                                        Derivation
                                                                                                        1. Initial program 49.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-*.f6432.3

                                                                                                            \[\leadsto \sqrt{\left(\color{blue}{\left(n \cdot t\right)} \cdot U\right) \cdot 2} \]
                                                                                                        5. Applied rewrites32.3%

                                                                                                          \[\leadsto \sqrt{\color{blue}{\left(\left(n \cdot t\right) \cdot U\right) \cdot 2}} \]
                                                                                                        6. Step-by-step derivation
                                                                                                          1. Applied rewrites35.3%

                                                                                                            \[\leadsto \sqrt{\left(\left(n \cdot U\right) \cdot t\right) \cdot 2} \]
                                                                                                          2. Add Preprocessing

                                                                                                          Alternative 20: 34.4% accurate, 6.8× speedup?

                                                                                                          \[\begin{array}{l} \\ \sqrt{\left(\left(U \cdot t\right) \cdot n\right) \cdot 2} \end{array} \]
                                                                                                          (FPCore (n U t l Om U*) :precision binary64 (sqrt (* (* (* U t) n) 2.0)))
                                                                                                          double code(double n, double U, double t, double l, double Om, double U_42_) {
                                                                                                          	return sqrt((((U * t) * n) * 2.0));
                                                                                                          }
                                                                                                          
                                                                                                          real(8) function code(n, u, t, l, om, u_42)
                                                                                                              real(8), intent (in) :: n
                                                                                                              real(8), intent (in) :: u
                                                                                                              real(8), intent (in) :: t
                                                                                                              real(8), intent (in) :: l
                                                                                                              real(8), intent (in) :: om
                                                                                                              real(8), intent (in) :: u_42
                                                                                                              code = sqrt((((u * t) * n) * 2.0d0))
                                                                                                          end function
                                                                                                          
                                                                                                          public static double code(double n, double U, double t, double l, double Om, double U_42_) {
                                                                                                          	return Math.sqrt((((U * t) * n) * 2.0));
                                                                                                          }
                                                                                                          
                                                                                                          def code(n, U, t, l, Om, U_42_):
                                                                                                          	return math.sqrt((((U * t) * n) * 2.0))
                                                                                                          
                                                                                                          function code(n, U, t, l, Om, U_42_)
                                                                                                          	return sqrt(Float64(Float64(Float64(U * t) * n) * 2.0))
                                                                                                          end
                                                                                                          
                                                                                                          function tmp = code(n, U, t, l, Om, U_42_)
                                                                                                          	tmp = sqrt((((U * t) * n) * 2.0));
                                                                                                          end
                                                                                                          
                                                                                                          code[n_, U_, t_, l_, Om_, U$42$_] := N[Sqrt[N[(N[(N[(U * t), $MachinePrecision] * n), $MachinePrecision] * 2.0), $MachinePrecision]], $MachinePrecision]
                                                                                                          
                                                                                                          \begin{array}{l}
                                                                                                          
                                                                                                          \\
                                                                                                          \sqrt{\left(\left(U \cdot t\right) \cdot n\right) \cdot 2}
                                                                                                          \end{array}
                                                                                                          
                                                                                                          Derivation
                                                                                                          1. Initial program 49.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-*.f6432.3

                                                                                                              \[\leadsto \sqrt{\left(\color{blue}{\left(n \cdot t\right)} \cdot U\right) \cdot 2} \]
                                                                                                          5. Applied rewrites32.3%

                                                                                                            \[\leadsto \sqrt{\color{blue}{\left(\left(n \cdot t\right) \cdot U\right) \cdot 2}} \]
                                                                                                          6. Step-by-step derivation
                                                                                                            1. Applied rewrites33.1%

                                                                                                              \[\leadsto \sqrt{\left(\left(U \cdot t\right) \cdot n\right) \cdot 2} \]
                                                                                                            2. Add Preprocessing

                                                                                                            Reproduce

                                                                                                            ?
                                                                                                            herbie shell --seed 2024321 
                                                                                                            (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*))))))