Henrywood and Agarwal, Equation (12)

Percentage Accurate: 66.7% → 80.4%
Time: 10.2s
Alternatives: 16
Speedup: 0.7×

Specification

?
\[\begin{array}{l} \\ \left({\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)} \cdot {\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \end{array} \]
(FPCore (d h l M D)
 :precision binary64
 (*
  (* (pow (/ d h) (/ 1.0 2.0)) (pow (/ d l) (/ 1.0 2.0)))
  (- 1.0 (* (* (/ 1.0 2.0) (pow (/ (* M D) (* 2.0 d)) 2.0)) (/ h l)))))
double code(double d, double h, double l, double M, double D) {
	return (pow((d / h), (1.0 / 2.0)) * pow((d / l), (1.0 / 2.0))) * (1.0 - (((1.0 / 2.0) * pow(((M * D) / (2.0 * d)), 2.0)) * (h / l)));
}
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(d, h, l, m, d_1)
use fmin_fmax_functions
    real(8), intent (in) :: d
    real(8), intent (in) :: h
    real(8), intent (in) :: l
    real(8), intent (in) :: m
    real(8), intent (in) :: d_1
    code = (((d / h) ** (1.0d0 / 2.0d0)) * ((d / l) ** (1.0d0 / 2.0d0))) * (1.0d0 - (((1.0d0 / 2.0d0) * (((m * d_1) / (2.0d0 * d)) ** 2.0d0)) * (h / l)))
end function
public static double code(double d, double h, double l, double M, double D) {
	return (Math.pow((d / h), (1.0 / 2.0)) * Math.pow((d / l), (1.0 / 2.0))) * (1.0 - (((1.0 / 2.0) * Math.pow(((M * D) / (2.0 * d)), 2.0)) * (h / l)));
}
def code(d, h, l, M, D):
	return (math.pow((d / h), (1.0 / 2.0)) * math.pow((d / l), (1.0 / 2.0))) * (1.0 - (((1.0 / 2.0) * math.pow(((M * D) / (2.0 * d)), 2.0)) * (h / l)))
function code(d, h, l, M, D)
	return Float64(Float64((Float64(d / h) ^ Float64(1.0 / 2.0)) * (Float64(d / l) ^ Float64(1.0 / 2.0))) * Float64(1.0 - Float64(Float64(Float64(1.0 / 2.0) * (Float64(Float64(M * D) / Float64(2.0 * d)) ^ 2.0)) * Float64(h / l))))
end
function tmp = code(d, h, l, M, D)
	tmp = (((d / h) ^ (1.0 / 2.0)) * ((d / l) ^ (1.0 / 2.0))) * (1.0 - (((1.0 / 2.0) * (((M * D) / (2.0 * d)) ^ 2.0)) * (h / l)));
end
code[d_, h_, l_, M_, D_] := N[(N[(N[Power[N[(d / h), $MachinePrecision], N[(1.0 / 2.0), $MachinePrecision]], $MachinePrecision] * N[Power[N[(d / l), $MachinePrecision], N[(1.0 / 2.0), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] * N[(1.0 - N[(N[(N[(1.0 / 2.0), $MachinePrecision] * N[Power[N[(N[(M * D), $MachinePrecision] / N[(2.0 * d), $MachinePrecision]), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision] * N[(h / l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}

\\
\left({\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)} \cdot {\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right)
\end{array}

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

\[\begin{array}{l} \\ \left({\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)} \cdot {\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \end{array} \]
(FPCore (d h l M D)
 :precision binary64
 (*
  (* (pow (/ d h) (/ 1.0 2.0)) (pow (/ d l) (/ 1.0 2.0)))
  (- 1.0 (* (* (/ 1.0 2.0) (pow (/ (* M D) (* 2.0 d)) 2.0)) (/ h l)))))
double code(double d, double h, double l, double M, double D) {
	return (pow((d / h), (1.0 / 2.0)) * pow((d / l), (1.0 / 2.0))) * (1.0 - (((1.0 / 2.0) * pow(((M * D) / (2.0 * d)), 2.0)) * (h / l)));
}
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(d, h, l, m, d_1)
use fmin_fmax_functions
    real(8), intent (in) :: d
    real(8), intent (in) :: h
    real(8), intent (in) :: l
    real(8), intent (in) :: m
    real(8), intent (in) :: d_1
    code = (((d / h) ** (1.0d0 / 2.0d0)) * ((d / l) ** (1.0d0 / 2.0d0))) * (1.0d0 - (((1.0d0 / 2.0d0) * (((m * d_1) / (2.0d0 * d)) ** 2.0d0)) * (h / l)))
end function
public static double code(double d, double h, double l, double M, double D) {
	return (Math.pow((d / h), (1.0 / 2.0)) * Math.pow((d / l), (1.0 / 2.0))) * (1.0 - (((1.0 / 2.0) * Math.pow(((M * D) / (2.0 * d)), 2.0)) * (h / l)));
}
def code(d, h, l, M, D):
	return (math.pow((d / h), (1.0 / 2.0)) * math.pow((d / l), (1.0 / 2.0))) * (1.0 - (((1.0 / 2.0) * math.pow(((M * D) / (2.0 * d)), 2.0)) * (h / l)))
function code(d, h, l, M, D)
	return Float64(Float64((Float64(d / h) ^ Float64(1.0 / 2.0)) * (Float64(d / l) ^ Float64(1.0 / 2.0))) * Float64(1.0 - Float64(Float64(Float64(1.0 / 2.0) * (Float64(Float64(M * D) / Float64(2.0 * d)) ^ 2.0)) * Float64(h / l))))
end
function tmp = code(d, h, l, M, D)
	tmp = (((d / h) ^ (1.0 / 2.0)) * ((d / l) ^ (1.0 / 2.0))) * (1.0 - (((1.0 / 2.0) * (((M * D) / (2.0 * d)) ^ 2.0)) * (h / l)));
end
code[d_, h_, l_, M_, D_] := N[(N[(N[Power[N[(d / h), $MachinePrecision], N[(1.0 / 2.0), $MachinePrecision]], $MachinePrecision] * N[Power[N[(d / l), $MachinePrecision], N[(1.0 / 2.0), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] * N[(1.0 - N[(N[(N[(1.0 / 2.0), $MachinePrecision] * N[Power[N[(N[(M * D), $MachinePrecision] / N[(2.0 * d), $MachinePrecision]), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision] * N[(h / l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}

\\
\left({\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)} \cdot {\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right)
\end{array}

Alternative 1: 80.4% accurate, 0.6× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_0 := 1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\\ \mathbf{if}\;\left({\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)} \cdot {\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot t\_0 \leq 5 \cdot 10^{+249}:\\ \;\;\;\;\left(\sqrt{\frac{d}{\ell}} \cdot \sqrt{\frac{d}{h}}\right) \cdot t\_0\\ \mathbf{else}:\\ \;\;\;\;\frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \mathsf{fma}\left(\left(\left(\left(M \cdot D\right) \cdot \left(\frac{D}{d \cdot d} \cdot M\right)\right) \cdot -0.125\right) \cdot h, \frac{1}{\ell}, 1\right)\\ \end{array} \end{array} \]
(FPCore (d h l M D)
 :precision binary64
 (let* ((t_0
         (- 1.0 (* (* (/ 1.0 2.0) (pow (/ (* M D) (* 2.0 d)) 2.0)) (/ h l)))))
   (if (<=
        (* (* (pow (/ d h) (/ 1.0 2.0)) (pow (/ d l) (/ 1.0 2.0))) t_0)
        5e+249)
     (* (* (sqrt (/ d l)) (sqrt (/ d h))) t_0)
     (*
      (/ (fabs d) (sqrt (* h l)))
      (fma (* (* (* (* M D) (* (/ D (* d d)) M)) -0.125) h) (/ 1.0 l) 1.0)))))
double code(double d, double h, double l, double M, double D) {
	double t_0 = 1.0 - (((1.0 / 2.0) * pow(((M * D) / (2.0 * d)), 2.0)) * (h / l));
	double tmp;
	if (((pow((d / h), (1.0 / 2.0)) * pow((d / l), (1.0 / 2.0))) * t_0) <= 5e+249) {
		tmp = (sqrt((d / l)) * sqrt((d / h))) * t_0;
	} else {
		tmp = (fabs(d) / sqrt((h * l))) * fma(((((M * D) * ((D / (d * d)) * M)) * -0.125) * h), (1.0 / l), 1.0);
	}
	return tmp;
}
function code(d, h, l, M, D)
	t_0 = Float64(1.0 - Float64(Float64(Float64(1.0 / 2.0) * (Float64(Float64(M * D) / Float64(2.0 * d)) ^ 2.0)) * Float64(h / l)))
	tmp = 0.0
	if (Float64(Float64((Float64(d / h) ^ Float64(1.0 / 2.0)) * (Float64(d / l) ^ Float64(1.0 / 2.0))) * t_0) <= 5e+249)
		tmp = Float64(Float64(sqrt(Float64(d / l)) * sqrt(Float64(d / h))) * t_0);
	else
		tmp = Float64(Float64(abs(d) / sqrt(Float64(h * l))) * fma(Float64(Float64(Float64(Float64(M * D) * Float64(Float64(D / Float64(d * d)) * M)) * -0.125) * h), Float64(1.0 / l), 1.0));
	end
	return tmp
end
code[d_, h_, l_, M_, D_] := Block[{t$95$0 = N[(1.0 - N[(N[(N[(1.0 / 2.0), $MachinePrecision] * N[Power[N[(N[(M * D), $MachinePrecision] / N[(2.0 * d), $MachinePrecision]), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision] * N[(h / l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(N[(N[Power[N[(d / h), $MachinePrecision], N[(1.0 / 2.0), $MachinePrecision]], $MachinePrecision] * N[Power[N[(d / l), $MachinePrecision], N[(1.0 / 2.0), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] * t$95$0), $MachinePrecision], 5e+249], N[(N[(N[Sqrt[N[(d / l), $MachinePrecision]], $MachinePrecision] * N[Sqrt[N[(d / h), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] * t$95$0), $MachinePrecision], N[(N[(N[Abs[d], $MachinePrecision] / N[Sqrt[N[(h * l), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] * N[(N[(N[(N[(N[(M * D), $MachinePrecision] * N[(N[(D / N[(d * d), $MachinePrecision]), $MachinePrecision] * M), $MachinePrecision]), $MachinePrecision] * -0.125), $MachinePrecision] * h), $MachinePrecision] * N[(1.0 / l), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}

\\
\begin{array}{l}
t_0 := 1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\\
\mathbf{if}\;\left({\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)} \cdot {\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot t\_0 \leq 5 \cdot 10^{+249}:\\
\;\;\;\;\left(\sqrt{\frac{d}{\ell}} \cdot \sqrt{\frac{d}{h}}\right) \cdot t\_0\\

\mathbf{else}:\\
\;\;\;\;\frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \mathsf{fma}\left(\left(\left(\left(M \cdot D\right) \cdot \left(\frac{D}{d \cdot d} \cdot M\right)\right) \cdot -0.125\right) \cdot h, \frac{1}{\ell}, 1\right)\\


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if (*.f64 (*.f64 (pow.f64 (/.f64 d h) (/.f64 #s(literal 1 binary64) #s(literal 2 binary64))) (pow.f64 (/.f64 d l) (/.f64 #s(literal 1 binary64) #s(literal 2 binary64)))) (-.f64 #s(literal 1 binary64) (*.f64 (*.f64 (/.f64 #s(literal 1 binary64) #s(literal 2 binary64)) (pow.f64 (/.f64 (*.f64 M D) (*.f64 #s(literal 2 binary64) d)) #s(literal 2 binary64))) (/.f64 h l)))) < 4.9999999999999996e249

    1. Initial program 66.7%

      \[\left({\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)} \cdot {\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
    2. Step-by-step derivation
      1. lift-*.f64N/A

        \[\leadsto \color{blue}{\left({\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)} \cdot {\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)}\right)} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
      2. *-commutativeN/A

        \[\leadsto \color{blue}{\left({\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right)} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
      3. lower-*.f6466.7

        \[\leadsto \color{blue}{\left({\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right)} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
      4. lift-pow.f64N/A

        \[\leadsto \left(\color{blue}{{\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)}} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
      5. lift-/.f64N/A

        \[\leadsto \left({\left(\frac{d}{\ell}\right)}^{\color{blue}{\left(\frac{1}{2}\right)}} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
      6. metadata-evalN/A

        \[\leadsto \left({\left(\frac{d}{\ell}\right)}^{\color{blue}{\frac{1}{2}}} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
      7. unpow1/2N/A

        \[\leadsto \left(\color{blue}{\sqrt{\frac{d}{\ell}}} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
      8. lower-sqrt.f6466.7

        \[\leadsto \left(\color{blue}{\sqrt{\frac{d}{\ell}}} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
      9. lift-pow.f64N/A

        \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot \color{blue}{{\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
      10. lift-/.f64N/A

        \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot {\left(\frac{d}{h}\right)}^{\color{blue}{\left(\frac{1}{2}\right)}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
      11. metadata-evalN/A

        \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot {\left(\frac{d}{h}\right)}^{\color{blue}{\frac{1}{2}}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
      12. unpow1/2N/A

        \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot \color{blue}{\sqrt{\frac{d}{h}}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
      13. lower-sqrt.f6466.7

        \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot \color{blue}{\sqrt{\frac{d}{h}}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
    3. Applied rewrites66.7%

      \[\leadsto \color{blue}{\left(\sqrt{\frac{d}{\ell}} \cdot \sqrt{\frac{d}{h}}\right)} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]

    if 4.9999999999999996e249 < (*.f64 (*.f64 (pow.f64 (/.f64 d h) (/.f64 #s(literal 1 binary64) #s(literal 2 binary64))) (pow.f64 (/.f64 d l) (/.f64 #s(literal 1 binary64) #s(literal 2 binary64)))) (-.f64 #s(literal 1 binary64) (*.f64 (*.f64 (/.f64 #s(literal 1 binary64) #s(literal 2 binary64)) (pow.f64 (/.f64 (*.f64 M D) (*.f64 #s(literal 2 binary64) d)) #s(literal 2 binary64))) (/.f64 h l))))

    1. Initial program 66.7%

      \[\left({\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)} \cdot {\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
    2. Step-by-step derivation
      1. lift-*.f64N/A

        \[\leadsto \color{blue}{\left({\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)} \cdot {\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)}\right)} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
      2. *-commutativeN/A

        \[\leadsto \color{blue}{\left({\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right)} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
      3. lower-*.f6466.7

        \[\leadsto \color{blue}{\left({\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right)} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
      4. lift-pow.f64N/A

        \[\leadsto \left(\color{blue}{{\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)}} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
      5. lift-/.f64N/A

        \[\leadsto \left({\left(\frac{d}{\ell}\right)}^{\color{blue}{\left(\frac{1}{2}\right)}} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
      6. metadata-evalN/A

        \[\leadsto \left({\left(\frac{d}{\ell}\right)}^{\color{blue}{\frac{1}{2}}} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
      7. unpow1/2N/A

        \[\leadsto \left(\color{blue}{\sqrt{\frac{d}{\ell}}} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
      8. lower-sqrt.f6466.7

        \[\leadsto \left(\color{blue}{\sqrt{\frac{d}{\ell}}} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
      9. lift-pow.f64N/A

        \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot \color{blue}{{\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
      10. lift-/.f64N/A

        \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot {\left(\frac{d}{h}\right)}^{\color{blue}{\left(\frac{1}{2}\right)}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
      11. metadata-evalN/A

        \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot {\left(\frac{d}{h}\right)}^{\color{blue}{\frac{1}{2}}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
      12. unpow1/2N/A

        \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot \color{blue}{\sqrt{\frac{d}{h}}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
      13. lower-sqrt.f6466.7

        \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot \color{blue}{\sqrt{\frac{d}{h}}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
    3. Applied rewrites66.7%

      \[\leadsto \color{blue}{\left(\sqrt{\frac{d}{\ell}} \cdot \sqrt{\frac{d}{h}}\right)} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
    4. Step-by-step derivation
      1. lift-*.f64N/A

        \[\leadsto \color{blue}{\left(\sqrt{\frac{d}{\ell}} \cdot \sqrt{\frac{d}{h}}\right)} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
      2. lift-sqrt.f64N/A

        \[\leadsto \left(\color{blue}{\sqrt{\frac{d}{\ell}}} \cdot \sqrt{\frac{d}{h}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
      3. lift-sqrt.f64N/A

        \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot \color{blue}{\sqrt{\frac{d}{h}}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
      4. sqrt-unprodN/A

        \[\leadsto \color{blue}{\sqrt{\frac{d}{\ell} \cdot \frac{d}{h}}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
      5. lift-/.f64N/A

        \[\leadsto \sqrt{\color{blue}{\frac{d}{\ell}} \cdot \frac{d}{h}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
      6. lift-/.f64N/A

        \[\leadsto \sqrt{\frac{d}{\ell} \cdot \color{blue}{\frac{d}{h}}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
      7. frac-timesN/A

        \[\leadsto \sqrt{\color{blue}{\frac{d \cdot d}{\ell \cdot h}}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
      8. *-commutativeN/A

        \[\leadsto \sqrt{\frac{d \cdot d}{\color{blue}{h \cdot \ell}}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
      9. lift-*.f64N/A

        \[\leadsto \sqrt{\frac{d \cdot d}{\color{blue}{h \cdot \ell}}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
      10. lift-*.f64N/A

        \[\leadsto \sqrt{\frac{\color{blue}{d \cdot d}}{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
      11. sqrt-divN/A

        \[\leadsto \color{blue}{\frac{\sqrt{d \cdot d}}{\sqrt{h \cdot \ell}}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
      12. lower-unsound-sqrt.f32N/A

        \[\leadsto \frac{\color{blue}{\sqrt{d \cdot d}}}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
      13. lower-sqrt.f32N/A

        \[\leadsto \frac{\color{blue}{\sqrt{d \cdot d}}}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
      14. lift-*.f64N/A

        \[\leadsto \frac{\sqrt{\color{blue}{d \cdot d}}}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
      15. rem-sqrt-square-revN/A

        \[\leadsto \frac{\color{blue}{\left|d\right|}}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
      16. lower-unsound-/.f64N/A

        \[\leadsto \color{blue}{\frac{\left|d\right|}{\sqrt{h \cdot \ell}}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
      17. lower-fabs.f64N/A

        \[\leadsto \frac{\color{blue}{\left|d\right|}}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
      18. lower-unsound-sqrt.f6469.9

        \[\leadsto \frac{\left|d\right|}{\color{blue}{\sqrt{h \cdot \ell}}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
    5. Applied rewrites69.9%

      \[\leadsto \color{blue}{\frac{\left|d\right|}{\sqrt{h \cdot \ell}}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
    6. Step-by-step derivation
      1. lift-pow.f64N/A

        \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \color{blue}{{\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}}\right) \cdot \frac{h}{\ell}\right) \]
      2. unpow2N/A

        \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \color{blue}{\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{M \cdot D}{2 \cdot d}\right)}\right) \cdot \frac{h}{\ell}\right) \]
      3. lift-/.f64N/A

        \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\color{blue}{\frac{M \cdot D}{2 \cdot d}} \cdot \frac{M \cdot D}{2 \cdot d}\right)\right) \cdot \frac{h}{\ell}\right) \]
      4. frac-2negN/A

        \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\color{blue}{\frac{\mathsf{neg}\left(M \cdot D\right)}{\mathsf{neg}\left(2 \cdot d\right)}} \cdot \frac{M \cdot D}{2 \cdot d}\right)\right) \cdot \frac{h}{\ell}\right) \]
      5. distribute-frac-negN/A

        \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\color{blue}{\left(\mathsf{neg}\left(\frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right)} \cdot \frac{M \cdot D}{2 \cdot d}\right)\right) \cdot \frac{h}{\ell}\right) \]
      6. lift-/.f64N/A

        \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\left(\mathsf{neg}\left(\frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \color{blue}{\frac{M \cdot D}{2 \cdot d}}\right)\right) \cdot \frac{h}{\ell}\right) \]
      7. frac-2negN/A

        \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\left(\mathsf{neg}\left(\frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \color{blue}{\frac{\mathsf{neg}\left(M \cdot D\right)}{\mathsf{neg}\left(2 \cdot d\right)}}\right)\right) \cdot \frac{h}{\ell}\right) \]
      8. distribute-frac-negN/A

        \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\left(\mathsf{neg}\left(\frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \color{blue}{\left(\mathsf{neg}\left(\frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
      9. sqr-negN/A

        \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \color{blue}{\left(\frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)} \cdot \frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)}\right) \cdot \frac{h}{\ell}\right) \]
      10. lower-*.f64N/A

        \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \color{blue}{\left(\frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)} \cdot \frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)}\right) \cdot \frac{h}{\ell}\right) \]
      11. lower-/.f64N/A

        \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\color{blue}{\frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}} \cdot \frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
      12. lift-*.f64N/A

        \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{\color{blue}{M \cdot D}}{\mathsf{neg}\left(2 \cdot d\right)} \cdot \frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
      13. *-commutativeN/A

        \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{\color{blue}{D \cdot M}}{\mathsf{neg}\left(2 \cdot d\right)} \cdot \frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
      14. lift-*.f64N/A

        \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{\color{blue}{D \cdot M}}{\mathsf{neg}\left(2 \cdot d\right)} \cdot \frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
      15. lift-*.f64N/A

        \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{\mathsf{neg}\left(\color{blue}{2 \cdot d}\right)} \cdot \frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
      16. distribute-lft-neg-inN/A

        \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{\color{blue}{\left(\mathsf{neg}\left(2\right)\right) \cdot d}} \cdot \frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
      17. lower-*.f64N/A

        \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{\color{blue}{\left(\mathsf{neg}\left(2\right)\right) \cdot d}} \cdot \frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
      18. metadata-evalN/A

        \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{\color{blue}{-2} \cdot d} \cdot \frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
      19. lower-/.f64N/A

        \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{-2 \cdot d} \cdot \color{blue}{\frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}}\right)\right) \cdot \frac{h}{\ell}\right) \]
      20. lift-*.f64N/A

        \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{-2 \cdot d} \cdot \frac{\color{blue}{M \cdot D}}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
      21. *-commutativeN/A

        \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{-2 \cdot d} \cdot \frac{\color{blue}{D \cdot M}}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
      22. lift-*.f64N/A

        \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{-2 \cdot d} \cdot \frac{\color{blue}{D \cdot M}}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
      23. lift-*.f64N/A

        \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{-2 \cdot d} \cdot \frac{D \cdot M}{\mathsf{neg}\left(\color{blue}{2 \cdot d}\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
      24. distribute-lft-neg-inN/A

        \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{-2 \cdot d} \cdot \frac{D \cdot M}{\color{blue}{\left(\mathsf{neg}\left(2\right)\right) \cdot d}}\right)\right) \cdot \frac{h}{\ell}\right) \]
      25. lower-*.f64N/A

        \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{-2 \cdot d} \cdot \frac{D \cdot M}{\color{blue}{\left(\mathsf{neg}\left(2\right)\right) \cdot d}}\right)\right) \cdot \frac{h}{\ell}\right) \]
      26. metadata-eval69.9

        \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{-2 \cdot d} \cdot \frac{D \cdot M}{\color{blue}{-2} \cdot d}\right)\right) \cdot \frac{h}{\ell}\right) \]
    7. Applied rewrites69.9%

      \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \color{blue}{\left(\frac{D \cdot M}{-2 \cdot d} \cdot \frac{D \cdot M}{-2 \cdot d}\right)}\right) \cdot \frac{h}{\ell}\right) \]
    8. Applied rewrites63.4%

      \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \color{blue}{\mathsf{fma}\left(\left(\left(\left(M \cdot D\right) \cdot \left(\frac{D}{d \cdot d} \cdot M\right)\right) \cdot -0.125\right) \cdot h, \frac{1}{\ell}, 1\right)} \]
  3. Recombined 2 regimes into one program.
  4. Add Preprocessing

Alternative 2: 80.0% accurate, 0.6× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_0 := \frac{D}{d + d} \cdot M\\ \mathbf{if}\;\left({\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)} \cdot {\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \leq 5 \cdot 10^{+249}:\\ \;\;\;\;\left(\sqrt{\frac{d}{\ell}} \cdot \sqrt{\frac{d}{h}}\right) \cdot \left(1 - \left(t\_0 \cdot \left(t\_0 \cdot 0.5\right)\right) \cdot \frac{h}{\ell}\right)\\ \mathbf{else}:\\ \;\;\;\;\frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \mathsf{fma}\left(\left(\left(\left(M \cdot D\right) \cdot \left(\frac{D}{d \cdot d} \cdot M\right)\right) \cdot -0.125\right) \cdot h, \frac{1}{\ell}, 1\right)\\ \end{array} \end{array} \]
(FPCore (d h l M D)
 :precision binary64
 (let* ((t_0 (* (/ D (+ d d)) M)))
   (if (<=
        (*
         (* (pow (/ d h) (/ 1.0 2.0)) (pow (/ d l) (/ 1.0 2.0)))
         (- 1.0 (* (* (/ 1.0 2.0) (pow (/ (* M D) (* 2.0 d)) 2.0)) (/ h l))))
        5e+249)
     (*
      (* (sqrt (/ d l)) (sqrt (/ d h)))
      (- 1.0 (* (* t_0 (* t_0 0.5)) (/ h l))))
     (*
      (/ (fabs d) (sqrt (* h l)))
      (fma (* (* (* (* M D) (* (/ D (* d d)) M)) -0.125) h) (/ 1.0 l) 1.0)))))
double code(double d, double h, double l, double M, double D) {
	double t_0 = (D / (d + d)) * M;
	double tmp;
	if (((pow((d / h), (1.0 / 2.0)) * pow((d / l), (1.0 / 2.0))) * (1.0 - (((1.0 / 2.0) * pow(((M * D) / (2.0 * d)), 2.0)) * (h / l)))) <= 5e+249) {
		tmp = (sqrt((d / l)) * sqrt((d / h))) * (1.0 - ((t_0 * (t_0 * 0.5)) * (h / l)));
	} else {
		tmp = (fabs(d) / sqrt((h * l))) * fma(((((M * D) * ((D / (d * d)) * M)) * -0.125) * h), (1.0 / l), 1.0);
	}
	return tmp;
}
function code(d, h, l, M, D)
	t_0 = Float64(Float64(D / Float64(d + d)) * M)
	tmp = 0.0
	if (Float64(Float64((Float64(d / h) ^ Float64(1.0 / 2.0)) * (Float64(d / l) ^ Float64(1.0 / 2.0))) * Float64(1.0 - Float64(Float64(Float64(1.0 / 2.0) * (Float64(Float64(M * D) / Float64(2.0 * d)) ^ 2.0)) * Float64(h / l)))) <= 5e+249)
		tmp = Float64(Float64(sqrt(Float64(d / l)) * sqrt(Float64(d / h))) * Float64(1.0 - Float64(Float64(t_0 * Float64(t_0 * 0.5)) * Float64(h / l))));
	else
		tmp = Float64(Float64(abs(d) / sqrt(Float64(h * l))) * fma(Float64(Float64(Float64(Float64(M * D) * Float64(Float64(D / Float64(d * d)) * M)) * -0.125) * h), Float64(1.0 / l), 1.0));
	end
	return tmp
end
code[d_, h_, l_, M_, D_] := Block[{t$95$0 = N[(N[(D / N[(d + d), $MachinePrecision]), $MachinePrecision] * M), $MachinePrecision]}, If[LessEqual[N[(N[(N[Power[N[(d / h), $MachinePrecision], N[(1.0 / 2.0), $MachinePrecision]], $MachinePrecision] * N[Power[N[(d / l), $MachinePrecision], N[(1.0 / 2.0), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] * N[(1.0 - N[(N[(N[(1.0 / 2.0), $MachinePrecision] * N[Power[N[(N[(M * D), $MachinePrecision] / N[(2.0 * d), $MachinePrecision]), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision] * N[(h / l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 5e+249], N[(N[(N[Sqrt[N[(d / l), $MachinePrecision]], $MachinePrecision] * N[Sqrt[N[(d / h), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] * N[(1.0 - N[(N[(t$95$0 * N[(t$95$0 * 0.5), $MachinePrecision]), $MachinePrecision] * N[(h / l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[Abs[d], $MachinePrecision] / N[Sqrt[N[(h * l), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] * N[(N[(N[(N[(N[(M * D), $MachinePrecision] * N[(N[(D / N[(d * d), $MachinePrecision]), $MachinePrecision] * M), $MachinePrecision]), $MachinePrecision] * -0.125), $MachinePrecision] * h), $MachinePrecision] * N[(1.0 / l), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}

\\
\begin{array}{l}
t_0 := \frac{D}{d + d} \cdot M\\
\mathbf{if}\;\left({\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)} \cdot {\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \leq 5 \cdot 10^{+249}:\\
\;\;\;\;\left(\sqrt{\frac{d}{\ell}} \cdot \sqrt{\frac{d}{h}}\right) \cdot \left(1 - \left(t\_0 \cdot \left(t\_0 \cdot 0.5\right)\right) \cdot \frac{h}{\ell}\right)\\

\mathbf{else}:\\
\;\;\;\;\frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \mathsf{fma}\left(\left(\left(\left(M \cdot D\right) \cdot \left(\frac{D}{d \cdot d} \cdot M\right)\right) \cdot -0.125\right) \cdot h, \frac{1}{\ell}, 1\right)\\


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if (*.f64 (*.f64 (pow.f64 (/.f64 d h) (/.f64 #s(literal 1 binary64) #s(literal 2 binary64))) (pow.f64 (/.f64 d l) (/.f64 #s(literal 1 binary64) #s(literal 2 binary64)))) (-.f64 #s(literal 1 binary64) (*.f64 (*.f64 (/.f64 #s(literal 1 binary64) #s(literal 2 binary64)) (pow.f64 (/.f64 (*.f64 M D) (*.f64 #s(literal 2 binary64) d)) #s(literal 2 binary64))) (/.f64 h l)))) < 4.9999999999999996e249

    1. Initial program 66.7%

      \[\left({\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)} \cdot {\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
    2. Step-by-step derivation
      1. lift-*.f64N/A

        \[\leadsto \color{blue}{\left({\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)} \cdot {\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)}\right)} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
      2. *-commutativeN/A

        \[\leadsto \color{blue}{\left({\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right)} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
      3. lower-*.f6466.7

        \[\leadsto \color{blue}{\left({\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right)} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
      4. lift-pow.f64N/A

        \[\leadsto \left(\color{blue}{{\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)}} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
      5. lift-/.f64N/A

        \[\leadsto \left({\left(\frac{d}{\ell}\right)}^{\color{blue}{\left(\frac{1}{2}\right)}} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
      6. metadata-evalN/A

        \[\leadsto \left({\left(\frac{d}{\ell}\right)}^{\color{blue}{\frac{1}{2}}} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
      7. unpow1/2N/A

        \[\leadsto \left(\color{blue}{\sqrt{\frac{d}{\ell}}} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
      8. lower-sqrt.f6466.7

        \[\leadsto \left(\color{blue}{\sqrt{\frac{d}{\ell}}} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
      9. lift-pow.f64N/A

        \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot \color{blue}{{\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
      10. lift-/.f64N/A

        \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot {\left(\frac{d}{h}\right)}^{\color{blue}{\left(\frac{1}{2}\right)}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
      11. metadata-evalN/A

        \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot {\left(\frac{d}{h}\right)}^{\color{blue}{\frac{1}{2}}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
      12. unpow1/2N/A

        \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot \color{blue}{\sqrt{\frac{d}{h}}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
      13. lower-sqrt.f6466.7

        \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot \color{blue}{\sqrt{\frac{d}{h}}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
    3. Applied rewrites66.7%

      \[\leadsto \color{blue}{\left(\sqrt{\frac{d}{\ell}} \cdot \sqrt{\frac{d}{h}}\right)} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
    4. Step-by-step derivation
      1. lift-*.f64N/A

        \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot \sqrt{\frac{d}{h}}\right) \cdot \left(1 - \color{blue}{\left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right)} \cdot \frac{h}{\ell}\right) \]
      2. *-commutativeN/A

        \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot \sqrt{\frac{d}{h}}\right) \cdot \left(1 - \color{blue}{\left({\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2} \cdot \frac{1}{2}\right)} \cdot \frac{h}{\ell}\right) \]
      3. lift-pow.f64N/A

        \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot \sqrt{\frac{d}{h}}\right) \cdot \left(1 - \left(\color{blue}{{\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right) \]
      4. unpow2N/A

        \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot \sqrt{\frac{d}{h}}\right) \cdot \left(1 - \left(\color{blue}{\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{M \cdot D}{2 \cdot d}\right)} \cdot \frac{1}{2}\right) \cdot \frac{h}{\ell}\right) \]
      5. associate-*l*N/A

        \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot \sqrt{\frac{d}{h}}\right) \cdot \left(1 - \color{blue}{\left(\frac{M \cdot D}{2 \cdot d} \cdot \left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right)\right)} \cdot \frac{h}{\ell}\right) \]
      6. lower-*.f64N/A

        \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot \sqrt{\frac{d}{h}}\right) \cdot \left(1 - \color{blue}{\left(\frac{M \cdot D}{2 \cdot d} \cdot \left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right)\right)} \cdot \frac{h}{\ell}\right) \]
      7. lift-/.f64N/A

        \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot \sqrt{\frac{d}{h}}\right) \cdot \left(1 - \left(\color{blue}{\frac{M \cdot D}{2 \cdot d}} \cdot \left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right)\right) \cdot \frac{h}{\ell}\right) \]
      8. lift-*.f64N/A

        \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot \sqrt{\frac{d}{h}}\right) \cdot \left(1 - \left(\frac{\color{blue}{M \cdot D}}{2 \cdot d} \cdot \left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right)\right) \cdot \frac{h}{\ell}\right) \]
      9. lift-*.f64N/A

        \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot \sqrt{\frac{d}{h}}\right) \cdot \left(1 - \left(\frac{M \cdot D}{\color{blue}{2 \cdot d}} \cdot \left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right)\right) \cdot \frac{h}{\ell}\right) \]
      10. lift-*.f64N/A

        \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot \sqrt{\frac{d}{h}}\right) \cdot \left(1 - \left(\frac{M \cdot D}{\color{blue}{2 \cdot d}} \cdot \left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right)\right) \cdot \frac{h}{\ell}\right) \]
      11. associate-/l*N/A

        \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot \sqrt{\frac{d}{h}}\right) \cdot \left(1 - \left(\color{blue}{\left(M \cdot \frac{D}{2 \cdot d}\right)} \cdot \left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right)\right) \cdot \frac{h}{\ell}\right) \]
      12. *-commutativeN/A

        \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot \sqrt{\frac{d}{h}}\right) \cdot \left(1 - \left(\color{blue}{\left(\frac{D}{2 \cdot d} \cdot M\right)} \cdot \left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right)\right) \cdot \frac{h}{\ell}\right) \]
      13. lower-*.f64N/A

        \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot \sqrt{\frac{d}{h}}\right) \cdot \left(1 - \left(\color{blue}{\left(\frac{D}{2 \cdot d} \cdot M\right)} \cdot \left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right)\right) \cdot \frac{h}{\ell}\right) \]
      14. lower-/.f64N/A

        \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot \sqrt{\frac{d}{h}}\right) \cdot \left(1 - \left(\left(\color{blue}{\frac{D}{2 \cdot d}} \cdot M\right) \cdot \left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right)\right) \cdot \frac{h}{\ell}\right) \]
      15. lift-*.f64N/A

        \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot \sqrt{\frac{d}{h}}\right) \cdot \left(1 - \left(\left(\frac{D}{\color{blue}{2 \cdot d}} \cdot M\right) \cdot \left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right)\right) \cdot \frac{h}{\ell}\right) \]
      16. count-2-revN/A

        \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot \sqrt{\frac{d}{h}}\right) \cdot \left(1 - \left(\left(\frac{D}{\color{blue}{d + d}} \cdot M\right) \cdot \left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right)\right) \cdot \frac{h}{\ell}\right) \]
      17. lower-+.f64N/A

        \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot \sqrt{\frac{d}{h}}\right) \cdot \left(1 - \left(\left(\frac{D}{\color{blue}{d + d}} \cdot M\right) \cdot \left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right)\right) \cdot \frac{h}{\ell}\right) \]
      18. lower-*.f6466.1

        \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot \sqrt{\frac{d}{h}}\right) \cdot \left(1 - \left(\left(\frac{D}{d + d} \cdot M\right) \cdot \color{blue}{\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{2}\right)}\right) \cdot \frac{h}{\ell}\right) \]
    5. Applied rewrites66.4%

      \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot \sqrt{\frac{d}{h}}\right) \cdot \left(1 - \color{blue}{\left(\left(\frac{D}{d + d} \cdot M\right) \cdot \left(\left(\frac{D}{d + d} \cdot M\right) \cdot 0.5\right)\right)} \cdot \frac{h}{\ell}\right) \]

    if 4.9999999999999996e249 < (*.f64 (*.f64 (pow.f64 (/.f64 d h) (/.f64 #s(literal 1 binary64) #s(literal 2 binary64))) (pow.f64 (/.f64 d l) (/.f64 #s(literal 1 binary64) #s(literal 2 binary64)))) (-.f64 #s(literal 1 binary64) (*.f64 (*.f64 (/.f64 #s(literal 1 binary64) #s(literal 2 binary64)) (pow.f64 (/.f64 (*.f64 M D) (*.f64 #s(literal 2 binary64) d)) #s(literal 2 binary64))) (/.f64 h l))))

    1. Initial program 66.7%

      \[\left({\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)} \cdot {\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
    2. Step-by-step derivation
      1. lift-*.f64N/A

        \[\leadsto \color{blue}{\left({\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)} \cdot {\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)}\right)} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
      2. *-commutativeN/A

        \[\leadsto \color{blue}{\left({\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right)} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
      3. lower-*.f6466.7

        \[\leadsto \color{blue}{\left({\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right)} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
      4. lift-pow.f64N/A

        \[\leadsto \left(\color{blue}{{\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)}} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
      5. lift-/.f64N/A

        \[\leadsto \left({\left(\frac{d}{\ell}\right)}^{\color{blue}{\left(\frac{1}{2}\right)}} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
      6. metadata-evalN/A

        \[\leadsto \left({\left(\frac{d}{\ell}\right)}^{\color{blue}{\frac{1}{2}}} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
      7. unpow1/2N/A

        \[\leadsto \left(\color{blue}{\sqrt{\frac{d}{\ell}}} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
      8. lower-sqrt.f6466.7

        \[\leadsto \left(\color{blue}{\sqrt{\frac{d}{\ell}}} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
      9. lift-pow.f64N/A

        \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot \color{blue}{{\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
      10. lift-/.f64N/A

        \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot {\left(\frac{d}{h}\right)}^{\color{blue}{\left(\frac{1}{2}\right)}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
      11. metadata-evalN/A

        \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot {\left(\frac{d}{h}\right)}^{\color{blue}{\frac{1}{2}}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
      12. unpow1/2N/A

        \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot \color{blue}{\sqrt{\frac{d}{h}}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
      13. lower-sqrt.f6466.7

        \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot \color{blue}{\sqrt{\frac{d}{h}}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
    3. Applied rewrites66.7%

      \[\leadsto \color{blue}{\left(\sqrt{\frac{d}{\ell}} \cdot \sqrt{\frac{d}{h}}\right)} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
    4. Step-by-step derivation
      1. lift-*.f64N/A

        \[\leadsto \color{blue}{\left(\sqrt{\frac{d}{\ell}} \cdot \sqrt{\frac{d}{h}}\right)} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
      2. lift-sqrt.f64N/A

        \[\leadsto \left(\color{blue}{\sqrt{\frac{d}{\ell}}} \cdot \sqrt{\frac{d}{h}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
      3. lift-sqrt.f64N/A

        \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot \color{blue}{\sqrt{\frac{d}{h}}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
      4. sqrt-unprodN/A

        \[\leadsto \color{blue}{\sqrt{\frac{d}{\ell} \cdot \frac{d}{h}}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
      5. lift-/.f64N/A

        \[\leadsto \sqrt{\color{blue}{\frac{d}{\ell}} \cdot \frac{d}{h}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
      6. lift-/.f64N/A

        \[\leadsto \sqrt{\frac{d}{\ell} \cdot \color{blue}{\frac{d}{h}}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
      7. frac-timesN/A

        \[\leadsto \sqrt{\color{blue}{\frac{d \cdot d}{\ell \cdot h}}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
      8. *-commutativeN/A

        \[\leadsto \sqrt{\frac{d \cdot d}{\color{blue}{h \cdot \ell}}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
      9. lift-*.f64N/A

        \[\leadsto \sqrt{\frac{d \cdot d}{\color{blue}{h \cdot \ell}}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
      10. lift-*.f64N/A

        \[\leadsto \sqrt{\frac{\color{blue}{d \cdot d}}{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
      11. sqrt-divN/A

        \[\leadsto \color{blue}{\frac{\sqrt{d \cdot d}}{\sqrt{h \cdot \ell}}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
      12. lower-unsound-sqrt.f32N/A

        \[\leadsto \frac{\color{blue}{\sqrt{d \cdot d}}}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
      13. lower-sqrt.f32N/A

        \[\leadsto \frac{\color{blue}{\sqrt{d \cdot d}}}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
      14. lift-*.f64N/A

        \[\leadsto \frac{\sqrt{\color{blue}{d \cdot d}}}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
      15. rem-sqrt-square-revN/A

        \[\leadsto \frac{\color{blue}{\left|d\right|}}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
      16. lower-unsound-/.f64N/A

        \[\leadsto \color{blue}{\frac{\left|d\right|}{\sqrt{h \cdot \ell}}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
      17. lower-fabs.f64N/A

        \[\leadsto \frac{\color{blue}{\left|d\right|}}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
      18. lower-unsound-sqrt.f6469.9

        \[\leadsto \frac{\left|d\right|}{\color{blue}{\sqrt{h \cdot \ell}}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
    5. Applied rewrites69.9%

      \[\leadsto \color{blue}{\frac{\left|d\right|}{\sqrt{h \cdot \ell}}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
    6. Step-by-step derivation
      1. lift-pow.f64N/A

        \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \color{blue}{{\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}}\right) \cdot \frac{h}{\ell}\right) \]
      2. unpow2N/A

        \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \color{blue}{\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{M \cdot D}{2 \cdot d}\right)}\right) \cdot \frac{h}{\ell}\right) \]
      3. lift-/.f64N/A

        \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\color{blue}{\frac{M \cdot D}{2 \cdot d}} \cdot \frac{M \cdot D}{2 \cdot d}\right)\right) \cdot \frac{h}{\ell}\right) \]
      4. frac-2negN/A

        \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\color{blue}{\frac{\mathsf{neg}\left(M \cdot D\right)}{\mathsf{neg}\left(2 \cdot d\right)}} \cdot \frac{M \cdot D}{2 \cdot d}\right)\right) \cdot \frac{h}{\ell}\right) \]
      5. distribute-frac-negN/A

        \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\color{blue}{\left(\mathsf{neg}\left(\frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right)} \cdot \frac{M \cdot D}{2 \cdot d}\right)\right) \cdot \frac{h}{\ell}\right) \]
      6. lift-/.f64N/A

        \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\left(\mathsf{neg}\left(\frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \color{blue}{\frac{M \cdot D}{2 \cdot d}}\right)\right) \cdot \frac{h}{\ell}\right) \]
      7. frac-2negN/A

        \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\left(\mathsf{neg}\left(\frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \color{blue}{\frac{\mathsf{neg}\left(M \cdot D\right)}{\mathsf{neg}\left(2 \cdot d\right)}}\right)\right) \cdot \frac{h}{\ell}\right) \]
      8. distribute-frac-negN/A

        \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\left(\mathsf{neg}\left(\frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \color{blue}{\left(\mathsf{neg}\left(\frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
      9. sqr-negN/A

        \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \color{blue}{\left(\frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)} \cdot \frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)}\right) \cdot \frac{h}{\ell}\right) \]
      10. lower-*.f64N/A

        \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \color{blue}{\left(\frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)} \cdot \frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)}\right) \cdot \frac{h}{\ell}\right) \]
      11. lower-/.f64N/A

        \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\color{blue}{\frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}} \cdot \frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
      12. lift-*.f64N/A

        \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{\color{blue}{M \cdot D}}{\mathsf{neg}\left(2 \cdot d\right)} \cdot \frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
      13. *-commutativeN/A

        \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{\color{blue}{D \cdot M}}{\mathsf{neg}\left(2 \cdot d\right)} \cdot \frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
      14. lift-*.f64N/A

        \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{\color{blue}{D \cdot M}}{\mathsf{neg}\left(2 \cdot d\right)} \cdot \frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
      15. lift-*.f64N/A

        \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{\mathsf{neg}\left(\color{blue}{2 \cdot d}\right)} \cdot \frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
      16. distribute-lft-neg-inN/A

        \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{\color{blue}{\left(\mathsf{neg}\left(2\right)\right) \cdot d}} \cdot \frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
      17. lower-*.f64N/A

        \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{\color{blue}{\left(\mathsf{neg}\left(2\right)\right) \cdot d}} \cdot \frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
      18. metadata-evalN/A

        \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{\color{blue}{-2} \cdot d} \cdot \frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
      19. lower-/.f64N/A

        \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{-2 \cdot d} \cdot \color{blue}{\frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}}\right)\right) \cdot \frac{h}{\ell}\right) \]
      20. lift-*.f64N/A

        \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{-2 \cdot d} \cdot \frac{\color{blue}{M \cdot D}}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
      21. *-commutativeN/A

        \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{-2 \cdot d} \cdot \frac{\color{blue}{D \cdot M}}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
      22. lift-*.f64N/A

        \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{-2 \cdot d} \cdot \frac{\color{blue}{D \cdot M}}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
      23. lift-*.f64N/A

        \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{-2 \cdot d} \cdot \frac{D \cdot M}{\mathsf{neg}\left(\color{blue}{2 \cdot d}\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
      24. distribute-lft-neg-inN/A

        \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{-2 \cdot d} \cdot \frac{D \cdot M}{\color{blue}{\left(\mathsf{neg}\left(2\right)\right) \cdot d}}\right)\right) \cdot \frac{h}{\ell}\right) \]
      25. lower-*.f64N/A

        \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{-2 \cdot d} \cdot \frac{D \cdot M}{\color{blue}{\left(\mathsf{neg}\left(2\right)\right) \cdot d}}\right)\right) \cdot \frac{h}{\ell}\right) \]
      26. metadata-eval69.9

        \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{-2 \cdot d} \cdot \frac{D \cdot M}{\color{blue}{-2} \cdot d}\right)\right) \cdot \frac{h}{\ell}\right) \]
    7. Applied rewrites69.9%

      \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \color{blue}{\left(\frac{D \cdot M}{-2 \cdot d} \cdot \frac{D \cdot M}{-2 \cdot d}\right)}\right) \cdot \frac{h}{\ell}\right) \]
    8. Applied rewrites63.4%

      \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \color{blue}{\mathsf{fma}\left(\left(\left(\left(M \cdot D\right) \cdot \left(\frac{D}{d \cdot d} \cdot M\right)\right) \cdot -0.125\right) \cdot h, \frac{1}{\ell}, 1\right)} \]
  3. Recombined 2 regimes into one program.
  4. Add Preprocessing

Alternative 3: 78.4% accurate, 0.7× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;\left({\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)} \cdot {\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \leq 5 \cdot 10^{+249}:\\ \;\;\;\;\left(\sqrt{\frac{d}{\ell}} \cdot \sqrt{\frac{d}{h}}\right) \cdot \left(1 - \left(\frac{\left(\left(\frac{D}{d} \cdot M\right) \cdot M\right) \cdot D}{d} \cdot 0.125\right) \cdot \frac{h}{\ell}\right)\\ \mathbf{else}:\\ \;\;\;\;\frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \mathsf{fma}\left(\left(\left(\left(M \cdot D\right) \cdot \left(\frac{D}{d \cdot d} \cdot M\right)\right) \cdot -0.125\right) \cdot h, \frac{1}{\ell}, 1\right)\\ \end{array} \end{array} \]
(FPCore (d h l M D)
 :precision binary64
 (if (<=
      (*
       (* (pow (/ d h) (/ 1.0 2.0)) (pow (/ d l) (/ 1.0 2.0)))
       (- 1.0 (* (* (/ 1.0 2.0) (pow (/ (* M D) (* 2.0 d)) 2.0)) (/ h l))))
      5e+249)
   (*
    (* (sqrt (/ d l)) (sqrt (/ d h)))
    (- 1.0 (* (* (/ (* (* (* (/ D d) M) M) D) d) 0.125) (/ h l))))
   (*
    (/ (fabs d) (sqrt (* h l)))
    (fma (* (* (* (* M D) (* (/ D (* d d)) M)) -0.125) h) (/ 1.0 l) 1.0))))
double code(double d, double h, double l, double M, double D) {
	double tmp;
	if (((pow((d / h), (1.0 / 2.0)) * pow((d / l), (1.0 / 2.0))) * (1.0 - (((1.0 / 2.0) * pow(((M * D) / (2.0 * d)), 2.0)) * (h / l)))) <= 5e+249) {
		tmp = (sqrt((d / l)) * sqrt((d / h))) * (1.0 - (((((((D / d) * M) * M) * D) / d) * 0.125) * (h / l)));
	} else {
		tmp = (fabs(d) / sqrt((h * l))) * fma(((((M * D) * ((D / (d * d)) * M)) * -0.125) * h), (1.0 / l), 1.0);
	}
	return tmp;
}
function code(d, h, l, M, D)
	tmp = 0.0
	if (Float64(Float64((Float64(d / h) ^ Float64(1.0 / 2.0)) * (Float64(d / l) ^ Float64(1.0 / 2.0))) * Float64(1.0 - Float64(Float64(Float64(1.0 / 2.0) * (Float64(Float64(M * D) / Float64(2.0 * d)) ^ 2.0)) * Float64(h / l)))) <= 5e+249)
		tmp = Float64(Float64(sqrt(Float64(d / l)) * sqrt(Float64(d / h))) * Float64(1.0 - Float64(Float64(Float64(Float64(Float64(Float64(Float64(D / d) * M) * M) * D) / d) * 0.125) * Float64(h / l))));
	else
		tmp = Float64(Float64(abs(d) / sqrt(Float64(h * l))) * fma(Float64(Float64(Float64(Float64(M * D) * Float64(Float64(D / Float64(d * d)) * M)) * -0.125) * h), Float64(1.0 / l), 1.0));
	end
	return tmp
end
code[d_, h_, l_, M_, D_] := If[LessEqual[N[(N[(N[Power[N[(d / h), $MachinePrecision], N[(1.0 / 2.0), $MachinePrecision]], $MachinePrecision] * N[Power[N[(d / l), $MachinePrecision], N[(1.0 / 2.0), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] * N[(1.0 - N[(N[(N[(1.0 / 2.0), $MachinePrecision] * N[Power[N[(N[(M * D), $MachinePrecision] / N[(2.0 * d), $MachinePrecision]), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision] * N[(h / l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 5e+249], N[(N[(N[Sqrt[N[(d / l), $MachinePrecision]], $MachinePrecision] * N[Sqrt[N[(d / h), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] * N[(1.0 - N[(N[(N[(N[(N[(N[(N[(D / d), $MachinePrecision] * M), $MachinePrecision] * M), $MachinePrecision] * D), $MachinePrecision] / d), $MachinePrecision] * 0.125), $MachinePrecision] * N[(h / l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[Abs[d], $MachinePrecision] / N[Sqrt[N[(h * l), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] * N[(N[(N[(N[(N[(M * D), $MachinePrecision] * N[(N[(D / N[(d * d), $MachinePrecision]), $MachinePrecision] * M), $MachinePrecision]), $MachinePrecision] * -0.125), $MachinePrecision] * h), $MachinePrecision] * N[(1.0 / l), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;\left({\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)} \cdot {\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \leq 5 \cdot 10^{+249}:\\
\;\;\;\;\left(\sqrt{\frac{d}{\ell}} \cdot \sqrt{\frac{d}{h}}\right) \cdot \left(1 - \left(\frac{\left(\left(\frac{D}{d} \cdot M\right) \cdot M\right) \cdot D}{d} \cdot 0.125\right) \cdot \frac{h}{\ell}\right)\\

\mathbf{else}:\\
\;\;\;\;\frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \mathsf{fma}\left(\left(\left(\left(M \cdot D\right) \cdot \left(\frac{D}{d \cdot d} \cdot M\right)\right) \cdot -0.125\right) \cdot h, \frac{1}{\ell}, 1\right)\\


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if (*.f64 (*.f64 (pow.f64 (/.f64 d h) (/.f64 #s(literal 1 binary64) #s(literal 2 binary64))) (pow.f64 (/.f64 d l) (/.f64 #s(literal 1 binary64) #s(literal 2 binary64)))) (-.f64 #s(literal 1 binary64) (*.f64 (*.f64 (/.f64 #s(literal 1 binary64) #s(literal 2 binary64)) (pow.f64 (/.f64 (*.f64 M D) (*.f64 #s(literal 2 binary64) d)) #s(literal 2 binary64))) (/.f64 h l)))) < 4.9999999999999996e249

    1. Initial program 66.7%

      \[\left({\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)} \cdot {\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
    2. Step-by-step derivation
      1. lift-*.f64N/A

        \[\leadsto \color{blue}{\left({\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)} \cdot {\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)}\right)} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
      2. *-commutativeN/A

        \[\leadsto \color{blue}{\left({\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right)} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
      3. lower-*.f6466.7

        \[\leadsto \color{blue}{\left({\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right)} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
      4. lift-pow.f64N/A

        \[\leadsto \left(\color{blue}{{\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)}} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
      5. lift-/.f64N/A

        \[\leadsto \left({\left(\frac{d}{\ell}\right)}^{\color{blue}{\left(\frac{1}{2}\right)}} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
      6. metadata-evalN/A

        \[\leadsto \left({\left(\frac{d}{\ell}\right)}^{\color{blue}{\frac{1}{2}}} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
      7. unpow1/2N/A

        \[\leadsto \left(\color{blue}{\sqrt{\frac{d}{\ell}}} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
      8. lower-sqrt.f6466.7

        \[\leadsto \left(\color{blue}{\sqrt{\frac{d}{\ell}}} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
      9. lift-pow.f64N/A

        \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot \color{blue}{{\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
      10. lift-/.f64N/A

        \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot {\left(\frac{d}{h}\right)}^{\color{blue}{\left(\frac{1}{2}\right)}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
      11. metadata-evalN/A

        \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot {\left(\frac{d}{h}\right)}^{\color{blue}{\frac{1}{2}}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
      12. unpow1/2N/A

        \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot \color{blue}{\sqrt{\frac{d}{h}}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
      13. lower-sqrt.f6466.7

        \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot \color{blue}{\sqrt{\frac{d}{h}}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
    3. Applied rewrites66.7%

      \[\leadsto \color{blue}{\left(\sqrt{\frac{d}{\ell}} \cdot \sqrt{\frac{d}{h}}\right)} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
    4. Step-by-step derivation
      1. lift-pow.f64N/A

        \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot \sqrt{\frac{d}{h}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot \color{blue}{{\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}}\right) \cdot \frac{h}{\ell}\right) \]
      2. unpow2N/A

        \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot \sqrt{\frac{d}{h}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot \color{blue}{\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{M \cdot D}{2 \cdot d}\right)}\right) \cdot \frac{h}{\ell}\right) \]
      3. lift-/.f64N/A

        \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot \sqrt{\frac{d}{h}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{M \cdot D}{2 \cdot d} \cdot \color{blue}{\frac{M \cdot D}{2 \cdot d}}\right)\right) \cdot \frac{h}{\ell}\right) \]
      4. lift-*.f64N/A

        \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot \sqrt{\frac{d}{h}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{\color{blue}{M \cdot D}}{2 \cdot d}\right)\right) \cdot \frac{h}{\ell}\right) \]
      5. lift-*.f64N/A

        \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot \sqrt{\frac{d}{h}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{M \cdot D}{\color{blue}{2 \cdot d}}\right)\right) \cdot \frac{h}{\ell}\right) \]
      6. lift-*.f64N/A

        \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot \sqrt{\frac{d}{h}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{\color{blue}{M \cdot D}}{2 \cdot d}\right)\right) \cdot \frac{h}{\ell}\right) \]
      7. associate-/r*N/A

        \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot \sqrt{\frac{d}{h}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{M \cdot D}{2 \cdot d} \cdot \color{blue}{\frac{\frac{M \cdot D}{2}}{d}}\right)\right) \cdot \frac{h}{\ell}\right) \]
      8. associate-*r/N/A

        \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot \sqrt{\frac{d}{h}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot \color{blue}{\frac{\frac{M \cdot D}{2 \cdot d} \cdot \frac{M \cdot D}{2}}{d}}\right) \cdot \frac{h}{\ell}\right) \]
      9. lower-/.f64N/A

        \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot \sqrt{\frac{d}{h}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot \color{blue}{\frac{\frac{M \cdot D}{2 \cdot d} \cdot \frac{M \cdot D}{2}}{d}}\right) \cdot \frac{h}{\ell}\right) \]
    5. Applied rewrites65.4%

      \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot \sqrt{\frac{d}{h}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot \color{blue}{\frac{\frac{\left(M \cdot \frac{D}{d}\right) \cdot \left(D \cdot M\right)}{4}}{d}}\right) \cdot \frac{h}{\ell}\right) \]
    6. Step-by-step derivation
      1. Applied rewrites64.5%

        \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot \sqrt{\frac{d}{h}}\right) \cdot \left(1 - \color{blue}{\left(\frac{\left(\left(\frac{D}{d} \cdot M\right) \cdot M\right) \cdot D}{d} \cdot 0.125\right) \cdot \frac{h}{\ell}}\right) \]

      if 4.9999999999999996e249 < (*.f64 (*.f64 (pow.f64 (/.f64 d h) (/.f64 #s(literal 1 binary64) #s(literal 2 binary64))) (pow.f64 (/.f64 d l) (/.f64 #s(literal 1 binary64) #s(literal 2 binary64)))) (-.f64 #s(literal 1 binary64) (*.f64 (*.f64 (/.f64 #s(literal 1 binary64) #s(literal 2 binary64)) (pow.f64 (/.f64 (*.f64 M D) (*.f64 #s(literal 2 binary64) d)) #s(literal 2 binary64))) (/.f64 h l))))

      1. Initial program 66.7%

        \[\left({\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)} \cdot {\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
      2. Step-by-step derivation
        1. lift-*.f64N/A

          \[\leadsto \color{blue}{\left({\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)} \cdot {\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)}\right)} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
        2. *-commutativeN/A

          \[\leadsto \color{blue}{\left({\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right)} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
        3. lower-*.f6466.7

          \[\leadsto \color{blue}{\left({\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right)} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
        4. lift-pow.f64N/A

          \[\leadsto \left(\color{blue}{{\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)}} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
        5. lift-/.f64N/A

          \[\leadsto \left({\left(\frac{d}{\ell}\right)}^{\color{blue}{\left(\frac{1}{2}\right)}} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
        6. metadata-evalN/A

          \[\leadsto \left({\left(\frac{d}{\ell}\right)}^{\color{blue}{\frac{1}{2}}} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
        7. unpow1/2N/A

          \[\leadsto \left(\color{blue}{\sqrt{\frac{d}{\ell}}} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
        8. lower-sqrt.f6466.7

          \[\leadsto \left(\color{blue}{\sqrt{\frac{d}{\ell}}} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
        9. lift-pow.f64N/A

          \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot \color{blue}{{\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
        10. lift-/.f64N/A

          \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot {\left(\frac{d}{h}\right)}^{\color{blue}{\left(\frac{1}{2}\right)}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
        11. metadata-evalN/A

          \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot {\left(\frac{d}{h}\right)}^{\color{blue}{\frac{1}{2}}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
        12. unpow1/2N/A

          \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot \color{blue}{\sqrt{\frac{d}{h}}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
        13. lower-sqrt.f6466.7

          \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot \color{blue}{\sqrt{\frac{d}{h}}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
      3. Applied rewrites66.7%

        \[\leadsto \color{blue}{\left(\sqrt{\frac{d}{\ell}} \cdot \sqrt{\frac{d}{h}}\right)} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
      4. Step-by-step derivation
        1. lift-*.f64N/A

          \[\leadsto \color{blue}{\left(\sqrt{\frac{d}{\ell}} \cdot \sqrt{\frac{d}{h}}\right)} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
        2. lift-sqrt.f64N/A

          \[\leadsto \left(\color{blue}{\sqrt{\frac{d}{\ell}}} \cdot \sqrt{\frac{d}{h}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
        3. lift-sqrt.f64N/A

          \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot \color{blue}{\sqrt{\frac{d}{h}}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
        4. sqrt-unprodN/A

          \[\leadsto \color{blue}{\sqrt{\frac{d}{\ell} \cdot \frac{d}{h}}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
        5. lift-/.f64N/A

          \[\leadsto \sqrt{\color{blue}{\frac{d}{\ell}} \cdot \frac{d}{h}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
        6. lift-/.f64N/A

          \[\leadsto \sqrt{\frac{d}{\ell} \cdot \color{blue}{\frac{d}{h}}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
        7. frac-timesN/A

          \[\leadsto \sqrt{\color{blue}{\frac{d \cdot d}{\ell \cdot h}}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
        8. *-commutativeN/A

          \[\leadsto \sqrt{\frac{d \cdot d}{\color{blue}{h \cdot \ell}}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
        9. lift-*.f64N/A

          \[\leadsto \sqrt{\frac{d \cdot d}{\color{blue}{h \cdot \ell}}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
        10. lift-*.f64N/A

          \[\leadsto \sqrt{\frac{\color{blue}{d \cdot d}}{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
        11. sqrt-divN/A

          \[\leadsto \color{blue}{\frac{\sqrt{d \cdot d}}{\sqrt{h \cdot \ell}}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
        12. lower-unsound-sqrt.f32N/A

          \[\leadsto \frac{\color{blue}{\sqrt{d \cdot d}}}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
        13. lower-sqrt.f32N/A

          \[\leadsto \frac{\color{blue}{\sqrt{d \cdot d}}}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
        14. lift-*.f64N/A

          \[\leadsto \frac{\sqrt{\color{blue}{d \cdot d}}}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
        15. rem-sqrt-square-revN/A

          \[\leadsto \frac{\color{blue}{\left|d\right|}}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
        16. lower-unsound-/.f64N/A

          \[\leadsto \color{blue}{\frac{\left|d\right|}{\sqrt{h \cdot \ell}}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
        17. lower-fabs.f64N/A

          \[\leadsto \frac{\color{blue}{\left|d\right|}}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
        18. lower-unsound-sqrt.f6469.9

          \[\leadsto \frac{\left|d\right|}{\color{blue}{\sqrt{h \cdot \ell}}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
      5. Applied rewrites69.9%

        \[\leadsto \color{blue}{\frac{\left|d\right|}{\sqrt{h \cdot \ell}}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
      6. Step-by-step derivation
        1. lift-pow.f64N/A

          \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \color{blue}{{\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}}\right) \cdot \frac{h}{\ell}\right) \]
        2. unpow2N/A

          \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \color{blue}{\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{M \cdot D}{2 \cdot d}\right)}\right) \cdot \frac{h}{\ell}\right) \]
        3. lift-/.f64N/A

          \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\color{blue}{\frac{M \cdot D}{2 \cdot d}} \cdot \frac{M \cdot D}{2 \cdot d}\right)\right) \cdot \frac{h}{\ell}\right) \]
        4. frac-2negN/A

          \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\color{blue}{\frac{\mathsf{neg}\left(M \cdot D\right)}{\mathsf{neg}\left(2 \cdot d\right)}} \cdot \frac{M \cdot D}{2 \cdot d}\right)\right) \cdot \frac{h}{\ell}\right) \]
        5. distribute-frac-negN/A

          \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\color{blue}{\left(\mathsf{neg}\left(\frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right)} \cdot \frac{M \cdot D}{2 \cdot d}\right)\right) \cdot \frac{h}{\ell}\right) \]
        6. lift-/.f64N/A

          \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\left(\mathsf{neg}\left(\frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \color{blue}{\frac{M \cdot D}{2 \cdot d}}\right)\right) \cdot \frac{h}{\ell}\right) \]
        7. frac-2negN/A

          \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\left(\mathsf{neg}\left(\frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \color{blue}{\frac{\mathsf{neg}\left(M \cdot D\right)}{\mathsf{neg}\left(2 \cdot d\right)}}\right)\right) \cdot \frac{h}{\ell}\right) \]
        8. distribute-frac-negN/A

          \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\left(\mathsf{neg}\left(\frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \color{blue}{\left(\mathsf{neg}\left(\frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
        9. sqr-negN/A

          \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \color{blue}{\left(\frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)} \cdot \frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)}\right) \cdot \frac{h}{\ell}\right) \]
        10. lower-*.f64N/A

          \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \color{blue}{\left(\frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)} \cdot \frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)}\right) \cdot \frac{h}{\ell}\right) \]
        11. lower-/.f64N/A

          \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\color{blue}{\frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}} \cdot \frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
        12. lift-*.f64N/A

          \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{\color{blue}{M \cdot D}}{\mathsf{neg}\left(2 \cdot d\right)} \cdot \frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
        13. *-commutativeN/A

          \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{\color{blue}{D \cdot M}}{\mathsf{neg}\left(2 \cdot d\right)} \cdot \frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
        14. lift-*.f64N/A

          \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{\color{blue}{D \cdot M}}{\mathsf{neg}\left(2 \cdot d\right)} \cdot \frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
        15. lift-*.f64N/A

          \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{\mathsf{neg}\left(\color{blue}{2 \cdot d}\right)} \cdot \frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
        16. distribute-lft-neg-inN/A

          \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{\color{blue}{\left(\mathsf{neg}\left(2\right)\right) \cdot d}} \cdot \frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
        17. lower-*.f64N/A

          \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{\color{blue}{\left(\mathsf{neg}\left(2\right)\right) \cdot d}} \cdot \frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
        18. metadata-evalN/A

          \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{\color{blue}{-2} \cdot d} \cdot \frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
        19. lower-/.f64N/A

          \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{-2 \cdot d} \cdot \color{blue}{\frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}}\right)\right) \cdot \frac{h}{\ell}\right) \]
        20. lift-*.f64N/A

          \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{-2 \cdot d} \cdot \frac{\color{blue}{M \cdot D}}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
        21. *-commutativeN/A

          \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{-2 \cdot d} \cdot \frac{\color{blue}{D \cdot M}}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
        22. lift-*.f64N/A

          \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{-2 \cdot d} \cdot \frac{\color{blue}{D \cdot M}}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
        23. lift-*.f64N/A

          \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{-2 \cdot d} \cdot \frac{D \cdot M}{\mathsf{neg}\left(\color{blue}{2 \cdot d}\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
        24. distribute-lft-neg-inN/A

          \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{-2 \cdot d} \cdot \frac{D \cdot M}{\color{blue}{\left(\mathsf{neg}\left(2\right)\right) \cdot d}}\right)\right) \cdot \frac{h}{\ell}\right) \]
        25. lower-*.f64N/A

          \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{-2 \cdot d} \cdot \frac{D \cdot M}{\color{blue}{\left(\mathsf{neg}\left(2\right)\right) \cdot d}}\right)\right) \cdot \frac{h}{\ell}\right) \]
        26. metadata-eval69.9

          \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{-2 \cdot d} \cdot \frac{D \cdot M}{\color{blue}{-2} \cdot d}\right)\right) \cdot \frac{h}{\ell}\right) \]
      7. Applied rewrites69.9%

        \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \color{blue}{\left(\frac{D \cdot M}{-2 \cdot d} \cdot \frac{D \cdot M}{-2 \cdot d}\right)}\right) \cdot \frac{h}{\ell}\right) \]
      8. Applied rewrites63.4%

        \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \color{blue}{\mathsf{fma}\left(\left(\left(\left(M \cdot D\right) \cdot \left(\frac{D}{d \cdot d} \cdot M\right)\right) \cdot -0.125\right) \cdot h, \frac{1}{\ell}, 1\right)} \]
    7. Recombined 2 regimes into one program.
    8. Add Preprocessing

    Alternative 4: 78.2% accurate, 0.4× speedup?

    \[\begin{array}{l} \\ \begin{array}{l} t_0 := \left({\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)} \cdot {\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right)\\ \mathbf{if}\;t\_0 \leq 5 \cdot 10^{-267}:\\ \;\;\;\;-\mathsf{fma}\left(\frac{\left(\left(\frac{D}{d} \cdot M\right) \cdot M\right) \cdot D}{d} \cdot 0.125, \frac{h}{\ell}, -1\right) \cdot \frac{\left|d\right|}{\sqrt{\ell \cdot h}}\\ \mathbf{elif}\;t\_0 \leq 5 \cdot 10^{+249}:\\ \;\;\;\;\sqrt{\frac{d}{h}} \cdot \sqrt{\frac{d}{\ell}}\\ \mathbf{else}:\\ \;\;\;\;\frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \mathsf{fma}\left(\left(\left(\left(M \cdot D\right) \cdot \left(\frac{D}{d \cdot d} \cdot M\right)\right) \cdot -0.125\right) \cdot h, \frac{1}{\ell}, 1\right)\\ \end{array} \end{array} \]
    (FPCore (d h l M D)
     :precision binary64
     (let* ((t_0
             (*
              (* (pow (/ d h) (/ 1.0 2.0)) (pow (/ d l) (/ 1.0 2.0)))
              (-
               1.0
               (* (* (/ 1.0 2.0) (pow (/ (* M D) (* 2.0 d)) 2.0)) (/ h l))))))
       (if (<= t_0 5e-267)
         (-
          (*
           (fma (* (/ (* (* (* (/ D d) M) M) D) d) 0.125) (/ h l) -1.0)
           (/ (fabs d) (sqrt (* l h)))))
         (if (<= t_0 5e+249)
           (* (sqrt (/ d h)) (sqrt (/ d l)))
           (*
            (/ (fabs d) (sqrt (* h l)))
            (fma
             (* (* (* (* M D) (* (/ D (* d d)) M)) -0.125) h)
             (/ 1.0 l)
             1.0))))))
    double code(double d, double h, double l, double M, double D) {
    	double t_0 = (pow((d / h), (1.0 / 2.0)) * pow((d / l), (1.0 / 2.0))) * (1.0 - (((1.0 / 2.0) * pow(((M * D) / (2.0 * d)), 2.0)) * (h / l)));
    	double tmp;
    	if (t_0 <= 5e-267) {
    		tmp = -(fma(((((((D / d) * M) * M) * D) / d) * 0.125), (h / l), -1.0) * (fabs(d) / sqrt((l * h))));
    	} else if (t_0 <= 5e+249) {
    		tmp = sqrt((d / h)) * sqrt((d / l));
    	} else {
    		tmp = (fabs(d) / sqrt((h * l))) * fma(((((M * D) * ((D / (d * d)) * M)) * -0.125) * h), (1.0 / l), 1.0);
    	}
    	return tmp;
    }
    
    function code(d, h, l, M, D)
    	t_0 = Float64(Float64((Float64(d / h) ^ Float64(1.0 / 2.0)) * (Float64(d / l) ^ Float64(1.0 / 2.0))) * Float64(1.0 - Float64(Float64(Float64(1.0 / 2.0) * (Float64(Float64(M * D) / Float64(2.0 * d)) ^ 2.0)) * Float64(h / l))))
    	tmp = 0.0
    	if (t_0 <= 5e-267)
    		tmp = Float64(-Float64(fma(Float64(Float64(Float64(Float64(Float64(Float64(D / d) * M) * M) * D) / d) * 0.125), Float64(h / l), -1.0) * Float64(abs(d) / sqrt(Float64(l * h)))));
    	elseif (t_0 <= 5e+249)
    		tmp = Float64(sqrt(Float64(d / h)) * sqrt(Float64(d / l)));
    	else
    		tmp = Float64(Float64(abs(d) / sqrt(Float64(h * l))) * fma(Float64(Float64(Float64(Float64(M * D) * Float64(Float64(D / Float64(d * d)) * M)) * -0.125) * h), Float64(1.0 / l), 1.0));
    	end
    	return tmp
    end
    
    code[d_, h_, l_, M_, D_] := Block[{t$95$0 = N[(N[(N[Power[N[(d / h), $MachinePrecision], N[(1.0 / 2.0), $MachinePrecision]], $MachinePrecision] * N[Power[N[(d / l), $MachinePrecision], N[(1.0 / 2.0), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] * N[(1.0 - N[(N[(N[(1.0 / 2.0), $MachinePrecision] * N[Power[N[(N[(M * D), $MachinePrecision] / N[(2.0 * d), $MachinePrecision]), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision] * N[(h / l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$0, 5e-267], (-N[(N[(N[(N[(N[(N[(N[(N[(D / d), $MachinePrecision] * M), $MachinePrecision] * M), $MachinePrecision] * D), $MachinePrecision] / d), $MachinePrecision] * 0.125), $MachinePrecision] * N[(h / l), $MachinePrecision] + -1.0), $MachinePrecision] * N[(N[Abs[d], $MachinePrecision] / N[Sqrt[N[(l * h), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), If[LessEqual[t$95$0, 5e+249], N[(N[Sqrt[N[(d / h), $MachinePrecision]], $MachinePrecision] * N[Sqrt[N[(d / l), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], N[(N[(N[Abs[d], $MachinePrecision] / N[Sqrt[N[(h * l), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] * N[(N[(N[(N[(N[(M * D), $MachinePrecision] * N[(N[(D / N[(d * d), $MachinePrecision]), $MachinePrecision] * M), $MachinePrecision]), $MachinePrecision] * -0.125), $MachinePrecision] * h), $MachinePrecision] * N[(1.0 / l), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]]]]
    
    \begin{array}{l}
    
    \\
    \begin{array}{l}
    t_0 := \left({\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)} \cdot {\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right)\\
    \mathbf{if}\;t\_0 \leq 5 \cdot 10^{-267}:\\
    \;\;\;\;-\mathsf{fma}\left(\frac{\left(\left(\frac{D}{d} \cdot M\right) \cdot M\right) \cdot D}{d} \cdot 0.125, \frac{h}{\ell}, -1\right) \cdot \frac{\left|d\right|}{\sqrt{\ell \cdot h}}\\
    
    \mathbf{elif}\;t\_0 \leq 5 \cdot 10^{+249}:\\
    \;\;\;\;\sqrt{\frac{d}{h}} \cdot \sqrt{\frac{d}{\ell}}\\
    
    \mathbf{else}:\\
    \;\;\;\;\frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \mathsf{fma}\left(\left(\left(\left(M \cdot D\right) \cdot \left(\frac{D}{d \cdot d} \cdot M\right)\right) \cdot -0.125\right) \cdot h, \frac{1}{\ell}, 1\right)\\
    
    
    \end{array}
    \end{array}
    
    Derivation
    1. Split input into 3 regimes
    2. if (*.f64 (*.f64 (pow.f64 (/.f64 d h) (/.f64 #s(literal 1 binary64) #s(literal 2 binary64))) (pow.f64 (/.f64 d l) (/.f64 #s(literal 1 binary64) #s(literal 2 binary64)))) (-.f64 #s(literal 1 binary64) (*.f64 (*.f64 (/.f64 #s(literal 1 binary64) #s(literal 2 binary64)) (pow.f64 (/.f64 (*.f64 M D) (*.f64 #s(literal 2 binary64) d)) #s(literal 2 binary64))) (/.f64 h l)))) < 4.9999999999999999e-267

      1. Initial program 66.7%

        \[\left({\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)} \cdot {\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
      2. Step-by-step derivation
        1. lift-*.f64N/A

          \[\leadsto \color{blue}{\left({\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)} \cdot {\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)}\right)} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
        2. *-commutativeN/A

          \[\leadsto \color{blue}{\left({\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right)} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
        3. lower-*.f6466.7

          \[\leadsto \color{blue}{\left({\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right)} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
        4. lift-pow.f64N/A

          \[\leadsto \left(\color{blue}{{\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)}} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
        5. lift-/.f64N/A

          \[\leadsto \left({\left(\frac{d}{\ell}\right)}^{\color{blue}{\left(\frac{1}{2}\right)}} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
        6. metadata-evalN/A

          \[\leadsto \left({\left(\frac{d}{\ell}\right)}^{\color{blue}{\frac{1}{2}}} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
        7. unpow1/2N/A

          \[\leadsto \left(\color{blue}{\sqrt{\frac{d}{\ell}}} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
        8. lower-sqrt.f6466.7

          \[\leadsto \left(\color{blue}{\sqrt{\frac{d}{\ell}}} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
        9. lift-pow.f64N/A

          \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot \color{blue}{{\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
        10. lift-/.f64N/A

          \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot {\left(\frac{d}{h}\right)}^{\color{blue}{\left(\frac{1}{2}\right)}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
        11. metadata-evalN/A

          \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot {\left(\frac{d}{h}\right)}^{\color{blue}{\frac{1}{2}}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
        12. unpow1/2N/A

          \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot \color{blue}{\sqrt{\frac{d}{h}}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
        13. lower-sqrt.f6466.7

          \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot \color{blue}{\sqrt{\frac{d}{h}}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
      3. Applied rewrites66.7%

        \[\leadsto \color{blue}{\left(\sqrt{\frac{d}{\ell}} \cdot \sqrt{\frac{d}{h}}\right)} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
      4. Step-by-step derivation
        1. lift-pow.f64N/A

          \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot \sqrt{\frac{d}{h}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot \color{blue}{{\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}}\right) \cdot \frac{h}{\ell}\right) \]
        2. unpow2N/A

          \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot \sqrt{\frac{d}{h}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot \color{blue}{\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{M \cdot D}{2 \cdot d}\right)}\right) \cdot \frac{h}{\ell}\right) \]
        3. lift-/.f64N/A

          \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot \sqrt{\frac{d}{h}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{M \cdot D}{2 \cdot d} \cdot \color{blue}{\frac{M \cdot D}{2 \cdot d}}\right)\right) \cdot \frac{h}{\ell}\right) \]
        4. lift-*.f64N/A

          \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot \sqrt{\frac{d}{h}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{\color{blue}{M \cdot D}}{2 \cdot d}\right)\right) \cdot \frac{h}{\ell}\right) \]
        5. lift-*.f64N/A

          \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot \sqrt{\frac{d}{h}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{M \cdot D}{\color{blue}{2 \cdot d}}\right)\right) \cdot \frac{h}{\ell}\right) \]
        6. lift-*.f64N/A

          \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot \sqrt{\frac{d}{h}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{\color{blue}{M \cdot D}}{2 \cdot d}\right)\right) \cdot \frac{h}{\ell}\right) \]
        7. associate-/r*N/A

          \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot \sqrt{\frac{d}{h}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{M \cdot D}{2 \cdot d} \cdot \color{blue}{\frac{\frac{M \cdot D}{2}}{d}}\right)\right) \cdot \frac{h}{\ell}\right) \]
        8. associate-*r/N/A

          \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot \sqrt{\frac{d}{h}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot \color{blue}{\frac{\frac{M \cdot D}{2 \cdot d} \cdot \frac{M \cdot D}{2}}{d}}\right) \cdot \frac{h}{\ell}\right) \]
        9. lower-/.f64N/A

          \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot \sqrt{\frac{d}{h}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot \color{blue}{\frac{\frac{M \cdot D}{2 \cdot d} \cdot \frac{M \cdot D}{2}}{d}}\right) \cdot \frac{h}{\ell}\right) \]
      5. Applied rewrites65.4%

        \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot \sqrt{\frac{d}{h}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot \color{blue}{\frac{\frac{\left(M \cdot \frac{D}{d}\right) \cdot \left(D \cdot M\right)}{4}}{d}}\right) \cdot \frac{h}{\ell}\right) \]
      6. Applied rewrites67.6%

        \[\leadsto \color{blue}{-\mathsf{fma}\left(\frac{\left(\left(\frac{D}{d} \cdot M\right) \cdot M\right) \cdot D}{d} \cdot 0.125, \frac{h}{\ell}, -1\right) \cdot \frac{\left|d\right|}{\sqrt{\ell \cdot h}}} \]

      if 4.9999999999999999e-267 < (*.f64 (*.f64 (pow.f64 (/.f64 d h) (/.f64 #s(literal 1 binary64) #s(literal 2 binary64))) (pow.f64 (/.f64 d l) (/.f64 #s(literal 1 binary64) #s(literal 2 binary64)))) (-.f64 #s(literal 1 binary64) (*.f64 (*.f64 (/.f64 #s(literal 1 binary64) #s(literal 2 binary64)) (pow.f64 (/.f64 (*.f64 M D) (*.f64 #s(literal 2 binary64) d)) #s(literal 2 binary64))) (/.f64 h l)))) < 4.9999999999999996e249

      1. Initial program 66.7%

        \[\left({\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)} \cdot {\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
      2. Step-by-step derivation
        1. lift-*.f64N/A

          \[\leadsto \color{blue}{\left({\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)} \cdot {\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)}\right)} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
        2. *-commutativeN/A

          \[\leadsto \color{blue}{\left({\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right)} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
        3. lower-*.f6466.7

          \[\leadsto \color{blue}{\left({\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right)} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
        4. lift-pow.f64N/A

          \[\leadsto \left(\color{blue}{{\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)}} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
        5. lift-/.f64N/A

          \[\leadsto \left({\left(\frac{d}{\ell}\right)}^{\color{blue}{\left(\frac{1}{2}\right)}} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
        6. metadata-evalN/A

          \[\leadsto \left({\left(\frac{d}{\ell}\right)}^{\color{blue}{\frac{1}{2}}} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
        7. unpow1/2N/A

          \[\leadsto \left(\color{blue}{\sqrt{\frac{d}{\ell}}} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
        8. lower-sqrt.f6466.7

          \[\leadsto \left(\color{blue}{\sqrt{\frac{d}{\ell}}} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
        9. lift-pow.f64N/A

          \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot \color{blue}{{\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
        10. lift-/.f64N/A

          \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot {\left(\frac{d}{h}\right)}^{\color{blue}{\left(\frac{1}{2}\right)}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
        11. metadata-evalN/A

          \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot {\left(\frac{d}{h}\right)}^{\color{blue}{\frac{1}{2}}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
        12. unpow1/2N/A

          \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot \color{blue}{\sqrt{\frac{d}{h}}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
        13. lower-sqrt.f6466.7

          \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot \color{blue}{\sqrt{\frac{d}{h}}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
      3. Applied rewrites66.7%

        \[\leadsto \color{blue}{\left(\sqrt{\frac{d}{\ell}} \cdot \sqrt{\frac{d}{h}}\right)} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
      4. Applied rewrites54.3%

        \[\leadsto \color{blue}{\left(\mathsf{fma}\left(\left(-0.125 \cdot \frac{\left(D \cdot M\right) \cdot D}{d \cdot d}\right) \cdot M, \frac{h}{\ell}, 1\right) \cdot \sqrt{\frac{d}{\ell}}\right) \cdot \sqrt{\frac{d}{h}}} \]
      5. Taylor expanded in l around inf

        \[\leadsto \color{blue}{\sqrt{\frac{d}{h}} \cdot \sqrt{\frac{d}{\ell}}} \]
      6. Step-by-step derivation
        1. lower-*.f64N/A

          \[\leadsto \sqrt{\frac{d}{h}} \cdot \color{blue}{\sqrt{\frac{d}{\ell}}} \]
        2. lower-sqrt.f64N/A

          \[\leadsto \sqrt{\frac{d}{h}} \cdot \sqrt{\color{blue}{\frac{d}{\ell}}} \]
        3. lower-/.f64N/A

          \[\leadsto \sqrt{\frac{d}{h}} \cdot \sqrt{\frac{\color{blue}{d}}{\ell}} \]
        4. lower-sqrt.f64N/A

          \[\leadsto \sqrt{\frac{d}{h}} \cdot \sqrt{\frac{d}{\ell}} \]
        5. lower-/.f6438.9

          \[\leadsto \sqrt{\frac{d}{h}} \cdot \sqrt{\frac{d}{\ell}} \]
      7. Applied rewrites38.9%

        \[\leadsto \color{blue}{\sqrt{\frac{d}{h}} \cdot \sqrt{\frac{d}{\ell}}} \]

      if 4.9999999999999996e249 < (*.f64 (*.f64 (pow.f64 (/.f64 d h) (/.f64 #s(literal 1 binary64) #s(literal 2 binary64))) (pow.f64 (/.f64 d l) (/.f64 #s(literal 1 binary64) #s(literal 2 binary64)))) (-.f64 #s(literal 1 binary64) (*.f64 (*.f64 (/.f64 #s(literal 1 binary64) #s(literal 2 binary64)) (pow.f64 (/.f64 (*.f64 M D) (*.f64 #s(literal 2 binary64) d)) #s(literal 2 binary64))) (/.f64 h l))))

      1. Initial program 66.7%

        \[\left({\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)} \cdot {\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
      2. Step-by-step derivation
        1. lift-*.f64N/A

          \[\leadsto \color{blue}{\left({\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)} \cdot {\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)}\right)} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
        2. *-commutativeN/A

          \[\leadsto \color{blue}{\left({\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right)} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
        3. lower-*.f6466.7

          \[\leadsto \color{blue}{\left({\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right)} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
        4. lift-pow.f64N/A

          \[\leadsto \left(\color{blue}{{\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)}} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
        5. lift-/.f64N/A

          \[\leadsto \left({\left(\frac{d}{\ell}\right)}^{\color{blue}{\left(\frac{1}{2}\right)}} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
        6. metadata-evalN/A

          \[\leadsto \left({\left(\frac{d}{\ell}\right)}^{\color{blue}{\frac{1}{2}}} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
        7. unpow1/2N/A

          \[\leadsto \left(\color{blue}{\sqrt{\frac{d}{\ell}}} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
        8. lower-sqrt.f6466.7

          \[\leadsto \left(\color{blue}{\sqrt{\frac{d}{\ell}}} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
        9. lift-pow.f64N/A

          \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot \color{blue}{{\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
        10. lift-/.f64N/A

          \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot {\left(\frac{d}{h}\right)}^{\color{blue}{\left(\frac{1}{2}\right)}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
        11. metadata-evalN/A

          \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot {\left(\frac{d}{h}\right)}^{\color{blue}{\frac{1}{2}}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
        12. unpow1/2N/A

          \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot \color{blue}{\sqrt{\frac{d}{h}}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
        13. lower-sqrt.f6466.7

          \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot \color{blue}{\sqrt{\frac{d}{h}}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
      3. Applied rewrites66.7%

        \[\leadsto \color{blue}{\left(\sqrt{\frac{d}{\ell}} \cdot \sqrt{\frac{d}{h}}\right)} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
      4. Step-by-step derivation
        1. lift-*.f64N/A

          \[\leadsto \color{blue}{\left(\sqrt{\frac{d}{\ell}} \cdot \sqrt{\frac{d}{h}}\right)} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
        2. lift-sqrt.f64N/A

          \[\leadsto \left(\color{blue}{\sqrt{\frac{d}{\ell}}} \cdot \sqrt{\frac{d}{h}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
        3. lift-sqrt.f64N/A

          \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot \color{blue}{\sqrt{\frac{d}{h}}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
        4. sqrt-unprodN/A

          \[\leadsto \color{blue}{\sqrt{\frac{d}{\ell} \cdot \frac{d}{h}}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
        5. lift-/.f64N/A

          \[\leadsto \sqrt{\color{blue}{\frac{d}{\ell}} \cdot \frac{d}{h}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
        6. lift-/.f64N/A

          \[\leadsto \sqrt{\frac{d}{\ell} \cdot \color{blue}{\frac{d}{h}}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
        7. frac-timesN/A

          \[\leadsto \sqrt{\color{blue}{\frac{d \cdot d}{\ell \cdot h}}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
        8. *-commutativeN/A

          \[\leadsto \sqrt{\frac{d \cdot d}{\color{blue}{h \cdot \ell}}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
        9. lift-*.f64N/A

          \[\leadsto \sqrt{\frac{d \cdot d}{\color{blue}{h \cdot \ell}}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
        10. lift-*.f64N/A

          \[\leadsto \sqrt{\frac{\color{blue}{d \cdot d}}{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
        11. sqrt-divN/A

          \[\leadsto \color{blue}{\frac{\sqrt{d \cdot d}}{\sqrt{h \cdot \ell}}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
        12. lower-unsound-sqrt.f32N/A

          \[\leadsto \frac{\color{blue}{\sqrt{d \cdot d}}}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
        13. lower-sqrt.f32N/A

          \[\leadsto \frac{\color{blue}{\sqrt{d \cdot d}}}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
        14. lift-*.f64N/A

          \[\leadsto \frac{\sqrt{\color{blue}{d \cdot d}}}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
        15. rem-sqrt-square-revN/A

          \[\leadsto \frac{\color{blue}{\left|d\right|}}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
        16. lower-unsound-/.f64N/A

          \[\leadsto \color{blue}{\frac{\left|d\right|}{\sqrt{h \cdot \ell}}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
        17. lower-fabs.f64N/A

          \[\leadsto \frac{\color{blue}{\left|d\right|}}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
        18. lower-unsound-sqrt.f6469.9

          \[\leadsto \frac{\left|d\right|}{\color{blue}{\sqrt{h \cdot \ell}}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
      5. Applied rewrites69.9%

        \[\leadsto \color{blue}{\frac{\left|d\right|}{\sqrt{h \cdot \ell}}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
      6. Step-by-step derivation
        1. lift-pow.f64N/A

          \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \color{blue}{{\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}}\right) \cdot \frac{h}{\ell}\right) \]
        2. unpow2N/A

          \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \color{blue}{\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{M \cdot D}{2 \cdot d}\right)}\right) \cdot \frac{h}{\ell}\right) \]
        3. lift-/.f64N/A

          \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\color{blue}{\frac{M \cdot D}{2 \cdot d}} \cdot \frac{M \cdot D}{2 \cdot d}\right)\right) \cdot \frac{h}{\ell}\right) \]
        4. frac-2negN/A

          \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\color{blue}{\frac{\mathsf{neg}\left(M \cdot D\right)}{\mathsf{neg}\left(2 \cdot d\right)}} \cdot \frac{M \cdot D}{2 \cdot d}\right)\right) \cdot \frac{h}{\ell}\right) \]
        5. distribute-frac-negN/A

          \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\color{blue}{\left(\mathsf{neg}\left(\frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right)} \cdot \frac{M \cdot D}{2 \cdot d}\right)\right) \cdot \frac{h}{\ell}\right) \]
        6. lift-/.f64N/A

          \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\left(\mathsf{neg}\left(\frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \color{blue}{\frac{M \cdot D}{2 \cdot d}}\right)\right) \cdot \frac{h}{\ell}\right) \]
        7. frac-2negN/A

          \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\left(\mathsf{neg}\left(\frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \color{blue}{\frac{\mathsf{neg}\left(M \cdot D\right)}{\mathsf{neg}\left(2 \cdot d\right)}}\right)\right) \cdot \frac{h}{\ell}\right) \]
        8. distribute-frac-negN/A

          \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\left(\mathsf{neg}\left(\frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \color{blue}{\left(\mathsf{neg}\left(\frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
        9. sqr-negN/A

          \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \color{blue}{\left(\frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)} \cdot \frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)}\right) \cdot \frac{h}{\ell}\right) \]
        10. lower-*.f64N/A

          \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \color{blue}{\left(\frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)} \cdot \frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)}\right) \cdot \frac{h}{\ell}\right) \]
        11. lower-/.f64N/A

          \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\color{blue}{\frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}} \cdot \frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
        12. lift-*.f64N/A

          \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{\color{blue}{M \cdot D}}{\mathsf{neg}\left(2 \cdot d\right)} \cdot \frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
        13. *-commutativeN/A

          \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{\color{blue}{D \cdot M}}{\mathsf{neg}\left(2 \cdot d\right)} \cdot \frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
        14. lift-*.f64N/A

          \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{\color{blue}{D \cdot M}}{\mathsf{neg}\left(2 \cdot d\right)} \cdot \frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
        15. lift-*.f64N/A

          \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{\mathsf{neg}\left(\color{blue}{2 \cdot d}\right)} \cdot \frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
        16. distribute-lft-neg-inN/A

          \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{\color{blue}{\left(\mathsf{neg}\left(2\right)\right) \cdot d}} \cdot \frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
        17. lower-*.f64N/A

          \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{\color{blue}{\left(\mathsf{neg}\left(2\right)\right) \cdot d}} \cdot \frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
        18. metadata-evalN/A

          \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{\color{blue}{-2} \cdot d} \cdot \frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
        19. lower-/.f64N/A

          \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{-2 \cdot d} \cdot \color{blue}{\frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}}\right)\right) \cdot \frac{h}{\ell}\right) \]
        20. lift-*.f64N/A

          \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{-2 \cdot d} \cdot \frac{\color{blue}{M \cdot D}}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
        21. *-commutativeN/A

          \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{-2 \cdot d} \cdot \frac{\color{blue}{D \cdot M}}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
        22. lift-*.f64N/A

          \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{-2 \cdot d} \cdot \frac{\color{blue}{D \cdot M}}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
        23. lift-*.f64N/A

          \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{-2 \cdot d} \cdot \frac{D \cdot M}{\mathsf{neg}\left(\color{blue}{2 \cdot d}\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
        24. distribute-lft-neg-inN/A

          \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{-2 \cdot d} \cdot \frac{D \cdot M}{\color{blue}{\left(\mathsf{neg}\left(2\right)\right) \cdot d}}\right)\right) \cdot \frac{h}{\ell}\right) \]
        25. lower-*.f64N/A

          \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{-2 \cdot d} \cdot \frac{D \cdot M}{\color{blue}{\left(\mathsf{neg}\left(2\right)\right) \cdot d}}\right)\right) \cdot \frac{h}{\ell}\right) \]
        26. metadata-eval69.9

          \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{-2 \cdot d} \cdot \frac{D \cdot M}{\color{blue}{-2} \cdot d}\right)\right) \cdot \frac{h}{\ell}\right) \]
      7. Applied rewrites69.9%

        \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \color{blue}{\left(\frac{D \cdot M}{-2 \cdot d} \cdot \frac{D \cdot M}{-2 \cdot d}\right)}\right) \cdot \frac{h}{\ell}\right) \]
      8. Applied rewrites63.4%

        \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \color{blue}{\mathsf{fma}\left(\left(\left(\left(M \cdot D\right) \cdot \left(\frac{D}{d \cdot d} \cdot M\right)\right) \cdot -0.125\right) \cdot h, \frac{1}{\ell}, 1\right)} \]
    3. Recombined 3 regimes into one program.
    4. Add Preprocessing

    Alternative 5: 78.1% accurate, 0.3× speedup?

    \[\begin{array}{l} \\ \begin{array}{l} t_0 := \left({\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)} \cdot {\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right)\\ t_1 := \frac{\left|d\right|}{\sqrt{h \cdot \ell}}\\ \mathbf{if}\;t\_0 \leq 5 \cdot 10^{-267}:\\ \;\;\;\;-\mathsf{fma}\left(\frac{\left(\left(\frac{D}{d} \cdot M\right) \cdot M\right) \cdot D}{d} \cdot 0.125, \frac{h}{\ell}, -1\right) \cdot \frac{\left|d\right|}{\sqrt{\ell \cdot h}}\\ \mathbf{elif}\;t\_0 \leq 5 \cdot 10^{+249}:\\ \;\;\;\;\sqrt{\frac{d}{h}} \cdot \sqrt{\frac{d}{\ell}}\\ \mathbf{elif}\;t\_0 \leq \infty:\\ \;\;\;\;t\_1 \cdot 1\\ \mathbf{else}:\\ \;\;\;\;t\_1 \cdot \mathsf{fma}\left(\frac{\left(\left(\left(M \cdot D\right) \cdot D\right) \cdot M\right) \cdot h}{\left(\left(4 \cdot d\right) \cdot d\right) \cdot \ell}, -0.5, 1\right)\\ \end{array} \end{array} \]
    (FPCore (d h l M D)
     :precision binary64
     (let* ((t_0
             (*
              (* (pow (/ d h) (/ 1.0 2.0)) (pow (/ d l) (/ 1.0 2.0)))
              (- 1.0 (* (* (/ 1.0 2.0) (pow (/ (* M D) (* 2.0 d)) 2.0)) (/ h l)))))
            (t_1 (/ (fabs d) (sqrt (* h l)))))
       (if (<= t_0 5e-267)
         (-
          (*
           (fma (* (/ (* (* (* (/ D d) M) M) D) d) 0.125) (/ h l) -1.0)
           (/ (fabs d) (sqrt (* l h)))))
         (if (<= t_0 5e+249)
           (* (sqrt (/ d h)) (sqrt (/ d l)))
           (if (<= t_0 INFINITY)
             (* t_1 1.0)
             (*
              t_1
              (fma
               (/ (* (* (* (* M D) D) M) h) (* (* (* 4.0 d) d) l))
               -0.5
               1.0)))))))
    double code(double d, double h, double l, double M, double D) {
    	double t_0 = (pow((d / h), (1.0 / 2.0)) * pow((d / l), (1.0 / 2.0))) * (1.0 - (((1.0 / 2.0) * pow(((M * D) / (2.0 * d)), 2.0)) * (h / l)));
    	double t_1 = fabs(d) / sqrt((h * l));
    	double tmp;
    	if (t_0 <= 5e-267) {
    		tmp = -(fma(((((((D / d) * M) * M) * D) / d) * 0.125), (h / l), -1.0) * (fabs(d) / sqrt((l * h))));
    	} else if (t_0 <= 5e+249) {
    		tmp = sqrt((d / h)) * sqrt((d / l));
    	} else if (t_0 <= ((double) INFINITY)) {
    		tmp = t_1 * 1.0;
    	} else {
    		tmp = t_1 * fma((((((M * D) * D) * M) * h) / (((4.0 * d) * d) * l)), -0.5, 1.0);
    	}
    	return tmp;
    }
    
    function code(d, h, l, M, D)
    	t_0 = Float64(Float64((Float64(d / h) ^ Float64(1.0 / 2.0)) * (Float64(d / l) ^ Float64(1.0 / 2.0))) * Float64(1.0 - Float64(Float64(Float64(1.0 / 2.0) * (Float64(Float64(M * D) / Float64(2.0 * d)) ^ 2.0)) * Float64(h / l))))
    	t_1 = Float64(abs(d) / sqrt(Float64(h * l)))
    	tmp = 0.0
    	if (t_0 <= 5e-267)
    		tmp = Float64(-Float64(fma(Float64(Float64(Float64(Float64(Float64(Float64(D / d) * M) * M) * D) / d) * 0.125), Float64(h / l), -1.0) * Float64(abs(d) / sqrt(Float64(l * h)))));
    	elseif (t_0 <= 5e+249)
    		tmp = Float64(sqrt(Float64(d / h)) * sqrt(Float64(d / l)));
    	elseif (t_0 <= Inf)
    		tmp = Float64(t_1 * 1.0);
    	else
    		tmp = Float64(t_1 * fma(Float64(Float64(Float64(Float64(Float64(M * D) * D) * M) * h) / Float64(Float64(Float64(4.0 * d) * d) * l)), -0.5, 1.0));
    	end
    	return tmp
    end
    
    code[d_, h_, l_, M_, D_] := Block[{t$95$0 = N[(N[(N[Power[N[(d / h), $MachinePrecision], N[(1.0 / 2.0), $MachinePrecision]], $MachinePrecision] * N[Power[N[(d / l), $MachinePrecision], N[(1.0 / 2.0), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] * N[(1.0 - N[(N[(N[(1.0 / 2.0), $MachinePrecision] * N[Power[N[(N[(M * D), $MachinePrecision] / N[(2.0 * d), $MachinePrecision]), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision] * N[(h / l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[(N[Abs[d], $MachinePrecision] / N[Sqrt[N[(h * l), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$0, 5e-267], (-N[(N[(N[(N[(N[(N[(N[(N[(D / d), $MachinePrecision] * M), $MachinePrecision] * M), $MachinePrecision] * D), $MachinePrecision] / d), $MachinePrecision] * 0.125), $MachinePrecision] * N[(h / l), $MachinePrecision] + -1.0), $MachinePrecision] * N[(N[Abs[d], $MachinePrecision] / N[Sqrt[N[(l * h), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), If[LessEqual[t$95$0, 5e+249], N[(N[Sqrt[N[(d / h), $MachinePrecision]], $MachinePrecision] * N[Sqrt[N[(d / l), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$0, Infinity], N[(t$95$1 * 1.0), $MachinePrecision], N[(t$95$1 * N[(N[(N[(N[(N[(N[(M * D), $MachinePrecision] * D), $MachinePrecision] * M), $MachinePrecision] * h), $MachinePrecision] / N[(N[(N[(4.0 * d), $MachinePrecision] * d), $MachinePrecision] * l), $MachinePrecision]), $MachinePrecision] * -0.5 + 1.0), $MachinePrecision]), $MachinePrecision]]]]]]
    
    \begin{array}{l}
    
    \\
    \begin{array}{l}
    t_0 := \left({\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)} \cdot {\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right)\\
    t_1 := \frac{\left|d\right|}{\sqrt{h \cdot \ell}}\\
    \mathbf{if}\;t\_0 \leq 5 \cdot 10^{-267}:\\
    \;\;\;\;-\mathsf{fma}\left(\frac{\left(\left(\frac{D}{d} \cdot M\right) \cdot M\right) \cdot D}{d} \cdot 0.125, \frac{h}{\ell}, -1\right) \cdot \frac{\left|d\right|}{\sqrt{\ell \cdot h}}\\
    
    \mathbf{elif}\;t\_0 \leq 5 \cdot 10^{+249}:\\
    \;\;\;\;\sqrt{\frac{d}{h}} \cdot \sqrt{\frac{d}{\ell}}\\
    
    \mathbf{elif}\;t\_0 \leq \infty:\\
    \;\;\;\;t\_1 \cdot 1\\
    
    \mathbf{else}:\\
    \;\;\;\;t\_1 \cdot \mathsf{fma}\left(\frac{\left(\left(\left(M \cdot D\right) \cdot D\right) \cdot M\right) \cdot h}{\left(\left(4 \cdot d\right) \cdot d\right) \cdot \ell}, -0.5, 1\right)\\
    
    
    \end{array}
    \end{array}
    
    Derivation
    1. Split input into 4 regimes
    2. if (*.f64 (*.f64 (pow.f64 (/.f64 d h) (/.f64 #s(literal 1 binary64) #s(literal 2 binary64))) (pow.f64 (/.f64 d l) (/.f64 #s(literal 1 binary64) #s(literal 2 binary64)))) (-.f64 #s(literal 1 binary64) (*.f64 (*.f64 (/.f64 #s(literal 1 binary64) #s(literal 2 binary64)) (pow.f64 (/.f64 (*.f64 M D) (*.f64 #s(literal 2 binary64) d)) #s(literal 2 binary64))) (/.f64 h l)))) < 4.9999999999999999e-267

      1. Initial program 66.7%

        \[\left({\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)} \cdot {\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
      2. Step-by-step derivation
        1. lift-*.f64N/A

          \[\leadsto \color{blue}{\left({\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)} \cdot {\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)}\right)} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
        2. *-commutativeN/A

          \[\leadsto \color{blue}{\left({\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right)} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
        3. lower-*.f6466.7

          \[\leadsto \color{blue}{\left({\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right)} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
        4. lift-pow.f64N/A

          \[\leadsto \left(\color{blue}{{\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)}} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
        5. lift-/.f64N/A

          \[\leadsto \left({\left(\frac{d}{\ell}\right)}^{\color{blue}{\left(\frac{1}{2}\right)}} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
        6. metadata-evalN/A

          \[\leadsto \left({\left(\frac{d}{\ell}\right)}^{\color{blue}{\frac{1}{2}}} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
        7. unpow1/2N/A

          \[\leadsto \left(\color{blue}{\sqrt{\frac{d}{\ell}}} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
        8. lower-sqrt.f6466.7

          \[\leadsto \left(\color{blue}{\sqrt{\frac{d}{\ell}}} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
        9. lift-pow.f64N/A

          \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot \color{blue}{{\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
        10. lift-/.f64N/A

          \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot {\left(\frac{d}{h}\right)}^{\color{blue}{\left(\frac{1}{2}\right)}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
        11. metadata-evalN/A

          \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot {\left(\frac{d}{h}\right)}^{\color{blue}{\frac{1}{2}}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
        12. unpow1/2N/A

          \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot \color{blue}{\sqrt{\frac{d}{h}}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
        13. lower-sqrt.f6466.7

          \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot \color{blue}{\sqrt{\frac{d}{h}}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
      3. Applied rewrites66.7%

        \[\leadsto \color{blue}{\left(\sqrt{\frac{d}{\ell}} \cdot \sqrt{\frac{d}{h}}\right)} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
      4. Step-by-step derivation
        1. lift-pow.f64N/A

          \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot \sqrt{\frac{d}{h}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot \color{blue}{{\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}}\right) \cdot \frac{h}{\ell}\right) \]
        2. unpow2N/A

          \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot \sqrt{\frac{d}{h}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot \color{blue}{\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{M \cdot D}{2 \cdot d}\right)}\right) \cdot \frac{h}{\ell}\right) \]
        3. lift-/.f64N/A

          \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot \sqrt{\frac{d}{h}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{M \cdot D}{2 \cdot d} \cdot \color{blue}{\frac{M \cdot D}{2 \cdot d}}\right)\right) \cdot \frac{h}{\ell}\right) \]
        4. lift-*.f64N/A

          \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot \sqrt{\frac{d}{h}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{\color{blue}{M \cdot D}}{2 \cdot d}\right)\right) \cdot \frac{h}{\ell}\right) \]
        5. lift-*.f64N/A

          \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot \sqrt{\frac{d}{h}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{M \cdot D}{\color{blue}{2 \cdot d}}\right)\right) \cdot \frac{h}{\ell}\right) \]
        6. lift-*.f64N/A

          \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot \sqrt{\frac{d}{h}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{\color{blue}{M \cdot D}}{2 \cdot d}\right)\right) \cdot \frac{h}{\ell}\right) \]
        7. associate-/r*N/A

          \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot \sqrt{\frac{d}{h}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{M \cdot D}{2 \cdot d} \cdot \color{blue}{\frac{\frac{M \cdot D}{2}}{d}}\right)\right) \cdot \frac{h}{\ell}\right) \]
        8. associate-*r/N/A

          \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot \sqrt{\frac{d}{h}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot \color{blue}{\frac{\frac{M \cdot D}{2 \cdot d} \cdot \frac{M \cdot D}{2}}{d}}\right) \cdot \frac{h}{\ell}\right) \]
        9. lower-/.f64N/A

          \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot \sqrt{\frac{d}{h}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot \color{blue}{\frac{\frac{M \cdot D}{2 \cdot d} \cdot \frac{M \cdot D}{2}}{d}}\right) \cdot \frac{h}{\ell}\right) \]
      5. Applied rewrites65.4%

        \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot \sqrt{\frac{d}{h}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot \color{blue}{\frac{\frac{\left(M \cdot \frac{D}{d}\right) \cdot \left(D \cdot M\right)}{4}}{d}}\right) \cdot \frac{h}{\ell}\right) \]
      6. Applied rewrites67.6%

        \[\leadsto \color{blue}{-\mathsf{fma}\left(\frac{\left(\left(\frac{D}{d} \cdot M\right) \cdot M\right) \cdot D}{d} \cdot 0.125, \frac{h}{\ell}, -1\right) \cdot \frac{\left|d\right|}{\sqrt{\ell \cdot h}}} \]

      if 4.9999999999999999e-267 < (*.f64 (*.f64 (pow.f64 (/.f64 d h) (/.f64 #s(literal 1 binary64) #s(literal 2 binary64))) (pow.f64 (/.f64 d l) (/.f64 #s(literal 1 binary64) #s(literal 2 binary64)))) (-.f64 #s(literal 1 binary64) (*.f64 (*.f64 (/.f64 #s(literal 1 binary64) #s(literal 2 binary64)) (pow.f64 (/.f64 (*.f64 M D) (*.f64 #s(literal 2 binary64) d)) #s(literal 2 binary64))) (/.f64 h l)))) < 4.9999999999999996e249

      1. Initial program 66.7%

        \[\left({\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)} \cdot {\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
      2. Step-by-step derivation
        1. lift-*.f64N/A

          \[\leadsto \color{blue}{\left({\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)} \cdot {\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)}\right)} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
        2. *-commutativeN/A

          \[\leadsto \color{blue}{\left({\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right)} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
        3. lower-*.f6466.7

          \[\leadsto \color{blue}{\left({\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right)} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
        4. lift-pow.f64N/A

          \[\leadsto \left(\color{blue}{{\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)}} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
        5. lift-/.f64N/A

          \[\leadsto \left({\left(\frac{d}{\ell}\right)}^{\color{blue}{\left(\frac{1}{2}\right)}} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
        6. metadata-evalN/A

          \[\leadsto \left({\left(\frac{d}{\ell}\right)}^{\color{blue}{\frac{1}{2}}} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
        7. unpow1/2N/A

          \[\leadsto \left(\color{blue}{\sqrt{\frac{d}{\ell}}} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
        8. lower-sqrt.f6466.7

          \[\leadsto \left(\color{blue}{\sqrt{\frac{d}{\ell}}} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
        9. lift-pow.f64N/A

          \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot \color{blue}{{\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
        10. lift-/.f64N/A

          \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot {\left(\frac{d}{h}\right)}^{\color{blue}{\left(\frac{1}{2}\right)}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
        11. metadata-evalN/A

          \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot {\left(\frac{d}{h}\right)}^{\color{blue}{\frac{1}{2}}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
        12. unpow1/2N/A

          \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot \color{blue}{\sqrt{\frac{d}{h}}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
        13. lower-sqrt.f6466.7

          \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot \color{blue}{\sqrt{\frac{d}{h}}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
      3. Applied rewrites66.7%

        \[\leadsto \color{blue}{\left(\sqrt{\frac{d}{\ell}} \cdot \sqrt{\frac{d}{h}}\right)} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
      4. Applied rewrites54.3%

        \[\leadsto \color{blue}{\left(\mathsf{fma}\left(\left(-0.125 \cdot \frac{\left(D \cdot M\right) \cdot D}{d \cdot d}\right) \cdot M, \frac{h}{\ell}, 1\right) \cdot \sqrt{\frac{d}{\ell}}\right) \cdot \sqrt{\frac{d}{h}}} \]
      5. Taylor expanded in l around inf

        \[\leadsto \color{blue}{\sqrt{\frac{d}{h}} \cdot \sqrt{\frac{d}{\ell}}} \]
      6. Step-by-step derivation
        1. lower-*.f64N/A

          \[\leadsto \sqrt{\frac{d}{h}} \cdot \color{blue}{\sqrt{\frac{d}{\ell}}} \]
        2. lower-sqrt.f64N/A

          \[\leadsto \sqrt{\frac{d}{h}} \cdot \sqrt{\color{blue}{\frac{d}{\ell}}} \]
        3. lower-/.f64N/A

          \[\leadsto \sqrt{\frac{d}{h}} \cdot \sqrt{\frac{\color{blue}{d}}{\ell}} \]
        4. lower-sqrt.f64N/A

          \[\leadsto \sqrt{\frac{d}{h}} \cdot \sqrt{\frac{d}{\ell}} \]
        5. lower-/.f6438.9

          \[\leadsto \sqrt{\frac{d}{h}} \cdot \sqrt{\frac{d}{\ell}} \]
      7. Applied rewrites38.9%

        \[\leadsto \color{blue}{\sqrt{\frac{d}{h}} \cdot \sqrt{\frac{d}{\ell}}} \]

      if 4.9999999999999996e249 < (*.f64 (*.f64 (pow.f64 (/.f64 d h) (/.f64 #s(literal 1 binary64) #s(literal 2 binary64))) (pow.f64 (/.f64 d l) (/.f64 #s(literal 1 binary64) #s(literal 2 binary64)))) (-.f64 #s(literal 1 binary64) (*.f64 (*.f64 (/.f64 #s(literal 1 binary64) #s(literal 2 binary64)) (pow.f64 (/.f64 (*.f64 M D) (*.f64 #s(literal 2 binary64) d)) #s(literal 2 binary64))) (/.f64 h l)))) < +inf.0

      1. Initial program 66.7%

        \[\left({\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)} \cdot {\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
      2. Step-by-step derivation
        1. lift-*.f64N/A

          \[\leadsto \color{blue}{\left({\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)} \cdot {\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)}\right)} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
        2. *-commutativeN/A

          \[\leadsto \color{blue}{\left({\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right)} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
        3. lower-*.f6466.7

          \[\leadsto \color{blue}{\left({\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right)} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
        4. lift-pow.f64N/A

          \[\leadsto \left(\color{blue}{{\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)}} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
        5. lift-/.f64N/A

          \[\leadsto \left({\left(\frac{d}{\ell}\right)}^{\color{blue}{\left(\frac{1}{2}\right)}} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
        6. metadata-evalN/A

          \[\leadsto \left({\left(\frac{d}{\ell}\right)}^{\color{blue}{\frac{1}{2}}} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
        7. unpow1/2N/A

          \[\leadsto \left(\color{blue}{\sqrt{\frac{d}{\ell}}} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
        8. lower-sqrt.f6466.7

          \[\leadsto \left(\color{blue}{\sqrt{\frac{d}{\ell}}} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
        9. lift-pow.f64N/A

          \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot \color{blue}{{\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
        10. lift-/.f64N/A

          \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot {\left(\frac{d}{h}\right)}^{\color{blue}{\left(\frac{1}{2}\right)}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
        11. metadata-evalN/A

          \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot {\left(\frac{d}{h}\right)}^{\color{blue}{\frac{1}{2}}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
        12. unpow1/2N/A

          \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot \color{blue}{\sqrt{\frac{d}{h}}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
        13. lower-sqrt.f6466.7

          \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot \color{blue}{\sqrt{\frac{d}{h}}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
      3. Applied rewrites66.7%

        \[\leadsto \color{blue}{\left(\sqrt{\frac{d}{\ell}} \cdot \sqrt{\frac{d}{h}}\right)} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
      4. Step-by-step derivation
        1. lift-*.f64N/A

          \[\leadsto \color{blue}{\left(\sqrt{\frac{d}{\ell}} \cdot \sqrt{\frac{d}{h}}\right)} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
        2. lift-sqrt.f64N/A

          \[\leadsto \left(\color{blue}{\sqrt{\frac{d}{\ell}}} \cdot \sqrt{\frac{d}{h}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
        3. lift-sqrt.f64N/A

          \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot \color{blue}{\sqrt{\frac{d}{h}}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
        4. sqrt-unprodN/A

          \[\leadsto \color{blue}{\sqrt{\frac{d}{\ell} \cdot \frac{d}{h}}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
        5. lift-/.f64N/A

          \[\leadsto \sqrt{\color{blue}{\frac{d}{\ell}} \cdot \frac{d}{h}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
        6. lift-/.f64N/A

          \[\leadsto \sqrt{\frac{d}{\ell} \cdot \color{blue}{\frac{d}{h}}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
        7. frac-timesN/A

          \[\leadsto \sqrt{\color{blue}{\frac{d \cdot d}{\ell \cdot h}}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
        8. *-commutativeN/A

          \[\leadsto \sqrt{\frac{d \cdot d}{\color{blue}{h \cdot \ell}}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
        9. lift-*.f64N/A

          \[\leadsto \sqrt{\frac{d \cdot d}{\color{blue}{h \cdot \ell}}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
        10. lift-*.f64N/A

          \[\leadsto \sqrt{\frac{\color{blue}{d \cdot d}}{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
        11. sqrt-divN/A

          \[\leadsto \color{blue}{\frac{\sqrt{d \cdot d}}{\sqrt{h \cdot \ell}}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
        12. lower-unsound-sqrt.f32N/A

          \[\leadsto \frac{\color{blue}{\sqrt{d \cdot d}}}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
        13. lower-sqrt.f32N/A

          \[\leadsto \frac{\color{blue}{\sqrt{d \cdot d}}}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
        14. lift-*.f64N/A

          \[\leadsto \frac{\sqrt{\color{blue}{d \cdot d}}}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
        15. rem-sqrt-square-revN/A

          \[\leadsto \frac{\color{blue}{\left|d\right|}}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
        16. lower-unsound-/.f64N/A

          \[\leadsto \color{blue}{\frac{\left|d\right|}{\sqrt{h \cdot \ell}}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
        17. lower-fabs.f64N/A

          \[\leadsto \frac{\color{blue}{\left|d\right|}}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
        18. lower-unsound-sqrt.f6469.9

          \[\leadsto \frac{\left|d\right|}{\color{blue}{\sqrt{h \cdot \ell}}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
      5. Applied rewrites69.9%

        \[\leadsto \color{blue}{\frac{\left|d\right|}{\sqrt{h \cdot \ell}}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
      6. Step-by-step derivation
        1. lift-pow.f64N/A

          \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \color{blue}{{\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}}\right) \cdot \frac{h}{\ell}\right) \]
        2. unpow2N/A

          \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \color{blue}{\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{M \cdot D}{2 \cdot d}\right)}\right) \cdot \frac{h}{\ell}\right) \]
        3. lift-/.f64N/A

          \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\color{blue}{\frac{M \cdot D}{2 \cdot d}} \cdot \frac{M \cdot D}{2 \cdot d}\right)\right) \cdot \frac{h}{\ell}\right) \]
        4. frac-2negN/A

          \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\color{blue}{\frac{\mathsf{neg}\left(M \cdot D\right)}{\mathsf{neg}\left(2 \cdot d\right)}} \cdot \frac{M \cdot D}{2 \cdot d}\right)\right) \cdot \frac{h}{\ell}\right) \]
        5. distribute-frac-negN/A

          \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\color{blue}{\left(\mathsf{neg}\left(\frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right)} \cdot \frac{M \cdot D}{2 \cdot d}\right)\right) \cdot \frac{h}{\ell}\right) \]
        6. lift-/.f64N/A

          \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\left(\mathsf{neg}\left(\frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \color{blue}{\frac{M \cdot D}{2 \cdot d}}\right)\right) \cdot \frac{h}{\ell}\right) \]
        7. frac-2negN/A

          \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\left(\mathsf{neg}\left(\frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \color{blue}{\frac{\mathsf{neg}\left(M \cdot D\right)}{\mathsf{neg}\left(2 \cdot d\right)}}\right)\right) \cdot \frac{h}{\ell}\right) \]
        8. distribute-frac-negN/A

          \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\left(\mathsf{neg}\left(\frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \color{blue}{\left(\mathsf{neg}\left(\frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
        9. sqr-negN/A

          \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \color{blue}{\left(\frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)} \cdot \frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)}\right) \cdot \frac{h}{\ell}\right) \]
        10. lower-*.f64N/A

          \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \color{blue}{\left(\frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)} \cdot \frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)}\right) \cdot \frac{h}{\ell}\right) \]
        11. lower-/.f64N/A

          \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\color{blue}{\frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}} \cdot \frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
        12. lift-*.f64N/A

          \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{\color{blue}{M \cdot D}}{\mathsf{neg}\left(2 \cdot d\right)} \cdot \frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
        13. *-commutativeN/A

          \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{\color{blue}{D \cdot M}}{\mathsf{neg}\left(2 \cdot d\right)} \cdot \frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
        14. lift-*.f64N/A

          \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{\color{blue}{D \cdot M}}{\mathsf{neg}\left(2 \cdot d\right)} \cdot \frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
        15. lift-*.f64N/A

          \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{\mathsf{neg}\left(\color{blue}{2 \cdot d}\right)} \cdot \frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
        16. distribute-lft-neg-inN/A

          \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{\color{blue}{\left(\mathsf{neg}\left(2\right)\right) \cdot d}} \cdot \frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
        17. lower-*.f64N/A

          \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{\color{blue}{\left(\mathsf{neg}\left(2\right)\right) \cdot d}} \cdot \frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
        18. metadata-evalN/A

          \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{\color{blue}{-2} \cdot d} \cdot \frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
        19. lower-/.f64N/A

          \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{-2 \cdot d} \cdot \color{blue}{\frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}}\right)\right) \cdot \frac{h}{\ell}\right) \]
        20. lift-*.f64N/A

          \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{-2 \cdot d} \cdot \frac{\color{blue}{M \cdot D}}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
        21. *-commutativeN/A

          \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{-2 \cdot d} \cdot \frac{\color{blue}{D \cdot M}}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
        22. lift-*.f64N/A

          \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{-2 \cdot d} \cdot \frac{\color{blue}{D \cdot M}}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
        23. lift-*.f64N/A

          \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{-2 \cdot d} \cdot \frac{D \cdot M}{\mathsf{neg}\left(\color{blue}{2 \cdot d}\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
        24. distribute-lft-neg-inN/A

          \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{-2 \cdot d} \cdot \frac{D \cdot M}{\color{blue}{\left(\mathsf{neg}\left(2\right)\right) \cdot d}}\right)\right) \cdot \frac{h}{\ell}\right) \]
        25. lower-*.f64N/A

          \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{-2 \cdot d} \cdot \frac{D \cdot M}{\color{blue}{\left(\mathsf{neg}\left(2\right)\right) \cdot d}}\right)\right) \cdot \frac{h}{\ell}\right) \]
        26. metadata-eval69.9

          \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{-2 \cdot d} \cdot \frac{D \cdot M}{\color{blue}{-2} \cdot d}\right)\right) \cdot \frac{h}{\ell}\right) \]
      7. Applied rewrites69.9%

        \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \color{blue}{\left(\frac{D \cdot M}{-2 \cdot d} \cdot \frac{D \cdot M}{-2 \cdot d}\right)}\right) \cdot \frac{h}{\ell}\right) \]
      8. Taylor expanded in d around inf

        \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \color{blue}{1} \]
      9. Step-by-step derivation
        1. Applied rewrites42.5%

          \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \color{blue}{1} \]

        if +inf.0 < (*.f64 (*.f64 (pow.f64 (/.f64 d h) (/.f64 #s(literal 1 binary64) #s(literal 2 binary64))) (pow.f64 (/.f64 d l) (/.f64 #s(literal 1 binary64) #s(literal 2 binary64)))) (-.f64 #s(literal 1 binary64) (*.f64 (*.f64 (/.f64 #s(literal 1 binary64) #s(literal 2 binary64)) (pow.f64 (/.f64 (*.f64 M D) (*.f64 #s(literal 2 binary64) d)) #s(literal 2 binary64))) (/.f64 h l))))

        1. Initial program 66.7%

          \[\left({\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)} \cdot {\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
        2. Step-by-step derivation
          1. lift-*.f64N/A

            \[\leadsto \color{blue}{\left({\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)} \cdot {\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)}\right)} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
          2. *-commutativeN/A

            \[\leadsto \color{blue}{\left({\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right)} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
          3. lower-*.f6466.7

            \[\leadsto \color{blue}{\left({\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right)} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
          4. lift-pow.f64N/A

            \[\leadsto \left(\color{blue}{{\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)}} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
          5. lift-/.f64N/A

            \[\leadsto \left({\left(\frac{d}{\ell}\right)}^{\color{blue}{\left(\frac{1}{2}\right)}} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
          6. metadata-evalN/A

            \[\leadsto \left({\left(\frac{d}{\ell}\right)}^{\color{blue}{\frac{1}{2}}} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
          7. unpow1/2N/A

            \[\leadsto \left(\color{blue}{\sqrt{\frac{d}{\ell}}} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
          8. lower-sqrt.f6466.7

            \[\leadsto \left(\color{blue}{\sqrt{\frac{d}{\ell}}} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
          9. lift-pow.f64N/A

            \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot \color{blue}{{\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
          10. lift-/.f64N/A

            \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot {\left(\frac{d}{h}\right)}^{\color{blue}{\left(\frac{1}{2}\right)}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
          11. metadata-evalN/A

            \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot {\left(\frac{d}{h}\right)}^{\color{blue}{\frac{1}{2}}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
          12. unpow1/2N/A

            \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot \color{blue}{\sqrt{\frac{d}{h}}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
          13. lower-sqrt.f6466.7

            \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot \color{blue}{\sqrt{\frac{d}{h}}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
        3. Applied rewrites66.7%

          \[\leadsto \color{blue}{\left(\sqrt{\frac{d}{\ell}} \cdot \sqrt{\frac{d}{h}}\right)} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
        4. Step-by-step derivation
          1. lift-*.f64N/A

            \[\leadsto \color{blue}{\left(\sqrt{\frac{d}{\ell}} \cdot \sqrt{\frac{d}{h}}\right)} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
          2. lift-sqrt.f64N/A

            \[\leadsto \left(\color{blue}{\sqrt{\frac{d}{\ell}}} \cdot \sqrt{\frac{d}{h}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
          3. lift-sqrt.f64N/A

            \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot \color{blue}{\sqrt{\frac{d}{h}}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
          4. sqrt-unprodN/A

            \[\leadsto \color{blue}{\sqrt{\frac{d}{\ell} \cdot \frac{d}{h}}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
          5. lift-/.f64N/A

            \[\leadsto \sqrt{\color{blue}{\frac{d}{\ell}} \cdot \frac{d}{h}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
          6. lift-/.f64N/A

            \[\leadsto \sqrt{\frac{d}{\ell} \cdot \color{blue}{\frac{d}{h}}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
          7. frac-timesN/A

            \[\leadsto \sqrt{\color{blue}{\frac{d \cdot d}{\ell \cdot h}}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
          8. *-commutativeN/A

            \[\leadsto \sqrt{\frac{d \cdot d}{\color{blue}{h \cdot \ell}}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
          9. lift-*.f64N/A

            \[\leadsto \sqrt{\frac{d \cdot d}{\color{blue}{h \cdot \ell}}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
          10. lift-*.f64N/A

            \[\leadsto \sqrt{\frac{\color{blue}{d \cdot d}}{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
          11. sqrt-divN/A

            \[\leadsto \color{blue}{\frac{\sqrt{d \cdot d}}{\sqrt{h \cdot \ell}}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
          12. lower-unsound-sqrt.f32N/A

            \[\leadsto \frac{\color{blue}{\sqrt{d \cdot d}}}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
          13. lower-sqrt.f32N/A

            \[\leadsto \frac{\color{blue}{\sqrt{d \cdot d}}}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
          14. lift-*.f64N/A

            \[\leadsto \frac{\sqrt{\color{blue}{d \cdot d}}}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
          15. rem-sqrt-square-revN/A

            \[\leadsto \frac{\color{blue}{\left|d\right|}}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
          16. lower-unsound-/.f64N/A

            \[\leadsto \color{blue}{\frac{\left|d\right|}{\sqrt{h \cdot \ell}}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
          17. lower-fabs.f64N/A

            \[\leadsto \frac{\color{blue}{\left|d\right|}}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
          18. lower-unsound-sqrt.f6469.9

            \[\leadsto \frac{\left|d\right|}{\color{blue}{\sqrt{h \cdot \ell}}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
        5. Applied rewrites69.9%

          \[\leadsto \color{blue}{\frac{\left|d\right|}{\sqrt{h \cdot \ell}}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
        6. Step-by-step derivation
          1. lift-pow.f64N/A

            \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \color{blue}{{\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}}\right) \cdot \frac{h}{\ell}\right) \]
          2. unpow2N/A

            \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \color{blue}{\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{M \cdot D}{2 \cdot d}\right)}\right) \cdot \frac{h}{\ell}\right) \]
          3. lift-/.f64N/A

            \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\color{blue}{\frac{M \cdot D}{2 \cdot d}} \cdot \frac{M \cdot D}{2 \cdot d}\right)\right) \cdot \frac{h}{\ell}\right) \]
          4. frac-2negN/A

            \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\color{blue}{\frac{\mathsf{neg}\left(M \cdot D\right)}{\mathsf{neg}\left(2 \cdot d\right)}} \cdot \frac{M \cdot D}{2 \cdot d}\right)\right) \cdot \frac{h}{\ell}\right) \]
          5. distribute-frac-negN/A

            \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\color{blue}{\left(\mathsf{neg}\left(\frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right)} \cdot \frac{M \cdot D}{2 \cdot d}\right)\right) \cdot \frac{h}{\ell}\right) \]
          6. lift-/.f64N/A

            \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\left(\mathsf{neg}\left(\frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \color{blue}{\frac{M \cdot D}{2 \cdot d}}\right)\right) \cdot \frac{h}{\ell}\right) \]
          7. frac-2negN/A

            \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\left(\mathsf{neg}\left(\frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \color{blue}{\frac{\mathsf{neg}\left(M \cdot D\right)}{\mathsf{neg}\left(2 \cdot d\right)}}\right)\right) \cdot \frac{h}{\ell}\right) \]
          8. distribute-frac-negN/A

            \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\left(\mathsf{neg}\left(\frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \color{blue}{\left(\mathsf{neg}\left(\frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
          9. sqr-negN/A

            \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \color{blue}{\left(\frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)} \cdot \frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)}\right) \cdot \frac{h}{\ell}\right) \]
          10. lower-*.f64N/A

            \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \color{blue}{\left(\frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)} \cdot \frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)}\right) \cdot \frac{h}{\ell}\right) \]
          11. lower-/.f64N/A

            \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\color{blue}{\frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}} \cdot \frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
          12. lift-*.f64N/A

            \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{\color{blue}{M \cdot D}}{\mathsf{neg}\left(2 \cdot d\right)} \cdot \frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
          13. *-commutativeN/A

            \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{\color{blue}{D \cdot M}}{\mathsf{neg}\left(2 \cdot d\right)} \cdot \frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
          14. lift-*.f64N/A

            \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{\color{blue}{D \cdot M}}{\mathsf{neg}\left(2 \cdot d\right)} \cdot \frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
          15. lift-*.f64N/A

            \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{\mathsf{neg}\left(\color{blue}{2 \cdot d}\right)} \cdot \frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
          16. distribute-lft-neg-inN/A

            \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{\color{blue}{\left(\mathsf{neg}\left(2\right)\right) \cdot d}} \cdot \frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
          17. lower-*.f64N/A

            \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{\color{blue}{\left(\mathsf{neg}\left(2\right)\right) \cdot d}} \cdot \frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
          18. metadata-evalN/A

            \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{\color{blue}{-2} \cdot d} \cdot \frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
          19. lower-/.f64N/A

            \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{-2 \cdot d} \cdot \color{blue}{\frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}}\right)\right) \cdot \frac{h}{\ell}\right) \]
          20. lift-*.f64N/A

            \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{-2 \cdot d} \cdot \frac{\color{blue}{M \cdot D}}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
          21. *-commutativeN/A

            \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{-2 \cdot d} \cdot \frac{\color{blue}{D \cdot M}}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
          22. lift-*.f64N/A

            \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{-2 \cdot d} \cdot \frac{\color{blue}{D \cdot M}}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
          23. lift-*.f64N/A

            \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{-2 \cdot d} \cdot \frac{D \cdot M}{\mathsf{neg}\left(\color{blue}{2 \cdot d}\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
          24. distribute-lft-neg-inN/A

            \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{-2 \cdot d} \cdot \frac{D \cdot M}{\color{blue}{\left(\mathsf{neg}\left(2\right)\right) \cdot d}}\right)\right) \cdot \frac{h}{\ell}\right) \]
          25. lower-*.f64N/A

            \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{-2 \cdot d} \cdot \frac{D \cdot M}{\color{blue}{\left(\mathsf{neg}\left(2\right)\right) \cdot d}}\right)\right) \cdot \frac{h}{\ell}\right) \]
          26. metadata-eval69.9

            \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{-2 \cdot d} \cdot \frac{D \cdot M}{\color{blue}{-2} \cdot d}\right)\right) \cdot \frac{h}{\ell}\right) \]
        7. Applied rewrites69.9%

          \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \color{blue}{\left(\frac{D \cdot M}{-2 \cdot d} \cdot \frac{D \cdot M}{-2 \cdot d}\right)}\right) \cdot \frac{h}{\ell}\right) \]
        8. Applied rewrites59.2%

          \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \color{blue}{\mathsf{fma}\left(\frac{\left(\left(\left(M \cdot D\right) \cdot D\right) \cdot M\right) \cdot h}{\left(\left(4 \cdot d\right) \cdot d\right) \cdot \ell}, -0.5, 1\right)} \]
      10. Recombined 4 regimes into one program.
      11. Add Preprocessing

      Alternative 6: 74.2% accurate, 0.5× speedup?

      \[\begin{array}{l} \\ \begin{array}{l} t_0 := \left({\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)} \cdot {\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right)\\ \mathbf{if}\;t\_0 \leq 5 \cdot 10^{-267}:\\ \;\;\;\;-\mathsf{fma}\left(\frac{\left(\left(\frac{D}{d} \cdot M\right) \cdot M\right) \cdot D}{d} \cdot 0.125, \frac{h}{\ell}, -1\right) \cdot \frac{\left|d\right|}{\sqrt{\ell \cdot h}}\\ \mathbf{elif}\;t\_0 \leq 5 \cdot 10^{+249}:\\ \;\;\;\;\sqrt{\frac{d}{h}} \cdot \sqrt{\frac{d}{\ell}}\\ \mathbf{else}:\\ \;\;\;\;\frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot 1\\ \end{array} \end{array} \]
      (FPCore (d h l M D)
       :precision binary64
       (let* ((t_0
               (*
                (* (pow (/ d h) (/ 1.0 2.0)) (pow (/ d l) (/ 1.0 2.0)))
                (-
                 1.0
                 (* (* (/ 1.0 2.0) (pow (/ (* M D) (* 2.0 d)) 2.0)) (/ h l))))))
         (if (<= t_0 5e-267)
           (-
            (*
             (fma (* (/ (* (* (* (/ D d) M) M) D) d) 0.125) (/ h l) -1.0)
             (/ (fabs d) (sqrt (* l h)))))
           (if (<= t_0 5e+249)
             (* (sqrt (/ d h)) (sqrt (/ d l)))
             (* (/ (fabs d) (sqrt (* h l))) 1.0)))))
      double code(double d, double h, double l, double M, double D) {
      	double t_0 = (pow((d / h), (1.0 / 2.0)) * pow((d / l), (1.0 / 2.0))) * (1.0 - (((1.0 / 2.0) * pow(((M * D) / (2.0 * d)), 2.0)) * (h / l)));
      	double tmp;
      	if (t_0 <= 5e-267) {
      		tmp = -(fma(((((((D / d) * M) * M) * D) / d) * 0.125), (h / l), -1.0) * (fabs(d) / sqrt((l * h))));
      	} else if (t_0 <= 5e+249) {
      		tmp = sqrt((d / h)) * sqrt((d / l));
      	} else {
      		tmp = (fabs(d) / sqrt((h * l))) * 1.0;
      	}
      	return tmp;
      }
      
      function code(d, h, l, M, D)
      	t_0 = Float64(Float64((Float64(d / h) ^ Float64(1.0 / 2.0)) * (Float64(d / l) ^ Float64(1.0 / 2.0))) * Float64(1.0 - Float64(Float64(Float64(1.0 / 2.0) * (Float64(Float64(M * D) / Float64(2.0 * d)) ^ 2.0)) * Float64(h / l))))
      	tmp = 0.0
      	if (t_0 <= 5e-267)
      		tmp = Float64(-Float64(fma(Float64(Float64(Float64(Float64(Float64(Float64(D / d) * M) * M) * D) / d) * 0.125), Float64(h / l), -1.0) * Float64(abs(d) / sqrt(Float64(l * h)))));
      	elseif (t_0 <= 5e+249)
      		tmp = Float64(sqrt(Float64(d / h)) * sqrt(Float64(d / l)));
      	else
      		tmp = Float64(Float64(abs(d) / sqrt(Float64(h * l))) * 1.0);
      	end
      	return tmp
      end
      
      code[d_, h_, l_, M_, D_] := Block[{t$95$0 = N[(N[(N[Power[N[(d / h), $MachinePrecision], N[(1.0 / 2.0), $MachinePrecision]], $MachinePrecision] * N[Power[N[(d / l), $MachinePrecision], N[(1.0 / 2.0), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] * N[(1.0 - N[(N[(N[(1.0 / 2.0), $MachinePrecision] * N[Power[N[(N[(M * D), $MachinePrecision] / N[(2.0 * d), $MachinePrecision]), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision] * N[(h / l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$0, 5e-267], (-N[(N[(N[(N[(N[(N[(N[(N[(D / d), $MachinePrecision] * M), $MachinePrecision] * M), $MachinePrecision] * D), $MachinePrecision] / d), $MachinePrecision] * 0.125), $MachinePrecision] * N[(h / l), $MachinePrecision] + -1.0), $MachinePrecision] * N[(N[Abs[d], $MachinePrecision] / N[Sqrt[N[(l * h), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), If[LessEqual[t$95$0, 5e+249], N[(N[Sqrt[N[(d / h), $MachinePrecision]], $MachinePrecision] * N[Sqrt[N[(d / l), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], N[(N[(N[Abs[d], $MachinePrecision] / N[Sqrt[N[(h * l), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] * 1.0), $MachinePrecision]]]]
      
      \begin{array}{l}
      
      \\
      \begin{array}{l}
      t_0 := \left({\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)} \cdot {\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right)\\
      \mathbf{if}\;t\_0 \leq 5 \cdot 10^{-267}:\\
      \;\;\;\;-\mathsf{fma}\left(\frac{\left(\left(\frac{D}{d} \cdot M\right) \cdot M\right) \cdot D}{d} \cdot 0.125, \frac{h}{\ell}, -1\right) \cdot \frac{\left|d\right|}{\sqrt{\ell \cdot h}}\\
      
      \mathbf{elif}\;t\_0 \leq 5 \cdot 10^{+249}:\\
      \;\;\;\;\sqrt{\frac{d}{h}} \cdot \sqrt{\frac{d}{\ell}}\\
      
      \mathbf{else}:\\
      \;\;\;\;\frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot 1\\
      
      
      \end{array}
      \end{array}
      
      Derivation
      1. Split input into 3 regimes
      2. if (*.f64 (*.f64 (pow.f64 (/.f64 d h) (/.f64 #s(literal 1 binary64) #s(literal 2 binary64))) (pow.f64 (/.f64 d l) (/.f64 #s(literal 1 binary64) #s(literal 2 binary64)))) (-.f64 #s(literal 1 binary64) (*.f64 (*.f64 (/.f64 #s(literal 1 binary64) #s(literal 2 binary64)) (pow.f64 (/.f64 (*.f64 M D) (*.f64 #s(literal 2 binary64) d)) #s(literal 2 binary64))) (/.f64 h l)))) < 4.9999999999999999e-267

        1. Initial program 66.7%

          \[\left({\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)} \cdot {\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
        2. Step-by-step derivation
          1. lift-*.f64N/A

            \[\leadsto \color{blue}{\left({\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)} \cdot {\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)}\right)} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
          2. *-commutativeN/A

            \[\leadsto \color{blue}{\left({\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right)} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
          3. lower-*.f6466.7

            \[\leadsto \color{blue}{\left({\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right)} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
          4. lift-pow.f64N/A

            \[\leadsto \left(\color{blue}{{\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)}} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
          5. lift-/.f64N/A

            \[\leadsto \left({\left(\frac{d}{\ell}\right)}^{\color{blue}{\left(\frac{1}{2}\right)}} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
          6. metadata-evalN/A

            \[\leadsto \left({\left(\frac{d}{\ell}\right)}^{\color{blue}{\frac{1}{2}}} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
          7. unpow1/2N/A

            \[\leadsto \left(\color{blue}{\sqrt{\frac{d}{\ell}}} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
          8. lower-sqrt.f6466.7

            \[\leadsto \left(\color{blue}{\sqrt{\frac{d}{\ell}}} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
          9. lift-pow.f64N/A

            \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot \color{blue}{{\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
          10. lift-/.f64N/A

            \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot {\left(\frac{d}{h}\right)}^{\color{blue}{\left(\frac{1}{2}\right)}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
          11. metadata-evalN/A

            \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot {\left(\frac{d}{h}\right)}^{\color{blue}{\frac{1}{2}}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
          12. unpow1/2N/A

            \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot \color{blue}{\sqrt{\frac{d}{h}}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
          13. lower-sqrt.f6466.7

            \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot \color{blue}{\sqrt{\frac{d}{h}}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
        3. Applied rewrites66.7%

          \[\leadsto \color{blue}{\left(\sqrt{\frac{d}{\ell}} \cdot \sqrt{\frac{d}{h}}\right)} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
        4. Step-by-step derivation
          1. lift-pow.f64N/A

            \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot \sqrt{\frac{d}{h}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot \color{blue}{{\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}}\right) \cdot \frac{h}{\ell}\right) \]
          2. unpow2N/A

            \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot \sqrt{\frac{d}{h}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot \color{blue}{\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{M \cdot D}{2 \cdot d}\right)}\right) \cdot \frac{h}{\ell}\right) \]
          3. lift-/.f64N/A

            \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot \sqrt{\frac{d}{h}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{M \cdot D}{2 \cdot d} \cdot \color{blue}{\frac{M \cdot D}{2 \cdot d}}\right)\right) \cdot \frac{h}{\ell}\right) \]
          4. lift-*.f64N/A

            \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot \sqrt{\frac{d}{h}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{\color{blue}{M \cdot D}}{2 \cdot d}\right)\right) \cdot \frac{h}{\ell}\right) \]
          5. lift-*.f64N/A

            \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot \sqrt{\frac{d}{h}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{M \cdot D}{\color{blue}{2 \cdot d}}\right)\right) \cdot \frac{h}{\ell}\right) \]
          6. lift-*.f64N/A

            \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot \sqrt{\frac{d}{h}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{\color{blue}{M \cdot D}}{2 \cdot d}\right)\right) \cdot \frac{h}{\ell}\right) \]
          7. associate-/r*N/A

            \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot \sqrt{\frac{d}{h}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{M \cdot D}{2 \cdot d} \cdot \color{blue}{\frac{\frac{M \cdot D}{2}}{d}}\right)\right) \cdot \frac{h}{\ell}\right) \]
          8. associate-*r/N/A

            \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot \sqrt{\frac{d}{h}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot \color{blue}{\frac{\frac{M \cdot D}{2 \cdot d} \cdot \frac{M \cdot D}{2}}{d}}\right) \cdot \frac{h}{\ell}\right) \]
          9. lower-/.f64N/A

            \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot \sqrt{\frac{d}{h}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot \color{blue}{\frac{\frac{M \cdot D}{2 \cdot d} \cdot \frac{M \cdot D}{2}}{d}}\right) \cdot \frac{h}{\ell}\right) \]
        5. Applied rewrites65.4%

          \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot \sqrt{\frac{d}{h}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot \color{blue}{\frac{\frac{\left(M \cdot \frac{D}{d}\right) \cdot \left(D \cdot M\right)}{4}}{d}}\right) \cdot \frac{h}{\ell}\right) \]
        6. Applied rewrites67.6%

          \[\leadsto \color{blue}{-\mathsf{fma}\left(\frac{\left(\left(\frac{D}{d} \cdot M\right) \cdot M\right) \cdot D}{d} \cdot 0.125, \frac{h}{\ell}, -1\right) \cdot \frac{\left|d\right|}{\sqrt{\ell \cdot h}}} \]

        if 4.9999999999999999e-267 < (*.f64 (*.f64 (pow.f64 (/.f64 d h) (/.f64 #s(literal 1 binary64) #s(literal 2 binary64))) (pow.f64 (/.f64 d l) (/.f64 #s(literal 1 binary64) #s(literal 2 binary64)))) (-.f64 #s(literal 1 binary64) (*.f64 (*.f64 (/.f64 #s(literal 1 binary64) #s(literal 2 binary64)) (pow.f64 (/.f64 (*.f64 M D) (*.f64 #s(literal 2 binary64) d)) #s(literal 2 binary64))) (/.f64 h l)))) < 4.9999999999999996e249

        1. Initial program 66.7%

          \[\left({\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)} \cdot {\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
        2. Step-by-step derivation
          1. lift-*.f64N/A

            \[\leadsto \color{blue}{\left({\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)} \cdot {\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)}\right)} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
          2. *-commutativeN/A

            \[\leadsto \color{blue}{\left({\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right)} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
          3. lower-*.f6466.7

            \[\leadsto \color{blue}{\left({\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right)} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
          4. lift-pow.f64N/A

            \[\leadsto \left(\color{blue}{{\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)}} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
          5. lift-/.f64N/A

            \[\leadsto \left({\left(\frac{d}{\ell}\right)}^{\color{blue}{\left(\frac{1}{2}\right)}} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
          6. metadata-evalN/A

            \[\leadsto \left({\left(\frac{d}{\ell}\right)}^{\color{blue}{\frac{1}{2}}} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
          7. unpow1/2N/A

            \[\leadsto \left(\color{blue}{\sqrt{\frac{d}{\ell}}} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
          8. lower-sqrt.f6466.7

            \[\leadsto \left(\color{blue}{\sqrt{\frac{d}{\ell}}} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
          9. lift-pow.f64N/A

            \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot \color{blue}{{\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
          10. lift-/.f64N/A

            \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot {\left(\frac{d}{h}\right)}^{\color{blue}{\left(\frac{1}{2}\right)}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
          11. metadata-evalN/A

            \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot {\left(\frac{d}{h}\right)}^{\color{blue}{\frac{1}{2}}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
          12. unpow1/2N/A

            \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot \color{blue}{\sqrt{\frac{d}{h}}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
          13. lower-sqrt.f6466.7

            \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot \color{blue}{\sqrt{\frac{d}{h}}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
        3. Applied rewrites66.7%

          \[\leadsto \color{blue}{\left(\sqrt{\frac{d}{\ell}} \cdot \sqrt{\frac{d}{h}}\right)} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
        4. Applied rewrites54.3%

          \[\leadsto \color{blue}{\left(\mathsf{fma}\left(\left(-0.125 \cdot \frac{\left(D \cdot M\right) \cdot D}{d \cdot d}\right) \cdot M, \frac{h}{\ell}, 1\right) \cdot \sqrt{\frac{d}{\ell}}\right) \cdot \sqrt{\frac{d}{h}}} \]
        5. Taylor expanded in l around inf

          \[\leadsto \color{blue}{\sqrt{\frac{d}{h}} \cdot \sqrt{\frac{d}{\ell}}} \]
        6. Step-by-step derivation
          1. lower-*.f64N/A

            \[\leadsto \sqrt{\frac{d}{h}} \cdot \color{blue}{\sqrt{\frac{d}{\ell}}} \]
          2. lower-sqrt.f64N/A

            \[\leadsto \sqrt{\frac{d}{h}} \cdot \sqrt{\color{blue}{\frac{d}{\ell}}} \]
          3. lower-/.f64N/A

            \[\leadsto \sqrt{\frac{d}{h}} \cdot \sqrt{\frac{\color{blue}{d}}{\ell}} \]
          4. lower-sqrt.f64N/A

            \[\leadsto \sqrt{\frac{d}{h}} \cdot \sqrt{\frac{d}{\ell}} \]
          5. lower-/.f6438.9

            \[\leadsto \sqrt{\frac{d}{h}} \cdot \sqrt{\frac{d}{\ell}} \]
        7. Applied rewrites38.9%

          \[\leadsto \color{blue}{\sqrt{\frac{d}{h}} \cdot \sqrt{\frac{d}{\ell}}} \]

        if 4.9999999999999996e249 < (*.f64 (*.f64 (pow.f64 (/.f64 d h) (/.f64 #s(literal 1 binary64) #s(literal 2 binary64))) (pow.f64 (/.f64 d l) (/.f64 #s(literal 1 binary64) #s(literal 2 binary64)))) (-.f64 #s(literal 1 binary64) (*.f64 (*.f64 (/.f64 #s(literal 1 binary64) #s(literal 2 binary64)) (pow.f64 (/.f64 (*.f64 M D) (*.f64 #s(literal 2 binary64) d)) #s(literal 2 binary64))) (/.f64 h l))))

        1. Initial program 66.7%

          \[\left({\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)} \cdot {\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
        2. Step-by-step derivation
          1. lift-*.f64N/A

            \[\leadsto \color{blue}{\left({\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)} \cdot {\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)}\right)} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
          2. *-commutativeN/A

            \[\leadsto \color{blue}{\left({\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right)} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
          3. lower-*.f6466.7

            \[\leadsto \color{blue}{\left({\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right)} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
          4. lift-pow.f64N/A

            \[\leadsto \left(\color{blue}{{\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)}} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
          5. lift-/.f64N/A

            \[\leadsto \left({\left(\frac{d}{\ell}\right)}^{\color{blue}{\left(\frac{1}{2}\right)}} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
          6. metadata-evalN/A

            \[\leadsto \left({\left(\frac{d}{\ell}\right)}^{\color{blue}{\frac{1}{2}}} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
          7. unpow1/2N/A

            \[\leadsto \left(\color{blue}{\sqrt{\frac{d}{\ell}}} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
          8. lower-sqrt.f6466.7

            \[\leadsto \left(\color{blue}{\sqrt{\frac{d}{\ell}}} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
          9. lift-pow.f64N/A

            \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot \color{blue}{{\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
          10. lift-/.f64N/A

            \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot {\left(\frac{d}{h}\right)}^{\color{blue}{\left(\frac{1}{2}\right)}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
          11. metadata-evalN/A

            \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot {\left(\frac{d}{h}\right)}^{\color{blue}{\frac{1}{2}}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
          12. unpow1/2N/A

            \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot \color{blue}{\sqrt{\frac{d}{h}}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
          13. lower-sqrt.f6466.7

            \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot \color{blue}{\sqrt{\frac{d}{h}}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
        3. Applied rewrites66.7%

          \[\leadsto \color{blue}{\left(\sqrt{\frac{d}{\ell}} \cdot \sqrt{\frac{d}{h}}\right)} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
        4. Step-by-step derivation
          1. lift-*.f64N/A

            \[\leadsto \color{blue}{\left(\sqrt{\frac{d}{\ell}} \cdot \sqrt{\frac{d}{h}}\right)} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
          2. lift-sqrt.f64N/A

            \[\leadsto \left(\color{blue}{\sqrt{\frac{d}{\ell}}} \cdot \sqrt{\frac{d}{h}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
          3. lift-sqrt.f64N/A

            \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot \color{blue}{\sqrt{\frac{d}{h}}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
          4. sqrt-unprodN/A

            \[\leadsto \color{blue}{\sqrt{\frac{d}{\ell} \cdot \frac{d}{h}}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
          5. lift-/.f64N/A

            \[\leadsto \sqrt{\color{blue}{\frac{d}{\ell}} \cdot \frac{d}{h}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
          6. lift-/.f64N/A

            \[\leadsto \sqrt{\frac{d}{\ell} \cdot \color{blue}{\frac{d}{h}}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
          7. frac-timesN/A

            \[\leadsto \sqrt{\color{blue}{\frac{d \cdot d}{\ell \cdot h}}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
          8. *-commutativeN/A

            \[\leadsto \sqrt{\frac{d \cdot d}{\color{blue}{h \cdot \ell}}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
          9. lift-*.f64N/A

            \[\leadsto \sqrt{\frac{d \cdot d}{\color{blue}{h \cdot \ell}}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
          10. lift-*.f64N/A

            \[\leadsto \sqrt{\frac{\color{blue}{d \cdot d}}{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
          11. sqrt-divN/A

            \[\leadsto \color{blue}{\frac{\sqrt{d \cdot d}}{\sqrt{h \cdot \ell}}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
          12. lower-unsound-sqrt.f32N/A

            \[\leadsto \frac{\color{blue}{\sqrt{d \cdot d}}}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
          13. lower-sqrt.f32N/A

            \[\leadsto \frac{\color{blue}{\sqrt{d \cdot d}}}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
          14. lift-*.f64N/A

            \[\leadsto \frac{\sqrt{\color{blue}{d \cdot d}}}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
          15. rem-sqrt-square-revN/A

            \[\leadsto \frac{\color{blue}{\left|d\right|}}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
          16. lower-unsound-/.f64N/A

            \[\leadsto \color{blue}{\frac{\left|d\right|}{\sqrt{h \cdot \ell}}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
          17. lower-fabs.f64N/A

            \[\leadsto \frac{\color{blue}{\left|d\right|}}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
          18. lower-unsound-sqrt.f6469.9

            \[\leadsto \frac{\left|d\right|}{\color{blue}{\sqrt{h \cdot \ell}}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
        5. Applied rewrites69.9%

          \[\leadsto \color{blue}{\frac{\left|d\right|}{\sqrt{h \cdot \ell}}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
        6. Step-by-step derivation
          1. lift-pow.f64N/A

            \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \color{blue}{{\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}}\right) \cdot \frac{h}{\ell}\right) \]
          2. unpow2N/A

            \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \color{blue}{\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{M \cdot D}{2 \cdot d}\right)}\right) \cdot \frac{h}{\ell}\right) \]
          3. lift-/.f64N/A

            \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\color{blue}{\frac{M \cdot D}{2 \cdot d}} \cdot \frac{M \cdot D}{2 \cdot d}\right)\right) \cdot \frac{h}{\ell}\right) \]
          4. frac-2negN/A

            \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\color{blue}{\frac{\mathsf{neg}\left(M \cdot D\right)}{\mathsf{neg}\left(2 \cdot d\right)}} \cdot \frac{M \cdot D}{2 \cdot d}\right)\right) \cdot \frac{h}{\ell}\right) \]
          5. distribute-frac-negN/A

            \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\color{blue}{\left(\mathsf{neg}\left(\frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right)} \cdot \frac{M \cdot D}{2 \cdot d}\right)\right) \cdot \frac{h}{\ell}\right) \]
          6. lift-/.f64N/A

            \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\left(\mathsf{neg}\left(\frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \color{blue}{\frac{M \cdot D}{2 \cdot d}}\right)\right) \cdot \frac{h}{\ell}\right) \]
          7. frac-2negN/A

            \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\left(\mathsf{neg}\left(\frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \color{blue}{\frac{\mathsf{neg}\left(M \cdot D\right)}{\mathsf{neg}\left(2 \cdot d\right)}}\right)\right) \cdot \frac{h}{\ell}\right) \]
          8. distribute-frac-negN/A

            \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\left(\mathsf{neg}\left(\frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \color{blue}{\left(\mathsf{neg}\left(\frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
          9. sqr-negN/A

            \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \color{blue}{\left(\frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)} \cdot \frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)}\right) \cdot \frac{h}{\ell}\right) \]
          10. lower-*.f64N/A

            \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \color{blue}{\left(\frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)} \cdot \frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)}\right) \cdot \frac{h}{\ell}\right) \]
          11. lower-/.f64N/A

            \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\color{blue}{\frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}} \cdot \frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
          12. lift-*.f64N/A

            \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{\color{blue}{M \cdot D}}{\mathsf{neg}\left(2 \cdot d\right)} \cdot \frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
          13. *-commutativeN/A

            \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{\color{blue}{D \cdot M}}{\mathsf{neg}\left(2 \cdot d\right)} \cdot \frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
          14. lift-*.f64N/A

            \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{\color{blue}{D \cdot M}}{\mathsf{neg}\left(2 \cdot d\right)} \cdot \frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
          15. lift-*.f64N/A

            \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{\mathsf{neg}\left(\color{blue}{2 \cdot d}\right)} \cdot \frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
          16. distribute-lft-neg-inN/A

            \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{\color{blue}{\left(\mathsf{neg}\left(2\right)\right) \cdot d}} \cdot \frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
          17. lower-*.f64N/A

            \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{\color{blue}{\left(\mathsf{neg}\left(2\right)\right) \cdot d}} \cdot \frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
          18. metadata-evalN/A

            \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{\color{blue}{-2} \cdot d} \cdot \frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
          19. lower-/.f64N/A

            \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{-2 \cdot d} \cdot \color{blue}{\frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}}\right)\right) \cdot \frac{h}{\ell}\right) \]
          20. lift-*.f64N/A

            \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{-2 \cdot d} \cdot \frac{\color{blue}{M \cdot D}}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
          21. *-commutativeN/A

            \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{-2 \cdot d} \cdot \frac{\color{blue}{D \cdot M}}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
          22. lift-*.f64N/A

            \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{-2 \cdot d} \cdot \frac{\color{blue}{D \cdot M}}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
          23. lift-*.f64N/A

            \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{-2 \cdot d} \cdot \frac{D \cdot M}{\mathsf{neg}\left(\color{blue}{2 \cdot d}\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
          24. distribute-lft-neg-inN/A

            \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{-2 \cdot d} \cdot \frac{D \cdot M}{\color{blue}{\left(\mathsf{neg}\left(2\right)\right) \cdot d}}\right)\right) \cdot \frac{h}{\ell}\right) \]
          25. lower-*.f64N/A

            \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{-2 \cdot d} \cdot \frac{D \cdot M}{\color{blue}{\left(\mathsf{neg}\left(2\right)\right) \cdot d}}\right)\right) \cdot \frac{h}{\ell}\right) \]
          26. metadata-eval69.9

            \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{-2 \cdot d} \cdot \frac{D \cdot M}{\color{blue}{-2} \cdot d}\right)\right) \cdot \frac{h}{\ell}\right) \]
        7. Applied rewrites69.9%

          \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \color{blue}{\left(\frac{D \cdot M}{-2 \cdot d} \cdot \frac{D \cdot M}{-2 \cdot d}\right)}\right) \cdot \frac{h}{\ell}\right) \]
        8. Taylor expanded in d around inf

          \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \color{blue}{1} \]
        9. Step-by-step derivation
          1. Applied rewrites42.5%

            \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \color{blue}{1} \]
        10. Recombined 3 regimes into one program.
        11. Add Preprocessing

        Alternative 7: 69.0% accurate, 0.3× speedup?

        \[\begin{array}{l} \\ \begin{array}{l} t_0 := \left({\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)} \cdot {\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right)\\ t_1 := \frac{\left|d\right|}{\sqrt{h \cdot \ell}}\\ t_2 := t\_1 \cdot 1\\ \mathbf{if}\;t\_0 \leq -2 \cdot 10^{-67}:\\ \;\;\;\;t\_1 \cdot \mathsf{fma}\left(\frac{h}{\ell} \cdot \left(\left(-0.125 \cdot \left(M \cdot D\right)\right) \cdot \frac{D}{d \cdot d}\right), M, 1\right)\\ \mathbf{elif}\;t\_0 \leq 5 \cdot 10^{-217}:\\ \;\;\;\;t\_2\\ \mathbf{elif}\;t\_0 \leq 5 \cdot 10^{+249}:\\ \;\;\;\;\sqrt{\frac{d}{h}} \cdot \sqrt{\frac{d}{\ell}}\\ \mathbf{else}:\\ \;\;\;\;t\_2\\ \end{array} \end{array} \]
        (FPCore (d h l M D)
         :precision binary64
         (let* ((t_0
                 (*
                  (* (pow (/ d h) (/ 1.0 2.0)) (pow (/ d l) (/ 1.0 2.0)))
                  (- 1.0 (* (* (/ 1.0 2.0) (pow (/ (* M D) (* 2.0 d)) 2.0)) (/ h l)))))
                (t_1 (/ (fabs d) (sqrt (* h l))))
                (t_2 (* t_1 1.0)))
           (if (<= t_0 -2e-67)
             (* t_1 (fma (* (/ h l) (* (* -0.125 (* M D)) (/ D (* d d)))) M 1.0))
             (if (<= t_0 5e-217)
               t_2
               (if (<= t_0 5e+249) (* (sqrt (/ d h)) (sqrt (/ d l))) t_2)))))
        double code(double d, double h, double l, double M, double D) {
        	double t_0 = (pow((d / h), (1.0 / 2.0)) * pow((d / l), (1.0 / 2.0))) * (1.0 - (((1.0 / 2.0) * pow(((M * D) / (2.0 * d)), 2.0)) * (h / l)));
        	double t_1 = fabs(d) / sqrt((h * l));
        	double t_2 = t_1 * 1.0;
        	double tmp;
        	if (t_0 <= -2e-67) {
        		tmp = t_1 * fma(((h / l) * ((-0.125 * (M * D)) * (D / (d * d)))), M, 1.0);
        	} else if (t_0 <= 5e-217) {
        		tmp = t_2;
        	} else if (t_0 <= 5e+249) {
        		tmp = sqrt((d / h)) * sqrt((d / l));
        	} else {
        		tmp = t_2;
        	}
        	return tmp;
        }
        
        function code(d, h, l, M, D)
        	t_0 = Float64(Float64((Float64(d / h) ^ Float64(1.0 / 2.0)) * (Float64(d / l) ^ Float64(1.0 / 2.0))) * Float64(1.0 - Float64(Float64(Float64(1.0 / 2.0) * (Float64(Float64(M * D) / Float64(2.0 * d)) ^ 2.0)) * Float64(h / l))))
        	t_1 = Float64(abs(d) / sqrt(Float64(h * l)))
        	t_2 = Float64(t_1 * 1.0)
        	tmp = 0.0
        	if (t_0 <= -2e-67)
        		tmp = Float64(t_1 * fma(Float64(Float64(h / l) * Float64(Float64(-0.125 * Float64(M * D)) * Float64(D / Float64(d * d)))), M, 1.0));
        	elseif (t_0 <= 5e-217)
        		tmp = t_2;
        	elseif (t_0 <= 5e+249)
        		tmp = Float64(sqrt(Float64(d / h)) * sqrt(Float64(d / l)));
        	else
        		tmp = t_2;
        	end
        	return tmp
        end
        
        code[d_, h_, l_, M_, D_] := Block[{t$95$0 = N[(N[(N[Power[N[(d / h), $MachinePrecision], N[(1.0 / 2.0), $MachinePrecision]], $MachinePrecision] * N[Power[N[(d / l), $MachinePrecision], N[(1.0 / 2.0), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] * N[(1.0 - N[(N[(N[(1.0 / 2.0), $MachinePrecision] * N[Power[N[(N[(M * D), $MachinePrecision] / N[(2.0 * d), $MachinePrecision]), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision] * N[(h / l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[(N[Abs[d], $MachinePrecision] / N[Sqrt[N[(h * l), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t$95$1 * 1.0), $MachinePrecision]}, If[LessEqual[t$95$0, -2e-67], N[(t$95$1 * N[(N[(N[(h / l), $MachinePrecision] * N[(N[(-0.125 * N[(M * D), $MachinePrecision]), $MachinePrecision] * N[(D / N[(d * d), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * M + 1.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$0, 5e-217], t$95$2, If[LessEqual[t$95$0, 5e+249], N[(N[Sqrt[N[(d / h), $MachinePrecision]], $MachinePrecision] * N[Sqrt[N[(d / l), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]
        
        \begin{array}{l}
        
        \\
        \begin{array}{l}
        t_0 := \left({\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)} \cdot {\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right)\\
        t_1 := \frac{\left|d\right|}{\sqrt{h \cdot \ell}}\\
        t_2 := t\_1 \cdot 1\\
        \mathbf{if}\;t\_0 \leq -2 \cdot 10^{-67}:\\
        \;\;\;\;t\_1 \cdot \mathsf{fma}\left(\frac{h}{\ell} \cdot \left(\left(-0.125 \cdot \left(M \cdot D\right)\right) \cdot \frac{D}{d \cdot d}\right), M, 1\right)\\
        
        \mathbf{elif}\;t\_0 \leq 5 \cdot 10^{-217}:\\
        \;\;\;\;t\_2\\
        
        \mathbf{elif}\;t\_0 \leq 5 \cdot 10^{+249}:\\
        \;\;\;\;\sqrt{\frac{d}{h}} \cdot \sqrt{\frac{d}{\ell}}\\
        
        \mathbf{else}:\\
        \;\;\;\;t\_2\\
        
        
        \end{array}
        \end{array}
        
        Derivation
        1. Split input into 3 regimes
        2. if (*.f64 (*.f64 (pow.f64 (/.f64 d h) (/.f64 #s(literal 1 binary64) #s(literal 2 binary64))) (pow.f64 (/.f64 d l) (/.f64 #s(literal 1 binary64) #s(literal 2 binary64)))) (-.f64 #s(literal 1 binary64) (*.f64 (*.f64 (/.f64 #s(literal 1 binary64) #s(literal 2 binary64)) (pow.f64 (/.f64 (*.f64 M D) (*.f64 #s(literal 2 binary64) d)) #s(literal 2 binary64))) (/.f64 h l)))) < -1.99999999999999989e-67

          1. Initial program 66.7%

            \[\left({\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)} \cdot {\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
          2. Step-by-step derivation
            1. lift-*.f64N/A

              \[\leadsto \color{blue}{\left({\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)} \cdot {\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)}\right)} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
            2. *-commutativeN/A

              \[\leadsto \color{blue}{\left({\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right)} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
            3. lower-*.f6466.7

              \[\leadsto \color{blue}{\left({\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right)} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
            4. lift-pow.f64N/A

              \[\leadsto \left(\color{blue}{{\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)}} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
            5. lift-/.f64N/A

              \[\leadsto \left({\left(\frac{d}{\ell}\right)}^{\color{blue}{\left(\frac{1}{2}\right)}} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
            6. metadata-evalN/A

              \[\leadsto \left({\left(\frac{d}{\ell}\right)}^{\color{blue}{\frac{1}{2}}} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
            7. unpow1/2N/A

              \[\leadsto \left(\color{blue}{\sqrt{\frac{d}{\ell}}} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
            8. lower-sqrt.f6466.7

              \[\leadsto \left(\color{blue}{\sqrt{\frac{d}{\ell}}} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
            9. lift-pow.f64N/A

              \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot \color{blue}{{\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
            10. lift-/.f64N/A

              \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot {\left(\frac{d}{h}\right)}^{\color{blue}{\left(\frac{1}{2}\right)}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
            11. metadata-evalN/A

              \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot {\left(\frac{d}{h}\right)}^{\color{blue}{\frac{1}{2}}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
            12. unpow1/2N/A

              \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot \color{blue}{\sqrt{\frac{d}{h}}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
            13. lower-sqrt.f6466.7

              \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot \color{blue}{\sqrt{\frac{d}{h}}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
          3. Applied rewrites66.7%

            \[\leadsto \color{blue}{\left(\sqrt{\frac{d}{\ell}} \cdot \sqrt{\frac{d}{h}}\right)} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
          4. Step-by-step derivation
            1. lift-*.f64N/A

              \[\leadsto \color{blue}{\left(\sqrt{\frac{d}{\ell}} \cdot \sqrt{\frac{d}{h}}\right)} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
            2. lift-sqrt.f64N/A

              \[\leadsto \left(\color{blue}{\sqrt{\frac{d}{\ell}}} \cdot \sqrt{\frac{d}{h}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
            3. lift-sqrt.f64N/A

              \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot \color{blue}{\sqrt{\frac{d}{h}}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
            4. sqrt-unprodN/A

              \[\leadsto \color{blue}{\sqrt{\frac{d}{\ell} \cdot \frac{d}{h}}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
            5. lift-/.f64N/A

              \[\leadsto \sqrt{\color{blue}{\frac{d}{\ell}} \cdot \frac{d}{h}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
            6. lift-/.f64N/A

              \[\leadsto \sqrt{\frac{d}{\ell} \cdot \color{blue}{\frac{d}{h}}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
            7. frac-timesN/A

              \[\leadsto \sqrt{\color{blue}{\frac{d \cdot d}{\ell \cdot h}}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
            8. *-commutativeN/A

              \[\leadsto \sqrt{\frac{d \cdot d}{\color{blue}{h \cdot \ell}}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
            9. lift-*.f64N/A

              \[\leadsto \sqrt{\frac{d \cdot d}{\color{blue}{h \cdot \ell}}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
            10. lift-*.f64N/A

              \[\leadsto \sqrt{\frac{\color{blue}{d \cdot d}}{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
            11. sqrt-divN/A

              \[\leadsto \color{blue}{\frac{\sqrt{d \cdot d}}{\sqrt{h \cdot \ell}}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
            12. lower-unsound-sqrt.f32N/A

              \[\leadsto \frac{\color{blue}{\sqrt{d \cdot d}}}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
            13. lower-sqrt.f32N/A

              \[\leadsto \frac{\color{blue}{\sqrt{d \cdot d}}}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
            14. lift-*.f64N/A

              \[\leadsto \frac{\sqrt{\color{blue}{d \cdot d}}}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
            15. rem-sqrt-square-revN/A

              \[\leadsto \frac{\color{blue}{\left|d\right|}}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
            16. lower-unsound-/.f64N/A

              \[\leadsto \color{blue}{\frac{\left|d\right|}{\sqrt{h \cdot \ell}}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
            17. lower-fabs.f64N/A

              \[\leadsto \frac{\color{blue}{\left|d\right|}}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
            18. lower-unsound-sqrt.f6469.9

              \[\leadsto \frac{\left|d\right|}{\color{blue}{\sqrt{h \cdot \ell}}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
          5. Applied rewrites69.9%

            \[\leadsto \color{blue}{\frac{\left|d\right|}{\sqrt{h \cdot \ell}}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
          6. Step-by-step derivation
            1. lift-pow.f64N/A

              \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \color{blue}{{\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}}\right) \cdot \frac{h}{\ell}\right) \]
            2. unpow2N/A

              \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \color{blue}{\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{M \cdot D}{2 \cdot d}\right)}\right) \cdot \frac{h}{\ell}\right) \]
            3. lift-/.f64N/A

              \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\color{blue}{\frac{M \cdot D}{2 \cdot d}} \cdot \frac{M \cdot D}{2 \cdot d}\right)\right) \cdot \frac{h}{\ell}\right) \]
            4. frac-2negN/A

              \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\color{blue}{\frac{\mathsf{neg}\left(M \cdot D\right)}{\mathsf{neg}\left(2 \cdot d\right)}} \cdot \frac{M \cdot D}{2 \cdot d}\right)\right) \cdot \frac{h}{\ell}\right) \]
            5. distribute-frac-negN/A

              \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\color{blue}{\left(\mathsf{neg}\left(\frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right)} \cdot \frac{M \cdot D}{2 \cdot d}\right)\right) \cdot \frac{h}{\ell}\right) \]
            6. lift-/.f64N/A

              \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\left(\mathsf{neg}\left(\frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \color{blue}{\frac{M \cdot D}{2 \cdot d}}\right)\right) \cdot \frac{h}{\ell}\right) \]
            7. frac-2negN/A

              \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\left(\mathsf{neg}\left(\frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \color{blue}{\frac{\mathsf{neg}\left(M \cdot D\right)}{\mathsf{neg}\left(2 \cdot d\right)}}\right)\right) \cdot \frac{h}{\ell}\right) \]
            8. distribute-frac-negN/A

              \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\left(\mathsf{neg}\left(\frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \color{blue}{\left(\mathsf{neg}\left(\frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
            9. sqr-negN/A

              \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \color{blue}{\left(\frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)} \cdot \frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)}\right) \cdot \frac{h}{\ell}\right) \]
            10. lower-*.f64N/A

              \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \color{blue}{\left(\frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)} \cdot \frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)}\right) \cdot \frac{h}{\ell}\right) \]
            11. lower-/.f64N/A

              \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\color{blue}{\frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}} \cdot \frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
            12. lift-*.f64N/A

              \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{\color{blue}{M \cdot D}}{\mathsf{neg}\left(2 \cdot d\right)} \cdot \frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
            13. *-commutativeN/A

              \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{\color{blue}{D \cdot M}}{\mathsf{neg}\left(2 \cdot d\right)} \cdot \frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
            14. lift-*.f64N/A

              \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{\color{blue}{D \cdot M}}{\mathsf{neg}\left(2 \cdot d\right)} \cdot \frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
            15. lift-*.f64N/A

              \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{\mathsf{neg}\left(\color{blue}{2 \cdot d}\right)} \cdot \frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
            16. distribute-lft-neg-inN/A

              \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{\color{blue}{\left(\mathsf{neg}\left(2\right)\right) \cdot d}} \cdot \frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
            17. lower-*.f64N/A

              \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{\color{blue}{\left(\mathsf{neg}\left(2\right)\right) \cdot d}} \cdot \frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
            18. metadata-evalN/A

              \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{\color{blue}{-2} \cdot d} \cdot \frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
            19. lower-/.f64N/A

              \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{-2 \cdot d} \cdot \color{blue}{\frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}}\right)\right) \cdot \frac{h}{\ell}\right) \]
            20. lift-*.f64N/A

              \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{-2 \cdot d} \cdot \frac{\color{blue}{M \cdot D}}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
            21. *-commutativeN/A

              \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{-2 \cdot d} \cdot \frac{\color{blue}{D \cdot M}}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
            22. lift-*.f64N/A

              \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{-2 \cdot d} \cdot \frac{\color{blue}{D \cdot M}}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
            23. lift-*.f64N/A

              \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{-2 \cdot d} \cdot \frac{D \cdot M}{\mathsf{neg}\left(\color{blue}{2 \cdot d}\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
            24. distribute-lft-neg-inN/A

              \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{-2 \cdot d} \cdot \frac{D \cdot M}{\color{blue}{\left(\mathsf{neg}\left(2\right)\right) \cdot d}}\right)\right) \cdot \frac{h}{\ell}\right) \]
            25. lower-*.f64N/A

              \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{-2 \cdot d} \cdot \frac{D \cdot M}{\color{blue}{\left(\mathsf{neg}\left(2\right)\right) \cdot d}}\right)\right) \cdot \frac{h}{\ell}\right) \]
            26. metadata-eval69.9

              \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{-2 \cdot d} \cdot \frac{D \cdot M}{\color{blue}{-2} \cdot d}\right)\right) \cdot \frac{h}{\ell}\right) \]
          7. Applied rewrites69.9%

            \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \color{blue}{\left(\frac{D \cdot M}{-2 \cdot d} \cdot \frac{D \cdot M}{-2 \cdot d}\right)}\right) \cdot \frac{h}{\ell}\right) \]
          8. Applied rewrites59.0%

            \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \color{blue}{\mathsf{fma}\left(\frac{h}{\ell} \cdot \left(\left(-0.125 \cdot \left(M \cdot D\right)\right) \cdot \frac{D}{d \cdot d}\right), M, 1\right)} \]

          if -1.99999999999999989e-67 < (*.f64 (*.f64 (pow.f64 (/.f64 d h) (/.f64 #s(literal 1 binary64) #s(literal 2 binary64))) (pow.f64 (/.f64 d l) (/.f64 #s(literal 1 binary64) #s(literal 2 binary64)))) (-.f64 #s(literal 1 binary64) (*.f64 (*.f64 (/.f64 #s(literal 1 binary64) #s(literal 2 binary64)) (pow.f64 (/.f64 (*.f64 M D) (*.f64 #s(literal 2 binary64) d)) #s(literal 2 binary64))) (/.f64 h l)))) < 5.0000000000000002e-217 or 4.9999999999999996e249 < (*.f64 (*.f64 (pow.f64 (/.f64 d h) (/.f64 #s(literal 1 binary64) #s(literal 2 binary64))) (pow.f64 (/.f64 d l) (/.f64 #s(literal 1 binary64) #s(literal 2 binary64)))) (-.f64 #s(literal 1 binary64) (*.f64 (*.f64 (/.f64 #s(literal 1 binary64) #s(literal 2 binary64)) (pow.f64 (/.f64 (*.f64 M D) (*.f64 #s(literal 2 binary64) d)) #s(literal 2 binary64))) (/.f64 h l))))

          1. Initial program 66.7%

            \[\left({\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)} \cdot {\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
          2. Step-by-step derivation
            1. lift-*.f64N/A

              \[\leadsto \color{blue}{\left({\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)} \cdot {\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)}\right)} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
            2. *-commutativeN/A

              \[\leadsto \color{blue}{\left({\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right)} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
            3. lower-*.f6466.7

              \[\leadsto \color{blue}{\left({\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right)} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
            4. lift-pow.f64N/A

              \[\leadsto \left(\color{blue}{{\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)}} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
            5. lift-/.f64N/A

              \[\leadsto \left({\left(\frac{d}{\ell}\right)}^{\color{blue}{\left(\frac{1}{2}\right)}} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
            6. metadata-evalN/A

              \[\leadsto \left({\left(\frac{d}{\ell}\right)}^{\color{blue}{\frac{1}{2}}} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
            7. unpow1/2N/A

              \[\leadsto \left(\color{blue}{\sqrt{\frac{d}{\ell}}} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
            8. lower-sqrt.f6466.7

              \[\leadsto \left(\color{blue}{\sqrt{\frac{d}{\ell}}} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
            9. lift-pow.f64N/A

              \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot \color{blue}{{\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
            10. lift-/.f64N/A

              \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot {\left(\frac{d}{h}\right)}^{\color{blue}{\left(\frac{1}{2}\right)}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
            11. metadata-evalN/A

              \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot {\left(\frac{d}{h}\right)}^{\color{blue}{\frac{1}{2}}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
            12. unpow1/2N/A

              \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot \color{blue}{\sqrt{\frac{d}{h}}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
            13. lower-sqrt.f6466.7

              \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot \color{blue}{\sqrt{\frac{d}{h}}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
          3. Applied rewrites66.7%

            \[\leadsto \color{blue}{\left(\sqrt{\frac{d}{\ell}} \cdot \sqrt{\frac{d}{h}}\right)} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
          4. Step-by-step derivation
            1. lift-*.f64N/A

              \[\leadsto \color{blue}{\left(\sqrt{\frac{d}{\ell}} \cdot \sqrt{\frac{d}{h}}\right)} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
            2. lift-sqrt.f64N/A

              \[\leadsto \left(\color{blue}{\sqrt{\frac{d}{\ell}}} \cdot \sqrt{\frac{d}{h}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
            3. lift-sqrt.f64N/A

              \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot \color{blue}{\sqrt{\frac{d}{h}}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
            4. sqrt-unprodN/A

              \[\leadsto \color{blue}{\sqrt{\frac{d}{\ell} \cdot \frac{d}{h}}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
            5. lift-/.f64N/A

              \[\leadsto \sqrt{\color{blue}{\frac{d}{\ell}} \cdot \frac{d}{h}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
            6. lift-/.f64N/A

              \[\leadsto \sqrt{\frac{d}{\ell} \cdot \color{blue}{\frac{d}{h}}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
            7. frac-timesN/A

              \[\leadsto \sqrt{\color{blue}{\frac{d \cdot d}{\ell \cdot h}}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
            8. *-commutativeN/A

              \[\leadsto \sqrt{\frac{d \cdot d}{\color{blue}{h \cdot \ell}}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
            9. lift-*.f64N/A

              \[\leadsto \sqrt{\frac{d \cdot d}{\color{blue}{h \cdot \ell}}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
            10. lift-*.f64N/A

              \[\leadsto \sqrt{\frac{\color{blue}{d \cdot d}}{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
            11. sqrt-divN/A

              \[\leadsto \color{blue}{\frac{\sqrt{d \cdot d}}{\sqrt{h \cdot \ell}}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
            12. lower-unsound-sqrt.f32N/A

              \[\leadsto \frac{\color{blue}{\sqrt{d \cdot d}}}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
            13. lower-sqrt.f32N/A

              \[\leadsto \frac{\color{blue}{\sqrt{d \cdot d}}}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
            14. lift-*.f64N/A

              \[\leadsto \frac{\sqrt{\color{blue}{d \cdot d}}}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
            15. rem-sqrt-square-revN/A

              \[\leadsto \frac{\color{blue}{\left|d\right|}}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
            16. lower-unsound-/.f64N/A

              \[\leadsto \color{blue}{\frac{\left|d\right|}{\sqrt{h \cdot \ell}}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
            17. lower-fabs.f64N/A

              \[\leadsto \frac{\color{blue}{\left|d\right|}}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
            18. lower-unsound-sqrt.f6469.9

              \[\leadsto \frac{\left|d\right|}{\color{blue}{\sqrt{h \cdot \ell}}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
          5. Applied rewrites69.9%

            \[\leadsto \color{blue}{\frac{\left|d\right|}{\sqrt{h \cdot \ell}}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
          6. Step-by-step derivation
            1. lift-pow.f64N/A

              \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \color{blue}{{\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}}\right) \cdot \frac{h}{\ell}\right) \]
            2. unpow2N/A

              \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \color{blue}{\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{M \cdot D}{2 \cdot d}\right)}\right) \cdot \frac{h}{\ell}\right) \]
            3. lift-/.f64N/A

              \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\color{blue}{\frac{M \cdot D}{2 \cdot d}} \cdot \frac{M \cdot D}{2 \cdot d}\right)\right) \cdot \frac{h}{\ell}\right) \]
            4. frac-2negN/A

              \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\color{blue}{\frac{\mathsf{neg}\left(M \cdot D\right)}{\mathsf{neg}\left(2 \cdot d\right)}} \cdot \frac{M \cdot D}{2 \cdot d}\right)\right) \cdot \frac{h}{\ell}\right) \]
            5. distribute-frac-negN/A

              \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\color{blue}{\left(\mathsf{neg}\left(\frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right)} \cdot \frac{M \cdot D}{2 \cdot d}\right)\right) \cdot \frac{h}{\ell}\right) \]
            6. lift-/.f64N/A

              \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\left(\mathsf{neg}\left(\frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \color{blue}{\frac{M \cdot D}{2 \cdot d}}\right)\right) \cdot \frac{h}{\ell}\right) \]
            7. frac-2negN/A

              \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\left(\mathsf{neg}\left(\frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \color{blue}{\frac{\mathsf{neg}\left(M \cdot D\right)}{\mathsf{neg}\left(2 \cdot d\right)}}\right)\right) \cdot \frac{h}{\ell}\right) \]
            8. distribute-frac-negN/A

              \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\left(\mathsf{neg}\left(\frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \color{blue}{\left(\mathsf{neg}\left(\frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
            9. sqr-negN/A

              \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \color{blue}{\left(\frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)} \cdot \frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)}\right) \cdot \frac{h}{\ell}\right) \]
            10. lower-*.f64N/A

              \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \color{blue}{\left(\frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)} \cdot \frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)}\right) \cdot \frac{h}{\ell}\right) \]
            11. lower-/.f64N/A

              \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\color{blue}{\frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}} \cdot \frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
            12. lift-*.f64N/A

              \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{\color{blue}{M \cdot D}}{\mathsf{neg}\left(2 \cdot d\right)} \cdot \frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
            13. *-commutativeN/A

              \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{\color{blue}{D \cdot M}}{\mathsf{neg}\left(2 \cdot d\right)} \cdot \frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
            14. lift-*.f64N/A

              \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{\color{blue}{D \cdot M}}{\mathsf{neg}\left(2 \cdot d\right)} \cdot \frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
            15. lift-*.f64N/A

              \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{\mathsf{neg}\left(\color{blue}{2 \cdot d}\right)} \cdot \frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
            16. distribute-lft-neg-inN/A

              \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{\color{blue}{\left(\mathsf{neg}\left(2\right)\right) \cdot d}} \cdot \frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
            17. lower-*.f64N/A

              \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{\color{blue}{\left(\mathsf{neg}\left(2\right)\right) \cdot d}} \cdot \frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
            18. metadata-evalN/A

              \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{\color{blue}{-2} \cdot d} \cdot \frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
            19. lower-/.f64N/A

              \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{-2 \cdot d} \cdot \color{blue}{\frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}}\right)\right) \cdot \frac{h}{\ell}\right) \]
            20. lift-*.f64N/A

              \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{-2 \cdot d} \cdot \frac{\color{blue}{M \cdot D}}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
            21. *-commutativeN/A

              \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{-2 \cdot d} \cdot \frac{\color{blue}{D \cdot M}}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
            22. lift-*.f64N/A

              \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{-2 \cdot d} \cdot \frac{\color{blue}{D \cdot M}}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
            23. lift-*.f64N/A

              \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{-2 \cdot d} \cdot \frac{D \cdot M}{\mathsf{neg}\left(\color{blue}{2 \cdot d}\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
            24. distribute-lft-neg-inN/A

              \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{-2 \cdot d} \cdot \frac{D \cdot M}{\color{blue}{\left(\mathsf{neg}\left(2\right)\right) \cdot d}}\right)\right) \cdot \frac{h}{\ell}\right) \]
            25. lower-*.f64N/A

              \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{-2 \cdot d} \cdot \frac{D \cdot M}{\color{blue}{\left(\mathsf{neg}\left(2\right)\right) \cdot d}}\right)\right) \cdot \frac{h}{\ell}\right) \]
            26. metadata-eval69.9

              \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{-2 \cdot d} \cdot \frac{D \cdot M}{\color{blue}{-2} \cdot d}\right)\right) \cdot \frac{h}{\ell}\right) \]
          7. Applied rewrites69.9%

            \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \color{blue}{\left(\frac{D \cdot M}{-2 \cdot d} \cdot \frac{D \cdot M}{-2 \cdot d}\right)}\right) \cdot \frac{h}{\ell}\right) \]
          8. Taylor expanded in d around inf

            \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \color{blue}{1} \]
          9. Step-by-step derivation
            1. Applied rewrites42.5%

              \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \color{blue}{1} \]

            if 5.0000000000000002e-217 < (*.f64 (*.f64 (pow.f64 (/.f64 d h) (/.f64 #s(literal 1 binary64) #s(literal 2 binary64))) (pow.f64 (/.f64 d l) (/.f64 #s(literal 1 binary64) #s(literal 2 binary64)))) (-.f64 #s(literal 1 binary64) (*.f64 (*.f64 (/.f64 #s(literal 1 binary64) #s(literal 2 binary64)) (pow.f64 (/.f64 (*.f64 M D) (*.f64 #s(literal 2 binary64) d)) #s(literal 2 binary64))) (/.f64 h l)))) < 4.9999999999999996e249

            1. Initial program 66.7%

              \[\left({\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)} \cdot {\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
            2. Step-by-step derivation
              1. lift-*.f64N/A

                \[\leadsto \color{blue}{\left({\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)} \cdot {\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)}\right)} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
              2. *-commutativeN/A

                \[\leadsto \color{blue}{\left({\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right)} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
              3. lower-*.f6466.7

                \[\leadsto \color{blue}{\left({\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right)} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
              4. lift-pow.f64N/A

                \[\leadsto \left(\color{blue}{{\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)}} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
              5. lift-/.f64N/A

                \[\leadsto \left({\left(\frac{d}{\ell}\right)}^{\color{blue}{\left(\frac{1}{2}\right)}} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
              6. metadata-evalN/A

                \[\leadsto \left({\left(\frac{d}{\ell}\right)}^{\color{blue}{\frac{1}{2}}} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
              7. unpow1/2N/A

                \[\leadsto \left(\color{blue}{\sqrt{\frac{d}{\ell}}} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
              8. lower-sqrt.f6466.7

                \[\leadsto \left(\color{blue}{\sqrt{\frac{d}{\ell}}} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
              9. lift-pow.f64N/A

                \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot \color{blue}{{\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
              10. lift-/.f64N/A

                \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot {\left(\frac{d}{h}\right)}^{\color{blue}{\left(\frac{1}{2}\right)}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
              11. metadata-evalN/A

                \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot {\left(\frac{d}{h}\right)}^{\color{blue}{\frac{1}{2}}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
              12. unpow1/2N/A

                \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot \color{blue}{\sqrt{\frac{d}{h}}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
              13. lower-sqrt.f6466.7

                \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot \color{blue}{\sqrt{\frac{d}{h}}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
            3. Applied rewrites66.7%

              \[\leadsto \color{blue}{\left(\sqrt{\frac{d}{\ell}} \cdot \sqrt{\frac{d}{h}}\right)} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
            4. Applied rewrites54.3%

              \[\leadsto \color{blue}{\left(\mathsf{fma}\left(\left(-0.125 \cdot \frac{\left(D \cdot M\right) \cdot D}{d \cdot d}\right) \cdot M, \frac{h}{\ell}, 1\right) \cdot \sqrt{\frac{d}{\ell}}\right) \cdot \sqrt{\frac{d}{h}}} \]
            5. Taylor expanded in l around inf

              \[\leadsto \color{blue}{\sqrt{\frac{d}{h}} \cdot \sqrt{\frac{d}{\ell}}} \]
            6. Step-by-step derivation
              1. lower-*.f64N/A

                \[\leadsto \sqrt{\frac{d}{h}} \cdot \color{blue}{\sqrt{\frac{d}{\ell}}} \]
              2. lower-sqrt.f64N/A

                \[\leadsto \sqrt{\frac{d}{h}} \cdot \sqrt{\color{blue}{\frac{d}{\ell}}} \]
              3. lower-/.f64N/A

                \[\leadsto \sqrt{\frac{d}{h}} \cdot \sqrt{\frac{\color{blue}{d}}{\ell}} \]
              4. lower-sqrt.f64N/A

                \[\leadsto \sqrt{\frac{d}{h}} \cdot \sqrt{\frac{d}{\ell}} \]
              5. lower-/.f6438.9

                \[\leadsto \sqrt{\frac{d}{h}} \cdot \sqrt{\frac{d}{\ell}} \]
            7. Applied rewrites38.9%

              \[\leadsto \color{blue}{\sqrt{\frac{d}{h}} \cdot \sqrt{\frac{d}{\ell}}} \]
          10. Recombined 3 regimes into one program.
          11. Add Preprocessing

          Alternative 8: 69.0% accurate, 0.3× speedup?

          \[\begin{array}{l} \\ \begin{array}{l} t_0 := \left({\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)} \cdot {\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right)\\ t_1 := \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot 1\\ \mathbf{if}\;t\_0 \leq -4 \cdot 10^{-84}:\\ \;\;\;\;\frac{\mathsf{fma}\left(\left(\left(M \cdot D\right) \cdot \left(\frac{D}{d \cdot d} \cdot M\right)\right) \cdot -0.125, \frac{h}{\ell}, 1\right) \cdot \left|d\right|}{\sqrt{\ell \cdot h}}\\ \mathbf{elif}\;t\_0 \leq 5 \cdot 10^{-217}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t\_0 \leq 5 \cdot 10^{+249}:\\ \;\;\;\;\sqrt{\frac{d}{h}} \cdot \sqrt{\frac{d}{\ell}}\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
          (FPCore (d h l M D)
           :precision binary64
           (let* ((t_0
                   (*
                    (* (pow (/ d h) (/ 1.0 2.0)) (pow (/ d l) (/ 1.0 2.0)))
                    (- 1.0 (* (* (/ 1.0 2.0) (pow (/ (* M D) (* 2.0 d)) 2.0)) (/ h l)))))
                  (t_1 (* (/ (fabs d) (sqrt (* h l))) 1.0)))
             (if (<= t_0 -4e-84)
               (/
                (* (fma (* (* (* M D) (* (/ D (* d d)) M)) -0.125) (/ h l) 1.0) (fabs d))
                (sqrt (* l h)))
               (if (<= t_0 5e-217)
                 t_1
                 (if (<= t_0 5e+249) (* (sqrt (/ d h)) (sqrt (/ d l))) t_1)))))
          double code(double d, double h, double l, double M, double D) {
          	double t_0 = (pow((d / h), (1.0 / 2.0)) * pow((d / l), (1.0 / 2.0))) * (1.0 - (((1.0 / 2.0) * pow(((M * D) / (2.0 * d)), 2.0)) * (h / l)));
          	double t_1 = (fabs(d) / sqrt((h * l))) * 1.0;
          	double tmp;
          	if (t_0 <= -4e-84) {
          		tmp = (fma((((M * D) * ((D / (d * d)) * M)) * -0.125), (h / l), 1.0) * fabs(d)) / sqrt((l * h));
          	} else if (t_0 <= 5e-217) {
          		tmp = t_1;
          	} else if (t_0 <= 5e+249) {
          		tmp = sqrt((d / h)) * sqrt((d / l));
          	} else {
          		tmp = t_1;
          	}
          	return tmp;
          }
          
          function code(d, h, l, M, D)
          	t_0 = Float64(Float64((Float64(d / h) ^ Float64(1.0 / 2.0)) * (Float64(d / l) ^ Float64(1.0 / 2.0))) * Float64(1.0 - Float64(Float64(Float64(1.0 / 2.0) * (Float64(Float64(M * D) / Float64(2.0 * d)) ^ 2.0)) * Float64(h / l))))
          	t_1 = Float64(Float64(abs(d) / sqrt(Float64(h * l))) * 1.0)
          	tmp = 0.0
          	if (t_0 <= -4e-84)
          		tmp = Float64(Float64(fma(Float64(Float64(Float64(M * D) * Float64(Float64(D / Float64(d * d)) * M)) * -0.125), Float64(h / l), 1.0) * abs(d)) / sqrt(Float64(l * h)));
          	elseif (t_0 <= 5e-217)
          		tmp = t_1;
          	elseif (t_0 <= 5e+249)
          		tmp = Float64(sqrt(Float64(d / h)) * sqrt(Float64(d / l)));
          	else
          		tmp = t_1;
          	end
          	return tmp
          end
          
          code[d_, h_, l_, M_, D_] := Block[{t$95$0 = N[(N[(N[Power[N[(d / h), $MachinePrecision], N[(1.0 / 2.0), $MachinePrecision]], $MachinePrecision] * N[Power[N[(d / l), $MachinePrecision], N[(1.0 / 2.0), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] * N[(1.0 - N[(N[(N[(1.0 / 2.0), $MachinePrecision] * N[Power[N[(N[(M * D), $MachinePrecision] / N[(2.0 * d), $MachinePrecision]), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision] * N[(h / l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[(N[(N[Abs[d], $MachinePrecision] / N[Sqrt[N[(h * l), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] * 1.0), $MachinePrecision]}, If[LessEqual[t$95$0, -4e-84], N[(N[(N[(N[(N[(N[(M * D), $MachinePrecision] * N[(N[(D / N[(d * d), $MachinePrecision]), $MachinePrecision] * M), $MachinePrecision]), $MachinePrecision] * -0.125), $MachinePrecision] * N[(h / l), $MachinePrecision] + 1.0), $MachinePrecision] * N[Abs[d], $MachinePrecision]), $MachinePrecision] / N[Sqrt[N[(l * h), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$0, 5e-217], t$95$1, If[LessEqual[t$95$0, 5e+249], N[(N[Sqrt[N[(d / h), $MachinePrecision]], $MachinePrecision] * N[Sqrt[N[(d / l), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
          
          \begin{array}{l}
          
          \\
          \begin{array}{l}
          t_0 := \left({\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)} \cdot {\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right)\\
          t_1 := \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot 1\\
          \mathbf{if}\;t\_0 \leq -4 \cdot 10^{-84}:\\
          \;\;\;\;\frac{\mathsf{fma}\left(\left(\left(M \cdot D\right) \cdot \left(\frac{D}{d \cdot d} \cdot M\right)\right) \cdot -0.125, \frac{h}{\ell}, 1\right) \cdot \left|d\right|}{\sqrt{\ell \cdot h}}\\
          
          \mathbf{elif}\;t\_0 \leq 5 \cdot 10^{-217}:\\
          \;\;\;\;t\_1\\
          
          \mathbf{elif}\;t\_0 \leq 5 \cdot 10^{+249}:\\
          \;\;\;\;\sqrt{\frac{d}{h}} \cdot \sqrt{\frac{d}{\ell}}\\
          
          \mathbf{else}:\\
          \;\;\;\;t\_1\\
          
          
          \end{array}
          \end{array}
          
          Derivation
          1. Split input into 3 regimes
          2. if (*.f64 (*.f64 (pow.f64 (/.f64 d h) (/.f64 #s(literal 1 binary64) #s(literal 2 binary64))) (pow.f64 (/.f64 d l) (/.f64 #s(literal 1 binary64) #s(literal 2 binary64)))) (-.f64 #s(literal 1 binary64) (*.f64 (*.f64 (/.f64 #s(literal 1 binary64) #s(literal 2 binary64)) (pow.f64 (/.f64 (*.f64 M D) (*.f64 #s(literal 2 binary64) d)) #s(literal 2 binary64))) (/.f64 h l)))) < -4.0000000000000001e-84

            1. Initial program 66.7%

              \[\left({\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)} \cdot {\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
            2. Step-by-step derivation
              1. lift-*.f64N/A

                \[\leadsto \color{blue}{\left({\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)} \cdot {\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)}\right)} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
              2. *-commutativeN/A

                \[\leadsto \color{blue}{\left({\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right)} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
              3. lower-*.f6466.7

                \[\leadsto \color{blue}{\left({\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right)} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
              4. lift-pow.f64N/A

                \[\leadsto \left(\color{blue}{{\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)}} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
              5. lift-/.f64N/A

                \[\leadsto \left({\left(\frac{d}{\ell}\right)}^{\color{blue}{\left(\frac{1}{2}\right)}} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
              6. metadata-evalN/A

                \[\leadsto \left({\left(\frac{d}{\ell}\right)}^{\color{blue}{\frac{1}{2}}} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
              7. unpow1/2N/A

                \[\leadsto \left(\color{blue}{\sqrt{\frac{d}{\ell}}} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
              8. lower-sqrt.f6466.7

                \[\leadsto \left(\color{blue}{\sqrt{\frac{d}{\ell}}} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
              9. lift-pow.f64N/A

                \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot \color{blue}{{\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
              10. lift-/.f64N/A

                \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot {\left(\frac{d}{h}\right)}^{\color{blue}{\left(\frac{1}{2}\right)}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
              11. metadata-evalN/A

                \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot {\left(\frac{d}{h}\right)}^{\color{blue}{\frac{1}{2}}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
              12. unpow1/2N/A

                \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot \color{blue}{\sqrt{\frac{d}{h}}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
              13. lower-sqrt.f6466.7

                \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot \color{blue}{\sqrt{\frac{d}{h}}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
            3. Applied rewrites66.7%

              \[\leadsto \color{blue}{\left(\sqrt{\frac{d}{\ell}} \cdot \sqrt{\frac{d}{h}}\right)} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
            4. Step-by-step derivation
              1. lift-*.f64N/A

                \[\leadsto \color{blue}{\left(\sqrt{\frac{d}{\ell}} \cdot \sqrt{\frac{d}{h}}\right)} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
              2. lift-sqrt.f64N/A

                \[\leadsto \left(\color{blue}{\sqrt{\frac{d}{\ell}}} \cdot \sqrt{\frac{d}{h}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
              3. lift-sqrt.f64N/A

                \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot \color{blue}{\sqrt{\frac{d}{h}}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
              4. sqrt-unprodN/A

                \[\leadsto \color{blue}{\sqrt{\frac{d}{\ell} \cdot \frac{d}{h}}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
              5. lift-/.f64N/A

                \[\leadsto \sqrt{\color{blue}{\frac{d}{\ell}} \cdot \frac{d}{h}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
              6. lift-/.f64N/A

                \[\leadsto \sqrt{\frac{d}{\ell} \cdot \color{blue}{\frac{d}{h}}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
              7. frac-timesN/A

                \[\leadsto \sqrt{\color{blue}{\frac{d \cdot d}{\ell \cdot h}}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
              8. *-commutativeN/A

                \[\leadsto \sqrt{\frac{d \cdot d}{\color{blue}{h \cdot \ell}}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
              9. lift-*.f64N/A

                \[\leadsto \sqrt{\frac{d \cdot d}{\color{blue}{h \cdot \ell}}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
              10. lift-*.f64N/A

                \[\leadsto \sqrt{\frac{\color{blue}{d \cdot d}}{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
              11. sqrt-divN/A

                \[\leadsto \color{blue}{\frac{\sqrt{d \cdot d}}{\sqrt{h \cdot \ell}}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
              12. lower-unsound-sqrt.f32N/A

                \[\leadsto \frac{\color{blue}{\sqrt{d \cdot d}}}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
              13. lower-sqrt.f32N/A

                \[\leadsto \frac{\color{blue}{\sqrt{d \cdot d}}}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
              14. lift-*.f64N/A

                \[\leadsto \frac{\sqrt{\color{blue}{d \cdot d}}}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
              15. rem-sqrt-square-revN/A

                \[\leadsto \frac{\color{blue}{\left|d\right|}}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
              16. lower-unsound-/.f64N/A

                \[\leadsto \color{blue}{\frac{\left|d\right|}{\sqrt{h \cdot \ell}}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
              17. lower-fabs.f64N/A

                \[\leadsto \frac{\color{blue}{\left|d\right|}}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
              18. lower-unsound-sqrt.f6469.9

                \[\leadsto \frac{\left|d\right|}{\color{blue}{\sqrt{h \cdot \ell}}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
            5. Applied rewrites69.9%

              \[\leadsto \color{blue}{\frac{\left|d\right|}{\sqrt{h \cdot \ell}}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
            6. Step-by-step derivation
              1. lift-pow.f64N/A

                \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \color{blue}{{\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}}\right) \cdot \frac{h}{\ell}\right) \]
              2. unpow2N/A

                \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \color{blue}{\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{M \cdot D}{2 \cdot d}\right)}\right) \cdot \frac{h}{\ell}\right) \]
              3. lift-/.f64N/A

                \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\color{blue}{\frac{M \cdot D}{2 \cdot d}} \cdot \frac{M \cdot D}{2 \cdot d}\right)\right) \cdot \frac{h}{\ell}\right) \]
              4. frac-2negN/A

                \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\color{blue}{\frac{\mathsf{neg}\left(M \cdot D\right)}{\mathsf{neg}\left(2 \cdot d\right)}} \cdot \frac{M \cdot D}{2 \cdot d}\right)\right) \cdot \frac{h}{\ell}\right) \]
              5. distribute-frac-negN/A

                \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\color{blue}{\left(\mathsf{neg}\left(\frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right)} \cdot \frac{M \cdot D}{2 \cdot d}\right)\right) \cdot \frac{h}{\ell}\right) \]
              6. lift-/.f64N/A

                \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\left(\mathsf{neg}\left(\frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \color{blue}{\frac{M \cdot D}{2 \cdot d}}\right)\right) \cdot \frac{h}{\ell}\right) \]
              7. frac-2negN/A

                \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\left(\mathsf{neg}\left(\frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \color{blue}{\frac{\mathsf{neg}\left(M \cdot D\right)}{\mathsf{neg}\left(2 \cdot d\right)}}\right)\right) \cdot \frac{h}{\ell}\right) \]
              8. distribute-frac-negN/A

                \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\left(\mathsf{neg}\left(\frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \color{blue}{\left(\mathsf{neg}\left(\frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
              9. sqr-negN/A

                \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \color{blue}{\left(\frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)} \cdot \frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)}\right) \cdot \frac{h}{\ell}\right) \]
              10. lower-*.f64N/A

                \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \color{blue}{\left(\frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)} \cdot \frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)}\right) \cdot \frac{h}{\ell}\right) \]
              11. lower-/.f64N/A

                \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\color{blue}{\frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}} \cdot \frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
              12. lift-*.f64N/A

                \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{\color{blue}{M \cdot D}}{\mathsf{neg}\left(2 \cdot d\right)} \cdot \frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
              13. *-commutativeN/A

                \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{\color{blue}{D \cdot M}}{\mathsf{neg}\left(2 \cdot d\right)} \cdot \frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
              14. lift-*.f64N/A

                \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{\color{blue}{D \cdot M}}{\mathsf{neg}\left(2 \cdot d\right)} \cdot \frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
              15. lift-*.f64N/A

                \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{\mathsf{neg}\left(\color{blue}{2 \cdot d}\right)} \cdot \frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
              16. distribute-lft-neg-inN/A

                \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{\color{blue}{\left(\mathsf{neg}\left(2\right)\right) \cdot d}} \cdot \frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
              17. lower-*.f64N/A

                \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{\color{blue}{\left(\mathsf{neg}\left(2\right)\right) \cdot d}} \cdot \frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
              18. metadata-evalN/A

                \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{\color{blue}{-2} \cdot d} \cdot \frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
              19. lower-/.f64N/A

                \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{-2 \cdot d} \cdot \color{blue}{\frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}}\right)\right) \cdot \frac{h}{\ell}\right) \]
              20. lift-*.f64N/A

                \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{-2 \cdot d} \cdot \frac{\color{blue}{M \cdot D}}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
              21. *-commutativeN/A

                \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{-2 \cdot d} \cdot \frac{\color{blue}{D \cdot M}}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
              22. lift-*.f64N/A

                \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{-2 \cdot d} \cdot \frac{\color{blue}{D \cdot M}}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
              23. lift-*.f64N/A

                \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{-2 \cdot d} \cdot \frac{D \cdot M}{\mathsf{neg}\left(\color{blue}{2 \cdot d}\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
              24. distribute-lft-neg-inN/A

                \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{-2 \cdot d} \cdot \frac{D \cdot M}{\color{blue}{\left(\mathsf{neg}\left(2\right)\right) \cdot d}}\right)\right) \cdot \frac{h}{\ell}\right) \]
              25. lower-*.f64N/A

                \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{-2 \cdot d} \cdot \frac{D \cdot M}{\color{blue}{\left(\mathsf{neg}\left(2\right)\right) \cdot d}}\right)\right) \cdot \frac{h}{\ell}\right) \]
              26. metadata-eval69.9

                \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{-2 \cdot d} \cdot \frac{D \cdot M}{\color{blue}{-2} \cdot d}\right)\right) \cdot \frac{h}{\ell}\right) \]
            7. Applied rewrites69.9%

              \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \color{blue}{\left(\frac{D \cdot M}{-2 \cdot d} \cdot \frac{D \cdot M}{-2 \cdot d}\right)}\right) \cdot \frac{h}{\ell}\right) \]
            8. Applied rewrites60.4%

              \[\leadsto \color{blue}{\frac{\mathsf{fma}\left(\left(\left(M \cdot D\right) \cdot \left(\frac{D}{d \cdot d} \cdot M\right)\right) \cdot -0.125, \frac{h}{\ell}, 1\right) \cdot \left|d\right|}{\sqrt{\ell \cdot h}}} \]

            if -4.0000000000000001e-84 < (*.f64 (*.f64 (pow.f64 (/.f64 d h) (/.f64 #s(literal 1 binary64) #s(literal 2 binary64))) (pow.f64 (/.f64 d l) (/.f64 #s(literal 1 binary64) #s(literal 2 binary64)))) (-.f64 #s(literal 1 binary64) (*.f64 (*.f64 (/.f64 #s(literal 1 binary64) #s(literal 2 binary64)) (pow.f64 (/.f64 (*.f64 M D) (*.f64 #s(literal 2 binary64) d)) #s(literal 2 binary64))) (/.f64 h l)))) < 5.0000000000000002e-217 or 4.9999999999999996e249 < (*.f64 (*.f64 (pow.f64 (/.f64 d h) (/.f64 #s(literal 1 binary64) #s(literal 2 binary64))) (pow.f64 (/.f64 d l) (/.f64 #s(literal 1 binary64) #s(literal 2 binary64)))) (-.f64 #s(literal 1 binary64) (*.f64 (*.f64 (/.f64 #s(literal 1 binary64) #s(literal 2 binary64)) (pow.f64 (/.f64 (*.f64 M D) (*.f64 #s(literal 2 binary64) d)) #s(literal 2 binary64))) (/.f64 h l))))

            1. Initial program 66.7%

              \[\left({\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)} \cdot {\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
            2. Step-by-step derivation
              1. lift-*.f64N/A

                \[\leadsto \color{blue}{\left({\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)} \cdot {\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)}\right)} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
              2. *-commutativeN/A

                \[\leadsto \color{blue}{\left({\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right)} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
              3. lower-*.f6466.7

                \[\leadsto \color{blue}{\left({\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right)} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
              4. lift-pow.f64N/A

                \[\leadsto \left(\color{blue}{{\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)}} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
              5. lift-/.f64N/A

                \[\leadsto \left({\left(\frac{d}{\ell}\right)}^{\color{blue}{\left(\frac{1}{2}\right)}} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
              6. metadata-evalN/A

                \[\leadsto \left({\left(\frac{d}{\ell}\right)}^{\color{blue}{\frac{1}{2}}} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
              7. unpow1/2N/A

                \[\leadsto \left(\color{blue}{\sqrt{\frac{d}{\ell}}} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
              8. lower-sqrt.f6466.7

                \[\leadsto \left(\color{blue}{\sqrt{\frac{d}{\ell}}} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
              9. lift-pow.f64N/A

                \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot \color{blue}{{\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
              10. lift-/.f64N/A

                \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot {\left(\frac{d}{h}\right)}^{\color{blue}{\left(\frac{1}{2}\right)}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
              11. metadata-evalN/A

                \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot {\left(\frac{d}{h}\right)}^{\color{blue}{\frac{1}{2}}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
              12. unpow1/2N/A

                \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot \color{blue}{\sqrt{\frac{d}{h}}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
              13. lower-sqrt.f6466.7

                \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot \color{blue}{\sqrt{\frac{d}{h}}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
            3. Applied rewrites66.7%

              \[\leadsto \color{blue}{\left(\sqrt{\frac{d}{\ell}} \cdot \sqrt{\frac{d}{h}}\right)} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
            4. Step-by-step derivation
              1. lift-*.f64N/A

                \[\leadsto \color{blue}{\left(\sqrt{\frac{d}{\ell}} \cdot \sqrt{\frac{d}{h}}\right)} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
              2. lift-sqrt.f64N/A

                \[\leadsto \left(\color{blue}{\sqrt{\frac{d}{\ell}}} \cdot \sqrt{\frac{d}{h}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
              3. lift-sqrt.f64N/A

                \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot \color{blue}{\sqrt{\frac{d}{h}}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
              4. sqrt-unprodN/A

                \[\leadsto \color{blue}{\sqrt{\frac{d}{\ell} \cdot \frac{d}{h}}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
              5. lift-/.f64N/A

                \[\leadsto \sqrt{\color{blue}{\frac{d}{\ell}} \cdot \frac{d}{h}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
              6. lift-/.f64N/A

                \[\leadsto \sqrt{\frac{d}{\ell} \cdot \color{blue}{\frac{d}{h}}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
              7. frac-timesN/A

                \[\leadsto \sqrt{\color{blue}{\frac{d \cdot d}{\ell \cdot h}}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
              8. *-commutativeN/A

                \[\leadsto \sqrt{\frac{d \cdot d}{\color{blue}{h \cdot \ell}}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
              9. lift-*.f64N/A

                \[\leadsto \sqrt{\frac{d \cdot d}{\color{blue}{h \cdot \ell}}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
              10. lift-*.f64N/A

                \[\leadsto \sqrt{\frac{\color{blue}{d \cdot d}}{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
              11. sqrt-divN/A

                \[\leadsto \color{blue}{\frac{\sqrt{d \cdot d}}{\sqrt{h \cdot \ell}}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
              12. lower-unsound-sqrt.f32N/A

                \[\leadsto \frac{\color{blue}{\sqrt{d \cdot d}}}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
              13. lower-sqrt.f32N/A

                \[\leadsto \frac{\color{blue}{\sqrt{d \cdot d}}}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
              14. lift-*.f64N/A

                \[\leadsto \frac{\sqrt{\color{blue}{d \cdot d}}}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
              15. rem-sqrt-square-revN/A

                \[\leadsto \frac{\color{blue}{\left|d\right|}}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
              16. lower-unsound-/.f64N/A

                \[\leadsto \color{blue}{\frac{\left|d\right|}{\sqrt{h \cdot \ell}}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
              17. lower-fabs.f64N/A

                \[\leadsto \frac{\color{blue}{\left|d\right|}}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
              18. lower-unsound-sqrt.f6469.9

                \[\leadsto \frac{\left|d\right|}{\color{blue}{\sqrt{h \cdot \ell}}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
            5. Applied rewrites69.9%

              \[\leadsto \color{blue}{\frac{\left|d\right|}{\sqrt{h \cdot \ell}}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
            6. Step-by-step derivation
              1. lift-pow.f64N/A

                \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \color{blue}{{\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}}\right) \cdot \frac{h}{\ell}\right) \]
              2. unpow2N/A

                \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \color{blue}{\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{M \cdot D}{2 \cdot d}\right)}\right) \cdot \frac{h}{\ell}\right) \]
              3. lift-/.f64N/A

                \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\color{blue}{\frac{M \cdot D}{2 \cdot d}} \cdot \frac{M \cdot D}{2 \cdot d}\right)\right) \cdot \frac{h}{\ell}\right) \]
              4. frac-2negN/A

                \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\color{blue}{\frac{\mathsf{neg}\left(M \cdot D\right)}{\mathsf{neg}\left(2 \cdot d\right)}} \cdot \frac{M \cdot D}{2 \cdot d}\right)\right) \cdot \frac{h}{\ell}\right) \]
              5. distribute-frac-negN/A

                \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\color{blue}{\left(\mathsf{neg}\left(\frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right)} \cdot \frac{M \cdot D}{2 \cdot d}\right)\right) \cdot \frac{h}{\ell}\right) \]
              6. lift-/.f64N/A

                \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\left(\mathsf{neg}\left(\frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \color{blue}{\frac{M \cdot D}{2 \cdot d}}\right)\right) \cdot \frac{h}{\ell}\right) \]
              7. frac-2negN/A

                \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\left(\mathsf{neg}\left(\frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \color{blue}{\frac{\mathsf{neg}\left(M \cdot D\right)}{\mathsf{neg}\left(2 \cdot d\right)}}\right)\right) \cdot \frac{h}{\ell}\right) \]
              8. distribute-frac-negN/A

                \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\left(\mathsf{neg}\left(\frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \color{blue}{\left(\mathsf{neg}\left(\frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
              9. sqr-negN/A

                \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \color{blue}{\left(\frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)} \cdot \frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)}\right) \cdot \frac{h}{\ell}\right) \]
              10. lower-*.f64N/A

                \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \color{blue}{\left(\frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)} \cdot \frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)}\right) \cdot \frac{h}{\ell}\right) \]
              11. lower-/.f64N/A

                \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\color{blue}{\frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}} \cdot \frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
              12. lift-*.f64N/A

                \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{\color{blue}{M \cdot D}}{\mathsf{neg}\left(2 \cdot d\right)} \cdot \frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
              13. *-commutativeN/A

                \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{\color{blue}{D \cdot M}}{\mathsf{neg}\left(2 \cdot d\right)} \cdot \frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
              14. lift-*.f64N/A

                \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{\color{blue}{D \cdot M}}{\mathsf{neg}\left(2 \cdot d\right)} \cdot \frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
              15. lift-*.f64N/A

                \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{\mathsf{neg}\left(\color{blue}{2 \cdot d}\right)} \cdot \frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
              16. distribute-lft-neg-inN/A

                \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{\color{blue}{\left(\mathsf{neg}\left(2\right)\right) \cdot d}} \cdot \frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
              17. lower-*.f64N/A

                \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{\color{blue}{\left(\mathsf{neg}\left(2\right)\right) \cdot d}} \cdot \frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
              18. metadata-evalN/A

                \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{\color{blue}{-2} \cdot d} \cdot \frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
              19. lower-/.f64N/A

                \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{-2 \cdot d} \cdot \color{blue}{\frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}}\right)\right) \cdot \frac{h}{\ell}\right) \]
              20. lift-*.f64N/A

                \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{-2 \cdot d} \cdot \frac{\color{blue}{M \cdot D}}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
              21. *-commutativeN/A

                \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{-2 \cdot d} \cdot \frac{\color{blue}{D \cdot M}}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
              22. lift-*.f64N/A

                \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{-2 \cdot d} \cdot \frac{\color{blue}{D \cdot M}}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
              23. lift-*.f64N/A

                \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{-2 \cdot d} \cdot \frac{D \cdot M}{\mathsf{neg}\left(\color{blue}{2 \cdot d}\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
              24. distribute-lft-neg-inN/A

                \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{-2 \cdot d} \cdot \frac{D \cdot M}{\color{blue}{\left(\mathsf{neg}\left(2\right)\right) \cdot d}}\right)\right) \cdot \frac{h}{\ell}\right) \]
              25. lower-*.f64N/A

                \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{-2 \cdot d} \cdot \frac{D \cdot M}{\color{blue}{\left(\mathsf{neg}\left(2\right)\right) \cdot d}}\right)\right) \cdot \frac{h}{\ell}\right) \]
              26. metadata-eval69.9

                \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{-2 \cdot d} \cdot \frac{D \cdot M}{\color{blue}{-2} \cdot d}\right)\right) \cdot \frac{h}{\ell}\right) \]
            7. Applied rewrites69.9%

              \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \color{blue}{\left(\frac{D \cdot M}{-2 \cdot d} \cdot \frac{D \cdot M}{-2 \cdot d}\right)}\right) \cdot \frac{h}{\ell}\right) \]
            8. Taylor expanded in d around inf

              \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \color{blue}{1} \]
            9. Step-by-step derivation
              1. Applied rewrites42.5%

                \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \color{blue}{1} \]

              if 5.0000000000000002e-217 < (*.f64 (*.f64 (pow.f64 (/.f64 d h) (/.f64 #s(literal 1 binary64) #s(literal 2 binary64))) (pow.f64 (/.f64 d l) (/.f64 #s(literal 1 binary64) #s(literal 2 binary64)))) (-.f64 #s(literal 1 binary64) (*.f64 (*.f64 (/.f64 #s(literal 1 binary64) #s(literal 2 binary64)) (pow.f64 (/.f64 (*.f64 M D) (*.f64 #s(literal 2 binary64) d)) #s(literal 2 binary64))) (/.f64 h l)))) < 4.9999999999999996e249

              1. Initial program 66.7%

                \[\left({\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)} \cdot {\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
              2. Step-by-step derivation
                1. lift-*.f64N/A

                  \[\leadsto \color{blue}{\left({\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)} \cdot {\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)}\right)} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                2. *-commutativeN/A

                  \[\leadsto \color{blue}{\left({\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right)} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                3. lower-*.f6466.7

                  \[\leadsto \color{blue}{\left({\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right)} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                4. lift-pow.f64N/A

                  \[\leadsto \left(\color{blue}{{\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)}} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                5. lift-/.f64N/A

                  \[\leadsto \left({\left(\frac{d}{\ell}\right)}^{\color{blue}{\left(\frac{1}{2}\right)}} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                6. metadata-evalN/A

                  \[\leadsto \left({\left(\frac{d}{\ell}\right)}^{\color{blue}{\frac{1}{2}}} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                7. unpow1/2N/A

                  \[\leadsto \left(\color{blue}{\sqrt{\frac{d}{\ell}}} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                8. lower-sqrt.f6466.7

                  \[\leadsto \left(\color{blue}{\sqrt{\frac{d}{\ell}}} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                9. lift-pow.f64N/A

                  \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot \color{blue}{{\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                10. lift-/.f64N/A

                  \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot {\left(\frac{d}{h}\right)}^{\color{blue}{\left(\frac{1}{2}\right)}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                11. metadata-evalN/A

                  \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot {\left(\frac{d}{h}\right)}^{\color{blue}{\frac{1}{2}}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                12. unpow1/2N/A

                  \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot \color{blue}{\sqrt{\frac{d}{h}}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                13. lower-sqrt.f6466.7

                  \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot \color{blue}{\sqrt{\frac{d}{h}}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
              3. Applied rewrites66.7%

                \[\leadsto \color{blue}{\left(\sqrt{\frac{d}{\ell}} \cdot \sqrt{\frac{d}{h}}\right)} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
              4. Applied rewrites54.3%

                \[\leadsto \color{blue}{\left(\mathsf{fma}\left(\left(-0.125 \cdot \frac{\left(D \cdot M\right) \cdot D}{d \cdot d}\right) \cdot M, \frac{h}{\ell}, 1\right) \cdot \sqrt{\frac{d}{\ell}}\right) \cdot \sqrt{\frac{d}{h}}} \]
              5. Taylor expanded in l around inf

                \[\leadsto \color{blue}{\sqrt{\frac{d}{h}} \cdot \sqrt{\frac{d}{\ell}}} \]
              6. Step-by-step derivation
                1. lower-*.f64N/A

                  \[\leadsto \sqrt{\frac{d}{h}} \cdot \color{blue}{\sqrt{\frac{d}{\ell}}} \]
                2. lower-sqrt.f64N/A

                  \[\leadsto \sqrt{\frac{d}{h}} \cdot \sqrt{\color{blue}{\frac{d}{\ell}}} \]
                3. lower-/.f64N/A

                  \[\leadsto \sqrt{\frac{d}{h}} \cdot \sqrt{\frac{\color{blue}{d}}{\ell}} \]
                4. lower-sqrt.f64N/A

                  \[\leadsto \sqrt{\frac{d}{h}} \cdot \sqrt{\frac{d}{\ell}} \]
                5. lower-/.f6438.9

                  \[\leadsto \sqrt{\frac{d}{h}} \cdot \sqrt{\frac{d}{\ell}} \]
              7. Applied rewrites38.9%

                \[\leadsto \color{blue}{\sqrt{\frac{d}{h}} \cdot \sqrt{\frac{d}{\ell}}} \]
            10. Recombined 3 regimes into one program.
            11. Add Preprocessing

            Alternative 9: 54.9% accurate, 0.3× speedup?

            \[\begin{array}{l} \\ \begin{array}{l} t_0 := \left({\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)} \cdot {\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right)\\ t_1 := \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot 1\\ \mathbf{if}\;t\_0 \leq -4 \cdot 10^{-118}:\\ \;\;\;\;-1 \cdot \left(d \cdot \sqrt{\sqrt{\sqrt{{\left(\ell \cdot h\right)}^{-4}}}}\right)\\ \mathbf{elif}\;t\_0 \leq 5 \cdot 10^{-217}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t\_0 \leq 5 \cdot 10^{+249}:\\ \;\;\;\;\sqrt{\frac{d}{h}} \cdot \sqrt{\frac{d}{\ell}}\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
            (FPCore (d h l M D)
             :precision binary64
             (let* ((t_0
                     (*
                      (* (pow (/ d h) (/ 1.0 2.0)) (pow (/ d l) (/ 1.0 2.0)))
                      (- 1.0 (* (* (/ 1.0 2.0) (pow (/ (* M D) (* 2.0 d)) 2.0)) (/ h l)))))
                    (t_1 (* (/ (fabs d) (sqrt (* h l))) 1.0)))
               (if (<= t_0 -4e-118)
                 (* -1.0 (* d (sqrt (sqrt (sqrt (pow (* l h) -4.0))))))
                 (if (<= t_0 5e-217)
                   t_1
                   (if (<= t_0 5e+249) (* (sqrt (/ d h)) (sqrt (/ d l))) t_1)))))
            double code(double d, double h, double l, double M, double D) {
            	double t_0 = (pow((d / h), (1.0 / 2.0)) * pow((d / l), (1.0 / 2.0))) * (1.0 - (((1.0 / 2.0) * pow(((M * D) / (2.0 * d)), 2.0)) * (h / l)));
            	double t_1 = (fabs(d) / sqrt((h * l))) * 1.0;
            	double tmp;
            	if (t_0 <= -4e-118) {
            		tmp = -1.0 * (d * sqrt(sqrt(sqrt(pow((l * h), -4.0)))));
            	} else if (t_0 <= 5e-217) {
            		tmp = t_1;
            	} else if (t_0 <= 5e+249) {
            		tmp = sqrt((d / h)) * sqrt((d / l));
            	} else {
            		tmp = t_1;
            	}
            	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(d, h, l, m, d_1)
            use fmin_fmax_functions
                real(8), intent (in) :: d
                real(8), intent (in) :: h
                real(8), intent (in) :: l
                real(8), intent (in) :: m
                real(8), intent (in) :: d_1
                real(8) :: t_0
                real(8) :: t_1
                real(8) :: tmp
                t_0 = (((d / h) ** (1.0d0 / 2.0d0)) * ((d / l) ** (1.0d0 / 2.0d0))) * (1.0d0 - (((1.0d0 / 2.0d0) * (((m * d_1) / (2.0d0 * d)) ** 2.0d0)) * (h / l)))
                t_1 = (abs(d) / sqrt((h * l))) * 1.0d0
                if (t_0 <= (-4d-118)) then
                    tmp = (-1.0d0) * (d * sqrt(sqrt(sqrt(((l * h) ** (-4.0d0))))))
                else if (t_0 <= 5d-217) then
                    tmp = t_1
                else if (t_0 <= 5d+249) then
                    tmp = sqrt((d / h)) * sqrt((d / l))
                else
                    tmp = t_1
                end if
                code = tmp
            end function
            
            public static double code(double d, double h, double l, double M, double D) {
            	double t_0 = (Math.pow((d / h), (1.0 / 2.0)) * Math.pow((d / l), (1.0 / 2.0))) * (1.0 - (((1.0 / 2.0) * Math.pow(((M * D) / (2.0 * d)), 2.0)) * (h / l)));
            	double t_1 = (Math.abs(d) / Math.sqrt((h * l))) * 1.0;
            	double tmp;
            	if (t_0 <= -4e-118) {
            		tmp = -1.0 * (d * Math.sqrt(Math.sqrt(Math.sqrt(Math.pow((l * h), -4.0)))));
            	} else if (t_0 <= 5e-217) {
            		tmp = t_1;
            	} else if (t_0 <= 5e+249) {
            		tmp = Math.sqrt((d / h)) * Math.sqrt((d / l));
            	} else {
            		tmp = t_1;
            	}
            	return tmp;
            }
            
            def code(d, h, l, M, D):
            	t_0 = (math.pow((d / h), (1.0 / 2.0)) * math.pow((d / l), (1.0 / 2.0))) * (1.0 - (((1.0 / 2.0) * math.pow(((M * D) / (2.0 * d)), 2.0)) * (h / l)))
            	t_1 = (math.fabs(d) / math.sqrt((h * l))) * 1.0
            	tmp = 0
            	if t_0 <= -4e-118:
            		tmp = -1.0 * (d * math.sqrt(math.sqrt(math.sqrt(math.pow((l * h), -4.0)))))
            	elif t_0 <= 5e-217:
            		tmp = t_1
            	elif t_0 <= 5e+249:
            		tmp = math.sqrt((d / h)) * math.sqrt((d / l))
            	else:
            		tmp = t_1
            	return tmp
            
            function code(d, h, l, M, D)
            	t_0 = Float64(Float64((Float64(d / h) ^ Float64(1.0 / 2.0)) * (Float64(d / l) ^ Float64(1.0 / 2.0))) * Float64(1.0 - Float64(Float64(Float64(1.0 / 2.0) * (Float64(Float64(M * D) / Float64(2.0 * d)) ^ 2.0)) * Float64(h / l))))
            	t_1 = Float64(Float64(abs(d) / sqrt(Float64(h * l))) * 1.0)
            	tmp = 0.0
            	if (t_0 <= -4e-118)
            		tmp = Float64(-1.0 * Float64(d * sqrt(sqrt(sqrt((Float64(l * h) ^ -4.0))))));
            	elseif (t_0 <= 5e-217)
            		tmp = t_1;
            	elseif (t_0 <= 5e+249)
            		tmp = Float64(sqrt(Float64(d / h)) * sqrt(Float64(d / l)));
            	else
            		tmp = t_1;
            	end
            	return tmp
            end
            
            function tmp_2 = code(d, h, l, M, D)
            	t_0 = (((d / h) ^ (1.0 / 2.0)) * ((d / l) ^ (1.0 / 2.0))) * (1.0 - (((1.0 / 2.0) * (((M * D) / (2.0 * d)) ^ 2.0)) * (h / l)));
            	t_1 = (abs(d) / sqrt((h * l))) * 1.0;
            	tmp = 0.0;
            	if (t_0 <= -4e-118)
            		tmp = -1.0 * (d * sqrt(sqrt(sqrt(((l * h) ^ -4.0)))));
            	elseif (t_0 <= 5e-217)
            		tmp = t_1;
            	elseif (t_0 <= 5e+249)
            		tmp = sqrt((d / h)) * sqrt((d / l));
            	else
            		tmp = t_1;
            	end
            	tmp_2 = tmp;
            end
            
            code[d_, h_, l_, M_, D_] := Block[{t$95$0 = N[(N[(N[Power[N[(d / h), $MachinePrecision], N[(1.0 / 2.0), $MachinePrecision]], $MachinePrecision] * N[Power[N[(d / l), $MachinePrecision], N[(1.0 / 2.0), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] * N[(1.0 - N[(N[(N[(1.0 / 2.0), $MachinePrecision] * N[Power[N[(N[(M * D), $MachinePrecision] / N[(2.0 * d), $MachinePrecision]), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision] * N[(h / l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[(N[(N[Abs[d], $MachinePrecision] / N[Sqrt[N[(h * l), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] * 1.0), $MachinePrecision]}, If[LessEqual[t$95$0, -4e-118], N[(-1.0 * N[(d * N[Sqrt[N[Sqrt[N[Sqrt[N[Power[N[(l * h), $MachinePrecision], -4.0], $MachinePrecision]], $MachinePrecision]], $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$0, 5e-217], t$95$1, If[LessEqual[t$95$0, 5e+249], N[(N[Sqrt[N[(d / h), $MachinePrecision]], $MachinePrecision] * N[Sqrt[N[(d / l), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
            
            \begin{array}{l}
            
            \\
            \begin{array}{l}
            t_0 := \left({\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)} \cdot {\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right)\\
            t_1 := \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot 1\\
            \mathbf{if}\;t\_0 \leq -4 \cdot 10^{-118}:\\
            \;\;\;\;-1 \cdot \left(d \cdot \sqrt{\sqrt{\sqrt{{\left(\ell \cdot h\right)}^{-4}}}}\right)\\
            
            \mathbf{elif}\;t\_0 \leq 5 \cdot 10^{-217}:\\
            \;\;\;\;t\_1\\
            
            \mathbf{elif}\;t\_0 \leq 5 \cdot 10^{+249}:\\
            \;\;\;\;\sqrt{\frac{d}{h}} \cdot \sqrt{\frac{d}{\ell}}\\
            
            \mathbf{else}:\\
            \;\;\;\;t\_1\\
            
            
            \end{array}
            \end{array}
            
            Derivation
            1. Split input into 3 regimes
            2. if (*.f64 (*.f64 (pow.f64 (/.f64 d h) (/.f64 #s(literal 1 binary64) #s(literal 2 binary64))) (pow.f64 (/.f64 d l) (/.f64 #s(literal 1 binary64) #s(literal 2 binary64)))) (-.f64 #s(literal 1 binary64) (*.f64 (*.f64 (/.f64 #s(literal 1 binary64) #s(literal 2 binary64)) (pow.f64 (/.f64 (*.f64 M D) (*.f64 #s(literal 2 binary64) d)) #s(literal 2 binary64))) (/.f64 h l)))) < -3.99999999999999994e-118

              1. Initial program 66.7%

                \[\left({\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)} \cdot {\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
              2. Applied rewrites29.3%

                \[\leadsto \color{blue}{\mathsf{fma}\left(\frac{h}{\ell}, \left(M \cdot \left(\frac{D \cdot \left(D \cdot M\right)}{4 \cdot \left(d \cdot d\right)} \cdot -0.5\right)\right) \cdot \sqrt{d \cdot \frac{d}{h \cdot \ell}}, \sqrt{d \cdot \frac{d}{h \cdot \ell}}\right)} \]
              3. Taylor expanded in d around -inf

                \[\leadsto \color{blue}{-1 \cdot \left(d \cdot \sqrt{\frac{1}{h \cdot \ell}}\right)} \]
              4. Step-by-step derivation
                1. lower-*.f64N/A

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

                  \[\leadsto -1 \cdot \left(d \cdot \color{blue}{\sqrt{\frac{1}{h \cdot \ell}}}\right) \]
                3. lower-sqrt.f64N/A

                  \[\leadsto -1 \cdot \left(d \cdot \sqrt{\frac{1}{h \cdot \ell}}\right) \]
                4. lower-/.f64N/A

                  \[\leadsto -1 \cdot \left(d \cdot \sqrt{\frac{1}{h \cdot \ell}}\right) \]
                5. lower-*.f6425.5

                  \[\leadsto -1 \cdot \left(d \cdot \sqrt{\frac{1}{h \cdot \ell}}\right) \]
              5. Applied rewrites25.5%

                \[\leadsto \color{blue}{-1 \cdot \left(d \cdot \sqrt{\frac{1}{h \cdot \ell}}\right)} \]
              6. Step-by-step derivation
                1. rem-square-sqrtN/A

                  \[\leadsto -1 \cdot \left(d \cdot \sqrt{\sqrt{\frac{1}{h \cdot \ell}} \cdot \sqrt{\frac{1}{h \cdot \ell}}}\right) \]
                2. sqrt-unprodN/A

                  \[\leadsto -1 \cdot \left(d \cdot \sqrt{\sqrt{\frac{1}{h \cdot \ell} \cdot \frac{1}{h \cdot \ell}}}\right) \]
                3. lower-sqrt.f64N/A

                  \[\leadsto -1 \cdot \left(d \cdot \sqrt{\sqrt{\frac{1}{h \cdot \ell} \cdot \frac{1}{h \cdot \ell}}}\right) \]
                4. lower-*.f6422.1

                  \[\leadsto -1 \cdot \left(d \cdot \sqrt{\sqrt{\frac{1}{h \cdot \ell} \cdot \frac{1}{h \cdot \ell}}}\right) \]
                5. lift-*.f64N/A

                  \[\leadsto -1 \cdot \left(d \cdot \sqrt{\sqrt{\frac{1}{h \cdot \ell} \cdot \frac{1}{h \cdot \ell}}}\right) \]
                6. *-commutativeN/A

                  \[\leadsto -1 \cdot \left(d \cdot \sqrt{\sqrt{\frac{1}{\ell \cdot h} \cdot \frac{1}{h \cdot \ell}}}\right) \]
                7. lower-*.f6422.1

                  \[\leadsto -1 \cdot \left(d \cdot \sqrt{\sqrt{\frac{1}{\ell \cdot h} \cdot \frac{1}{h \cdot \ell}}}\right) \]
                8. lift-*.f64N/A

                  \[\leadsto -1 \cdot \left(d \cdot \sqrt{\sqrt{\frac{1}{\ell \cdot h} \cdot \frac{1}{h \cdot \ell}}}\right) \]
                9. *-commutativeN/A

                  \[\leadsto -1 \cdot \left(d \cdot \sqrt{\sqrt{\frac{1}{\ell \cdot h} \cdot \frac{1}{\ell \cdot h}}}\right) \]
                10. lower-*.f6422.1

                  \[\leadsto -1 \cdot \left(d \cdot \sqrt{\sqrt{\frac{1}{\ell \cdot h} \cdot \frac{1}{\ell \cdot h}}}\right) \]
              7. Applied rewrites22.1%

                \[\leadsto -1 \cdot \left(d \cdot \sqrt{\sqrt{\frac{1}{\ell \cdot h} \cdot \frac{1}{\ell \cdot h}}}\right) \]
              8. Step-by-step derivation
                1. rem-square-sqrtN/A

                  \[\leadsto -1 \cdot \left(d \cdot \sqrt{\sqrt{\sqrt{\frac{1}{\ell \cdot h} \cdot \frac{1}{\ell \cdot h}} \cdot \sqrt{\frac{1}{\ell \cdot h} \cdot \frac{1}{\ell \cdot h}}}}\right) \]
                2. sqrt-unprodN/A

                  \[\leadsto -1 \cdot \left(d \cdot \sqrt{\sqrt{\sqrt{\left(\frac{1}{\ell \cdot h} \cdot \frac{1}{\ell \cdot h}\right) \cdot \left(\frac{1}{\ell \cdot h} \cdot \frac{1}{\ell \cdot h}\right)}}}\right) \]
                3. lower-sqrt.f64N/A

                  \[\leadsto -1 \cdot \left(d \cdot \sqrt{\sqrt{\sqrt{\left(\frac{1}{\ell \cdot h} \cdot \frac{1}{\ell \cdot h}\right) \cdot \left(\frac{1}{\ell \cdot h} \cdot \frac{1}{\ell \cdot h}\right)}}}\right) \]
                4. lift-*.f64N/A

                  \[\leadsto -1 \cdot \left(d \cdot \sqrt{\sqrt{\sqrt{\left(\frac{1}{\ell \cdot h} \cdot \frac{1}{\ell \cdot h}\right) \cdot \left(\frac{1}{\ell \cdot h} \cdot \frac{1}{\ell \cdot h}\right)}}}\right) \]
                5. lift-/.f64N/A

                  \[\leadsto -1 \cdot \left(d \cdot \sqrt{\sqrt{\sqrt{\left(\frac{1}{\ell \cdot h} \cdot \frac{1}{\ell \cdot h}\right) \cdot \left(\frac{1}{\ell \cdot h} \cdot \frac{1}{\ell \cdot h}\right)}}}\right) \]
                6. inv-powN/A

                  \[\leadsto -1 \cdot \left(d \cdot \sqrt{\sqrt{\sqrt{\left({\left(\ell \cdot h\right)}^{-1} \cdot \frac{1}{\ell \cdot h}\right) \cdot \left(\frac{1}{\ell \cdot h} \cdot \frac{1}{\ell \cdot h}\right)}}}\right) \]
                7. lift-/.f64N/A

                  \[\leadsto -1 \cdot \left(d \cdot \sqrt{\sqrt{\sqrt{\left({\left(\ell \cdot h\right)}^{-1} \cdot \frac{1}{\ell \cdot h}\right) \cdot \left(\frac{1}{\ell \cdot h} \cdot \frac{1}{\ell \cdot h}\right)}}}\right) \]
                8. inv-powN/A

                  \[\leadsto -1 \cdot \left(d \cdot \sqrt{\sqrt{\sqrt{\left({\left(\ell \cdot h\right)}^{-1} \cdot {\left(\ell \cdot h\right)}^{-1}\right) \cdot \left(\frac{1}{\ell \cdot h} \cdot \frac{1}{\ell \cdot h}\right)}}}\right) \]
                9. pow-prod-upN/A

                  \[\leadsto -1 \cdot \left(d \cdot \sqrt{\sqrt{\sqrt{{\left(\ell \cdot h\right)}^{\left(-1 + -1\right)} \cdot \left(\frac{1}{\ell \cdot h} \cdot \frac{1}{\ell \cdot h}\right)}}}\right) \]
                10. metadata-evalN/A

                  \[\leadsto -1 \cdot \left(d \cdot \sqrt{\sqrt{\sqrt{{\left(\ell \cdot h\right)}^{-2} \cdot \left(\frac{1}{\ell \cdot h} \cdot \frac{1}{\ell \cdot h}\right)}}}\right) \]
                11. lift-*.f64N/A

                  \[\leadsto -1 \cdot \left(d \cdot \sqrt{\sqrt{\sqrt{{\left(\ell \cdot h\right)}^{-2} \cdot \left(\frac{1}{\ell \cdot h} \cdot \frac{1}{\ell \cdot h}\right)}}}\right) \]
                12. lift-/.f64N/A

                  \[\leadsto -1 \cdot \left(d \cdot \sqrt{\sqrt{\sqrt{{\left(\ell \cdot h\right)}^{-2} \cdot \left(\frac{1}{\ell \cdot h} \cdot \frac{1}{\ell \cdot h}\right)}}}\right) \]
                13. inv-powN/A

                  \[\leadsto -1 \cdot \left(d \cdot \sqrt{\sqrt{\sqrt{{\left(\ell \cdot h\right)}^{-2} \cdot \left({\left(\ell \cdot h\right)}^{-1} \cdot \frac{1}{\ell \cdot h}\right)}}}\right) \]
                14. lift-/.f64N/A

                  \[\leadsto -1 \cdot \left(d \cdot \sqrt{\sqrt{\sqrt{{\left(\ell \cdot h\right)}^{-2} \cdot \left({\left(\ell \cdot h\right)}^{-1} \cdot \frac{1}{\ell \cdot h}\right)}}}\right) \]
                15. inv-powN/A

                  \[\leadsto -1 \cdot \left(d \cdot \sqrt{\sqrt{\sqrt{{\left(\ell \cdot h\right)}^{-2} \cdot \left({\left(\ell \cdot h\right)}^{-1} \cdot {\left(\ell \cdot h\right)}^{-1}\right)}}}\right) \]
                16. pow-prod-upN/A

                  \[\leadsto -1 \cdot \left(d \cdot \sqrt{\sqrt{\sqrt{{\left(\ell \cdot h\right)}^{-2} \cdot {\left(\ell \cdot h\right)}^{\left(-1 + -1\right)}}}}\right) \]
                17. metadata-evalN/A

                  \[\leadsto -1 \cdot \left(d \cdot \sqrt{\sqrt{\sqrt{{\left(\ell \cdot h\right)}^{-2} \cdot {\left(\ell \cdot h\right)}^{-2}}}}\right) \]
                18. pow-prod-upN/A

                  \[\leadsto -1 \cdot \left(d \cdot \sqrt{\sqrt{\sqrt{{\left(\ell \cdot h\right)}^{\left(-2 + -2\right)}}}}\right) \]
                19. metadata-evalN/A

                  \[\leadsto -1 \cdot \left(d \cdot \sqrt{\sqrt{\sqrt{{\left(\ell \cdot h\right)}^{-4}}}}\right) \]
                20. metadata-evalN/A

                  \[\leadsto -1 \cdot \left(d \cdot \sqrt{\sqrt{\sqrt{{\left(\ell \cdot h\right)}^{\left(\mathsf{neg}\left(4\right)\right)}}}}\right) \]
                21. lower-pow.f64N/A

                  \[\leadsto -1 \cdot \left(d \cdot \sqrt{\sqrt{\sqrt{{\left(\ell \cdot h\right)}^{\left(\mathsf{neg}\left(4\right)\right)}}}}\right) \]
              9. Applied rewrites19.5%

                \[\leadsto -1 \cdot \left(d \cdot \sqrt{\sqrt{\sqrt{{\left(\ell \cdot h\right)}^{-4}}}}\right) \]

              if -3.99999999999999994e-118 < (*.f64 (*.f64 (pow.f64 (/.f64 d h) (/.f64 #s(literal 1 binary64) #s(literal 2 binary64))) (pow.f64 (/.f64 d l) (/.f64 #s(literal 1 binary64) #s(literal 2 binary64)))) (-.f64 #s(literal 1 binary64) (*.f64 (*.f64 (/.f64 #s(literal 1 binary64) #s(literal 2 binary64)) (pow.f64 (/.f64 (*.f64 M D) (*.f64 #s(literal 2 binary64) d)) #s(literal 2 binary64))) (/.f64 h l)))) < 5.0000000000000002e-217 or 4.9999999999999996e249 < (*.f64 (*.f64 (pow.f64 (/.f64 d h) (/.f64 #s(literal 1 binary64) #s(literal 2 binary64))) (pow.f64 (/.f64 d l) (/.f64 #s(literal 1 binary64) #s(literal 2 binary64)))) (-.f64 #s(literal 1 binary64) (*.f64 (*.f64 (/.f64 #s(literal 1 binary64) #s(literal 2 binary64)) (pow.f64 (/.f64 (*.f64 M D) (*.f64 #s(literal 2 binary64) d)) #s(literal 2 binary64))) (/.f64 h l))))

              1. Initial program 66.7%

                \[\left({\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)} \cdot {\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
              2. Step-by-step derivation
                1. lift-*.f64N/A

                  \[\leadsto \color{blue}{\left({\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)} \cdot {\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)}\right)} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                2. *-commutativeN/A

                  \[\leadsto \color{blue}{\left({\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right)} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                3. lower-*.f6466.7

                  \[\leadsto \color{blue}{\left({\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right)} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                4. lift-pow.f64N/A

                  \[\leadsto \left(\color{blue}{{\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)}} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                5. lift-/.f64N/A

                  \[\leadsto \left({\left(\frac{d}{\ell}\right)}^{\color{blue}{\left(\frac{1}{2}\right)}} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                6. metadata-evalN/A

                  \[\leadsto \left({\left(\frac{d}{\ell}\right)}^{\color{blue}{\frac{1}{2}}} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                7. unpow1/2N/A

                  \[\leadsto \left(\color{blue}{\sqrt{\frac{d}{\ell}}} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                8. lower-sqrt.f6466.7

                  \[\leadsto \left(\color{blue}{\sqrt{\frac{d}{\ell}}} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                9. lift-pow.f64N/A

                  \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot \color{blue}{{\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                10. lift-/.f64N/A

                  \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot {\left(\frac{d}{h}\right)}^{\color{blue}{\left(\frac{1}{2}\right)}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                11. metadata-evalN/A

                  \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot {\left(\frac{d}{h}\right)}^{\color{blue}{\frac{1}{2}}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                12. unpow1/2N/A

                  \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot \color{blue}{\sqrt{\frac{d}{h}}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                13. lower-sqrt.f6466.7

                  \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot \color{blue}{\sqrt{\frac{d}{h}}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
              3. Applied rewrites66.7%

                \[\leadsto \color{blue}{\left(\sqrt{\frac{d}{\ell}} \cdot \sqrt{\frac{d}{h}}\right)} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
              4. Step-by-step derivation
                1. lift-*.f64N/A

                  \[\leadsto \color{blue}{\left(\sqrt{\frac{d}{\ell}} \cdot \sqrt{\frac{d}{h}}\right)} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                2. lift-sqrt.f64N/A

                  \[\leadsto \left(\color{blue}{\sqrt{\frac{d}{\ell}}} \cdot \sqrt{\frac{d}{h}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                3. lift-sqrt.f64N/A

                  \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot \color{blue}{\sqrt{\frac{d}{h}}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                4. sqrt-unprodN/A

                  \[\leadsto \color{blue}{\sqrt{\frac{d}{\ell} \cdot \frac{d}{h}}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                5. lift-/.f64N/A

                  \[\leadsto \sqrt{\color{blue}{\frac{d}{\ell}} \cdot \frac{d}{h}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                6. lift-/.f64N/A

                  \[\leadsto \sqrt{\frac{d}{\ell} \cdot \color{blue}{\frac{d}{h}}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                7. frac-timesN/A

                  \[\leadsto \sqrt{\color{blue}{\frac{d \cdot d}{\ell \cdot h}}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                8. *-commutativeN/A

                  \[\leadsto \sqrt{\frac{d \cdot d}{\color{blue}{h \cdot \ell}}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                9. lift-*.f64N/A

                  \[\leadsto \sqrt{\frac{d \cdot d}{\color{blue}{h \cdot \ell}}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                10. lift-*.f64N/A

                  \[\leadsto \sqrt{\frac{\color{blue}{d \cdot d}}{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                11. sqrt-divN/A

                  \[\leadsto \color{blue}{\frac{\sqrt{d \cdot d}}{\sqrt{h \cdot \ell}}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                12. lower-unsound-sqrt.f32N/A

                  \[\leadsto \frac{\color{blue}{\sqrt{d \cdot d}}}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                13. lower-sqrt.f32N/A

                  \[\leadsto \frac{\color{blue}{\sqrt{d \cdot d}}}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                14. lift-*.f64N/A

                  \[\leadsto \frac{\sqrt{\color{blue}{d \cdot d}}}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                15. rem-sqrt-square-revN/A

                  \[\leadsto \frac{\color{blue}{\left|d\right|}}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                16. lower-unsound-/.f64N/A

                  \[\leadsto \color{blue}{\frac{\left|d\right|}{\sqrt{h \cdot \ell}}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                17. lower-fabs.f64N/A

                  \[\leadsto \frac{\color{blue}{\left|d\right|}}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                18. lower-unsound-sqrt.f6469.9

                  \[\leadsto \frac{\left|d\right|}{\color{blue}{\sqrt{h \cdot \ell}}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
              5. Applied rewrites69.9%

                \[\leadsto \color{blue}{\frac{\left|d\right|}{\sqrt{h \cdot \ell}}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
              6. Step-by-step derivation
                1. lift-pow.f64N/A

                  \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \color{blue}{{\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}}\right) \cdot \frac{h}{\ell}\right) \]
                2. unpow2N/A

                  \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \color{blue}{\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{M \cdot D}{2 \cdot d}\right)}\right) \cdot \frac{h}{\ell}\right) \]
                3. lift-/.f64N/A

                  \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\color{blue}{\frac{M \cdot D}{2 \cdot d}} \cdot \frac{M \cdot D}{2 \cdot d}\right)\right) \cdot \frac{h}{\ell}\right) \]
                4. frac-2negN/A

                  \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\color{blue}{\frac{\mathsf{neg}\left(M \cdot D\right)}{\mathsf{neg}\left(2 \cdot d\right)}} \cdot \frac{M \cdot D}{2 \cdot d}\right)\right) \cdot \frac{h}{\ell}\right) \]
                5. distribute-frac-negN/A

                  \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\color{blue}{\left(\mathsf{neg}\left(\frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right)} \cdot \frac{M \cdot D}{2 \cdot d}\right)\right) \cdot \frac{h}{\ell}\right) \]
                6. lift-/.f64N/A

                  \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\left(\mathsf{neg}\left(\frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \color{blue}{\frac{M \cdot D}{2 \cdot d}}\right)\right) \cdot \frac{h}{\ell}\right) \]
                7. frac-2negN/A

                  \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\left(\mathsf{neg}\left(\frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \color{blue}{\frac{\mathsf{neg}\left(M \cdot D\right)}{\mathsf{neg}\left(2 \cdot d\right)}}\right)\right) \cdot \frac{h}{\ell}\right) \]
                8. distribute-frac-negN/A

                  \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\left(\mathsf{neg}\left(\frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \color{blue}{\left(\mathsf{neg}\left(\frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
                9. sqr-negN/A

                  \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \color{blue}{\left(\frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)} \cdot \frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)}\right) \cdot \frac{h}{\ell}\right) \]
                10. lower-*.f64N/A

                  \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \color{blue}{\left(\frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)} \cdot \frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)}\right) \cdot \frac{h}{\ell}\right) \]
                11. lower-/.f64N/A

                  \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\color{blue}{\frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}} \cdot \frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
                12. lift-*.f64N/A

                  \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{\color{blue}{M \cdot D}}{\mathsf{neg}\left(2 \cdot d\right)} \cdot \frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
                13. *-commutativeN/A

                  \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{\color{blue}{D \cdot M}}{\mathsf{neg}\left(2 \cdot d\right)} \cdot \frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
                14. lift-*.f64N/A

                  \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{\color{blue}{D \cdot M}}{\mathsf{neg}\left(2 \cdot d\right)} \cdot \frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
                15. lift-*.f64N/A

                  \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{\mathsf{neg}\left(\color{blue}{2 \cdot d}\right)} \cdot \frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
                16. distribute-lft-neg-inN/A

                  \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{\color{blue}{\left(\mathsf{neg}\left(2\right)\right) \cdot d}} \cdot \frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
                17. lower-*.f64N/A

                  \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{\color{blue}{\left(\mathsf{neg}\left(2\right)\right) \cdot d}} \cdot \frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
                18. metadata-evalN/A

                  \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{\color{blue}{-2} \cdot d} \cdot \frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
                19. lower-/.f64N/A

                  \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{-2 \cdot d} \cdot \color{blue}{\frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}}\right)\right) \cdot \frac{h}{\ell}\right) \]
                20. lift-*.f64N/A

                  \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{-2 \cdot d} \cdot \frac{\color{blue}{M \cdot D}}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
                21. *-commutativeN/A

                  \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{-2 \cdot d} \cdot \frac{\color{blue}{D \cdot M}}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
                22. lift-*.f64N/A

                  \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{-2 \cdot d} \cdot \frac{\color{blue}{D \cdot M}}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
                23. lift-*.f64N/A

                  \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{-2 \cdot d} \cdot \frac{D \cdot M}{\mathsf{neg}\left(\color{blue}{2 \cdot d}\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
                24. distribute-lft-neg-inN/A

                  \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{-2 \cdot d} \cdot \frac{D \cdot M}{\color{blue}{\left(\mathsf{neg}\left(2\right)\right) \cdot d}}\right)\right) \cdot \frac{h}{\ell}\right) \]
                25. lower-*.f64N/A

                  \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{-2 \cdot d} \cdot \frac{D \cdot M}{\color{blue}{\left(\mathsf{neg}\left(2\right)\right) \cdot d}}\right)\right) \cdot \frac{h}{\ell}\right) \]
                26. metadata-eval69.9

                  \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{-2 \cdot d} \cdot \frac{D \cdot M}{\color{blue}{-2} \cdot d}\right)\right) \cdot \frac{h}{\ell}\right) \]
              7. Applied rewrites69.9%

                \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \color{blue}{\left(\frac{D \cdot M}{-2 \cdot d} \cdot \frac{D \cdot M}{-2 \cdot d}\right)}\right) \cdot \frac{h}{\ell}\right) \]
              8. Taylor expanded in d around inf

                \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \color{blue}{1} \]
              9. Step-by-step derivation
                1. Applied rewrites42.5%

                  \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \color{blue}{1} \]

                if 5.0000000000000002e-217 < (*.f64 (*.f64 (pow.f64 (/.f64 d h) (/.f64 #s(literal 1 binary64) #s(literal 2 binary64))) (pow.f64 (/.f64 d l) (/.f64 #s(literal 1 binary64) #s(literal 2 binary64)))) (-.f64 #s(literal 1 binary64) (*.f64 (*.f64 (/.f64 #s(literal 1 binary64) #s(literal 2 binary64)) (pow.f64 (/.f64 (*.f64 M D) (*.f64 #s(literal 2 binary64) d)) #s(literal 2 binary64))) (/.f64 h l)))) < 4.9999999999999996e249

                1. Initial program 66.7%

                  \[\left({\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)} \cdot {\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                2. Step-by-step derivation
                  1. lift-*.f64N/A

                    \[\leadsto \color{blue}{\left({\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)} \cdot {\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)}\right)} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                  2. *-commutativeN/A

                    \[\leadsto \color{blue}{\left({\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right)} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                  3. lower-*.f6466.7

                    \[\leadsto \color{blue}{\left({\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right)} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                  4. lift-pow.f64N/A

                    \[\leadsto \left(\color{blue}{{\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)}} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                  5. lift-/.f64N/A

                    \[\leadsto \left({\left(\frac{d}{\ell}\right)}^{\color{blue}{\left(\frac{1}{2}\right)}} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                  6. metadata-evalN/A

                    \[\leadsto \left({\left(\frac{d}{\ell}\right)}^{\color{blue}{\frac{1}{2}}} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                  7. unpow1/2N/A

                    \[\leadsto \left(\color{blue}{\sqrt{\frac{d}{\ell}}} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                  8. lower-sqrt.f6466.7

                    \[\leadsto \left(\color{blue}{\sqrt{\frac{d}{\ell}}} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                  9. lift-pow.f64N/A

                    \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot \color{blue}{{\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                  10. lift-/.f64N/A

                    \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot {\left(\frac{d}{h}\right)}^{\color{blue}{\left(\frac{1}{2}\right)}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                  11. metadata-evalN/A

                    \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot {\left(\frac{d}{h}\right)}^{\color{blue}{\frac{1}{2}}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                  12. unpow1/2N/A

                    \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot \color{blue}{\sqrt{\frac{d}{h}}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                  13. lower-sqrt.f6466.7

                    \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot \color{blue}{\sqrt{\frac{d}{h}}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                3. Applied rewrites66.7%

                  \[\leadsto \color{blue}{\left(\sqrt{\frac{d}{\ell}} \cdot \sqrt{\frac{d}{h}}\right)} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                4. Applied rewrites54.3%

                  \[\leadsto \color{blue}{\left(\mathsf{fma}\left(\left(-0.125 \cdot \frac{\left(D \cdot M\right) \cdot D}{d \cdot d}\right) \cdot M, \frac{h}{\ell}, 1\right) \cdot \sqrt{\frac{d}{\ell}}\right) \cdot \sqrt{\frac{d}{h}}} \]
                5. Taylor expanded in l around inf

                  \[\leadsto \color{blue}{\sqrt{\frac{d}{h}} \cdot \sqrt{\frac{d}{\ell}}} \]
                6. Step-by-step derivation
                  1. lower-*.f64N/A

                    \[\leadsto \sqrt{\frac{d}{h}} \cdot \color{blue}{\sqrt{\frac{d}{\ell}}} \]
                  2. lower-sqrt.f64N/A

                    \[\leadsto \sqrt{\frac{d}{h}} \cdot \sqrt{\color{blue}{\frac{d}{\ell}}} \]
                  3. lower-/.f64N/A

                    \[\leadsto \sqrt{\frac{d}{h}} \cdot \sqrt{\frac{\color{blue}{d}}{\ell}} \]
                  4. lower-sqrt.f64N/A

                    \[\leadsto \sqrt{\frac{d}{h}} \cdot \sqrt{\frac{d}{\ell}} \]
                  5. lower-/.f6438.9

                    \[\leadsto \sqrt{\frac{d}{h}} \cdot \sqrt{\frac{d}{\ell}} \]
                7. Applied rewrites38.9%

                  \[\leadsto \color{blue}{\sqrt{\frac{d}{h}} \cdot \sqrt{\frac{d}{\ell}}} \]
              10. Recombined 3 regimes into one program.
              11. Add Preprocessing

              Alternative 10: 54.1% accurate, 0.3× speedup?

              \[\begin{array}{l} \\ \begin{array}{l} t_0 := \left({\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)} \cdot {\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right)\\ t_1 := \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot 1\\ \mathbf{if}\;t\_0 \leq -4 \cdot 10^{-118}:\\ \;\;\;\;-1 \cdot \left(d \cdot \sqrt{\sqrt{\frac{\frac{\frac{1}{\ell \cdot h}}{\ell}}{h}}}\right)\\ \mathbf{elif}\;t\_0 \leq 5 \cdot 10^{-217}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t\_0 \leq 5 \cdot 10^{+249}:\\ \;\;\;\;\sqrt{\frac{d}{h}} \cdot \sqrt{\frac{d}{\ell}}\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
              (FPCore (d h l M D)
               :precision binary64
               (let* ((t_0
                       (*
                        (* (pow (/ d h) (/ 1.0 2.0)) (pow (/ d l) (/ 1.0 2.0)))
                        (- 1.0 (* (* (/ 1.0 2.0) (pow (/ (* M D) (* 2.0 d)) 2.0)) (/ h l)))))
                      (t_1 (* (/ (fabs d) (sqrt (* h l))) 1.0)))
                 (if (<= t_0 -4e-118)
                   (* -1.0 (* d (sqrt (sqrt (/ (/ (/ 1.0 (* l h)) l) h)))))
                   (if (<= t_0 5e-217)
                     t_1
                     (if (<= t_0 5e+249) (* (sqrt (/ d h)) (sqrt (/ d l))) t_1)))))
              double code(double d, double h, double l, double M, double D) {
              	double t_0 = (pow((d / h), (1.0 / 2.0)) * pow((d / l), (1.0 / 2.0))) * (1.0 - (((1.0 / 2.0) * pow(((M * D) / (2.0 * d)), 2.0)) * (h / l)));
              	double t_1 = (fabs(d) / sqrt((h * l))) * 1.0;
              	double tmp;
              	if (t_0 <= -4e-118) {
              		tmp = -1.0 * (d * sqrt(sqrt((((1.0 / (l * h)) / l) / h))));
              	} else if (t_0 <= 5e-217) {
              		tmp = t_1;
              	} else if (t_0 <= 5e+249) {
              		tmp = sqrt((d / h)) * sqrt((d / l));
              	} else {
              		tmp = t_1;
              	}
              	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(d, h, l, m, d_1)
              use fmin_fmax_functions
                  real(8), intent (in) :: d
                  real(8), intent (in) :: h
                  real(8), intent (in) :: l
                  real(8), intent (in) :: m
                  real(8), intent (in) :: d_1
                  real(8) :: t_0
                  real(8) :: t_1
                  real(8) :: tmp
                  t_0 = (((d / h) ** (1.0d0 / 2.0d0)) * ((d / l) ** (1.0d0 / 2.0d0))) * (1.0d0 - (((1.0d0 / 2.0d0) * (((m * d_1) / (2.0d0 * d)) ** 2.0d0)) * (h / l)))
                  t_1 = (abs(d) / sqrt((h * l))) * 1.0d0
                  if (t_0 <= (-4d-118)) then
                      tmp = (-1.0d0) * (d * sqrt(sqrt((((1.0d0 / (l * h)) / l) / h))))
                  else if (t_0 <= 5d-217) then
                      tmp = t_1
                  else if (t_0 <= 5d+249) then
                      tmp = sqrt((d / h)) * sqrt((d / l))
                  else
                      tmp = t_1
                  end if
                  code = tmp
              end function
              
              public static double code(double d, double h, double l, double M, double D) {
              	double t_0 = (Math.pow((d / h), (1.0 / 2.0)) * Math.pow((d / l), (1.0 / 2.0))) * (1.0 - (((1.0 / 2.0) * Math.pow(((M * D) / (2.0 * d)), 2.0)) * (h / l)));
              	double t_1 = (Math.abs(d) / Math.sqrt((h * l))) * 1.0;
              	double tmp;
              	if (t_0 <= -4e-118) {
              		tmp = -1.0 * (d * Math.sqrt(Math.sqrt((((1.0 / (l * h)) / l) / h))));
              	} else if (t_0 <= 5e-217) {
              		tmp = t_1;
              	} else if (t_0 <= 5e+249) {
              		tmp = Math.sqrt((d / h)) * Math.sqrt((d / l));
              	} else {
              		tmp = t_1;
              	}
              	return tmp;
              }
              
              def code(d, h, l, M, D):
              	t_0 = (math.pow((d / h), (1.0 / 2.0)) * math.pow((d / l), (1.0 / 2.0))) * (1.0 - (((1.0 / 2.0) * math.pow(((M * D) / (2.0 * d)), 2.0)) * (h / l)))
              	t_1 = (math.fabs(d) / math.sqrt((h * l))) * 1.0
              	tmp = 0
              	if t_0 <= -4e-118:
              		tmp = -1.0 * (d * math.sqrt(math.sqrt((((1.0 / (l * h)) / l) / h))))
              	elif t_0 <= 5e-217:
              		tmp = t_1
              	elif t_0 <= 5e+249:
              		tmp = math.sqrt((d / h)) * math.sqrt((d / l))
              	else:
              		tmp = t_1
              	return tmp
              
              function code(d, h, l, M, D)
              	t_0 = Float64(Float64((Float64(d / h) ^ Float64(1.0 / 2.0)) * (Float64(d / l) ^ Float64(1.0 / 2.0))) * Float64(1.0 - Float64(Float64(Float64(1.0 / 2.0) * (Float64(Float64(M * D) / Float64(2.0 * d)) ^ 2.0)) * Float64(h / l))))
              	t_1 = Float64(Float64(abs(d) / sqrt(Float64(h * l))) * 1.0)
              	tmp = 0.0
              	if (t_0 <= -4e-118)
              		tmp = Float64(-1.0 * Float64(d * sqrt(sqrt(Float64(Float64(Float64(1.0 / Float64(l * h)) / l) / h)))));
              	elseif (t_0 <= 5e-217)
              		tmp = t_1;
              	elseif (t_0 <= 5e+249)
              		tmp = Float64(sqrt(Float64(d / h)) * sqrt(Float64(d / l)));
              	else
              		tmp = t_1;
              	end
              	return tmp
              end
              
              function tmp_2 = code(d, h, l, M, D)
              	t_0 = (((d / h) ^ (1.0 / 2.0)) * ((d / l) ^ (1.0 / 2.0))) * (1.0 - (((1.0 / 2.0) * (((M * D) / (2.0 * d)) ^ 2.0)) * (h / l)));
              	t_1 = (abs(d) / sqrt((h * l))) * 1.0;
              	tmp = 0.0;
              	if (t_0 <= -4e-118)
              		tmp = -1.0 * (d * sqrt(sqrt((((1.0 / (l * h)) / l) / h))));
              	elseif (t_0 <= 5e-217)
              		tmp = t_1;
              	elseif (t_0 <= 5e+249)
              		tmp = sqrt((d / h)) * sqrt((d / l));
              	else
              		tmp = t_1;
              	end
              	tmp_2 = tmp;
              end
              
              code[d_, h_, l_, M_, D_] := Block[{t$95$0 = N[(N[(N[Power[N[(d / h), $MachinePrecision], N[(1.0 / 2.0), $MachinePrecision]], $MachinePrecision] * N[Power[N[(d / l), $MachinePrecision], N[(1.0 / 2.0), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] * N[(1.0 - N[(N[(N[(1.0 / 2.0), $MachinePrecision] * N[Power[N[(N[(M * D), $MachinePrecision] / N[(2.0 * d), $MachinePrecision]), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision] * N[(h / l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[(N[(N[Abs[d], $MachinePrecision] / N[Sqrt[N[(h * l), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] * 1.0), $MachinePrecision]}, If[LessEqual[t$95$0, -4e-118], N[(-1.0 * N[(d * N[Sqrt[N[Sqrt[N[(N[(N[(1.0 / N[(l * h), $MachinePrecision]), $MachinePrecision] / l), $MachinePrecision] / h), $MachinePrecision]], $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$0, 5e-217], t$95$1, If[LessEqual[t$95$0, 5e+249], N[(N[Sqrt[N[(d / h), $MachinePrecision]], $MachinePrecision] * N[Sqrt[N[(d / l), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
              
              \begin{array}{l}
              
              \\
              \begin{array}{l}
              t_0 := \left({\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)} \cdot {\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right)\\
              t_1 := \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot 1\\
              \mathbf{if}\;t\_0 \leq -4 \cdot 10^{-118}:\\
              \;\;\;\;-1 \cdot \left(d \cdot \sqrt{\sqrt{\frac{\frac{\frac{1}{\ell \cdot h}}{\ell}}{h}}}\right)\\
              
              \mathbf{elif}\;t\_0 \leq 5 \cdot 10^{-217}:\\
              \;\;\;\;t\_1\\
              
              \mathbf{elif}\;t\_0 \leq 5 \cdot 10^{+249}:\\
              \;\;\;\;\sqrt{\frac{d}{h}} \cdot \sqrt{\frac{d}{\ell}}\\
              
              \mathbf{else}:\\
              \;\;\;\;t\_1\\
              
              
              \end{array}
              \end{array}
              
              Derivation
              1. Split input into 3 regimes
              2. if (*.f64 (*.f64 (pow.f64 (/.f64 d h) (/.f64 #s(literal 1 binary64) #s(literal 2 binary64))) (pow.f64 (/.f64 d l) (/.f64 #s(literal 1 binary64) #s(literal 2 binary64)))) (-.f64 #s(literal 1 binary64) (*.f64 (*.f64 (/.f64 #s(literal 1 binary64) #s(literal 2 binary64)) (pow.f64 (/.f64 (*.f64 M D) (*.f64 #s(literal 2 binary64) d)) #s(literal 2 binary64))) (/.f64 h l)))) < -3.99999999999999994e-118

                1. Initial program 66.7%

                  \[\left({\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)} \cdot {\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                2. Applied rewrites29.3%

                  \[\leadsto \color{blue}{\mathsf{fma}\left(\frac{h}{\ell}, \left(M \cdot \left(\frac{D \cdot \left(D \cdot M\right)}{4 \cdot \left(d \cdot d\right)} \cdot -0.5\right)\right) \cdot \sqrt{d \cdot \frac{d}{h \cdot \ell}}, \sqrt{d \cdot \frac{d}{h \cdot \ell}}\right)} \]
                3. Taylor expanded in d around -inf

                  \[\leadsto \color{blue}{-1 \cdot \left(d \cdot \sqrt{\frac{1}{h \cdot \ell}}\right)} \]
                4. Step-by-step derivation
                  1. lower-*.f64N/A

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

                    \[\leadsto -1 \cdot \left(d \cdot \color{blue}{\sqrt{\frac{1}{h \cdot \ell}}}\right) \]
                  3. lower-sqrt.f64N/A

                    \[\leadsto -1 \cdot \left(d \cdot \sqrt{\frac{1}{h \cdot \ell}}\right) \]
                  4. lower-/.f64N/A

                    \[\leadsto -1 \cdot \left(d \cdot \sqrt{\frac{1}{h \cdot \ell}}\right) \]
                  5. lower-*.f6425.5

                    \[\leadsto -1 \cdot \left(d \cdot \sqrt{\frac{1}{h \cdot \ell}}\right) \]
                5. Applied rewrites25.5%

                  \[\leadsto \color{blue}{-1 \cdot \left(d \cdot \sqrt{\frac{1}{h \cdot \ell}}\right)} \]
                6. Step-by-step derivation
                  1. rem-square-sqrtN/A

                    \[\leadsto -1 \cdot \left(d \cdot \sqrt{\sqrt{\frac{1}{h \cdot \ell}} \cdot \sqrt{\frac{1}{h \cdot \ell}}}\right) \]
                  2. sqrt-unprodN/A

                    \[\leadsto -1 \cdot \left(d \cdot \sqrt{\sqrt{\frac{1}{h \cdot \ell} \cdot \frac{1}{h \cdot \ell}}}\right) \]
                  3. lower-sqrt.f64N/A

                    \[\leadsto -1 \cdot \left(d \cdot \sqrt{\sqrt{\frac{1}{h \cdot \ell} \cdot \frac{1}{h \cdot \ell}}}\right) \]
                  4. lower-*.f6422.1

                    \[\leadsto -1 \cdot \left(d \cdot \sqrt{\sqrt{\frac{1}{h \cdot \ell} \cdot \frac{1}{h \cdot \ell}}}\right) \]
                  5. lift-*.f64N/A

                    \[\leadsto -1 \cdot \left(d \cdot \sqrt{\sqrt{\frac{1}{h \cdot \ell} \cdot \frac{1}{h \cdot \ell}}}\right) \]
                  6. *-commutativeN/A

                    \[\leadsto -1 \cdot \left(d \cdot \sqrt{\sqrt{\frac{1}{\ell \cdot h} \cdot \frac{1}{h \cdot \ell}}}\right) \]
                  7. lower-*.f6422.1

                    \[\leadsto -1 \cdot \left(d \cdot \sqrt{\sqrt{\frac{1}{\ell \cdot h} \cdot \frac{1}{h \cdot \ell}}}\right) \]
                  8. lift-*.f64N/A

                    \[\leadsto -1 \cdot \left(d \cdot \sqrt{\sqrt{\frac{1}{\ell \cdot h} \cdot \frac{1}{h \cdot \ell}}}\right) \]
                  9. *-commutativeN/A

                    \[\leadsto -1 \cdot \left(d \cdot \sqrt{\sqrt{\frac{1}{\ell \cdot h} \cdot \frac{1}{\ell \cdot h}}}\right) \]
                  10. lower-*.f6422.1

                    \[\leadsto -1 \cdot \left(d \cdot \sqrt{\sqrt{\frac{1}{\ell \cdot h} \cdot \frac{1}{\ell \cdot h}}}\right) \]
                7. Applied rewrites22.1%

                  \[\leadsto -1 \cdot \left(d \cdot \sqrt{\sqrt{\frac{1}{\ell \cdot h} \cdot \frac{1}{\ell \cdot h}}}\right) \]
                8. Step-by-step derivation
                  1. lift-*.f64N/A

                    \[\leadsto -1 \cdot \left(d \cdot \sqrt{\sqrt{\frac{1}{\ell \cdot h} \cdot \frac{1}{\ell \cdot h}}}\right) \]
                  2. lift-/.f64N/A

                    \[\leadsto -1 \cdot \left(d \cdot \sqrt{\sqrt{\frac{1}{\ell \cdot h} \cdot \frac{1}{\ell \cdot h}}}\right) \]
                  3. mult-flip-revN/A

                    \[\leadsto -1 \cdot \left(d \cdot \sqrt{\sqrt{\frac{\frac{1}{\ell \cdot h}}{\ell \cdot h}}}\right) \]
                  4. lift-*.f64N/A

                    \[\leadsto -1 \cdot \left(d \cdot \sqrt{\sqrt{\frac{\frac{1}{\ell \cdot h}}{\ell \cdot h}}}\right) \]
                  5. associate-/r*N/A

                    \[\leadsto -1 \cdot \left(d \cdot \sqrt{\sqrt{\frac{\frac{\frac{1}{\ell \cdot h}}{\ell}}{h}}}\right) \]
                  6. lower-/.f64N/A

                    \[\leadsto -1 \cdot \left(d \cdot \sqrt{\sqrt{\frac{\frac{\frac{1}{\ell \cdot h}}{\ell}}{h}}}\right) \]
                  7. lower-/.f6421.8

                    \[\leadsto -1 \cdot \left(d \cdot \sqrt{\sqrt{\frac{\frac{\frac{1}{\ell \cdot h}}{\ell}}{h}}}\right) \]
                9. Applied rewrites21.8%

                  \[\leadsto -1 \cdot \left(d \cdot \sqrt{\sqrt{\frac{\frac{\frac{1}{\ell \cdot h}}{\ell}}{h}}}\right) \]

                if -3.99999999999999994e-118 < (*.f64 (*.f64 (pow.f64 (/.f64 d h) (/.f64 #s(literal 1 binary64) #s(literal 2 binary64))) (pow.f64 (/.f64 d l) (/.f64 #s(literal 1 binary64) #s(literal 2 binary64)))) (-.f64 #s(literal 1 binary64) (*.f64 (*.f64 (/.f64 #s(literal 1 binary64) #s(literal 2 binary64)) (pow.f64 (/.f64 (*.f64 M D) (*.f64 #s(literal 2 binary64) d)) #s(literal 2 binary64))) (/.f64 h l)))) < 5.0000000000000002e-217 or 4.9999999999999996e249 < (*.f64 (*.f64 (pow.f64 (/.f64 d h) (/.f64 #s(literal 1 binary64) #s(literal 2 binary64))) (pow.f64 (/.f64 d l) (/.f64 #s(literal 1 binary64) #s(literal 2 binary64)))) (-.f64 #s(literal 1 binary64) (*.f64 (*.f64 (/.f64 #s(literal 1 binary64) #s(literal 2 binary64)) (pow.f64 (/.f64 (*.f64 M D) (*.f64 #s(literal 2 binary64) d)) #s(literal 2 binary64))) (/.f64 h l))))

                1. Initial program 66.7%

                  \[\left({\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)} \cdot {\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                2. Step-by-step derivation
                  1. lift-*.f64N/A

                    \[\leadsto \color{blue}{\left({\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)} \cdot {\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)}\right)} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                  2. *-commutativeN/A

                    \[\leadsto \color{blue}{\left({\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right)} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                  3. lower-*.f6466.7

                    \[\leadsto \color{blue}{\left({\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right)} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                  4. lift-pow.f64N/A

                    \[\leadsto \left(\color{blue}{{\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)}} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                  5. lift-/.f64N/A

                    \[\leadsto \left({\left(\frac{d}{\ell}\right)}^{\color{blue}{\left(\frac{1}{2}\right)}} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                  6. metadata-evalN/A

                    \[\leadsto \left({\left(\frac{d}{\ell}\right)}^{\color{blue}{\frac{1}{2}}} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                  7. unpow1/2N/A

                    \[\leadsto \left(\color{blue}{\sqrt{\frac{d}{\ell}}} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                  8. lower-sqrt.f6466.7

                    \[\leadsto \left(\color{blue}{\sqrt{\frac{d}{\ell}}} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                  9. lift-pow.f64N/A

                    \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot \color{blue}{{\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                  10. lift-/.f64N/A

                    \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot {\left(\frac{d}{h}\right)}^{\color{blue}{\left(\frac{1}{2}\right)}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                  11. metadata-evalN/A

                    \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot {\left(\frac{d}{h}\right)}^{\color{blue}{\frac{1}{2}}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                  12. unpow1/2N/A

                    \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot \color{blue}{\sqrt{\frac{d}{h}}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                  13. lower-sqrt.f6466.7

                    \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot \color{blue}{\sqrt{\frac{d}{h}}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                3. Applied rewrites66.7%

                  \[\leadsto \color{blue}{\left(\sqrt{\frac{d}{\ell}} \cdot \sqrt{\frac{d}{h}}\right)} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                4. Step-by-step derivation
                  1. lift-*.f64N/A

                    \[\leadsto \color{blue}{\left(\sqrt{\frac{d}{\ell}} \cdot \sqrt{\frac{d}{h}}\right)} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                  2. lift-sqrt.f64N/A

                    \[\leadsto \left(\color{blue}{\sqrt{\frac{d}{\ell}}} \cdot \sqrt{\frac{d}{h}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                  3. lift-sqrt.f64N/A

                    \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot \color{blue}{\sqrt{\frac{d}{h}}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                  4. sqrt-unprodN/A

                    \[\leadsto \color{blue}{\sqrt{\frac{d}{\ell} \cdot \frac{d}{h}}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                  5. lift-/.f64N/A

                    \[\leadsto \sqrt{\color{blue}{\frac{d}{\ell}} \cdot \frac{d}{h}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                  6. lift-/.f64N/A

                    \[\leadsto \sqrt{\frac{d}{\ell} \cdot \color{blue}{\frac{d}{h}}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                  7. frac-timesN/A

                    \[\leadsto \sqrt{\color{blue}{\frac{d \cdot d}{\ell \cdot h}}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                  8. *-commutativeN/A

                    \[\leadsto \sqrt{\frac{d \cdot d}{\color{blue}{h \cdot \ell}}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                  9. lift-*.f64N/A

                    \[\leadsto \sqrt{\frac{d \cdot d}{\color{blue}{h \cdot \ell}}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                  10. lift-*.f64N/A

                    \[\leadsto \sqrt{\frac{\color{blue}{d \cdot d}}{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                  11. sqrt-divN/A

                    \[\leadsto \color{blue}{\frac{\sqrt{d \cdot d}}{\sqrt{h \cdot \ell}}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                  12. lower-unsound-sqrt.f32N/A

                    \[\leadsto \frac{\color{blue}{\sqrt{d \cdot d}}}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                  13. lower-sqrt.f32N/A

                    \[\leadsto \frac{\color{blue}{\sqrt{d \cdot d}}}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                  14. lift-*.f64N/A

                    \[\leadsto \frac{\sqrt{\color{blue}{d \cdot d}}}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                  15. rem-sqrt-square-revN/A

                    \[\leadsto \frac{\color{blue}{\left|d\right|}}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                  16. lower-unsound-/.f64N/A

                    \[\leadsto \color{blue}{\frac{\left|d\right|}{\sqrt{h \cdot \ell}}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                  17. lower-fabs.f64N/A

                    \[\leadsto \frac{\color{blue}{\left|d\right|}}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                  18. lower-unsound-sqrt.f6469.9

                    \[\leadsto \frac{\left|d\right|}{\color{blue}{\sqrt{h \cdot \ell}}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                5. Applied rewrites69.9%

                  \[\leadsto \color{blue}{\frac{\left|d\right|}{\sqrt{h \cdot \ell}}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                6. Step-by-step derivation
                  1. lift-pow.f64N/A

                    \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \color{blue}{{\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}}\right) \cdot \frac{h}{\ell}\right) \]
                  2. unpow2N/A

                    \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \color{blue}{\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{M \cdot D}{2 \cdot d}\right)}\right) \cdot \frac{h}{\ell}\right) \]
                  3. lift-/.f64N/A

                    \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\color{blue}{\frac{M \cdot D}{2 \cdot d}} \cdot \frac{M \cdot D}{2 \cdot d}\right)\right) \cdot \frac{h}{\ell}\right) \]
                  4. frac-2negN/A

                    \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\color{blue}{\frac{\mathsf{neg}\left(M \cdot D\right)}{\mathsf{neg}\left(2 \cdot d\right)}} \cdot \frac{M \cdot D}{2 \cdot d}\right)\right) \cdot \frac{h}{\ell}\right) \]
                  5. distribute-frac-negN/A

                    \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\color{blue}{\left(\mathsf{neg}\left(\frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right)} \cdot \frac{M \cdot D}{2 \cdot d}\right)\right) \cdot \frac{h}{\ell}\right) \]
                  6. lift-/.f64N/A

                    \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\left(\mathsf{neg}\left(\frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \color{blue}{\frac{M \cdot D}{2 \cdot d}}\right)\right) \cdot \frac{h}{\ell}\right) \]
                  7. frac-2negN/A

                    \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\left(\mathsf{neg}\left(\frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \color{blue}{\frac{\mathsf{neg}\left(M \cdot D\right)}{\mathsf{neg}\left(2 \cdot d\right)}}\right)\right) \cdot \frac{h}{\ell}\right) \]
                  8. distribute-frac-negN/A

                    \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\left(\mathsf{neg}\left(\frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \color{blue}{\left(\mathsf{neg}\left(\frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
                  9. sqr-negN/A

                    \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \color{blue}{\left(\frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)} \cdot \frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)}\right) \cdot \frac{h}{\ell}\right) \]
                  10. lower-*.f64N/A

                    \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \color{blue}{\left(\frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)} \cdot \frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)}\right) \cdot \frac{h}{\ell}\right) \]
                  11. lower-/.f64N/A

                    \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\color{blue}{\frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}} \cdot \frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
                  12. lift-*.f64N/A

                    \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{\color{blue}{M \cdot D}}{\mathsf{neg}\left(2 \cdot d\right)} \cdot \frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
                  13. *-commutativeN/A

                    \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{\color{blue}{D \cdot M}}{\mathsf{neg}\left(2 \cdot d\right)} \cdot \frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
                  14. lift-*.f64N/A

                    \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{\color{blue}{D \cdot M}}{\mathsf{neg}\left(2 \cdot d\right)} \cdot \frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
                  15. lift-*.f64N/A

                    \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{\mathsf{neg}\left(\color{blue}{2 \cdot d}\right)} \cdot \frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
                  16. distribute-lft-neg-inN/A

                    \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{\color{blue}{\left(\mathsf{neg}\left(2\right)\right) \cdot d}} \cdot \frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
                  17. lower-*.f64N/A

                    \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{\color{blue}{\left(\mathsf{neg}\left(2\right)\right) \cdot d}} \cdot \frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
                  18. metadata-evalN/A

                    \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{\color{blue}{-2} \cdot d} \cdot \frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
                  19. lower-/.f64N/A

                    \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{-2 \cdot d} \cdot \color{blue}{\frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}}\right)\right) \cdot \frac{h}{\ell}\right) \]
                  20. lift-*.f64N/A

                    \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{-2 \cdot d} \cdot \frac{\color{blue}{M \cdot D}}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
                  21. *-commutativeN/A

                    \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{-2 \cdot d} \cdot \frac{\color{blue}{D \cdot M}}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
                  22. lift-*.f64N/A

                    \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{-2 \cdot d} \cdot \frac{\color{blue}{D \cdot M}}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
                  23. lift-*.f64N/A

                    \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{-2 \cdot d} \cdot \frac{D \cdot M}{\mathsf{neg}\left(\color{blue}{2 \cdot d}\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
                  24. distribute-lft-neg-inN/A

                    \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{-2 \cdot d} \cdot \frac{D \cdot M}{\color{blue}{\left(\mathsf{neg}\left(2\right)\right) \cdot d}}\right)\right) \cdot \frac{h}{\ell}\right) \]
                  25. lower-*.f64N/A

                    \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{-2 \cdot d} \cdot \frac{D \cdot M}{\color{blue}{\left(\mathsf{neg}\left(2\right)\right) \cdot d}}\right)\right) \cdot \frac{h}{\ell}\right) \]
                  26. metadata-eval69.9

                    \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{-2 \cdot d} \cdot \frac{D \cdot M}{\color{blue}{-2} \cdot d}\right)\right) \cdot \frac{h}{\ell}\right) \]
                7. Applied rewrites69.9%

                  \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \color{blue}{\left(\frac{D \cdot M}{-2 \cdot d} \cdot \frac{D \cdot M}{-2 \cdot d}\right)}\right) \cdot \frac{h}{\ell}\right) \]
                8. Taylor expanded in d around inf

                  \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \color{blue}{1} \]
                9. Step-by-step derivation
                  1. Applied rewrites42.5%

                    \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \color{blue}{1} \]

                  if 5.0000000000000002e-217 < (*.f64 (*.f64 (pow.f64 (/.f64 d h) (/.f64 #s(literal 1 binary64) #s(literal 2 binary64))) (pow.f64 (/.f64 d l) (/.f64 #s(literal 1 binary64) #s(literal 2 binary64)))) (-.f64 #s(literal 1 binary64) (*.f64 (*.f64 (/.f64 #s(literal 1 binary64) #s(literal 2 binary64)) (pow.f64 (/.f64 (*.f64 M D) (*.f64 #s(literal 2 binary64) d)) #s(literal 2 binary64))) (/.f64 h l)))) < 4.9999999999999996e249

                  1. Initial program 66.7%

                    \[\left({\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)} \cdot {\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                  2. Step-by-step derivation
                    1. lift-*.f64N/A

                      \[\leadsto \color{blue}{\left({\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)} \cdot {\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)}\right)} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                    2. *-commutativeN/A

                      \[\leadsto \color{blue}{\left({\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right)} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                    3. lower-*.f6466.7

                      \[\leadsto \color{blue}{\left({\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right)} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                    4. lift-pow.f64N/A

                      \[\leadsto \left(\color{blue}{{\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)}} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                    5. lift-/.f64N/A

                      \[\leadsto \left({\left(\frac{d}{\ell}\right)}^{\color{blue}{\left(\frac{1}{2}\right)}} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                    6. metadata-evalN/A

                      \[\leadsto \left({\left(\frac{d}{\ell}\right)}^{\color{blue}{\frac{1}{2}}} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                    7. unpow1/2N/A

                      \[\leadsto \left(\color{blue}{\sqrt{\frac{d}{\ell}}} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                    8. lower-sqrt.f6466.7

                      \[\leadsto \left(\color{blue}{\sqrt{\frac{d}{\ell}}} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                    9. lift-pow.f64N/A

                      \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot \color{blue}{{\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                    10. lift-/.f64N/A

                      \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot {\left(\frac{d}{h}\right)}^{\color{blue}{\left(\frac{1}{2}\right)}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                    11. metadata-evalN/A

                      \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot {\left(\frac{d}{h}\right)}^{\color{blue}{\frac{1}{2}}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                    12. unpow1/2N/A

                      \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot \color{blue}{\sqrt{\frac{d}{h}}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                    13. lower-sqrt.f6466.7

                      \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot \color{blue}{\sqrt{\frac{d}{h}}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                  3. Applied rewrites66.7%

                    \[\leadsto \color{blue}{\left(\sqrt{\frac{d}{\ell}} \cdot \sqrt{\frac{d}{h}}\right)} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                  4. Applied rewrites54.3%

                    \[\leadsto \color{blue}{\left(\mathsf{fma}\left(\left(-0.125 \cdot \frac{\left(D \cdot M\right) \cdot D}{d \cdot d}\right) \cdot M, \frac{h}{\ell}, 1\right) \cdot \sqrt{\frac{d}{\ell}}\right) \cdot \sqrt{\frac{d}{h}}} \]
                  5. Taylor expanded in l around inf

                    \[\leadsto \color{blue}{\sqrt{\frac{d}{h}} \cdot \sqrt{\frac{d}{\ell}}} \]
                  6. Step-by-step derivation
                    1. lower-*.f64N/A

                      \[\leadsto \sqrt{\frac{d}{h}} \cdot \color{blue}{\sqrt{\frac{d}{\ell}}} \]
                    2. lower-sqrt.f64N/A

                      \[\leadsto \sqrt{\frac{d}{h}} \cdot \sqrt{\color{blue}{\frac{d}{\ell}}} \]
                    3. lower-/.f64N/A

                      \[\leadsto \sqrt{\frac{d}{h}} \cdot \sqrt{\frac{\color{blue}{d}}{\ell}} \]
                    4. lower-sqrt.f64N/A

                      \[\leadsto \sqrt{\frac{d}{h}} \cdot \sqrt{\frac{d}{\ell}} \]
                    5. lower-/.f6438.9

                      \[\leadsto \sqrt{\frac{d}{h}} \cdot \sqrt{\frac{d}{\ell}} \]
                  7. Applied rewrites38.9%

                    \[\leadsto \color{blue}{\sqrt{\frac{d}{h}} \cdot \sqrt{\frac{d}{\ell}}} \]
                10. Recombined 3 regimes into one program.
                11. Add Preprocessing

                Alternative 11: 54.0% accurate, 0.3× speedup?

                \[\begin{array}{l} \\ \begin{array}{l} t_0 := \left({\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)} \cdot {\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right)\\ t_1 := \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot 1\\ \mathbf{if}\;t\_0 \leq -4 \cdot 10^{-118}:\\ \;\;\;\;\sqrt{\sqrt{\frac{1}{\left(\left(\ell \cdot h\right) \cdot \ell\right) \cdot h}}} \cdot \left(-d\right)\\ \mathbf{elif}\;t\_0 \leq 5 \cdot 10^{-217}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t\_0 \leq 5 \cdot 10^{+249}:\\ \;\;\;\;\sqrt{\frac{d}{h}} \cdot \sqrt{\frac{d}{\ell}}\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                (FPCore (d h l M D)
                 :precision binary64
                 (let* ((t_0
                         (*
                          (* (pow (/ d h) (/ 1.0 2.0)) (pow (/ d l) (/ 1.0 2.0)))
                          (- 1.0 (* (* (/ 1.0 2.0) (pow (/ (* M D) (* 2.0 d)) 2.0)) (/ h l)))))
                        (t_1 (* (/ (fabs d) (sqrt (* h l))) 1.0)))
                   (if (<= t_0 -4e-118)
                     (* (sqrt (sqrt (/ 1.0 (* (* (* l h) l) h)))) (- d))
                     (if (<= t_0 5e-217)
                       t_1
                       (if (<= t_0 5e+249) (* (sqrt (/ d h)) (sqrt (/ d l))) t_1)))))
                double code(double d, double h, double l, double M, double D) {
                	double t_0 = (pow((d / h), (1.0 / 2.0)) * pow((d / l), (1.0 / 2.0))) * (1.0 - (((1.0 / 2.0) * pow(((M * D) / (2.0 * d)), 2.0)) * (h / l)));
                	double t_1 = (fabs(d) / sqrt((h * l))) * 1.0;
                	double tmp;
                	if (t_0 <= -4e-118) {
                		tmp = sqrt(sqrt((1.0 / (((l * h) * l) * h)))) * -d;
                	} else if (t_0 <= 5e-217) {
                		tmp = t_1;
                	} else if (t_0 <= 5e+249) {
                		tmp = sqrt((d / h)) * sqrt((d / l));
                	} else {
                		tmp = t_1;
                	}
                	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(d, h, l, m, d_1)
                use fmin_fmax_functions
                    real(8), intent (in) :: d
                    real(8), intent (in) :: h
                    real(8), intent (in) :: l
                    real(8), intent (in) :: m
                    real(8), intent (in) :: d_1
                    real(8) :: t_0
                    real(8) :: t_1
                    real(8) :: tmp
                    t_0 = (((d / h) ** (1.0d0 / 2.0d0)) * ((d / l) ** (1.0d0 / 2.0d0))) * (1.0d0 - (((1.0d0 / 2.0d0) * (((m * d_1) / (2.0d0 * d)) ** 2.0d0)) * (h / l)))
                    t_1 = (abs(d) / sqrt((h * l))) * 1.0d0
                    if (t_0 <= (-4d-118)) then
                        tmp = sqrt(sqrt((1.0d0 / (((l * h) * l) * h)))) * -d
                    else if (t_0 <= 5d-217) then
                        tmp = t_1
                    else if (t_0 <= 5d+249) then
                        tmp = sqrt((d / h)) * sqrt((d / l))
                    else
                        tmp = t_1
                    end if
                    code = tmp
                end function
                
                public static double code(double d, double h, double l, double M, double D) {
                	double t_0 = (Math.pow((d / h), (1.0 / 2.0)) * Math.pow((d / l), (1.0 / 2.0))) * (1.0 - (((1.0 / 2.0) * Math.pow(((M * D) / (2.0 * d)), 2.0)) * (h / l)));
                	double t_1 = (Math.abs(d) / Math.sqrt((h * l))) * 1.0;
                	double tmp;
                	if (t_0 <= -4e-118) {
                		tmp = Math.sqrt(Math.sqrt((1.0 / (((l * h) * l) * h)))) * -d;
                	} else if (t_0 <= 5e-217) {
                		tmp = t_1;
                	} else if (t_0 <= 5e+249) {
                		tmp = Math.sqrt((d / h)) * Math.sqrt((d / l));
                	} else {
                		tmp = t_1;
                	}
                	return tmp;
                }
                
                def code(d, h, l, M, D):
                	t_0 = (math.pow((d / h), (1.0 / 2.0)) * math.pow((d / l), (1.0 / 2.0))) * (1.0 - (((1.0 / 2.0) * math.pow(((M * D) / (2.0 * d)), 2.0)) * (h / l)))
                	t_1 = (math.fabs(d) / math.sqrt((h * l))) * 1.0
                	tmp = 0
                	if t_0 <= -4e-118:
                		tmp = math.sqrt(math.sqrt((1.0 / (((l * h) * l) * h)))) * -d
                	elif t_0 <= 5e-217:
                		tmp = t_1
                	elif t_0 <= 5e+249:
                		tmp = math.sqrt((d / h)) * math.sqrt((d / l))
                	else:
                		tmp = t_1
                	return tmp
                
                function code(d, h, l, M, D)
                	t_0 = Float64(Float64((Float64(d / h) ^ Float64(1.0 / 2.0)) * (Float64(d / l) ^ Float64(1.0 / 2.0))) * Float64(1.0 - Float64(Float64(Float64(1.0 / 2.0) * (Float64(Float64(M * D) / Float64(2.0 * d)) ^ 2.0)) * Float64(h / l))))
                	t_1 = Float64(Float64(abs(d) / sqrt(Float64(h * l))) * 1.0)
                	tmp = 0.0
                	if (t_0 <= -4e-118)
                		tmp = Float64(sqrt(sqrt(Float64(1.0 / Float64(Float64(Float64(l * h) * l) * h)))) * Float64(-d));
                	elseif (t_0 <= 5e-217)
                		tmp = t_1;
                	elseif (t_0 <= 5e+249)
                		tmp = Float64(sqrt(Float64(d / h)) * sqrt(Float64(d / l)));
                	else
                		tmp = t_1;
                	end
                	return tmp
                end
                
                function tmp_2 = code(d, h, l, M, D)
                	t_0 = (((d / h) ^ (1.0 / 2.0)) * ((d / l) ^ (1.0 / 2.0))) * (1.0 - (((1.0 / 2.0) * (((M * D) / (2.0 * d)) ^ 2.0)) * (h / l)));
                	t_1 = (abs(d) / sqrt((h * l))) * 1.0;
                	tmp = 0.0;
                	if (t_0 <= -4e-118)
                		tmp = sqrt(sqrt((1.0 / (((l * h) * l) * h)))) * -d;
                	elseif (t_0 <= 5e-217)
                		tmp = t_1;
                	elseif (t_0 <= 5e+249)
                		tmp = sqrt((d / h)) * sqrt((d / l));
                	else
                		tmp = t_1;
                	end
                	tmp_2 = tmp;
                end
                
                code[d_, h_, l_, M_, D_] := Block[{t$95$0 = N[(N[(N[Power[N[(d / h), $MachinePrecision], N[(1.0 / 2.0), $MachinePrecision]], $MachinePrecision] * N[Power[N[(d / l), $MachinePrecision], N[(1.0 / 2.0), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] * N[(1.0 - N[(N[(N[(1.0 / 2.0), $MachinePrecision] * N[Power[N[(N[(M * D), $MachinePrecision] / N[(2.0 * d), $MachinePrecision]), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision] * N[(h / l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[(N[(N[Abs[d], $MachinePrecision] / N[Sqrt[N[(h * l), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] * 1.0), $MachinePrecision]}, If[LessEqual[t$95$0, -4e-118], N[(N[Sqrt[N[Sqrt[N[(1.0 / N[(N[(N[(l * h), $MachinePrecision] * l), $MachinePrecision] * h), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]], $MachinePrecision] * (-d)), $MachinePrecision], If[LessEqual[t$95$0, 5e-217], t$95$1, If[LessEqual[t$95$0, 5e+249], N[(N[Sqrt[N[(d / h), $MachinePrecision]], $MachinePrecision] * N[Sqrt[N[(d / l), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
                
                \begin{array}{l}
                
                \\
                \begin{array}{l}
                t_0 := \left({\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)} \cdot {\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right)\\
                t_1 := \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot 1\\
                \mathbf{if}\;t\_0 \leq -4 \cdot 10^{-118}:\\
                \;\;\;\;\sqrt{\sqrt{\frac{1}{\left(\left(\ell \cdot h\right) \cdot \ell\right) \cdot h}}} \cdot \left(-d\right)\\
                
                \mathbf{elif}\;t\_0 \leq 5 \cdot 10^{-217}:\\
                \;\;\;\;t\_1\\
                
                \mathbf{elif}\;t\_0 \leq 5 \cdot 10^{+249}:\\
                \;\;\;\;\sqrt{\frac{d}{h}} \cdot \sqrt{\frac{d}{\ell}}\\
                
                \mathbf{else}:\\
                \;\;\;\;t\_1\\
                
                
                \end{array}
                \end{array}
                
                Derivation
                1. Split input into 3 regimes
                2. if (*.f64 (*.f64 (pow.f64 (/.f64 d h) (/.f64 #s(literal 1 binary64) #s(literal 2 binary64))) (pow.f64 (/.f64 d l) (/.f64 #s(literal 1 binary64) #s(literal 2 binary64)))) (-.f64 #s(literal 1 binary64) (*.f64 (*.f64 (/.f64 #s(literal 1 binary64) #s(literal 2 binary64)) (pow.f64 (/.f64 (*.f64 M D) (*.f64 #s(literal 2 binary64) d)) #s(literal 2 binary64))) (/.f64 h l)))) < -3.99999999999999994e-118

                  1. Initial program 66.7%

                    \[\left({\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)} \cdot {\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                  2. Applied rewrites29.3%

                    \[\leadsto \color{blue}{\mathsf{fma}\left(\frac{h}{\ell}, \left(M \cdot \left(\frac{D \cdot \left(D \cdot M\right)}{4 \cdot \left(d \cdot d\right)} \cdot -0.5\right)\right) \cdot \sqrt{d \cdot \frac{d}{h \cdot \ell}}, \sqrt{d \cdot \frac{d}{h \cdot \ell}}\right)} \]
                  3. Taylor expanded in d around -inf

                    \[\leadsto \color{blue}{-1 \cdot \left(d \cdot \sqrt{\frac{1}{h \cdot \ell}}\right)} \]
                  4. Step-by-step derivation
                    1. lower-*.f64N/A

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

                      \[\leadsto -1 \cdot \left(d \cdot \color{blue}{\sqrt{\frac{1}{h \cdot \ell}}}\right) \]
                    3. lower-sqrt.f64N/A

                      \[\leadsto -1 \cdot \left(d \cdot \sqrt{\frac{1}{h \cdot \ell}}\right) \]
                    4. lower-/.f64N/A

                      \[\leadsto -1 \cdot \left(d \cdot \sqrt{\frac{1}{h \cdot \ell}}\right) \]
                    5. lower-*.f6425.5

                      \[\leadsto -1 \cdot \left(d \cdot \sqrt{\frac{1}{h \cdot \ell}}\right) \]
                  5. Applied rewrites25.5%

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

                      \[\leadsto -1 \cdot \color{blue}{\left(d \cdot \sqrt{\frac{1}{h \cdot \ell}}\right)} \]
                    2. mul-1-negN/A

                      \[\leadsto \mathsf{neg}\left(d \cdot \sqrt{\frac{1}{h \cdot \ell}}\right) \]
                    3. lift-*.f64N/A

                      \[\leadsto \mathsf{neg}\left(d \cdot \sqrt{\frac{1}{h \cdot \ell}}\right) \]
                    4. *-commutativeN/A

                      \[\leadsto \mathsf{neg}\left(\sqrt{\frac{1}{h \cdot \ell}} \cdot d\right) \]
                    5. distribute-rgt-neg-inN/A

                      \[\leadsto \sqrt{\frac{1}{h \cdot \ell}} \cdot \color{blue}{\left(\mathsf{neg}\left(d\right)\right)} \]
                    6. lower-*.f64N/A

                      \[\leadsto \sqrt{\frac{1}{h \cdot \ell}} \cdot \color{blue}{\left(\mathsf{neg}\left(d\right)\right)} \]
                    7. lift-*.f64N/A

                      \[\leadsto \sqrt{\frac{1}{h \cdot \ell}} \cdot \left(\mathsf{neg}\left(d\right)\right) \]
                    8. *-commutativeN/A

                      \[\leadsto \sqrt{\frac{1}{\ell \cdot h}} \cdot \left(\mathsf{neg}\left(d\right)\right) \]
                    9. lower-*.f64N/A

                      \[\leadsto \sqrt{\frac{1}{\ell \cdot h}} \cdot \left(\mathsf{neg}\left(d\right)\right) \]
                    10. lower-neg.f6425.5

                      \[\leadsto \sqrt{\frac{1}{\ell \cdot h}} \cdot \left(-d\right) \]
                  7. Applied rewrites25.5%

                    \[\leadsto \sqrt{\frac{1}{\ell \cdot h}} \cdot \color{blue}{\left(-d\right)} \]
                  8. Step-by-step derivation
                    1. rem-square-sqrtN/A

                      \[\leadsto \sqrt{\sqrt{\frac{1}{\ell \cdot h}} \cdot \sqrt{\frac{1}{\ell \cdot h}}} \cdot \left(-d\right) \]
                    2. sqrt-unprodN/A

                      \[\leadsto \sqrt{\sqrt{\frac{1}{\ell \cdot h} \cdot \frac{1}{\ell \cdot h}}} \cdot \left(-d\right) \]
                    3. lift-*.f64N/A

                      \[\leadsto \sqrt{\sqrt{\frac{1}{\ell \cdot h} \cdot \frac{1}{\ell \cdot h}}} \cdot \left(-d\right) \]
                    4. lift-sqrt.f6422.1

                      \[\leadsto \sqrt{\sqrt{\frac{1}{\ell \cdot h} \cdot \frac{1}{\ell \cdot h}}} \cdot \left(-d\right) \]
                    5. lift-*.f64N/A

                      \[\leadsto \sqrt{\sqrt{\frac{1}{\ell \cdot h} \cdot \frac{1}{\ell \cdot h}}} \cdot \left(-d\right) \]
                    6. lift-/.f64N/A

                      \[\leadsto \sqrt{\sqrt{\frac{1}{\ell \cdot h} \cdot \frac{1}{\ell \cdot h}}} \cdot \left(-d\right) \]
                    7. lift-/.f64N/A

                      \[\leadsto \sqrt{\sqrt{\frac{1}{\ell \cdot h} \cdot \frac{1}{\ell \cdot h}}} \cdot \left(-d\right) \]
                    8. frac-timesN/A

                      \[\leadsto \sqrt{\sqrt{\frac{1 \cdot 1}{\left(\ell \cdot h\right) \cdot \left(\ell \cdot h\right)}}} \cdot \left(-d\right) \]
                    9. metadata-evalN/A

                      \[\leadsto \sqrt{\sqrt{\frac{1}{\left(\ell \cdot h\right) \cdot \left(\ell \cdot h\right)}}} \cdot \left(-d\right) \]
                    10. lower-/.f64N/A

                      \[\leadsto \sqrt{\sqrt{\frac{1}{\left(\ell \cdot h\right) \cdot \left(\ell \cdot h\right)}}} \cdot \left(-d\right) \]
                    11. lift-*.f64N/A

                      \[\leadsto \sqrt{\sqrt{\frac{1}{\left(\ell \cdot h\right) \cdot \left(\ell \cdot h\right)}}} \cdot \left(-d\right) \]
                    12. associate-*r*N/A

                      \[\leadsto \sqrt{\sqrt{\frac{1}{\left(\left(\ell \cdot h\right) \cdot \ell\right) \cdot h}}} \cdot \left(-d\right) \]
                    13. lower-*.f64N/A

                      \[\leadsto \sqrt{\sqrt{\frac{1}{\left(\left(\ell \cdot h\right) \cdot \ell\right) \cdot h}}} \cdot \left(-d\right) \]
                    14. lower-*.f6421.5

                      \[\leadsto \sqrt{\sqrt{\frac{1}{\left(\left(\ell \cdot h\right) \cdot \ell\right) \cdot h}}} \cdot \left(-d\right) \]
                  9. Applied rewrites21.5%

                    \[\leadsto \sqrt{\sqrt{\frac{1}{\left(\left(\ell \cdot h\right) \cdot \ell\right) \cdot h}}} \cdot \left(-d\right) \]

                  if -3.99999999999999994e-118 < (*.f64 (*.f64 (pow.f64 (/.f64 d h) (/.f64 #s(literal 1 binary64) #s(literal 2 binary64))) (pow.f64 (/.f64 d l) (/.f64 #s(literal 1 binary64) #s(literal 2 binary64)))) (-.f64 #s(literal 1 binary64) (*.f64 (*.f64 (/.f64 #s(literal 1 binary64) #s(literal 2 binary64)) (pow.f64 (/.f64 (*.f64 M D) (*.f64 #s(literal 2 binary64) d)) #s(literal 2 binary64))) (/.f64 h l)))) < 5.0000000000000002e-217 or 4.9999999999999996e249 < (*.f64 (*.f64 (pow.f64 (/.f64 d h) (/.f64 #s(literal 1 binary64) #s(literal 2 binary64))) (pow.f64 (/.f64 d l) (/.f64 #s(literal 1 binary64) #s(literal 2 binary64)))) (-.f64 #s(literal 1 binary64) (*.f64 (*.f64 (/.f64 #s(literal 1 binary64) #s(literal 2 binary64)) (pow.f64 (/.f64 (*.f64 M D) (*.f64 #s(literal 2 binary64) d)) #s(literal 2 binary64))) (/.f64 h l))))

                  1. Initial program 66.7%

                    \[\left({\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)} \cdot {\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                  2. Step-by-step derivation
                    1. lift-*.f64N/A

                      \[\leadsto \color{blue}{\left({\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)} \cdot {\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)}\right)} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                    2. *-commutativeN/A

                      \[\leadsto \color{blue}{\left({\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right)} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                    3. lower-*.f6466.7

                      \[\leadsto \color{blue}{\left({\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right)} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                    4. lift-pow.f64N/A

                      \[\leadsto \left(\color{blue}{{\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)}} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                    5. lift-/.f64N/A

                      \[\leadsto \left({\left(\frac{d}{\ell}\right)}^{\color{blue}{\left(\frac{1}{2}\right)}} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                    6. metadata-evalN/A

                      \[\leadsto \left({\left(\frac{d}{\ell}\right)}^{\color{blue}{\frac{1}{2}}} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                    7. unpow1/2N/A

                      \[\leadsto \left(\color{blue}{\sqrt{\frac{d}{\ell}}} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                    8. lower-sqrt.f6466.7

                      \[\leadsto \left(\color{blue}{\sqrt{\frac{d}{\ell}}} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                    9. lift-pow.f64N/A

                      \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot \color{blue}{{\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                    10. lift-/.f64N/A

                      \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot {\left(\frac{d}{h}\right)}^{\color{blue}{\left(\frac{1}{2}\right)}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                    11. metadata-evalN/A

                      \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot {\left(\frac{d}{h}\right)}^{\color{blue}{\frac{1}{2}}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                    12. unpow1/2N/A

                      \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot \color{blue}{\sqrt{\frac{d}{h}}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                    13. lower-sqrt.f6466.7

                      \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot \color{blue}{\sqrt{\frac{d}{h}}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                  3. Applied rewrites66.7%

                    \[\leadsto \color{blue}{\left(\sqrt{\frac{d}{\ell}} \cdot \sqrt{\frac{d}{h}}\right)} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                  4. Step-by-step derivation
                    1. lift-*.f64N/A

                      \[\leadsto \color{blue}{\left(\sqrt{\frac{d}{\ell}} \cdot \sqrt{\frac{d}{h}}\right)} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                    2. lift-sqrt.f64N/A

                      \[\leadsto \left(\color{blue}{\sqrt{\frac{d}{\ell}}} \cdot \sqrt{\frac{d}{h}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                    3. lift-sqrt.f64N/A

                      \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot \color{blue}{\sqrt{\frac{d}{h}}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                    4. sqrt-unprodN/A

                      \[\leadsto \color{blue}{\sqrt{\frac{d}{\ell} \cdot \frac{d}{h}}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                    5. lift-/.f64N/A

                      \[\leadsto \sqrt{\color{blue}{\frac{d}{\ell}} \cdot \frac{d}{h}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                    6. lift-/.f64N/A

                      \[\leadsto \sqrt{\frac{d}{\ell} \cdot \color{blue}{\frac{d}{h}}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                    7. frac-timesN/A

                      \[\leadsto \sqrt{\color{blue}{\frac{d \cdot d}{\ell \cdot h}}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                    8. *-commutativeN/A

                      \[\leadsto \sqrt{\frac{d \cdot d}{\color{blue}{h \cdot \ell}}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                    9. lift-*.f64N/A

                      \[\leadsto \sqrt{\frac{d \cdot d}{\color{blue}{h \cdot \ell}}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                    10. lift-*.f64N/A

                      \[\leadsto \sqrt{\frac{\color{blue}{d \cdot d}}{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                    11. sqrt-divN/A

                      \[\leadsto \color{blue}{\frac{\sqrt{d \cdot d}}{\sqrt{h \cdot \ell}}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                    12. lower-unsound-sqrt.f32N/A

                      \[\leadsto \frac{\color{blue}{\sqrt{d \cdot d}}}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                    13. lower-sqrt.f32N/A

                      \[\leadsto \frac{\color{blue}{\sqrt{d \cdot d}}}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                    14. lift-*.f64N/A

                      \[\leadsto \frac{\sqrt{\color{blue}{d \cdot d}}}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                    15. rem-sqrt-square-revN/A

                      \[\leadsto \frac{\color{blue}{\left|d\right|}}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                    16. lower-unsound-/.f64N/A

                      \[\leadsto \color{blue}{\frac{\left|d\right|}{\sqrt{h \cdot \ell}}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                    17. lower-fabs.f64N/A

                      \[\leadsto \frac{\color{blue}{\left|d\right|}}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                    18. lower-unsound-sqrt.f6469.9

                      \[\leadsto \frac{\left|d\right|}{\color{blue}{\sqrt{h \cdot \ell}}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                  5. Applied rewrites69.9%

                    \[\leadsto \color{blue}{\frac{\left|d\right|}{\sqrt{h \cdot \ell}}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                  6. Step-by-step derivation
                    1. lift-pow.f64N/A

                      \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \color{blue}{{\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}}\right) \cdot \frac{h}{\ell}\right) \]
                    2. unpow2N/A

                      \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \color{blue}{\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{M \cdot D}{2 \cdot d}\right)}\right) \cdot \frac{h}{\ell}\right) \]
                    3. lift-/.f64N/A

                      \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\color{blue}{\frac{M \cdot D}{2 \cdot d}} \cdot \frac{M \cdot D}{2 \cdot d}\right)\right) \cdot \frac{h}{\ell}\right) \]
                    4. frac-2negN/A

                      \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\color{blue}{\frac{\mathsf{neg}\left(M \cdot D\right)}{\mathsf{neg}\left(2 \cdot d\right)}} \cdot \frac{M \cdot D}{2 \cdot d}\right)\right) \cdot \frac{h}{\ell}\right) \]
                    5. distribute-frac-negN/A

                      \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\color{blue}{\left(\mathsf{neg}\left(\frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right)} \cdot \frac{M \cdot D}{2 \cdot d}\right)\right) \cdot \frac{h}{\ell}\right) \]
                    6. lift-/.f64N/A

                      \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\left(\mathsf{neg}\left(\frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \color{blue}{\frac{M \cdot D}{2 \cdot d}}\right)\right) \cdot \frac{h}{\ell}\right) \]
                    7. frac-2negN/A

                      \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\left(\mathsf{neg}\left(\frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \color{blue}{\frac{\mathsf{neg}\left(M \cdot D\right)}{\mathsf{neg}\left(2 \cdot d\right)}}\right)\right) \cdot \frac{h}{\ell}\right) \]
                    8. distribute-frac-negN/A

                      \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\left(\mathsf{neg}\left(\frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \color{blue}{\left(\mathsf{neg}\left(\frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
                    9. sqr-negN/A

                      \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \color{blue}{\left(\frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)} \cdot \frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)}\right) \cdot \frac{h}{\ell}\right) \]
                    10. lower-*.f64N/A

                      \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \color{blue}{\left(\frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)} \cdot \frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)}\right) \cdot \frac{h}{\ell}\right) \]
                    11. lower-/.f64N/A

                      \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\color{blue}{\frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}} \cdot \frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
                    12. lift-*.f64N/A

                      \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{\color{blue}{M \cdot D}}{\mathsf{neg}\left(2 \cdot d\right)} \cdot \frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
                    13. *-commutativeN/A

                      \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{\color{blue}{D \cdot M}}{\mathsf{neg}\left(2 \cdot d\right)} \cdot \frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
                    14. lift-*.f64N/A

                      \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{\color{blue}{D \cdot M}}{\mathsf{neg}\left(2 \cdot d\right)} \cdot \frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
                    15. lift-*.f64N/A

                      \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{\mathsf{neg}\left(\color{blue}{2 \cdot d}\right)} \cdot \frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
                    16. distribute-lft-neg-inN/A

                      \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{\color{blue}{\left(\mathsf{neg}\left(2\right)\right) \cdot d}} \cdot \frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
                    17. lower-*.f64N/A

                      \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{\color{blue}{\left(\mathsf{neg}\left(2\right)\right) \cdot d}} \cdot \frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
                    18. metadata-evalN/A

                      \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{\color{blue}{-2} \cdot d} \cdot \frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
                    19. lower-/.f64N/A

                      \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{-2 \cdot d} \cdot \color{blue}{\frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}}\right)\right) \cdot \frac{h}{\ell}\right) \]
                    20. lift-*.f64N/A

                      \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{-2 \cdot d} \cdot \frac{\color{blue}{M \cdot D}}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
                    21. *-commutativeN/A

                      \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{-2 \cdot d} \cdot \frac{\color{blue}{D \cdot M}}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
                    22. lift-*.f64N/A

                      \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{-2 \cdot d} \cdot \frac{\color{blue}{D \cdot M}}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
                    23. lift-*.f64N/A

                      \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{-2 \cdot d} \cdot \frac{D \cdot M}{\mathsf{neg}\left(\color{blue}{2 \cdot d}\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
                    24. distribute-lft-neg-inN/A

                      \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{-2 \cdot d} \cdot \frac{D \cdot M}{\color{blue}{\left(\mathsf{neg}\left(2\right)\right) \cdot d}}\right)\right) \cdot \frac{h}{\ell}\right) \]
                    25. lower-*.f64N/A

                      \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{-2 \cdot d} \cdot \frac{D \cdot M}{\color{blue}{\left(\mathsf{neg}\left(2\right)\right) \cdot d}}\right)\right) \cdot \frac{h}{\ell}\right) \]
                    26. metadata-eval69.9

                      \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{-2 \cdot d} \cdot \frac{D \cdot M}{\color{blue}{-2} \cdot d}\right)\right) \cdot \frac{h}{\ell}\right) \]
                  7. Applied rewrites69.9%

                    \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \color{blue}{\left(\frac{D \cdot M}{-2 \cdot d} \cdot \frac{D \cdot M}{-2 \cdot d}\right)}\right) \cdot \frac{h}{\ell}\right) \]
                  8. Taylor expanded in d around inf

                    \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \color{blue}{1} \]
                  9. Step-by-step derivation
                    1. Applied rewrites42.5%

                      \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \color{blue}{1} \]

                    if 5.0000000000000002e-217 < (*.f64 (*.f64 (pow.f64 (/.f64 d h) (/.f64 #s(literal 1 binary64) #s(literal 2 binary64))) (pow.f64 (/.f64 d l) (/.f64 #s(literal 1 binary64) #s(literal 2 binary64)))) (-.f64 #s(literal 1 binary64) (*.f64 (*.f64 (/.f64 #s(literal 1 binary64) #s(literal 2 binary64)) (pow.f64 (/.f64 (*.f64 M D) (*.f64 #s(literal 2 binary64) d)) #s(literal 2 binary64))) (/.f64 h l)))) < 4.9999999999999996e249

                    1. Initial program 66.7%

                      \[\left({\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)} \cdot {\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                    2. Step-by-step derivation
                      1. lift-*.f64N/A

                        \[\leadsto \color{blue}{\left({\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)} \cdot {\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)}\right)} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                      2. *-commutativeN/A

                        \[\leadsto \color{blue}{\left({\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right)} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                      3. lower-*.f6466.7

                        \[\leadsto \color{blue}{\left({\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right)} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                      4. lift-pow.f64N/A

                        \[\leadsto \left(\color{blue}{{\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)}} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                      5. lift-/.f64N/A

                        \[\leadsto \left({\left(\frac{d}{\ell}\right)}^{\color{blue}{\left(\frac{1}{2}\right)}} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                      6. metadata-evalN/A

                        \[\leadsto \left({\left(\frac{d}{\ell}\right)}^{\color{blue}{\frac{1}{2}}} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                      7. unpow1/2N/A

                        \[\leadsto \left(\color{blue}{\sqrt{\frac{d}{\ell}}} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                      8. lower-sqrt.f6466.7

                        \[\leadsto \left(\color{blue}{\sqrt{\frac{d}{\ell}}} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                      9. lift-pow.f64N/A

                        \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot \color{blue}{{\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                      10. lift-/.f64N/A

                        \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot {\left(\frac{d}{h}\right)}^{\color{blue}{\left(\frac{1}{2}\right)}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                      11. metadata-evalN/A

                        \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot {\left(\frac{d}{h}\right)}^{\color{blue}{\frac{1}{2}}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                      12. unpow1/2N/A

                        \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot \color{blue}{\sqrt{\frac{d}{h}}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                      13. lower-sqrt.f6466.7

                        \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot \color{blue}{\sqrt{\frac{d}{h}}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                    3. Applied rewrites66.7%

                      \[\leadsto \color{blue}{\left(\sqrt{\frac{d}{\ell}} \cdot \sqrt{\frac{d}{h}}\right)} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                    4. Applied rewrites54.3%

                      \[\leadsto \color{blue}{\left(\mathsf{fma}\left(\left(-0.125 \cdot \frac{\left(D \cdot M\right) \cdot D}{d \cdot d}\right) \cdot M, \frac{h}{\ell}, 1\right) \cdot \sqrt{\frac{d}{\ell}}\right) \cdot \sqrt{\frac{d}{h}}} \]
                    5. Taylor expanded in l around inf

                      \[\leadsto \color{blue}{\sqrt{\frac{d}{h}} \cdot \sqrt{\frac{d}{\ell}}} \]
                    6. Step-by-step derivation
                      1. lower-*.f64N/A

                        \[\leadsto \sqrt{\frac{d}{h}} \cdot \color{blue}{\sqrt{\frac{d}{\ell}}} \]
                      2. lower-sqrt.f64N/A

                        \[\leadsto \sqrt{\frac{d}{h}} \cdot \sqrt{\color{blue}{\frac{d}{\ell}}} \]
                      3. lower-/.f64N/A

                        \[\leadsto \sqrt{\frac{d}{h}} \cdot \sqrt{\frac{\color{blue}{d}}{\ell}} \]
                      4. lower-sqrt.f64N/A

                        \[\leadsto \sqrt{\frac{d}{h}} \cdot \sqrt{\frac{d}{\ell}} \]
                      5. lower-/.f6438.9

                        \[\leadsto \sqrt{\frac{d}{h}} \cdot \sqrt{\frac{d}{\ell}} \]
                    7. Applied rewrites38.9%

                      \[\leadsto \color{blue}{\sqrt{\frac{d}{h}} \cdot \sqrt{\frac{d}{\ell}}} \]
                  10. Recombined 3 regimes into one program.
                  11. Add Preprocessing

                  Alternative 12: 49.8% accurate, 0.5× speedup?

                  \[\begin{array}{l} \\ \begin{array}{l} t_0 := \left({\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)} \cdot {\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right)\\ \mathbf{if}\;t\_0 \leq 5 \cdot 10^{-217}:\\ \;\;\;\;\sqrt{\frac{\frac{1}{\ell}}{h}} \cdot \left(-d\right)\\ \mathbf{elif}\;t\_0 \leq 5 \cdot 10^{+249}:\\ \;\;\;\;\sqrt{\frac{d}{h}} \cdot \sqrt{\frac{d}{\ell}}\\ \mathbf{else}:\\ \;\;\;\;\frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot 1\\ \end{array} \end{array} \]
                  (FPCore (d h l M D)
                   :precision binary64
                   (let* ((t_0
                           (*
                            (* (pow (/ d h) (/ 1.0 2.0)) (pow (/ d l) (/ 1.0 2.0)))
                            (-
                             1.0
                             (* (* (/ 1.0 2.0) (pow (/ (* M D) (* 2.0 d)) 2.0)) (/ h l))))))
                     (if (<= t_0 5e-217)
                       (* (sqrt (/ (/ 1.0 l) h)) (- d))
                       (if (<= t_0 5e+249)
                         (* (sqrt (/ d h)) (sqrt (/ d l)))
                         (* (/ (fabs d) (sqrt (* h l))) 1.0)))))
                  double code(double d, double h, double l, double M, double D) {
                  	double t_0 = (pow((d / h), (1.0 / 2.0)) * pow((d / l), (1.0 / 2.0))) * (1.0 - (((1.0 / 2.0) * pow(((M * D) / (2.0 * d)), 2.0)) * (h / l)));
                  	double tmp;
                  	if (t_0 <= 5e-217) {
                  		tmp = sqrt(((1.0 / l) / h)) * -d;
                  	} else if (t_0 <= 5e+249) {
                  		tmp = sqrt((d / h)) * sqrt((d / l));
                  	} else {
                  		tmp = (fabs(d) / sqrt((h * l))) * 1.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(d, h, l, m, d_1)
                  use fmin_fmax_functions
                      real(8), intent (in) :: d
                      real(8), intent (in) :: h
                      real(8), intent (in) :: l
                      real(8), intent (in) :: m
                      real(8), intent (in) :: d_1
                      real(8) :: t_0
                      real(8) :: tmp
                      t_0 = (((d / h) ** (1.0d0 / 2.0d0)) * ((d / l) ** (1.0d0 / 2.0d0))) * (1.0d0 - (((1.0d0 / 2.0d0) * (((m * d_1) / (2.0d0 * d)) ** 2.0d0)) * (h / l)))
                      if (t_0 <= 5d-217) then
                          tmp = sqrt(((1.0d0 / l) / h)) * -d
                      else if (t_0 <= 5d+249) then
                          tmp = sqrt((d / h)) * sqrt((d / l))
                      else
                          tmp = (abs(d) / sqrt((h * l))) * 1.0d0
                      end if
                      code = tmp
                  end function
                  
                  public static double code(double d, double h, double l, double M, double D) {
                  	double t_0 = (Math.pow((d / h), (1.0 / 2.0)) * Math.pow((d / l), (1.0 / 2.0))) * (1.0 - (((1.0 / 2.0) * Math.pow(((M * D) / (2.0 * d)), 2.0)) * (h / l)));
                  	double tmp;
                  	if (t_0 <= 5e-217) {
                  		tmp = Math.sqrt(((1.0 / l) / h)) * -d;
                  	} else if (t_0 <= 5e+249) {
                  		tmp = Math.sqrt((d / h)) * Math.sqrt((d / l));
                  	} else {
                  		tmp = (Math.abs(d) / Math.sqrt((h * l))) * 1.0;
                  	}
                  	return tmp;
                  }
                  
                  def code(d, h, l, M, D):
                  	t_0 = (math.pow((d / h), (1.0 / 2.0)) * math.pow((d / l), (1.0 / 2.0))) * (1.0 - (((1.0 / 2.0) * math.pow(((M * D) / (2.0 * d)), 2.0)) * (h / l)))
                  	tmp = 0
                  	if t_0 <= 5e-217:
                  		tmp = math.sqrt(((1.0 / l) / h)) * -d
                  	elif t_0 <= 5e+249:
                  		tmp = math.sqrt((d / h)) * math.sqrt((d / l))
                  	else:
                  		tmp = (math.fabs(d) / math.sqrt((h * l))) * 1.0
                  	return tmp
                  
                  function code(d, h, l, M, D)
                  	t_0 = Float64(Float64((Float64(d / h) ^ Float64(1.0 / 2.0)) * (Float64(d / l) ^ Float64(1.0 / 2.0))) * Float64(1.0 - Float64(Float64(Float64(1.0 / 2.0) * (Float64(Float64(M * D) / Float64(2.0 * d)) ^ 2.0)) * Float64(h / l))))
                  	tmp = 0.0
                  	if (t_0 <= 5e-217)
                  		tmp = Float64(sqrt(Float64(Float64(1.0 / l) / h)) * Float64(-d));
                  	elseif (t_0 <= 5e+249)
                  		tmp = Float64(sqrt(Float64(d / h)) * sqrt(Float64(d / l)));
                  	else
                  		tmp = Float64(Float64(abs(d) / sqrt(Float64(h * l))) * 1.0);
                  	end
                  	return tmp
                  end
                  
                  function tmp_2 = code(d, h, l, M, D)
                  	t_0 = (((d / h) ^ (1.0 / 2.0)) * ((d / l) ^ (1.0 / 2.0))) * (1.0 - (((1.0 / 2.0) * (((M * D) / (2.0 * d)) ^ 2.0)) * (h / l)));
                  	tmp = 0.0;
                  	if (t_0 <= 5e-217)
                  		tmp = sqrt(((1.0 / l) / h)) * -d;
                  	elseif (t_0 <= 5e+249)
                  		tmp = sqrt((d / h)) * sqrt((d / l));
                  	else
                  		tmp = (abs(d) / sqrt((h * l))) * 1.0;
                  	end
                  	tmp_2 = tmp;
                  end
                  
                  code[d_, h_, l_, M_, D_] := Block[{t$95$0 = N[(N[(N[Power[N[(d / h), $MachinePrecision], N[(1.0 / 2.0), $MachinePrecision]], $MachinePrecision] * N[Power[N[(d / l), $MachinePrecision], N[(1.0 / 2.0), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] * N[(1.0 - N[(N[(N[(1.0 / 2.0), $MachinePrecision] * N[Power[N[(N[(M * D), $MachinePrecision] / N[(2.0 * d), $MachinePrecision]), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision] * N[(h / l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$0, 5e-217], N[(N[Sqrt[N[(N[(1.0 / l), $MachinePrecision] / h), $MachinePrecision]], $MachinePrecision] * (-d)), $MachinePrecision], If[LessEqual[t$95$0, 5e+249], N[(N[Sqrt[N[(d / h), $MachinePrecision]], $MachinePrecision] * N[Sqrt[N[(d / l), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], N[(N[(N[Abs[d], $MachinePrecision] / N[Sqrt[N[(h * l), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] * 1.0), $MachinePrecision]]]]
                  
                  \begin{array}{l}
                  
                  \\
                  \begin{array}{l}
                  t_0 := \left({\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)} \cdot {\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right)\\
                  \mathbf{if}\;t\_0 \leq 5 \cdot 10^{-217}:\\
                  \;\;\;\;\sqrt{\frac{\frac{1}{\ell}}{h}} \cdot \left(-d\right)\\
                  
                  \mathbf{elif}\;t\_0 \leq 5 \cdot 10^{+249}:\\
                  \;\;\;\;\sqrt{\frac{d}{h}} \cdot \sqrt{\frac{d}{\ell}}\\
                  
                  \mathbf{else}:\\
                  \;\;\;\;\frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot 1\\
                  
                  
                  \end{array}
                  \end{array}
                  
                  Derivation
                  1. Split input into 3 regimes
                  2. if (*.f64 (*.f64 (pow.f64 (/.f64 d h) (/.f64 #s(literal 1 binary64) #s(literal 2 binary64))) (pow.f64 (/.f64 d l) (/.f64 #s(literal 1 binary64) #s(literal 2 binary64)))) (-.f64 #s(literal 1 binary64) (*.f64 (*.f64 (/.f64 #s(literal 1 binary64) #s(literal 2 binary64)) (pow.f64 (/.f64 (*.f64 M D) (*.f64 #s(literal 2 binary64) d)) #s(literal 2 binary64))) (/.f64 h l)))) < 5.0000000000000002e-217

                    1. Initial program 66.7%

                      \[\left({\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)} \cdot {\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                    2. Applied rewrites29.3%

                      \[\leadsto \color{blue}{\mathsf{fma}\left(\frac{h}{\ell}, \left(M \cdot \left(\frac{D \cdot \left(D \cdot M\right)}{4 \cdot \left(d \cdot d\right)} \cdot -0.5\right)\right) \cdot \sqrt{d \cdot \frac{d}{h \cdot \ell}}, \sqrt{d \cdot \frac{d}{h \cdot \ell}}\right)} \]
                    3. Taylor expanded in d around -inf

                      \[\leadsto \color{blue}{-1 \cdot \left(d \cdot \sqrt{\frac{1}{h \cdot \ell}}\right)} \]
                    4. Step-by-step derivation
                      1. lower-*.f64N/A

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

                        \[\leadsto -1 \cdot \left(d \cdot \color{blue}{\sqrt{\frac{1}{h \cdot \ell}}}\right) \]
                      3. lower-sqrt.f64N/A

                        \[\leadsto -1 \cdot \left(d \cdot \sqrt{\frac{1}{h \cdot \ell}}\right) \]
                      4. lower-/.f64N/A

                        \[\leadsto -1 \cdot \left(d \cdot \sqrt{\frac{1}{h \cdot \ell}}\right) \]
                      5. lower-*.f6425.5

                        \[\leadsto -1 \cdot \left(d \cdot \sqrt{\frac{1}{h \cdot \ell}}\right) \]
                    5. Applied rewrites25.5%

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

                        \[\leadsto -1 \cdot \color{blue}{\left(d \cdot \sqrt{\frac{1}{h \cdot \ell}}\right)} \]
                      2. mul-1-negN/A

                        \[\leadsto \mathsf{neg}\left(d \cdot \sqrt{\frac{1}{h \cdot \ell}}\right) \]
                      3. lift-*.f64N/A

                        \[\leadsto \mathsf{neg}\left(d \cdot \sqrt{\frac{1}{h \cdot \ell}}\right) \]
                      4. *-commutativeN/A

                        \[\leadsto \mathsf{neg}\left(\sqrt{\frac{1}{h \cdot \ell}} \cdot d\right) \]
                      5. distribute-rgt-neg-inN/A

                        \[\leadsto \sqrt{\frac{1}{h \cdot \ell}} \cdot \color{blue}{\left(\mathsf{neg}\left(d\right)\right)} \]
                      6. lower-*.f64N/A

                        \[\leadsto \sqrt{\frac{1}{h \cdot \ell}} \cdot \color{blue}{\left(\mathsf{neg}\left(d\right)\right)} \]
                      7. lift-*.f64N/A

                        \[\leadsto \sqrt{\frac{1}{h \cdot \ell}} \cdot \left(\mathsf{neg}\left(d\right)\right) \]
                      8. *-commutativeN/A

                        \[\leadsto \sqrt{\frac{1}{\ell \cdot h}} \cdot \left(\mathsf{neg}\left(d\right)\right) \]
                      9. lower-*.f64N/A

                        \[\leadsto \sqrt{\frac{1}{\ell \cdot h}} \cdot \left(\mathsf{neg}\left(d\right)\right) \]
                      10. lower-neg.f6425.5

                        \[\leadsto \sqrt{\frac{1}{\ell \cdot h}} \cdot \left(-d\right) \]
                    7. Applied rewrites25.5%

                      \[\leadsto \sqrt{\frac{1}{\ell \cdot h}} \cdot \color{blue}{\left(-d\right)} \]
                    8. Step-by-step derivation
                      1. lift-/.f64N/A

                        \[\leadsto \sqrt{\frac{1}{\ell \cdot h}} \cdot \left(-d\right) \]
                      2. lift-*.f64N/A

                        \[\leadsto \sqrt{\frac{1}{\ell \cdot h}} \cdot \left(-d\right) \]
                      3. associate-/r*N/A

                        \[\leadsto \sqrt{\frac{\frac{1}{\ell}}{h}} \cdot \left(-d\right) \]
                      4. lower-/.f64N/A

                        \[\leadsto \sqrt{\frac{\frac{1}{\ell}}{h}} \cdot \left(-d\right) \]
                      5. lower-/.f6425.7

                        \[\leadsto \sqrt{\frac{\frac{1}{\ell}}{h}} \cdot \left(-d\right) \]
                    9. Applied rewrites25.7%

                      \[\leadsto \sqrt{\frac{\frac{1}{\ell}}{h}} \cdot \left(-d\right) \]

                    if 5.0000000000000002e-217 < (*.f64 (*.f64 (pow.f64 (/.f64 d h) (/.f64 #s(literal 1 binary64) #s(literal 2 binary64))) (pow.f64 (/.f64 d l) (/.f64 #s(literal 1 binary64) #s(literal 2 binary64)))) (-.f64 #s(literal 1 binary64) (*.f64 (*.f64 (/.f64 #s(literal 1 binary64) #s(literal 2 binary64)) (pow.f64 (/.f64 (*.f64 M D) (*.f64 #s(literal 2 binary64) d)) #s(literal 2 binary64))) (/.f64 h l)))) < 4.9999999999999996e249

                    1. Initial program 66.7%

                      \[\left({\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)} \cdot {\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                    2. Step-by-step derivation
                      1. lift-*.f64N/A

                        \[\leadsto \color{blue}{\left({\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)} \cdot {\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)}\right)} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                      2. *-commutativeN/A

                        \[\leadsto \color{blue}{\left({\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right)} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                      3. lower-*.f6466.7

                        \[\leadsto \color{blue}{\left({\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right)} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                      4. lift-pow.f64N/A

                        \[\leadsto \left(\color{blue}{{\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)}} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                      5. lift-/.f64N/A

                        \[\leadsto \left({\left(\frac{d}{\ell}\right)}^{\color{blue}{\left(\frac{1}{2}\right)}} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                      6. metadata-evalN/A

                        \[\leadsto \left({\left(\frac{d}{\ell}\right)}^{\color{blue}{\frac{1}{2}}} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                      7. unpow1/2N/A

                        \[\leadsto \left(\color{blue}{\sqrt{\frac{d}{\ell}}} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                      8. lower-sqrt.f6466.7

                        \[\leadsto \left(\color{blue}{\sqrt{\frac{d}{\ell}}} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                      9. lift-pow.f64N/A

                        \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot \color{blue}{{\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                      10. lift-/.f64N/A

                        \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot {\left(\frac{d}{h}\right)}^{\color{blue}{\left(\frac{1}{2}\right)}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                      11. metadata-evalN/A

                        \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot {\left(\frac{d}{h}\right)}^{\color{blue}{\frac{1}{2}}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                      12. unpow1/2N/A

                        \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot \color{blue}{\sqrt{\frac{d}{h}}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                      13. lower-sqrt.f6466.7

                        \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot \color{blue}{\sqrt{\frac{d}{h}}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                    3. Applied rewrites66.7%

                      \[\leadsto \color{blue}{\left(\sqrt{\frac{d}{\ell}} \cdot \sqrt{\frac{d}{h}}\right)} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                    4. Applied rewrites54.3%

                      \[\leadsto \color{blue}{\left(\mathsf{fma}\left(\left(-0.125 \cdot \frac{\left(D \cdot M\right) \cdot D}{d \cdot d}\right) \cdot M, \frac{h}{\ell}, 1\right) \cdot \sqrt{\frac{d}{\ell}}\right) \cdot \sqrt{\frac{d}{h}}} \]
                    5. Taylor expanded in l around inf

                      \[\leadsto \color{blue}{\sqrt{\frac{d}{h}} \cdot \sqrt{\frac{d}{\ell}}} \]
                    6. Step-by-step derivation
                      1. lower-*.f64N/A

                        \[\leadsto \sqrt{\frac{d}{h}} \cdot \color{blue}{\sqrt{\frac{d}{\ell}}} \]
                      2. lower-sqrt.f64N/A

                        \[\leadsto \sqrt{\frac{d}{h}} \cdot \sqrt{\color{blue}{\frac{d}{\ell}}} \]
                      3. lower-/.f64N/A

                        \[\leadsto \sqrt{\frac{d}{h}} \cdot \sqrt{\frac{\color{blue}{d}}{\ell}} \]
                      4. lower-sqrt.f64N/A

                        \[\leadsto \sqrt{\frac{d}{h}} \cdot \sqrt{\frac{d}{\ell}} \]
                      5. lower-/.f6438.9

                        \[\leadsto \sqrt{\frac{d}{h}} \cdot \sqrt{\frac{d}{\ell}} \]
                    7. Applied rewrites38.9%

                      \[\leadsto \color{blue}{\sqrt{\frac{d}{h}} \cdot \sqrt{\frac{d}{\ell}}} \]

                    if 4.9999999999999996e249 < (*.f64 (*.f64 (pow.f64 (/.f64 d h) (/.f64 #s(literal 1 binary64) #s(literal 2 binary64))) (pow.f64 (/.f64 d l) (/.f64 #s(literal 1 binary64) #s(literal 2 binary64)))) (-.f64 #s(literal 1 binary64) (*.f64 (*.f64 (/.f64 #s(literal 1 binary64) #s(literal 2 binary64)) (pow.f64 (/.f64 (*.f64 M D) (*.f64 #s(literal 2 binary64) d)) #s(literal 2 binary64))) (/.f64 h l))))

                    1. Initial program 66.7%

                      \[\left({\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)} \cdot {\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                    2. Step-by-step derivation
                      1. lift-*.f64N/A

                        \[\leadsto \color{blue}{\left({\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)} \cdot {\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)}\right)} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                      2. *-commutativeN/A

                        \[\leadsto \color{blue}{\left({\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right)} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                      3. lower-*.f6466.7

                        \[\leadsto \color{blue}{\left({\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right)} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                      4. lift-pow.f64N/A

                        \[\leadsto \left(\color{blue}{{\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)}} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                      5. lift-/.f64N/A

                        \[\leadsto \left({\left(\frac{d}{\ell}\right)}^{\color{blue}{\left(\frac{1}{2}\right)}} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                      6. metadata-evalN/A

                        \[\leadsto \left({\left(\frac{d}{\ell}\right)}^{\color{blue}{\frac{1}{2}}} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                      7. unpow1/2N/A

                        \[\leadsto \left(\color{blue}{\sqrt{\frac{d}{\ell}}} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                      8. lower-sqrt.f6466.7

                        \[\leadsto \left(\color{blue}{\sqrt{\frac{d}{\ell}}} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                      9. lift-pow.f64N/A

                        \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot \color{blue}{{\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                      10. lift-/.f64N/A

                        \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot {\left(\frac{d}{h}\right)}^{\color{blue}{\left(\frac{1}{2}\right)}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                      11. metadata-evalN/A

                        \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot {\left(\frac{d}{h}\right)}^{\color{blue}{\frac{1}{2}}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                      12. unpow1/2N/A

                        \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot \color{blue}{\sqrt{\frac{d}{h}}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                      13. lower-sqrt.f6466.7

                        \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot \color{blue}{\sqrt{\frac{d}{h}}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                    3. Applied rewrites66.7%

                      \[\leadsto \color{blue}{\left(\sqrt{\frac{d}{\ell}} \cdot \sqrt{\frac{d}{h}}\right)} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                    4. Step-by-step derivation
                      1. lift-*.f64N/A

                        \[\leadsto \color{blue}{\left(\sqrt{\frac{d}{\ell}} \cdot \sqrt{\frac{d}{h}}\right)} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                      2. lift-sqrt.f64N/A

                        \[\leadsto \left(\color{blue}{\sqrt{\frac{d}{\ell}}} \cdot \sqrt{\frac{d}{h}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                      3. lift-sqrt.f64N/A

                        \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot \color{blue}{\sqrt{\frac{d}{h}}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                      4. sqrt-unprodN/A

                        \[\leadsto \color{blue}{\sqrt{\frac{d}{\ell} \cdot \frac{d}{h}}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                      5. lift-/.f64N/A

                        \[\leadsto \sqrt{\color{blue}{\frac{d}{\ell}} \cdot \frac{d}{h}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                      6. lift-/.f64N/A

                        \[\leadsto \sqrt{\frac{d}{\ell} \cdot \color{blue}{\frac{d}{h}}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                      7. frac-timesN/A

                        \[\leadsto \sqrt{\color{blue}{\frac{d \cdot d}{\ell \cdot h}}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                      8. *-commutativeN/A

                        \[\leadsto \sqrt{\frac{d \cdot d}{\color{blue}{h \cdot \ell}}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                      9. lift-*.f64N/A

                        \[\leadsto \sqrt{\frac{d \cdot d}{\color{blue}{h \cdot \ell}}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                      10. lift-*.f64N/A

                        \[\leadsto \sqrt{\frac{\color{blue}{d \cdot d}}{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                      11. sqrt-divN/A

                        \[\leadsto \color{blue}{\frac{\sqrt{d \cdot d}}{\sqrt{h \cdot \ell}}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                      12. lower-unsound-sqrt.f32N/A

                        \[\leadsto \frac{\color{blue}{\sqrt{d \cdot d}}}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                      13. lower-sqrt.f32N/A

                        \[\leadsto \frac{\color{blue}{\sqrt{d \cdot d}}}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                      14. lift-*.f64N/A

                        \[\leadsto \frac{\sqrt{\color{blue}{d \cdot d}}}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                      15. rem-sqrt-square-revN/A

                        \[\leadsto \frac{\color{blue}{\left|d\right|}}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                      16. lower-unsound-/.f64N/A

                        \[\leadsto \color{blue}{\frac{\left|d\right|}{\sqrt{h \cdot \ell}}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                      17. lower-fabs.f64N/A

                        \[\leadsto \frac{\color{blue}{\left|d\right|}}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                      18. lower-unsound-sqrt.f6469.9

                        \[\leadsto \frac{\left|d\right|}{\color{blue}{\sqrt{h \cdot \ell}}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                    5. Applied rewrites69.9%

                      \[\leadsto \color{blue}{\frac{\left|d\right|}{\sqrt{h \cdot \ell}}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                    6. Step-by-step derivation
                      1. lift-pow.f64N/A

                        \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \color{blue}{{\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}}\right) \cdot \frac{h}{\ell}\right) \]
                      2. unpow2N/A

                        \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \color{blue}{\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{M \cdot D}{2 \cdot d}\right)}\right) \cdot \frac{h}{\ell}\right) \]
                      3. lift-/.f64N/A

                        \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\color{blue}{\frac{M \cdot D}{2 \cdot d}} \cdot \frac{M \cdot D}{2 \cdot d}\right)\right) \cdot \frac{h}{\ell}\right) \]
                      4. frac-2negN/A

                        \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\color{blue}{\frac{\mathsf{neg}\left(M \cdot D\right)}{\mathsf{neg}\left(2 \cdot d\right)}} \cdot \frac{M \cdot D}{2 \cdot d}\right)\right) \cdot \frac{h}{\ell}\right) \]
                      5. distribute-frac-negN/A

                        \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\color{blue}{\left(\mathsf{neg}\left(\frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right)} \cdot \frac{M \cdot D}{2 \cdot d}\right)\right) \cdot \frac{h}{\ell}\right) \]
                      6. lift-/.f64N/A

                        \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\left(\mathsf{neg}\left(\frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \color{blue}{\frac{M \cdot D}{2 \cdot d}}\right)\right) \cdot \frac{h}{\ell}\right) \]
                      7. frac-2negN/A

                        \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\left(\mathsf{neg}\left(\frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \color{blue}{\frac{\mathsf{neg}\left(M \cdot D\right)}{\mathsf{neg}\left(2 \cdot d\right)}}\right)\right) \cdot \frac{h}{\ell}\right) \]
                      8. distribute-frac-negN/A

                        \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\left(\mathsf{neg}\left(\frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \color{blue}{\left(\mathsf{neg}\left(\frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
                      9. sqr-negN/A

                        \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \color{blue}{\left(\frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)} \cdot \frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)}\right) \cdot \frac{h}{\ell}\right) \]
                      10. lower-*.f64N/A

                        \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \color{blue}{\left(\frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)} \cdot \frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)}\right) \cdot \frac{h}{\ell}\right) \]
                      11. lower-/.f64N/A

                        \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\color{blue}{\frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}} \cdot \frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
                      12. lift-*.f64N/A

                        \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{\color{blue}{M \cdot D}}{\mathsf{neg}\left(2 \cdot d\right)} \cdot \frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
                      13. *-commutativeN/A

                        \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{\color{blue}{D \cdot M}}{\mathsf{neg}\left(2 \cdot d\right)} \cdot \frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
                      14. lift-*.f64N/A

                        \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{\color{blue}{D \cdot M}}{\mathsf{neg}\left(2 \cdot d\right)} \cdot \frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
                      15. lift-*.f64N/A

                        \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{\mathsf{neg}\left(\color{blue}{2 \cdot d}\right)} \cdot \frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
                      16. distribute-lft-neg-inN/A

                        \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{\color{blue}{\left(\mathsf{neg}\left(2\right)\right) \cdot d}} \cdot \frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
                      17. lower-*.f64N/A

                        \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{\color{blue}{\left(\mathsf{neg}\left(2\right)\right) \cdot d}} \cdot \frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
                      18. metadata-evalN/A

                        \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{\color{blue}{-2} \cdot d} \cdot \frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
                      19. lower-/.f64N/A

                        \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{-2 \cdot d} \cdot \color{blue}{\frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}}\right)\right) \cdot \frac{h}{\ell}\right) \]
                      20. lift-*.f64N/A

                        \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{-2 \cdot d} \cdot \frac{\color{blue}{M \cdot D}}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
                      21. *-commutativeN/A

                        \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{-2 \cdot d} \cdot \frac{\color{blue}{D \cdot M}}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
                      22. lift-*.f64N/A

                        \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{-2 \cdot d} \cdot \frac{\color{blue}{D \cdot M}}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
                      23. lift-*.f64N/A

                        \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{-2 \cdot d} \cdot \frac{D \cdot M}{\mathsf{neg}\left(\color{blue}{2 \cdot d}\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
                      24. distribute-lft-neg-inN/A

                        \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{-2 \cdot d} \cdot \frac{D \cdot M}{\color{blue}{\left(\mathsf{neg}\left(2\right)\right) \cdot d}}\right)\right) \cdot \frac{h}{\ell}\right) \]
                      25. lower-*.f64N/A

                        \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{-2 \cdot d} \cdot \frac{D \cdot M}{\color{blue}{\left(\mathsf{neg}\left(2\right)\right) \cdot d}}\right)\right) \cdot \frac{h}{\ell}\right) \]
                      26. metadata-eval69.9

                        \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{-2 \cdot d} \cdot \frac{D \cdot M}{\color{blue}{-2} \cdot d}\right)\right) \cdot \frac{h}{\ell}\right) \]
                    7. Applied rewrites69.9%

                      \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \color{blue}{\left(\frac{D \cdot M}{-2 \cdot d} \cdot \frac{D \cdot M}{-2 \cdot d}\right)}\right) \cdot \frac{h}{\ell}\right) \]
                    8. Taylor expanded in d around inf

                      \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \color{blue}{1} \]
                    9. Step-by-step derivation
                      1. Applied rewrites42.5%

                        \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \color{blue}{1} \]
                    10. Recombined 3 regimes into one program.
                    11. Add Preprocessing

                    Alternative 13: 45.5% accurate, 0.9× speedup?

                    \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;\left({\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)} \cdot {\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \leq -4 \cdot 10^{-84}:\\ \;\;\;\;\sqrt{\frac{\frac{1}{h}}{\ell}} \cdot \left(-d\right)\\ \mathbf{else}:\\ \;\;\;\;\frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot 1\\ \end{array} \end{array} \]
                    (FPCore (d h l M D)
                     :precision binary64
                     (if (<=
                          (*
                           (* (pow (/ d h) (/ 1.0 2.0)) (pow (/ d l) (/ 1.0 2.0)))
                           (- 1.0 (* (* (/ 1.0 2.0) (pow (/ (* M D) (* 2.0 d)) 2.0)) (/ h l))))
                          -4e-84)
                       (* (sqrt (/ (/ 1.0 h) l)) (- d))
                       (* (/ (fabs d) (sqrt (* h l))) 1.0)))
                    double code(double d, double h, double l, double M, double D) {
                    	double tmp;
                    	if (((pow((d / h), (1.0 / 2.0)) * pow((d / l), (1.0 / 2.0))) * (1.0 - (((1.0 / 2.0) * pow(((M * D) / (2.0 * d)), 2.0)) * (h / l)))) <= -4e-84) {
                    		tmp = sqrt(((1.0 / h) / l)) * -d;
                    	} else {
                    		tmp = (fabs(d) / sqrt((h * l))) * 1.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(d, h, l, m, d_1)
                    use fmin_fmax_functions
                        real(8), intent (in) :: d
                        real(8), intent (in) :: h
                        real(8), intent (in) :: l
                        real(8), intent (in) :: m
                        real(8), intent (in) :: d_1
                        real(8) :: tmp
                        if (((((d / h) ** (1.0d0 / 2.0d0)) * ((d / l) ** (1.0d0 / 2.0d0))) * (1.0d0 - (((1.0d0 / 2.0d0) * (((m * d_1) / (2.0d0 * d)) ** 2.0d0)) * (h / l)))) <= (-4d-84)) then
                            tmp = sqrt(((1.0d0 / h) / l)) * -d
                        else
                            tmp = (abs(d) / sqrt((h * l))) * 1.0d0
                        end if
                        code = tmp
                    end function
                    
                    public static double code(double d, double h, double l, double M, double D) {
                    	double tmp;
                    	if (((Math.pow((d / h), (1.0 / 2.0)) * Math.pow((d / l), (1.0 / 2.0))) * (1.0 - (((1.0 / 2.0) * Math.pow(((M * D) / (2.0 * d)), 2.0)) * (h / l)))) <= -4e-84) {
                    		tmp = Math.sqrt(((1.0 / h) / l)) * -d;
                    	} else {
                    		tmp = (Math.abs(d) / Math.sqrt((h * l))) * 1.0;
                    	}
                    	return tmp;
                    }
                    
                    def code(d, h, l, M, D):
                    	tmp = 0
                    	if ((math.pow((d / h), (1.0 / 2.0)) * math.pow((d / l), (1.0 / 2.0))) * (1.0 - (((1.0 / 2.0) * math.pow(((M * D) / (2.0 * d)), 2.0)) * (h / l)))) <= -4e-84:
                    		tmp = math.sqrt(((1.0 / h) / l)) * -d
                    	else:
                    		tmp = (math.fabs(d) / math.sqrt((h * l))) * 1.0
                    	return tmp
                    
                    function code(d, h, l, M, D)
                    	tmp = 0.0
                    	if (Float64(Float64((Float64(d / h) ^ Float64(1.0 / 2.0)) * (Float64(d / l) ^ Float64(1.0 / 2.0))) * Float64(1.0 - Float64(Float64(Float64(1.0 / 2.0) * (Float64(Float64(M * D) / Float64(2.0 * d)) ^ 2.0)) * Float64(h / l)))) <= -4e-84)
                    		tmp = Float64(sqrt(Float64(Float64(1.0 / h) / l)) * Float64(-d));
                    	else
                    		tmp = Float64(Float64(abs(d) / sqrt(Float64(h * l))) * 1.0);
                    	end
                    	return tmp
                    end
                    
                    function tmp_2 = code(d, h, l, M, D)
                    	tmp = 0.0;
                    	if (((((d / h) ^ (1.0 / 2.0)) * ((d / l) ^ (1.0 / 2.0))) * (1.0 - (((1.0 / 2.0) * (((M * D) / (2.0 * d)) ^ 2.0)) * (h / l)))) <= -4e-84)
                    		tmp = sqrt(((1.0 / h) / l)) * -d;
                    	else
                    		tmp = (abs(d) / sqrt((h * l))) * 1.0;
                    	end
                    	tmp_2 = tmp;
                    end
                    
                    code[d_, h_, l_, M_, D_] := If[LessEqual[N[(N[(N[Power[N[(d / h), $MachinePrecision], N[(1.0 / 2.0), $MachinePrecision]], $MachinePrecision] * N[Power[N[(d / l), $MachinePrecision], N[(1.0 / 2.0), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] * N[(1.0 - N[(N[(N[(1.0 / 2.0), $MachinePrecision] * N[Power[N[(N[(M * D), $MachinePrecision] / N[(2.0 * d), $MachinePrecision]), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision] * N[(h / l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], -4e-84], N[(N[Sqrt[N[(N[(1.0 / h), $MachinePrecision] / l), $MachinePrecision]], $MachinePrecision] * (-d)), $MachinePrecision], N[(N[(N[Abs[d], $MachinePrecision] / N[Sqrt[N[(h * l), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] * 1.0), $MachinePrecision]]
                    
                    \begin{array}{l}
                    
                    \\
                    \begin{array}{l}
                    \mathbf{if}\;\left({\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)} \cdot {\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \leq -4 \cdot 10^{-84}:\\
                    \;\;\;\;\sqrt{\frac{\frac{1}{h}}{\ell}} \cdot \left(-d\right)\\
                    
                    \mathbf{else}:\\
                    \;\;\;\;\frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot 1\\
                    
                    
                    \end{array}
                    \end{array}
                    
                    Derivation
                    1. Split input into 2 regimes
                    2. if (*.f64 (*.f64 (pow.f64 (/.f64 d h) (/.f64 #s(literal 1 binary64) #s(literal 2 binary64))) (pow.f64 (/.f64 d l) (/.f64 #s(literal 1 binary64) #s(literal 2 binary64)))) (-.f64 #s(literal 1 binary64) (*.f64 (*.f64 (/.f64 #s(literal 1 binary64) #s(literal 2 binary64)) (pow.f64 (/.f64 (*.f64 M D) (*.f64 #s(literal 2 binary64) d)) #s(literal 2 binary64))) (/.f64 h l)))) < -4.0000000000000001e-84

                      1. Initial program 66.7%

                        \[\left({\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)} \cdot {\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                      2. Applied rewrites29.3%

                        \[\leadsto \color{blue}{\mathsf{fma}\left(\frac{h}{\ell}, \left(M \cdot \left(\frac{D \cdot \left(D \cdot M\right)}{4 \cdot \left(d \cdot d\right)} \cdot -0.5\right)\right) \cdot \sqrt{d \cdot \frac{d}{h \cdot \ell}}, \sqrt{d \cdot \frac{d}{h \cdot \ell}}\right)} \]
                      3. Taylor expanded in d around -inf

                        \[\leadsto \color{blue}{-1 \cdot \left(d \cdot \sqrt{\frac{1}{h \cdot \ell}}\right)} \]
                      4. Step-by-step derivation
                        1. lower-*.f64N/A

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

                          \[\leadsto -1 \cdot \left(d \cdot \color{blue}{\sqrt{\frac{1}{h \cdot \ell}}}\right) \]
                        3. lower-sqrt.f64N/A

                          \[\leadsto -1 \cdot \left(d \cdot \sqrt{\frac{1}{h \cdot \ell}}\right) \]
                        4. lower-/.f64N/A

                          \[\leadsto -1 \cdot \left(d \cdot \sqrt{\frac{1}{h \cdot \ell}}\right) \]
                        5. lower-*.f6425.5

                          \[\leadsto -1 \cdot \left(d \cdot \sqrt{\frac{1}{h \cdot \ell}}\right) \]
                      5. Applied rewrites25.5%

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

                          \[\leadsto -1 \cdot \color{blue}{\left(d \cdot \sqrt{\frac{1}{h \cdot \ell}}\right)} \]
                        2. mul-1-negN/A

                          \[\leadsto \mathsf{neg}\left(d \cdot \sqrt{\frac{1}{h \cdot \ell}}\right) \]
                        3. lift-*.f64N/A

                          \[\leadsto \mathsf{neg}\left(d \cdot \sqrt{\frac{1}{h \cdot \ell}}\right) \]
                        4. *-commutativeN/A

                          \[\leadsto \mathsf{neg}\left(\sqrt{\frac{1}{h \cdot \ell}} \cdot d\right) \]
                        5. distribute-rgt-neg-inN/A

                          \[\leadsto \sqrt{\frac{1}{h \cdot \ell}} \cdot \color{blue}{\left(\mathsf{neg}\left(d\right)\right)} \]
                        6. lower-*.f64N/A

                          \[\leadsto \sqrt{\frac{1}{h \cdot \ell}} \cdot \color{blue}{\left(\mathsf{neg}\left(d\right)\right)} \]
                        7. lift-*.f64N/A

                          \[\leadsto \sqrt{\frac{1}{h \cdot \ell}} \cdot \left(\mathsf{neg}\left(d\right)\right) \]
                        8. *-commutativeN/A

                          \[\leadsto \sqrt{\frac{1}{\ell \cdot h}} \cdot \left(\mathsf{neg}\left(d\right)\right) \]
                        9. lower-*.f64N/A

                          \[\leadsto \sqrt{\frac{1}{\ell \cdot h}} \cdot \left(\mathsf{neg}\left(d\right)\right) \]
                        10. lower-neg.f6425.5

                          \[\leadsto \sqrt{\frac{1}{\ell \cdot h}} \cdot \left(-d\right) \]
                      7. Applied rewrites25.5%

                        \[\leadsto \sqrt{\frac{1}{\ell \cdot h}} \cdot \color{blue}{\left(-d\right)} \]
                      8. Step-by-step derivation
                        1. lift-/.f64N/A

                          \[\leadsto \sqrt{\frac{1}{\ell \cdot h}} \cdot \left(-d\right) \]
                        2. lift-*.f64N/A

                          \[\leadsto \sqrt{\frac{1}{\ell \cdot h}} \cdot \left(-d\right) \]
                        3. *-commutativeN/A

                          \[\leadsto \sqrt{\frac{1}{h \cdot \ell}} \cdot \left(-d\right) \]
                        4. associate-/r*N/A

                          \[\leadsto \sqrt{\frac{\frac{1}{h}}{\ell}} \cdot \left(-d\right) \]
                        5. lift-/.f64N/A

                          \[\leadsto \sqrt{\frac{\frac{1}{h}}{\ell}} \cdot \left(-d\right) \]
                        6. lower-/.f6425.7

                          \[\leadsto \sqrt{\frac{\frac{1}{h}}{\ell}} \cdot \left(-d\right) \]
                      9. Applied rewrites25.7%

                        \[\leadsto \sqrt{\frac{\frac{1}{h}}{\ell}} \cdot \left(-d\right) \]

                      if -4.0000000000000001e-84 < (*.f64 (*.f64 (pow.f64 (/.f64 d h) (/.f64 #s(literal 1 binary64) #s(literal 2 binary64))) (pow.f64 (/.f64 d l) (/.f64 #s(literal 1 binary64) #s(literal 2 binary64)))) (-.f64 #s(literal 1 binary64) (*.f64 (*.f64 (/.f64 #s(literal 1 binary64) #s(literal 2 binary64)) (pow.f64 (/.f64 (*.f64 M D) (*.f64 #s(literal 2 binary64) d)) #s(literal 2 binary64))) (/.f64 h l))))

                      1. Initial program 66.7%

                        \[\left({\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)} \cdot {\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                      2. Step-by-step derivation
                        1. lift-*.f64N/A

                          \[\leadsto \color{blue}{\left({\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)} \cdot {\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)}\right)} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                        2. *-commutativeN/A

                          \[\leadsto \color{blue}{\left({\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right)} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                        3. lower-*.f6466.7

                          \[\leadsto \color{blue}{\left({\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right)} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                        4. lift-pow.f64N/A

                          \[\leadsto \left(\color{blue}{{\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)}} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                        5. lift-/.f64N/A

                          \[\leadsto \left({\left(\frac{d}{\ell}\right)}^{\color{blue}{\left(\frac{1}{2}\right)}} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                        6. metadata-evalN/A

                          \[\leadsto \left({\left(\frac{d}{\ell}\right)}^{\color{blue}{\frac{1}{2}}} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                        7. unpow1/2N/A

                          \[\leadsto \left(\color{blue}{\sqrt{\frac{d}{\ell}}} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                        8. lower-sqrt.f6466.7

                          \[\leadsto \left(\color{blue}{\sqrt{\frac{d}{\ell}}} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                        9. lift-pow.f64N/A

                          \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot \color{blue}{{\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                        10. lift-/.f64N/A

                          \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot {\left(\frac{d}{h}\right)}^{\color{blue}{\left(\frac{1}{2}\right)}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                        11. metadata-evalN/A

                          \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot {\left(\frac{d}{h}\right)}^{\color{blue}{\frac{1}{2}}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                        12. unpow1/2N/A

                          \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot \color{blue}{\sqrt{\frac{d}{h}}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                        13. lower-sqrt.f6466.7

                          \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot \color{blue}{\sqrt{\frac{d}{h}}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                      3. Applied rewrites66.7%

                        \[\leadsto \color{blue}{\left(\sqrt{\frac{d}{\ell}} \cdot \sqrt{\frac{d}{h}}\right)} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                      4. Step-by-step derivation
                        1. lift-*.f64N/A

                          \[\leadsto \color{blue}{\left(\sqrt{\frac{d}{\ell}} \cdot \sqrt{\frac{d}{h}}\right)} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                        2. lift-sqrt.f64N/A

                          \[\leadsto \left(\color{blue}{\sqrt{\frac{d}{\ell}}} \cdot \sqrt{\frac{d}{h}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                        3. lift-sqrt.f64N/A

                          \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot \color{blue}{\sqrt{\frac{d}{h}}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                        4. sqrt-unprodN/A

                          \[\leadsto \color{blue}{\sqrt{\frac{d}{\ell} \cdot \frac{d}{h}}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                        5. lift-/.f64N/A

                          \[\leadsto \sqrt{\color{blue}{\frac{d}{\ell}} \cdot \frac{d}{h}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                        6. lift-/.f64N/A

                          \[\leadsto \sqrt{\frac{d}{\ell} \cdot \color{blue}{\frac{d}{h}}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                        7. frac-timesN/A

                          \[\leadsto \sqrt{\color{blue}{\frac{d \cdot d}{\ell \cdot h}}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                        8. *-commutativeN/A

                          \[\leadsto \sqrt{\frac{d \cdot d}{\color{blue}{h \cdot \ell}}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                        9. lift-*.f64N/A

                          \[\leadsto \sqrt{\frac{d \cdot d}{\color{blue}{h \cdot \ell}}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                        10. lift-*.f64N/A

                          \[\leadsto \sqrt{\frac{\color{blue}{d \cdot d}}{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                        11. sqrt-divN/A

                          \[\leadsto \color{blue}{\frac{\sqrt{d \cdot d}}{\sqrt{h \cdot \ell}}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                        12. lower-unsound-sqrt.f32N/A

                          \[\leadsto \frac{\color{blue}{\sqrt{d \cdot d}}}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                        13. lower-sqrt.f32N/A

                          \[\leadsto \frac{\color{blue}{\sqrt{d \cdot d}}}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                        14. lift-*.f64N/A

                          \[\leadsto \frac{\sqrt{\color{blue}{d \cdot d}}}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                        15. rem-sqrt-square-revN/A

                          \[\leadsto \frac{\color{blue}{\left|d\right|}}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                        16. lower-unsound-/.f64N/A

                          \[\leadsto \color{blue}{\frac{\left|d\right|}{\sqrt{h \cdot \ell}}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                        17. lower-fabs.f64N/A

                          \[\leadsto \frac{\color{blue}{\left|d\right|}}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                        18. lower-unsound-sqrt.f6469.9

                          \[\leadsto \frac{\left|d\right|}{\color{blue}{\sqrt{h \cdot \ell}}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                      5. Applied rewrites69.9%

                        \[\leadsto \color{blue}{\frac{\left|d\right|}{\sqrt{h \cdot \ell}}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                      6. Step-by-step derivation
                        1. lift-pow.f64N/A

                          \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \color{blue}{{\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}}\right) \cdot \frac{h}{\ell}\right) \]
                        2. unpow2N/A

                          \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \color{blue}{\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{M \cdot D}{2 \cdot d}\right)}\right) \cdot \frac{h}{\ell}\right) \]
                        3. lift-/.f64N/A

                          \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\color{blue}{\frac{M \cdot D}{2 \cdot d}} \cdot \frac{M \cdot D}{2 \cdot d}\right)\right) \cdot \frac{h}{\ell}\right) \]
                        4. frac-2negN/A

                          \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\color{blue}{\frac{\mathsf{neg}\left(M \cdot D\right)}{\mathsf{neg}\left(2 \cdot d\right)}} \cdot \frac{M \cdot D}{2 \cdot d}\right)\right) \cdot \frac{h}{\ell}\right) \]
                        5. distribute-frac-negN/A

                          \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\color{blue}{\left(\mathsf{neg}\left(\frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right)} \cdot \frac{M \cdot D}{2 \cdot d}\right)\right) \cdot \frac{h}{\ell}\right) \]
                        6. lift-/.f64N/A

                          \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\left(\mathsf{neg}\left(\frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \color{blue}{\frac{M \cdot D}{2 \cdot d}}\right)\right) \cdot \frac{h}{\ell}\right) \]
                        7. frac-2negN/A

                          \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\left(\mathsf{neg}\left(\frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \color{blue}{\frac{\mathsf{neg}\left(M \cdot D\right)}{\mathsf{neg}\left(2 \cdot d\right)}}\right)\right) \cdot \frac{h}{\ell}\right) \]
                        8. distribute-frac-negN/A

                          \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\left(\mathsf{neg}\left(\frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \color{blue}{\left(\mathsf{neg}\left(\frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
                        9. sqr-negN/A

                          \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \color{blue}{\left(\frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)} \cdot \frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)}\right) \cdot \frac{h}{\ell}\right) \]
                        10. lower-*.f64N/A

                          \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \color{blue}{\left(\frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)} \cdot \frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)}\right) \cdot \frac{h}{\ell}\right) \]
                        11. lower-/.f64N/A

                          \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\color{blue}{\frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}} \cdot \frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
                        12. lift-*.f64N/A

                          \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{\color{blue}{M \cdot D}}{\mathsf{neg}\left(2 \cdot d\right)} \cdot \frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
                        13. *-commutativeN/A

                          \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{\color{blue}{D \cdot M}}{\mathsf{neg}\left(2 \cdot d\right)} \cdot \frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
                        14. lift-*.f64N/A

                          \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{\color{blue}{D \cdot M}}{\mathsf{neg}\left(2 \cdot d\right)} \cdot \frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
                        15. lift-*.f64N/A

                          \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{\mathsf{neg}\left(\color{blue}{2 \cdot d}\right)} \cdot \frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
                        16. distribute-lft-neg-inN/A

                          \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{\color{blue}{\left(\mathsf{neg}\left(2\right)\right) \cdot d}} \cdot \frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
                        17. lower-*.f64N/A

                          \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{\color{blue}{\left(\mathsf{neg}\left(2\right)\right) \cdot d}} \cdot \frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
                        18. metadata-evalN/A

                          \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{\color{blue}{-2} \cdot d} \cdot \frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
                        19. lower-/.f64N/A

                          \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{-2 \cdot d} \cdot \color{blue}{\frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}}\right)\right) \cdot \frac{h}{\ell}\right) \]
                        20. lift-*.f64N/A

                          \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{-2 \cdot d} \cdot \frac{\color{blue}{M \cdot D}}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
                        21. *-commutativeN/A

                          \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{-2 \cdot d} \cdot \frac{\color{blue}{D \cdot M}}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
                        22. lift-*.f64N/A

                          \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{-2 \cdot d} \cdot \frac{\color{blue}{D \cdot M}}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
                        23. lift-*.f64N/A

                          \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{-2 \cdot d} \cdot \frac{D \cdot M}{\mathsf{neg}\left(\color{blue}{2 \cdot d}\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
                        24. distribute-lft-neg-inN/A

                          \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{-2 \cdot d} \cdot \frac{D \cdot M}{\color{blue}{\left(\mathsf{neg}\left(2\right)\right) \cdot d}}\right)\right) \cdot \frac{h}{\ell}\right) \]
                        25. lower-*.f64N/A

                          \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{-2 \cdot d} \cdot \frac{D \cdot M}{\color{blue}{\left(\mathsf{neg}\left(2\right)\right) \cdot d}}\right)\right) \cdot \frac{h}{\ell}\right) \]
                        26. metadata-eval69.9

                          \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{-2 \cdot d} \cdot \frac{D \cdot M}{\color{blue}{-2} \cdot d}\right)\right) \cdot \frac{h}{\ell}\right) \]
                      7. Applied rewrites69.9%

                        \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \color{blue}{\left(\frac{D \cdot M}{-2 \cdot d} \cdot \frac{D \cdot M}{-2 \cdot d}\right)}\right) \cdot \frac{h}{\ell}\right) \]
                      8. Taylor expanded in d around inf

                        \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \color{blue}{1} \]
                      9. Step-by-step derivation
                        1. Applied rewrites42.5%

                          \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \color{blue}{1} \]
                      10. Recombined 2 regimes into one program.
                      11. Add Preprocessing

                      Alternative 14: 45.5% accurate, 0.9× speedup?

                      \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;\left({\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)} \cdot {\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \leq -4 \cdot 10^{-84}:\\ \;\;\;\;\sqrt{\frac{1}{\ell \cdot h}} \cdot \left(-d\right)\\ \mathbf{else}:\\ \;\;\;\;\frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot 1\\ \end{array} \end{array} \]
                      (FPCore (d h l M D)
                       :precision binary64
                       (if (<=
                            (*
                             (* (pow (/ d h) (/ 1.0 2.0)) (pow (/ d l) (/ 1.0 2.0)))
                             (- 1.0 (* (* (/ 1.0 2.0) (pow (/ (* M D) (* 2.0 d)) 2.0)) (/ h l))))
                            -4e-84)
                         (* (sqrt (/ 1.0 (* l h))) (- d))
                         (* (/ (fabs d) (sqrt (* h l))) 1.0)))
                      double code(double d, double h, double l, double M, double D) {
                      	double tmp;
                      	if (((pow((d / h), (1.0 / 2.0)) * pow((d / l), (1.0 / 2.0))) * (1.0 - (((1.0 / 2.0) * pow(((M * D) / (2.0 * d)), 2.0)) * (h / l)))) <= -4e-84) {
                      		tmp = sqrt((1.0 / (l * h))) * -d;
                      	} else {
                      		tmp = (fabs(d) / sqrt((h * l))) * 1.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(d, h, l, m, d_1)
                      use fmin_fmax_functions
                          real(8), intent (in) :: d
                          real(8), intent (in) :: h
                          real(8), intent (in) :: l
                          real(8), intent (in) :: m
                          real(8), intent (in) :: d_1
                          real(8) :: tmp
                          if (((((d / h) ** (1.0d0 / 2.0d0)) * ((d / l) ** (1.0d0 / 2.0d0))) * (1.0d0 - (((1.0d0 / 2.0d0) * (((m * d_1) / (2.0d0 * d)) ** 2.0d0)) * (h / l)))) <= (-4d-84)) then
                              tmp = sqrt((1.0d0 / (l * h))) * -d
                          else
                              tmp = (abs(d) / sqrt((h * l))) * 1.0d0
                          end if
                          code = tmp
                      end function
                      
                      public static double code(double d, double h, double l, double M, double D) {
                      	double tmp;
                      	if (((Math.pow((d / h), (1.0 / 2.0)) * Math.pow((d / l), (1.0 / 2.0))) * (1.0 - (((1.0 / 2.0) * Math.pow(((M * D) / (2.0 * d)), 2.0)) * (h / l)))) <= -4e-84) {
                      		tmp = Math.sqrt((1.0 / (l * h))) * -d;
                      	} else {
                      		tmp = (Math.abs(d) / Math.sqrt((h * l))) * 1.0;
                      	}
                      	return tmp;
                      }
                      
                      def code(d, h, l, M, D):
                      	tmp = 0
                      	if ((math.pow((d / h), (1.0 / 2.0)) * math.pow((d / l), (1.0 / 2.0))) * (1.0 - (((1.0 / 2.0) * math.pow(((M * D) / (2.0 * d)), 2.0)) * (h / l)))) <= -4e-84:
                      		tmp = math.sqrt((1.0 / (l * h))) * -d
                      	else:
                      		tmp = (math.fabs(d) / math.sqrt((h * l))) * 1.0
                      	return tmp
                      
                      function code(d, h, l, M, D)
                      	tmp = 0.0
                      	if (Float64(Float64((Float64(d / h) ^ Float64(1.0 / 2.0)) * (Float64(d / l) ^ Float64(1.0 / 2.0))) * Float64(1.0 - Float64(Float64(Float64(1.0 / 2.0) * (Float64(Float64(M * D) / Float64(2.0 * d)) ^ 2.0)) * Float64(h / l)))) <= -4e-84)
                      		tmp = Float64(sqrt(Float64(1.0 / Float64(l * h))) * Float64(-d));
                      	else
                      		tmp = Float64(Float64(abs(d) / sqrt(Float64(h * l))) * 1.0);
                      	end
                      	return tmp
                      end
                      
                      function tmp_2 = code(d, h, l, M, D)
                      	tmp = 0.0;
                      	if (((((d / h) ^ (1.0 / 2.0)) * ((d / l) ^ (1.0 / 2.0))) * (1.0 - (((1.0 / 2.0) * (((M * D) / (2.0 * d)) ^ 2.0)) * (h / l)))) <= -4e-84)
                      		tmp = sqrt((1.0 / (l * h))) * -d;
                      	else
                      		tmp = (abs(d) / sqrt((h * l))) * 1.0;
                      	end
                      	tmp_2 = tmp;
                      end
                      
                      code[d_, h_, l_, M_, D_] := If[LessEqual[N[(N[(N[Power[N[(d / h), $MachinePrecision], N[(1.0 / 2.0), $MachinePrecision]], $MachinePrecision] * N[Power[N[(d / l), $MachinePrecision], N[(1.0 / 2.0), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] * N[(1.0 - N[(N[(N[(1.0 / 2.0), $MachinePrecision] * N[Power[N[(N[(M * D), $MachinePrecision] / N[(2.0 * d), $MachinePrecision]), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision] * N[(h / l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], -4e-84], N[(N[Sqrt[N[(1.0 / N[(l * h), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * (-d)), $MachinePrecision], N[(N[(N[Abs[d], $MachinePrecision] / N[Sqrt[N[(h * l), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] * 1.0), $MachinePrecision]]
                      
                      \begin{array}{l}
                      
                      \\
                      \begin{array}{l}
                      \mathbf{if}\;\left({\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)} \cdot {\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \leq -4 \cdot 10^{-84}:\\
                      \;\;\;\;\sqrt{\frac{1}{\ell \cdot h}} \cdot \left(-d\right)\\
                      
                      \mathbf{else}:\\
                      \;\;\;\;\frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot 1\\
                      
                      
                      \end{array}
                      \end{array}
                      
                      Derivation
                      1. Split input into 2 regimes
                      2. if (*.f64 (*.f64 (pow.f64 (/.f64 d h) (/.f64 #s(literal 1 binary64) #s(literal 2 binary64))) (pow.f64 (/.f64 d l) (/.f64 #s(literal 1 binary64) #s(literal 2 binary64)))) (-.f64 #s(literal 1 binary64) (*.f64 (*.f64 (/.f64 #s(literal 1 binary64) #s(literal 2 binary64)) (pow.f64 (/.f64 (*.f64 M D) (*.f64 #s(literal 2 binary64) d)) #s(literal 2 binary64))) (/.f64 h l)))) < -4.0000000000000001e-84

                        1. Initial program 66.7%

                          \[\left({\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)} \cdot {\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                        2. Applied rewrites29.3%

                          \[\leadsto \color{blue}{\mathsf{fma}\left(\frac{h}{\ell}, \left(M \cdot \left(\frac{D \cdot \left(D \cdot M\right)}{4 \cdot \left(d \cdot d\right)} \cdot -0.5\right)\right) \cdot \sqrt{d \cdot \frac{d}{h \cdot \ell}}, \sqrt{d \cdot \frac{d}{h \cdot \ell}}\right)} \]
                        3. Taylor expanded in d around -inf

                          \[\leadsto \color{blue}{-1 \cdot \left(d \cdot \sqrt{\frac{1}{h \cdot \ell}}\right)} \]
                        4. Step-by-step derivation
                          1. lower-*.f64N/A

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

                            \[\leadsto -1 \cdot \left(d \cdot \color{blue}{\sqrt{\frac{1}{h \cdot \ell}}}\right) \]
                          3. lower-sqrt.f64N/A

                            \[\leadsto -1 \cdot \left(d \cdot \sqrt{\frac{1}{h \cdot \ell}}\right) \]
                          4. lower-/.f64N/A

                            \[\leadsto -1 \cdot \left(d \cdot \sqrt{\frac{1}{h \cdot \ell}}\right) \]
                          5. lower-*.f6425.5

                            \[\leadsto -1 \cdot \left(d \cdot \sqrt{\frac{1}{h \cdot \ell}}\right) \]
                        5. Applied rewrites25.5%

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

                            \[\leadsto -1 \cdot \color{blue}{\left(d \cdot \sqrt{\frac{1}{h \cdot \ell}}\right)} \]
                          2. mul-1-negN/A

                            \[\leadsto \mathsf{neg}\left(d \cdot \sqrt{\frac{1}{h \cdot \ell}}\right) \]
                          3. lift-*.f64N/A

                            \[\leadsto \mathsf{neg}\left(d \cdot \sqrt{\frac{1}{h \cdot \ell}}\right) \]
                          4. *-commutativeN/A

                            \[\leadsto \mathsf{neg}\left(\sqrt{\frac{1}{h \cdot \ell}} \cdot d\right) \]
                          5. distribute-rgt-neg-inN/A

                            \[\leadsto \sqrt{\frac{1}{h \cdot \ell}} \cdot \color{blue}{\left(\mathsf{neg}\left(d\right)\right)} \]
                          6. lower-*.f64N/A

                            \[\leadsto \sqrt{\frac{1}{h \cdot \ell}} \cdot \color{blue}{\left(\mathsf{neg}\left(d\right)\right)} \]
                          7. lift-*.f64N/A

                            \[\leadsto \sqrt{\frac{1}{h \cdot \ell}} \cdot \left(\mathsf{neg}\left(d\right)\right) \]
                          8. *-commutativeN/A

                            \[\leadsto \sqrt{\frac{1}{\ell \cdot h}} \cdot \left(\mathsf{neg}\left(d\right)\right) \]
                          9. lower-*.f64N/A

                            \[\leadsto \sqrt{\frac{1}{\ell \cdot h}} \cdot \left(\mathsf{neg}\left(d\right)\right) \]
                          10. lower-neg.f6425.5

                            \[\leadsto \sqrt{\frac{1}{\ell \cdot h}} \cdot \left(-d\right) \]
                        7. Applied rewrites25.5%

                          \[\leadsto \sqrt{\frac{1}{\ell \cdot h}} \cdot \color{blue}{\left(-d\right)} \]

                        if -4.0000000000000001e-84 < (*.f64 (*.f64 (pow.f64 (/.f64 d h) (/.f64 #s(literal 1 binary64) #s(literal 2 binary64))) (pow.f64 (/.f64 d l) (/.f64 #s(literal 1 binary64) #s(literal 2 binary64)))) (-.f64 #s(literal 1 binary64) (*.f64 (*.f64 (/.f64 #s(literal 1 binary64) #s(literal 2 binary64)) (pow.f64 (/.f64 (*.f64 M D) (*.f64 #s(literal 2 binary64) d)) #s(literal 2 binary64))) (/.f64 h l))))

                        1. Initial program 66.7%

                          \[\left({\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)} \cdot {\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                        2. Step-by-step derivation
                          1. lift-*.f64N/A

                            \[\leadsto \color{blue}{\left({\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)} \cdot {\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)}\right)} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                          2. *-commutativeN/A

                            \[\leadsto \color{blue}{\left({\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right)} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                          3. lower-*.f6466.7

                            \[\leadsto \color{blue}{\left({\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right)} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                          4. lift-pow.f64N/A

                            \[\leadsto \left(\color{blue}{{\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)}} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                          5. lift-/.f64N/A

                            \[\leadsto \left({\left(\frac{d}{\ell}\right)}^{\color{blue}{\left(\frac{1}{2}\right)}} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                          6. metadata-evalN/A

                            \[\leadsto \left({\left(\frac{d}{\ell}\right)}^{\color{blue}{\frac{1}{2}}} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                          7. unpow1/2N/A

                            \[\leadsto \left(\color{blue}{\sqrt{\frac{d}{\ell}}} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                          8. lower-sqrt.f6466.7

                            \[\leadsto \left(\color{blue}{\sqrt{\frac{d}{\ell}}} \cdot {\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                          9. lift-pow.f64N/A

                            \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot \color{blue}{{\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                          10. lift-/.f64N/A

                            \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot {\left(\frac{d}{h}\right)}^{\color{blue}{\left(\frac{1}{2}\right)}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                          11. metadata-evalN/A

                            \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot {\left(\frac{d}{h}\right)}^{\color{blue}{\frac{1}{2}}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                          12. unpow1/2N/A

                            \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot \color{blue}{\sqrt{\frac{d}{h}}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                          13. lower-sqrt.f6466.7

                            \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot \color{blue}{\sqrt{\frac{d}{h}}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                        3. Applied rewrites66.7%

                          \[\leadsto \color{blue}{\left(\sqrt{\frac{d}{\ell}} \cdot \sqrt{\frac{d}{h}}\right)} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                        4. Step-by-step derivation
                          1. lift-*.f64N/A

                            \[\leadsto \color{blue}{\left(\sqrt{\frac{d}{\ell}} \cdot \sqrt{\frac{d}{h}}\right)} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                          2. lift-sqrt.f64N/A

                            \[\leadsto \left(\color{blue}{\sqrt{\frac{d}{\ell}}} \cdot \sqrt{\frac{d}{h}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                          3. lift-sqrt.f64N/A

                            \[\leadsto \left(\sqrt{\frac{d}{\ell}} \cdot \color{blue}{\sqrt{\frac{d}{h}}}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                          4. sqrt-unprodN/A

                            \[\leadsto \color{blue}{\sqrt{\frac{d}{\ell} \cdot \frac{d}{h}}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                          5. lift-/.f64N/A

                            \[\leadsto \sqrt{\color{blue}{\frac{d}{\ell}} \cdot \frac{d}{h}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                          6. lift-/.f64N/A

                            \[\leadsto \sqrt{\frac{d}{\ell} \cdot \color{blue}{\frac{d}{h}}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                          7. frac-timesN/A

                            \[\leadsto \sqrt{\color{blue}{\frac{d \cdot d}{\ell \cdot h}}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                          8. *-commutativeN/A

                            \[\leadsto \sqrt{\frac{d \cdot d}{\color{blue}{h \cdot \ell}}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                          9. lift-*.f64N/A

                            \[\leadsto \sqrt{\frac{d \cdot d}{\color{blue}{h \cdot \ell}}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                          10. lift-*.f64N/A

                            \[\leadsto \sqrt{\frac{\color{blue}{d \cdot d}}{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                          11. sqrt-divN/A

                            \[\leadsto \color{blue}{\frac{\sqrt{d \cdot d}}{\sqrt{h \cdot \ell}}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                          12. lower-unsound-sqrt.f32N/A

                            \[\leadsto \frac{\color{blue}{\sqrt{d \cdot d}}}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                          13. lower-sqrt.f32N/A

                            \[\leadsto \frac{\color{blue}{\sqrt{d \cdot d}}}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                          14. lift-*.f64N/A

                            \[\leadsto \frac{\sqrt{\color{blue}{d \cdot d}}}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                          15. rem-sqrt-square-revN/A

                            \[\leadsto \frac{\color{blue}{\left|d\right|}}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                          16. lower-unsound-/.f64N/A

                            \[\leadsto \color{blue}{\frac{\left|d\right|}{\sqrt{h \cdot \ell}}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                          17. lower-fabs.f64N/A

                            \[\leadsto \frac{\color{blue}{\left|d\right|}}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                          18. lower-unsound-sqrt.f6469.9

                            \[\leadsto \frac{\left|d\right|}{\color{blue}{\sqrt{h \cdot \ell}}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                        5. Applied rewrites69.9%

                          \[\leadsto \color{blue}{\frac{\left|d\right|}{\sqrt{h \cdot \ell}}} \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                        6. Step-by-step derivation
                          1. lift-pow.f64N/A

                            \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \color{blue}{{\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}}\right) \cdot \frac{h}{\ell}\right) \]
                          2. unpow2N/A

                            \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \color{blue}{\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{M \cdot D}{2 \cdot d}\right)}\right) \cdot \frac{h}{\ell}\right) \]
                          3. lift-/.f64N/A

                            \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\color{blue}{\frac{M \cdot D}{2 \cdot d}} \cdot \frac{M \cdot D}{2 \cdot d}\right)\right) \cdot \frac{h}{\ell}\right) \]
                          4. frac-2negN/A

                            \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\color{blue}{\frac{\mathsf{neg}\left(M \cdot D\right)}{\mathsf{neg}\left(2 \cdot d\right)}} \cdot \frac{M \cdot D}{2 \cdot d}\right)\right) \cdot \frac{h}{\ell}\right) \]
                          5. distribute-frac-negN/A

                            \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\color{blue}{\left(\mathsf{neg}\left(\frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right)} \cdot \frac{M \cdot D}{2 \cdot d}\right)\right) \cdot \frac{h}{\ell}\right) \]
                          6. lift-/.f64N/A

                            \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\left(\mathsf{neg}\left(\frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \color{blue}{\frac{M \cdot D}{2 \cdot d}}\right)\right) \cdot \frac{h}{\ell}\right) \]
                          7. frac-2negN/A

                            \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\left(\mathsf{neg}\left(\frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \color{blue}{\frac{\mathsf{neg}\left(M \cdot D\right)}{\mathsf{neg}\left(2 \cdot d\right)}}\right)\right) \cdot \frac{h}{\ell}\right) \]
                          8. distribute-frac-negN/A

                            \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\left(\mathsf{neg}\left(\frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \color{blue}{\left(\mathsf{neg}\left(\frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
                          9. sqr-negN/A

                            \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \color{blue}{\left(\frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)} \cdot \frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)}\right) \cdot \frac{h}{\ell}\right) \]
                          10. lower-*.f64N/A

                            \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \color{blue}{\left(\frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)} \cdot \frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)}\right) \cdot \frac{h}{\ell}\right) \]
                          11. lower-/.f64N/A

                            \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\color{blue}{\frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}} \cdot \frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
                          12. lift-*.f64N/A

                            \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{\color{blue}{M \cdot D}}{\mathsf{neg}\left(2 \cdot d\right)} \cdot \frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
                          13. *-commutativeN/A

                            \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{\color{blue}{D \cdot M}}{\mathsf{neg}\left(2 \cdot d\right)} \cdot \frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
                          14. lift-*.f64N/A

                            \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{\color{blue}{D \cdot M}}{\mathsf{neg}\left(2 \cdot d\right)} \cdot \frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
                          15. lift-*.f64N/A

                            \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{\mathsf{neg}\left(\color{blue}{2 \cdot d}\right)} \cdot \frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
                          16. distribute-lft-neg-inN/A

                            \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{\color{blue}{\left(\mathsf{neg}\left(2\right)\right) \cdot d}} \cdot \frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
                          17. lower-*.f64N/A

                            \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{\color{blue}{\left(\mathsf{neg}\left(2\right)\right) \cdot d}} \cdot \frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
                          18. metadata-evalN/A

                            \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{\color{blue}{-2} \cdot d} \cdot \frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
                          19. lower-/.f64N/A

                            \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{-2 \cdot d} \cdot \color{blue}{\frac{M \cdot D}{\mathsf{neg}\left(2 \cdot d\right)}}\right)\right) \cdot \frac{h}{\ell}\right) \]
                          20. lift-*.f64N/A

                            \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{-2 \cdot d} \cdot \frac{\color{blue}{M \cdot D}}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
                          21. *-commutativeN/A

                            \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{-2 \cdot d} \cdot \frac{\color{blue}{D \cdot M}}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
                          22. lift-*.f64N/A

                            \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{-2 \cdot d} \cdot \frac{\color{blue}{D \cdot M}}{\mathsf{neg}\left(2 \cdot d\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
                          23. lift-*.f64N/A

                            \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{-2 \cdot d} \cdot \frac{D \cdot M}{\mathsf{neg}\left(\color{blue}{2 \cdot d}\right)}\right)\right) \cdot \frac{h}{\ell}\right) \]
                          24. distribute-lft-neg-inN/A

                            \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{-2 \cdot d} \cdot \frac{D \cdot M}{\color{blue}{\left(\mathsf{neg}\left(2\right)\right) \cdot d}}\right)\right) \cdot \frac{h}{\ell}\right) \]
                          25. lower-*.f64N/A

                            \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{-2 \cdot d} \cdot \frac{D \cdot M}{\color{blue}{\left(\mathsf{neg}\left(2\right)\right) \cdot d}}\right)\right) \cdot \frac{h}{\ell}\right) \]
                          26. metadata-eval69.9

                            \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \left(\frac{D \cdot M}{-2 \cdot d} \cdot \frac{D \cdot M}{\color{blue}{-2} \cdot d}\right)\right) \cdot \frac{h}{\ell}\right) \]
                        7. Applied rewrites69.9%

                          \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \left(1 - \left(\frac{1}{2} \cdot \color{blue}{\left(\frac{D \cdot M}{-2 \cdot d} \cdot \frac{D \cdot M}{-2 \cdot d}\right)}\right) \cdot \frac{h}{\ell}\right) \]
                        8. Taylor expanded in d around inf

                          \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \color{blue}{1} \]
                        9. Step-by-step derivation
                          1. Applied rewrites42.5%

                            \[\leadsto \frac{\left|d\right|}{\sqrt{h \cdot \ell}} \cdot \color{blue}{1} \]
                        10. Recombined 2 regimes into one program.
                        11. Add Preprocessing

                        Alternative 15: 41.9% accurate, 5.5× speedup?

                        \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;h \leq 2.3 \cdot 10^{-297}:\\ \;\;\;\;\sqrt{\frac{1}{\ell \cdot h}} \cdot \left(-d\right)\\ \mathbf{else}:\\ \;\;\;\;d \cdot \sqrt{\frac{1}{h \cdot \ell}}\\ \end{array} \end{array} \]
                        (FPCore (d h l M D)
                         :precision binary64
                         (if (<= h 2.3e-297)
                           (* (sqrt (/ 1.0 (* l h))) (- d))
                           (* d (sqrt (/ 1.0 (* h l))))))
                        double code(double d, double h, double l, double M, double D) {
                        	double tmp;
                        	if (h <= 2.3e-297) {
                        		tmp = sqrt((1.0 / (l * h))) * -d;
                        	} else {
                        		tmp = d * sqrt((1.0 / (h * l)));
                        	}
                        	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(d, h, l, m, d_1)
                        use fmin_fmax_functions
                            real(8), intent (in) :: d
                            real(8), intent (in) :: h
                            real(8), intent (in) :: l
                            real(8), intent (in) :: m
                            real(8), intent (in) :: d_1
                            real(8) :: tmp
                            if (h <= 2.3d-297) then
                                tmp = sqrt((1.0d0 / (l * h))) * -d
                            else
                                tmp = d * sqrt((1.0d0 / (h * l)))
                            end if
                            code = tmp
                        end function
                        
                        public static double code(double d, double h, double l, double M, double D) {
                        	double tmp;
                        	if (h <= 2.3e-297) {
                        		tmp = Math.sqrt((1.0 / (l * h))) * -d;
                        	} else {
                        		tmp = d * Math.sqrt((1.0 / (h * l)));
                        	}
                        	return tmp;
                        }
                        
                        def code(d, h, l, M, D):
                        	tmp = 0
                        	if h <= 2.3e-297:
                        		tmp = math.sqrt((1.0 / (l * h))) * -d
                        	else:
                        		tmp = d * math.sqrt((1.0 / (h * l)))
                        	return tmp
                        
                        function code(d, h, l, M, D)
                        	tmp = 0.0
                        	if (h <= 2.3e-297)
                        		tmp = Float64(sqrt(Float64(1.0 / Float64(l * h))) * Float64(-d));
                        	else
                        		tmp = Float64(d * sqrt(Float64(1.0 / Float64(h * l))));
                        	end
                        	return tmp
                        end
                        
                        function tmp_2 = code(d, h, l, M, D)
                        	tmp = 0.0;
                        	if (h <= 2.3e-297)
                        		tmp = sqrt((1.0 / (l * h))) * -d;
                        	else
                        		tmp = d * sqrt((1.0 / (h * l)));
                        	end
                        	tmp_2 = tmp;
                        end
                        
                        code[d_, h_, l_, M_, D_] := If[LessEqual[h, 2.3e-297], N[(N[Sqrt[N[(1.0 / N[(l * h), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * (-d)), $MachinePrecision], N[(d * N[Sqrt[N[(1.0 / N[(h * l), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]]
                        
                        \begin{array}{l}
                        
                        \\
                        \begin{array}{l}
                        \mathbf{if}\;h \leq 2.3 \cdot 10^{-297}:\\
                        \;\;\;\;\sqrt{\frac{1}{\ell \cdot h}} \cdot \left(-d\right)\\
                        
                        \mathbf{else}:\\
                        \;\;\;\;d \cdot \sqrt{\frac{1}{h \cdot \ell}}\\
                        
                        
                        \end{array}
                        \end{array}
                        
                        Derivation
                        1. Split input into 2 regimes
                        2. if h < 2.2999999999999999e-297

                          1. Initial program 66.7%

                            \[\left({\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)} \cdot {\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                          2. Applied rewrites29.3%

                            \[\leadsto \color{blue}{\mathsf{fma}\left(\frac{h}{\ell}, \left(M \cdot \left(\frac{D \cdot \left(D \cdot M\right)}{4 \cdot \left(d \cdot d\right)} \cdot -0.5\right)\right) \cdot \sqrt{d \cdot \frac{d}{h \cdot \ell}}, \sqrt{d \cdot \frac{d}{h \cdot \ell}}\right)} \]
                          3. Taylor expanded in d around -inf

                            \[\leadsto \color{blue}{-1 \cdot \left(d \cdot \sqrt{\frac{1}{h \cdot \ell}}\right)} \]
                          4. Step-by-step derivation
                            1. lower-*.f64N/A

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

                              \[\leadsto -1 \cdot \left(d \cdot \color{blue}{\sqrt{\frac{1}{h \cdot \ell}}}\right) \]
                            3. lower-sqrt.f64N/A

                              \[\leadsto -1 \cdot \left(d \cdot \sqrt{\frac{1}{h \cdot \ell}}\right) \]
                            4. lower-/.f64N/A

                              \[\leadsto -1 \cdot \left(d \cdot \sqrt{\frac{1}{h \cdot \ell}}\right) \]
                            5. lower-*.f6425.5

                              \[\leadsto -1 \cdot \left(d \cdot \sqrt{\frac{1}{h \cdot \ell}}\right) \]
                          5. Applied rewrites25.5%

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

                              \[\leadsto -1 \cdot \color{blue}{\left(d \cdot \sqrt{\frac{1}{h \cdot \ell}}\right)} \]
                            2. mul-1-negN/A

                              \[\leadsto \mathsf{neg}\left(d \cdot \sqrt{\frac{1}{h \cdot \ell}}\right) \]
                            3. lift-*.f64N/A

                              \[\leadsto \mathsf{neg}\left(d \cdot \sqrt{\frac{1}{h \cdot \ell}}\right) \]
                            4. *-commutativeN/A

                              \[\leadsto \mathsf{neg}\left(\sqrt{\frac{1}{h \cdot \ell}} \cdot d\right) \]
                            5. distribute-rgt-neg-inN/A

                              \[\leadsto \sqrt{\frac{1}{h \cdot \ell}} \cdot \color{blue}{\left(\mathsf{neg}\left(d\right)\right)} \]
                            6. lower-*.f64N/A

                              \[\leadsto \sqrt{\frac{1}{h \cdot \ell}} \cdot \color{blue}{\left(\mathsf{neg}\left(d\right)\right)} \]
                            7. lift-*.f64N/A

                              \[\leadsto \sqrt{\frac{1}{h \cdot \ell}} \cdot \left(\mathsf{neg}\left(d\right)\right) \]
                            8. *-commutativeN/A

                              \[\leadsto \sqrt{\frac{1}{\ell \cdot h}} \cdot \left(\mathsf{neg}\left(d\right)\right) \]
                            9. lower-*.f64N/A

                              \[\leadsto \sqrt{\frac{1}{\ell \cdot h}} \cdot \left(\mathsf{neg}\left(d\right)\right) \]
                            10. lower-neg.f6425.5

                              \[\leadsto \sqrt{\frac{1}{\ell \cdot h}} \cdot \left(-d\right) \]
                          7. Applied rewrites25.5%

                            \[\leadsto \sqrt{\frac{1}{\ell \cdot h}} \cdot \color{blue}{\left(-d\right)} \]

                          if 2.2999999999999999e-297 < h

                          1. Initial program 66.7%

                            \[\left({\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)} \cdot {\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                          2. Applied rewrites29.3%

                            \[\leadsto \color{blue}{\mathsf{fma}\left(\frac{h}{\ell}, \left(M \cdot \left(\frac{D \cdot \left(D \cdot M\right)}{4 \cdot \left(d \cdot d\right)} \cdot -0.5\right)\right) \cdot \sqrt{d \cdot \frac{d}{h \cdot \ell}}, \sqrt{d \cdot \frac{d}{h \cdot \ell}}\right)} \]
                          3. Taylor expanded in d around -inf

                            \[\leadsto \color{blue}{-1 \cdot \left(d \cdot \sqrt{\frac{1}{h \cdot \ell}}\right)} \]
                          4. Step-by-step derivation
                            1. lower-*.f64N/A

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

                              \[\leadsto -1 \cdot \left(d \cdot \color{blue}{\sqrt{\frac{1}{h \cdot \ell}}}\right) \]
                            3. lower-sqrt.f64N/A

                              \[\leadsto -1 \cdot \left(d \cdot \sqrt{\frac{1}{h \cdot \ell}}\right) \]
                            4. lower-/.f64N/A

                              \[\leadsto -1 \cdot \left(d \cdot \sqrt{\frac{1}{h \cdot \ell}}\right) \]
                            5. lower-*.f6425.5

                              \[\leadsto -1 \cdot \left(d \cdot \sqrt{\frac{1}{h \cdot \ell}}\right) \]
                          5. Applied rewrites25.5%

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

                              \[\leadsto -1 \cdot \color{blue}{\left(d \cdot \sqrt{\frac{1}{h \cdot \ell}}\right)} \]
                            2. mul-1-negN/A

                              \[\leadsto \mathsf{neg}\left(d \cdot \sqrt{\frac{1}{h \cdot \ell}}\right) \]
                            3. lift-*.f64N/A

                              \[\leadsto \mathsf{neg}\left(d \cdot \sqrt{\frac{1}{h \cdot \ell}}\right) \]
                            4. *-commutativeN/A

                              \[\leadsto \mathsf{neg}\left(\sqrt{\frac{1}{h \cdot \ell}} \cdot d\right) \]
                            5. distribute-rgt-neg-inN/A

                              \[\leadsto \sqrt{\frac{1}{h \cdot \ell}} \cdot \color{blue}{\left(\mathsf{neg}\left(d\right)\right)} \]
                            6. lower-*.f64N/A

                              \[\leadsto \sqrt{\frac{1}{h \cdot \ell}} \cdot \color{blue}{\left(\mathsf{neg}\left(d\right)\right)} \]
                            7. lift-*.f64N/A

                              \[\leadsto \sqrt{\frac{1}{h \cdot \ell}} \cdot \left(\mathsf{neg}\left(d\right)\right) \]
                            8. *-commutativeN/A

                              \[\leadsto \sqrt{\frac{1}{\ell \cdot h}} \cdot \left(\mathsf{neg}\left(d\right)\right) \]
                            9. lower-*.f64N/A

                              \[\leadsto \sqrt{\frac{1}{\ell \cdot h}} \cdot \left(\mathsf{neg}\left(d\right)\right) \]
                            10. lower-neg.f6425.5

                              \[\leadsto \sqrt{\frac{1}{\ell \cdot h}} \cdot \left(-d\right) \]
                          7. Applied rewrites25.5%

                            \[\leadsto \sqrt{\frac{1}{\ell \cdot h}} \cdot \color{blue}{\left(-d\right)} \]
                          8. Taylor expanded in d around inf

                            \[\leadsto \color{blue}{d \cdot \sqrt{\frac{1}{h \cdot \ell}}} \]
                          9. Step-by-step derivation
                            1. lower-*.f64N/A

                              \[\leadsto d \cdot \color{blue}{\sqrt{\frac{1}{h \cdot \ell}}} \]
                            2. lower-sqrt.f64N/A

                              \[\leadsto d \cdot \sqrt{\frac{1}{h \cdot \ell}} \]
                            3. lower-/.f64N/A

                              \[\leadsto d \cdot \sqrt{\frac{1}{h \cdot \ell}} \]
                            4. lower-*.f6426.5

                              \[\leadsto d \cdot \sqrt{\frac{1}{h \cdot \ell}} \]
                          10. Applied rewrites26.5%

                            \[\leadsto \color{blue}{d \cdot \sqrt{\frac{1}{h \cdot \ell}}} \]
                        3. Recombined 2 regimes into one program.
                        4. Add Preprocessing

                        Alternative 16: 26.5% accurate, 7.7× speedup?

                        \[\begin{array}{l} \\ d \cdot \sqrt{\frac{1}{h \cdot \ell}} \end{array} \]
                        (FPCore (d h l M D) :precision binary64 (* d (sqrt (/ 1.0 (* h l)))))
                        double code(double d, double h, double l, double M, double D) {
                        	return d * sqrt((1.0 / (h * l)));
                        }
                        
                        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(d, h, l, m, d_1)
                        use fmin_fmax_functions
                            real(8), intent (in) :: d
                            real(8), intent (in) :: h
                            real(8), intent (in) :: l
                            real(8), intent (in) :: m
                            real(8), intent (in) :: d_1
                            code = d * sqrt((1.0d0 / (h * l)))
                        end function
                        
                        public static double code(double d, double h, double l, double M, double D) {
                        	return d * Math.sqrt((1.0 / (h * l)));
                        }
                        
                        def code(d, h, l, M, D):
                        	return d * math.sqrt((1.0 / (h * l)))
                        
                        function code(d, h, l, M, D)
                        	return Float64(d * sqrt(Float64(1.0 / Float64(h * l))))
                        end
                        
                        function tmp = code(d, h, l, M, D)
                        	tmp = d * sqrt((1.0 / (h * l)));
                        end
                        
                        code[d_, h_, l_, M_, D_] := N[(d * N[Sqrt[N[(1.0 / N[(h * l), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]
                        
                        \begin{array}{l}
                        
                        \\
                        d \cdot \sqrt{\frac{1}{h \cdot \ell}}
                        \end{array}
                        
                        Derivation
                        1. Initial program 66.7%

                          \[\left({\left(\frac{d}{h}\right)}^{\left(\frac{1}{2}\right)} \cdot {\left(\frac{d}{\ell}\right)}^{\left(\frac{1}{2}\right)}\right) \cdot \left(1 - \left(\frac{1}{2} \cdot {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\right) \cdot \frac{h}{\ell}\right) \]
                        2. Applied rewrites29.3%

                          \[\leadsto \color{blue}{\mathsf{fma}\left(\frac{h}{\ell}, \left(M \cdot \left(\frac{D \cdot \left(D \cdot M\right)}{4 \cdot \left(d \cdot d\right)} \cdot -0.5\right)\right) \cdot \sqrt{d \cdot \frac{d}{h \cdot \ell}}, \sqrt{d \cdot \frac{d}{h \cdot \ell}}\right)} \]
                        3. Taylor expanded in d around -inf

                          \[\leadsto \color{blue}{-1 \cdot \left(d \cdot \sqrt{\frac{1}{h \cdot \ell}}\right)} \]
                        4. Step-by-step derivation
                          1. lower-*.f64N/A

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

                            \[\leadsto -1 \cdot \left(d \cdot \color{blue}{\sqrt{\frac{1}{h \cdot \ell}}}\right) \]
                          3. lower-sqrt.f64N/A

                            \[\leadsto -1 \cdot \left(d \cdot \sqrt{\frac{1}{h \cdot \ell}}\right) \]
                          4. lower-/.f64N/A

                            \[\leadsto -1 \cdot \left(d \cdot \sqrt{\frac{1}{h \cdot \ell}}\right) \]
                          5. lower-*.f6425.5

                            \[\leadsto -1 \cdot \left(d \cdot \sqrt{\frac{1}{h \cdot \ell}}\right) \]
                        5. Applied rewrites25.5%

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

                            \[\leadsto -1 \cdot \color{blue}{\left(d \cdot \sqrt{\frac{1}{h \cdot \ell}}\right)} \]
                          2. mul-1-negN/A

                            \[\leadsto \mathsf{neg}\left(d \cdot \sqrt{\frac{1}{h \cdot \ell}}\right) \]
                          3. lift-*.f64N/A

                            \[\leadsto \mathsf{neg}\left(d \cdot \sqrt{\frac{1}{h \cdot \ell}}\right) \]
                          4. *-commutativeN/A

                            \[\leadsto \mathsf{neg}\left(\sqrt{\frac{1}{h \cdot \ell}} \cdot d\right) \]
                          5. distribute-rgt-neg-inN/A

                            \[\leadsto \sqrt{\frac{1}{h \cdot \ell}} \cdot \color{blue}{\left(\mathsf{neg}\left(d\right)\right)} \]
                          6. lower-*.f64N/A

                            \[\leadsto \sqrt{\frac{1}{h \cdot \ell}} \cdot \color{blue}{\left(\mathsf{neg}\left(d\right)\right)} \]
                          7. lift-*.f64N/A

                            \[\leadsto \sqrt{\frac{1}{h \cdot \ell}} \cdot \left(\mathsf{neg}\left(d\right)\right) \]
                          8. *-commutativeN/A

                            \[\leadsto \sqrt{\frac{1}{\ell \cdot h}} \cdot \left(\mathsf{neg}\left(d\right)\right) \]
                          9. lower-*.f64N/A

                            \[\leadsto \sqrt{\frac{1}{\ell \cdot h}} \cdot \left(\mathsf{neg}\left(d\right)\right) \]
                          10. lower-neg.f6425.5

                            \[\leadsto \sqrt{\frac{1}{\ell \cdot h}} \cdot \left(-d\right) \]
                        7. Applied rewrites25.5%

                          \[\leadsto \sqrt{\frac{1}{\ell \cdot h}} \cdot \color{blue}{\left(-d\right)} \]
                        8. Taylor expanded in d around inf

                          \[\leadsto \color{blue}{d \cdot \sqrt{\frac{1}{h \cdot \ell}}} \]
                        9. Step-by-step derivation
                          1. lower-*.f64N/A

                            \[\leadsto d \cdot \color{blue}{\sqrt{\frac{1}{h \cdot \ell}}} \]
                          2. lower-sqrt.f64N/A

                            \[\leadsto d \cdot \sqrt{\frac{1}{h \cdot \ell}} \]
                          3. lower-/.f64N/A

                            \[\leadsto d \cdot \sqrt{\frac{1}{h \cdot \ell}} \]
                          4. lower-*.f6426.5

                            \[\leadsto d \cdot \sqrt{\frac{1}{h \cdot \ell}} \]
                        10. Applied rewrites26.5%

                          \[\leadsto \color{blue}{d \cdot \sqrt{\frac{1}{h \cdot \ell}}} \]
                        11. Add Preprocessing

                        Reproduce

                        ?
                        herbie shell --seed 2025164 
                        (FPCore (d h l M D)
                          :name "Henrywood and Agarwal, Equation (12)"
                          :precision binary64
                          (* (* (pow (/ d h) (/ 1.0 2.0)) (pow (/ d l) (/ 1.0 2.0))) (- 1.0 (* (* (/ 1.0 2.0) (pow (/ (* M D) (* 2.0 d)) 2.0)) (/ h l)))))