Toniolo and Linder, Equation (13)

Percentage Accurate: 48.9% → 59.0%
Time: 13.1s
Alternatives: 22
Speedup: 2.2×

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_)))));
}
module fmin_fmax_functions
    implicit none
    private
    public fmax
    public fmin

    interface fmax
        module procedure fmax88
        module procedure fmax44
        module procedure fmax84
        module procedure fmax48
    end interface
    interface fmin
        module procedure fmin88
        module procedure fmin44
        module procedure fmin84
        module procedure fmin48
    end interface
contains
    real(8) function fmax88(x, y) result (res)
        real(8), intent (in) :: x
        real(8), intent (in) :: y
        res = merge(y, merge(x, max(x, y), y /= y), x /= x)
    end function
    real(4) function fmax44(x, y) result (res)
        real(4), intent (in) :: x
        real(4), intent (in) :: y
        res = merge(y, merge(x, max(x, y), y /= y), x /= x)
    end function
    real(8) function fmax84(x, y) result(res)
        real(8), intent (in) :: x
        real(4), intent (in) :: y
        res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
    end function
    real(8) function fmax48(x, y) result(res)
        real(4), intent (in) :: x
        real(8), intent (in) :: y
        res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
    end function
    real(8) function fmin88(x, y) result (res)
        real(8), intent (in) :: x
        real(8), intent (in) :: y
        res = merge(y, merge(x, min(x, y), y /= y), x /= x)
    end function
    real(4) function fmin44(x, y) result (res)
        real(4), intent (in) :: x
        real(4), intent (in) :: y
        res = merge(y, merge(x, min(x, y), y /= y), x /= x)
    end function
    real(8) function fmin84(x, y) result(res)
        real(8), intent (in) :: x
        real(4), intent (in) :: y
        res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
    end function
    real(8) function fmin48(x, y) result(res)
        real(4), intent (in) :: x
        real(8), intent (in) :: y
        res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
    end function
end module

real(8) function code(n, u, t, l, om, u_42)
use fmin_fmax_functions
    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 22 alternatives:

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

Initial Program: 48.9% accurate, 1.0× speedup?

\[\begin{array}{l} \\ \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(t - 2 \cdot \frac{\ell \cdot \ell}{Om}\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \end{array} \]
(FPCore (n U t l Om U*)
 :precision binary64
 (sqrt
  (*
   (* (* 2.0 n) U)
   (- (- t (* 2.0 (/ (* l l) Om))) (* (* n (pow (/ l Om) 2.0)) (- U U*))))))
double code(double n, double U, double t, double l, double Om, double U_42_) {
	return sqrt((((2.0 * n) * U) * ((t - (2.0 * ((l * l) / Om))) - ((n * pow((l / Om), 2.0)) * (U - U_42_)))));
}
module fmin_fmax_functions
    implicit none
    private
    public fmax
    public fmin

    interface fmax
        module procedure fmax88
        module procedure fmax44
        module procedure fmax84
        module procedure fmax48
    end interface
    interface fmin
        module procedure fmin88
        module procedure fmin44
        module procedure fmin84
        module procedure fmin48
    end interface
contains
    real(8) function fmax88(x, y) result (res)
        real(8), intent (in) :: x
        real(8), intent (in) :: y
        res = merge(y, merge(x, max(x, y), y /= y), x /= x)
    end function
    real(4) function fmax44(x, y) result (res)
        real(4), intent (in) :: x
        real(4), intent (in) :: y
        res = merge(y, merge(x, max(x, y), y /= y), x /= x)
    end function
    real(8) function fmax84(x, y) result(res)
        real(8), intent (in) :: x
        real(4), intent (in) :: y
        res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
    end function
    real(8) function fmax48(x, y) result(res)
        real(4), intent (in) :: x
        real(8), intent (in) :: y
        res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
    end function
    real(8) function fmin88(x, y) result (res)
        real(8), intent (in) :: x
        real(8), intent (in) :: y
        res = merge(y, merge(x, min(x, y), y /= y), x /= x)
    end function
    real(4) function fmin44(x, y) result (res)
        real(4), intent (in) :: x
        real(4), intent (in) :: y
        res = merge(y, merge(x, min(x, y), y /= y), x /= x)
    end function
    real(8) function fmin84(x, y) result(res)
        real(8), intent (in) :: x
        real(4), intent (in) :: y
        res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
    end function
    real(8) function fmin48(x, y) result(res)
        real(4), intent (in) :: x
        real(8), intent (in) :: y
        res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
    end function
end module

real(8) function code(n, u, t, l, om, u_42)
use fmin_fmax_functions
    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.0% accurate, 0.3× speedup?

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

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

\mathbf{elif}\;t\_4 \leq 2 \cdot 10^{+146}:\\
\;\;\;\;\sqrt{t\_3 \cdot \left(\mathsf{fma}\left(-U, t\_5, t\right) - \mathsf{fma}\left(-U*, t\_5, t\_1 \cdot 2\right)\right)}\\

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

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


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

    1. Initial program 5.9%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        if 1.99999999999999987e146 < (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 37.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 inf

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

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

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

          Alternative 2: 59.0% accurate, 0.3× speedup?

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

            1. Initial program 8.4%

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

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

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

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

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

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

                  if 2.00000000000000008e-156 < (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.99999999999999987e146

                  1. Initial program 97.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 U around 0

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

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

                    if 1.99999999999999987e146 < (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 37.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 inf

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

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

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

                      Alternative 3: 55.6% accurate, 0.3× speedup?

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

                        1. Initial program 11.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{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\color{blue}{t} - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
                        4. Step-by-step derivation
                          1. Applied rewrites11.3%

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

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

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

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

                              if 9.9999999999999995e-145 < (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.99999999999999987e146

                              1. Initial program 97.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 U around 0

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

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

                                if 1.99999999999999987e146 < (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 37.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 inf

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

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

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

                                  Alternative 4: 55.4% accurate, 0.3× speedup?

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

                                    1. Initial program 8.4%

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

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

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

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

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

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

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

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

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

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

                                        if 2.00000000000000008e-156 < (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.99999999999999987e146

                                        1. Initial program 97.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 U around 0

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

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

                                          if 1.99999999999999987e146 < (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 37.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 inf

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

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

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

                                            Alternative 5: 59.1% accurate, 0.3× speedup?

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

                                              1. Initial program 5.9%

                                                \[\sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(t - 2 \cdot \frac{\ell \cdot \ell}{Om}\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \]
                                              2. Add Preprocessing
                                              3. Step-by-step derivation
                                                1. lift-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. sqrt-prodN/A

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

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

                                                  \[\leadsto \color{blue}{\sqrt{2 \cdot n}} \cdot \sqrt{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)} \]
                                                8. lift-*.f64N/A

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

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

                                                  \[\leadsto \sqrt{\color{blue}{n \cdot 2}} \cdot \sqrt{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)} \]
                                                11. lower-sqrt.f64N/A

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

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

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

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

                                              1. Initial program 72.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

                                              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 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. Applied rewrites53.5%

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

                                              Alternative 6: 58.4% accurate, 0.3× speedup?

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

                                                1. Initial program 5.9%

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

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

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

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

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

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

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

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

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

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

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

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

                                                  1. Initial program 72.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

                                                  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 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. Applied rewrites53.5%

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

                                                  Alternative 7: 53.3% accurate, 0.4× speedup?

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

                                                    1. Initial program 8.4%

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

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

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

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

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

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

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

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

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

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

                                                        if 2.00000000000000008e-156 < (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 72.8%

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

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

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

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

                                                          1. Initial program 0.0%

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

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

                                                          Alternative 8: 53.4% accurate, 0.4× speedup?

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

                                                            1. Initial program 5.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 U around 0

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

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

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

                                                              1. Initial program 72.8%

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

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

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

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

                                                                1. Initial program 0.0%

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

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

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

                                                                Alternative 9: 52.4% accurate, 0.4× speedup?

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

                                                                  1. Initial program 5.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 \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. Applied rewrites26.6%

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

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

                                                                    1. Initial program 97.0%

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

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

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

                                                                      if 4.9999999999999997e304 < (*.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 25.3%

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

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

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

                                                                      Alternative 10: 52.4% accurate, 0.4× speedup?

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

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

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

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

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

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

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

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

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

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

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

                                                                            1. Initial program 97.0%

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

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

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

                                                                              if 4.9999999999999997e304 < (*.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 25.3%

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

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

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

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

                                                                              Alternative 11: 52.0% accurate, 0.4× speedup?

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

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

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

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

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

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

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

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

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

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

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

                                                                                    1. Initial program 72.8%

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

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

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

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

                                                                                      1. Initial program 0.0%

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

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

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

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

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

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

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

                                                                                          Alternative 12: 53.0% accurate, 0.4× speedup?

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

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

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

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

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

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

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

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

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

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

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

                                                                                                1. Initial program 72.8%

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

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

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

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

                                                                                                  1. Initial program 0.0%

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

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

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

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

                                                                                                  Alternative 13: 49.3% accurate, 0.8× speedup?

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

                                                                                                    1. Initial program 5.9%

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

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

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

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

                                                                                                      1. Initial program 60.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(t - 2 \cdot \frac{{\ell}^{2}}{Om}\right)}} \]
                                                                                                      4. Step-by-step derivation
                                                                                                        1. Applied rewrites53.7%

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

                                                                                                      Alternative 14: 38.6% accurate, 0.8× speedup?

                                                                                                      \[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(2 \cdot n\right) \cdot U\\ \mathbf{if}\;\sqrt{t\_1 \cdot \left(\left(t - 2 \cdot \frac{\ell \cdot \ell}{Om}\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \leq 0:\\ \;\;\;\;\sqrt{\left(n \cdot t\right) \cdot U} \cdot \sqrt{2}\\ \mathbf{else}:\\ \;\;\;\;\sqrt{t\_1 \cdot t}\\ \end{array} \end{array} \]
                                                                                                      (FPCore (n U t l Om U*)
                                                                                                       :precision binary64
                                                                                                       (let* ((t_1 (* (* 2.0 n) U)))
                                                                                                         (if (<=
                                                                                                              (sqrt
                                                                                                               (*
                                                                                                                t_1
                                                                                                                (-
                                                                                                                 (- t (* 2.0 (/ (* l l) Om)))
                                                                                                                 (* (* n (pow (/ l Om) 2.0)) (- U U*)))))
                                                                                                              0.0)
                                                                                                           (* (sqrt (* (* n t) U)) (sqrt 2.0))
                                                                                                           (sqrt (* t_1 t)))))
                                                                                                      double code(double n, double U, double t, double l, double Om, double U_42_) {
                                                                                                      	double t_1 = (2.0 * n) * U;
                                                                                                      	double tmp;
                                                                                                      	if (sqrt((t_1 * ((t - (2.0 * ((l * l) / Om))) - ((n * pow((l / Om), 2.0)) * (U - U_42_))))) <= 0.0) {
                                                                                                      		tmp = sqrt(((n * t) * U)) * sqrt(2.0);
                                                                                                      	} else {
                                                                                                      		tmp = sqrt((t_1 * t));
                                                                                                      	}
                                                                                                      	return tmp;
                                                                                                      }
                                                                                                      
                                                                                                      module fmin_fmax_functions
                                                                                                          implicit none
                                                                                                          private
                                                                                                          public fmax
                                                                                                          public fmin
                                                                                                      
                                                                                                          interface fmax
                                                                                                              module procedure fmax88
                                                                                                              module procedure fmax44
                                                                                                              module procedure fmax84
                                                                                                              module procedure fmax48
                                                                                                          end interface
                                                                                                          interface fmin
                                                                                                              module procedure fmin88
                                                                                                              module procedure fmin44
                                                                                                              module procedure fmin84
                                                                                                              module procedure fmin48
                                                                                                          end interface
                                                                                                      contains
                                                                                                          real(8) function fmax88(x, y) result (res)
                                                                                                              real(8), intent (in) :: x
                                                                                                              real(8), intent (in) :: y
                                                                                                              res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                                                                                                          end function
                                                                                                          real(4) function fmax44(x, y) result (res)
                                                                                                              real(4), intent (in) :: x
                                                                                                              real(4), intent (in) :: y
                                                                                                              res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                                                                                                          end function
                                                                                                          real(8) function fmax84(x, y) result(res)
                                                                                                              real(8), intent (in) :: x
                                                                                                              real(4), intent (in) :: y
                                                                                                              res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
                                                                                                          end function
                                                                                                          real(8) function fmax48(x, y) result(res)
                                                                                                              real(4), intent (in) :: x
                                                                                                              real(8), intent (in) :: y
                                                                                                              res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
                                                                                                          end function
                                                                                                          real(8) function fmin88(x, y) result (res)
                                                                                                              real(8), intent (in) :: x
                                                                                                              real(8), intent (in) :: y
                                                                                                              res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                                                                                                          end function
                                                                                                          real(4) function fmin44(x, y) result (res)
                                                                                                              real(4), intent (in) :: x
                                                                                                              real(4), intent (in) :: y
                                                                                                              res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                                                                                                          end function
                                                                                                          real(8) function fmin84(x, y) result(res)
                                                                                                              real(8), intent (in) :: x
                                                                                                              real(4), intent (in) :: y
                                                                                                              res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
                                                                                                          end function
                                                                                                          real(8) function fmin48(x, y) result(res)
                                                                                                              real(4), intent (in) :: x
                                                                                                              real(8), intent (in) :: y
                                                                                                              res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
                                                                                                          end function
                                                                                                      end module
                                                                                                      
                                                                                                      real(8) function code(n, u, t, l, om, u_42)
                                                                                                      use fmin_fmax_functions
                                                                                                          real(8), intent (in) :: n
                                                                                                          real(8), intent (in) :: u
                                                                                                          real(8), intent (in) :: t
                                                                                                          real(8), intent (in) :: l
                                                                                                          real(8), intent (in) :: om
                                                                                                          real(8), intent (in) :: u_42
                                                                                                          real(8) :: t_1
                                                                                                          real(8) :: tmp
                                                                                                          t_1 = (2.0d0 * n) * u
                                                                                                          if (sqrt((t_1 * ((t - (2.0d0 * ((l * l) / om))) - ((n * ((l / om) ** 2.0d0)) * (u - u_42))))) <= 0.0d0) then
                                                                                                              tmp = sqrt(((n * t) * u)) * sqrt(2.0d0)
                                                                                                          else
                                                                                                              tmp = sqrt((t_1 * t))
                                                                                                          end if
                                                                                                          code = tmp
                                                                                                      end function
                                                                                                      
                                                                                                      public static double code(double n, double U, double t, double l, double Om, double U_42_) {
                                                                                                      	double t_1 = (2.0 * n) * U;
                                                                                                      	double tmp;
                                                                                                      	if (Math.sqrt((t_1 * ((t - (2.0 * ((l * l) / Om))) - ((n * Math.pow((l / Om), 2.0)) * (U - U_42_))))) <= 0.0) {
                                                                                                      		tmp = Math.sqrt(((n * t) * U)) * Math.sqrt(2.0);
                                                                                                      	} else {
                                                                                                      		tmp = Math.sqrt((t_1 * t));
                                                                                                      	}
                                                                                                      	return tmp;
                                                                                                      }
                                                                                                      
                                                                                                      def code(n, U, t, l, Om, U_42_):
                                                                                                      	t_1 = (2.0 * n) * U
                                                                                                      	tmp = 0
                                                                                                      	if math.sqrt((t_1 * ((t - (2.0 * ((l * l) / Om))) - ((n * math.pow((l / Om), 2.0)) * (U - U_42_))))) <= 0.0:
                                                                                                      		tmp = math.sqrt(((n * t) * U)) * math.sqrt(2.0)
                                                                                                      	else:
                                                                                                      		tmp = math.sqrt((t_1 * t))
                                                                                                      	return tmp
                                                                                                      
                                                                                                      function code(n, U, t, l, Om, U_42_)
                                                                                                      	t_1 = Float64(Float64(2.0 * n) * U)
                                                                                                      	tmp = 0.0
                                                                                                      	if (sqrt(Float64(t_1 * Float64(Float64(t - Float64(2.0 * Float64(Float64(l * l) / Om))) - Float64(Float64(n * (Float64(l / Om) ^ 2.0)) * Float64(U - U_42_))))) <= 0.0)
                                                                                                      		tmp = Float64(sqrt(Float64(Float64(n * t) * U)) * sqrt(2.0));
                                                                                                      	else
                                                                                                      		tmp = sqrt(Float64(t_1 * t));
                                                                                                      	end
                                                                                                      	return tmp
                                                                                                      end
                                                                                                      
                                                                                                      function tmp_2 = code(n, U, t, l, Om, U_42_)
                                                                                                      	t_1 = (2.0 * n) * U;
                                                                                                      	tmp = 0.0;
                                                                                                      	if (sqrt((t_1 * ((t - (2.0 * ((l * l) / Om))) - ((n * ((l / Om) ^ 2.0)) * (U - U_42_))))) <= 0.0)
                                                                                                      		tmp = sqrt(((n * t) * U)) * sqrt(2.0);
                                                                                                      	else
                                                                                                      		tmp = sqrt((t_1 * t));
                                                                                                      	end
                                                                                                      	tmp_2 = tmp;
                                                                                                      end
                                                                                                      
                                                                                                      code[n_, U_, t_, l_, Om_, U$42$_] := Block[{t$95$1 = N[(N[(2.0 * n), $MachinePrecision] * U), $MachinePrecision]}, If[LessEqual[N[Sqrt[N[(t$95$1 * N[(N[(t - N[(2.0 * N[(N[(l * l), $MachinePrecision] / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(n * N[Power[N[(l / Om), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision] * N[(U - U$42$), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], 0.0], N[(N[Sqrt[N[(N[(n * t), $MachinePrecision] * U), $MachinePrecision]], $MachinePrecision] * N[Sqrt[2.0], $MachinePrecision]), $MachinePrecision], N[Sqrt[N[(t$95$1 * t), $MachinePrecision]], $MachinePrecision]]]
                                                                                                      
                                                                                                      \begin{array}{l}
                                                                                                      
                                                                                                      \\
                                                                                                      \begin{array}{l}
                                                                                                      t_1 := \left(2 \cdot n\right) \cdot U\\
                                                                                                      \mathbf{if}\;\sqrt{t\_1 \cdot \left(\left(t - 2 \cdot \frac{\ell \cdot \ell}{Om}\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \leq 0:\\
                                                                                                      \;\;\;\;\sqrt{\left(n \cdot t\right) \cdot U} \cdot \sqrt{2}\\
                                                                                                      
                                                                                                      \mathbf{else}:\\
                                                                                                      \;\;\;\;\sqrt{t\_1 \cdot t}\\
                                                                                                      
                                                                                                      
                                                                                                      \end{array}
                                                                                                      \end{array}
                                                                                                      
                                                                                                      Derivation
                                                                                                      1. Split input into 2 regimes
                                                                                                      2. if (sqrt.f64 (*.f64 (*.f64 (*.f64 #s(literal 2 binary64) n) U) (-.f64 (-.f64 t (*.f64 #s(literal 2 binary64) (/.f64 (*.f64 l l) Om))) (*.f64 (*.f64 n (pow.f64 (/.f64 l Om) #s(literal 2 binary64))) (-.f64 U U*))))) < 0.0

                                                                                                        1. Initial program 5.9%

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

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

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

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

                                                                                                          1. Initial program 60.9%

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

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

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

                                                                                                          Alternative 15: 38.6% accurate, 0.9× speedup?

                                                                                                          \[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(2 \cdot n\right) \cdot U\\ \mathbf{if}\;\sqrt{t\_1 \cdot \left(\left(t - 2 \cdot \frac{\ell \cdot \ell}{Om}\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \leq 0:\\ \;\;\;\;\sqrt{\left(\left(U \cdot 2\right) \cdot t\right) \cdot n}\\ \mathbf{else}:\\ \;\;\;\;\sqrt{t\_1 \cdot t}\\ \end{array} \end{array} \]
                                                                                                          (FPCore (n U t l Om U*)
                                                                                                           :precision binary64
                                                                                                           (let* ((t_1 (* (* 2.0 n) U)))
                                                                                                             (if (<=
                                                                                                                  (sqrt
                                                                                                                   (*
                                                                                                                    t_1
                                                                                                                    (-
                                                                                                                     (- t (* 2.0 (/ (* l l) Om)))
                                                                                                                     (* (* n (pow (/ l Om) 2.0)) (- U U*)))))
                                                                                                                  0.0)
                                                                                                               (sqrt (* (* (* U 2.0) t) n))
                                                                                                               (sqrt (* t_1 t)))))
                                                                                                          double code(double n, double U, double t, double l, double Om, double U_42_) {
                                                                                                          	double t_1 = (2.0 * n) * U;
                                                                                                          	double tmp;
                                                                                                          	if (sqrt((t_1 * ((t - (2.0 * ((l * l) / Om))) - ((n * pow((l / Om), 2.0)) * (U - U_42_))))) <= 0.0) {
                                                                                                          		tmp = sqrt((((U * 2.0) * t) * n));
                                                                                                          	} else {
                                                                                                          		tmp = sqrt((t_1 * t));
                                                                                                          	}
                                                                                                          	return tmp;
                                                                                                          }
                                                                                                          
                                                                                                          module fmin_fmax_functions
                                                                                                              implicit none
                                                                                                              private
                                                                                                              public fmax
                                                                                                              public fmin
                                                                                                          
                                                                                                              interface fmax
                                                                                                                  module procedure fmax88
                                                                                                                  module procedure fmax44
                                                                                                                  module procedure fmax84
                                                                                                                  module procedure fmax48
                                                                                                              end interface
                                                                                                              interface fmin
                                                                                                                  module procedure fmin88
                                                                                                                  module procedure fmin44
                                                                                                                  module procedure fmin84
                                                                                                                  module procedure fmin48
                                                                                                              end interface
                                                                                                          contains
                                                                                                              real(8) function fmax88(x, y) result (res)
                                                                                                                  real(8), intent (in) :: x
                                                                                                                  real(8), intent (in) :: y
                                                                                                                  res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                                                                                                              end function
                                                                                                              real(4) function fmax44(x, y) result (res)
                                                                                                                  real(4), intent (in) :: x
                                                                                                                  real(4), intent (in) :: y
                                                                                                                  res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                                                                                                              end function
                                                                                                              real(8) function fmax84(x, y) result(res)
                                                                                                                  real(8), intent (in) :: x
                                                                                                                  real(4), intent (in) :: y
                                                                                                                  res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
                                                                                                              end function
                                                                                                              real(8) function fmax48(x, y) result(res)
                                                                                                                  real(4), intent (in) :: x
                                                                                                                  real(8), intent (in) :: y
                                                                                                                  res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
                                                                                                              end function
                                                                                                              real(8) function fmin88(x, y) result (res)
                                                                                                                  real(8), intent (in) :: x
                                                                                                                  real(8), intent (in) :: y
                                                                                                                  res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                                                                                                              end function
                                                                                                              real(4) function fmin44(x, y) result (res)
                                                                                                                  real(4), intent (in) :: x
                                                                                                                  real(4), intent (in) :: y
                                                                                                                  res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                                                                                                              end function
                                                                                                              real(8) function fmin84(x, y) result(res)
                                                                                                                  real(8), intent (in) :: x
                                                                                                                  real(4), intent (in) :: y
                                                                                                                  res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
                                                                                                              end function
                                                                                                              real(8) function fmin48(x, y) result(res)
                                                                                                                  real(4), intent (in) :: x
                                                                                                                  real(8), intent (in) :: y
                                                                                                                  res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
                                                                                                              end function
                                                                                                          end module
                                                                                                          
                                                                                                          real(8) function code(n, u, t, l, om, u_42)
                                                                                                          use fmin_fmax_functions
                                                                                                              real(8), intent (in) :: n
                                                                                                              real(8), intent (in) :: u
                                                                                                              real(8), intent (in) :: t
                                                                                                              real(8), intent (in) :: l
                                                                                                              real(8), intent (in) :: om
                                                                                                              real(8), intent (in) :: u_42
                                                                                                              real(8) :: t_1
                                                                                                              real(8) :: tmp
                                                                                                              t_1 = (2.0d0 * n) * u
                                                                                                              if (sqrt((t_1 * ((t - (2.0d0 * ((l * l) / om))) - ((n * ((l / om) ** 2.0d0)) * (u - u_42))))) <= 0.0d0) then
                                                                                                                  tmp = sqrt((((u * 2.0d0) * t) * n))
                                                                                                              else
                                                                                                                  tmp = sqrt((t_1 * t))
                                                                                                              end if
                                                                                                              code = tmp
                                                                                                          end function
                                                                                                          
                                                                                                          public static double code(double n, double U, double t, double l, double Om, double U_42_) {
                                                                                                          	double t_1 = (2.0 * n) * U;
                                                                                                          	double tmp;
                                                                                                          	if (Math.sqrt((t_1 * ((t - (2.0 * ((l * l) / Om))) - ((n * Math.pow((l / Om), 2.0)) * (U - U_42_))))) <= 0.0) {
                                                                                                          		tmp = Math.sqrt((((U * 2.0) * t) * n));
                                                                                                          	} else {
                                                                                                          		tmp = Math.sqrt((t_1 * t));
                                                                                                          	}
                                                                                                          	return tmp;
                                                                                                          }
                                                                                                          
                                                                                                          def code(n, U, t, l, Om, U_42_):
                                                                                                          	t_1 = (2.0 * n) * U
                                                                                                          	tmp = 0
                                                                                                          	if math.sqrt((t_1 * ((t - (2.0 * ((l * l) / Om))) - ((n * math.pow((l / Om), 2.0)) * (U - U_42_))))) <= 0.0:
                                                                                                          		tmp = math.sqrt((((U * 2.0) * t) * n))
                                                                                                          	else:
                                                                                                          		tmp = math.sqrt((t_1 * t))
                                                                                                          	return tmp
                                                                                                          
                                                                                                          function code(n, U, t, l, Om, U_42_)
                                                                                                          	t_1 = Float64(Float64(2.0 * n) * U)
                                                                                                          	tmp = 0.0
                                                                                                          	if (sqrt(Float64(t_1 * Float64(Float64(t - Float64(2.0 * Float64(Float64(l * l) / Om))) - Float64(Float64(n * (Float64(l / Om) ^ 2.0)) * Float64(U - U_42_))))) <= 0.0)
                                                                                                          		tmp = sqrt(Float64(Float64(Float64(U * 2.0) * t) * n));
                                                                                                          	else
                                                                                                          		tmp = sqrt(Float64(t_1 * t));
                                                                                                          	end
                                                                                                          	return tmp
                                                                                                          end
                                                                                                          
                                                                                                          function tmp_2 = code(n, U, t, l, Om, U_42_)
                                                                                                          	t_1 = (2.0 * n) * U;
                                                                                                          	tmp = 0.0;
                                                                                                          	if (sqrt((t_1 * ((t - (2.0 * ((l * l) / Om))) - ((n * ((l / Om) ^ 2.0)) * (U - U_42_))))) <= 0.0)
                                                                                                          		tmp = sqrt((((U * 2.0) * t) * n));
                                                                                                          	else
                                                                                                          		tmp = sqrt((t_1 * t));
                                                                                                          	end
                                                                                                          	tmp_2 = tmp;
                                                                                                          end
                                                                                                          
                                                                                                          code[n_, U_, t_, l_, Om_, U$42$_] := Block[{t$95$1 = N[(N[(2.0 * n), $MachinePrecision] * U), $MachinePrecision]}, If[LessEqual[N[Sqrt[N[(t$95$1 * N[(N[(t - N[(2.0 * N[(N[(l * l), $MachinePrecision] / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(n * N[Power[N[(l / Om), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision] * N[(U - U$42$), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], 0.0], N[Sqrt[N[(N[(N[(U * 2.0), $MachinePrecision] * t), $MachinePrecision] * n), $MachinePrecision]], $MachinePrecision], N[Sqrt[N[(t$95$1 * t), $MachinePrecision]], $MachinePrecision]]]
                                                                                                          
                                                                                                          \begin{array}{l}
                                                                                                          
                                                                                                          \\
                                                                                                          \begin{array}{l}
                                                                                                          t_1 := \left(2 \cdot n\right) \cdot U\\
                                                                                                          \mathbf{if}\;\sqrt{t\_1 \cdot \left(\left(t - 2 \cdot \frac{\ell \cdot \ell}{Om}\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)} \leq 0:\\
                                                                                                          \;\;\;\;\sqrt{\left(\left(U \cdot 2\right) \cdot t\right) \cdot n}\\
                                                                                                          
                                                                                                          \mathbf{else}:\\
                                                                                                          \;\;\;\;\sqrt{t\_1 \cdot t}\\
                                                                                                          
                                                                                                          
                                                                                                          \end{array}
                                                                                                          \end{array}
                                                                                                          
                                                                                                          Derivation
                                                                                                          1. Split input into 2 regimes
                                                                                                          2. if (sqrt.f64 (*.f64 (*.f64 (*.f64 #s(literal 2 binary64) n) U) (-.f64 (-.f64 t (*.f64 #s(literal 2 binary64) (/.f64 (*.f64 l l) Om))) (*.f64 (*.f64 n (pow.f64 (/.f64 l Om) #s(literal 2 binary64))) (-.f64 U U*))))) < 0.0

                                                                                                            1. Initial program 5.9%

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

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

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

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

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

                                                                                                                1. Initial program 60.9%

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

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

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

                                                                                                                Alternative 16: 52.8% accurate, 1.9× speedup?

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

                                                                                                                  1. Initial program 64.3%

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

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

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

                                                                                                                    if -6.9999999999999995e99 < Om < 0.0115

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                                                                                      if 0.0115 < Om

                                                                                                                      1. Initial program 63.5%

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

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

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

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

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

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

                                                                                                                        Alternative 17: 50.9% accurate, 2.2× speedup?

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

                                                                                                                          1. Initial program 64.3%

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

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

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

                                                                                                                            if -6.9999999999999995e99 < Om < 2.49999999999999987e48

                                                                                                                            1. Initial program 48.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                                                                                              if 2.49999999999999987e48 < Om

                                                                                                                              1. Initial program 61.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. Applied rewrites55.2%

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

                                                                                                                                    \[\leadsto \sqrt{\left(\left(U \cdot 2\right) \cdot t\right) \cdot \color{blue}{n}} \]
                                                                                                                                3. Recombined 3 regimes into one program.
                                                                                                                                4. Final simplification61.7%

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

                                                                                                                                Alternative 18: 37.2% accurate, 3.7× speedup?

                                                                                                                                \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;\ell \leq 1.7 \cdot 10^{+23}:\\ \;\;\;\;\sqrt{\left(\left(U \cdot 2\right) \cdot t\right) \cdot n}\\ \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.7e+23)
                                                                                                                                   (sqrt (* (* (* U 2.0) t) n))
                                                                                                                                   (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.7e+23) {
                                                                                                                                		tmp = sqrt((((U * 2.0) * t) * n));
                                                                                                                                	} else {
                                                                                                                                		tmp = sqrt((((((l * l) * n) * U) / Om) * -4.0));
                                                                                                                                	}
                                                                                                                                	return tmp;
                                                                                                                                }
                                                                                                                                
                                                                                                                                module fmin_fmax_functions
                                                                                                                                    implicit none
                                                                                                                                    private
                                                                                                                                    public fmax
                                                                                                                                    public fmin
                                                                                                                                
                                                                                                                                    interface fmax
                                                                                                                                        module procedure fmax88
                                                                                                                                        module procedure fmax44
                                                                                                                                        module procedure fmax84
                                                                                                                                        module procedure fmax48
                                                                                                                                    end interface
                                                                                                                                    interface fmin
                                                                                                                                        module procedure fmin88
                                                                                                                                        module procedure fmin44
                                                                                                                                        module procedure fmin84
                                                                                                                                        module procedure fmin48
                                                                                                                                    end interface
                                                                                                                                contains
                                                                                                                                    real(8) function fmax88(x, y) result (res)
                                                                                                                                        real(8), intent (in) :: x
                                                                                                                                        real(8), intent (in) :: y
                                                                                                                                        res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                                                                                                                                    end function
                                                                                                                                    real(4) function fmax44(x, y) result (res)
                                                                                                                                        real(4), intent (in) :: x
                                                                                                                                        real(4), intent (in) :: y
                                                                                                                                        res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                                                                                                                                    end function
                                                                                                                                    real(8) function fmax84(x, y) result(res)
                                                                                                                                        real(8), intent (in) :: x
                                                                                                                                        real(4), intent (in) :: y
                                                                                                                                        res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
                                                                                                                                    end function
                                                                                                                                    real(8) function fmax48(x, y) result(res)
                                                                                                                                        real(4), intent (in) :: x
                                                                                                                                        real(8), intent (in) :: y
                                                                                                                                        res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
                                                                                                                                    end function
                                                                                                                                    real(8) function fmin88(x, y) result (res)
                                                                                                                                        real(8), intent (in) :: x
                                                                                                                                        real(8), intent (in) :: y
                                                                                                                                        res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                                                                                                                                    end function
                                                                                                                                    real(4) function fmin44(x, y) result (res)
                                                                                                                                        real(4), intent (in) :: x
                                                                                                                                        real(4), intent (in) :: y
                                                                                                                                        res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                                                                                                                                    end function
                                                                                                                                    real(8) function fmin84(x, y) result(res)
                                                                                                                                        real(8), intent (in) :: x
                                                                                                                                        real(4), intent (in) :: y
                                                                                                                                        res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
                                                                                                                                    end function
                                                                                                                                    real(8) function fmin48(x, y) result(res)
                                                                                                                                        real(4), intent (in) :: x
                                                                                                                                        real(8), intent (in) :: y
                                                                                                                                        res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
                                                                                                                                    end function
                                                                                                                                end module
                                                                                                                                
                                                                                                                                real(8) function code(n, u, t, l, om, u_42)
                                                                                                                                use fmin_fmax_functions
                                                                                                                                    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+23) then
                                                                                                                                        tmp = sqrt((((u * 2.0d0) * t) * n))
                                                                                                                                    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.7e+23) {
                                                                                                                                		tmp = Math.sqrt((((U * 2.0) * t) * n));
                                                                                                                                	} 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.7e+23:
                                                                                                                                		tmp = math.sqrt((((U * 2.0) * t) * n))
                                                                                                                                	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.7e+23)
                                                                                                                                		tmp = sqrt(Float64(Float64(Float64(U * 2.0) * t) * n));
                                                                                                                                	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.7e+23)
                                                                                                                                		tmp = sqrt((((U * 2.0) * t) * n));
                                                                                                                                	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.7e+23], N[Sqrt[N[(N[(N[(U * 2.0), $MachinePrecision] * t), $MachinePrecision] * n), $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.7 \cdot 10^{+23}:\\
                                                                                                                                \;\;\;\;\sqrt{\left(\left(U \cdot 2\right) \cdot t\right) \cdot n}\\
                                                                                                                                
                                                                                                                                \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.69999999999999996e23

                                                                                                                                  1. Initial program 58.9%

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

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

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

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

                                                                                                                                      if 1.69999999999999996e23 < l

                                                                                                                                      1. Initial program 36.7%

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

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

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

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

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

                                                                                                                                        Alternative 19: 48.0% accurate, 3.7× speedup?

                                                                                                                                        \[\begin{array}{l} \\ \sqrt{\left(2 \cdot U\right) \cdot \left(\mathsf{fma}\left(-2, \frac{\ell}{Om} \cdot \ell, t\right) \cdot n\right)} \end{array} \]
                                                                                                                                        (FPCore (n U t l Om U*)
                                                                                                                                         :precision binary64
                                                                                                                                         (sqrt (* (* 2.0 U) (* (fma -2.0 (* (/ l Om) l) t) n))))
                                                                                                                                        double code(double n, double U, double t, double l, double Om, double U_42_) {
                                                                                                                                        	return sqrt(((2.0 * U) * (fma(-2.0, ((l / Om) * l), t) * n)));
                                                                                                                                        }
                                                                                                                                        
                                                                                                                                        function code(n, U, t, l, Om, U_42_)
                                                                                                                                        	return sqrt(Float64(Float64(2.0 * U) * Float64(fma(-2.0, Float64(Float64(l / Om) * l), t) * n)))
                                                                                                                                        end
                                                                                                                                        
                                                                                                                                        code[n_, U_, t_, l_, Om_, U$42$_] := N[Sqrt[N[(N[(2.0 * U), $MachinePrecision] * N[(N[(-2.0 * N[(N[(l / Om), $MachinePrecision] * l), $MachinePrecision] + t), $MachinePrecision] * n), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]
                                                                                                                                        
                                                                                                                                        \begin{array}{l}
                                                                                                                                        
                                                                                                                                        \\
                                                                                                                                        \sqrt{\left(2 \cdot U\right) \cdot \left(\mathsf{fma}\left(-2, \frac{\ell}{Om} \cdot \ell, t\right) \cdot n\right)}
                                                                                                                                        \end{array}
                                                                                                                                        
                                                                                                                                        Derivation
                                                                                                                                        1. Initial program 54.5%

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

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

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

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

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

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

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

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

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

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

                                                                                                                                            Alternative 20: 48.0% accurate, 3.7× speedup?

                                                                                                                                            \[\begin{array}{l} \\ \sqrt{\left(\left(\mathsf{fma}\left(-2, \ell \cdot \frac{\ell}{Om}, t\right) \cdot n\right) \cdot U\right) \cdot 2} \end{array} \]
                                                                                                                                            (FPCore (n U t l Om U*)
                                                                                                                                             :precision binary64
                                                                                                                                             (sqrt (* (* (* (fma -2.0 (* l (/ l Om)) t) n) U) 2.0)))
                                                                                                                                            double code(double n, double U, double t, double l, double Om, double U_42_) {
                                                                                                                                            	return sqrt((((fma(-2.0, (l * (l / Om)), t) * n) * U) * 2.0));
                                                                                                                                            }
                                                                                                                                            
                                                                                                                                            function code(n, U, t, l, Om, U_42_)
                                                                                                                                            	return sqrt(Float64(Float64(Float64(fma(-2.0, Float64(l * Float64(l / Om)), t) * n) * U) * 2.0))
                                                                                                                                            end
                                                                                                                                            
                                                                                                                                            code[n_, U_, t_, l_, Om_, U$42$_] := N[Sqrt[N[(N[(N[(N[(-2.0 * N[(l * N[(l / Om), $MachinePrecision]), $MachinePrecision] + t), $MachinePrecision] * n), $MachinePrecision] * U), $MachinePrecision] * 2.0), $MachinePrecision]], $MachinePrecision]
                                                                                                                                            
                                                                                                                                            \begin{array}{l}
                                                                                                                                            
                                                                                                                                            \\
                                                                                                                                            \sqrt{\left(\left(\mathsf{fma}\left(-2, \ell \cdot \frac{\ell}{Om}, t\right) \cdot n\right) \cdot U\right) \cdot 2}
                                                                                                                                            \end{array}
                                                                                                                                            
                                                                                                                                            Derivation
                                                                                                                                            1. Initial program 54.5%

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

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

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

                                                                                                                                              Alternative 21: 35.3% accurate, 6.8× speedup?

                                                                                                                                              \[\begin{array}{l} \\ \sqrt{\left(\left(U \cdot 2\right) \cdot t\right) \cdot n} \end{array} \]
                                                                                                                                              (FPCore (n U t l Om U*) :precision binary64 (sqrt (* (* (* U 2.0) t) n)))
                                                                                                                                              double code(double n, double U, double t, double l, double Om, double U_42_) {
                                                                                                                                              	return sqrt((((U * 2.0) * t) * n));
                                                                                                                                              }
                                                                                                                                              
                                                                                                                                              module fmin_fmax_functions
                                                                                                                                                  implicit none
                                                                                                                                                  private
                                                                                                                                                  public fmax
                                                                                                                                                  public fmin
                                                                                                                                              
                                                                                                                                                  interface fmax
                                                                                                                                                      module procedure fmax88
                                                                                                                                                      module procedure fmax44
                                                                                                                                                      module procedure fmax84
                                                                                                                                                      module procedure fmax48
                                                                                                                                                  end interface
                                                                                                                                                  interface fmin
                                                                                                                                                      module procedure fmin88
                                                                                                                                                      module procedure fmin44
                                                                                                                                                      module procedure fmin84
                                                                                                                                                      module procedure fmin48
                                                                                                                                                  end interface
                                                                                                                                              contains
                                                                                                                                                  real(8) function fmax88(x, y) result (res)
                                                                                                                                                      real(8), intent (in) :: x
                                                                                                                                                      real(8), intent (in) :: y
                                                                                                                                                      res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                                                                                                                                                  end function
                                                                                                                                                  real(4) function fmax44(x, y) result (res)
                                                                                                                                                      real(4), intent (in) :: x
                                                                                                                                                      real(4), intent (in) :: y
                                                                                                                                                      res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                                                                                                                                                  end function
                                                                                                                                                  real(8) function fmax84(x, y) result(res)
                                                                                                                                                      real(8), intent (in) :: x
                                                                                                                                                      real(4), intent (in) :: y
                                                                                                                                                      res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
                                                                                                                                                  end function
                                                                                                                                                  real(8) function fmax48(x, y) result(res)
                                                                                                                                                      real(4), intent (in) :: x
                                                                                                                                                      real(8), intent (in) :: y
                                                                                                                                                      res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
                                                                                                                                                  end function
                                                                                                                                                  real(8) function fmin88(x, y) result (res)
                                                                                                                                                      real(8), intent (in) :: x
                                                                                                                                                      real(8), intent (in) :: y
                                                                                                                                                      res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                                                                                                                                                  end function
                                                                                                                                                  real(4) function fmin44(x, y) result (res)
                                                                                                                                                      real(4), intent (in) :: x
                                                                                                                                                      real(4), intent (in) :: y
                                                                                                                                                      res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                                                                                                                                                  end function
                                                                                                                                                  real(8) function fmin84(x, y) result(res)
                                                                                                                                                      real(8), intent (in) :: x
                                                                                                                                                      real(4), intent (in) :: y
                                                                                                                                                      res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
                                                                                                                                                  end function
                                                                                                                                                  real(8) function fmin48(x, y) result(res)
                                                                                                                                                      real(4), intent (in) :: x
                                                                                                                                                      real(8), intent (in) :: y
                                                                                                                                                      res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
                                                                                                                                                  end function
                                                                                                                                              end module
                                                                                                                                              
                                                                                                                                              real(8) function code(n, u, t, l, om, u_42)
                                                                                                                                              use fmin_fmax_functions
                                                                                                                                                  real(8), intent (in) :: n
                                                                                                                                                  real(8), intent (in) :: u
                                                                                                                                                  real(8), intent (in) :: t
                                                                                                                                                  real(8), intent (in) :: l
                                                                                                                                                  real(8), intent (in) :: om
                                                                                                                                                  real(8), intent (in) :: u_42
                                                                                                                                                  code = sqrt((((u * 2.0d0) * t) * n))
                                                                                                                                              end function
                                                                                                                                              
                                                                                                                                              public static double code(double n, double U, double t, double l, double Om, double U_42_) {
                                                                                                                                              	return Math.sqrt((((U * 2.0) * t) * n));
                                                                                                                                              }
                                                                                                                                              
                                                                                                                                              def code(n, U, t, l, Om, U_42_):
                                                                                                                                              	return math.sqrt((((U * 2.0) * t) * n))
                                                                                                                                              
                                                                                                                                              function code(n, U, t, l, Om, U_42_)
                                                                                                                                              	return sqrt(Float64(Float64(Float64(U * 2.0) * t) * n))
                                                                                                                                              end
                                                                                                                                              
                                                                                                                                              function tmp = code(n, U, t, l, Om, U_42_)
                                                                                                                                              	tmp = sqrt((((U * 2.0) * t) * n));
                                                                                                                                              end
                                                                                                                                              
                                                                                                                                              code[n_, U_, t_, l_, Om_, U$42$_] := N[Sqrt[N[(N[(N[(U * 2.0), $MachinePrecision] * t), $MachinePrecision] * n), $MachinePrecision]], $MachinePrecision]
                                                                                                                                              
                                                                                                                                              \begin{array}{l}
                                                                                                                                              
                                                                                                                                              \\
                                                                                                                                              \sqrt{\left(\left(U \cdot 2\right) \cdot t\right) \cdot n}
                                                                                                                                              \end{array}
                                                                                                                                              
                                                                                                                                              Derivation
                                                                                                                                              1. Initial program 54.5%

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

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

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

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

                                                                                                                                                  Alternative 22: 4.6% accurate, 8.5× speedup?

                                                                                                                                                  \[\begin{array}{l} \\ \sqrt{\left(t \cdot U\right) \cdot 2} \end{array} \]
                                                                                                                                                  (FPCore (n U t l Om U*) :precision binary64 (sqrt (* (* t U) 2.0)))
                                                                                                                                                  double code(double n, double U, double t, double l, double Om, double U_42_) {
                                                                                                                                                  	return sqrt(((t * U) * 2.0));
                                                                                                                                                  }
                                                                                                                                                  
                                                                                                                                                  module fmin_fmax_functions
                                                                                                                                                      implicit none
                                                                                                                                                      private
                                                                                                                                                      public fmax
                                                                                                                                                      public fmin
                                                                                                                                                  
                                                                                                                                                      interface fmax
                                                                                                                                                          module procedure fmax88
                                                                                                                                                          module procedure fmax44
                                                                                                                                                          module procedure fmax84
                                                                                                                                                          module procedure fmax48
                                                                                                                                                      end interface
                                                                                                                                                      interface fmin
                                                                                                                                                          module procedure fmin88
                                                                                                                                                          module procedure fmin44
                                                                                                                                                          module procedure fmin84
                                                                                                                                                          module procedure fmin48
                                                                                                                                                      end interface
                                                                                                                                                  contains
                                                                                                                                                      real(8) function fmax88(x, y) result (res)
                                                                                                                                                          real(8), intent (in) :: x
                                                                                                                                                          real(8), intent (in) :: y
                                                                                                                                                          res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                                                                                                                                                      end function
                                                                                                                                                      real(4) function fmax44(x, y) result (res)
                                                                                                                                                          real(4), intent (in) :: x
                                                                                                                                                          real(4), intent (in) :: y
                                                                                                                                                          res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                                                                                                                                                      end function
                                                                                                                                                      real(8) function fmax84(x, y) result(res)
                                                                                                                                                          real(8), intent (in) :: x
                                                                                                                                                          real(4), intent (in) :: y
                                                                                                                                                          res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
                                                                                                                                                      end function
                                                                                                                                                      real(8) function fmax48(x, y) result(res)
                                                                                                                                                          real(4), intent (in) :: x
                                                                                                                                                          real(8), intent (in) :: y
                                                                                                                                                          res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
                                                                                                                                                      end function
                                                                                                                                                      real(8) function fmin88(x, y) result (res)
                                                                                                                                                          real(8), intent (in) :: x
                                                                                                                                                          real(8), intent (in) :: y
                                                                                                                                                          res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                                                                                                                                                      end function
                                                                                                                                                      real(4) function fmin44(x, y) result (res)
                                                                                                                                                          real(4), intent (in) :: x
                                                                                                                                                          real(4), intent (in) :: y
                                                                                                                                                          res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                                                                                                                                                      end function
                                                                                                                                                      real(8) function fmin84(x, y) result(res)
                                                                                                                                                          real(8), intent (in) :: x
                                                                                                                                                          real(4), intent (in) :: y
                                                                                                                                                          res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
                                                                                                                                                      end function
                                                                                                                                                      real(8) function fmin48(x, y) result(res)
                                                                                                                                                          real(4), intent (in) :: x
                                                                                                                                                          real(8), intent (in) :: y
                                                                                                                                                          res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
                                                                                                                                                      end function
                                                                                                                                                  end module
                                                                                                                                                  
                                                                                                                                                  real(8) function code(n, u, t, l, om, u_42)
                                                                                                                                                  use fmin_fmax_functions
                                                                                                                                                      real(8), intent (in) :: n
                                                                                                                                                      real(8), intent (in) :: u
                                                                                                                                                      real(8), intent (in) :: t
                                                                                                                                                      real(8), intent (in) :: l
                                                                                                                                                      real(8), intent (in) :: om
                                                                                                                                                      real(8), intent (in) :: u_42
                                                                                                                                                      code = sqrt(((t * u) * 2.0d0))
                                                                                                                                                  end function
                                                                                                                                                  
                                                                                                                                                  public static double code(double n, double U, double t, double l, double Om, double U_42_) {
                                                                                                                                                  	return Math.sqrt(((t * U) * 2.0));
                                                                                                                                                  }
                                                                                                                                                  
                                                                                                                                                  def code(n, U, t, l, Om, U_42_):
                                                                                                                                                  	return math.sqrt(((t * U) * 2.0))
                                                                                                                                                  
                                                                                                                                                  function code(n, U, t, l, Om, U_42_)
                                                                                                                                                  	return sqrt(Float64(Float64(t * U) * 2.0))
                                                                                                                                                  end
                                                                                                                                                  
                                                                                                                                                  function tmp = code(n, U, t, l, Om, U_42_)
                                                                                                                                                  	tmp = sqrt(((t * U) * 2.0));
                                                                                                                                                  end
                                                                                                                                                  
                                                                                                                                                  code[n_, U_, t_, l_, Om_, U$42$_] := N[Sqrt[N[(N[(t * U), $MachinePrecision] * 2.0), $MachinePrecision]], $MachinePrecision]
                                                                                                                                                  
                                                                                                                                                  \begin{array}{l}
                                                                                                                                                  
                                                                                                                                                  \\
                                                                                                                                                  \sqrt{\left(t \cdot U\right) \cdot 2}
                                                                                                                                                  \end{array}
                                                                                                                                                  
                                                                                                                                                  Derivation
                                                                                                                                                  1. Initial program 54.5%

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

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

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

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

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

                                                                                                                                                        Reproduce

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